What is the main purpose of the sliding window mechanism in TCP flow control?
Think about how TCP manages data transmission to avoid overwhelming the receiver.
The sliding window controls how much data the sender can send before waiting for an acknowledgment, ensuring the receiver is not overwhelmed.
In TCP flow control, what happens when the receiver advertises a window size of zero?
Consider what it means if the receiver cannot accept more data.
A window size of zero means the receiver's buffer is full, so the sender must pause sending until notified otherwise.
How does increasing the TCP sliding window size affect the throughput of a connection over a high-latency network?
Think about how waiting times and data in transit relate to window size.
A larger window lets the sender transmit more data without waiting, improving throughput especially when delays are long.
Which statement best distinguishes TCP flow control using sliding window from TCP congestion control?
Consider what each mechanism is trying to protect or manage.
Flow control prevents overwhelming the receiver, while congestion control prevents network overload.
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?
Calculate the difference between the window size and the amount of data already sent but not acknowledged.
The sender has sent 2000 bytes beyond the last acknowledgment (12000 - 10000). With a window of 5000 bytes, it can send 5000 - 2000 = 3000 more bytes.