Technical data

44 ServerIron ADX Advanced Server Load Balancing Guide
53-1002435-03
Other transparent cache switching options
2
The ServerIron ADX contains 256 hash slots. If you do not assign weights to the cache servers
(refer to “Setting the cache server weight” on page 59), the software divides the hash slots evenly
among the cache servers. If you assign differing weights to the cache servers, the software assigns
hash slots to the cache servers based on the ratios of their relative weights.
The hashing feature allows the switch to spread the traffic across the caches and minimizes
duplicate data on the cache servers.
If all the cache servers become unavailable, traffic flows across the switch at Layer 2 and users go
directly out to the Internet. The ServerIron ADX does not drop the traffic.
To change the hash mask, use the following command.
For IPv4
ServerIronADX(config)# server cache-group 1
ServerIronADX(config-tc-1)# hash-mask 255.255.255.0 255.255.0.0
For IPv6
ServerIronADX(config)# server cache-group 1
ServerIronADX(config-tc-1)# hash-mask ffff:ffff:ffff:ffff:: ffff:ffff:ffff::
Syntax: hash-mask { <IPv4-destination-mask> <IPv4-source-mask> | <IPv6-destination-mask>
<IPv6-source-mask> }
The <IPv4-destination-mask> <IPv4-source-mask> variables specify the IPv4 destination and
source masks to be used for the distribution algorithm.
The <IPv6-destination-mask> <IPv6-source-mask> variables specify the IPv6 destination and
source masks to be used for the distribution algorithm.
Table 4 shows other examples of how the hash masks work.
TABLE 4 Example TCS hash masks (IPv4+IPv6)
Destination mask Source mask Destination IP address Source IP address Cache server
255.255.255.0 0.0.0.0 125.24.32.12 Any C1
125.24.32.210 Any C1
125.24.33.210 Any C2
125.24.34.210 Any C3
255.255.255.192 0.0.0.0 125.24.32.12 Any C1
125.24.32.70 Any C2
125.24.32.190 Any C3
255.255.255.0 0.0.0.255 125.24.32.12 149.165.16.233 C1
125.24.32.12 189.12.122.233 C1
125.24.32.12 189.12.122.200 C2
ffff:ffff:ffff:ffff:: :: 2001:db8:0102:0303:6::1 Any C1
2001:db8:0102:0303:7::1 Any C1
2001:db8:0102:0304:8::1 Any C2
2001:db8:0102:0305:9::1 Any C3
ffff:ffff:ffff:ffff:ffff:: :: 2001:db8:0102:0303:6::1 Any C1