0
0
Computer Networksknowledge~5 mins

TCP flow control (sliding window) in Computer Networks - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the main purpose of TCP flow control?
TCP flow control ensures that a sender does not overwhelm a receiver by sending more data than it can handle at a time.
Click to reveal answer
intermediate
Explain the sliding window concept in TCP flow control.
The sliding window is a method where the sender can send multiple packets before needing an acknowledgment, but only up to a window size that the receiver can handle. The window 'slides' forward as acknowledgments arrive.
Click to reveal answer
beginner
What does the 'window size' represent in TCP sliding window flow control?
The window size represents the amount of data (in bytes) that the sender is allowed to send without receiving an acknowledgment from the receiver.
Click to reveal answer
intermediate
How does the receiver communicate its available buffer space to the sender in TCP?
The receiver sends the current window size value in the TCP header of acknowledgment packets, indicating how much more data it can receive.
Click to reveal answer
beginner
What happens if the sender sends data faster than the receiver can process it in TCP flow control?
If the sender sends data too fast, the receiver's buffer may overflow, causing packet loss. TCP flow control prevents this by adjusting the window size to slow down the sender.
Click to reveal answer
What does the sliding window in TCP allow the sender to do?
ASend multiple packets before receiving acknowledgments
BSend only one packet at a time
CIgnore receiver's buffer size
DClose the connection immediately
In TCP flow control, what does the receiver use to tell the sender how much data it can receive?
AIP address
BSequence number
CPort number
DWindow size field in TCP header
What happens when the window size is zero in TCP flow control?
ASender must stop sending data temporarily
BSender sends data faster
CConnection is closed
DReceiver sends data
Why is TCP flow control important?
ATo encrypt data
BTo prevent receiver buffer overflow
CTo increase IP address speed
DTo assign port numbers
What does the 'sliding' in sliding window refer to?
AThe window closes after one packet
BThe window size stays fixed
CThe window moves forward as data is acknowledged
DThe window is ignored
Describe how TCP uses the sliding window mechanism to control data flow between sender and receiver.
Think about how the sender knows how much data to send and when to wait.
You got /4 concepts.
    Explain why TCP flow control is necessary and what could happen without it.
    Consider what happens if the sender ignores the receiver's capacity.
    You got /4 concepts.