how long azure ilb keep the session afinity if i enabled 3 tulple hashing

JAYAKUMAR, PRABHUDOSS 21 Reputation points
2022-08-26T05:34:47.047+00:00

Hi ,

Does Azure ILB has any timeout or clear the session affinity when 3 tuple hashing enabled? or always session goes to the same VM when same client ip and protocol matches?

Scenario:

Azure ILB behind two vm's:

same client ip is sending TCP traffic , if first backend VM is taking traffic, If the connection closes subsequent goes to the same VM?

Is that flows goes to same vm forever until that vm goes down? or is the any session cache expiry time on Azure ILB?

Azure Load Balancer
Azure Load Balancer
An Azure service that delivers high availability and network performance to applications.
402 questions
0 comments No comments
{count} votes

Accepted answer
  1. KapilAnanth-MSFT 35,001 Reputation points Microsoft Employee
    2022-08-26T13:51:31.313+00:00

    Hi @JAYAKUMAR, PRABHUDOSS ,

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
    I understand that you would like to know how long Azure Load Balancer would maintain the session affinity.

    Azure Load Balancer uses Hashing mechanisms to distribute traffic.
    The Hashing Function(s) used will not change, so, this means, as long as none of the VMs go down, the traffic from same source and protocol should go to the same backend VM only.

    In other words, there are no expiry for this hashing.

    Kindly let me know if you have further questions on this.

    Cheers,
    Kapil

    ----------------------------------------------------------------------------------------------------------------

    Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.

    0 comments No comments

0 additional answers

Sort by: Most helpful