Passively Measuring Application Response Latency
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: Computer Science. The day in computer science: software, systems and theory on arXiv.
Tom: We're looking at the paper: "Passively Measuring Application Response Latency".
Title and authors: Tom: So, we’re looking at this paper titled "Passively Measuring Application Response Latency," and the authors Bhavana Vannarth Shobhana, Yen-lin Chien, Mark Doughten, Jonathan Diamant, Badri Nath, Shir Landau Feibish and Srinivas Narayana. Jane that sounds like a mouthful.
Jane: It is a bit long for a title but the authors are from Rutgers and the University of Haifa. What’s the main idea here?
Tom: Basically, they say latency is super important for figuring out how well an internet service is performing because it lets you spot bottlenecks or route things better or stop attacks.
Lu: I think they are focusing on a way to measure this latency passively at some intermediate vantage point without needing any special tools on the client side or adding extra probing overhead.
Jane: That’s the core appeal, isn't it? If you can see what a real client experiences without them having to install anything, that gives you much better insight into actual service quality.
Meng: But they’re tackling a problem because existing passive measurement techniques are just not cutting it anymore when transport headers are getting hidden or when the routing is messy.
Tom: Exactly. They argue that old methods don't work well now because of things like encrypted payloads or asymmetric routing being used intentionally by design, which makes those measurements inaccurate or just inefficient.
Jane: So what’s their proposed solution? What is "Pirate"?
Lu: Pirate is a passive approach they developed specifically for measuring response latencies when you can only see the traffic going from the client to the server and you can't even see those transport headers.
Tom: So how does it actually work in practice? How do we know what it’s measuring if we don't have those headers?
Lu: They leverage this idea of causal pairs, which means two requests where the response to the first one triggers the second request.
Jane: That sounds like a clever way to link events together without needing explicit control signals or headers.
Tom: Right, and they estimate this time gap between those causal pairs as a proxy for the client-side response latency.
Meng: So they are trying to figure out how long it takes for the application to finish its job based on when the next request comes in, even if the underlying transport layer stuff is invisible.
Jane: The paper says their experiments with a realistic web application show that Pirate can actually estimate those response latencies measured at the client application layer accurately.
Tom: That’s a big deal because it means we can get close to what the user actually experiences, not just some guess from the network path.
Lu: They use three main ideas to identify these causal pairs when you have lots of requests happening at once.
Jane: What are those three key ideas?
Title and authors: Lu: Their first idea is using the closed-loop nature of internet protocols and applications, where receiving a previous response generates the next request, like when one web object embeds another.
Tom: That makes sense because that dependence creates a clear causal link in time.
Jane: The second idea is to use the time gaps between packet arrivals to find these causal pairs when you have many concurrent requests flying around at the client end.
Meng: So they are looking for pauses in traffic patterns that suggest a response just came back?
Lu: They call this the prominent packet gap assumption, which posits that the pause between bursts of data is longer and more noticeable than the small gaps within a single burst of data.
Jane: And the third idea involves observing how packets arrive over time to find those prominent packet gaps by building a lightweight construction to measure a coarse histogram of all those packet arrival times within a connection.
Tom: So they are essentially using timing patterns in the traffic stream, rather than looking at explicit headers, to infer the application response time.
Jane: When you look at the results, they say Pirate gets a median relative error of zero point sixty-three percent compared to what is measured directly at the client application.
Meng: A median error of zero point six three percent is pretty good, especially when you consider how much complexity we usually have to deal with when deploying things in production.
Tom: But they also note that the accuracy varies; it gets within plus or minus fifteen percent error ninety percent of the time.
Jane: That gives you a sense of robustness, but they also mention that outside of those central ninety percent, it can stretch beyond plus or minus ten percent and even plus or minus fifteen percent at the tails beyond the five to ninety-five percentile.
Lu: So it’s not perfectly consistent across all scenarios.
Tom: They find Pirate performs better in larger round-trip times and wide area settings compared to when the network is very close together or in a single cluster.
Jane: It also seems pretty solid because their error is close to zero for more than ninety percent of the measurements across all traffic configurations, even when you have things like packet loss or reordering happening.
Meng: That robustness against loss and reordering is what matters for us; we deal with those kinds of messy network conditions every day when shipping models to production.
Tom: So how does this translate into something practical for load balancing? What’s the application here?
Jane: The paper shows they designed a latency-optimizing layer four load balancer that uses these real time measurements to adjust server weights dynamically.
Lu: They use three key ideas there to assign those weights, which includes taking away weight from servers with average latencies above a high watermark and placing them on servers with average latencies below a low watermark.
Title and authors: Tom: That’s adaptive control, right? The load balancer unilaterally changes its configuration based on the latency signals it gets from Pirate.
Meng: So this means you can have a system that reacts to real time performance instead of just using static settings based on some pre-set average.
Jane: It enables latency aware decisions by letting the load balancer make those changes on its own without needing external input for every decision.
Tom: And they report that this Pirate enhanced layer four load balancer cuts tail latencies by thirty seven percent.
Lu: That thirty seven percent reduction in tail latencies is a significant outcome for a system like this, especially when you’re dealing with the variability we see in real traffic.
Jane: It also leads to more predictable tail latencies, which means smaller error bars on those latency measurements.
Tom: So we’ve seen how they measure it, how accurate it is against application layer measurements, and now how that measurement can be used to actively improve performance in a load balancer setup. What's the final word from the authors?
Jane: The main conclusion is that Pirate’s estimate of the causal pair delay is a good way to estimate response latency.
Tom: They compare it against transport layer round-trip time estimators, and they find that RTT measures consistently underestimate response latency.
Lu: That underestimation with transport layer RTT is something they point out, which sets up Pirate as a better estimator for what the application actually experiences.
Jane: Despite having those limitations we talked about earlier, they say Pirate is robust for HTTP one point one like web traffic and fast growing API traffic.
Meng: I’m still worried about the assumptions they make, though. They admit that applications with significant client think times can suffer from sizable overestimations of response latency.
Tom: And another thing they flag is that the estimator assumes successive batches of packets are causally related, which gets violated by large response objects and arbitrary reordering in server responses relative to those requests.
Jane: So the paper is useful for understanding how to measure latency when you can’t see what's inside the transport layer, even with encryption. It shows a path forward for building reactive feedback control systems that rely on continuous passive measurement.
Tom: So we have Pirate, which measures latency by looking at causal pairs in traffic patterns, and it can be used to feed into an adaptive load balancer that cuts tail latencies by thirty seven percent, even though there are still some assumptions about packet ordering and response size.
Lu: It’s a solid piece of work for figuring out how to bridge the gap between what the network sees and what the application actually feels.
Jane: It definitely moves us closer to having more accurate ways to measure service performance in modern distributed systems, even when things are heavily encrypted or routed strangely.
The paper's summary: Tom: So, basically, they've figured out a passive method where you just look at the traffic flow and see how requests trigger each other to estimate the delay between them.
Jane: Right, so instead of asking the client for a timestamp or some special header that might be missing because of encryption or fragmentation, Pirate looks for these pairs where one request definitely caused the next one to happen.
Tom: It's about finding these causal pairs and using that time gap as a proxy for what the application actually took to respond.
Lu: They use three main tricks to find those pairs when you have tons of things happening at once, focusing on packet gaps and how packets arrive over time.
Meng: That sounds like they’re trying to build a system that works even when you can't see the inside of the pipes connecting the client and server.
Jane: And what they found is that this method gets close to real application latency measurements, with a median error of point six three percent compared to direct client measurements.
Tom: That’s low for something so complex, especially since they also showed it's robust against packet loss and reordering in the network.
Lu: It’s solid because it works well even when things get messy at the transport layer, which is exactly where most of these passive measurement ideas fail.
Jane: But there are limits to Pirate too; they admit that if an application takes a long time just thinking about what to do next, the estimate can get pretty big and overestimate the latency.
Tom: And another thing they mentioned is that their method relies on the idea that successive batches of packets are causally related, which gets broken by things like really big response objects or random reordering in server replies.
Lu: So it’s a tool that works well for HTTP one point one web traffic and fast growing API traffic, but you have to be careful if you’re dealing with those specific kinds of complex application behavior.
Jane: The real implication is that this opens the door for building systems, like those load balancers we talked about, that can use this measurement to adapt themselves in real time.
Tom: Exactly, so instead of just guessing based on averages or static settings, a load balancer can use Pirate's estimate to make smart decisions on where to send traffic.
Lu: And they showed that a layer four load balancer using Pirate measurements cuts tail latencies by thirty seven percent, which is pretty substantial for reducing the worst-case delays.
Jane: It means you get more predictable tail latency measurements, which helps you build systems that have smaller error bars on their performance promises.
Tom: So we’ve got a passive way to measure what the application actually feels, and now we have a way to use that measurement to actively fix bottlenecks in the network path.
Jane: It really shows how important it is for these reactive feedback control systems—systems that change behavior based on continuous measurement—to have tools that can see past those invisible transport headers.
Tom: Next up, we’re gonna talk about how this stuff actually gets put into practice with load balancing, which is where the biggest wins are happening.
The paper's improvements: Tom: So, we've seen how Pirate estimates latency using causal pairs in traffic patterns, and now the paper points out how they can make that estimation even better by adding some extra tricks to the method itself.
Jane: Right, so if Pirate has those limitations we discussed—like overestimating latency when clients are slow or not being perfectly ordered—the authors propose two specific heuristics to fix those issues.
Tom: They suggest two main improvements: first, they can coalesce packets that are just transport layer acknowledgments into one group, and second, they can mark packet groups following a non-MTU packet as candidates for measurement.
Lu: Those little tweaks are designed to clean up the input data so the causal pair identification is more reliable than it was before.
Jane: That makes sense; if you can reduce noise in the input data, you should be able to get closer to that median error of point six three percent we saw earlier.
Tom: They say these heuristics provide a noticeable boost to accuracy, especially when the system needs to track fast changes in latency fluctuations.
Meng: From an engineering standpoint, if those little rules can help the measurement record stay cleaner under real-world load, that makes deploying this much more reliable at scale.
Lu: And they show that these improvements actually help Pirate track those quick jumps in latency more accurately than before.
Jane: So, what does this mean for the practical application? It means we can tune the measurement tool itself to be more sensitive to real-time changes instead of just relying on a fixed algorithm.
Tom: It’s about making the estimation process smarter, not just changing how we use the result later in a load balancer.
Lu: And they put this into action by showing Figure thirteen, which compares the estimated latencies when you turn off both these heuristics against running Pirate on its own.
Jane: The comparison shows that turning them off hurts accuracy quite a bit, proving that these additions actually add value to the measurement quality.
Tom: So we go from a basic causal pair estimation to an enhanced one using those specific packet grouping rules, and it improves how well the system tracks rapid latency changes.
Lu: It’s about making the passive measurement more adaptive itself so it can keep up with dynamic network behavior.
Jane: This moves us toward a system that is more robust because it's not just passively watching, but actively filtering the traffic signals it sees.
Tom: So we have these refined Pirate measurements, better at handling those tricky timing patterns we mentioned earlier, which sets us up for even tighter control in our load balancing setups.
Conclusion: Tom: So we’ve covered how Pirate measures latency by looking at causal pairs in traffic patterns and how those measurements can feed into an adaptive load balancer that cuts tail latencies by thirty seven percent.
Jane: Right, it really boils down to this: we have a passive way to measure what the application feels, even when the underlying network details are hidden or messy.
Tom: And the key thing is that this isn't just a theoretical exercise; it’s something you can actually use right now in production systems to make load balancing decisions based on real-time latency signals.
Lu: I think what really matters is how it changes the control loop; instead of reacting to an old average, the system reacts to the immediate causal relationships in the traffic stream.
Meng: If this works reliably under real traffic conditions and doesn't require a massive increase in CPU usage compared to existing tools like Katran, then this moves from interesting research to something we could actually deploy for better performance.
Jane: But we have to keep an eye on those caveats, because the authors are clear that if you’re dealing with really slow client thinking times or heavy response objects, the estimate can start getting way off.
Tom: Exactly. And they flag that it assumes successive batches of packets are causally related, which gets violated by arbitrary reordering or large response sizes.
Lu: So it’s a powerful tool for HTTP one point one traffic and fast growing API traffic, but you have to be careful if the application behavior is too unpredictable or complex.
Jane: The paper "Passively Measuring Application Response Latency" gives us a solid framework for building those reactive feedback systems that rely on continuous passive measurement.
Tom: It’s about bridging the gap between what the network sees and what the end user actually experiences, even when things are encrypted or routed strangely.
Jane: That's a big step forward for service performance monitoring, moving us away from just relying on transport layer round-trip time estimates that consistently underestimate latency.
Tom: So we’ve seen how Pirate measures it, how accurate it is against application layer measurements, and now how that measurement can be used to actively improve performance in a load balancer setup.
Lu: It's a solid piece of work for figuring out this measurement problem under difficult conditions.
Meng: I just hope the engineering overhead isn't too much when we try to integrate this into our existing infrastructure, but the potential for cutting those tail latencies by thirty seven percent is compelling enough to keep looking at it.
Jane: Well, that’s what we’ve seen today with Pirate and its proposed improvements. We’ll be sure to follow up on how this measurement method interacts with other advanced techniques in our next show.
Rutgers University · University of Haifa
cs.NI
Submitted: 2025-05-20
Updated: 2026-12-01
Code: https://github.com/litespeedtech/lsquic
License: http://creativecommons.org/licenses/by/4.0/
Importance score: 85/100
The gist: Latency is a key indicator of Internet service performance.<ref:2505.14358#pg1, Latency is a key indicator of Internet service performance>.
Key concepts
- Pirate
- An algorithm that passively measures response latencies by identifying 'causal pairs'—two requests where the second request is triggered by the response to the first. It estimates latency based on the time gap between these dependent requests, acting as a proxy for client-side response time even when headers are hidden.
- Causal Pairs
- Two network requests that are causally related, meaning one request cannot be sent until the previous one has received its response. Pirate identifies these pairs by looking at packet arrival times and gaps between bursts of data, which helps determine the time delay associated with a specific response.
- Tail Latency Reduction
- A technique where a load balancer uses real-time measurements from Pirate to dynamically adjust server weights. By shifting traffic away from slow servers (high latency) and towards faster ones (low latency), this system can cut the worst-case response times—the tail latencies—by 37%.
Terminology
Summary
Latency is a key indicator of Internet service performance. p. 0 Measuring Response Latencies Under Asymmetric
Routing
Bhavana Vannarth Shobhana1
, Yen-lin Chien1
, Mark Doughten1
, Jonathan
Diamant2
, Badri Nath1
, Shir Landau Feibish2
, Srinivas Narayana1
1 Rutgers university 2 University of Haifa
ABSTRACT
Latency is a key indicator of Internet service performance. Continuously tracking the latency of client requests enables
service operators to quickly identify bottlenecks, perform
adaptive resource allocation or routing, and mitigate attacks. Measuring Response Latencies Under Asymmetric
Routing
Bhavana Vannarth Shobhana1
, Yen-lin Chien1
, Mark Doughten1
, Jonathan
Diamant2
, Badri Nath1
, Shir Landau Feibish2
, Srinivas Narayana1
1 Rutgers university 2 University of Haifa
ABSTRACT
Latency is a key indicator of Internet service performance. Continuously tracking the latency of client requests enables
service operators to quickly identify bottlenecks, perform
adaptive resource allocation or routing, and mitigate attacks. Existing methods are inapplicable, inaccurate,
or inefficient. This paper presents Pirate, a passive approach for measuring response latencies when only client-to-server traffic
is visible, even when transport headers are invisible. Existing methods are inapplicable, inaccurate,
or inefficient. This paper presents Pirate, a passive approach for measuring response latencies when only client-to-server traffic
is visible, even when transport headers are invisible. This paper presents Pirate, a passive approach for measuring response latencies when only client-to-server traffic
is visible, even when transport headers are invisible. Pirate
estimates the time gap between causal pairs—two requests
such that the response to the first triggered the second—as a
proxy for the client-side response latency. This paper presents Pirate, a passive approach for measuring response latencies when only client-to-server traffic
is visible, even when transport headers are invisible. Pirate
estimates the time gap between causal pairs—two requests
such that the response to the first triggered the second—as a
proxy for the client-side response latency. Pirate
estimates the time gap between causal pairs—two requests
such that the response to the first triggered the second—as a
proxy for the client-side response latency. Our experiments
with a realistic web application show that Pirate can accurately estimate the response latencies measured at the client
application layer. Our experiments
with a realistic web application show that Pirate can accurately estimate the response latencies measured at the client
application layer. A Pirate-enhanced layer-4 load balancer
(with DSR) cuts tail latencies by 37%.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Core Measurement Strategy
The paper introduces Pirate, an algorithm that passively and continuously measures response latencies under routing asymmetry, even when transport headers are missing due to encryption or fragmentation.<ref:2505.14358#pg1, Pirate leverages the idea of causal pairs, two requests the second of which is triggered by the response to the first>. p. 0 This paper presents Pirate, a passive approach for measuring response latencies when only client-to-server traffic
is visible, even when transport headers are invisible. Pirate
estimates the time gap between causal pairs—two requests
such that the response to the first triggered the second—as a
proxy for the client-side response latency. We assume that the vantage point of measurement
lies along the path from the client to the server. 1 Causal Pairs
Instead of measuring the time interval between a request
and its response, our first key idea is to measure a proxy
time interval—the time between a request and the packet
transmitted by the client upon receiving the corresponding
response. When application requests
depend on the contents of prior responses—for example, a
web object embeds other objects—the reception of a previous
response generates the subsequent request. Flow-controlled
applications (transports) mandate that new requests (packets) be transmitted only after prior responses (acknowledgments) arrive.Where the paper says it
Where the paper says it
Where the paper says it
Identification of Causal Pairs
The method uses three key ideas to identify causal pairs when multiple requests are in flight.<ref:2505.14358#pg2, Our second key idea is to leverage the time gaps between packet arrivals to identify causal pairs when a client has many concurrent requests in flight>. p. 4 Measuring Response Latencies Under Asymmetric Routing Submitted for review to SIGCOMM, 2026
3. 2 Prominent Packet Gap Assumption
Our second key idea is to leverage the timings of packet
arrivals to identify causal pairs when a client has many concurrent requests in flight. The prevalence of
burst-then-pause behavior is well documented: TCP senders
that use window-based transmission send bursts of packets,
termed flowlets [116, 122], separated by a pause, termed the
flowlet gap. We exploit the observation that, in many practical scenarios, the pause is noticeably longer and more prominent
than the packet inter-arrival times in the burst, since the
former is subject to network and server processing delays,
while the latter is determined solely by the client’s ability to
transmit requests. Our third key idea is the following: While a single prominent packet gap is subject to (unknown) network, application,
and server conditions, observing packet inter-arrivals over
a period of time provides a more robust picture. In this paper, we leverage the probability distribution of inter-arrival
times to identify prominent packet gaps by designing a lightweight construction to measure a coarse histogram of all
packet inter-arrival times within a connection.Where the paper says it
Where the paper says it
Where the paper says it
Accuracy and Robustness Evaluation
The evaluation demonstrates that Pirate achieves a median relative error of 0.63% relative to the response latency measured at the client application. p. 1 Across all monitored responses,
Pirate achieves a median relative error of 0. 63% relative to
the response latency measured at the client application, and
gets to within ±15% error 90% of the time. error (wide area)
Figure 4: Accuracy in estimating the response latency (req-to-res) under realistic settings. Subfigures (a)–(c) show distributions
within a single cluster; (d) shows Pirate’s relative error in a wide-area network with different degrees of cross traffic. The causal pair delay is always
an overestimate of the response latency, showing a relative
error between −10% to 0%. Pirate’s relative error is less
than 1% at the median, but stretches beyond ±10% outside
10𝑡ℎ −90𝑡ℎ pc, and beyond ±15% at the tails beyond 5
𝑡ℎ −95𝑡ℎ
pc. Pirate’s error is close to 0%
for more than 90% of the measurements across all cross traffic configurations. Comparing Figure 4 (c) and Figure 4 (d),
Pirate exhibits a higher accuracy in larger RTT, wide-area
settings, than in smaller RTT, single-cluster settings. Figure 4 (d) shows the relative error
of Pirate across different levels of cross traffic, expressed
as a % of bottleneck capacity. Pirate’s error is close to 0%
for more than 90% of the measurements across all cross traffic configurations. key-value store)? Our third key idea is the following: While a single prominent packet gap is subject to (unknown) network, application,
and server conditions, observing packet inter-arrivals over
a period of time provides a more robust picture.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Application in Load Balancing
The paper designs a latency-optimizing layer-4 load balancer that uses real-time measurements to adapt weights dynamically.<ref:2505.14358#pg7, We use three key ideas to assign the weights>. p. 6 We assume that the load balancer provides mechanisms to assign weights to distribute the load across servers. We use three key ideas to assign the weights. We use three key ideas to assign the weights. First, we take
away weights from servers with latencies above the high watermark, and place them on servers with latencies below the
low watermark. We use three key ideas to assign the weights. First, we take
away weights from servers with latencies above the high watermark, and place them on servers with latencies below the
low watermark. The
load balancer may use direct server return [106] to avoid
processing the responses. Since Pirate works under routing
asymmetry, it is possible to make latency-aware decisions
by unilaterally changing the load balancer, leaving clients,
servers, application software, and the network unmodified.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Limitations and Future Work
Pirate has two significant limitations stemming from its assumptions.<ref:2505.14358#pg13, Pirate has two significant limitations, both stemming from the estimator’s assumptions>. p. 7 We also show the time delay
between the causal pair (req-to-req), which Pirate approximates. The three distributions are closely aligned, providing
confidence that (i) the time delay between causal pairs is a
good estimator of response latency, and (ii) that Pirate can
estimate the latter with high accuracy, in realistic settings
where the client maintains persistent and pipelined connections with multiple concurrent application-layer requests
over each connection (§4. In experiments on lightly-loaded machines,
we have measured client think times ranging from a few microseconds to a few tens of microseconds. Second, a response
latency measurement is available only for one request per
causal pair, not for all requests transmitted between the two
requests of a causal pair on the same connection. In experiments on lightly-loaded machines,
we have measured client think times ranging from a few microseconds to a few tens of microseconds. Second, a response
latency measurement is available only for one request per
causal pair, not for all requests transmitted between the two
requests of a causal pair on the same connection. The second kind of error, labeled staggered-response, occurs when a series of large response objects (each spanning
multiple network RTTs) causes successive requests to be
transmitted well apart in time. Pirate mistakes the pauses
between the causally-unrelated successive requests to be
pauses between causally-related ones. The second kind of error, labeled staggered-response, occurs when a series of large response objects (each spanning
multiple network RTTs) causes successive requests to be
transmitted well apart in time. Pirate mistakes the pauses
between the causally-unrelated successive requests to be
pauses between causally-related ones. To simulate dependent HTTP requests generated by
parsing HTTP responses (e. , images embedded in HTML),
each response returned by the server includes references to
different kinds of embedded objects drawn from the corresponding empirical probability distribution in our dataset. Pirate correctly identifies
the causal pairs but the latter delay is not representative of
response latency. The second kind of error, labeled staggered-response, occurs when a series of large response objects (each spanning
multiple network RTTs) causes successive requests to be
transmitted well apart in time.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Software Overhead Analysis
The overhead of Pirate is evaluated in the context of a layer-4 load balancer like Katran.<ref:2505.14358#pg11>. Pirate’s CPU usage is comparable to Katran’s but slightly higher. p. 9 Subfigure (a)
reports the CPU utilization measured using perf events [38],
in comparison to Katran and the CPU idle thread. Pirate’s
CPU usage is comparable to Katran’s but slightly higher.Where the paper says it
Heuristic Improvements
Two heuristics are used to improve the accuracy of Algorithm 2.<ref:2505.14358#pg18>. These include coalescing IPGs corresponding to pure transport-layer acknowledgments into one IPG and explicitly marking IPGs following a non-MTU packet as candidate modes. p. 5 Submitted for review to SIGCOMM, 2026 Bhavana . Through knowledge of standard parameters used for retransmission timeouts in transport stacks (publicly known
for several standard TCP and QUIC configurations [8, 23,
123]), it is possible to eliminate the modes corresponding to
retransmission timeouts and idle periods, leaving behind the
de-noised distribution of IPGs, which only includes gaps
between request packets that are either (i) back-to-back
transmissions without causal dependencies, or (ii) causallytriggered requests sent after a prominent packet gap. We ran a similar experiment to compare the RTT of a QUIC
connection measured using the spin protocol extension [63]
with the application-level response latency, measured with
quic library lsquic [14] on a real web page. Figure 1 (b)
shows that the two values diverge, especially when there are
multiple RTT samples corresponding to a single response
latency.Where the paper says it
Where the paper says it
Feedback Control Utility
Measurements from Pirate enable real-time robust feedback control.<ref:2505.14358#pg7, Can measurements from Pirate enable more robust realtime feedback control? p. 6 3) What overheads does Pirate impose on a software
middlebox? 4) Can measurements from Pirate enable real-time robust feedback control? We integrated Pirate into Katran [17], an open-source layer4 load balancer based on Maglev hashing [68]. Latency-aware
Katran cuts the 99th percentile latency in our experimental
setup by 37% on average across loads, relative to vanilla
Katran. Figure 1 (b)
shows that the two values diverge, especially when there are
multiple RTT samples corresponding to a single response
latency. The error bars show the minimum and maximum
RTT reported through spin.Where the paper says it
Where the paper says it
Where the paper says it
Comparison Against Existing Methods
Pirate's estimate of the causal pair delay is a good estimator of response latency.<ref:2505.14358#pg12>. Compared to transport-layer RTT estimators, RTT measures consistently underestimate response latency. p. 9 Figure 6 (a) compares the CDF of the latencies measured
by each technique over all objects across all connections. Even with a simplified version of a realistic workload, RTT
measures consistently underestimate response latency, since
they are more closely aligned with the time to the first byte
of the response, as opposed to the last byte.Where the paper says it
Conclusion on Utility
Despite its limitations, Pirate is robust for HTTP/1.1-like web and fast-growing API traffic. p. 9 Figure 7: Latencies from memtier (ground truth) and Pirate. Measuring API traffic from memcached. 3) What overheads does Pirate impose on a software
middlebox? 4) Can measurements from Pirate enable real-time robust feedback control? Figure 7: Latencies from memtier (ground truth) and Pirate. Measuring API traffic from memcached. For example, time-varying bursts and
packet losses in the network [58, 75], or server variability
due to noisy neighbors, load, and resource scheduling [55,
57, 72, 97], can significantly change the latency perceived by
the same client connection over time. Consequently, the community has developed several techniques and systems for continuous latency measurement.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.
Improvements for AI systems
-
Adaptive Feedback Control for Layer-4 Load Balancing: The improved system can use Pirate measurements in a feedback control loop to adapt a layer-4 load balancer, which
cuts tail latencies by 37%.
This allows the load balancer to makelatency-aware decisions
unilaterally by changing its configuration based on real-time latency signals. -
Robust Application Latency Estimation: The system can continuously measure response latencies for individual objects throughout a connection's lifetime, using Pirate to estimate the
per-object time-to-last-byte.
This estimation achieves amedian relative error of 0.63% relative to the response latency measured at the client application,
which is more accurate than existing transport RTT estimators. -
Mitigation of Asymmetric Routing Impacts: The system can accurately estimate response latencies even when dealing with
routing asymmetry
andmissing or encrypted transport headers,
addressing a critical gap in passive measurement techniques that are currentlyinapplicable, inaccurate, or inefficient.
Abstract
Latency is a key indicator of Internet service performance. Continuously tracking the latency of client requests enables service operators to quickly identify bottlenecks, perform adaptive resource allocation or routing, and mitigate attacks. Passively measuring the response latency at intermediate vantage points is attractive since it provides insight into the experience of real clients without requiring client instrumentation or incurring probing overheads. This paper presents PIRATE, a passive approach to measure response latencies when only the client-to-server traffic is visible, even when transport headers are encrypted. PIRATE estimates the time gap between causal pairs - two requests such that the response to the first triggered the second - as a proxy for the client-side response latency. Our experiments with a realistic web application show that PIRATE can estimate the response latencies measured at the client application layer to within 1 percent. A PIRATE-enhanced layer-4 load balancer (with DSR) cuts tail latencies by 37 percent.
Sources
Related papers
- Minimizing Optical Circuit Reconfigurations for Concurrent Collectives
- Beyond the Next Hop: Measuring Data-Plane Forwarding for RPKI-Invalid Prefixes in the Wild
- Predicting Networks Before They Happen: Experimentation on a Real-Time V2X Digital Twin
- Cyber Resilience in Next-Generation Networks: Threat Landscape, Theoretical Foundations, and Design Paradigms
- MultiMoQ: Multi-Access Media-Over-QUIC for Robust Immersive Video Streaming
- AoA Services in 5G Networks: A Framework for Real-World Implementation and Systematic Testing