0
0
Computer Networksknowledge~20 mins

TCP flow control (sliding window) in Computer Networks - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
TCP Flow Control Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding the purpose of TCP sliding window

What is the main purpose of the sliding window mechanism in TCP flow control?

ATo route packets through the shortest path in the network
BTo encrypt data packets for secure transmission
CTo assign IP addresses dynamically to devices
DTo control the amount of data a sender can transmit before receiving an acknowledgment
Attempts:
2 left
💡 Hint

Think about how TCP manages data transmission to avoid overwhelming the receiver.

📋 Factual
intermediate
2:00remaining
Sliding window size adjustment

In TCP flow control, what happens when the receiver advertises a window size of zero?

AThe sender stops sending data until the window size increases
BThe sender ignores the window size and continues sending data
CThe sender increases its sending rate to fill the network
DThe sender closes the connection immediately
Attempts:
2 left
💡 Hint

Consider what it means if the receiver cannot accept more data.

🔍 Analysis
advanced
2:00remaining
Effect of window size on throughput

How does increasing the TCP sliding window size affect the throughput of a connection over a high-latency network?

AIt causes the connection to reset frequently
BIt increases throughput by allowing more data to be sent before waiting for acknowledgment
CIt has no effect on throughput in high-latency networks
DIt decreases throughput because larger windows cause more packet loss
Attempts:
2 left
💡 Hint

Think about how waiting times and data in transit relate to window size.

Comparison
advanced
2:00remaining
Sliding window vs. congestion control

Which statement best distinguishes TCP flow control using sliding window from TCP congestion control?

AFlow control manages receiver buffer capacity; congestion control manages network traffic congestion
BFlow control encrypts data; congestion control compresses data
CFlow control assigns IP addresses; congestion control routes packets
DFlow control increases packet size; congestion control decreases packet size
Attempts:
2 left
💡 Hint

Consider what each mechanism is trying to protect or manage.

Reasoning
expert
2:00remaining
Interpreting sliding window behavior from sequence numbers

Given a TCP connection where the sender's current window size is 5000 bytes, the last acknowledged sequence number is 10000, and the next sequence number to send is 12000, how many bytes can the sender still send without receiving new acknowledgments?

A5000 bytes
B7000 bytes
C3000 bytes
D2000 bytes
Attempts:
2 left
💡 Hint

Calculate the difference between the window size and the amount of data already sent but not acknowledged.