Overlay networks: VXLAN between two hosts
Select an icon to see what it is.
Step 4 of 6
Host A wraps it in VXLAN
The vxlan device looks up which host owns 02:42:0a:0a:00:03 and finds host B. It puts the whole inner frame behind a VXLAN header with the VNI, then a UDP header to port 4789, an IPv4 header from 10.0.0.20 to 10.0.0.21, and an outer Ethernet header. This adds 50 bytes.
On the wire between the hosts
outer Ethernet 14 B + IPv4 20 B + UDP 8 B + VXLAN 8 B = 50 B overheadthen the inner frame, unchanged: 14 B + 20 B + 20 B
Ethernet · 14 B
Destination MAC 48b
<MAC of host B>
Source MAC 48b
<MAC of host A>
EtherType 16b
0x0800 (IPv4)
IPv4 · 20 B
Version 4b
4
IHL 4b
5 (20 B)
DSCP/ECN 8b
0
Total length 16b
90
Identification 16b
0x7a1c
Flags 3b
0
Fragment offset 13b
0
TTL 8b
64
Protocol 8b
17 (UDP)
Header checksum 16b
0xec4e
Source IP 32b
10.0.0.20
Destination IP 32b
10.0.0.21
UDP · 8 B
Source port 16b
51337
Destination port 16b
4789
Length 16b
70
Checksum 16b
0 (not computed)
VXLAN · 8 B
Flags 8b
0x08 (VNI valid)
Reserved 24b
0
VNI 24b
4097
Reserved 8b
0
Ethernet · 14 B
Destination MAC 48b
02:42:0a:0a:00:03
Source MAC 48b
02:42:0a:0a:00:02
EtherType 16b
0x0800 (IPv4)
IPv4 · 20 B
Version 4b
4
IHL 4b
5 (20 B)
DSCP/ECN 8b
0
Total length 16b
40
Identification 16b
0x0000
Flags 3b
DF
Fragment offset 13b
0
TTL 8b
64
Protocol 8b
6 (TCP)
Header checksum 16b
0x26b8
Source IP 32b
10.10.0.2
Destination IP 32b
10.10.0.3
TCP (simplified: options omitted) · 20 B
Source port 16b
41234
Destination port 16b
3000
Sequence number 32b
0x2b3c4d5e
Acknowledgment number 32b
0
Data offset 4b
5 (20 B)
Reserved 3b
0
Flags 9b
SYN
Window 16b
64240
Checksum 16b
0x7b74
Urgent pointer 16b
0