
- We’ll meet the core protocols that run the Internet.
- You’ll learn how devices get addresses, how data is split and wrapped, and how endpoints stay in sync.
- Finally, we’ll map protocols and addresses to the layers in the network stack so you can see how everything fits together.
- Transmission Control Protocol (TCP): provides reliable, ordered delivery of a byte stream between processes.
- Internet Protocol (IP): handles addressing and routing so packets can travel across multiple networks.
- Application layer — the message (e.g., an HTTP GET). Think: writing a letter.
- Transport layer — the segment (adds port and transport flags). Think: sealing the letter in an envelope with delivery instructions.
- Network layer — the packet (adds source/destination IP). Think: adding a destination label for global travel.
- Data link layer — the frame (adds MAC addresses or link-specific headers). Think: loading it into a local delivery van for the next hop.
- Physical layer — the bits (actual electrical or radio signals transmitted). Think: the wheels turning or radio pulses being sent.
| Layer (TCP/IP) | Data unit | Primary responsibilities | Common protocols | Postal analogy |
|---|---|---|---|---|
| Application | Message | High-level services & formats (HTTP, SMTP, DNS) | HTTP, SMTP, DNS, FTP, SSH | Writing a letter |
| Transport | Segment | End-to-end communication, ports, reliability/flow | TCP, UDP | Sealing and labeling an envelope |
| Network | Packet | Logical addressing and routing across networks | IP (IPv4/IPv6), ICMP | Adding a destination label for long-distance travel |
| Data link | Frame | Local network delivery, MAC addressing, framing | Ethernet, ARP, PPP | Packing into a van for the local hop |
| Physical | Bits | Electrical/radio/optical transmission of raw bits | Ethernet PHY, Wi-Fi PHY | The wheels turning / radio signal |

Encapsulation: wrapping data with protocol headers/trailers as it moves down the stack.
Decapsulation: removing those headers/trailers as it moves up the stack at the receiver.
Decapsulation: removing those headers/trailers as it moves up the stack at the receiver.
B. Encapsulation is the process of wrapping the data layer by layer.
C. The TCP/IP model defines a universal structure for sending and receiving data reliably.
D. The OSI model is more widely used in real networks than TCP/IP. Pause now for thinking time. Answers: B and C are true. A and D are false.
- A is false — TCP/IP was created to enable diverse systems to interoperate, not to block compatibility.
- B is true — encapsulation is exactly the process of adding headers/trailers as data descends the layers.
- C is true — TCP/IP provides a shared framework used across the Internet; protocols at different layers implement reliability, addressing, and routing.
- D is false — OSI is a conceptual model useful for education; TCP/IP is the practical model implemented across real networks.
- Read RFC 791 for the original IPv4 specification and RFC 793 for TCP (historical perspective).
- For practical overviews and tutorials, see the IETF and general networking resources: