🌐 Introduction to TCP

Comprehensive Quiz for Computer Networks Students

📚 12 Questions ⏱️ Estimated Time: 25-30 min 🎯 Undergraduate Level

📘 Section 1: Basic Questions

Test your fundamental understanding of TCP concepts

1 Basic

What does TCP stand for in computer networking?

A Transmission Control Process
B Transport Communication Protocol
C Transmission Control Protocol
D Transfer Control Protocol
2 Basic

At which layer of the OSI model does TCP operate?

A Network Layer (Layer 3)
B Transport Layer (Layer 4)
C Session Layer (Layer 5)
D Data Link Layer (Layer 2)
3 Basic

What is the default port number for HTTP over TCP?

A 21
B 25
C 110
D 80
4 Basic

Which of the following is NOT a characteristic of TCP?

A Connectionless communication
B Reliable data delivery
C Flow control
D Error detection

📝 Section 2: Descriptive Questions

Demonstrate your knowledge of TCP mechanisms and features

5 Descriptive

What is the purpose of the TCP three-way handshake?

A To encrypt data transmission between hosts
B To compress data before transmission
C To establish a reliable connection and synchronize sequence numbers
D To route packets through the network
6 Descriptive

In TCP, what does the sliding window mechanism primarily control?

A The routing path of packets
B The amount of data that can be sent before receiving an acknowledgment
C The encryption strength of the connection
D The physical layer signal modulation
7 Descriptive

What happens when a TCP sender detects a timeout before receiving an ACK?

A It immediately closes the connection
B It sends a connection reset packet
C It increases the window size exponentially
D It retransmits the unacknowledged segment and reduces the congestion window
8 Descriptive

Which TCP flag is used to gracefully terminate a connection?

A FIN (Finish)
B RST (Reset)
C URG (Urgent)
D PSH (Push)

🔍 Section 3: Analytical Questions

Apply your understanding to solve complex TCP scenarios

9 Analytical

A TCP connection has a congestion window (cwnd) of 8 MSS and receives 4 duplicate ACKs. According to TCP Reno, what happens to cwnd and ssthresh?

A cwnd becomes 1 MSS, ssthresh becomes 4 MSS
B ssthresh becomes 4 MSS, cwnd becomes 4 MSS + 3 MSS
C cwnd becomes 16 MSS, ssthresh remains 8 MSS
D cwnd becomes 0, connection is terminated
10 Analytical

In a TCP connection, the RTT samples are: 100ms, 120ms, 110ms. Using Jacobson's algorithm with α = 0.875, what is the estimated RTT after the third sample? (Initial EstimatedRTT = 100ms)

A 107.5 ms
B 110.0 ms
C 113.4 ms
D 120.0 ms
11 Analytical

Two hosts are communicating via TCP. Host A sends segments with sequence numbers 1000, 1500, and 2000 (each 500 bytes). If the segment with seq=1500 is lost but 1000 and 2000 arrive, what ACK number will Host B send?

A 2500 (requesting the next expected segment)
B 2000 (acknowledging out-of-order receipt)
C 1000 (requesting retransmission from beginning)
D 1500 (indicating the next expected byte)
12 Analytical

A TCP sender using slow start has cwnd = 1 MSS and ssthresh = 16 MSS. After 4 successful RTTs with all ACKs received, what is the value of cwnd?

A 16 MSS
B 8 MSS
C 4 MSS
D 32 MSS
0 / 12 Correct

Quiz Completed!

Review your answers below