The OSI (Open Systems Interconnection) model is a conceptual framework that describes how data travels from one device to another across a network. Each layer handles a specific task and communicates with the layers above and below it.
| Layer | Name | Protocols/Examples | Function |
|---|---|---|---|
| 7 | Application | HTTP, HTTPS, FTP, SMTP, DNS, POP3 | Interface for network services used by applications |
| 6 | Presentation | SSL/TLS, JPEG, MPEG, ASCII | Data formatting, encryption, compression |
| 5 | Session | NetBIOS, PPTP | Establishes, maintains, terminates communication sessions |
| 4 | Transport | TCP, UDP | End-to-end communication, flow control, error correction |
| 3 | Network | IP, ICMP, routers | Logical addressing (IP), routing packets between networks |
| 2 | Data Link | Ethernet, Wi-Fi MAC, switches | Physical addressing (MAC), framing, error detection |
| 1 | Physical | Cables, NICs, hubs, repeaters | Bit transmission over physical medium (electrical/optical/radio) |
Mnemonic (bottom to top): Please Do Not Throw Sausage Pizza Away
| Feature | TCP (Transmission Control Protocol) | UDP (User Datagram Protocol) |
|---|---|---|
| Connection | Connection-oriented (3-way handshake) | Connectionless |
| Reliability | Guaranteed delivery — lost packets retransmitted | No guarantee — packets may be dropped |
| Order | Packets reordered at destination | No ordering |
| Speed | Slower (overhead) | Faster (low overhead) |
| Use cases | Web browsing, email, file transfer | Video streaming, online gaming, VoIP, DNS |
TCP 3-way handshake: SYN → SYN-ACK → ACK. Used to establish a reliable connection before data transfer begins.
| Protocol | Port | Purpose |
|---|---|---|
| HTTP | 80 | HyperText Transfer Protocol — requesting/serving web pages (unencrypted) |
| HTTPS | 443 | HTTP Secure — HTTP encrypted via TLS/SSL |
| FTP | 20/21 | File Transfer Protocol — transferring files between client and server |
| SMTP | 25/587 | Simple Mail Transfer Protocol — sending email |
| POP3 | 110 | Post Office Protocol — downloading email from server (deletes from server) |
| IMAP | 143 | Internet Message Access Protocol — email stored on server, synced across devices |
| DNS | 53 | Domain Name System — resolves domain names to IP addresses |
| SSH | 22 | Secure Shell — encrypted remote access to command line |
As data passes down the OSI layers, each layer adds its own header (and sometimes trailer) — this is called encapsulation. At the destination, each layer strips its header in reverse — this is decapsulation.
8 questions · instantly marked · AQA 7517 standard
| Term | Definition |
|---|
10 questions · 10 minutes