You are currently viewing How Ethernet Works: From Plug In to TCP, Every Frame on the Wire

How Ethernet Works: From Plug In to TCP, Every Frame on the Wire

Learning path · all chaptersDigital track D1 of 7: From plug-in to TCP: the network stackD2 SPI →
$ ./plug-in-to-tcp --step-by-step

From plug-in to TCP: every frame on the wire

This walkthrough goes from PHY auto-negotiation through DHCP, ARP, the router and the TCP handshake to the first data segment. Every frame below is built byte by byte, and the IP, UDP and TCP checksums and the Ethernet FCS are computed live from the bytes shown. Tap a link in the network to see the frame as it looks on that cable.

Network · tap a link to choose which cable you look at

How Ethernet Works Step by Step: 100BASE-TX, 1000BASE-T, 802.1Q VLAN, DHCP, ARP, IPv4 Routing, and TCP Handshake

Understand how Ethernet works on the physical wire and across switches and routers by inspecting every Ethernet II frame byte by byte: 100BASE-TX and 1000BASE-T link negotiation, DHCP DORA, RFC 5227 ARP, 802.1Q VLAN tags, IPv4 routing with TTL decrement, TCP three way handshake, and CRC-32 FCS calculation.

Device state after this step

The client MAC, VLAN, IPs, xid, DHCP Discover bytes and timing come from the capture in the deck. Router and server MACs, sequence numbers, IP IDs and lease values are illustrative. All checksums and FCS values are calculated from the bytes shown.

Leave a Reply