You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
The TCP/IP model (Transmission Control Protocol / Internet Protocol) is the practical protocol suite that powers the Internet. Unlike the theoretical OSI model, TCP/IP was designed by implementation — it grew out of real-world networking needs and is the foundation of all modern network communication.
| TCP/IP Layer | OSI Layers | Key Protocols |
|---|---|---|
| Application | Application, Presentation, Session | HTTP, HTTPS, DNS, SMTP, FTP, SSH |
| Transport | Transport | TCP, UDP |
| Internet | Network | IP (v4/v6), ICMP, ARP |
| Network Access | Data Link, Physical | Ethernet, Wi-Fi, PPP |
The TCP/IP model is simpler (4 layers vs 7) and maps directly to the protocols in use today.
IP is the workhorse of the Internet layer. It handles addressing and routing packets from source to destination.
192.168.1.1002001:0db8:85a3:0000:0000:8a2e:0370:7334| IP Header field | Value / Notes |
|---|---|
| Version | e.g. 4 or 6 |
| TTL | Time To Live |
| Protocol | e.g. TCP / UDP |
| Source IP Address | Sender address |
| Destination IP Address | Receiver address |
| Payload (Data) | The encapsulated data |
| Concept | Description |
|---|---|
| TTL (Time to Live) | Limits the number of hops a packet can take; prevents infinite routing loops |
| Fragmentation | Breaking large packets into smaller ones to fit the MTU of a link |
| MTU | Maximum Transmission Unit — the largest packet size a link can handle (typically 1500 bytes for Ethernet) |
TCP provides reliable, ordered, error-checked delivery of data between applications.
TCP establishes a connection before sending data:
sequenceDiagram
participant C as Client
participant S as Server
C->>S: SYN (1) Client sends SYN
S->>C: SYN-ACK (2) Server responds with SYN-ACK
C->>S: ACK (3) Client confirms with ACK
Note over C,S: Connection is now established
| Feature | Description |
|---|---|
| Sequencing | Each byte of data is numbered so the receiver can reassemble in order |
| Acknowledgements | The receiver confirms receipt of data segments |
| Retransmission | Lost segments are automatically resent |
| Flow control | The receiver advertises how much data it can handle (window size) |
| Congestion control | TCP slows down when network congestion is detected |
sequenceDiagram
participant C as Client
participant S as Server
C->>S: FIN (1) Client wants to close
S->>C: ACK (2) Server acknowledges
S->>C: FIN (3) Server is ready to close
C->>S: ACK (4) Client confirms
Note over C,S: Connection is now closed
UDP is a connectionless protocol that prioritises speed over reliability.
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.