Tunnels & VPNs
Read this concept as one more decision made about a packet in flight. The widget below lets you change the inputs and watch the consequence instead of memorising the rule.
Why it matters
A tunnel wraps one packet inside another so it can cross a network that would not carry the original. The outer headers decide the observable path while the inner headers identify the real endpoints.
On the wire
Generic encapsulation adds an outer IP header and a tunnel protocol header such as GRE or IPsec ESP before the original packet; ESP can encrypt and authenticate the inner payload. A VPN client typically sends the encrypted datagram to a gateway, which decapsulates and forwards the inner packet.
When it breaks
Adding encapsulation reduces the effective MTU, so packets near the original limit are fragmented or dropped unless PMTUD works. A lost outer packet hides the inner failure completely, and an expired security association silently black-holes the tunnel.
Frame builder
Click a field to flip a bit, then send it. The FCS covers Destination MAC through Data/Pad.
CRC-32 covers Destination MAC through Data/Pad; preamble and SFD are outside the FCS. Corrupt a field to see what happens.