<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Load balancing on cookie pattern NOT working in Application Networking</title>
    <link>https://community.cisco.com/t5/application-networking/load-balancing-on-cookie-pattern-not-working/m-p/2350441#M40917</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets say for your client request, server sent in response the following cookie "JSESSIONID=C333C37FCF083D210A639ABB8BB9DB21.S01". Ace will hash the cookie value "&lt;SPAN style="font-size: 10pt;"&gt;C333C37FCF083D210A639ABB8BB9DB21.S01" and associates the hash value with the real server in the sticky table entry. So when your Authorize SRV sends a login request to the ACE, if the cookie value is the same as &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;C333C37FCF083D210A639ABB8BB9DB21.S01" then it will send the request to the same real server based on the sticky table entry.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;You can check the sticky table using the following command to see what cookie value is associated with which real server:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;show sticky database http-cookie "&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;C333C37FCF083D210A639ABB8BB9DB21.S01"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To confirm if the "client" and "Authorize SRV" send the same cookie in their request you could take a packet capture on the ACE. If the cookie value is different then the ACE will check the sticky table and according to the match it will send to the correct real server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please confirm the cookie sent by both client and the Authorize SRV are same but still the ACE sends it to a different server ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Oct 2013 13:05:41 GMT</pubDate>
    <dc:creator>rajsures</dc:creator>
    <dc:date>2013-10-29T13:05:41Z</dc:date>
    <item>
      <title>Load balancing on cookie pattern NOT working</title>
      <link>https://community.cisco.com/t5/application-networking/load-balancing-on-cookie-pattern-not-working/m-p/2350437#M40913</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to configure ACE 4710 LB A5(2.1) LB to do following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. client send a http request for login to WEB srv&lt;/P&gt;&lt;P&gt;2. server response and send a cookie Set-Cookie with following pattern JSESSIONID=C333C37FCF083D210A639ABB8BB9DB21.S01 (33 random body 3 char string server ID)&lt;/P&gt;&lt;P&gt;3. Client send authorize http request to other server with the cookie in&amp;nbsp; URI (traffic not go via LB)&lt;/P&gt;&lt;P&gt;4. Authorize server send to WEB srv a request containing that cookie and wait for answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Client ----&amp;gt; ACE LB VIP ---&amp;gt; WEB server&lt;/P&gt;&lt;P&gt;Client -----&amp;gt; Authorize SRV ----&amp;gt; ACE LB VIP ----&amp;gt; WEB server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 4 WEB srv which have sessions ending in . S01 S02 S03 S04&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want that all login request to be round robin balanced, and authorize request to be forwarded to right WEB srv based on cookie termination S01 or .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Configuration:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 1. server farm probing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; probe http http_8080&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; port 8080&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; interval 7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; passdetect interval 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; passdetect count 4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; receive 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; expect status 200 200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; open 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 2. cookie stickiness settings&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; sticky http-cookie JSESSIONID web-pro-srv-8080-stk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; cookie offset 33 length 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; serverfarm WEB-pro-8080&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; timeout 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; replicate sticky&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 3. Traffic policy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; class-map match-all WEB-pro-8080&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 2 match virtual-address 192.168.123.100 tcp eq 8080&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; policy-map type loadbalance first-match WEB-pro-8080&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; class class-default&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sticky-serverfarm web-pro-srv-8080-stk&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; policy-map multi-match EXTERNAL&lt;/P&gt;&lt;P&gt;&amp;nbsp; class WEB-pro-8080&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; loadbalance vip inservice&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; loadbalance policy WEB-pro-8080&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; loadbalance vip icmp-reply active primary-inservice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;Issue: Some sessions obtained at login are forwarded by LB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to wrong WEB srv&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2013 18:04:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/load-balancing-on-cookie-pattern-not-working/m-p/2350437#M40913</guid>
      <dc:creator>sololuke2013</dc:creator>
      <dc:date>2013-10-25T18:04:20Z</dc:date>
    </item>
    <item>
      <title>Load balancing on cookie pattern NOT working</title>
      <link>https://community.cisco.com/t5/application-networking/load-balancing-on-cookie-pattern-not-working/m-p/2350438#M40914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #f7fafb; border-collapse: collapse; font-size: 12px; list-style: none; font-family: Arial, verdana, sans-serif;"&gt;Hi Luke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #f7fafb; border-collapse: collapse; font-size: 12px; list-style: none; font-family: Arial, verdana, sans-serif;"&gt;I am not sure why "cookie offset 33 length 3" is required here. Again the offset value 33 and length value 3 is actually configured in bytes and not exactly based on number of characters in the cookie value. What happens if you remove the&lt;/P&gt;&lt;P style="background-color: #f7fafb; border-collapse: collapse; font-size: 12px; list-style: none; font-family: Arial, verdana, sans-serif;"&gt;"cookie offset 33 length 3" from the sticky configuration ? can you try removing this command and check if it works ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #f7fafb; border-collapse: collapse; font-size: 12px; list-style: none; font-family: Arial, verdana, sans-serif;"&gt;Thanks,&lt;/P&gt;&lt;P style="background-color: #f7fafb; border-collapse: collapse; font-size: 12px; list-style: none; font-family: Arial, verdana, sans-serif;"&gt;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 11:51:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/load-balancing-on-cookie-pattern-not-working/m-p/2350438#M40914</guid>
      <dc:creator>rajsures</dc:creator>
      <dc:date>2013-10-28T11:51:42Z</dc:date>
    </item>
    <item>
      <title>Load balancing on cookie pattern NOT working</title>
      <link>https://community.cisco.com/t5/application-networking/load-balancing-on-cookie-pattern-not-working/m-p/2350439#M40915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My 4 server pattern is like this JSESSIONID=C333C37FCF083D210A639ABB8BB9DB21.S01&lt;/P&gt;&lt;P&gt; or S02 or S03 or S04. 33 char + 3 char ServerID. As far as I know 1 char is 1 byte..... Anyway when I removed that or if I used lenght 10 and 3 for example it did not work. Conexion were round-robin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 15:59:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/load-balancing-on-cookie-pattern-not-working/m-p/2350439#M40915</guid>
      <dc:creator>sololuke2013</dc:creator>
      <dc:date>2013-10-28T15:59:49Z</dc:date>
    </item>
    <item>
      <title>Load balancing on cookie pattern NOT working</title>
      <link>https://community.cisco.com/t5/application-networking/load-balancing-on-cookie-pattern-not-working/m-p/2350440#M40916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Luke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By default if ACE cannot see that a user is already stuck to a server it will load balance that request normally which in your case could be round-robin(default) if you have not configured any specific LB method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, in your case once the client sends a request and server sets the "Cookie" in response you should see an entry in "show sticky database". If the client comes back with same cookie, ACE should send the request to the same server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should see "show sticky database" output, also install "Live" HTTP utility in Mozilla or iehttp in IE and see if the client is coming with same cookie again? At the same&amp;nbsp; time show sticky database should show what cookie value ACE is looking for when client comes back. Other option is to take packet capture on ACE itself and see what client is coming with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your first requirement should be fulfilled since by default the LB method is round-robin. Once the client comes with a cookie and there is an entry already the connection is stuck to the same server. If it is not then there is a misbehave and pcaps as well as outputs above mentioned should help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kanwal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 17:26:51 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/load-balancing-on-cookie-pattern-not-working/m-p/2350440#M40916</guid>
      <dc:creator>Kanwaljeet Singh</dc:creator>
      <dc:date>2013-10-28T17:26:51Z</dc:date>
    </item>
    <item>
      <title>Load balancing on cookie pattern NOT working</title>
      <link>https://community.cisco.com/t5/application-networking/load-balancing-on-cookie-pattern-not-working/m-p/2350441#M40917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets say for your client request, server sent in response the following cookie "JSESSIONID=C333C37FCF083D210A639ABB8BB9DB21.S01". Ace will hash the cookie value "&lt;SPAN style="font-size: 10pt;"&gt;C333C37FCF083D210A639ABB8BB9DB21.S01" and associates the hash value with the real server in the sticky table entry. So when your Authorize SRV sends a login request to the ACE, if the cookie value is the same as &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;C333C37FCF083D210A639ABB8BB9DB21.S01" then it will send the request to the same real server based on the sticky table entry.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;You can check the sticky table using the following command to see what cookie value is associated with which real server:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;show sticky database http-cookie "&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;C333C37FCF083D210A639ABB8BB9DB21.S01"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To confirm if the "client" and "Authorize SRV" send the same cookie in their request you could take a packet capture on the ACE. If the cookie value is different then the ACE will check the sticky table and according to the match it will send to the correct real server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please confirm the cookie sent by both client and the Authorize SRV are same but still the ACE sends it to a different server ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 13:05:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/load-balancing-on-cookie-pattern-not-working/m-p/2350441#M40917</guid>
      <dc:creator>rajsures</dc:creator>
      <dc:date>2013-10-29T13:05:41Z</dc:date>
    </item>
    <item>
      <title>Load balancing on cookie pattern NOT working</title>
      <link>https://community.cisco.com/t5/application-networking/load-balancing-on-cookie-pattern-not-working/m-p/2350442#M40918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Thank you for help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue solved using class map with cookie match on the fixed part .*S0x and a default "catch all" rules for traffic without cookie.&lt;/P&gt;&lt;P&gt;For failover I used backup on policy to move to other server farm.&lt;/P&gt;&lt;P&gt;I'm not using cookie stickiness anymore and all seems to work much better with that solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 16:37:02 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/load-balancing-on-cookie-pattern-not-working/m-p/2350442#M40918</guid>
      <dc:creator>sololuke2013</dc:creator>
      <dc:date>2013-11-01T16:37:02Z</dc:date>
    </item>
  </channel>
</rss>

