Some Bits: Nelson's log

ISP connection monitoring with IRTT

I’ve set up some new monitoring for my Starlink residential connection recently, using IRTT as a sort of very fancy ping tool to measure latency and packet loss. Here’s a couple of screenshots

24 hours
1 hour

IRTT is a carefully written round trip measurement tool. I have it set up to send a small UDP packet every 100ms to a server in an LA data center at 45.66.249.240, very near where my Starlink connection goes after the satellite hop. The IRTT server responds immediately with a reply and the software records the round trip time and packet loss. (It also records asymmetric delays and other things that I’m skipping over.) I do these requests for 58 seconds once a minute and record the results for the last minute in the graph above.

The top graph is for a full 24 hours. Packet loss first, then round trip time, and finally a graph of Starlink’s data traffic. From 13:00 to 15:00 I downloaded something big (a game from Playstation). You can also see the evening congestion around 18:00 to 22:00.

The bottom graph (in green) is also packet loss and RTT but for one specific hour, the busiest 19:00 to 20:00 hour. The third IPDV graph is more or less a measure of jitter in RTT.

Interpreting

So what does this all mean?

First I want to highlight a top line number: my average packet loss is 1.5% for the whole day. That’s horrible. My packet loss on a great fiber ISP like Sonic is essentially zero. Even at very quiet times like 5am, Starlink packet loss is still around 0.5%. I realize satellite radio is inherently unreliable but I’d have expected with enough capacity that retransmits in the link layer should paper over most of that. Then again Starlink reports an “obstruction fraction” of 0.6% with obstruction duration of about 800ms every 20 minutes. So maybe this is related to my particular site. At a busy time, like 19:00 to 20:00, I’m at 5% packet loss when some minutes at 10% or more. I can definitely feel those using the Internet, it’s not good.

Another thing to highlight is the jitter in round trip times. At the busy 19:00 hour it’s 44-86ms RTT with 10ms standard deviation. Note these are min/max based on averages over one minute; individual packets can take as long as 400ms to get a reply (or maybe more?) The quiet hour is surprisingly bad too, 33-75ms with 8ms SD. The per-packet variance isn’t as bad as during a busy hour but it’s still notable. (I don’t have great visualizations of this data, I should focus more on it.)

One big pattern is a jump in packet loss and round trip during my download around 13:00. This is expected for a typical Internet node. It’d be nice if some traffic shaping lowered the RTT hit from the download but that’s hard and this basic behavior is is pretty common for an ISP. I’m OK with that.

The second big pattern, and much more problematic, is the increase in packet loss and RTT during the evening hours even though I’m not using my link myself. This is the #1 evidence of Starlink’s congestion and is getting worse over the months by every measure. They are overselling their capacity.

More Work

So that’s some preliminary results. Lots more to do. As I said above, I should do more to characterize the extremes of behavior; the 400ms round trips, the strings of 15 lost packets in a row. Those are more important to user experience than hour-long averages; you notice when the video pauses or the game disconnects you.

IRTT also logs details on every single packet and I should do more with that information. Someone I’m chatting with has some very interesting visualizations showing millisecond-scale phenomena in the connection, including visible changes in latency when the connection hops to a new satellite. Neat stuff!

IRTT is a good tool but not ideally suited for continuous monitoring. It wants to run to completion and then produce a report of summary stats like average RTT. (I run it every minute; for 58 seconds to give the last run time to finish before the next starts.) I’d rather have something running continuously and reporting exponentially weighted moving averages or the like.

I should get more serious about measuring my obstructions; they are certainly the cause of some of the packet loss I see, but not much. The Starlink app shows a log of obstruction events but I haven’t figured out how to get at it in my own code, it must be in the gRPC data somewhere.

A Note on Correctness

Trying to measure this stuff in a consumer setting is difficult. I am not running a lab here. But I do try to get it right. Everything is wired ethernet. My network connection is mostly pretty quiet. I did this testing with three different servers, the data above is from the best one. (A second server in LA showed occasional transient packet loss spikes; I suspect the cheap VM I’m on gets deprived of network or CPU occasionally.)

BTW one nice thing about these tools is they don’t use a lot of bandwidth, like 6 Kbps each way. It’s a much nicer way to measure connection health than speed tests. And the continuous UDP stream seems a better measure of real application experience than ICMP pings.