As asked
Map BGP, OSPF, ARP, ICMP, TLS, and VXLAN to their OSI layers, and explain how packets from a Layer 7 application pass down and back up the stack when crossing a routed network. Where does each protocol's header get added and stripped?
Sample answer outline
Application data is passed to TCP/UDP (L4) which adds port header; IP (L3) adds src/dst IP; Ethernet (L2) adds MAC addresses, resolved via ARP. On the wire (L1) bits are transmitted. At each router, L2 header is stripped and re-written with new src/dst MAC for the next hop; L3 IP header TTL is decremented but src/dst IP unchanged end-to-end. ARP is L2 (between L2 and L3). ICMP is L3. TLS is between L4 and L7 (session layer). OSPF runs over IP (L3). BGP runs over TCP (L4). VXLAN encapsulates at L2 and carries it over L3.
Expect these follow-ups
- Why does ARP not exist in IPv6 and what replaces it?
- At which OSI layer does a load balancer operate when it inspects HTTP headers to make routing decisions?