cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
701
Views
0
Helpful
1
Replies

CSM stickiness problem with source ip and source and destination ip

nacho
Level 1
Level 1

Please can anybody clarify me CSM stickiness behavior when using ip address source or source/destination as sticky criterium.

Problem description: CSM runs version 4.2(2) then I config vserver "WEB" with the sticky group 10

sticky 10 netmask 255.255.255.255 timeout 60

This work find

vserver WEB

virtual 10.9.3.4 tcp www

serverfarm SERVERS_WEB

sticky 60 group 10

replicate csrp sticky

replicate csrp connection

no persistent rebalance

parse-length 4000

inservice

Now we config other vserser "IMP" with sticky group 40

sticky 40 netmask 255.255.255.255 timeout 60

vserver IMP

virtual 10.9.3.8 tcp 0

serverfarm SERVERS_IMP

sticky 60 group 10

replicate csrp sticky

replicate csrp connection

no persistent rebalance

parse-length 4000

inservice

If we connect from the same client, first to vserver WEB, you reach serverfarm "SERVERS_WEB". Now yor try to connect to vserver IMP then you get again serverfarm "SERVERS_WEB" instead serverfarm "SERVERS_IMP".

At the connection time CSM behavior look first for the source ip and sticky hash if mach connect to the same server (never look for the destination (vserver ip)).

To avoid this, I try with sticky groups like this:

sticky 80 netmask 255.255.255.255 address both timeout 60

But as the sticky hash is calculated using and XOR between the source an destination, it very easy to get the same hash for vservers and clients on the same subnet.

Of course now I am using cookies for stickness where I can do it.

Please can anybody tell me is this a normal CSM behavior, my configration are wrong or it´s a CSM firmware bug.

1 Reply 1

Gilles Dufour
Cisco Employee
Cisco Employee

you have to use different sticky group.

sticky 10 netmask 255.255.255.255 timeout 60

sticky 20 netmask 255.255.255.255 timeout 60

vserver WEB

virtual 10.9.3.4 tcp www

serverfarm SERVERS_WEB

sticky 60 group 10

replicate csrp sticky

replicate csrp connection

no persistent rebalance

parse-length 4000

inservice

vserver IMP

virtual 10.9.3.8 tcp 0

serverfarm SERVERS_IMP

sticky 60 group 20

replicate csrp sticky

replicate csrp connection

no persistent rebalance

parse-length 4000

inservice

Gilles.

Review Cisco Networking for a $25 gift card