Topic 7

Application Layer Protocols (HTTP, HTTPS, DNS, DHCP, SMTP, FTP, POP3)

2 min read1 question to test yourself

1Definition

Application Layer Protocols define rules and standards governing how software applications exchange messages across a network. Key protocols include HTTP/HTTPS (web transfer), DNS (domain mapping), DHCP (auto-IP configuration), SMTP (mail sending), FTP (file transfer), and POP3 (mail retrieval).

2Simple Explanation

Think of Application protocols as specialized workplace specialists:

  • DNS: The phonebook contact list translating names to numbers.
  • HTTP/HTTPS: The waiter bringing requested web pages from the kitchen (server) to your table (browser).
  • DHCP: The office desk manager giving incoming guests an assigned desk number (IP address).
  • SMTP & POP3: The outbound mail carrier and inbound post office box.

3Real-Life Example / Analogy

When you type https://www.google.com:

  • DNS translates google.com to 142.250.190.46.
  • DHCP already gave your laptop an IP like 192.168.1.10.
  • HTTPS securely fetches Google's home page on encrypted port 443.

4Diagram / Visual Representation

Application protocols

HTTP · 80

HTTPS · 443

DNS · 53

DHCP · 67 / 68

SMTP · 25

FTP · 20 / 21

POP3 · 110

5Working / How It Works

  • Working of DNS:
    1. User types URL (https://www.shaurya.com) into browser address bar.
    2. Browser queries DNS system to resolve domain name into machine-readable IP address.
    3. DNS Forwarder: If the local DNS server cannot resolve the query quickly, it forwards the request to external root/authoritative DNS servers.
    4. Computer connects to target IP address to fetch web page.
  • HTTP vs. HTTPS:
    • HTTP: Stateless application layer protocol running directly over TCP port 80.
    • HTTPS: Wraps SSL/TLS security encryption layer over HTTP on port 443 to secure transactions.

6Types / Components / Characteristics

  • HTTP / HTTPS: HTTP is stateless (commands operate independently); HTTPS adds SSL/TLS encryption.
  • DHCP: Auto-assigns IP address, subnet mask, default gateway, and DNS server addresses.
  • SMTP: Simple Mail Transfer Protocol; operates in always-listening mode on port 25 for mail transmission. Supports End-to-End and Store-and-Forward methods.
  • FTP: File Transfer Protocol; transfers files reliably between hosts.
  • POP3: Post Office Protocol v3; retrieves email from server to client machine using Delete mode or Keep mode.

7Solved Examples / Problems

Problem: Match each protocol to its exact default TCP/UDP port number: (1) HTTP, (2) HTTPS, (3) SMTP, (4) DHCP Server.

Solution:

  • (1) HTTP →\rightarrow Port 80
  • (2) HTTPS →\rightarrow Port 443
  • (3) SMTP →\rightarrow Port 25
  • (4) DHCP Server →\rightarrow Port 67

8Advantages, Disadvantages & Applications

  • HTTPS: Crucial for secure online banking, e-commerce, and protecting user credentials against eavesdropping.
  • DHCP: Eliminates manual IP address configuration errors in enterprise networks.

9Important Points to Remember

  • HTTP = Port 80 (Unencrypted); HTTPS = Port 443 (SSL/TLS Encrypted).
  • DNS introduced by Paul Mockapetris and Jon Postel (1983).
  • DHCP port = 67; SMTP port = 25.
  • POP3 has two modes: Delete mode (erases mail from server after download) and Keep mode (retains server copy).

10Test Your Understanding

  1. Multiple Choice: Which protocol automatically assigns IP addresses and subnet masks to devices joining a network?
    • a) DNS
    • b) DHCP
    • c) ARP
    • d) ICMP
    Show answer
    b) DHCP.
  2. Short Answer: What is a DNS Forwarder and when is it utilized?

Finished this topic?

0 of 10 topics read in Computer Networks & Security

Handwritten notes for the exam

Unit-wise SPPU notes and PYQs for this subject.

Helpful? Share it with your class

Free for everyone, no login needed.

Share topic