Which Protocol to Use

The four protocols and algorithms presented here each have unique features and characteristics. Which one you should use depends on numerous factors. The following guidelines may help to determine the best protocol for your particular situation.

ICP may be a good choice if you need to interoperate with products from different vendors. Since ICP has been around longer than the others, it is supported in most caching products. It is also a reasonable choice if you want to build or connect into a small mesh of caches. You want to avoid having too many neighbors with ICP; try to limit yourself to no more than five or six. ICP may not be a good choice if you are very concerned about security, and it may be all but useless on networks with high delays and/or a large amount of congestion. The protocol has no authentication mechanisms and may be susceptible to address spoofing. Finally, you probably cannot use ICP if there is a firewall between you and your neighbor caches because firewalls typically block UDP traffic by default.

CARP is a logical choice if you have multiple parent caches administered by a single organization. For example, some large service providers may have a cluster of proxy caches located where they connect to the rest of the Internet. If this applies to you, make sure you always have up-to-date configuration information. CARP is the only protocol that does not allow you to create sibling relationships.

HTCP has characteristics similar to ICP. ...

Get Web Caching now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.