Transport Layer Protocol · Computer Networks
46 questions · asked in 22 of 27 years (2000–2026)
MCQ 33 · MSQ 6 · NAT 71-mark 29 · 2-mark 17
2000Questions per year2026
Questions 31–35 of 46
While opening a TCP connection, the initial sequence number is to be derived using a time-of-day (ToD) clock that keeps running even when the host is down. The low order 32 bits of the counter of the ToD clock is to be used for the initial sequence numbers. The clock counter increments once per millisecond. The maximum packet lifetime is given to be 64s.
Which one of the choices given below is closest to the minimum permissible rate at which sequence numbers used for packets of a connection can increase?
Which one of the choices given below is closest to the minimum permissible rate at which sequence numbers used for packets of a connection can increase?
Answer: (A)
The initial sequence number (ISN) of a new connection comes from the clock. A connection can be closed and opened again at once between the same hosts and ports, and packets of the old connection can stay in the network for up to the maximum packet lifetime, .
To avoid confusing old and new packets, the sequence numbers of a new connection must be used only after all old packets are dead, that is, after . So the ISN may move to a new value only once in every .
Rate
Answer: (A)
To avoid confusing old and new packets, the sequence numbers of a new connection must be used only after all old packets are dead, that is, after . So the ISN may move to a new value only once in every .
Rate
Answer: (A)
The three way handshake for TCP connection establishment is shown below.
Which of the following statements are TRUE?
S1: Loss of SYN + ACK from the server will not establish a connection
S2: Loss of ACK from the client cannot establish the connection
S3: The server moves in the state machine on no packet loss
S4: The server moves in the state machine on no packet loss
Which of the following statements are TRUE?
S1: Loss of SYN + ACK from the server will not establish a connection
S2: Loss of ACK from the client cannot establish the connection
S3: The server moves in the state machine on no packet loss
S4: The server moves in the state machine on no packet loss
Answer: (B)
S1 (true). The client moves to ESTABLISHED only when it receives the server's SYN+ACK. If that segment is lost, the client stays in SYN_SENT, so this exchange does not set up a connection.
S2 (false). After sending the last ACK, the client is already in ESTABLISHED. If the ACK is lost, the server stays in SYN_RCVD and resends its SYN+ACK after a timeout. The client answers again with an ACK (or its first data segment, which also carries the ACK), and the server then reaches ESTABLISHED. So the connection can still be set up.
S3 (false). SYN_SENT is a client state, entered when the client sends its SYN (active open). The server never enters it in this handshake.
S4 (true). The server waits in LISTEN, receives the SYN and sends SYN+ACK (state SYN_RCVD), then receives the final ACK and goes to ESTABLISHED.
So only S1 and S4 are true.
Answer: (B)
S2 (false). After sending the last ACK, the client is already in ESTABLISHED. If the ACK is lost, the server stays in SYN_RCVD and resends its SYN+ACK after a timeout. The client answers again with an ACK (or its first data segment, which also carries the ACK), and the server then reaches ESTABLISHED. So the connection can still be set up.
S3 (false). SYN_SENT is a client state, entered when the client sends its SYN (active open). The server never enters it in this handshake.
S4 (true). The server waits in LISTEN, receives the SYN and sends SYN+ACK (state SYN_RCVD), then receives the final ACK and goes to ESTABLISHED.
So only S1 and S4 are true.
Answer: (B)
Which of the following statements are TRUE?
S1: TCP handles both congestion and flow control
S2: UDP handles congestion but not flow control
S3: Fast retransmit deals with congestion but not flow control
S4: Slow start mechanism deals with both congestion and flow control
S1: TCP handles both congestion and flow control
S2: UDP handles congestion but not flow control
S3: Fast retransmit deals with congestion but not flow control
S4: Slow start mechanism deals with both congestion and flow control
Answer: (B)
S1 (true). TCP controls congestion with the congestion window (cwnd) and flow control with the receiver's advertised window. The sender uses the smaller of the two.
S2 (false). UDP has no congestion control and no flow control. It just sends datagrams.
S3 (true). When the sender gets three duplicate ACKs, it resends the missing segment at once instead of waiting for the timeout. This is a reaction to packet loss in the network, so it belongs to congestion control. The receiver's window is what handles flow control.
S4 (false). Slow start grows cwnd to find the network's capacity. It is a congestion control mechanism only; flow control is done by the advertised window.
So S1 and S3 only.
Answer: (B)
S2 (false). UDP has no congestion control and no flow control. It just sends datagrams.
S3 (true). When the sender gets three duplicate ACKs, it resends the missing segment at once instead of waiting for the timeout. This is a reaction to packet loss in the network, so it belongs to congestion control. The receiver's window is what handles flow control.
S4 (false). Slow start grows cwnd to find the network's capacity. It is a congestion control mechanism only; flow control is done by the advertised window.
So S1 and S3 only.
Answer: (B)
In the slow start phase of the TCP congestion control algorithm, the size of the congestion window
Answer: (D)
In slow start, the congestion window (cwnd) starts at 1 MSS and grows by 1 MSS for every ACK received. Every segment sent in one round trip is acknowledged, so cwnd doubles each round trip time (RTT): 1, 2, 4, 8, and so on. This is exponential growth.
Take the following value:
In the figure, cwnd goes 1, 2, 4, 8 up to RTT 3, where it reaches ssthresh. After that the algorithm switches to congestion avoidance, and cwnd grows by 1 per RTT (9, 10, 11, ...), which is linear. So linear growth is not the slow start phase.
Answer: (D)
Take the following value:
In the figure, cwnd goes 1, 2, 4, 8 up to RTT 3, where it reaches ssthresh. After that the algorithm switches to congestion avoidance, and cwnd grows by 1 per RTT (9, 10, 11, ...), which is linear. So linear growth is not the slow start phase.
Answer: (D)
What is the maximum size of data that the application layer can pass on to the TCP layer below?
Answer: (A)
TCP works as a byte stream. The application can hand it any amount of data, and TCP itself breaks that data into segments.
Answer: Any size
Answer: Any size
Keep practising
Topics in Computer Networks
OSI LayerPhysical LayerData Link LayerNetwork Layer Protocol
Transport Layer ProtocolYou are here
Application Layer ProtocolsNetwork Security