vxlan frame format and forwarding

15
VXLAN Encapsulation and its Frame Format By Mohammed Umair

Upload: mohammed-umair

Post on 17-Jan-2017

40 views

Category:

Technology


3 download

TRANSCRIPT

Page 1: Vxlan frame format and forwarding

VXLAN Encapsulation and its Frame FormatBy Mohammed Umair

Page 2: Vxlan frame format and forwarding

VXLAN Frame Format A Native/Original Ethernet frame will be

encapsulated with four Header. VXLAN Header is a 8 byte field that has1) Flags (8 bits): I Flag is 1 bit, set to 1 for Valid VNI,

rest 7 bits are reserved2) VXLAN Network Identifier: is a 24 bit value used

to designate the individual VXLAN overlay network on which the communicating VMs are situated.

3) Reserved fields (24 bit and 8 bit): must be set to 0

Page 3: Vxlan frame format and forwarding

VXLAN Frame Format Contd… Outer UDP Header: Outer UDP Header with a

Source Port provided by the VTEP and the Destination Port being a well known Port Assigned by IANA

1) Destination Port : IANA has assigned Destination Port number 4789 for VXLAN

2) Source Port: It is recommended that the UDP Source port be calculated using Hash of fields from the inner packet. It is recommended that the value be in the range between 49152-65535

3) UDP Checksum

Page 4: Vxlan frame format and forwarding

VXLAN Frame Format Contd… Outer IP Header: Having Source IP and

Destination IP Address.1) Source IP Address: Source IP Address indicates

the IP Address of the VTEP over which the communicating VM is running or communicating VM is connected to.

2) Destination IP Address: The Destination IP Address can be Unicast or Multicast IP Address. Unicast IP Address indicates the Destination VTEP IP. Multicast IP is used when Multicast routing is used for VXLAN Signaling.

Page 5: Vxlan frame format and forwarding

VXLAN Frame Format Contd… Outer Ethernet Header 1) Outer Destination MAC Address: This

Address can be of Target VTEP or of an intermediate Layer 3 router.

2) Outer Source MAC Address: This Address is MAC address of the Tunnel Source VTEP.

3) Outer VLAN Tag is optional.

Page 6: Vxlan frame format and forwarding

Outer Ethernet HeaderOuter Destination MAC Address

Outer Destination MAC Address

Outer Source MAC Address

Outer Source MAC Address

Optional Ethtype = C-TAG 802.1Q

Outer.VLAN Tag Information

Ethertype = 0x0800 (for IPV4)

Ethertype = 0x86DD (for IPV6)

Page 7: Vxlan frame format and forwarding

Outer IPV4 HeaderVersio

n

Header

LengthTOS Or DiffServ Total Length

Identifier FLAGS

Fragment Offset

TTL Protocol=17(UDP)

Header Checksum

Outer Source IPV4 Address

Outer Destination IPV4 Address

Page 8: Vxlan frame format and forwarding

Outer IPV6 Header (if IPV6 is used as underlay)Versio

nTraffic Class

Flow Label

Payload Length NxtHdr=17(UDP)

Hop Limit

Outer Source IPv6 Header

Outer Destination IPv6 Header

Page 9: Vxlan frame format and forwarding

Outer UDP Header

Source Port Destination Port = VxLAN Port

UDP Length UDP Checksum

Page 10: Vxlan frame format and forwarding

VXLAN Header

R R R R I R R R Reserved

VXLAN Network Identifier (VNI) Reserved

Page 11: Vxlan frame format and forwarding

Inner (Native) Ethernet HeaderInner Destination MAC Address

Inner Destination MAC Address

Inner Source MAC Address

Inner Source MAC Address

Optional Ethtype = C-TAG 802.1Q

Inner.VLAN Tag Information

Page 12: Vxlan frame format and forwarding

Payload Ethertype of Original Payload

Original Ethernet Payload (FCS of original Ethernet Frame Not Included)

Page 13: Vxlan frame format and forwarding

Frame Check Sequence

New FCS (Frame Check Sequence) for Outer Ethernet Frame

Page 14: Vxlan frame format and forwarding

Sample Frame with VxLAN Header

Page 15: Vxlan frame format and forwarding

Thank You