Common Protocols: HTTP, FTP, SMTP, DNS, etc.

1. HTTP (Hypertext Transfer Protocol)

  • Purpose: Used for transferring web pages and resources (HTML, CSS, JavaScript).
  • Port: 80 (HTTP), 443 (HTTPS).
  • Key Features:
    • Stateless protocol (does not remember previous requests).
    • Supports methods like GET, POST, PUT, DELETE, etc.
  • Example: Accessing a website (http://gyanarth.com).

2. FTP (File Transfer Protocol)

  • Purpose: Transfers files between a client and a server.
  • Port: 20 (data), 21 (control).
  • Key Features:
    • Supports authentication (username/password).
    • Modes: Active and Passive FTP.
  • Example: Uploading a website to a server.

3. SMTP (Simple Mail Transfer Protocol)

  • Purpose: Sends emails from a client to a server or between servers.
  • Port: 25 (default), 587 (secure).
  • Key Features:
    • Works with protocols like IMAP and POP3 for retrieving emails.
    • Push protocol (sends data to a recipient).
  • Example: Sending an email using Gmail.

4. DNS (Domain Name System)

  • Purpose: Resolves domain names (e.g., gyanarth.com) into IP addresses.
  • Port: 53.
  • Key Features:
    • Hierarchical structure: Root, TLDs (e.g., .com), and SubDomains.
    • Records:
      • A Record: Maps domain to IPv4.
      • AAAA Record: Maps domain to IPv6.
      • MX Record: Mail exchange servers.
  • Example: Typing www.gyanarth.com in a browser, which resolves to its IP address.

5. HTTPS (Secure HTTP)

  • Purpose: Secure version of HTTP, encrypting data using SSL/TLS.
  • Port: 443.
  • Key Features:
    • Ensures confidentiality, integrity, and authentication.
  • Example: Online banking or e-commerce websites (https://flipkart.com).

6. POP3 (Post Office Protocol v3)

  • Purpose: Retrieves emails from a server to a local device.
  • Port: 110 (default), 995 (secure).
  • Key Features:
    • Downloads emails and deletes them from the server.
  • Example: Accessing emails via an old desktop mail client.

7. IMAP (Internet Message Access Protocol)

  • Purpose: Accesses emails stored on a mail server.
  • Port: 143 (default), 993 (secure).
  • Key Features:
    • Allows syncing across multiple devices.
    • Does not delete emails from the server unless specified.
  • Example: Using Gmail on both phone and laptop simultaneously.

8. SNMP (Simple Network Management Protocol)

  • Purpose: Manages and monitors network devices (routers, switches).
  • Port: 161 (default).
  • Key Features:
    • Uses MIB (Management Information Base) to store data.
    • Versions: SNMPv1, SNMPv2, SNMPv3 (secure).

9. Telnet

  • Purpose: Provides remote access to devices via text commands.
  • Port: 23.
  • Key Features:
    • Unencrypted; not secure (replaced by SSH).
  • Example: Accessing a router’s configuration remotely.

10. SSH (Secure Shell)

  • Purpose: Provides encrypted remote login and file transfer.
  • Port: 22.
  • Key Features:
    • Secure alternative to Telnet.
  • Example: Administering a Linux server remotely.

Port NumberProtocolMnemonic Tip
20/21FTPFile Transfer Protocol: 20 for data, 21 for control
22SSHSecure Shell: 22
23TelnetTelecommunication Network: 23
25/587SMTPSimple Mail Transfer Protocol: 25 is “mail on its way,” like sending a letter.
53DNSDomain Name System: 53 is “5-3 letters,” mapping domains to IPs.
67/68DHCPDynamic Host Configuration Protocol: 67 is the server, 68 is the client
80HTTPHyperText Transfer Protocol: Think “80 lanes of highway for web traffic.”
110POP3Post Office Protocol 3: 110 is a 1-to-1 mailbox for retrieving emails.
143IMAPInternet Message Access Protocol: 143 is like a tree—access emails from multiple branches.
161/162SNMPSimple Network Management Protocol: 161 is the manager, 162 is the agent sending alerts.
389LDAPLightweight Directory Access Protocol: 389 is like “three-directory system.”
443HTTPSSecure HTTP: Add 4 (secure) to HTTP’s 80, making 443. Think of “lock and key” security.
3389RDPRemote Desktop Protocol: A complex number like 3389 matches the complexity of remote access.

MCQ

1. What is the primary purpose of HTTP?
a) File transfer between client and server
b) Transmitting web pages and resources
c) Resolving domain names to IP addresses
d) Monitoring network devices

Answer: b) Transmitting web pages and resources

2. Which protocol uses port 53 by default?
a) SMTP
b) FTP
c) DNS
d) HTTP

Answer: c) DNS

3. Which protocol is used for sending emails?
a) POP3
b) SMTP
c) IMAP
d) FTP

Answer: b) SMTP

4. Which of the following is a secure alternative to Telnet?
a) SSH
b) SNMP
c) HTTP
d) FTP

Answer: c) SSH

5. What is the default port for FTP data transfer?
a) 25
b) 20
c) 22
d) 110

Answer: b) 20

6. Which DNS record maps a domain name to an IPv4 address?
a) AAAA Record
b) CNAME Record
c) MX Record
d) A Record

Answer: d) A Record

7. What is the primary purpose of SNMP?
a) Transfer files between systems
b) Manage and monitor network devices
c) Send and receive emails
d) Resolve domain names into IP addresses

Answer: b) Manage and monitor network devices

8. Which protocol ensures secure communication over the web?
a) HTTPS
b) FTP
c) Telnet
d) SMTP

Answer: a) HTTPS

9. What is the key function of IMAP in email systems?
a) Sending emails from a client
b) Storing and retrieving emails from a server
c) Resolving email domains to IP addresses
d) Deleting emails after downloading

b) Storing and retrieving emails from a server

10. Which protocol is stateless and operates on port 80?
a) FTP
b) HTTP
c) SMTP
d) DNS

Answer: b) HTTP

11. Which port is used by HTTPS for encrypted communication?
a) 22
b) 443
c) 80
d) 110

Answer: b) 443

12. Which of the following is a push protocol?
a) FTP
b) SMTP
c) HTTP
d) IMAP

Answer: b) SMTP

13. Which protocol is primarily used to upload files to a web server?
a) FTP
b) DNS
c) Telnet
d) SMTP

Answer: a) FTP

14. What type of DNS record is used for email servers?
a) MX Record
b) CNAME Record
c) A Record
d) AAAA Record

Answer: a) MX Record

15. Which protocol uses port 110 by default?
a) IMAP
b) POP3
c) SMTP
d) FTP

Answer: b) POP3

16. What protocol resolves www.google.com into an IP address?
a) SNMP
b) FTP
c) DNS
d) HTTP

Answer: c) DNS

17. Which protocol uses MIB to store and retrieve management data?
a) Telnet
b) SNMP
c) IMAP
d) FTP

Answer: b) SNMP

18. Which email protocol allows syncing across multiple devices?
a) POP3
b) SMTP
c) IMAP
d) Telnet

Answer: c) IMAP

19. What is the purpose of a CNAME record in DNS?
a) Redirecting traffic from one domain to another
b) Mapping IPv6 addresses
c) Storing mail server information
d) Managing session layers

Answer: a) Redirecting traffic from one domain to another

20. Which protocol handles the encryption of web pages?
a) HTTPS
b) HTTP
c) FTP
d) Telnet

Answer: a) HTTPS