Example 1: hashing on the url – Nortel Networks WEB OS 212777 User Manual
Page 407
Web OS 10.0 Application Guide
Chapter 15: Content Intelligent Switching
n
407
212777-A, February 2002
2.
Turn on URL parsing for the filter.
3.
Enable hash to direct a cacheable URL request to a specific cache server.
By default, the host header field is used to calculate the hash key and URL hashing is disabled.
n
hash ena: Enables hashing based on the URL and the host header if it is present. Specify
the length of the URL to hash into the cache server.
n
hash disable: Disables hashing based on the URL. Instead, the host header field to calcu-
late the hash key.
If the host header field does not exist in the HTTP header, then the switch uses the source
IP address as the hash key.
Example 1: Hashing on the URL
In this example, URL hashing is enabled. If the Host field does not exist, the specified length
of the URL is used to hash into the cache server as shown in
. If the
Host field exists, the specified length of both the Host field and the URL is used to hash into
the cache server. The same URL request goes to the same cache server as shown below:
n
Client 1 request
http://www.nortelnetworks.com/sales/index.htm
is
directed to cache server 1.
n
Client 2 request
http://www.nortelnetworks.com/sales/index.htm
is
directed to cache server 1.
n
Client 3 request
http://www.nortelnetworks.com/sales/index.htm
is
directed to cache server 1.
>> # /cfg/slb/filt 1/adv/urlp ena
>> # /cfg/slb/layer7/redir/hash ena
Enter new hash length [1-255]: 24