News for hackers. Stuff that matters.
Re:Homa, a transport protocol to replace TCP for low-latency... by bullen on Tuesday August 17, 2021 @05:06AM (#28207719)
On a switch you could probably trust UDP no?
Re:Homa, a transport protocol to replace TCP for low-latency... by magicalhippo on Tuesday August 17, 2021 @05:44AM (#28207945)
Well, if by "probably trust" you mean you are happy if that prediction fails every now and then, then sure.

If a link is saturated, say via TCP, then UDP data can still get dropped AFAIK.

Searching I found this blog post[1] which takes a small stab at it. Would be interesting to try other setups with more data.

Regardless, using UDP one should always be prepared to handle dropped and out-of-order packets.

https://openmymind.net/How-Unreliable-Is-UDP/

Re:Homa, a transport protocol to replace TCP for low-latency... by bullen on Tuesday August 17, 2021 @07:12AM (#28208587)
That link actually proves my point, thx!

Nothing is perfect, so I'll keep using UDP on a switch and TCP on the internet.

Re:Homa, a transport protocol to replace TCP for low-latency... by Hikikomori on Tuesday August 17, 2021 @08:33AM (#28209141)
Has nothing to do with using a switch or not.

If send a 1Gbit udp stream over a switch to another machine there will be no drops if both are connected with 1Gbit, the same is true if you use tcp, and over a router assuming its capable of forwarding that amount of traffic. If you have a third machine sending udp or tcp traffic towards the one receiving the 1Gbit udp stream you'll have drops on both streams. Doesn't matter what protocol you use, if you have congestion you'll have drops. You typically use udp if your application is real time, or if you want to create your own reliability mechanism and/or avoid issues with devices in the middle that does things with tcp.

Re:Homa, a transport protocol to replace TCP for low-latency... by magicalhippo on Tuesday August 17, 2021 @09:05AM (#28209394)
That was my point. If you design your system so that the links stay well below saturation, then you would not expect to see drops.

However they can still occur, maybe due to some unexpected congestion or other issues. So long as your application can deal with that you should be good.

Re:Homa, a transport protocol to replace TCP for low-latency... by nitrogen on Tuesday August 17, 2021 @09:59AM (#28209922)
other issues

Like intermittent EMI causing bit flips and checksum failures, which happened to me once in an IoT application where the Ethernet cable to an outbuilding was buried next to the power line, and the network would die whenever the furnace kicked on.

Re:Homa, a transport protocol to replace TCP for low-latency... by bullen on Tuesday August 17, 2021 @10:25AM (#28210178)
So where can one buy consumer 10Gb/s switches?
Re:Homa, a transport protocol to replace TCP for low-latency... by magicalhippo on Tuesday August 17, 2021 @11:09AM (#28210716)
MikroTik makes some, like the CRS305-1G-4S+IN[1] which is a 5-port variant at a very reasonable price.

Nice review by ServeTheHome here[2].

[1]: https://mikrotik.com/product/crs305_1g_4s_in

[2]: https://www.servethehome.com/mikrotik-crs305-1g-4sin-review-...

Re:Homa, a transport protocol to replace TCP for low-latency... by bullen on Tuesday August 17, 2021 @01:00PM (#28212129)
Thx, say I have 4x 1Gb/s old-school eth-port machines that want to saturate their capacity at the same time on one of these, should I just buy 4x 10GBase-T SFP+ transceivers for it?

Edit: Apparently LGS105/LGS108 has 10Gb/s switching capacity allready so I'm good!