分类: 网络与安全
2016-09-22 17:16:22
http://blogs.vmware.com/vsphere/2013/05/vxlan-series-how-vtep-learns-and-creates-forwarding-table-part-5.html
In this post I am going to describe how VTEPs learn about the
virtual machines connected to the logical Layer 2 networks. The learning
process is quite similar to a transparent bridge function. As
transparent bridges learn based on the packets received on the bridge
ports, the VTEP also learn based on the inner and outer header of the
packets received.
Let’s take an example to illustrate the VTEP learning process.
As shown in the diagram above there are two Hosts (Host1, Host 2) on which VTEPs are configured, and each host has one virtual machine connected to logical layer 2 network, identified as VXLAN 5001. Both the virtual machines are powered on and both VTEPs have joined the multicast group 239.1.1.100. Each VTEP has its own forwarding table, which is initially empty as shown in the diagram below.
How do the forwarding tables get populated?
We will take an example of virtual machine on Host 1 trying to communicate with the virtual machine on the Host 2. First, an ARP request is sent from the virtual machine MAC1 to find the MAC address of the virtual machine on Host 2. The ARP request is a broadcast packet.
The diagram above shows the packet flow:
The entry in the forwarding table of Host 2 VTEP is used during lookup process. The packet flow shown in the diagram below explains the forwarding table lookup for a unicast packet sent from a virtual machine on Host2.
The Host1 VTEP receives the unicast packet and it also learns about the location of the virtual machine MAC2 as shown in the diagram below.
As you can see the forwarding table entries are populated based on the inner and outer header fields of the encapsulated packet. Similar to the transparent bridge the forwarding table entries are removed after aging timer expires. One of the common questions I get is what happens after a virtual machine is vMotioned.
In the next few posts I will cover how the forwarding table entries get modified after vMotion of a virtual machine from one host to another.
Here are the links to Part 1, Part 2, Part 3, Part 4.
Get notification of these blogs postings and more VMware Networking information by following me on Twitter: