Re:Robdns – A fast DNS server based on C10M principles
by tptacek on Sunday December 28, 2014 @10:40AM
(#8806449)
I (a) don't think TCP DNS routinely stuffs two requests in a single TCP segment and (b) don't believe TCP DNS is ever more performant than UDP DNS, including on mobile --- UDP gets a head start from not having a 3WH, and doesn't have rate limiting, which TCP does. TCP headers are also much larger than UDP headers.
Even the reliability argument doesn't make sense. Yes, TCP is "reliable". But so is UDP DNS, and in exactly the same way: if a request or response is dropped, it's retransmitted.
Nagle, for what it's worth, is an HN contributor. You could just ask him. :)
Re:Robdns – A fast DNS server based on C10M principles
by JoeAltmaier on Sunday December 28, 2014 @10:56AM
(#8806489)
Agreed an all counts. Its a stretch to imagine TCP is better at performance.
{edit} though performance isn't really about wire time or packet size - its about cpu time on either end plus buffering. Including router time since that's a cpu in the path.
In fact my own UDP protocol does something similar to Nagle as well. There's no good reason UDP protocols can't pick and choose what features they include. But most don't.