Introduction
The application layer provides network services used by software applications. It includes protocols for web browsing, email, name resolution, address assignment, file sharing, and other user-facing network functions.
Application, Presentation, and Session Functions
In the TCP/IP model, many functions associated with the OSI application, presentation, and session layers are grouped into the application layer.
These functions may include:
- Application network services
- Data formatting
- Encryption support
- Compression
- Session establishment and management
TCP/IP Application Layer Protocols
Common protocols include:
| Protocol | Purpose |
|---|---|
| HTTP | Transfers web content. |
| HTTPS | Transfers web content securely using encryption. |
| SMTP | Sends email between clients and servers or between mail servers. |
| POP3 | Downloads email from a server to a client. |
| IMAP | Synchronizes email while keeping messages on the server. |
| DNS | Translates domain names to IP addresses. |
| DHCP | Automatically assigns IP configuration. |
| FTP/SFTP | Transfers files. |
| SMB | Shares files and printers in many local networks. |
Client-Server Communication
In a client-server model, a client requests a service and a server responds. For example, a browser requests a webpage from a web server. The server sends back the requested content if the request is valid and allowed.
Peer-to-Peer Communication
In peer-to-peer networking, devices can share resources directly without a dedicated server. A device may be a client for one exchange and a server for another. Peer-to-peer applications may also use central services to help peers find resources.
Web Protocols: HTTP and HTTPS
HTTP is used to request and deliver web content. HTTPS adds encryption and authentication support, protecting the communication from easy interception or tampering.
A typical web request involves:
- The user enters a URL.
- DNS resolves the domain name to an IP address.
- The browser opens a connection to the server.
- The browser sends an HTTP or HTTPS request.
- The server sends a response.
- The browser renders the page.
Email Protocols
Email uses multiple protocols because sending and retrieving mail are different tasks.
| Protocol | Role |
|---|---|
| SMTP | Sends outgoing mail. |
| POP3 | Retrieves mail by downloading it to a client. |
| IMAP | Retrieves and synchronizes mail across devices. |
IMAP is useful when users check the same mailbox from multiple devices.
IP Addressing Services
DNS
DNS translates human-readable names into IP addresses. Without DNS, users would need to remember IP addresses for websites and services.
DHCP
DHCP automatically provides IP settings such as IP address, subnet mask, default gateway, and DNS server. This reduces manual configuration work and helps prevent duplicate addresses.
File Sharing Services
File sharing protocols allow users to access files over a network. SMB is common in many local networks for file and printer sharing. Secure file transfer options are preferred when data crosses untrusted networks.