Stop-and-Wait vs Sliding Window: Key Differences in Network Flow Control

Stop-and-Wait sends one packet, then pauses until the receiver confirms it; Sliding Window lets many packets fly continuously, confirming them in batches.

People picture both as “send and confirm,” so the names blur. In daily life, Stop-and-Wait feels like texting one photo at a time on WhatsApp, while Sliding Window is your friend dumping 50 memes without waiting for each “LOL.”

Key Differences

Stop-and-Wait: one outstanding frame, low throughput, simple. Sliding Window: N frames in flight, high throughput, needs buffer management and sequence numbers.

Which One Should You Choose?

High-latency satellite link? Stick to Stop-and-Wait to avoid buffer headaches. Gigabit LAN or 5G? Go Sliding Window to max out bandwidth and keep users happy.

Examples and Daily Life

Stop-and-Wait: old barcode scanners sending one code. Sliding Window: Netflix pre-loading the next three episodes while you watch.

Is Sliding Window always faster?

Only if the network is reliable; on lossy links, retransmissions can erase the speed gain.

Can Stop-and-Wait scale to modern speeds?

Not really; at gigabit rates the idle time between packets becomes longer than the transmission itself.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *