About this interactive
Layers 5 to 7 (application, presentation, session): for a protocol such as HTTP these act as one layer, an application such as Chrome talking to one such as Apache. The unit is data. HTTPS adds TLS encryption to HTTP.
Layer 4, transport (segment): TCP breaks data into segments and numbers them, sets up and closes connections with the three-way handshake, addresses the service with a port number (80 for HTTP, 443 for HTTPS), resends what was lost and controls the flow. UDP is a simpler layer 4 protocol that does not do all of this.
Layer 3, network (packet): IPv4, IPv6 and ICMP. The IP header carries the source and destination IP addresses, and routers use the destination to choose the next hop.
Layer 2, data link (frame): local delivery, with MAC addresses and a header and trailer that each router strips and rebuilds for the next link.
Layer 1, physical (bits): the ones and zeros as signals on the medium, starting with the preamble, which lets the receiving card synchronise to the signal. The card then discards the preamble, which is why Wireshark never shows it.
About TechKnowSurge
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →