Skip to content

Overlay networks: VXLAN between two hosts

Select an icon to see what it is.

Step 3 of 6

web sends a normal packet

web connects to 10.10.0.3:3000. It builds an ordinary Ethernet frame to api's MAC address, with an IPv4 and TCP header inside. The container does not know api is on another machine.

Inner frame (Ethernet 14 B + IPv4 20 B + TCP 20 B)

02:42:0a:0a:00:02 -> 02:42:0a:0a:00:03
10.10.0.2:41234 -> 10.10.0.3:3000 flags=SYN

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