4 ms·
The little SSH that sometimes couldn't (2012)
- tristor 3y agoThis is a great write-up demonstrating how you can use basic tools and a knowledge of networking protocols to identify a failure on the Internet on a hop you don't control. Thanks for sharing this with us.
- pzmarzly 3y ago(2012)
- dang 3y agoAdded above. Thanks!
- JCBird1012 3y agoReading this made me think “huh, where have I seen something like this before?” - an AT&T router was doing something awfully similar back in 2020 - https://news.ycombinator.com/item?id=25335936 https://news.ycombinator.com/item?id=25335936
- gnabgib 3y agoOr perhaps the first time it was posted here in 2012 (508 points, 64 comments): https://news.ycombinator.com/item?id=4709438 https://news.ycombinator.com/item?id=4709438
- dang 3y agoRelated: The little ssh that sometimes couldn't (2012) - https://news.ycombinator.com/item?id=9865698 https://news.ycombinator.com/item?id=9865698 - July 2015 (8 comments) The little ssh that (sometimes) couldn't - https://news.ycombinator.com/item?id=4709438 https://news.ycombinator.com/item?id=4709438 - Oct 2012 (63 comments)
- bcrl 3y agoThat reminds me of the time a shiny new enterpricey ethernet switch delayed a release of Red Hat Linux until we figured out that it was happily corrupting packets and fixing up the CRC and checksum causing certain stress tests being run over NFS to fail randomly. It turns out that sometimes hardware devs don't actually design for the level of reliability expected by customers in their hardware.
- tzs 3y agoSounds similar to something I hit at work once. I built a release of one of our products and uploaded the binary to a file server on our Ethernet LAN for the test department to test, but the upload failed. Everything else I tried to upload worked. I found I could also not transfer that file to anything else over Ethernet. After some experimenting I determined that there was a particular 4 byte (if I remember the length correctly) string that simply could not be sent or received by my Ethernet card. Some searching turned up something on some obscure support forum where the maker of that card admitted that there was a bug in the hardware's checksum implementation that made it fail on that byte pattern. A friend of mine in college had an interesting hardware data corruption bug on a computer he built for his project in the microprocessor lab we both took in 1982. We did a joint project, where together we designed a small 68k based system and then separately each built a copy. Here's mine [1] [2]. On mine the serial ports worked fine up to 19200 bps (the limit of the ADM3a terminals we were using). On his once you got past 2400 bps it started getting errors. That nature of the errors was such that only a subset of the possible ASCII characters could be sent. Characters outside that subset would be replaced by characters from the subset. The faster you went the smaller the working subset. What happened was that there were filter capacitors on the serial lines to filter out high frequency noise. My filter capacitors were correct. His were not. When he had went to the EE stockroom to buy filter capacitor they gave him capacitors that were a couple of orders of magnitude bigger than he asked for. On his system then if a character with too many bit transitions or bit transitions to close together those looked like high frequency noise to the filter capacitors and were filtered out. [1] https://imgur.com/Ts9wcfW https://imgur.com/Ts9wcfW [2] https://imgur.com/3D4rvdC https://imgur.com/3D4rvdC
- macropin 3y agoReminds me of a similar story from a colleague regarding email an email that couldn't be sent with a specific subject. After much troubleshooting by L1/L2 techs it turned out to be a bit pattern error / broken ASIC in a core router/switch. I've personally twice encountered similar issues, once with FTPS and another with HTTPS, both manifesting as strange cryptographic failures, but ultimately caused by broken network device somewhere in the path.
- iforgotpassword 3y ago> Some readers might have already checked ASCII charts and reached the conclusion: There’s a single bit statically stuck at “1” somewhere. Well, my first guess was they were going through a Xerox. :)) <http://www.dkriesel.com/en/blog/2013/0802_xerox-workcentres_are_switching_written_numbers_when_scanning http://www.dkriesel.com/en/blog/2013/0802_xerox-workcentres_...>
- notso411 3y ago[dead]
- bhawks 3y agoWith nearly 100% of Web traffic served over HTTPS one would think that stories like this become much less frequent as the transport layer crypto is very picky about data integrity.
- TealBumpk 3y ago[dead]
- tlb 3y agoIt’s crazy that carrier-grade routers don’t auto-detect packet data corruption. They could do it by injecting test packets on ingress ports and sniffing on egress. Something like this would be detected quickly. It’s better to shut down a router corrupting packets and let the system route around it than keep corrupting.
- twic 3y agoWhenever we have weird network problems, the first thing our networks people do is check the bad packet counters on the machines involved. It annoys me slightly, because the problem is never related to packet corruption. But ... > A Montreal machine receiving this packet discarded it at the kernel level after realizing it’s corrupt, never passing it to the userland ssh daemon. London then re-transmitted it, going through the same corruption, getting the same silent treatment. From ssh and sshd’s perspective, the connection was at a stalemate. From tcpdump’s perspective, there was no loss, and Montreal machines appeared to be just ignoring data. ... it would have caught this! I suppose it's a good habit, because it's a cheap check for something that would be absolutely baffling otherwise.
- wazoox 3y agoAh yes. I had a similar weird problem once with SSH. I still don't know what's wrong... https://unix.stackexchange.com/questions/750807/ssh-all-full-screen-commands-vi-top-screen-fail https://unix.stackexchange.com/questions/750807/ssh-all-full...