<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: 김영헌</title>
    <description>The latest articles on DEV Community by 김영헌 (@yhk0427).</description>
    <link>https://dev.to/yhk0427</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4263140%2Fc1b58e80-c807-46bf-9263-2f2dbf801a04.png</url>
      <title>DEV Community: 김영헌</title>
      <link>https://dev.to/yhk0427</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yhk0427"/>
    <language>en</language>
    <item>
      <title>My "ISP drops" were mostly my own network: measuring which hop broke, every second</title>
      <dc:creator>김영헌</dc:creator>
      <pubDate>Tue, 24 Nov 2026 16:58:39 +0000</pubDate>
      <link>https://dev.to/yhk0427/my-isp-drops-were-mostly-my-own-network-measuring-which-hop-broke-every-second-2gf6</link>
      <guid>https://dev.to/yhk0427/my-isp-drops-were-mostly-my-own-network-measuring-which-hop-broke-every-second-2gf6</guid>
      <description>&lt;p&gt;My home connection kept dropping for 3 to 10 seconds: long enough to freeze a call, too short for any uptime checker that pings once a minute. The usual question after each one is the same: was it the Wi-Fi, the router, or the ISP? Guessing gets the answer wrong a lot, so I built a small self-hosted tool that measures it instead: &lt;a href="https://github.com/YHK0427/whydrop" rel="noopener noreferrer"&gt;whydrop&lt;/a&gt;. This post is about what it measures and what the data from my own line showed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ask every hop, every second
&lt;/h2&gt;

&lt;p&gt;The path from a laptop to the internet has a few hops you can test separately:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;this device&lt;/strong&gt;: does it still have an address and a route?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Wi-Fi / cable&lt;/strong&gt;: is the link up, did it re-associate or roam?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;the router&lt;/strong&gt;: a TCP SYN to a closed port on the gateway. The router must answer with an RST, so an RST means "the router is alive", and it costs a few bytes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;the line&lt;/strong&gt;: probes past the router to several public servers (STUN over UDP, DNS, TCP connects). If one server is down that is not a drop; only a quorum of them failing counts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DNS&lt;/strong&gt;: the router's resolver, the ISP's, and public ones, separately.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each probe runs every second, and every result is stored with its round-trip time. When something fails, "which hop?" becomes a comparison of stored measurements instead of a guess.&lt;/p&gt;

&lt;h2&gt;
  
  
  What my own line showed
&lt;/h2&gt;

&lt;p&gt;The first ten hours recorded 32 drops, mostly 2 to 7 second "router" drops. That looked bad for the router, but the records said something else: during those seconds the router check timed out, yet the probes past the router were still being answered. Late, but answered, and every one of those replies had crossed the router on its way back. A router that forwards traffic is not down.&lt;/p&gt;

&lt;p&gt;The cause was queueing at home (Wi-Fi power save and bursts of 500 to 800 ms latency), not a dead router. After changing the rule so that a late reply counts as having crossed the router, replaying the same ten hours gave 14 drops instead of 32.&lt;/p&gt;

&lt;p&gt;"Call your ISP" was often wrong too: in 16 of 28 loss periods the router checks were failing as much as the line (one example: line 6 %, router 47 %). That is loss inside the home.&lt;/p&gt;

&lt;h2&gt;
  
  
  Show the measurements, not a label
&lt;/h2&gt;

&lt;p&gt;Calling every cause "likely" did not help anyone, so each verdict now lists what was measured and which causes those measurements rule out. A real 8-second stall from my line:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Router check: 4 of 13 answered, usually 2 ms, up to 846 ms&lt;/li&gt;
&lt;li&gt;Beyond the router: 173 probes, 82 on time, 76 late, 15 lost&lt;/li&gt;
&lt;li&gt;TCP canary: 1 retransmission, RTO 0.22 → 5.79 s, no RST&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Ruled out:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Not a router failure: 158 replies from beyond it crossed it&lt;/li&gt;
&lt;li&gt;Not a line outage: 158 of 173 probes beyond the router were answered, 76 of them late&lt;/li&gt;
&lt;li&gt;Not DNS, not an IP change, not the Wi-Fi link (no re-association within 15 s)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The verdict, in-home queueing, follows from those lines, and you can check it yourself.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fta6oqeb8slhgr72cacxb.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fta6oqeb8slhgr72cacxb.gif" alt="The drop page: the path, then the measurements behind the verdict" width="600" height="380"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Upload or download?
&lt;/h2&gt;

&lt;p&gt;With an optional tiny reflector on a VPS, a stream of 10 UDP packets a second comes back with a receive count and a 32-bit bitmap of what arrived, so each lost packet is placed on the way up or the way down. I checked it by injecting loss with &lt;code&gt;tc netem&lt;/code&gt; on the reflector: 273 and 312 packets lost all on the way down, 288 all on the way up, and each was attributed to the right direction.&lt;/p&gt;

&lt;h2&gt;
  
  
  When it really is the ISP
&lt;/h2&gt;

&lt;p&gt;The tool also builds a report to send the ISP: only what happened beyond the router, each event set against the router's answers at that same moment. On my line this month it lists four lossy periods, up to 17 % loss, and during each one the router answered every check, 164 of 164 in total. That answers "please restart your router" before anyone says it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Other things it measures
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;nat-test&lt;/code&gt; measures how long your NAT keeps idle UDP and TCP mappings. On my router UDP mappings survived 90 s and were gone at 120 s, which is the number to use for a WireGuard or Tailscale keepalive.&lt;/li&gt;
&lt;li&gt;A TCP canary reads &lt;code&gt;TCP_INFO&lt;/code&gt; on Linux, so a stall shows up as retransmissions and RTO backoff, and an RST tells you a middlebox killed the connection.&lt;/li&gt;
&lt;li&gt;Prometheus metrics, Home Assistant configs, and webhook, ntfy or Discord alerts.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;It runs in Docker (amd64, arm64, armv7), keeps everything in SQLite, needs no account, and never collects your Wi-Fi name. There is a read-only &lt;a href="https://yhk0427.github.io/whydrop/" rel="noopener noreferrer"&gt;live demo&lt;/a&gt; with three days of my own recordings, addresses hidden.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/YHK0427/whydrop &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;cd&lt;/span&gt; whydrop
docker compose up -d
docker compose logs whydrop &lt;span class="o"&gt;|&lt;/span&gt; grep dashboard
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  How it was built
&lt;/h2&gt;

&lt;p&gt;I built it for a university networking course with heavy use of Claude Code, which wrote most of the code, tests and docs. I set the design, ran it on my own network for days, and checked its verdicts against real recordings and injected faults. Several of the AI's rules were wrong on real data, including the router rule above. The full log, mistakes included, is in &lt;a href="https://github.com/YHK0427/whydrop/blob/main/docs/ai-process.md" rel="noopener noreferrer"&gt;docs/ai-process&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/YHK0427/whydrop" rel="noopener noreferrer"&gt;https://github.com/YHK0427/whydrop&lt;/a&gt;. I'd especially like to hear from people with mesh Wi-Fi, CGNAT or IPv6-only lines.&lt;/p&gt;

</description>
      <category>networking</category>
      <category>selfhosted</category>
      <category>homelab</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
