Topmost layer (Layer 7) of OSI model. Provides network services directly to user applications. Handles interface between user software and network. Doesn't transmit data - formats and requests lower layers.
Key Services: File transfer, email, web access, remote login, name resolution
Translates human-readable domains (google.com) → machine-readable IPs (142.250.190.78)
google.com| Type | Purpose | Example |
|---|---|---|
| A | IPv4 | google.com → 142.250.190.78 |
| AAAA | IPv6 | google.com → 2607:f8b0:... |
| CNAME | Alias | www → google.com |
| MX | google.com → gmail-smtp... | |
| NS | Name server | google.com → ns1.google.com |
Port: UDP/TCP 53 | Security: DNSSEC
| Mode | Client Says | Connection |
|---|---|---|
| Active | "You call me" | Server→Client (port 20) |
| Passive | "I'll call you" | Client→Server (random port) |
| Command | Purpose | Example |
|---|---|---|
| USER | Username | USER john |
| PASS | Password | PASS secret123 |
| LIST | Directory | LIST |
| RETR | Download | RETR file.txt |
| STOR | Upload | STOR file.txt |
Ports: Control=21, Data=20 | Security: FTPS, SFTP
| Method | Purpose | Idempotent | Safe |
|---|---|---|---|
| GET | Retrieve | Yes | Yes |
| POST | Send | No | No |
| PUT | Update | Yes | No |
| DELETE | Remove | Yes | No |
| Code | Category | Meaning |
|---|---|---|
| 200 | Success | OK |
| 301 | Redirection | Moved Permanently |
| 404 | Client Error | Not Found |
| 500 | Server Error | Internal Error |
Ports: HTTP=80, HTTPS=443
Remote terminal access over TCP 23. Gets interactive shell remotely.
| Feature | TELNET | SSH |
|---|---|---|
| Encryption | None | Encrypted |
| Auth | Password | Keys+Password |
| Security | Insecure | Secure |
| Port | 23 | 22 |
| Version | Speed | Range | Feature |
|---|---|---|---|
| 4.0 | 1 Mbps | 10m | Low Energy |
| 5.0 | 2 Mbps | 40m | Better range |
| 5.2 | 2 Mbps | 240m | LE Audio |
Architecture: Piconet (1 master + 7 slaves), Scatternet | Frequency: 2.4 GHz
| Type | Layer | Inspection |
|---|---|---|
| Packet Filter | L3 | IP/Port |
| Stateful | L3+L4 | Connection tracking |
| Proxy | L7 | Deep inspection |
| NGFW | All | App-aware + threats |
| Term | Meaning |
|---|---|
| Symmetric | Same key (AES) |
| Asymmetric | Public/private (RSA) |
| Hash | One-way (SHA-256) |
| Signature | Authenticity proof |
Algorithms: AES-256, RSA-4096, SHA-256, Diffie-Hellman