Forum Discussion

girishb's avatar
girishb
Icon for Cirrus rankCirrus
Nov 18, 2019

cookies vs source ip affinity persistance scenario

Hi Team

 

Good day..!

 

in which scenario, cookies persistance used..?

in which scenario, source ip affinity persistance used..?

 

please explain me in details

  • Cookie persistence is Web layer, Source IP affinity is Layer TCP layer.

    If you want to have stickiness based on sessions, you go with cookie.

    If you want to have stickiness based on client machine IP, you go with affinity.

     

    The pro's & con's can be read more on the articles.

  • Cookie persistence is L7. IP persistence is L3. Typically, if customers are behind a proxy/nat device, it is better to use cookie persistence in order to distinguish individual sessions.

     

    If you are not really sure, use cookie persistence. It will cover most common use cases. If you are using cookie persistence, enable OneConnect with /32 netmask.