Skip to main content
QUICK REVIEW

[Paper Review] Deconstructing the Tail at Scale Effect Across Network Protocols

Akshitha Sriraman, Sihang Liu|arXiv (Cornell University)|Jan 10, 2017
Cloud Computing and Resource ManagementComputer Science19 references5 citations
TL;DR

This paper identifies the operating system kernel's TCP/UDP protocol stack as the primary source of extreme tail latencies in network protocols, despite eliminating network congestion and protocol complexity. Using controlled experiments across TCP-IP, UDP-IP, and RDMA, it shows that even connectionless UDP-IP exhibits massive 110x tail spikes, while RDMA—bypassing the OS kernel—shows negligible tails, proving the OS protocol stack is the root cause of performance degradation in modern low-latency systems.

ABSTRACT

Network latencies have become increasingly important for the performance of web servers and cloud computing platforms. Identifying network-related tail latencies and reasoning about their potential causes is especially important to gauge application run-time in online data-intensive applications, where the 99th percentile latency of individual operations can significantly affect the the overall latency of requests. This paper deconstructs the "tail at scale" effect across TCP-IP, UDP-IP, and RDMA network protocols. Prior scholarly works have analyzed tail latencies caused by extrinsic network parameters like network congestion and flow fairness. Contrary to existing literature, we identify surprising rare tails in TCP-IP round-trip measurements that are as enormous as 110x higher than the median latency. Our experimental design eliminates network congestion as a tail-inducing factor. Moreover, we observe similar extreme tails in UDP-IP packet exchanges, ruling out additional TCP-IP protocol operations as the root cause of tail latency. However, we are unable to reproduce similar tail latencies in RDMA packet exchanges, which leads us to conclude that the TCP/UDP protocol stack within the operating system kernel is likely the primary source of extreme latency tails.

Motivation & Objective

  • To investigate the root causes of extreme tail latencies in network protocols used in warehouse-scale computing platforms.
  • To determine whether network congestion, flow fairness, or protocol complexity (e.g., TCP’s three-way handshake) are responsible for observed tail latency spikes.
  • To isolate the role of the operating system kernel’s network protocol stack by comparing TCP-IP, UDP-IP, and RDMA under controlled conditions.
  • To evaluate whether the absence of OS intervention in RDMA eliminates extreme tail latencies, thereby implicating the kernel stack as the primary source of latency outliers.
  • To challenge the prevailing belief that TCP-IP inherently causes worse tail latencies than UDP-IP due to protocol complexity.

Proposed method

  • Conducted controlled network experiments across TCP-IP, UDP-IP, and RDMA protocols with minimal network congestion to isolate OS-level effects.
  • Measured round-trip times (RTTs) under varying bandwidth utilization to assess load impact on tail latency.
  • Used UDP-IP as a control to rule out TCP-specific features like flow control and retransmissions as the source of extreme tails.
  • Compared RTT distributions across protocols, focusing on 99th percentile latency and extreme outliers (e.g., 110x median).
  • Leveraged RDMA’s user-space bypass of the OS kernel to eliminate kernel protocol stack involvement and assess baseline tail behavior.
  • Applied process-of-elimination reasoning: ruled out network factors, TCP complexity, and user-mode software, leaving the kernel protocol stack as the most likely culprit.

Experimental results

Research questions

  • RQ1What causes extreme tail latencies in network protocols when network congestion and routing are eliminated?
  • RQ2Does the additional complexity of TCP-IP (e.g., three-way handshake, flow control) significantly increase tail latency compared to UDP-IP?
  • RQ3Can the OS kernel’s network protocol stack be the primary source of extreme latency outliers in modern low-latency systems?
  • RQ4Why do UDP-IP round-trips still exhibit massive tail spikes despite lacking TCP’s reliability mechanisms?
  • RQ5How does RDMA’s kernel-bypass design compare in tail latency behavior, and what does it imply about the root cause of extreme tails?

Key findings

  • Extreme tail latencies of up to 110x higher than the median were observed in TCP-IP round-trip measurements, even under uncongested network conditions.
  • UDP-IP exhibited similarly extreme tail latencies, ruling out TCP-specific protocol operations like retransmissions and flow control as the root cause of the outliers.
  • RDMA round-trip times were at most 150 µs and showed no significant tail spikes, indicating that the OS kernel protocol stack is the primary source of extreme latency tails.
  • The absence of OS kernel involvement in RDMA, combined with persistent tails in TCP/UDP-IP, confirms that the OS protocol stack—specifically, the need for multiple memory copies and system interrupts—is the dominant bottleneck.
  • The study challenges the assumption that TCP-IP inherently causes worse tail latencies than UDP-IP, as both protocols show comparable extreme tail behavior under the same conditions.
  • Legacy network protocol designs, optimized for older, slower CPUs, now expose sub-millisecond overheads that are no longer masked by computation delays, making them visible as millisecond-scale tail latencies in modern systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.