in Computer Networks edited by
13,943 views
36 votes
36 votes

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

  1. $\textsf{HTTP, FTP}$
  2. $\textsf{HTTP, TELNET}$
  3. $\textsf{FTP, SMTP}$
  4. $\textsf{HTTP, SMTP}$
in Computer Networks edited by
13.9k views

4 Comments

@skyby, having TCP connection does not implies stateful connection.

for eg. HTTP uses TCP but a stateless protocol.

11
11
HTTP uses multiple TCP connections. Based on this concept, a question has been asked in GATE 2020.

https://gateoverflow.in/333206/gate-2020-cse-question-25
2
2

yes in case of non persistent connection!

1
1

2 Answers

67 votes
67 votes
Best answer

$\textsf{SMTP:}$ only one $\textsf{TCP}$ connection.

$\textsf{TELNET:}$ only one $\textsf{TCP}$ connection.

$\textsf{HTTP:}$ Multiple connections can be used for each resource.

$\textsf{FTP: FTP}$ uses Telnet protocol for Control info on a $\textsf{TCP}$ connection and another $\textsf{TCP}$ connection for data exchange

So, the answer is A. 

edited by
by

4 Comments

sir, even if you open two tabs of the same website in your browser, does that not establish two TCP connections between your machine's browser, and the corresponding website's server?

 

And regarding SMTP, it can send multiple messages from the same client to the same server, but it doesn't make multiple simultaneous TCP connections for it. Just one persistent TCP connection is enough.

2
2
Multiple implies more than 1, then in FTP, can we have say 10 TCP connections between client and server?

If not FTP would not be the answer.
1
1

@zeeshanmohnavi

thanks :)

so in http both persistent and non persistent connections possible and in SMTP only persistent connection possible?

0
0
4 votes
4 votes
Option A....most likely
Answer:

Related questions