News for hackers. Stuff that matters.
Re:It's Always TCP_nodelay by Gibbon1 on Tuesday December 23, 2025 @02:36AM (#46363250)
Reminds me of trying to do IoT stuff in hospitals before IoT was a thing.

Send exactly one 205 byte packet. How do you really know? I can see it go out on a scope. And the other end receives a packet with bytes 0-56. Then another packet with bytes 142-204. Finally a packet a 200ms later with bytes 57-141.

FfffFFFFffff You!

Re:It's Always TCP_nodelay by taherm789 on Tuesday December 23, 2025 @03:49AM (#46363610)
Things like these make me cry
Re:It's Always TCP_nodelay by readmodifywrite on Tuesday December 23, 2025 @10:35AM (#46366138)
If you were using TCP, then this is absolutely normal and expected behavior. It is a stream protocol, not packet/message based.
Re:It's Always TCP_nodelay by josefx on Tuesday December 23, 2025 @11:25AM (#46366604)
At the application layer you would not see the reordered bytes. However on the network you have IP beneath both UDP and TCP and network hardware is normally free to slice and reorder those IP packages however it wants.
Re:It's Always TCP_nodelay by immibis on Tuesday December 23, 2025 @02:48PM (#46368694)
It's not. Routers are expected to be allowed to slice IPv4 packets above 576 bytes. They can't slice IPv6 and they can't slice TCP.

However, malicious middleboxes insert themselves into your TCP connections, terminating a separate TCP connection on each side of the spyware and therefore completely rewriting TCP segment boundaries.

In less common scenarios, the same may be done by non malicious middleboxes - but it's almost always malicious ones. The party that attacked xmpp.is/jabber.ru terminated not only TCP but also TLS and issued itself a Let's Encrypt certificate.

Re:It's Always TCP_nodelay by sundbry on Tuesday December 23, 2025 @12:06PM (#46366970)
If only there was some sort of User Datagram Protocol where you could send specifically tuned packets like this.
Re:It's Always TCP_nodelay by CamperBob2 on Tuesday December 23, 2025 @01:41PM (#46367951)
Those who do not understand TCP are doomed to reimplement it with UDP.

The same is true of those who do understand it.

Re:It's Always TCP_nodelay by nomel on Tuesday December 23, 2025 @03:12PM (#46368960)
That first time you do sure is fun though.