News for hackers. Stuff that matters.
Re:It's TCP vs. RPC All over Again by cjsplat on Tuesday February 21, 2023 @11:09PM (#34891522)
Sure, but what is UDP bringing to the party then? The pseudoheader?

A reasonable RPC layer could just layer on IP.

Re:It's TCP vs. RPC All over Again by roncesvalles on Tuesday February 21, 2023 @11:24PM (#34891626)
IIRC, UDP just adds port numbers and a checksum to IP. It's about as bare bones as it can get, unless you want to get rid of the checksum too.
Re:It's TCP vs. RPC All over Again by rezonant on Wednesday February 22, 2023 @07:19AM (#34894502)
Some implementations do skip checksum (leaving it as zero), for instance you can configure a Linux UDP socket to skip it if you can't afford the time it would take to calculate them.
Re:It's TCP vs. RPC All over Again by wmf on Tuesday February 21, 2023 @11:25PM (#34891633)
The UDP header will give you proper ECMP hashing.
Re:It's TCP vs. RPC All over Again by cjsplat on Wednesday February 22, 2023 @12:44AM (#34892088)
Yup - this is the correct answer
Re:It's TCP vs. RPC All over Again by cryptonector on Wednesday February 22, 2023 @12:28AM (#34891985)
> Sure, but what is UDP bringing to the party then?

Interoperability. It's been how many years since SCTP was published? How's that going?

Re:It's TCP vs. RPC All over Again by noselasd on Wednesday February 22, 2023 @02:43AM (#34892821)
You're likely interacting with SCTP every time you use a mobile phone, as it's in heavy use in the control plane of telecom networks. Outside that, not so much though.
Re:It's TCP vs. RPC All over Again by ithkuil on Wednesday February 22, 2023 @02:53AM (#34892882)
Yes but if my program on my laptop wants to talk to my program in my server somewhere out there, chances are the SCTP will be blocked by some piece of blinking furniture along the path.
Re:It's TCP vs. RPC All over Again by monocasa on Wednesday February 22, 2023 @04:36AM (#34893507)
Also every Zoom/Google Meet call. WebRTC is on top of SCTP.
Re:It's TCP vs. RPC All over Again by rezonant on Wednesday February 22, 2023 @07:17AM (#34894494)
Sort of. SCTP is used for data channels, the audio/video is RTP. Still an important piece though.
Re:It's TCP vs. RPC All over Again by Jasper_ on Wednesday February 22, 2023 @11:04AM (#34897698)
WebRTC uses SCTP in a weird way: on top of DTLS, which is itself on top of UDP. When most people talk about using SCTP, they mean using it instead of UDP.
Re:It's TCP vs. RPC All over Again by cryptonector on Wednesday February 22, 2023 @01:44PM (#34900562)
> Outside that, not so much though.

Thanks for making my point.

Re:It's TCP vs. RPC All over Again by kwantam on Wednesday February 22, 2023 @12:45AM (#34892098)
Well, for one, UDP brings the U. It's called the User Datagram Protocol because (at least on UNIX-like systems) unprivileged programs can almost always send and receive UDP datagrams, but in general cannot send and receive raw IP datagrams.
Re:It's TCP vs. RPC All over Again by themoonisachees on Wednesday February 22, 2023 @05:59AM (#34894027)
UDP gives you port numbers supported by every networking equiment your datacenter already has, instead of having to deal with raw IP frames or somehow extending how your firewalls and servers handle your special boy packets. Especially useful considering you probably want port numbers anyway, and checksums are just a nice bonus. You'll probably reimplement part of TCP on top of it too.