Application Layer Protocols and Services
1. Domain Name Service (DNS)
- Translates human-readable domain names (e.g.,
www.google.com) into IP addresses (e.g., 142.250.190.4).
- It is a distributed and hierarchical naming system with root servers, TLD servers, and authoritative servers.
- Uses UDP port 53 (sometimes TCP for large queries).
- DNS queries can be recursive (server resolves everything) or iterative (server refers to another server).
- Supports records like A, AAAA, MX, CNAME, and NS.
2. Telnet
- Allows remote login to another computer over a network.
- Works over TCP port 23.
- Transfers data in plaintext, making it insecure.
- Mostly replaced by SSH due to security concerns.
- Useful for early network administration via command-line interface.
3. FTP (File Transfer Protocol)
- Used to transfer files between computers over a network.
- Uses TCP ports 20 (data) and 21 (control).
- Supports both active and passive file transfer modes.
- No encryption; secure versions include FTPS and SFTP.
- Enables file operations like upload, download, and delete.
4. SMTP (Simple Mail Transfer Protocol)
- Sends and forwards email from client to mail server and between servers.
- Operates on TCP port 25 (or 587 for secure submission).
- Push protocol – used only for sending, not receiving emails.
- Works in combination with POP3 or IMAP for mail retrieval.
- Can use STARTTLS for encryption.
5. SNMP (Simple Network Management Protocol)
- Used for monitoring and managing network devices like routers, switches, and servers.
- Uses UDP port 161 for requests and 162 for traps/alerts.
- Relies on a structured database called MIB (Management Information Base).
- Versions:
- SNMPv1: Simple, no encryption
- SNMPv2: More efficient
- SNMPv3: Adds encryption and authentication
- Involves managers (monitoring systems) and agents (on devices).
6. MIME (Multipurpose Internet Mail Extensions)
- Extends the email format to support non-text content (images, audio, video).
- Works with SMTP to send multimedia email attachments.
- Adds headers to indicate content type and encoding (e.g.,
Content-Type: image/png).
- Allows splitting message bodies into multiple parts with boundaries.
- Widely used in both email and web forms.
7. POP (Post Office Protocol – Version 3)
- Used to retrieve emails from a server to a local computer.
- Works on TCP port 110 (or 995 for encrypted POP3S).
- Typically downloads and deletes messages from the server.
- Simple and fast, but not ideal for accessing mail from multiple devices.
- Lacks features like folder syncing or server-side search.
8. IMAP (Internet Message Access Protocol)
- Also used to retrieve emails, but keeps them stored on the server.
- Uses TCP port 143 (or 993 for encrypted IMAPS).
- Allows accessing the same mailbox from multiple devices.
- Supports folders, labels, and message flags.
- Ideal for modern email usage with synchronization.
9. WWW (World Wide Web)
- A system of interlinked hypertext documents accessed via the Internet.
- Uses HTTP/HTTPS as the communication protocol.
- Information is viewed using web browsers.
- Resources are identified using URLs.
- Invented by Tim Berners-Lee in 1989.
10. HTTP (Hypertext Transfer Protocol)
- Protocol for transferring hypermedia documents (web pages) on the web.
- Uses TCP port 80 (or 443 for secure HTTPS).
- Follows a client-server request/response model.
- Common methods include:
- GET: retrieve data
- POST: submit data
- PUT: update data
- DELETE: remove data
- Stateless by default; uses cookies or sessions for state management.