ICAP Client
Next Generation Security Gateway Guide R80.20 | 79
Configuring ICAP Client Data Trickling Parameters
Description
Patience pages provide a solution to appease users during relatively short delays in object scans.
However, scanning relatively large objects, scanning objects over a smaller bandwidth pipe, or
high loads on servers might disrupt the user experience, because connection timeouts occur. To
prevent such time-outs, you can allow data trickling to occur. During the Data Trickling, the data
transmits at a very slow rate to the client at the beginning of the scan, or near the very end.
Trickle from the Start mode
In Trickle from Start mode, the ICAP Client buffers a small amount of the beginning of the HTTP
response body. As the ICAP Server continues to scan the HTTP response, the ICAP Client allows
one byte per second to the HTTP Client. After the ICAP Server completes its scan, if the object is
deemed to be clean (no HTTP response modification is required), the ICAP Client sends the rest of
the object bytes to the HTTP Client at the best speed allowed by the connection. If the object is
deemed to be malicious, the ICAP Client terminates the connection and the remainder of the HTTP
response object. Trickling from the Start is the more secure Data Trickling option, because the
HTTP Client receives only a small amount of data pending the outcome of the virus scan.
Trickle at the End mode
In Trickle at End mode, the ICAP Client sends the HTTP response to the HTTP Client at the best
speed allowed by the connection, except for the last 16KB of data. As the ICAP Server performs
the content scan, the ICAP Client allows one byte per second to the HTTP Client. After the ICAP
Server completes its scan, if the object is deemed to be clean (no HTTP response modification is
required), the ICAP Client sends the rest of the object bytes to the HTTP Client at the best speed
allowed by the connection. This method is more user-friendly than Trickle at Start. This is because
users tend to be more patient when they notice that 99% of the object is downloaded versus 1%,
and are less likely to perform a connection restart. However, network administrators might
perceive this method as the less secure method, as a majority of the object is delivered before the
results of the ICAP scan.
Notes about Data Trickling on Check Point Security Gateway
• There is no true data-modification (meaning, no true content adaptation) during the data
trickling.
In the
Trickling at the End
mode, there is no data modification at all.
• Data Trickling (both
Trickling from the Start
and
Trickling at the End
modes) cannot work when
there is no
Content-length
header in the HTTP message.
• In the
Trickling at the End
mode, Check Point Security Gateway supports the 204 status code
(with the HTTP header "Allow: 204", for HTTP reply "No change / Unmodified").
• There is still an applicative timeout (:icap_servers () - :timeout) of the ICAP session
that user needs to define according to the icap-service demand, after which the
fail-action follows.
The applicative timeout is also a factor in determining the maximal buffer size for
Trickling
from the Start
mode.