Uncovering hidden TCP throttling in the Linux kernel
Who doesn't love a good detective story?
One day, a customer was complaining about slow download speeds from one of our edge servers. Since the internet is full of unpredictability, complaints like that occasionally happen, but this time, there were no error codes. We couldn't reproduce the issue. The only thing we could see was lower traffic on the network interface. The strangest part was that it happened randomly, recovered on its own, and it didn't affect all clients connected to that server.
CDNs are usually built in a multi-layer setup. When a client requests content, the closest edge node serves it from its cache. If the content isn't there, the edge fetches it from an upper layer. The request can travel further up until it reaches a shield node, which finally fetches the content from the customer's origin. At CDN77, all these layers run heavily modified nginx. As we would eventually discover, nginx was an important part of this story.
Daniel Sedlak
The actual issue is a bit too technical for me to fully grasp, but it was reported upstream to the Linux kernel and it's being worked on.