Login
You're viewing the code4lib.social public feed.
  • Nov 29, 2026, 10:58 PM

    I have a _really_ fun puzzler for you fellow network nerds.

    The attached image is from a tool that generates outbound TCP SYN at ~4 Hz to a given endpoint. The source port (Y-axis) is controlled, randomised and set for each outbound connection attempt. The bottom band (~40,000) is the "control" band - these work 100% of the time, zero issues. The much wider / higher band is the ephemeral ports used by Windows + Mac (not Linux), a range of 49,152 - 65,535 that are handed out when new sockets are made. The points are sampled for display purposes, so this isn't nearly the full set, it's obviously much more dense in full.

    The red dots are the problem. With concerning regularity (though no fixed schedule found), outbound connections will just fail - the SYN never arrives at the destination, it's lost somewhere between my router and the target (confirmed by packet capture on a target under my control), and you see a timeout.

    You may notice that there's a distinct bottom to the red band... it's port 61,768 (what a weird and somewhat suspicious number). During these periods lower ports still work absolutely fine (from 61,767 and down).

    I don't yet have good data on whether an existing connection with a source port in this range will also fail / lose packets (next step!). Each window lasts for about 60 sec (probing from the edges, so some error on that, also suspicious) before traffic starts passing correctly again.

    The upshot of this is that customers get grumpy - devices disconnect from WiFi (internet aliveness fails), every single webpage fails to load for a while... and to make this weirder: at a given moment in time, it happens for one device on a customer network, but not another - because they're using different source ports.

    I'm working with the ISP to pin this down, and expect to be running some packet captures in their infrastructure this coming week (to see where the packets get lost). It's GPON, CGNAT, leased line, etc...

    What gives?!

    Ideas on a postcard please! 💡 📩

    edit: first image is a 12h span, second image is a 1h span.

    Render of a plot, showing time along the X-axis, and source port on the Y-axis. A thin band of green points is shown towards the bottom of the plot, as described. A much wider band of green points is shown above. At sporadic positions, the wider band of green has a new top band in red. Other colors are interspersed in the plot to show other information.
    Another image of the same form.
    💬 1🔄 23⭐ 18

Replies

  • Nov 29, 2026, 11:05 PM

    To be totally clear, this has plagued me for months, maybe years. Between "oh it's working again" / "is this my fault?" / "is this even actually a problem?" / "gah, I'm busy enough already!" ... it's been tough to work up motivation to get my teeth into it and narrow down what's going on. It's mega annoying, but you can go a few days without seeing a fault in real usage - though evidently from these results it's happening much more frequently than I'd have ever guessed!

    The ISP team are tearing their hair out and customers are getting grumpy. "all checks seem fine", etc...

    I made a breakthrough in my investigation a week or so ago, and confirmed it's not in my network. I saw grumpy faces on Facebook (I don't frequent, so didn't realise others were affected too, or even that they might complain there), and then I called the ISP on Friday - they said "this is possibly the best call I could have had today!" ... poor sods 😂

    💬 0🔄 0⭐ 5