User:Shealer/sandbox

Source: Wikipedia, the free encyclopedia.

In transmit flow control, sliding window is a variable-duration window that allows a sender to transmit a specified number of data units before an acknowledgement is received or before a specified event occurs. An example of a sliding window in packet transmission is one in which, after the sender fails to receive an acknowledgement for the first transmitted packet, the sender "slides" the window, i.e. resets the window, and sends a second packet. This process is repeated for the specified number of times before the sender interrupts transmission. Sliding window is sometimes (loosely) called acknowledgement delay period. For example, supposing a fixed window size of packets, a sender may send out packets before receiving any acknowledgement. If acknowledgement arrives from the receiver for packet , then (a) the sender is able to send out packet , (b) it doesn't need acknowledgement for packet anymore; thus the range (window) of unacknowledged packets slides to . In some way, "sliding" means a FIFO operation, trimming the range at one end, extending it at the other end. The purpose of the sliding window is to increase throughput. Let's denote the round trip time with RTT. The time necessary to transfer and acknowledge (a big number of) packets is roughly (in one round trip, packets and ACKs are delivered). However, the size of the window (in bytes) should not grow above "capacity of the path" (the sum of affected network buffer sizes of all hops along the path); windows too big don't increase throughput, just latency, number of packets transmitted out-of-order, and memory usage. In practice, protocols often adapt the window size to the link's speed and actual saturation or congestion. === See also === * Federal Standard 1037C * RFC 1323 - TCP Extensions for High Performance * TCP window scaling and broken routers, 2004 * Sliding Window Demo (Flash required) * Sliding Window Demo (Shockwave required)