Log In
27 votes

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

  1. HTTP, FTP
  3. FTP, SMTP
in Computer Networks 5.8k views
can anyone confirms that having tcp connection means stateful connection?

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

for eg. HTTP uses TCP but a stateless protocol.

2 Answers

55 votes
Best answer

SMTP: only one TCP connection.


TELNET: only one TCP connection.


HTTP: Multiple connections can be used for each resource.


FTP: FTP uses Telnet protocol for Control info on a TCP connection and
another TCP connection for data exchange

Reference: (See page 8)

So, answer is A. 

edited by
Yup..I got confused with other answer keys...coz I answered http and ftp..Our point is right :)

@arjun sir  word same   in the above question is having significance ??

link is not working (i've tried multiple times)

any other source?
Hello sir

please clear some of my doubts.

1) Questioner is asking Multiple TCP connection b/w same client and server.Now what do i understand from 'multiple TCP connection' is as follows : TCP connections are identified by port numbers so multiple tcp connection mean at the same time client and server are connected over different ports like in case of ftp , where to transfer 'control information ' client(random port)connect with server on port 21 and in case of 'data transfer' server connect with client by using port 20(in case of active mode). SO here we have multiple tcp connections.Am i right?

2) Sir i'm doubtful about the correctness of your argument for http.The link you attached , is considering a scenario when client is connected to server using some intermediary device like proxy server. and in such case he is claiming that there are multiple connections b/w client and server.Yes i'm agree multiple connections but not multiple 'tcp connection'.for all connections source port and destinations port are same so i consider same TCP connection.Because if in that way we are claiming to have multiple tcp connections then all protocols uses multiple tcp connections because intermediary device can be attached in all cases for security purpose(firewall).did i miss something?

3) put argument like 'HTTP may use different TCP connection for different objects of a webpage if non-persistent connections are used'. it's not clear in question that questioner is asking for 'same session' or we may consider even different sessions as this geeksforgeeks argument? If we can even consider different sessions then i think SMTP can also be true (don't know much about TELNET , so can't argument about it).

4) Let suppose in my browser i opened two tabs , in both i opened 'gateoverflow' and reading two different questions. both time i'm connected to same server and in case of both page request i will have different source ports so that server can distinguish like 'whom response what' so in that way client is connected to same server's same port(port 80) with two source ports. is this case of multiple tcp connection ?

pardon me if i asked something stupid and hence wasted your time.

@Rupendra Choudhary I am not an expert, but maybe my analysis of the question can make sense to you as well.

We all agree that FTP uses $2$ simultaneous TCP connections for a successful FTP transfer. So, your point $(1)$ is right.

By now, we have eliminated options $(B)$ and $(D)$.


Now, let's analyze how HTTP uses multiple TCP connections. For this, I will use the example you have given in your point $(4)$.

When you opened a GO question no. $1$ (for example) in one of the browser tabs, your browser effectively opened a TCP connection to port $80$ on GO's servers and requested for a resource with a relative path, say /question-1.

When you will open another GO question in your other browser tab, your browser will again open a new TCP connection to the same port $80$ on GO's servers and will request for another resource with a relative path, say /question-2

This implies that it is possible for HTTP to open multiple TCP connections between the same client and the server.


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.

4 votes
Option A....most likely

Related questions

24 votes
4 answers
Suppose that the stop-and-wait protocol is used on a link with a bit rate of $64$ $\text{kilobits}$ per second and $20$ $\text{milliseconds}$ propagation delay. Assume that the transmission time for the acknowledgment and the processing time at nodes are negligible. Then the minimum frame size in bytes to achieve a link utilization of at least $50$ $\text{%}$ is_________________.
asked Feb 14, 2015 in Computer Networks makhdoom ghaya 10.2k views
33 votes
8 answers
Consider a LAN with four nodes $S_1, S_2, S_3,$ and $S_4$. Time is divided into fixed-size slots, and a node can begin its transmission only at the beginning of a slot. A collision is said to have occurred if more than one node transmits in the ... and $0.4$ respectively. The probability of sending a frame in the first slot without any collision by any of these four stations is__________________.
asked Feb 13, 2015 in Computer Networks makhdoom ghaya 5k views
20 votes
4 answers
Suppose that everyone in a group on $N$ people wants to communicate secretly with the $(\text{N - 1})$ others using symmetric Key cryptographic system. The communication between any two person should not be decodable by the others in the group. The numbers of keys required in the system as a whole to satisfy the confidentiality requirement is $2N$ $N(N-1)$ $\dfrac{N(N-1)}{2}$ $(N-1)^{2}$
asked Feb 13, 2015 in Computer Networks makhdoom ghaya 3.3k views
33 votes
9 answers
Suppose two hosts use a TCP connection to transfer a large file . Which of the following statements is/are FALSE with respect to the TCP connection? If the sequence number of a segment is m, then the sequence number of the subsequent segment is always m+1. If the estimated ... the sender is always less than or equal to the advertised window. III only I and III only I and IV only II and IV only
asked Feb 13, 2015 in Computer Networks makhdoom ghaya 6.4k views