Internet Model (Layers, Protocols, Encapsulation)

Context: FIT1047_MOC · THE framework of the networks half — every later protocol slots into one of these five layers · abstraction, same trick as the OS

Quick Revision

  • 🎯 Objective: five layers, each with a job, an interface to the layer above/below, and a protocol to its peer on the other machine.
  • 📦 Core Components: Application → Transport → Network → Data Link → Physical, each wrapping the message in its own PDU.
  • ⚡ Key Constraint: protocols run HORIZONTALLY (peer layer ↔ peer layer), interfaces run VERTICALLY (layer ↔ adjacent layer) — mixing these up breaks every layer question.

📝 Core

The Five Layers (Internet model)

LayerJob (lecture phrasing)PDUExample protocol
Applicationmanage user dataMessageHTTP (World Wide Web (HTTP and HTML))
Transportbreak into packets, make sure they arriveSegmentTCP
Networkwhere should packets go? (routing)PacketIP
Data Linkcomputer-to-computer (one hop)FrameEthernet
Physicalcables, Wi-Fi, fibreBit
  • Why layers ➔ wildly diverse hardware/software must interoperate ⟹ hierarchical abstraction with well-defined tasks + interfaces — “typical software engineering”.
  • Encapsulation ➔ going down the stack, each layer wraps the upper layer’s PDU and adds its own header: Message → Segment → Packet → Frame → Bits; unwrapped in reverse on arrival.
  • Who climbs how high ➔ end hosts run all five layers; a switch operates up to Data Link; a router up to Network — that’s why routers can join different link technologies (Ethernet, fibre, ADSL, Wi-Fi).

⚠️ Common Mistakes

  • 💡 Protocol vs interface ➔ protocol = peer-to-peer language across machines; interface = the service boundary between adjacent layers on ONE machine.
  • 💡 PDU names are per-layer ➔ segment/packet/frame aren’t synonyms; the exam asks exactly which layer calls it what.
  • 💡 Routers don’t read Transport headers ➔ a device only unwraps as far as its top layer.

🧠 Active Recall