Thread View: news.software.nntp
68 messages
68 total messages
Page 2 of 2
Started by The Archiver
Thu, 26 Jul 2001 12:09
Page 2 of 2 • 68 total messages
Re: Server choking on nulls (was: Header compression - necessary, useful, senseless ?)
Author: Russ Allbery
Date: Mon, 30 Jul 2001 11:11
Date: Mon, 30 Jul 2001 11:11
25 lines
2498 bytes
2498 bytes
Curt Welch <curt@kcwc.com> writes:
> Russ Allbery <rra@stanford.edu> wrote:
>> Curt Welch <curt@kcwc.com> writes:
>>> My understanding of INN was that innd was "fixed" around the 2.0
>>> timeframe to be 8-bit clean.
>> Nope.
> So who was it that told me they worked hard to make it that way a few
> years back? Was it you? Was some of it fixed but then something
> missed? What's the story, do you know? Do I need to get a new copy of
> INN and check for myself to find the answer to this?
Wasn't me, and I have no idea what you're talking about. INN has never
handled articles containing NUL characters properly so far as I know.
It's most of the way there, but I expect there's a lot of cleanup and
fiddling left to finish the job.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Header compression - necessary, useful, senseless ?
Author: Curt Welch
Date: Mon, 30 Jul 2001 14:57
Date: Mon, 30 Jul 2001 14:57
54 lines
3882 bytes
3882 bytes
archiver@i3w.com (The Archiver) wrote: > curt@kcwc.com (Curt Welch) wrote: > > >> Most compressing algortihms I've seen yet are based on a block of > >> data. So perhaps 4-64 kBytes are compressed - and then moved to the > >> 'out-queue'. Such a compressed block might be sent out with a length > >> byte. > > > >You could also simply send the data in blocks with a block size included > >before each block. So the binary data stream starts with a two byte > >block size, then N bytes of data, and keeps repeating like that until > >done. The last size will be a zero lengh byte to mark the end. > > Yes, this seems to be a good way. > > >Id still rather just stick with the NNTP standard of CR LF DOT to mark > >the end and DOT stuffing inside the stream. > > Sorry, but I definitely do not agree with you: > Modifying compression algortihms to fit into such a scheme is a hard > work. I think you are confused. There's no need to modify the compresion algorithm with either scheme. I only brought that idea up as something to think about. With both ideas (standard NNTP data enocoding, or non-standard block-length encoding) you are still forced to modify the data stream after it comes out of the compressor. With one, you are inserting byte counts and a NUL NUL CR LF end marker. With the other you are inserting DOTs, and a CR LF DOT CR LF end marker. There's really very little difference other than the fact that one is the NNTP standard and the other isn't. On top of that, I suspect the DOT stuffing would tend to produce less output since you only need to insert the DOT if you see the three character sequence CR LF DOT in the data stream - and the odds of that showing up in a compressed data stream are 1 out of 2 ^ 24. The byte count system would tend to be easier to code, both for the sending side and the receiving side - simply because it fits better with the way most people would structure their code (reading and processing blocks of data). If we were creating a new protocol the byte counts would probably be my method of choice. But since we are talking NNTP, and all servers that exist already have send and receive data routines that correctly and effecently deal with the dot stuffing technique, I just see no reason to make it any more complex than it needs to be by introducing a second encoding technique when we already have one that works fine, and saves more bandwidth. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Header compression - necessary, useful, senseless ?
Author: Curt Welch
Date: Mon, 30 Jul 2001 15:03
Date: Mon, 30 Jul 2001 15:03
22 lines
2060 bytes
2060 bytes
archiver@i3w.com (The Archiver) wrote: > "J.B. Moreno" <planb@newsreaders.com> wrote: > > >I just posted a test article using a 8bit scheme proposed by someone on > >the USEFOR mailing list: use 8 bit with =,LF and CR escaped using > >quoted-printable. > >[...] > >Actual file size is 366597, my test post was 1.0275 times that, the > >original posting was 1.4024 times that. > > A better 8 bit encoding results in 1.4x ? > UUencoding would have added just 33%. I think you mis-read that. uuencoding on NNTP produces a 40% expansion, not just 33%. The 1.4024 number above was the expansion caused by uuencoding. The 1.02 number was the expansion caused by the improved QP lite scheme. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Server choking on nulls (was: Header compression - necessary, useful, senseless ?)
Author: Curt Welch
Date: Mon, 30 Jul 2001 15:11
Date: Mon, 30 Jul 2001 15:11
19 lines
2523 bytes
2523 bytes
Russ Allbery <rra@stanford.edu> wrote: > Curt Welch <curt@kcwc.com> writes: > > So who was it that told me they worked hard to make it that way a few > > years back? Was it you? Was some of it fixed but then something > > missed? What's the story, do you know? Do I need to get a new copy of > > INN and check for myself to find the answer to this? > > Wasn't me, and I have no idea what you're talking about. INN has never > handled articles containing NUL characters properly so far as I know. > It's most of the way there, but I expect there's a lot of cleanup and > fiddling left to finish the job. Hum. A mystery. Maybe I need to do a little searching on google... -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Server choking on nulls (was: Header compression - necessary, useful, senseless ?)
Author: cave deum
Date: Mon, 30 Jul 2001 17:56
Date: Mon, 30 Jul 2001 17:56
11 lines
1432 bytes
1432 bytes
In article <20010730111118.806$m7@newsreader.com>, Curt Welch <curt@kcwc.com> wrote: >Hum. A mystery. Maybe I need to do a little searching on google... Maybe you're thinking of diablo. At least, that's what my memory seems to suggest... rone -- Looking for God's underpants since 1985. <rone@ennui.org>
Re: Server choking on nulls (was: Header compression - necessary, useful, senseless ?)
Author: Curt Welch
Date: Mon, 30 Jul 2001 18:16
Date: Mon, 30 Jul 2001 18:16
24 lines
2263 bytes
2263 bytes
"cave deum" <^#*&$@ennui.org> wrote: > In article <20010730111118.806$m7@newsreader.com>, > Curt Welch <curt@kcwc.com> wrote: > >Hum. A mystery. Maybe I need to do a little searching on google... > > Maybe you're thinking of diablo. At least, that's what my memory > seems to suggest... No, I know someone who had been doing inn development told me they had worked very hard to make it 8bit clean and that was a few years back. But it wasn't all of inn, it was just innd he was talking about. nnrpd couldn't deal with nulls and the feed programs that work with innd to send articles out could still have been broken. It was just the core innd he (whoever the "he" was) was talking about. It was one of the well known inn hackers that have hung out here over the years and he was talking about the official release of innd, not just his local mods (at least that is what my memory is telling me.) -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Header compression - necessary, useful, senseless ?
Author: J.B. Moreno
Date: Mon, 30 Jul 2001 20:12
Date: Mon, 30 Jul 2001 20:12
49 lines
3249 bytes
3249 bytes
In article <20010730110348.224$3g@newsreader.com>, Curt Welch <curt@kcwc.com> wrote: > archiver@i3w.com (The Archiver) wrote: > > "J.B. Moreno" <planb@newsreaders.com> wrote: > > > > >I just posted a test article using a 8bit scheme proposed by someone on > > >the USEFOR mailing list: use 8 bit with =,LF and CR escaped using > > >quoted-printable. > > >[...] > > >Actual file size is 366597, my test post was 1.0275 times that, the > > >original posting was 1.4024 times that. > > > > A better 8 bit encoding results in 1.4x ? > > UUencoding would have added just 33%. > > I think you mis-read that. uuencoding on NNTP produces a 40% expansion, > not just 33%. The 1.4024 number above was the expansion caused by > uuencoding. The 1.02 number was the expansion caused by the improved QP > lite scheme. Right. I don't have a lot of pictures sitting around that I could use, so I used one that had previously been posted (using uuencode). uuencode = 514133 bytes qp-lite-with-nul = 376989 bytes qp-lite-no-nul = 382424 bytes (i.e. 0x00 escaped to "=00"). Of course the uuencoded article had a few extra bytes due to the fact that it had a longer Path header and the NNTP-Posting-Host type stuff, but that should be offset by the fact that I used MIME and included a text section explaining what was happening). (Note that in this case removing the nuls didn't change things that much, but that'll vary on a case by case basis). The advantage of this should be obvious -- it's smaller, faster, and easier to decode (given a decent text editor you can decode it manually in just a few seconds, try doing that with uuencode). The major disadvantage is that it is possible for it to be up to 3 times larger than the original (file consists of nothing but characters to be escaped). Fortunately given the general byte spread of binary files it shouldn't be a real problem -- and there is a solution if it is (compress the file before QP'ing). -- J.B. Moreno
Re: Header compression - necessary, useful, senseless ?
Author: Russ Allbery
Date: Tue, 31 Jul 2001 09:44
Date: Tue, 31 Jul 2001 09:44
19 lines
2020 bytes
2020 bytes
J B Moreno <planb@newsreaders.com> writes:
> Russ Allbery <rra@stanford.edu> wrote:
>>> THe newsguy guys could tell us. It might be their stuff. I wonder if
>>> some of the old standard transmit stuff with INN did that?
>> Yup, it did.
> The newer transit stuff doesn't do this anymore? If so maybe they'll
> upgrade.
As of 2.3, it just rejects the messages up-front.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Header compression - necessary, useful, senseless ?
Author: The Archiver
Date: Tue, 31 Jul 2001 14:21
Date: Tue, 31 Jul 2001 14:21
65 lines
3918 bytes
3918 bytes
curt@kcwc.com (Curt Welch) wrote: >> Sorry, but I definitely do not agree with you: >> Modifying compression algortihms to fit into such a scheme is a hard >> work. > >I think you are confused. There's no need to modify the compresion >algorithm with either scheme. I only brought that idea up as something to >think about. > >With both ideas (standard NNTP data enocoding, or non-standard block-length >encoding) you are still forced to modify the data stream after it comes out >of the compressor. I did not want to check for CRLF or DOTS again. I wanted to send a full 8 bit binary data stream. >With one, you are inserting byte counts and a NUL NUL >CR LF end marker. With the other you are inserting DOTs, and a CR LF DOT >CR LF end marker. There's really very little difference other than the >fact that one is the NNTP standard and the other isn't. We might again have the problems with TAB and NULL and other things. This would result in encoding the compressed data stream with something like "QpLite" or "yEnc". I'm not sure about complexity of modifications now. >On top of that, I suspect the DOT stuffing would tend to produce less >output since you only need to insert the DOT if you see the three character >sequence CR LF DOT in the data stream - and the odds of that showing up in >a compressed data stream are 1 out of 2 ^ 24. Even for 1 out of 2^24 some additional CPU cycles would be necessary And if more encoding would be necessary then it might become worse. >The byte count system would tend to be easier to code, both for the sending >side and the receiving side - simply because it fits better with the way >most people would structure their code (reading and processing blocks >of data). Easier to code and faster (I believe). >If we were creating a new protocol the byte counts would probably be my >method of choice. But since we are talking NNTP, and all servers that exist >already have send and receive data routines that correctly and effecently >deal with the dot stuffing technique, I just see no reason to make it any >more complex than it needs to be by introducing a second encoding technique >when we already have one that works fine, and saves more bandwidth. It seems that you are defining NNTP by "sending data until CRLF.CRLF comes. For me this was/is just a minor thing. Because the incoming data would be treated completely differently from the 'normal' XOVER (decoding incoming bytes 'on the fly') I did already calculate the time for writing a new 'incoming data' routine - based on lengths - which would be also necessary for true binary transport. Well, I will think about it again. Thanks for the fundamental clarification. A 'cowboy programmer' tends to shoot very quickly. For heavens sake there are still sherifs around ;-) -- Juergen, [The Archiver]
Re: Header compression - necessary, useful, senseless ?
Author: The Archiver
Date: Tue, 31 Jul 2001 14:24
Date: Tue, 31 Jul 2001 14:24
14 lines
1320 bytes
1320 bytes
curt@kcwc.com (Curt Welch) wrote: >I think you mis-read that. uuencoding on NNTP produces a 40% expansion, >not just 33%. The 1.4024 number above was the expansion caused by >uuencoding. The 1.02 number was the expansion caused by the improved QP >lite scheme. I did mix up things - compression and encoding. Please apologize. -- Juergen, [The Archiver]
Re: Header compression - necessary, useful, senseless ?
Author: The Archiver
Date: Tue, 31 Jul 2001 14:27
Date: Tue, 31 Jul 2001 14:27
21 lines
1727 bytes
1727 bytes
"J.B. Moreno" <planb@newsreaders.com> wrote: >The major disadvantage is that it is possible for it to be up to 3 >times larger than the original (file consists of nothing but characters >to be escaped). Fortunately given the general byte spread of binary >files it shouldn't be a real problem -- and there is a solution if it >is (compress the file before QP'ing). This is the job of the encoder. Perhaps it would make sense to use my 'proposed' additive factor to every byte. Then the decoder could detect such extreme cases and choose a different 'additive factor' based on a table of byte occurence. The encoder has time - it can analyse a lot to find out the best posting method. -- Juergen, [The Archiver]
Re: Header compression - necessary, useful, senseless ?
Author: Devin L. Ganger
Date: Thu, 23 Aug 2001 19:06
Date: Thu, 23 Aug 2001 19:06
54 lines
3160 bytes
3160 bytes
On 27 Jul 2001 10:09:39 +0200, The Archiver <archiver@i3w.com> wrote: > I'm not sure what way would be better: > Having _true_ binary transport, using a better encoding > or compressing a bad encoding. Why is the current encoding bad? You've made it clear that you don't like it, but you haven't actually made a case for it being a *bad* encoding. How much overhead does it result in, as opposed to your proposed replacement? Is it enough savings (if any) to justify the work in completely re-writing the protocol implementation, as opposed to adding on support for a new extension that uses existing mechanics? > I'm not sure what path is more promising. > All ways require software changes. Yes, but some are much more catastrophic than others (and allow for continued backwards compatibility), and if you want to really have this work, you need to allow for those factors as well. Software isn't just a matter of technical superiority; there *are* human factors to consider. I'd raise this by a least an order of magnitude when it comes to netnews, which many admins *already* consider to be a waste of their time. > The advantage is then on the providers side - and the backbone. > However there is no 'must' to use compressed headers. > A modem user could easily use the 'standard mode'. This is more easily done via an extension to NNTP, whereby the reader issues a command requesting compression and offers the various methods it supports, and the server selects (via policy) the best matching one it supports. > I myself would prefer true 8 bit streams. > Compression and 8bit data are so closely related that I would use > the chance to go ahead with both ideas. > (Two eggs and three chickens roasted simultanously ;-) If you want people to adopt it in numbers, you need to move more cautiously. Otherwise, it's too big of a pain in the ass to implement. Now, having said that, there *is* a place to send your thoughts, data, etc -- and that's the NNTPNEXT working group. -- Devin L. Ganger <devin@thecabal.org> A man, a miss, a car -- a curve, He kissed the miss and missed the curve -- Burma Shave (1948)
Re: Header compression - necessary, useful, senseless ?
Author: Devin L. Ganger
Date: Thu, 23 Aug 2001 19:08
Date: Thu, 23 Aug 2001 19:08
14 lines
1661 bytes
1661 bytes
On 31 Jul 2001 16:27:33 +0200, The Archiver <archiver@i3w.com> wrote: > The encoder has time - it can analyse a lot to find out the best > posting method. This is exactly what it doesn't have. It needs to be encoding as quickly as possible, not wasting CPU cycles (and compression time) trying to decide what the best way is. -- Devin L. Ganger <devin@thecabal.org> A man, a miss, a car -- a curve, He kissed the miss and missed the curve -- Burma Shave (1948)
Re: Header compression - necessary, useful, senseless ?
Author: salamander
Date: Fri, 24 Aug 2001 18:01
Date: Fri, 24 Aug 2001 18:01
15 lines
1476 bytes
1476 bytes
On 23 Aug 2001 12:06:42 -0700, devin@thecabal.org (Devin L. Ganger) wrote: <snip> >Now, having said that, there *is* a place to send your thoughts, data, >etc -- and that's the NNTPNEXT working group. > A little too cryptic for me I guess. Checked across a multitude of news servers looking for a group containing NNTPNEXT (upper or lower case). Came up empty. Ran that string thru Google and Yahoo searches. Each found one irrelevant hit. Is the NNTPNEXT working group a secret society?
Re: Header compression - necessary, useful, senseless ?
Author: The Archiver
Date: Sat, 25 Aug 2001 20:44
Date: Sat, 25 Aug 2001 20:44
29 lines
2001 bytes
2001 bytes
devin@thecabal.org (Devin L. Ganger) wrote: >> The encoder has time - it can analyse a lot to find out the best >> posting method. > >This is exactly what it doesn't have. It needs to be encoding as >quickly as possible, not wasting CPU cycles (and compression time) >trying to decide what the best way is. The encoders are typically running on enduser machines. Their job is to post one or multiple binary files to Usenet. Enduser machines are typically running on 'relative slow' lines (64-256 kBit upstream). Their CPU is typically Pentium/AMD >= 400 Mhz. Posting a one meg large file would take 30-100 secs. So encoding could easily take 1-10 secs if this results in smaller posts - for the benefit of bandwidth and host storage. This is my subjective point of view. Please explain why you prefer a highspeed encoder. It seems that dont understand that issue - and want to learn more about it. TIA -- The Archiver
Re: Header compression - necessary, useful, senseless ?
Author: The Archiver
Date: Sat, 25 Aug 2001 21:04
Date: Sat, 25 Aug 2001 21:04
100 lines
4894 bytes
4894 bytes
devin@thecabal.org (Devin L. Ganger) wrote: >> I'm not sure what way would be better: >> Having _true_ binary transport, using a better encoding >> or compressing a bad encoding. > >Why is the current encoding bad? You've made it clear that you >don't like it, but you haven't actually made a case for it being >a *bad* encoding. The actual encoding (UU/base64) creates an overhead of 33-40%. This makes binaries _far_ larger and requires bandwidth and storage on the servers harddisk. In the last time the commercial usenet providers begin to charge for volume. A proce reduction of 25% would be great, wouldn't it ? >How much overhead does it result in, as opposed to your >proposed replacement? Other encoding strategies for binaries have an overhead of 1-3% (last status). Compression on headers can save up to 80%. >Is it enough savings (if any) to justify the work in completely >re-writing the protocol implementation, as opposed to adding on >support for a new extension that uses existing mechanics? I believe so. >> I'm not sure what path is more promising. >> All ways require software changes. > >Yes, but some are much more catastrophic than others (and allow for >continued backwards compatibility), and if you want to really have >this work, you need to allow for those factors as well. Using a better encoding for binaries is completely transparent for the Usenet hosts. Just a few autoposters and decoders must be written. Compressing headers is a _feature_ not a must. An advanced client which requests compressed headers and gets a negative response (unknown command) will use the old method. I dont have the history available, but I think that the introduction of the XOVER (XHDR) command was a similar case. >Software isn't just a matter of technical superiority; there *are* >human factors to consider. I'd raise this by a least an order of >magnitude when it comes to netnews, which many admins *already* >consider to be a waste of their time. You are right. The best savings are reached with discarding binaries. A well known strategy. And the most important cause for the existance of commercial news servers. But perhaps this discussion would be appreciated even by a lot of admins. Because we are talking about efficiency - and reduction of bandwidth and disk storage this time. Not about inflating traffic. >> The advantage is then on the providers side - and the backbone. >> However there is no 'must' to use compressed headers. >> A modem user could easily use the 'standard mode'. > >This is more easily done via an extension to NNTP, whereby the reader >issues a command requesting compression and offers the various methods >it supports, and the server selects (via policy) the best matching one >it supports. Yes - compressed headers is a topic of NNTP. This newsgroup is about NNTP. So here we are. >> I myself would prefer true 8 bit streams. >> Compression and 8bit data are so closely related that I would use >> the chance to go ahead with both ideas. >> (Two eggs and three chickens roasted simultanously ;-) > >If you want people to adopt it in numbers, you need to move more cautiously. >Otherwise, it's too big of a pain in the ass to implement. I'm sure that you are right. It could be done in two steps. But for a software developper the work consists always of two parts: - general overhead for a software change + the change itself. Doing two (closely related) steps in one would save once the entire overhead. >Now, having said that, there *is* a place to send your thoughts, data, >etc -- and that's the NNTPNEXT working group. The NNTPext working group is actually not discussing such extensions. They are busy with a lot of other things (I'm a silent lurker there). But when the right time comes (and some experience is available) then they will be asked to discuss the topic in detail. Thanks for taking the time to participate in this thread. -- The Archiver
Re: Header compression - necessary, useful, senseless ?
Author: The Archiver
Date: Sat, 25 Aug 2001 21:09
Date: Sat, 25 Aug 2001 21:09
22 lines
1580 bytes
1580 bytes
salamander wrote: >>Now, having said that, there *is* a place to send your thoughts, data, >>etc -- and that's the NNTPNEXT working group. >> >A little too cryptic for me I guess. Checked across a multitude of >news servers looking for a group containing NNTPNEXT (upper or lower >case). Came up empty. Ran that string thru Google and Yahoo searches. >Each found one irrelevant hit. Is the NNTPNEXT working group a secret >society? The NNTPext working group is an IETF task force. Organized as a mailing list. More info at: www.ietf.org - Scan for 'nntpext' Another interesting taskforce is 'usefor' - the Usenet message task force. HTH -- The Archiver
Page 2 of 2 • 68 total messages
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads