No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


CloudEngine 12800, 12800E, 8800, 7800, 6800, and 5800 Series Switches VXLAN Best Practices

Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
VXLAN Packet Format

VXLAN Packet Format

VXLAN is a network virtualization technique that performs MAC-in-UDP encapsulation by adding a UDP header and a VXLAN header before an original Ethernet packet. Figure1 shows the VXLAN packet format.

Figure 1-5 VXLAN packet format
Table 1-2 Fields in the VXLAN packet format



VXLAN header

  • VXLAN Flags (8 bits): The value is 00001000.
  • VNI (24 bits): VXLAN Segment ID or VXLAN Network Identifier used to identify a VXLAN segment.
  • Reserved fields (24 bits and 8 bits): must be set to 0.

Outer UDP header

  • DestPort: destination port number, which is 4789 for UDP.
  • Source Port: source port number, which is calculated by performing the hash operation on the inner Ethernet frame headers.

Outer IP header

  • IP SA: source IP address, which is the IP address of the local VTEP of a VXLAN tunnel.
  • IP DA: destination IP address, which is the IP address of the remote VTEP of a VXLAN tunnel.

Outer Ethernet header

  • MAC DA: destination MAC address, which is the MAC address mapped to the next-hop IP address based on the destination VTEP address in the routing table of the VTEP on which the VM that sends packets resides.
  • MAC SA: source MAC address, which is the MAC address of the VTEP on which the VM that sends packet resides.
  • 802.1Q Tag: VLAN tag carried in packets. This field is optional.
  • Ethernet Type: Ethernet packet type. The value is 0x0800 in IP packets.
Updated: 2018-07-02

Document ID: EDOC1100004176

Views: 18077

Downloads: 556

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Previous Next