4 ms·
I recall it blew my fiancée’s mind that I could unplug her ethernet cable, move it around an obstacle, plug it back in and all her connections were still alive.
by hinkley 2y ago
I recall it blew my fiancée’s mind that I could unplug her ethernet cable, move it around an obstacle, plug it back in and all her connections were still alive. It’s designed to have bombs dropped on it.
- jancsika 2y agoWhat happens in that case? I'm going to speculate: 1. Remote keeps sending stuff to your unplugged connection 2. You plug your ethernet cable back in 3. Your computer's TCP acknowledges the last sequence number it received for each new sequence it receives from remote 4. Remote sees duplicate ACKs for same sequence number, interprets it as packet loss and resends the stuff
- deleted 2y ago[deleted]
- IgorPartola 2y agoWith timeouts. You can’t unplug it for an hour and have this happen. But a few seconds is exactly what this is designed for. As another commenter pointed out, your OS could also try to be “helpful”.
- toast0 2y agoYeah, that's pretty much it. If packets were sent while you were disconnected, they'll be gone, but if you're disconnected for only part of the burst, duplicate ACKing will trigger retransmits. If you were gone for the whole burst, you'll get put right by timer based retransmits. If you're gone for long enough, most peers will timeout on unacknowledged data (although that's not in the TCP RFC), and if there's no outstanding data, most peers eventually have some sort of periodic ping and timeout (tcp keep-alives is a reasonable fallback IMHO, if your application protocol doesn't have someything, although the default of IIRC 2 hours feels long in todays world of lots of NATs and much shorter timeouts).
- akira2501 2y agoIt may be your local gateway. Seeing no packets from your host. Attempting to refresh your MAC address via ARP. Getting no response. Generating an ICMP message as a result.
- toast0 2y agoDepends on OS settings these days. Lots of OSes want to help and detect link down and reset all your connections. Kind of a pain when you just want to move a cable.
- sgerenser 2y agoLike Chrome’s oh so helpful ERR_NETWORK_CHANGED
- Avamander 2y agoLike, I know?! Just reload the page already, I've told you twice. It's rather irritating.
- plorkyeran 2y agoAlso known as ERR_FUCK_YOU. Yes, I know that I'm connected to a misbehaving wifi router. Just load the fucking page.
- whaleofatw2022 2y agoLoud
- switch007 2y agoDrives me insane on Android with a VPN
- pjc50 2y ago.. on Linux. If you do that on Windows the MAC will detect the loss of link pulses, report the interface as down, and Windows will "helpfully" reset all your TCP connections.
- IshKebab 2y agoThat seems like way more sensible behaviour.
- Rygian 2y agoHow so?
- paulddraper 2y agoMore immediate response to disconnection. Rather than "IDK keep sending but I haven't heard ACK in a while"
- Rygian 2y agoWhen the disconnection is brief, there's no need to respond to it. It's the conceptual equivalent of your phone "helpfully hanging up" when you change the phone from one ear to the other during a call.
- paulddraper 2y agoIt's the conceptual equivalent of your phone helpfully hanging up when you turn on airplane mode.
- Rygian 2y agoTurning on airplane mode explicitly signals "sever all communications" in a way that making a quick adjustement of an ethernet plug does not.
- 2y ago