Pod-to-Pod on the Same Node
Two Pods on one Node talk, and with the bridge plugin the packet never touches the network card of the machine. How does it get across, how does the sender find the other Pod, and why is nothing rewritten?
Play the animation 4 steps, animated, plays on a computer or a tablet
Pod-to-Pod on the Same Node, step by step
-
With the bridge plugin, both Pods draw from the Node subnet 10.244.1.0/24, so B is on-link. The route to B carries no gateway: the frame goes straight onto the wire, with no router in between. What A still lacks is the MAC behind 10.244.1.6.
Play from step 1 -
A broadcasts an ARP request out eth0 asking who holds 10.244.1.6. The veth peer hands it to cni0 (the Node Linux bridge). The bridge learns the port A sits on and floods the request out every port but that one. B answers with a unicast reply carrying its MAC, and as that reply crosses cni0 the bridge learns the port B sits on too.
Play from step 2 -
The MAC for B is known and the port of B is in the forwarding table, so A sends the data frame as a unicast. It crosses the veth onto cni0, which now switches it out that one port instead of flooding. This is plain layer 2 forwarding inside the Node, so the packet never touches the physical NIC.
Play from step 3 -
B receives the packet with the source IP of A intact. Traffic to a Pod IP on this Node is never rewritten: no SNAT, no DNAT, no overlay encapsulation, just one bridge hop between two veth ports. Every Pod IP is routable cluster-wide, which is the flat-network promise.
Play from step 4