Syllabus Section: Computer Networks & Cloud (6/10)
Exam Focus: Common protocols (HTTP, DNS, FTP), Client-Server vs. P2P models, and the role of the application interface in network communication.
1. Introduction to the Application Layer
The Application Layer (Layer 7 of the OSI model) is the layer closest to the end user. It provides the interface between the software applications we use (like Chrome, Outlook, or Spotify) and the underlying network. In your NSCT Exam Prep, remember that this layer does not provide services to other layers, but rather provides services directly to the user’s software.
Key functions include:
- Network Virtual Terminal: Allowing users to log on to a remote host.
- File Transfer, Access, and Management (FTAM): Allowing users to access, retrieve, and manage files in a remote computer.
- Mail Services: Providing the basis for email forwarding and storage.
- Directory Services: Providing distributed database sources and access for global information about various objects and services.
2. Network Communication Models
How do applications interact over the network? There are two primary paradigms:
Client-Server Model
- Structure: A central, powerful Server provides services to multiple Clients.
- Characteristics: The server is always on and has a permanent IP address. Clients do not communicate directly with each other.
- Usage: Web browsing, centralized database access.
Peer-to-Peer (P2P) Model
- Structure: There is no dedicated server. Each node (peer) can act as both a client and a server.
- Characteristics: Highly scalable but difficult to manage and secure.
- Usage: BitTorrent, Skype (historically), Blockchain networks.
3. Essential Application Layer Protocols
For the exam, you must recognize these protocols and their default port numbers:
| Protocol | Full Name | Port | Description |
|---|---|---|---|
| HTTP | Hypertext Transfer Protocol | 80 | The foundation of the World Wide Web. |
| HTTPS | HTTP Secure | 443 | Encrypted web traffic using SSL/TLS. |
| DNS | Domain Name System | 53 | Translates human-readable names (https://www.google.com/search?q=google.com) to IP addresses. |
| FTP | File Transfer Protocol | 20, 21 | Used for transferring files between a client and a server. |
| SMTP | Simple Mail Transfer Protocol | 25 | Used for sending emails from a client to a server. |
| POP3 | Post Office Protocol v3 | 110 | Used to download emails from a server to a local client. |
| SSH | Secure Shell | 22 | Provides a secure encrypted connection to a remote device. |
4. Understanding DNS (The Phonebook of the Internet)
DNS is perhaps the most critical service at this layer. When you type a URL, your computer performs a “Recursive Query” to find the IP.
- Root Servers: Direct the query to Top-Level Domain (TLD) servers (.com, .org).
- Authoritative Servers: Provide the actual IP address for the specific domain.
- Caching: To save time, your ISP and OS store previous DNS results locally.
5. HTTP vs. HTTPS
- HTTP: Transmits data in plain text. Vulnerable to “Man-in-the-Middle” attacks.
- HTTPS: Uses a handshake to establish a secure, encrypted session. It ensures Confidentiality (privacy), Integrity (data isn’t changed), and Authentication (proves the server is who they say they are).
Next Topic: Wireless Technologies & Mobile Networks