Why does Docker Swarm use VXLAN encapsulation in overlay networks?
hard📝 Conceptual Q10 of 15
Docker - Swarm
Why does Docker Swarm use VXLAN encapsulation in overlay networks?
ATo encapsulate Layer 2 Ethernet frames inside Layer 3 UDP packets for cross-host communication.
BTo encrypt all network traffic by default.
CTo assign static IP addresses to containers.
DTo limit network traffic to a single host.
Step-by-Step Solution
Solution:
Step 1: Understand VXLAN purpose in overlay networks
VXLAN encapsulates Layer 2 frames inside UDP packets to allow Layer 2 networks over Layer 3 infrastructure.
Step 2: Analyze options
To encapsulate Layer 2 Ethernet frames inside Layer 3 UDP packets for cross-host communication. correctly describes VXLAN encapsulation. To encrypt all network traffic by default. is incorrect; VXLAN itself does not encrypt. To assign static IP addresses to containers. is unrelated. To limit network traffic to a single host. is false.
Final Answer:
To encapsulate Layer 2 Ethernet frames inside Layer 3 UDP packets for cross-host communication. -> Option A
Quick Check:
VXLAN = Layer 2 over Layer 3 encapsulation [OK]
Quick Trick:VXLAN encapsulates Layer 2 frames in UDP for cross-host networking [OK]
Common Mistakes:
Confusing VXLAN with encryption
Thinking VXLAN assigns IPs
Believing VXLAN limits traffic to one host
Master "Swarm" in Docker
9 interactive learning modes - each teaches the same concept differently