Question on CSS cookie sticky

Answered Question
Jun 10th, 2007
User Badges:
  • Bronze, 100 points or more

Hi everyone,


I have a question about CSS cookie sticky.


- Server issues the following cookie string to the client and it is fixed to 18 bytes.


Set-Cookie: JSESSIONID=aaabbbcccdddeeefff; path=/


- Client embedded the following cookie string in the subsequent HTTP header.

Cookie: xx_user_id=ZZZZ03; com.dummy.xyz.session.cookie=|user|pc|ja|Shift_JIS|default||yellow|/oooo/default.portal|; JSESSIONID=aaabbbcccdddeeefff


* Note that I made cookie information suitable as example.



There is the cookie string (JSESSIONID=aaabbbcccdddeeefff) issued by Server in the HTTP header from client but that cookie string (JSESSIONID=aaabbbcccdddeeefff) is located following the cookie string that the client made by oneself at the end of cookie string. And the cookie string and the length of cookie string that client made by oneself might change so the total length of cookie string also might change. It means I can not clarify the total length of the cookie string.


In this situation, I want CSS to stick with cookie string "JSESSIONID=aaabbbcccdddeeefff".

The characters of string located following the "JSESSIONID=" (in this case, "aaabbbcccdddeeefff") might change but it is fixed to 18 bytes. The total length of cookie string is 141 bytes in above mentioned example.


So I informed customer to configure the following parameters to get CSS done cookie sticky for above mentioned cookie string. CSS software version is sg0750303.


----------

owner test


content testsv-tcp80

add service testsv1-tcp80

add service testsv2-tcp80

advanced-balance cookie

 string range 1 to 200

string process-length 18

url "/*"

redundant-index 1001

protocol tcp

port 80

vip address xxx.xxx.xxx.xxx

active

----------


However CSS was not able to treat the above mentioned cookie correctly which means the subsequent HTTP request was not stuck (persisted) to same server.


I do not understand why CSS cookie sticky did not work correctly with this configuration.


Then customer configured CSS with the following parameters to get CSS inserted cookie string and, of course, the result is OK that is CSS could stick the connection to same server.


----------

owner test


content testsv-tcp80

add service testsv1-tcp80

add service testsv2-tcp80

advanced-balance arrowpoint-cookie

url "/*"

redundant-index 1001

protocol tcp

port 80

vip address xxx.xxx.xxx.xxx

active

----------


Has anybody experienced similar thing ?

Could you please let me know if you have any comment, information


Your information would be appreciated.


Best regards,



Correct Answer by Gilles Dufour about 10 years 1 month ago

the CSS does not learn dynamic cookie.

You can match a fixed string inside a cookie and pre-define which server to use with that specific string.

That's why your solution did not work.

Arrowpoint-cookie is a better solution and easier to implement.


Gilles.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Gilles Dufour Mon, 06/11/2007 - 00:58
User Badges:
  • Cisco Employee,

the CSS does not learn dynamic cookie.

You can match a fixed string inside a cookie and pre-define which server to use with that specific string.

That's why your solution did not work.

Arrowpoint-cookie is a better solution and easier to implement.


Gilles.

snakayama Mon, 06/11/2007 - 01:37
User Badges:
  • Bronze, 100 points or more

Hi,


Thank you very much for your reply.

I understand what "dynamic cookie" means and CSS does not learn dynamic cookie.

I am going to configure CSS with arrowpoint-cookie.


Best regards,


Actions

This Discussion