LearnFrenzy
Sign in Take a free test

Computer Networks · Topic 8 of 10

TCP, UDP and Congestion Control: questions with answers

Ports and sockets, UDP vs TCP, the three-way handshake and connection teardown, sequence and acknowledgement numbers, flow control, RTT estimation and timeouts, slow start, congestion avoidance, Tahoe and Reno, and socket programming.

Questions
45
Timed sets
3
Answers run or computed
25
Your accuracy
–

What this topic covers

10 subtopics
  • Congestion control13
  • TCP vs UDP7
  • Connection management5
  • Flow control4
  • Reliability4
  • Ports3
  • TCP header3
  • Sequence numbers2
  • Sockets2
  • Timeouts2
  • Beginner 15
  • Intermediate 15
  • Advanced 15

About this topic

The transport layer connects processes: UDP just delivers datagrams, while TCP adds connections, reliable in-order delivery, flow control and congestion control. GATE regularly asks for congestion-window values after slow start, timeouts and duplicate ACKs; interviews ask about the handshake and TCP vs UDP. Window traces here were computed with the standard rules (slow start doubles below ssthresh, then +1 per RTT; a timeout drops cwnd to 1; three duplicate ACKs in Reno halve it), and the socket programs really ran over localhost.

Free preview

Sample questions

Try each one first, then open the answer for the explanation and why the other options are wrong.

Question 1 TCP vs UDP Beginner Practice

Which statement correctly contrasts TCP and UDP?

TCP has no header
Both guarantee ordering
UDP is reliable and TCP is not
TCP is connection-oriented with reliable, ordered delivery, flow and congestion control; UDP is connectionless and best-effort with an 8-byte header
Show answer and explanation
Correct answer D

Explanation

UDP suits short queries (DNS) and real-time media where a late packet is useless; TCP suits files, web pages and anything that must arrive intact.

Why the other options are wrong

  • AAt least 20 bytes.
  • BUDP does not.
  • CReversed.
Question 2 Congestion control Intermediate Practice Answer computed

A TCP connection starts with cwnd = 1 MSS and ssthresh = 8 MSS, and no losses occur. What is cwnd (in MSS) at the start of transmission round 6?

The answer is a number – work it out, then open the solution.

Show answer and explanation
Correct answer 10

Explanation

Rounds 1–4: 1, 2, 4, 8 (slow start to ssthresh). Then congestion avoidance adds 1 per round: 9, 10. So round 6 starts with 10.

Question 3 Congestion control Advanced Practice Answer computed

cwnd starts at 1 MSS with ssthresh 16 MSS. A timeout occurs at the end of round 6. What are the cwnd values at the start of rounds 1–10?

12481617891011
124816171248
124816321248
124816171245
Show answer and explanation
Correct answer B

Explanation

Slow start to 16, then 17 in congestion avoidance. The timeout at cwnd 17 sets ssthresh = 8 and cwnd = 1, and slow start resumes: 1, 2, 4, 8 (switching to +1 after reaching 8).

Why the other options are wrong

  • AThat is Reno's reaction to duplicate ACKs, not a timeout.
  • CAbove ssthresh growth is linear.
  • DSlow start continues up to the new ssthresh of 8.
42 more questions in the timed setsSame format as the samples, with a timer, a question palette and a full review at the end.
Start practising

Computer Networks

All 10 topics

Topics, levels and full mocks
  1. 01 Network Models, Devices and Delays45 questions · 3 levels
  2. 02 Error Detection and Correction45 questions · 3 levels
  3. 03 Flow Control and Sliding Window45 questions · 3 levels
  4. 04 MAC Layer, Ethernet and Switching45 questions · 3 levels
  5. 05 IP Addressing and Subnetting45 questions · 3 levels
  6. 06 Routing Algorithms and Protocols45 questions · 3 levels
  7. 07 IPv4, IPv6, ARP, NAT, ICMP and DHCP45 questions · 3 levels
  8. 08 TCP, UDP and Congestion Control45 questions · 3 levels
  9. 09 Application Layer: DNS, HTTP and Email45 questions · 3 levels
  10. 10 Network Security and Socket Programming45 questions · 3 levels

Search LearnFrenzy

Esc

Quick links