Login
You're viewing the code4lib.social public feed.
  • Nov 30, 2026, 1:32 AM
    retooted Attie Grande

    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.

    💬 1🔄 23⭐ 18