PROTOCOL EXPLORERHOW THE INTERNET TALKS

OSI 

Protocols

Protocol overview

PACKET FLOW

NO.TIMESOURCEDESTINATIONPROTOCOLINFOSIZE
Try it hands-on: build a network and watch real ARP, DNS, DHCP and ICMP packets in the Network Lab.

How IPsec works

IPsec builds site-to-site and remote VPNs: IKEv2 authenticates both ends and agrees on keys, then ESP encrypts the actual traffic.

Layer: Network (OSI layer 3) · Port: 500 / 4500 · Transport: UDP + ESP · Format: IKE messages + ESP packets · Standard: RFC 7296, RFC 4303

IPsec packet flow

  1. IKEv2 Router → VPN Gateway: IKE_SA_INIT (proposals, DH)
  2. IKEv2 VPN Gateway → Router: IKE_SA_INIT response
  3. IKEv2 Router → VPN Gateway: IKE_AUTH (identity, certificate/PSK)
  4. IKEv2 VPN Gateway → Router: IKE_AUTH response - tunnel up
  5. ESP Router → App Server: Encrypted packet SPI 0x1a2b

Other protocols: HTTPS · SSH · TLS/SSL · DNSSEC · DNS over HTTPS · Wi-Fi · WPA3 · RADIUS · Captive Portal · HTTP Proxy · SOCKS5 · Reverse Proxy · WireGuard