Article View: news.software.nntp
Article #33625Re: UDP NNTP?
From: Ivan Skytte Joergensen
Date: Tue, 08 Dec 1998 00:00
Date: Tue, 08 Dec 1998 00:00
41 lines
2185 bytes
2185 bytes
In message <19981208092813.958$hu@newsreader.com> - curt@kcwc.com (Curt Welch) writes: > >isj@dont_forget_to_remove_this.image.dk (Ivan Skytte Joergensen) wrote: >> I was wondering: Has anybody tried extending the NNTP protocol to send >> the client small articles via UDP? > >Because UDP is unreliable, you will end up having to add checksums and >re-transmission code into you NNTP server. Wouldn't it be a lot simpler >to just let the TCP stack do that? AFAIK, the "mode stream" mechanism already have most of the code, so adding "lost packet" detection to the client/poller would not be that difficult. Under poor conditions where 1% of the packets are lost/garbled/truncated/out-of-order the potential "mode stream" UDP NNTP protocol can have a much larger window than TCP, for instance, 1000 requests. Genuine garbled packets are rare (but must be dealt with of course). Truncated packets are easily detected (but rare). Out-of-order packets are not a problem. Under perfect conditions, I would get rid of the overhead in TCP. And the recv() call on the UDP socket would return exactly how large the article is (no need for scanning for "\r\n.\r\n") >Why do you think sending small articles with UDP would be better than >sending them down the TCP stream? Well, it was just a thought. Maybe a better way to improve performance would be to invent a binary transfer protocol. Regards, Ivan.
Technical Details
Message-ID:
<366d6200.1@news.isjsys.aask.dk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<366c6b5f.1@news.isjsys.aask.dk> <19981208092813.958$hu@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <366d6200.1@news.isjsys.aask.dk> Subject: Re: UDP NNTP? Date: Tue, 08 Dec 1998 00:00:00 +0000 From: isj@dont_forget_to_remove_this.image.dk (Ivan Skytte Joergensen) References: <366c6b5f.1@news.isjsys.aask.dk> <19981208092813.958$hu@newsreader.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 420206044 X-Complaints-To: news-abuse@image.dk X-Trace: news010.image.dk 913155759 194.234.182.240 (Tue, 08 Dec 1998 23:22:39 MET DST) NNTP-Posting-Date: Tue, 08 Dec 1998 23:22:39 MET DST Newsgroups: news.software.nntp