Communication Networks · Visualized

TCP/IP Model

Reference Models

The OSI and TCP/IP layer stacks — how every piece of data is wrapped, addressed and unwrapped.

2 interactive subtopics — each one animated, step-through and explained.

TCP/IP Model

Reference Models

While OSI is the teaching model, the deployed Internet uses TCP/IP: four practical layers that fold OSI’s top three into one Application layer and merge L1–L2 into Network Access. Every protocol you name — HTTP, DNS, TCP, UDP, IP, Ethernet — lives in a specific slot of this stack.

How TCP/IP Model Works

  1. Application (OSI L5–7): HTTP, HTTPS, DNS, SMTP, FTP — produce and consume messages.
  2. Transport (OSI L4): TCP adds reliability and ordering; UDP stays fast and connectionless.
  3. Internet (OSI L3): IP addresses and routes packets between networks; ICMP reports problems.
  4. Network Access (OSI L1–2): Ethernet, Wi-Fi, PPP deliver frames over the local hop.
  5. A packet leaving your laptop carries all four layers stacked inside one frame.

TCP/IP Model Worked Example

Try it: Play — the highlight walks up both stacks showing which OSI layers map where, and which protocols sit on each floor.

HTTP sits on TCP, TCP rides IP, IP rides Ethernet. The mapping explains why TLS (Presentation-ish) lives inside the Application layer of TCP/IP documents.

ApplicationMessage · OSI L5 – L7HTTPDNSSMTPTLSTransportSegment · OSI L4TCPUDPInternetPacket · OSI L3IPICMPNetwork AccessFrame · OSI L1 – L2EthernetWi-FiApplicationPresentationSessionTransportNetworkData LinkPhysicalTCP/IP — what actually runsOSI — how you learn it
Stage 1 / 4
Application (OSI L5 – L7) — protocols: HTTP, DNS, SMTP, TLS. Unit produced here: Message.

TCP/IP Model: Key Facts to Remember

Layer count4 practical layers vs OSI’s 7 conceptual ones
SloganIP runs “over everything”; applications run “over IP”
Standardsdefined by RFCs (791 for IP, 793 for TCP) rather than ISO committees

Recommended resourcesAffiliate links · may earn us a commission

Recommended for learners

Cloud hosting for side projectsShip the portfolio project that gets you hired — free credits for new accounts.Claim credits Pro code editor & AI assistantWrite, debug and explain code faster while you practice the patterns here.Try it free Structured coding coursesVideo courses that pair well with visual practice — pick one language and go deep.Browse courses

See how packets really travel

Networks are built on the structures and algorithms you can watch step by step — queues, trees, and routing algorithms.