Networking is complex. A layered model breaks the task of network communication into distinct layers, each with a specific responsibility. Benefits include:
Cambridge 9618 focuses on the TCP/IP model (also called the Internet model), which has four layers:
Provides network services directly to the application. Handles high-level protocols and data representation.
Provides end-to-end communication. TCP: connection-oriented, ensures delivery, flow/error control. UDP: connectionless, no guarantee of delivery, faster.
Handles logical addressing (IP addresses) and routing of packets across networks. Each packet may take a different route.
Handles physical transmission — hardware addressing (MAC), framing, error detection at the physical level. Deals with the actual network hardware.
| Feature | TCP (Transmission Control Protocol) | UDP (User Datagram Protocol) |
|---|---|---|
| Connection type | Connection-oriented (establishes connection before data) | Connectionless (sends without establishing connection) |
| Reliability | Guaranteed delivery — ACKs, retransmission | No guarantee — packets may be lost |
| Order | Packets reassembled in correct order | No ordering — may arrive out of sequence |
| Speed | Slower (overhead of reliability) | Faster (no acknowledgement overhead) |
| Error checking | Yes — flow control and error correction | Minimal — checksum only |
| Use cases | Web browsing, email, file transfer (correctness crucial) | Video streaming, VoIP, online gaming, DNS |
TCP establishes a connection using a three-way handshake before data is transmitted:
As data passes down through the TCP/IP layers (sending), each layer adds its own header (and sometimes a footer/trailer). This process is called encapsulation.
At the receiving end, each layer removes its header — called decapsulation — until the original data is restored.
8 questions · instantly marked · Cambridge 9618 standard
| Term | Definition |
|---|
10 questions · 10 marks · 10 minutes