In a VMware AVI Load Balancer deployment where a Virtual Service is configured with TCP/UDP Fast path network profiles, Existing client connections may time out following an uplink firewall failover.
The issue is observed under the following conditions:
The following behavior can be observed in the VS PCAP:
MAC-A: MAC address of the firewall prior to the uplink firewall failover
MAC-B: MAC address of the firewall after the uplink firewall failover
This behavior is by design and is related to Fast Path flow optimization in VMware Avi Load Balancer.
For performance reasons, AVI caches the client MAC address when a flow is established. This cached MAC address is used for all subsequent packets belonging to that flow to avoid repeated route lookups.
To preserve Fast Path performance:
As a result, if the uplink firewall changes its MAC address during an active flow, AVI continues to forward the return traffic using the cached MAC address.
To prevent traffic disruption during firewall failover, use one of the following solutions:
Configure the Virtual Service to use the System-UDP-Per-Pkt profile for UDP and TCP-Proxy profile for TCP connections.
To check or change the network profile on a Virtual Service, go to Applications > Virtual Services > [VS Name] > Settings > Network Profile
Enable a Virtual MAC (VMAC) feature on the uplink firewall so that the MAC address remains consistent during failover events. This ensures AVI LB does not observe a MAC address change and existing UDP flows remain unaffected
This ensures Avi does not detect a MAC address change, and existing TCP and UDP flows remain unaffected.