Grokking Operating Systems and Networking for Backend Engineers
Vote

0% completed

​

Flow Control and the Receive Window

A client uploads to a server over a link that carries 100 Mbit/s with a 100 ms round trip. The same upload program ran twice, sending for 8 seconds each time, and the only difference was the size of the server's receive buffer. With a 64 KB buffer, it measured:

Output:

server received 6.9 MB in 9.1 s: 0.75 MB/s

With the kernel's default buffer, the same upload moved 11.16 MB/s, about fifteen times as fast. Neither the network nor the CPU changed. The receiver's buffer alone limited how fast the sender was allowed to send.

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content