About this interactive
The OSI model groups what protocols do into seven layers. Data is wrapped from the top down on the sending side and unwrapped from the bottom up on the receiving side.
On the way down: the application layers (5 to 7) hand over data; layer 4 adds a TCP header with the destination port, making a segment; layer 3 adds an IP header with the destination IP address, making a packet; layers 2 and 1 wrap it in a frame and send it as bits, starting with a preamble that lets the receiver synchronise to the signal.
Layers 1 and 2 only deliver to the next device. Each router strips them off, reads the IP header to choose the next hop, and wraps the packet in whatever the next link uses: Ethernet on a LAN, PPP or HDLC between routers. The IP addresses and the TCP segment travel end to end.
On the way up, the receiver removes the frame, checks the IP address, reads the port in the TCP header, and hands the data to the program on that port. Because each layer has its own job, one layer can be upgraded, such as a new kind of link, without changing the others.
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 →