Skip to content
Official PYQ · 2015

GATE CS 2015 Set 1 Q1 — Application Layer Protocols: DNS, SMTP, HTTP, FTP, Email

Explain with AI

In one of the pairs of protocols given below , both the protocols can use multiple TCP\textsf{TCP} connections between the same client and the server. Which one is that?

Choose one option
View worked solution

Answer: A

To determine which pair of protocols can use multiple TCP connections between the same client and server, let us analyze each protocol:

  • FTP (File Transfer Protocol): FTP uses an "out-of-band" control mechanism. It establishes two parallel TCP connections:
    • A control connection (usually on port 21) for sending commands and receiving replies.
    • A data connection (usually on port 20) created dynamically for each file transfer.
    Thus, FTP inherently uses multiple TCP connections simultaneously.

  • HTTP (Hypertext Transfer Protocol): HTTP can use multiple TCP connections in two ways:
    • In non-persistent HTTP, a separate TCP connection is opened and closed for each requested object.
    • In persistent HTTP, modern web browsers often open multiple parallel TCP connections to the same server to download different web resources (images, stylesheets, etc.) concurrently.
    Thus, HTTP can use multiple TCP connections.

  • TELNET: Uses a single TCP connection (port 23) for the entire interactive session.

  • SMTP (Simple Mail Transfer Protocol): Uses a single TCP connection (port 25) to transfer mail messages between the client and the mail server.

Therefore, both HTTP and FTP can use multiple TCP connections between the same client and server.

Correct Option: A

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Application Layer Protocols: DNS, SMTP, HTTP, FTP, Email questions