Azure Internal Load balancer reply traffic

EL YACOUBI Mounir 0 Reputation points
2026-05-11T10:43:21.3333333+00:00

Hello,

I need to understand the traffic flow for an Azure load balancer. my concern it's about the return traffic(reply from the backend), witch IP the client will see from the reply of the server? it's the backend server IP or the frontend IP address?

thx,

Azure Load Balancer
Azure Load Balancer

An Azure service that delivers high availability and network performance to applications.


2 answers

Sort by: Most helpful
  1. Venkatesan S 10,830 Reputation points Microsoft External Staff Moderator
    2026-05-11T11:16:41.62+00:00

    Hi EL YACOUBI Mounir,

    Thanks for reaching out in Microsoft Q&A forum,

    I need to understand the traffic flow for an Azure load balancer. my concern it's about the return traffic(reply from the backend), witch IP the client will see from the reply of the server? it's the backend server IP or the frontend IP address?

    For an Azure Load Balancer (both Public and Internal), the client sees the frontend IP address (VIP) as the source of the server’s reply, not the backend VM’s private IP. This is true for normal configurations as well as for Internal Load Balancer‑only scenarios.

    How traffic flows

    • Inbound: The client sends traffic to the Load Balancer frontend IP. The load balancer performs DNAT, changing the destination IP to the backend VM’s IP.
    • Backend processing: The VM receives the packet with the frontend IP as the original destination, but the target at the OS level is its own IP.
    • Return path: On the way back, Azure’s SDN stack rewrites the source IP back to the frontend IP (VIP). From the client’s perspective, the reply always appears to come from that frontend IP, not from the backend VM’s IP.

    Effect of Floating IP (DSR)

    • When Floating IP is disabled, the return traffic is SNAT’d so the client clearly sees the frontend IP as source and the backend IP stays hidden.
    • When Floating IP is enabled, the backend VM can respond directly using the frontend IP (Direct Server Return), but the client still sees the frontend IP as the source of the reply; only the path may bypass the load balancer.

    Official documentation references

    Kindly let us know if the above helps or you need further assistance on this issue.

    Please do not forget to 210246-screenshot-2021-12-10-121802.pngand “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    Was this answer helpful?

    1 person found this answer helpful.

  2. AI answer

    2026-05-11T10:43:31.5533333+00:00

    For Azure Load Balancer, the client always sees the load balancer frontend IP as the source of the reply, not the backend VM’s IP.

    Azure Load Balancer operates at OSI layer 4 and performs SNAT/DNAT on the TCP/UDP headers. Inbound flows are directed from the frontend IP to a selected backend instance, and the response to that flow is returned to the client with the frontend IP as the source. The original client source IP is preserved when the packet reaches the backend VM, but it is not exposed as the backend VM’s IP to the client.

    So, from the client’s perspective, all traffic (request and reply) is with the load balancer frontend IP.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.