Study resource

Read at your pace, then save it for later.

Unit 12: Application Layer Protocols and Services

Section A — 1 Mark Questions

1. What is the primary function of the Application Layer? [1 Mark]

Answer: It provides network services directly to end-user applications.

2. Which protocol is used for remote terminal access? [1 Mark]

Answer: TELNET.

3. What does the acronym DNS stand for? [1 Mark]

Answer: Domain Name System.

4. Which protocol is designed for transferring files between a client and a server? [1 Mark]

Answer: File Transfer Protocol (FTP).

5. What is the standard port number for SMTP? [1 Mark]

Answer: Port 25.

6. Does POP3 allow users to organize emails into folders on the server? [1 Mark]

Answer: No, POP3 is designed to download emails to the local client.

7. Which protocol allows users to manipulate emails directly on the mail server? [1 Mark]

Answer: IMAP (Internet Message Access Protocol).

8. What is the primary role of DNS? [1 Mark]

Answer: It maps domain names (hostnames) to their corresponding IP addresses.

9. Is TELNET a secure protocol? [1 Mark]

Answer: No, it transmits data, including passwords, in plain text.

10. What is the main purpose of SMTP? [1 Mark]

Answer: It is used for sending or pushing emails from a client to a server or between servers.

11. Define the term 'Mail User Agent' (MUA). [1 Mark]

Answer: It is the application (like Outlook or Gmail) used by the user to compose and read emails.

12. What protocol is typically used to retrieve email from a server to a local device? [1 Mark]

Answer: POP3 (Post Office Protocol version 3).

13. What does an IP address represent in the context of DNS? [1 Mark]

Answer: It represents the numerical address of a host on the internet.

14. Which entity manages the top-level domains? [1 Mark]

Answer: Root DNS servers.

15. What does FTP 'Active Mode' involve? [1 Mark]

Answer: The client initiates the control connection, and the server initiates the data connection.

16. Can SMTP be used to download emails? [1 Mark]

Answer: No, SMTP is only for sending emails.

17. What is a 'Host' in a network? [1 Mark]

Answer: A computer or device connected to a network that provides or requests services.

18. Which protocol is considered the successor to POP3 in terms of server-side management? [1 Mark]

Answer: IMAP.

19. Does DNS use UDP or TCP? [1 Mark]

Answer: It primarily uses UDP for queries and TCP for zone transfers.

20. What happens when a TELNET connection is established? [1 Mark]

Answer: The client gains a command-line interface to a remote computer.

Section B — 2/3 Mark Questions

1. Differentiate between POP3 and IMAP. [3 Marks]

Answer: POP3 downloads messages from the server to the local client and typically deletes them from the server. IMAP keeps messages on the server, allowing the user to access them from multiple devices and synchronize folder structures.

2. Why is TELNET considered insecure? [2 Marks]

Answer: TELNET sends all data, including usernames and passwords, as plain text. This makes it vulnerable to eavesdropping and packet sniffing by attackers on the network path.

3. Briefly explain the purpose of DNS in networking. [2 Marks]

Answer: DNS acts as the phonebook of the internet. It translates human-readable domain names (like www.google.com) into IP addresses that routers and computers use to route packets.

4. What are the two types of connections used in FTP? [2 Marks]

Answer: FTP uses a 'Control Connection' for sending commands and receiving responses, and a separate 'Data Connection' for the actual file transfer.

5. How does SMTP handle email transfer? [3 Marks]

Answer: SMTP uses a push model. The sender's Mail User Agent (MUA) sends the email to the Mail Transfer Agent (MTA). The MTA then relays the message through various servers until it reaches the recipient's mail server.

6. Define the role of a DNS Resolver. [2 Marks]

Answer: A DNS Resolver is the client-side component that initiates the query process by contacting the server to find the IP address associated with a given domain name.

7. List two advantages of using IMAP. [2 Marks]

Answer: First, it allows for multi-device synchronization. Second, it enables users to store and manage email folders directly on the mail server.

8. What is the 'three-way handshake' context in network protocols? [3 Marks]

Answer: It is the process used by connection-oriented protocols like TCP (often used by FTP and SMTP) to establish a reliable communication channel between a client and a server before data transmission begins.

9. What is a Root DNS server? [2 Marks]

Answer: It is the top-most level in the DNS hierarchy that directs queries to the appropriate Top-Level Domain (TLD) servers (like .com or .org).

10. Why is SMTP necessary for email systems? [3 Marks]

Answer: SMTP is the standardized protocol that ensures mail can be transferred across heterogeneous networks and different operating systems, allowing email to reach any server on the internet reliably.

Section C — 5 Mark Questions

1. Explain the Domain Name System (DNS) query process in detail. [5 Marks]

Answer:

The DNS Query Process

When a user enters a domain name into a browser, the following steps occur:

  • Recursive Query: The local resolver asks the local DNS server for the IP address.
  • Root Server Check: If the local server lacks the info, it queries a Root Server, which points to the relevant TLD server.
  • TLD Server Query: The TLD server (e.g., for .com) provides the address of the Authoritative Name Server for that specific domain.
  • Authoritative Response: The Authoritative Name Server returns the actual IP address associated with the domain.
  • Caching: The resolved IP is cached to speed up future requests.

2. Discuss the operation of the File Transfer Protocol (FTP). [5 Marks]

Answer:

FTP Mechanism

FTP is a standard network protocol used to move files between a client and a server. It operates on a client-server architecture.

Key Features

  • Control Connection: Uses port 21 to send commands (like USER, PASS, RETR, STOR) and receive server status codes.
  • Data Connection: Uses a separate port to stream the actual file data.
  • Modes: It supports Passive and Active modes to manage how the data connection is opened through firewalls.
  • Authentication: Requires users to provide credentials before accessing directories.
  • Application: Commonly used for uploading website files to servers or backing up data.

3. Compare SMTP, POP3, and IMAP as email protocols. [5 Marks]

Answer:

Email Protocols Comparison

ProtocolDirectionPrimary Purpose
SMTPPushSending mail from client to server or between servers.
POP3PullDownloading email from a server to a local device, usually deleting from server.
IMAPPullAccessing and managing email on the server without necessarily downloading everything.

Detailed Explanation

SMTP acts as the transmission mechanism to move mail across the internet. POP3 is essentially a store-and-forward system where the client takes ownership of the messages. IMAP is the more modern approach, treating the server as the primary mailbox, allowing for complex folder management and synchronized access across mobile phones, tablets, and desktops.

4. Describe the function and limitations of the TELNET protocol. [5 Marks]

Answer:

Functionality

TELNET stands for Teletype Network. It provides a bi-directional, interactive text-oriented communication facility using a virtual terminal connection. It allows a user at one site to log into a remote computer and execute commands as if they were physically present at that machine.

Limitations

  • Plain Text Transmission: The biggest drawback is that data is transmitted unencrypted.
  • Security Risk: Anyone sniffing the network traffic can capture passwords and sensitive commands.
  • Modern Alternatives: Due to security flaws, TELNET has been largely replaced by SSH (Secure Shell), which provides encrypted sessions.
  • Usability: It is restricted to text-based interfaces, making it unsuitable for modern graphical user interface applications.

5. Elaborate on the structure and hierarchy of the Domain Name System. [5 Marks]

Answer:

DNS Hierarchy

The DNS uses a distributed database system structured as a tree. The hierarchy is organized to ensure scalability and efficiency on the internet.

Hierarchical Components

  • Root Level: Represented by a dot (.). It is the starting point for all DNS resolution.
  • Top-Level Domains (TLD): These include generic domains like .com, .edu, .gov and country-code domains like .uk or .in.
  • Second-Level Domains: These are the names registered by individuals or organizations, such as 'google' in 'google.com'.
  • Subdomains: These allow organizations to further segment their network, such as 'mail.google.com'.

This hierarchical structure prevents collisions and allows for the decentralized management of the global namespace, where different entities manage different branches of the DNS tree.


xxx

Did this help you understand better?

Your feedback improves the quality of this resource for everyone.