Thread View: news.software.nntp
313 messages
313 total messages
Page 4 of 7
Started by Juergen Helbing
Mon, 23 Sep 2002 06:06
Page 4 of 7 • 313 total messages
Re: [FNTP] 'in-completeness'
Author: JP Velders
Date: Thu, 03 Oct 2002 07:35
Date: Thu, 03 Oct 2002 07:35
35 lines
3288 bytes
3288 bytes
In article <20021002230412.476$rh@newsreader.com>, Curt Welch wrote: > [ ... ] but you have to be real careful not to encourage everyone that > missed a single part of the orginal post to post one of the repost requests > or else the group could get flooded with thousands of these articles and > that could cause more problems for people than the missing files caused in > the first place. Correct, though more a matter of discipline, I'd figure that be collecting repost requests the original poster can help a lot of people at once... If he could collect information as to which specific parts people were missing - which would also include information about which parts they would minimally need to reconstruct the file, which could allow people to help eachother by just placing those (relatively small) parts on a website, mailing, whatever - and then calculate which parts would need to be reposted to help everyone... ;D Yes, I'm an idealist sometimes ;D > But, if there was some type of automated system for > documenting what someone needs, then you could automate the repost so that > anyone that downloaded the orginal could help out with the reposting. Of > course, using PAR-like technology to allow a single re-post to help solve > problems for many people would be a good thing as well. Correct, and by removing the fragmentation which RAR (or any other splitting technique) imposes, we would gain a lot. It would make it a bit more overwhelming (Part 1 of 2000 ;D) but I'd take that over (.r?? part 1 of 30). And depending on the solution we could always figure out how large the (post) chunks would need to be. Kind regards, JP Velders
Re: [FNTP] 'in-completeness'
Author: Simon Lyall
Date: Thu, 03 Oct 2002 10:23
Date: Thu, 03 Oct 2002 10:23
147 lines
7907 bytes
7907 bytes
Juergen Helbing <archiver@i3w.com> wrote:
>Am I too realistic ?
>Are there any reasons why you believe that a complete redesign
>of Binary Usenet could ever work ?
Lets assume you got a good design tomorrow and then somehow managed to get
enough servers to support it (resends, a file checking) along with
whatever client side is needed. As a bonus the volume per article is
reduced by 20% and re-posts are now almost never neeed (since servers
automaticly make sure every file is complete).
Now what happens now:
- Full feed is still hundreds of gigbytes per day
- Server taking a full feed costs $100,000 and a fair chunk of admin time.
- Growth in Usenet volume will continue, perhaps even increase since
posters can "post and forget" and not have to worry that half the planet
will ask for reposts.
- A large number of sites still don't want binaries for the above reasons.
- Full feeds contine to be more concentrated.
- Potential for large scale disruption by copyright owners remains.
- Text newsgroups continue as before.
- Volume keeps increasing
>But we all agree that Usenet is the most efficient way to broadcast
>huge amounts of data around the world, don't we ?
No, Usenet is not effecient because it doesn't scale. In order to for an
ISP to particpate fully in binary Usenet it needs to spend $100,000 on a
server (plus more each year) and allocate 50Mb/s of bandwith (plus more
each year).
I work for a dialup ISP with over 150,000 customers and the economics of a
full feed server are so bad it's not even worth me presenting the
proposal. AFAIK no ISP in Aus/NZ has even close to a full feed on their
own servers including the largest ones ( which have 600,000 dialup and
50,000 broadband customers).
While other places have better economies (read cheaper bandwidth) a full
feed server is still something that is miles beyond the "Mom and Pop" ISP
level.
On the other hand (almost) all ISPs will run mail, web, dns and
authentication (eg radius) servers. A good number will have games servers,
(web) proxy servers, secure hosting, global roaming, spam filtering, virus
filtering, webmail, IMAP, ftp servers, domain hosting (dns and email) etc.
The reason for this is that these services scale down a long way, even an
ISP with just 10,000 dialup customers can offer all the above and make
money if only 100 customers use some of them.
Obviously the mail system (say) of a 500,000 customere ISP is going to be
a lot different from that of the 1000 customer ISP but to the user they
will appear pretty much the same and 99.9% of people would be satisfied
with the smaller.
With Usenet the small ISP has much more limited choices:
1. Full feed server
2. Sub fullfeed server
3. Outsources service (directly of perhaps via nntpcache like program)
4. No Usenet.
Option 1 simply costs too much, Option 2 also involves some outlay and may
be too much for the smallest ISPs, Options 3&4 involve running little or
no server at all.
Options 2 through 4 all result in the small ISP having "worse" usenet
service than the larger one, what is worse options 3&4 give the ISP no
benefits w.r.t bandwidth savings that the larger ISPs will see.
What ISPs need is:
1. Something that scales up and down fully
2. Something that saves them money and or bandwidth or makes money
3. Something that is easy to install and maintain.
What I think is needed is something about the same level of complexity of
a web cache/proxy server:
- A Squid box can be installed on any Unix server or a large ISP can have
a farm of specialist applicances.
- Bandwidth used by customers is reduced (30% of http is a okay) and
web resonse times can be faster. YMMV
- A Squid daemon or cache appliance can be installed from scratch in less
than an hour (a lot less if you are organised) and will run unattended
for months or years at a time.
What I think is needed is a p2p "cache" that ISPs can install, something
like this:
1. I go to my manager and ask for a machine to run a new p2p service on, I
tell him this will improve customer satisfaction and save us money.
2. He lets me have an old P3 450 with 250MB of RAM and I borrow a spare
80GB IDE drive to put on it.
3. I assemble the machine and install the OS. I download the p2p server
program and install it in a few minutes (via a package or "make ; make
install" ) . The daemon is a pretty simple compiled C program that
doesn't require a dozen weird libraries or python to be installed.
4. I edit the config file:
- Unlimited bandwidth usable for our customers address ranges
- External networks have 2Mb/s during the day, 10Mb/s after midnight
- The server has 5Mb/s of bandwidth to download from external networks,
20Mb/s after Midnight.
- Cache area is the 80GB hard drive.
5. I start up the daemon. Within minutes the p2p applications our
customers are running detect the nearby fast server and start to prefer
it. The daemon notes what files our customer's want and downloads them
from other servers and cache's them on it's drive. If it has spare
bandwidth it downloads popular files (based on our customers download
patterns and what other servers have) so that during the day they will
be instantly available.
6. I forget about the server for a couple of weeks until my boss asks how
well it's working. I login and grab it's statistics. During peak several
thousand customers are using the server and it is saving us around
10Mb/s of bandwidth to other ISPs. However the machine is very
overloaded and the disk is only holding files for around 18 hours on
average.
7. I write up a report for my boss, he is happy and signs off a purchase
order for a couple of new fast PCs and 1TB of storage. I have these
machines up a running in around an hour. The config is the same as
before expect for the now I add a "peer x.x.x.0/25" line so the new
servers (and the old one) won't each cache the same content.
8. I go back to playing with the spam filters on the mail system.
Well something like that anyway. The only thing that is remotely near the
above (AFAIK) is a freenet server. However build it and they (ISPs) will
come. Especially if we arn't going to get rude letters from Large Media
Companies' Lawyers.
--
Simon J. Lyall | Very Busy | Mail: simon@darkmere.gen.nz
"Inside me Im Screaming, Nobody pays any attention." | eMT.
Due to impending global destruction and the extinction of all life,
access to international sites may be interrupted.
We apologize for the inconvenience.
Re: [FNTP] 'in-completeness'
Author: Claus Färber
Date: Thu, 03 Oct 2002 10:56
Date: Thu, 03 Oct 2002 10:56
14 lines
2223 bytes
2223 bytes
Curt Welch <curt@kcwc.com> schrieb/wrote: > So the type of defense you talk about isn't going to help. They can post > their clone after they have seen your "answer" in the next post. You can just double-link the messages: The n-th post carries the answer to the (n-1)th and vice-versa. A scheme similar to that of cancel locks proposed on Usefor (but a more general one) can be used. Claus -- ------------------------ http://www.faerber.muc.de/ ------------------------ OpenPGP: DSS 1024/639680F0 E7A8 AADB 6C8A 2450 67EA AF68 48A5 0E63 6396 80F0
Re: [FNTP] 'in-completeness'
Author: Claus Färber
Date: Thu, 03 Oct 2002 11:05
Date: Thu, 03 Oct 2002 11:05
19 lines
2302 bytes
2302 bytes
Juergen Helbing <archiver@i3w.com> schrieb/wrote: > First we need PAR files which can deal with 3795 parts. > (AFAIR they are working on that problem right now). > Actually PAR files can "protect" only up to 255 files. You don't need all PAR files to carry error correction information across all parts. Instead, you can just have distinctive subsets for each set of PAR files. For example, you could have 15 sets of PAR files. The first set includes information about parts 1 to 255, the second about parts 256 to 511, and so on. The parts are posted in that order: Part 1, 256, 512,..., 2, 256, 513,..., then par set 1 part 1, set 2 part 1,... set 1 part 2,... Claus -- ------------------------ http://www.faerber.muc.de/ ------------------------ OpenPGP: DSS 1024/639680F0 E7A8 AADB 6C8A 2450 67EA AF68 48A5 0E63 6396 80F0
Re: [FNTP] 'in-completeness'
Author: Kjetil Torgrim Homme
Date: Thu, 03 Oct 2002 14:07
Date: Thu, 03 Oct 2002 14:07
27 lines
2866 bytes
2866 bytes
[Claus F�rber]:
>
> Curt Welch <curt@kcwc.com> schrieb/wrote:
> > So the type of defense you talk about isn't going to help. They
> > can post their clone after they have seen your "answer" in the
> > next post.
>
> You can just double-link the messages: The n-th post carries the
> answer to the (n-1)th and vice-versa. A scheme similar to that of
> cancel locks proposed on Usefor (but a more general one) can be
> used.
the "answer" to part N-1 and N+1 must be a hash of their content.
anything else will allow the attacker to keep the answers and replace
the content. assumption: we trust part 1. it is therefore part 1
which must contain the information allowing us to trust part 2. (and
so on by recursion.)
with such a hash in place (put it in a random header, it's acceptable
to use HEAD to choose the right candidate), the idea of using
overlapping parts is unnecessary.
--
Kjetil T. ==. ,,==. ,,==. ,,==. ,,==. ,,==
::://:::://:::://:::://:::://::::
=='' `=='' `=='' `=='' `=='' `== http://folding.stanford.edu
Re: [FNTP] 'in-completeness'
Author: Kjetil Torgrim Homme
Date: Thu, 03 Oct 2002 14:21
Date: Thu, 03 Oct 2002 14:21
86 lines
5396 bytes
5396 bytes
[JP Velders]:
>
> In article <1rheg4iewh.fsf@atta.ifi.uio.no>, Kjetil Torgrim Homme wrote:
> > [JP Velders]:
> >> As summarized by others there are several problems, which
> >> "we" should *not* attempt at solving all together:
> >> 1. incompleteness of parts, and thus of multipart rars
> >> 2. the need for filtering out binary "stuff"
>
> > I don't understand why, if we come up with a scheme which _can_.
>
> Because it's too much all at once. There is a reason why we have
> RFC's for a lot of protocols, which *together* form the
> Internet. We don't need another "this will fix everything"
> protocol, that will only delay adoptation and implementation.
a modest Message-ID convention isn't a big leap.
> > this is not true in general. if the failure is lack of resources,
> > text articles (actually, small articles) will typically have priority.
>
> Yes, and why would *we* need to change that ? Administrators make
> the policies for their servers. It's not our job to set those
> policies for them. If certain admins decide that text-spooling
> takes preference over binary-spooling, then so be it.
of course. nobody has said otherwise.
> If they are then able to *easily* identify those "new style binary
> posts" more easily _in_ _transit_ wouldn't we perhaps get the
> following "spooling preference":
>
> 1. text
> 2. new style binary
> 3. old style binary
that's the whole idea.
> >> It's not something which can be fixed easily, a lot of ideas exist
> >> about it though... Just for fun a crazy idea I had: have certain
> >> servers at certain points in the "fabric of Usenet" and have them
> >> "broadcast" the incoming articles to their peers, which then
> >> inject them to their peers. It would make Usenet more resilient,
> >> but would also cause a lot of other problems ;D
> > uh, isn't this how Usenet works?
>
> Sort of, right now you rely on being as wel connected to everyone
> you can find and that *they* are also as well connected. It's only
> as strong as the weakest link, which can be "obscured" from your
> view.
no. Usenet will route around the weakest link.
> By placing "listening stations" at certain points and have the
> articles they pick up be injected by several other "stations" into
> their surrounding (normal) Usenet feeds, you add an extra layer of
> protection against missing articles. The articles need to reach
> one of those "listening stations" though for them to be of any
> use...
this _is_ how Usenet works.
> >> Clearly the increasing use of PAR-files has shown something: by
> >> adding redundancy you can counter some of Usenet's inadequacies.
> > sure, let's fix the problem of overloaded servers and network links by
> > increasing the overhead of sending a file.
>
> I didn't say we should do more rar'n'par !
>
> In order to come up with something *better*, you need to look at
> what's being used now, assess the strengths and weaknesses, and
> use those to come up with a design requirement. Whether *all*
> strengths can be used and all weaknesses fixed is something which
> comes later. First you need to have an overview, it's no use to
> just "start doing something".
I want to do something with the servers. you want to do something
with the clients. let's keep the issues separate. I don't know what
error correction codes PAR is using, and improvements in PAR is really
orthogonal to the transit mechanisms of NNTP.
--
Kjetil T. ==. ,,==. ,,==. ,,==. ,,==. ,,==
::://:::://:::://:::://:::://::::
=='' `=='' `=='' `=='' `=='' `== http://folding.stanford.edu
Re: [FNTP] 'in-completeness'
Author: Brian Truitt
Date: Thu, 03 Oct 2002 14:27
Date: Thu, 03 Oct 2002 14:27
31 lines
3367 bytes
3367 bytes
[snip convo of doubly linked list of parts] Maybe we should go about it a little differently. Have the first post contain the MD5 hash of all the msg-id's of the multipart. Have the last post contain a list of msg-id's of the multipart. By the time the last post is sent, the other parts should be well on their way and safe from people hijacking the msg-id's. The MD5 in the first post makes sure you have a valid last part, not a faked last part with random msg-id's in it. It doesn't require making hashes out of huge files or chunks of files, as once you get the last part, you can work backwards and only get the valid middle parts. If a part is missing, you have it's msg-id so it's easy to check other servers for that part. Maybe even make the list of msg-id's in a "bulletin" post after the last part, so automated downloaders can grab just the bulletin's, then go back and see if all the parts exist. I only see 2 ways to screw this one up maliciously. 1) Fake first post, with a generated MD5 to match the msg-id list in a fake bulletin or last-post. All this would mean is the automated downloader would grab and piece together a bunch of gibberish. Annoying but doesn't block the autodownloader from also getting the correct first and last posts and putting it together correctly as well. 2) Person watches posts as their being made locally, and quickly posts messages on a different, fairly remote system with the same message ID's to generate conflicts. There's nothing that prevents that from happening now, and nothing we design in how the msg-id's are generated will stop that anyway. I'm betting I'm overlooking something here, so someone point out the flaws =)
Re: [FNTP] 'in-completeness'
Author: Brian Truitt
Date: Thu, 03 Oct 2002 15:10
Date: Thu, 03 Oct 2002 15:10
63 lines
4672 bytes
4672 bytes
"Curt Welch" <curt@kcwc.com> wrote in message news:20021003000536.521$iU@newsreader.com... > Kjetil Torgrim Homme <kjetilho@ifi.uio.no> wrote: > > [Juergen Helbing]: > But if you then used a character seldome used in Message-IDs like ' instead > of $, the odds get so small they are hard to imagine. But using a quote > charcater I think would not be a good choice anyhow because of the trouble > it can cause eleswhere in the world when you try to pass message-ids though > other systems (like Unix command line arguments for example). It's a bitch > when cut and past doesn't work for example because the Message-ID contains > " or ' or both. I agree that we should stay away from ticks and quotes of the various sorts, just too many different ways different OSes use them. $ already show up, so any tools it would brake in a new msg-id format are already broken as written :) . I think both Curt and Juergen's formats have a use and a place. One is machine friendly and easily parsed, the other is human-friendly and easy to eyeball and see how things fit together. The machine-friendly one should be used in the msg-id, as that's looked at much more often by the servers and clients than by people. The human friendly one can be used to clean up some of the horrible travesty that the subject line has become. The format $UB$<hash>$o<offset>$s<size>$$random@domain allows room for future functionality to be added with backwards compatibility, and doesn't require a change to the RFC. Even if all the parts aren't used right away, if we plan the structure now it can be put in place fast but doesn't have to be completely rewritten later to fix other things, just another parameter added. The hash just needs to be a hash of something that would separate the file you're posting from others being posted, lets say the filename. This will work well with the second part of my suggestion. The human friendly format could be a new required beginning of the subject line for multipart posts for posters using the new binary message format. Have the subject start with "pNoMsSf<space><filename>: " where: N is the part number M is the number of parts S is the size of the whole thing put together and the f<space> leads into the filename of the completely combined parts. For example, lets say you're posting a rip of the movie "Dark Star", it's a 360,123,244 byte file called darkstar.mpg. You're posting it as 40 rar files, each in 100 parts. The subject lines would look like: "p0001o4000s360123244f darkstar.mpg: W3Rd 2 mY P33pz! Heres Dark Star! day 1 of 3! darkstar.r00 [0/100]" etc... Later on people asking for reposts could just ask for "part 846 of darkstar.mpg" rather than "part 46 of rar 34 of dark star". Since the pieces are put together by bytecount and offset in the header behind the scenes by the client, someone could post part 846 as 10 pieces, or even e-mail them to someone as 10 pieces so they fit thru the e-mail system, and they could be seemlessly worked into the rest of the file. Let the people look at peoplestuff, and the machines look at machinestuff. No need to pick one over the other.
Re: [FNTP] 'in-completeness'
Author: Brian Truitt
Date: Thu, 03 Oct 2002 15:17
Date: Thu, 03 Oct 2002 15:17
17 lines
1799 bytes
1799 bytes
"Juergen Helbing" <archiver@i3w.com> wrote in message news:30007.3a2200@archiver.winews.net... > I understand this very well. > But I've learned from another answer that you cannot measure what your > students are really doing. So the decision if you should not just permit > but support it - to keep bandwidth usage reasonable - cannot be made. Don't confuse his situation with mine. In an academic environment, he can probably track the couple of inbound/outbond links he has with something like cflowd and know exactly what is coming and going. Our network covers a dozen states on both coasts of the US , and something like cflowd just doesn't scale that well without a major expenditure that could be better used in completely rebuilding the news system =)
Re: [FNTP] 'in-completeness'
Author: Francois Petillon
Date: Thu, 03 Oct 2002 16:07
Date: Thu, 03 Oct 2002 16:07
23 lines
2380 bytes
2380 bytes
On Thu, 03 Oct 2002 12:23:09 +0200, Simon Lyall wrote: > - Full feed is still hundreds of gigbytes per day - Server taking a full > feed costs $100,000 and a fair chunk of admin time. Mmmh, I disagree. I have two full-fed servers and both of them are quite small servers (Dell 1550 bi-1 GHz, 2 GB of RAM and 3 scsi disks). Each of them costs around 4.000 $ What may costs is the spoolers. You may build a spooler with 3 TB for around 10 to 12 K$. We are quite far away from your $100.000. > No, Usenet is not effecient because it doesn't scale. In order to for an > ISP to particpate fully in binary Usenet it needs to spend $100,000 on a > server (plus more each year) and allocate 50Mb/s of bandwith (plus more > each year). It is efficient if the bandwidth used by the clients are over the bandwidth used by the server. Right now, when I get 500 GB a day, users get 2 TB from my servers. Unlike others protocols, you may choose your peers and accept only peers you see through network peerings. Fran�ois
Re: [FNTP] 'in-completeness'
Author: Russ Allbery
Date: Thu, 03 Oct 2002 17:12
Date: Thu, 03 Oct 2002 17:12
59 lines
3524 bytes
3524 bytes
Juergen Helbing <archiver@i3w.com> writes:
> Russ Allbery <rra@stanford.edu> wrote:
>> I'm also not sure you understand the distinction between permitted and
>> supported.
> I understand this very well.
No. I don't think you do.
> But I've learned from another answer that you cannot measure what your
> students are really doing.
No, this is not correct. I don't personally have that information, but
it's not that overly hard to accumulate it from network traffic.
> So the decision if you should not just permit but support it - to keep
> bandwidth usage reasonable - cannot be made.
Look, I really don't think you understand.
Neither Stanford nor any other major university is ever going to
officially support trading of ripped MP3 files or DVD movies. Period.
It's not ever going to happen. It doesn't matter *how* much bandwidth it
would save.
The reasons really should be painfully obvious to anyone.
If we were able to clearly distinguish between trading of unauthorized
intellectual property and legitimate use of file sharing, we'd put a
complete stop to the former right away. Not for any particular ethical
reasons, but simply because it would significantly reduce a liability
exposure for the university and trading of such material would not be
considered by anyone in university management to further the educational
mission of the university.
Insofar as peer-to-peer file sharing survives, it survives because it's
not possible to clearly distinguish between legal and illegal uses and it
has legitimate legal uses.
The same thing is true for binaries on Usenet. And exactly the same issue
applies to putting any effort into better supporting binaries on Usenet.
> Of course a good binary news-server would also be a source of pleasure
> and the students might like it more than working - what they should not
> :-)
It has nothing whatsoever to do with what the students would or would not
enjoy and everything to do with the fact that a large university is a very
tempting lawsuit target and we have to protect ourselves against that as
best we can without compromising the free speech and academic curiosity of
our users.
--
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: [FNTP] 'in-completeness'
Author: Kjetil Torgrim Homme
Date: Thu, 03 Oct 2002 19:22
Date: Thu, 03 Oct 2002 19:22
86 lines
5683 bytes
5683 bytes
[Brian Truitt]:
>
> I agree that we should stay away from ticks and quotes of the
> various sorts, just too many different ways different OSes use
> them.
to be compliant, systems need to be able to handle them today. most
systems accept _way_ illegal msgids, like stuff without the angles and
spaces in them.
> $ already show up, so any tools it would brake in a new msg-id
> format are already broken as written :) .
personally, I think $ is as much a pain as ' (variable expansion), but
it's not very important. I think is is just a little bit silly to
choose $, as that is the second most used special character in msgids
(after period), when there are plenty of alternatives. tilde is five
decimal orders of magnitude less common, and has none of the silly
Unix problems of $ and '. see <1ry99h14ix.fsf@einn.ifi.uio.no> for
the table I produced.
> The format $UB$<hash>$o<offset>$s<size>$$random@domain allows room
> for future functionality to be added with backwards compatibility,
> and doesn't require a change to the RFC.
it's a bit funny that I think the type of hash needs to be tagged, but
offset and size can have their position hardcoded, whereas you have
hardcoded the position of some hash and left offset and size optional.
(I suggested to start with three hash types: full MD5, MD5 excerpt,
and unspecified.)
> The human friendly format could be a new required beginning of the
> subject line for multipart posts for posters using the new binary
> message format. Have the subject start with
> "pNoMsSf<space><filename>: " where:
> N is the part number
> M is the number of parts
> S is the size of the whole thing put together
> and the f<space> leads into the filename of the completely
> combined parts.
this is a good suggestion. it's important to note that this is _only_
for humans, the assembly tools should get their information elsewhere.
it shouldn't be required, only strongly recommended.
> For example, lets say you're posting a rip of the movie "Dark
> Star", it's a 360,123,244 byte file called darkstar.mpg. You're
> posting it as 40 rar files, each in 100 parts. The subject lines
> would look like:
>
> "p0001o4000s360123244f darkstar.mpg: W3Rd 2 mY P33pz! Heres Dark Star!
> day 1 of 3! darkstar.r00 [0/100]"
> etc...
to be human readable, the size needs to be in kibibytes or mebibytes,
or kilobytes or megabytes, or there should be a thousands marker.
> Later on people asking for reposts could just ask for "part 846 of
> darkstar.mpg" rather than "part 46 of rar 34 of dark star". Since
> the pieces are put together by bytecount and offset in the header
> behind the scenes by the client, someone could post part 846 as 10
> pieces, or even e-mail them to someone as 10 pieces so they fit
> thru the e-mail system, and they could be seemlessly worked into
> the rest of the file.
could they? here you're using multiple RAR files which are presented
as one. you can't concatenate the RAR-files and have an MPEG-file.
or perhaps that's not what you're saying? I think calculating the
actual uncompressed offsets when RAR is chopping the file into pieces
is rather hard. RAR can be patched, of course, but I don't know of an
open reference implementation.
like I've said many times, I'd love to see RAR go away[1]. on the
other hand, if people insist on using RAR, perhaps it's useful to see
collection of RAR files as one transmission, even if you can't chop
and combine segments at arbitary offsets then.
[1] RAR as a splitting tool, that is. using it to transmit
collections of files is OK, though I'd prefer ZIP since it's an
open format with just about the same performance.
--
Kjetil T. ==. ,,==. ,,==. ,,==. ,,==. ,,==
::://:::://:::://:::://:::://::::
=='' `=='' `=='' `=='' `=='' `== http://folding.stanford.edu
Re: [FNTP] 'in-completeness'
Author: BOUWSMA Beery
Date: Thu, 03 Oct 2002 20:42
Date: Thu, 03 Oct 2002 20:42
54 lines
4030 bytes
4030 bytes
Zig heil! %s wrote on %.3s, %lld Sep 1993 > > I agree that we should stay away from ticks and quotes of the > personally, I think $ is as much a pain as ' (variable expansion), but I'd disagree, based on the shell commandline -- I've never had a problem `grephistory'ing for a message ID with a money value within, because the redirect angle-brackets that delimit a message ID need to be protected from the shell, which I've done out of habit using the single `\'' as in # /usr/local/news/bin/grephistory -l '<00O0000O0O@news.radio.cz>' /dev/null or even # /usr/local/news/bin/grephistory -l '<20020924234811.264$g2@newsreader.com>' [] 1032960442~-~1032925691 @050100000007000005CC0000000000000000@ Much easier than backslash-escaping the angle brackets and anything else within that the shell might interpret unwantedly. And double `"' quotes don't help with protecting the $$$ from the shell even if they do protect the seldom used single-' quote. > tilde is five > decimal orders of magnitude less common, and has none of the silly > Unix problems of $ and '. Give my vote to the tilde rather than the single quote, in order to allow ex-sysadmins such as myself to continue to use the single quote in shell commands to prevent the shell from interpreting `<' `>' `\'' `$' and their ilk as something other than the message ID when cuttin' an' pastin' to a command like `grephistory' or something. Or else there's something I don't know that will protect all those funny characters from the shell. I never did the research -- I only used what worked for me... > Kjetil T. ==. ,,==. ,,==. ,,==. ,,==. ,,== > ::://:::://:::://:::://:::://:::: > =='' `=='' `=='' `=='' `=='' `== http://folding.stanford.edu Please to stop posting 3-D ASCII stereograms; my eyeballs are trying to focus themselves all over my screen and all I have to show for it is crosseyedness without deciphering the sekr1t subliminal messages and/or pr0n within, thanx heaps barry bouwsma, shell-addicted netscum
Re: [FNTP] 'in-completeness'
Author: Kjetil Torgrim Homme
Date: Thu, 03 Oct 2002 22:18
Date: Thu, 03 Oct 2002 22:18
47 lines
3635 bytes
3635 bytes
[BOUWSMA Beery]:
>
> > personally, I think $ is as much a pain as ' (variable expansion), but
>
> I'd disagree, based on the shell commandline -- I've never had a
> problem `grephistory'ing for a message ID with a money value within,
> because the redirect angle-brackets that delimit a message ID need
> to be protected from the shell, which I've done out of habit using
> the single `\'' as in
> # /usr/local/news/bin/grephistory -l '<00O0000O0O@news.radio.cz>'
> /dev/null
yeah, well, me too, but I often see novices using "", and then it
breaks and they get very confused.
> Or else there's something I don't know that will protect all those
> funny characters from the shell. I never did the research -- I
> only used what worked for me...
' and ! are the two most annoying characters, IMO. they both need
special care in bash.
> > Kjetil T. ==. ,,==. ,,==. ,,==. ,,==. ,,==
> > ::://:::://:::://:::://:::://::::
> > =='' `=='' `=='' `=='' `=='' `== http://folding.stanford.edu
>
> Please to stop posting 3-D ASCII stereograms; my eyeballs are
> trying to focus themselves all over my screen and all I have to
> show for it is crosseyedness without deciphering the sekr1t
> subliminal messages and/or pr0n within, thanx heaps
is this better? I made it just for you,
* *
l 1 | I ! l 1 | I ! l 1 | I ! l 1 | I ! l 1 | I ! l
lp e d|o I ! p e1d o I ! ple d o| I !p e d1o | I p eld o | I p!e d
lb a r|r y ! b a1r r yI ! bla r r|y I !b a r1r y I b alr r y| I b!a r
l 1 | I ! l 1 | I ! l 1 | I ! l 1 | I ! l 1 | I ! l
(if you have problems, try doubling the top and bottom rows using your
favourite editor.)
--
Kjetil T.
Re: [FNTP] 'in-completeness'
Author: Curt Welch
Date: Fri, 04 Oct 2002 00:54
Date: Fri, 04 Oct 2002 00:54
22 lines
2833 bytes
2833 bytes
claus-usenet-20021003@faerber.muc.de (Claus_F�rber) wrote: > Curt Welch <curt@kcwc.com> schrieb/wrote: > > So the type of defense you talk about isn't going to help. They can > > post their clone after they have seen your "answer" in the next post. > > You can just double-link the messages: The n-th post carries the answer > to the (n-1)th and vice-versa. > A scheme similar to that of cancel locks proposed on Usefor (but a more > general one) can be used. That doesn't buy you much. There's still nothing to be done about the fact that the person trying to cause the problem waits for the entire orginal post to complete, and then sends out clones of 10 of the articles but with bogus data included. Large articles can move slowly though many parts of usenet so even though the clones are posted after the orginal was seen, it can still show up ahead of the orginal on some servers. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
Author: Curt Welch
Date: Fri, 04 Oct 2002 02:06
Date: Fri, 04 Oct 2002 02:06
89 lines
6511 bytes
6511 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote: > [Claus F�rber]: > > > > Curt Welch <curt@kcwc.com> schrieb/wrote: > > > So the type of defense you talk about isn't going to help. They > > > can post their clone after they have seen your "answer" in the > > > next post. > > > > You can just double-link the messages: The n-th post carries the > > answer to the (n-1)th and vice-versa. A scheme similar to that of > > cancel locks proposed on Usefor (but a more general one) can be > > used. > > the "answer" to part N-1 and N+1 must be a hash of their content. > anything else will allow the attacker to keep the answers and replace > the content. assumption: we trust part 1. it is therefore part 1 > which must contain the information allowing us to trust part 2. (and > so on by recursion.) > > with such a hash in place (put it in a random header, it's acceptable > to use HEAD to choose the right candidate), the idea of using > overlapping parts is unnecessary. Ah, but we want to be able to trust reposts even if they have nothing to do with the orginal post. You don't want a security system that prevents that from working. If you must tie pieces together one by one based on the part size used in the orginal post, how do make use of reposts done with different part sizes? What you want is for the user to point at a single file segment and ask the download tool to find all the missing pieces. The point of the large file hash is to allow the download tool to collect reposts even when done a month later in a different group. And, even if the first article the user points to turns out to be a forged and corrupted clone of the real file, you want the download tool to be able to figure that out and reconstruct the real thing in spite of the "noise". What it does trust from the first bogus article is the hash. The download tools "job" is to reconstruct the file that matches that hash. There must be some clever way to make this work. If there are lots of "fakes" posted, I don't think there is anyway to avoid having to download a lot of the fake articles, but once you have them all downloaded, you want the job of reconstructing this jig-saw puzzle to be resonable. One thing I was thinking about was trying to find a hash function that would allow you to calculate the file hash if you had hash values for each segment, without having to make a pass over all the raw data. A hash which is a simple byte sum works like that. If you have the hash of contiguous segments, then the file hash is simply the sum of the segment hashes. A function that was easy to calculate like that would make it much easier to try combinations of different segments to find out which ones, when combined, ended up creating the correct full-file hash. The problem with a simple sum of course is that it's completely trivial to generate fake data which produces the correct sum. So it offers no protection against forged data. Is there some way to get the security of a strong hash but yet still have a way to calculate the file hash from the segment hashes so you can mix-and-match various segments quickly without having to recalculate an entire file hash over the file? What if you did something like calculate a real hash of fixed sized blockes from the file (say 1024 bytes?), then define the file hash to be simply the sum, or XOR of all the block hash values? If all segments posted in this new system were required to be split on these 1K block boundries, then every article posted could have it's "hash" value included in the header (i.e. the sum of the hash of each of the blocks in that segment). A download tool could download all the segments it thought were valid, and recalculate the hash for that segment to make sure it was valid. Then, to try and mix and match segments, it's just a matter of adding up segment hash values to see which combination of segments proudced the correct file hash. If the segement hash was in the header, the download tool could do the mix and match test before downloading. And if the segment hash in the header didn't match the data, then that would be detected when the article was downloaded. Maybe something like this would give enough security from fake data but also make the job of sorting though real and fake articles fast enough to be practical? If so, all you could gain by posting fake articles is to make people waste time downloading them - they wouldn't prevent you from getting the real data. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
Author: Curt Welch
Date: Fri, 04 Oct 2002 02:36
Date: Fri, 04 Oct 2002 02:36
45 lines
3981 bytes
3981 bytes
"Brian Truitt" <btruitt@rcn.com> wrote: > [snip convo of doubly linked list of parts] > Maybe we should go about it a little differently. > Have the first post contain the MD5 hash of all the msg-id's of the > multipart. ... > I'm betting I'm overlooking something here, so someone point out the > flaws =) Not sure about what weakness you may have left, but more important is that you are crating a system where reposts by thrid parties can not be taken advantage of. This is one of the big points of using a file-hash and segment offset/size values. It allows the download tool to take advantage of _any_ repost of the same file at a later date to fill holes left by missing articles from the previous post. So if the same file is posted again, but in a different group, and with a different file name, and with different part sizes, the download tool would still be able to recognize it and grab articles as needed to fill gaps. What we need is a way to verify posts are valid without having all the posts, no matter who makes the post. So the "extra data" we include to allow that has to be based on the file contents, not things like the Message-ID of a given post. Doing something like including a hash value for every segment, in every post, would be closer. So if the file is broken into 100 parts, each post would include the full set of 100 hash values. But that is only useful if all reposts ended up breaking the file into the same size parts. And it's still complex to deal with a fake post which had a set of fake hash values (or many of them "valid" but some of them faked). Ah, but if the file hash was calulated not as the hash of the entire file, but as a hash of the block hashes (i.e. combine the hash values from each segment into a new file, then calculate a hash of that), then it would be close to impossible to create a list of 100 fake segment hash values which, when they are hased, produce the correct file-hash value. Maybe something along these lines could work. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
Author: Curt Welch
Date: Fri, 04 Oct 2002 03:35
Date: Fri, 04 Oct 2002 03:35
118 lines
7412 bytes
7412 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
> [Brian Truitt]:
> > $ already show up, so any tools it would brake in a new msg-id
> > format are already broken as written :) .
>
> personally, I think $ is as much a pain as ' (variable expansion), but
> it's not very important. I think is is just a little bit silly to
> choose $, as that is the second most used special character in msgids
> (after period), when there are plenty of alternatives. tilde is five
> decimal orders of magnitude less common, and has none of the silly
> Unix problems of $ and '. see <1ry99h14ix.fsf@einn.ifi.uio.no> for
> the table I produced.
Yeah, it's hard to argue against something like ~ over $. I just like $
better for personal aesthetic reasons. But like Brian said, the message-Id
encoding should work well for machines first.
> > The format $UB$<hash>$o<offset>$s<size>$$random@domain allows room
> > for future functionality to be added with backwards compatibility,
> > and doesn't require a change to the RFC.
>
> it's a bit funny that I think the type of hash needs to be tagged, but
> offset and size can have their position hardcoded, whereas you have
> hardcoded the position of some hash and left offset and size optional.
> (I suggested to start with three hash types: full MD5, MD5 excerpt,
> and unspecified.)
Actually, we have dropped the total file size from these examples and
that's important as well. And once you have that, then offset and
size can be optional. i.e. a missing offset is assumed to be 0,
and a missing segment size is assumed to be the rest of the file.
So a single part file of 15,000 bytes could be encoded like this:
~UB~<hash>~S15000~ (Using base 10 instead of base64 to make
the example easy to understand)
instead of making them do this:
~UB~<hash>~o0~s15000~S15000
And when it's posted in 3 parts of 5000 each, it could be done
like this:
~UB~<hash>~s5000~S15000~~ for the first part and
~UB~<hash>~o5000~s5000~S15000~~ for the second part and
~UB~<hash>~o10000~S15000~~ for the last
For multipart files you don't gane much by leaving out the offset on
the first post or the size on the last, but it's logical to make
it work that way so single part files and multipart files use the
same system (something that yEnc got all wrong).
The point of the hash is not to just allow the posts from a single
set to be combined together. If that is all it did, then a random tag
should be generated and not a hash at all. The point is to force everyone
to use the same hash so download tools can identify reposts of the same
file at any time in the future (not just reposts intendned to help fill
gaps). This would require everyone to use the same hash, and to make it a
standard which never changes. So if a guy downloads something from usenet
one day, and then a year later desides to repost it to Usenet, the hash
needs to be the same as it was when it was first posted. It would be
far better to pick a single hash system and make it the standard instead
of allowing it to be changed.
If 10 years down the road you found a need to use a different hash, it
would probably be best done forcing them to continue to use the old
hash, and add the new hash as an additional parameter.
If you make the hash optional, you risk people not including it
simple because they didn't want to bother calculating it. Maybe
that's ok. If people just used the convention to put the
byte offset and segment size into the message-IDs that could be
of some use.
Oh, hell, maybe we should think about the idea of different hash-like
values so that people could put in the random tag idea I talked about
above. ~UB~t<random-tag>~o<offset>~s<segment-size>~~ etc.
Oh hell, why not allow part number and total part count as well:
~UB~t<random-tag>~p<part-no>~P<total-parts>~~
The random tag would be used to match up posts from the same set. And for
anyone posting a fill, they could duplicate the tag used in the original
post. This would offer no protection from fakes - but it would be a start.
And it allows news servers to get this information in a form that's much
easier to use than the subject hack currently in place.
This would allow posting tools to start generating these formated
Message-IDs without having to restructure much of anything they were
currently doing.
The RFC/standard which described the correct use of this convention could
lay out the ideas about where we were trying to take this (to a real file
hash and offset/size data instead of the random tag combined with part size
data).
> like I've said many times, I'd love to see RAR go away[1]. on the
> other hand, if people insist on using RAR, perhaps it's useful to see
> collection of RAR files as one transmission, even if you can't chop
> and combine segments at arbitary offsets then.
Maybe things like this which are commonly done should be documented in
the Message-ID as well? define fields in there to show that this is
part 3 of 10 of a rar file which is number 12 out of 50 in the complete
series? The idea is to move them away from that and instead post
it as a straight 10000 part file (if that is what it takes), but if we
allow them to encode stuff that's currently being done, then it might
help get everyone to support the standard quickly. And if they all
start to support it, but they use it in different ways, it might encourge
eveyone to merge into on use of the system?
--
Curt Welch http://CurtWelch.Com/
curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
Author: Juergen Helbing
Date: Fri, 04 Oct 2002 09:19
Date: Fri, 04 Oct 2002 09:19
64 lines
3104 bytes
3104 bytes
Russ Allbery <rra@stanford.edu> wrote: >> But I've learned from another answer that you cannot measure what your >> students are really doing. > >No, this is not correct. I don't personally have that information, but >it's not that overly hard to accumulate it from network traffic. Nice to know. >Look, I really don't think you understand. > >Neither Stanford nor any other major university is ever going to >officially support trading of ripped MP3 files or DVD movies. Period. >It's not ever going to happen. It doesn't matter *how* much bandwidth it >would save. I understand you very well. >The reasons really should be painfully obvious to anyone. >[...] >trading of such material would not be >considered by anyone in university management to further the educational >mission of the university. That's what I meant when I said that the students should not waste their time - but study :-))) >Insofar as peer-to-peer file sharing survives, it survives because it's >not possible to clearly distinguish between legal and illegal uses and it >has legitimate legal uses. This really makes me smiling. btw.: I'm pretty sure that when it comes down to "files" (not to volume) then more binary content on Usenet is "legal" than on P2P. There are even binary newsgrops where binary posts are done with the permisison of the intellectual owners. And there are tons of real free stuff....... >It has nothing whatsoever to do with what the students would or would not >enjoy and everything to do with the fact that a large university is a very >tempting lawsuit target and we have to protect ourselves against that as >best we can without compromising the free speech and academic curiosity of >our users. I am sure that both issues apply for your situation: "educational mission" AND "legal liability" It is - btw - nice to know that the "freespeech" and the "academic curiosity" does no longer cover binaries. (Our universities are already very busy with the development of web-filters :-) And it is nice to know that the "academic world" is no longer involved into the further development of the Binary Usenet. The only people who would have time and ressources have abandoned it. Thanks for the clear statements. -- Juergen
Re: [FNTP] 'in-completeness'
Author: Juergen Helbing
Date: Fri, 04 Oct 2002 09:26
Date: Fri, 04 Oct 2002 09:26
27 lines
1919 bytes
1919 bytes
"Brian Truitt" <btruitt@rcn.com> wrote: >Don't confuse his situation with mine. In an academic environment, he can >probably track the couple of inbound/outbond links he has with something >like cflowd and know exactly what is coming and going. Our network covers a >dozen states on both coasts of the US , and something like cflowd just >doesn't scale that well without a major expenditure that could be better >used in completely rebuilding the news system =) Thanks for the clarification. Of course a "closed network" with defined gateways to the Net would be far easier to measure than your "Net on the Net". I have read so much about "Network Management Tools" & "Administration Tools" in the last two years that I thought it would be very easy today for admins - especially for those of large sites - to know what's really happening on their network. Obviously this is not the case. Nobody knows where the traffic really is - and perhaps this is the best for the Net. CU -- Juergen
Re: [FNTP] 'in-completeness'
Author: Juergen Helbing
Date: Fri, 04 Oct 2002 09:52
Date: Fri, 04 Oct 2002 09:52
126 lines
4986 bytes
4986 bytes
Simon Lyall <simon@darkmere.gen.nz> wrote: >Lets assume you got a good design tomorrow and then somehow managed to get >enough servers to support it (resends, a file checking) along with >whatever client side is needed. [...] >Now what happens now: >- Full feed is still hundreds of gigbytes per day >- Server taking a full feed costs $100,000 and a fair chunk of admin time. >[...] >- Volume keeps increasing The last sentence would always apply. Whether we fix our problems or not. But I dont see this as an excuse to leave it broken. In terms of a car: Nobody would forbid the repair of defective tires just too keep the speed slow..... (btw.: The best idea of all: Close all important roads :-) >>But we all agree that Usenet is the most efficient way to broadcast >>huge amounts of data around the world, don't we ? > >No, Usenet is not effecient because it doesn't scale. In order to for an >ISP to particpate fully in binary Usenet it needs to spend $100,000 on a >server (plus more each year) and allocate 50Mb/s of bandwith (plus more >each year). Do you see any better way to distribute 500 Gigs/day ? This is eaxactly what we are looking for. The basic idea of Usenet - to transfer all data on just a few channels over continents - and then split them up seems to be still far better than 100 millions users who are fetching 10 billions webpages from 10 million webservers...... >I work for a dialup ISP with over 150,000 customers and the economics of a >full feed server are so bad it's not even worth me presenting the >proposal. AFAIK no ISP in Aus/NZ has even close to a full feed on their >own servers including the largest ones ( which have 600,000 dialup and >50,000 broadband customers). There seems to be no cooperation between the providers. :-(( If THEY would share the way the users do all day long then it would be easy to get full feeds to AUS/NZ and provide their users. Of course the "bad taste" of Binary Usenet is the most important reason. Combined with the fact that cooperation is now replaced by payment. >[...] >The reason for this is that these services scale down a long way, even an >ISP with just 10,000 dialup customers can offer all the above and make >money if only 100 customers use some of them. I agree fully. The actual status of server-software for the Binary Usenet is a PITA. >With Usenet the small ISP has much more limited choices: >1. Full feed server >2. Sub fullfeed server >3. Outsources service (directly of perhaps via nntpcache like program) >4. No Usenet. I did ask another ISP here if he would use a "general news proxy" and offer it to his users. I believe that EVERY message which is transferred from any Usenet server to a customer must not be transferred a second time...... When the Web growed proxies were the very first answer. And I dont know how much traffic they are saving today. I is really interesting that News did not go exactly the same way. >What ISPs need is: >1. Something that scales up and down fully Yes. >2. Something that saves them money and or bandwidth or makes money Yes. >3. Something that is easy to install and maintain. Yes. >What I think is needed is something about the same level of complexity of >a web cache/proxy server: Yes. >2. He lets me have an old P3 450 with 250MB of RAM and I borrow a spare > 80GB IDE drive to put on it. Curt is right. Poor admins. Today the users are having far more performance than the professionals...... >3. >4. >5. [...] >6. >7. >8. Yes - you need this. >Well something like that anyway. The only thing that is remotely near the >above (AFAIK) is a freenet server. However build it and they (ISPs) will >come. Especially if we arn't going to get rude letters from Large Media >Companies' Lawyers. Good proposal. In fact I am very close to it :-)) CU -- Juergen
Re: [FNTP] 'in-completeness'
Author: Juergen Helbing
Date: Fri, 04 Oct 2002 10:11
Date: Fri, 04 Oct 2002 10:11
33 lines
2150 bytes
2150 bytes
claus-usenet-20021003@faerber.muc.de (=?ISO-8859-1?Q?Claus_F=E4rber?=) wrote: >> First we need PAR files which can deal with 3795 parts. >> (AFAIR they are working on that problem right now). >> Actually PAR files can "protect" only up to 255 files. > >You don't need all PAR files to carry error correction information >across all parts. Instead, you can just have distinctive subsets for >each set of PAR files. > >For example, you could have 15 sets of PAR files. The first set includes >information about parts 1 to 255, the second about parts 256 to 511, and >so on. The parts are posted in that order: Part 1, 256, 512,..., 2, 256, >513,..., then par set 1 part 1, set 2 part 1,... set 1 part 2,... You are basically right. But this would be the same pain as before. You need PAR files for every "set" - it does not matter if you are splitting up into RAR files, .001 .002 files or any other "structure". You still need a level of identification of these "sub-parts" - and if you have all PAR files for "sub-1" but none for "sub-2" then those from "sub-1" do not help. And people would still tend to ask for repost for "sub-parts". Having 20 par files for 3795 parts - this would be a _real_ deal. And I'm hoping that the current round for "Par-V2" will solve this. So even I am ready to wait here :-)) CU -- Juergen
Re: [FNTP] 'in-completeness'
Author: Juergen Helbing
Date: Fri, 04 Oct 2002 10:20
Date: Fri, 04 Oct 2002 10:20
46 lines
3050 bytes
3050 bytes
curt@kcwc.com (Curt Welch) wrote: >> The last time I tried to "unify" Bettie Page I reduced > 10000 >> pics down to 1400 manually. And this was done _after_ >> the automatic identity check :-)) > >But also think about what might happen if everyone was using download >tools that could spot files like that. Maybe people wouldn't be so >sloppy about reposting files which were a minior variation of other >files? The contrary would happen: People would post their _entire_ collection all the time. Simply because they can now be sure that those who have some pics already will not download them again. (It is nice to be the "devil's advocate" this time ;-) >Your "preventing duplicate downloads" experence shows a hash right >now isn't all that useful, but the real point of the hash that I >think should be useful on ---> day one <---- is to allow download tools to do >a much better job of taking advantage of a repost to fill in missing >holes. This is something needed for the larger files, and not as >much for the pictures. I did add the arrows: ---> day one <---- Yes, advanced download tools will do this - on the second day. >But, I think using a reah hash of the file to identify the file is >something that's "just the right way to do it". It's something that >opens the door for other systems to take advantage of it if it becomes >the "norm" for usenet. I agree - and we could even solve Russ Albery's problem: A decentral database could be used to assign a "legal status" - and a "where may I pay status"....... We all know that Usenet must go this way - and it is up to _us_ to realise it. So I strongly support this idea generally. If you are right - and the size of the message-id is not critical - then we should include a full MD5 (efficiently encoded). -- Juergen
Re: [FNTP] 'in-completeness'
Author: Claus Färber
Date: Fri, 04 Oct 2002 10:38
Date: Fri, 04 Oct 2002 10:38
19 lines
2569 bytes
2569 bytes
Curt Welch <curt@kcwc.com> schrieb/wrote: > That doesn't buy you much. There's still nothing to be done about > the fact that the person trying to cause the problem waits for the entire > orginal post to complete, and then sends out clones of 10 of the articles > but with bogus data included. Large articles can move slowly though > many parts of usenet so even though the clones are posted after the > orginal was seen, it can still show up ahead of the orginal on some > servers. As the Message-ID is part of the authentication, the said person would have to use the same Message-ID as the posting he wants to replace. So he already can't his own servers; he has to find a server whither the posting has not already propagated. Claus -- ------------------------ http://www.faerber.muc.de/ ------------------------ OpenPGP: DSS 1024/639680F0 E7A8 AADB 6C8A 2450 67EA AF68 48A5 0E63 6396 80F0
Re: [FNTP] 'in-completeness'
Author: Claus Färber
Date: Fri, 04 Oct 2002 10:46
Date: Fri, 04 Oct 2002 10:46
18 lines
2408 bytes
2408 bytes
Curt Welch <curt@kcwc.com> schrieb/wrote: > So the type of defense you talk about isn't going to help. They can post > their clone after they have seen your "answer" in the next post. Another answer to this problem is, of course, to post "index" posts, which carry information about all parts of the file, including a SHA1 hash. If you trust this index, you automatically know whether a part fits in. Such indices could even be used with message/partial (or application/ partial-message) to extract parts of MIME entities although some posts of the sequence are missing. Claus -- ------------------------ http://www.faerber.muc.de/ ------------------------ OpenPGP: DSS 1024/639680F0 E7A8 AADB 6C8A 2450 67EA AF68 48A5 0E63 6396 80F0
Re: [FNTP] 'in-completeness'
Author: Juergen Helbing
Date: Fri, 04 Oct 2002 10:48
Date: Fri, 04 Oct 2002 10:48
38 lines
2346 bytes
2346 bytes
"Brian Truitt" <btruitt@rcn.com> wrote: >Hmmm, interesting concept. It would allow them to save space on download >caps with the NSP's, and would help keep traffic on the internal network a >bit more. Yes. >However, I'd have a hard time selling the idea to people when they >can already do that with some client software, which doesn't require passing >a clear-text username and password thru an intermediary, which would be a >guaranteed sticking point with people. What "client software" would permit already today to fetch news directly (and fast - and cheap) from your cache ? And the "clear text" problem could be easily solved with a small "dialer-like" program.... (or even a small proxy at users side). But you are right: This general problem of NNTP was always the biggest obstacle for such solutions. Perhaps newer versions of RFC-977 will finally specify a better method for authentication..... >In the end it would help me with >traffic, but unfortunately wouldn't help in the long run with collecting >statistics. Your proxy's stats might be justification enough. And the speed of your local proxy would be great for the users. Thanks for answering my questions - and discussing this with me. It helps a lot in finding "new ways" for Binary Usenet.... -- Juergen
Re: [FNTP] 'in-completeness'
Author: Juergen Helbing
Date: Fri, 04 Oct 2002 10:52
Date: Fri, 04 Oct 2002 10:52
22 lines
1604 bytes
1604 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote: >I see only one problem: NSPs with per-IP limits. Are there really ISPs who are detecting that three different users with three different accounts are logged in and downloading from the same IP-address ? I know the "connections-per-account" and "one-account only from one IP" limits to avoid abuse. But such an "IP-Limit" would also prevent five users on a "private IP-LAN" with one proxy to the outside to se the same news-server at a time. Are you sure ? -- Juergen
Re: [FNTP] 'in-completeness'
Author: Kjetil Torgrim Homme
Date: Fri, 04 Oct 2002 13:38
Date: Fri, 04 Oct 2002 13:38
25 lines
2194 bytes
2194 bytes
[Juergen Helbing]:
>
> Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
>
> >I see only one problem: NSPs with per-IP limits.
>
> [...] But such an "IP-Limit" would also prevent five users on a
> "private IP-LAN" with one proxy to the outside to se the same
> news-server at a time.
yes.
> Are you sure ?
well, I believe I've seen servers to accept no more than four
connections or so from one IP. that would usually work fine for that
private LAN behind the shared DSL line or whatever, but for a large
ISP proxy, the number of simultaneous connections could easily reach a
hundred.
--
Kjetil T. ==. ,,==. ,,==. ,,==. ,,==. ,,==
::://:::://:::://:::://:::://::::
=='' `=='' `=='' `=='' `=='' `== http://folding.stanford.edu
Re: [FNTP] 'in-completeness'
Author: Claus Färber
Date: Fri, 04 Oct 2002 14:07
Date: Fri, 04 Oct 2002 14:07
24 lines
2046 bytes
2046 bytes
Juergen Helbing <archiver@i3w.com> schrieb/wrote: > You are basically right. But this would be the same pain as before. > You need PAR files for every "set" - it does not matter if you > are splitting up into RAR files, .001 .002 files or any other > "structure". You still need a level of identification of these > "sub-parts" - and if you have all PAR files for "sub-1" but none > for "sub-2" then those from "sub-1" do not help. If the posting order is half-intelligent, it's very unlikely that you will lose all par files for a certain "subset". Furhter, the sets of par files can have intersecting subsets. > Having 20 par files for 3795 parts - this would be a _real_ deal. But you're right. Being able to have par files over all parts will greatly reduce the number of par files needed. If you have 16 subsets with five par files for each (should be enough), you already have 60 par files. Claus -- ------------------------ http://www.faerber.muc.de/ ------------------------ OpenPGP: DSS 1024/639680F0 E7A8 AADB 6C8A 2450 67EA AF68 48A5 0E63 6396 80F0
Re: [FNTP] 'in-completeness'
Author: Kjetil Torgrim Homme
Date: Fri, 04 Oct 2002 14:53
Date: Fri, 04 Oct 2002 14:53
103 lines
6014 bytes
6014 bytes
[Curt Welch]:
>
> For multipart files you don't gane much by leaving out the offset
> on the first post or the size on the last, but it's logical to
> make it work that way so single part files and multipart files use
> the same system (something that yEnc got all wrong).
very good point. ok, tag them all.
> The point of the hash is not to just allow the posts from a single
> set to be combined together. If that is all it did, then a random
> tag should be generated and not a hash at all.
the reason for numerous hash types was that some people didn't want
universally recognizable identifiers. yes, this means later complete
reposts won't be useful, but refills should use the same random ID.
> The point is to force everyone to use the same hash so download
> tools can identify reposts of the same file at any time in the
> future (not just reposts intendned to help fill gaps).
I agree this is the ideal, but I fear we will see people sending bogus
hashes to defeat the lawyers. while I don't sympathise with this,
it's better to give them an escape route which is tagged
appropriately.
> Oh, hell, maybe we should think about the idea of different
> hash-like values so that people could put in the random tag idea I
> talked about above. ~UB~t<random-tag>~o<offset>~s<segment-size>~~
> etc.
>
> Oh hell, why not allow part number and total part count as well:
>
> ~UB~t<random-tag>~p<part-no>~P<total-parts>~~
>
> The random tag would be used to match up posts from the same set.
> And for anyone posting a fill, they could duplicate the tag used
> in the original post. This would offer no protection from fakes -
> but it would be a start. And it allows news servers to get this
> information in a form that's much easier to use than the subject
> hack currently in place.
yes.
> The RFC/standard which described the correct use of this
> convention could lay out the ideas about where we were trying to
> take this (to a real file hash and offset/size data instead of the
> random tag combined with part size data).
definitely.
> Maybe things like this which are commonly done should be
> documented in the Message-ID as well? define fields in there to
> show that this is part 3 of 10 of a rar file which is number 12
> out of 50 in the complete series?
this is interesting, but it complicates matters slightly. the hash
needs to be of the RAR file being transmitted, not its contents. so,
there is no ID which unifies the files in the series. we can of
course use an extra tag for that ID, it could even be a hash of the
assembled and decompressed file, but the use of that is pretty limited
(can't really be used for refills or reposts, except for duplicate
detection "I already have that file".)
we have many tags, now. let me try to summarize (the tag isn't
important, just added for clarity.)
t total size of file (octets)
o offset (octets, starts at 0)
s segment size (octets)
p part number (count starts at 1)
P number of parts
M file hash (MD5-128)
I file id
f file number
F number of files in set
S set id
t is mandatory. p/P and o/s must not be used simultaneously. if none
of them appear, this is a single part file. o is 0 by default. the
default value of s is t-o. p is 1 by default. M and I must not be
used simultaneously.
all numerical values must be coded using BASE64. values must not
contain the tag character "~" (only I and S can be non-numeric). it
is recommended that I and S have at least 32 bits of entropy, in other
words, at least six random characters from the repertoire.
outside of this tagged information, the LHS of the msgid of each part
should contain a random element to prevent attackers from guessing the
next msgid in the series ahead of time. this random element should
have an entropy of at least 16 bits, in other words, at least three
random characters from the repertoire.
(I tried to use "must" and "should" in the RFC sense.)
this is very promising!
--
Kjetil T. ==. ,,==. ,,==. ,,==. ,,==. ,,==
::://:::://:::://:::://:::://::::
=='' `=='' `=='' `=='' `=='' `== http://folding.stanford.edu
Re: [FNTP] 'in-completeness'
Author: Curt Welch
Date: Fri, 04 Oct 2002 15:25
Date: Fri, 04 Oct 2002 15:25
35 lines
3713 bytes
3713 bytes
claus-usenet-20021004@faerber.muc.de (Claus_F�rber) wrote: > Curt Welch <curt@kcwc.com> schrieb/wrote: > > That doesn't buy you much. There's still nothing to be done about > > the fact that the person trying to cause the problem waits for the > > entire orginal post to complete, and then sends out clones of 10 of the > > articles but with bogus data included. Large articles can move slowly > > though many parts of usenet so even though the clones are posted after > > the orginal was seen, it can still show up ahead of the orginal on some > > servers. > > As the Message-ID is part of the authentication, the said person would > have to use the same Message-ID as the posting he wants to replace. So > he already can't his own servers; he has to find a server whither the > posting has not already propagated. But as I've pointed out, you can't use the Message-ID as part of the authentication and still have the power to take advantage of reposts. So, you post a 50 part file, (whith some form of Message-ID authentications), but some guy only receives 40 parts. Someone else reposts the 10 missing parts, but a third guy posts two sets of the 10 missing parts with bogus data included. The problem is to allow users to make use of valid reposts without being fooled by the bogus reposts. You can't use any form of Message-ID authentication to help you with that problem. And though Message-ID authentication can help you match up valid posts from the first set, the entire first set may in fact been a fake to try and confuse a post of the same file done 2 weeks before. You just can't use Message-ID authentication to help this. You must use authentication based only on the file contents. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
Author: Kjetil Torgrim Homme
Date: Fri, 04 Oct 2002 15:37
Date: Fri, 04 Oct 2002 15:37
110 lines
6606 bytes
6606 bytes
[Curt Welch]:
>
> Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
> > the "answer" to part N-1 and N+1 must be a hash of their content.
> > anything else will allow the attacker to keep the answers and replace
> > the content. assumption: we trust part 1. it is therefore part 1
> > which must contain the information allowing us to trust part 2. (and
> > so on by recursion.)
> >
> > with such a hash in place (put it in a random header, it's acceptable
> > to use HEAD to choose the right candidate), the idea of using
> > overlapping parts is unnecessary.
>
> Ah, but we want to be able to trust reposts even if they have
> nothing to do with the orginal post.
mm, yes? I'll be more explicit. article 1 contains the segment
0..500k. it includes the header:
X-Next-Segment: offset=500000 size=5000000 md5=2ca809d77efa7254482d3350eb5abe53
article 2 includes the header:
X-Next-Segment: offset=1000000 size=5000000 md5=9cfe84382574173a6bf0af0333e30ed1
if you want to repost a segment, you presumably have the complete
file, and can calculate the MD5 hash of the byte range following your
segment. this scheme allows the reposts to use a different segment
size than the original, it only makes the code for the verification in
the client a little more complicated.
the main issue is the loss of part 1. then you've lost your anchor,
and trust in the other parts is reduced. but you can still piece the
parts together into chains when the hashes matches.
real 1 2 3 5 6 7
fake 4 5
you download parts 1 2 3 4. you notice that the hash of 4 doesn't
match the header of 3. you download both 5, and notice that the hash
of the fake 5 matches the header of the fake 4. so you trust the
other 5 more (but you're still not safe), download 6 and 7, and see
that they form a chain. you do know that you need to keep a look out
for the real 4 to get a complete message. when the real 4 arrives,
you will know whether the chain 5-6-7 is genuine.
if part 1 goes missing, nothing is certain, but the principle is the
same.
if part 1 is fake, we have a problem. my best suggestion is to look
at chain lengths.
> There must be some clever way to make this work. If there are
> lots of "fakes" posted, I don't think there is anyway to avoid
> having to download a lot of the fake articles, but once you have
> them all downloaded, you want the job of reconstructing this
> jig-saw puzzle to be resonable.
it's hard to avoid downloading fake data. I think X-Prev-Segment can
help there, actually. from the example above, if you look at that
header in both copies of 5, and see that one of them matches the fake
4, then you know which 5 is fake.
> One thing I was thinking about was trying to find a hash function
> that would allow you to calculate the file hash if you had hash
> values for each segment, without having to make a pass over all
> the raw data.
>
> [...]
> The problem with a simple sum of course is that it's completely
> trivial to generate fake data which produces the correct sum. So
> it offers no protection against forged data.
exactly.
> Is there some way to get the security of a strong hash but yet
> still have a way to calculate the file hash from the segment
> hashes so you can mix-and-match various segments quickly without
> having to recalculate an entire file hash over the file?
I suspect it is impossible to have a hash like that, and still make it
cryptographically secure.
> What if you did something like calculate a real hash of fixed
> sized blockes from the file (say 1024 bytes?), then define the
> file hash to be simply the sum, or XOR of all the block hash
> values?
>
> If all segments posted in this new system were required to be
> split on these 1K block boundries, then every article posted could
> have it's "hash" value included in the header (i.e. the sum of the
> hash of each of the blocks in that segment).
it could work for our purposes. I'd put that in a separate header,
and use the "real" hash in the msgid.
> Maybe something like this would give enough security from fake
> data but also make the job of sorting though real and fake
> articles fast enough to be practical? If so, all you could gain
> by posting fake articles is to make people waste time downloading
> them - they wouldn't prevent you from getting the real data.
I must ask, is terrorism such as this common? I have a feeling this
is all very theoretical.
--
Kjetil T. ==. ,,==. ,,==. ,,==. ,,==. ,,==
::://:::://:::://:::://:::://::::
=='' `=='' `=='' `=='' `=='' `== http://folding.stanford.edu
Re: [FNTP] 'in-completeness'
Author: JP Velders
Date: Fri, 04 Oct 2002 16:16
Date: Fri, 04 Oct 2002 16:16
43 lines
3290 bytes
3290 bytes
In article <1r7kgzeh6q.fsf@atta.ifi.uio.no>, Kjetil Torgrim Homme wrote: > [JP Velders]: >> [ ... ] >> Because it's too much all at once. There is a reason why we have >> RFC's for a lot of protocols, which *together* form the >> Internet. We don't need another "this will fix everything" >> protocol, that will only delay adoptation and implementation. > a modest Message-ID convention isn't a big leap. Nope it isn't ;) Other ideas voiced here used other techniques and/or headers, which are more "invasive", though not entirely without use and/or cause... > [ .. ] >> Sort of, right now you rely on being as wel connected to everyone >> you can find and that *they* are also as well connected. It's only >> as strong as the weakest link, which can be "obscured" from your >> view. > no. Usenet will route around the weakest link. I don't entirely agree with that. Over here in Europe I see that there are only a few provider who have (several) peers "across the pond", all the other ISP's mostly peer with those sites. So eventually articles will spread. But still there *is* a bottleneck... "Transit IP" traffic costs, significantly... > [ ... ] > I want to do something with the servers. you want to do something > with the clients. let's keep the issues separate. I don't know what > error correction codes PAR is using, and improvements in PAR is really > orthogonal to the transit mechanisms of NNTP. OK :) Though if both work together there will be much more benefit, then when they're developed seperately. Kind regards, JP Velders
Re: [FNTP] 'in-completeness'
Author: Russ Allbery
Date: Fri, 04 Oct 2002 16:37
Date: Fri, 04 Oct 2002 16:37
61 lines
4071 bytes
4071 bytes
Juergen Helbing <archiver@i3w.com> writes:
> btw.: I'm pretty sure that when it comes down to "files"
> (not to volume) then more binary content on Usenet is "legal"
> than on P2P.
I am too. But that's not the issue, nor does that help.
> There are even binary newsgrops where binary posts are done
> with the permisison of the intellectual owners. And there are
> tons of real free stuff.......
And I would happily carry all of those groups, disk space permitting,
except that it's essentially impossible to select them out of the morass
of groups for which that is not true, particularly since people post
illegal content to pretty much any group they can get away with it in.
(vmsnet.uucp, anyone?)
I'll carry pretty much any *moderated* binary group that comes to my
attention if the moderation policy is such that I don't have to worry
about the content. Disk space permitting, I'll carry binary groups that
have a low likelihood of being a problem. And I'm continuing to carry the
binary groups that we've historically carried.
There's one exception, however: I will not carry new binary groups
devoted to the postings of multipart binaries, because I consider
multipart binaries to be inherently abusive regardless of their contents.
It's taken me a while to come to that conclusion, but it's becoming more
and more obvious that pretty much the entire point of a multipart binary
is to bypass article size limitations in news servers. People posting
large binaries should really post them as single articles; then the people
who want to absorb that size of post can carry them, people don't can
easily request they be filtered by having their upstream put a limit on
article size (something already widely done), and there will no longer be
any problems with partial completion.
I doubt we can ever get there from here, but I can at least take my own
little personal stand for whatever it's worth.
> It is - btw - nice to know that the "freespeech" and the "academic
> curiosity" does no longer cover binaries. (Our universities are already
> very busy with the development of web-filters :-)
This paragraph is a bunch of complete bullshit, particularly given
everything I said in the last message.
> And it is nice to know that the "academic world" is no longer involved
> into the further development of the Binary Usenet. The only people who
> would have time and ressources have abandoned it.
While I find it amusing that you're attributing such vast powers to me,
and I'm sorely tempted to put "dictator of the academic world" on my
resume, you may want to talk to, oh, maybe two or (*gasp*) three different
people before making sweeping conclusions about thousands of sites.
--
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: [FNTP] 'in-completeness'
Author: Curt Welch
Date: Fri, 04 Oct 2002 17:19
Date: Fri, 04 Oct 2002 17:19
160 lines
10244 bytes
10244 bytes
claus-usenet-20021004@faerber.muc.de (Claus_F�rber) wrote: > Curt Welch <curt@kcwc.com> schrieb/wrote: > > So the type of defense you talk about isn't going to help. They can > > post their clone after they have seen your "answer" in the next post. > > Another answer to this problem is, of course, to post "index" posts, > which carry information about all parts of the file, including a SHA1 > hash. > If you trust this index, you automatically know whether a part fits in. It seems to me that some form of "index" is a key to this problem. I've talked in other articles about the idea of including these indexes with each data post. There's no way to trust an index post any more than you trust one of the data posts, but I think this idea might lead to a workable solution. What we trust, by definition, is the full-file hash which is what we are using as the "global name" of the file. What the download tool is trying to do is figure out which segments are part of the "real" file, and which are fakes. The algorithrm which we know works to do this is to simply reconstrct the entire file, calculate it's hash, and see if it matches. If it doesn't, you know you have bad data somewhere. But you can't figure out which files are bad untill you get a full set of valid data. And if you have a large post, say 5000 parts of 500KB each, this becomes a real problem. If you have already downlaoded a complete set of files (and lets assume that you have colleced posts from 20 different posters over a period of a month), you have no way of knowing which of your 5000 parts might be the fakes. This means the download tool will be forced to download _every_ segment of every repost it sees on Usenet for that file to check that it matches the ones it already has. It can throw the extra copy away if it matches what it currently has, but if it doesn't match (the data is different), it's has to keep that alternate segment and play the mix-and-match game with all the alternate segments it finds to try and find which combination of these files produce the correct full-file hash. This becomes very unworkable as the size of the file increases. What's needed is a better hash system to allows us to somehow check segments of the file and discard them as fakes without playing the huge mix and match game with Gigabytes of data. I think something like I talked about in other posts might be getting close to making this work. You calculate a strong hash of blocks from the file (so each block has it's own hash value). You then hash all the block hash values to create the full file hash which is used to uniquly identify the file. You can then publish an Index which lists the hash values of all the blocks. And it's easy to verify that this published index is valid because when you hash all the hash values, you get the "file hash" you are looking for. And because of the stremgth of the hash function you use, it's very hard to generate a fake index. Once you have the index, then you can verify, block by block, all the articles you download. A forged article could trick you into downloading it, but it couldn't trick you into using it because the hash values of some of the blocks would be wrong. But there are still issues here. It's a pain to have to distribute these hash "index" lists. And what happens when the index is lost. If it could be included with every file segment, that would solve the problem of the "lost" index. But for very large files, these may get unworkably large (i.e. every article ends up with 100K of data, and 800K of "index".) Maybe something even more complex is needed? What we want is a way to look at any single article and have it include information that proves it is part of the file we are looking for without having to look at any other articles. And without that "proof" being unresonably large. Maybe a hierarchy of hashes of hashes would allow that? You start by dividing the entire huge file into 1K blocks, and calculate an MD5 of each block. Then you take those MD5 block hashes, (128 bits/16 bytes each), and combine them into a file of hashes. Then you repeat. You take each 1K block of hashes and calculate a new hash of that. When you get down to a single hash value, that's the hash value we use to identify the file. When you post a segment of a very large file, you post along with it the tree of hash values for the entire file. But, you leave off all the leaf nodes which are not needed to verify only the portion of data posted. A download tool could then calculate MD5 hashes of each block, and use data included in the hash tree to re-calculate the full file hash and verify that it all produces the correct file-hash. I think something like this might allow for the posting of huge files (with thousands of parts) while keeping the amount of extra hash data that has to be posted with each segment down to something very reasonable. Let me try to calculate.... At each level of this hash tree, you are reducing 1K of data down to 16 bytes. So that's a reduction of 2^10 to 2^4 or 6 binary orders of magnatude. Or, each 64 hashes get hashed down to 1 hash in this tree. If you have a 128GB file, then it's got 2^37 bytes. At the first level that's transformed in to 2^31 bytes of hash data, which goes to 2^25 at the next level, and 2^19 at the next, and 2^13 at the next, and 2^7 at the next, which is 128 bytes (or 8 MD5 hashes), which then hash down to the top file-hash. If you post segments which each hold 128K of the orginal file (2^17 bytes), that means you need 2^20 parts, or 1 million parts. (ouch). So how much hash data needs to be included with each segment if we do it that way... Going from the top of this hash tree down, you need the 7 of the top 8 MD5 hashes, and then 63 of the 64 hashes at each level going down towards the block of data included in the article. But how many levels is that? The first block hash covers 2^10 bytes (1K). The next level hash is 64 times that, so it's 2^16 bytes. We are posting 2^17 in our file, so the data spans two hashes at the second level. The single full-file hash at the top of the tree is level 5, and the data spans two hash values at level 2, so we need 7 hash values at level, 63 at level 4, 63 at level 3, and 62 (we can calcuate the other 2 from the data in the post), and level 2. So that's 7+63+63+62 or 195 MD5 hashes which would need to be included with every post to prove that the data in the post really does hash to the file hash. And if the data is simply hex encoded, that. 195*32 bytes per hash, or 6K of extra hash data which has to be posted with every 128KB segment, which is about 6% extra overhead. (that also assumes all my calculations above are correct of course). And this is for a huge 1 million part post. The smaller the file, the less overhead you have to deal with. And if each article was 2 or 4 times larger, the total overhead would be 3% or 1.5%. That seems workable. and you could cut that in half again if you used a binary format to send the hash values instead of hex. For a 16MB file for example posted in 32 512KB parts, you would only need 3 + 60 hash values with each post, or 63 MD5 hashes or 65*16 or 1K of hash data binary encoded added to each 512KB post. This might be workable (but it's complex enough that not many people will understand it). This might make it difficult to get the idea supported in a wide range of tools. But, if taking hash values of hash values does not create some type of weakness in the hash, then his means than any given article can be examined alone and determine if the segment of data really did come from a file which matches the file-hash in the message-id without the need to look at any other data from the file. Forgeries could be thrown out at POST time on servers if a standard like this became the norm. For posting programs, there would be a lot of pre-calculation needed to build all this hash data before the first segment was posted, and it might require a lot of storage as well to store a lot of this very large hash tree. Or maybe most of it could be built on the fly after a single pass over the file, I'd have to think more about that. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
Author: J.B. Moreno
Date: Fri, 04 Oct 2002 17:28
Date: Fri, 04 Oct 2002 17:28
53 lines
3753 bytes
3753 bytes
In article <45127.2a2202@archiver.winews.net>, Juergen Helbing <archiver@i3w.com> wrote: > curt@kcwc.com (Curt Welch) wrote: -snip- > >I felt like we already gave up "fixing" the incomplete problem in > >this thread and had moved on to "learning to live with it". > > I dont feel this. I think it depends upon WHICH incompleteness problem you want to fix. There are two of them: (1) 100,000 articles in a group, 100 files, none complete (2) 80,000 articles in a group, 85 files, 75 complete What "fixing" actually means is turning (1) into (2). Because the only way avoid both is to throw more money at it than your peers do, which isn't possible for the average server (if everyone up there bandwidth/storage then users will increase /their/ usage rate to take it up). Turning (1) into (2) requires that the server have an easy method of associating articles with files, so that instead of dropping articles, it drops files. There's also the question of whether you actually want to fix the problem at all -- because the other way to attack the problem is to have clients that fetch from multiple servers. Fortunately, or perhaps unfortunately, the best way to attack the problem on the server end is also the best way to do so on the client end, to wit: stuff some identifying data into the message-id. The good side of that is it allows both to be implemented, the bad side is that if you conclude that servers will try to fix the incompleteness problem if they have some way of associating articles with files and think that's bad, then you can't add it just for the clients. Personally I don't think it's a problem if the servers try to fix it, and see a great potential in the ability to have "small" binary servers where they have a little of everything, but not a lot of anything. (Which reminds me, I'd include a hash of the groups as a field in the binary message-id, allowing the server to set a fixed amount of complete "files" on a per group or hierarchy basis, as well as automatically rejecting crossposts or articles for groups that it doesn't carry. This also has implications for the problem of "blocking" via fake messages). -- J.B. Moreno
Re: [FNTP] 'in-completeness'
Author: Curt Welch
Date: Fri, 04 Oct 2002 17:29
Date: Fri, 04 Oct 2002 17:29
38 lines
3014 bytes
3014 bytes
claus-usenet-20021004@faerber.muc.de (Claus_F�rber) wrote: > Juergen Helbing <archiver@i3w.com> schrieb/wrote: > > You are basically right. But this would be the same pain as before. > > You need PAR files for every "set" - it does not matter if you > > are splitting up into RAR files, .001 .002 files or any other > > "structure". You still need a level of identification of these > > "sub-parts" - and if you have all PAR files for "sub-1" but none > > for "sub-2" then those from "sub-1" do not help. > > If the posting order is half-intelligent, it's very unlikely that you > will lose all par files for a certain "subset". > Furhter, the sets of par files can have intersecting subsets. > > > Having 20 par files for 3795 parts - this would be a _real_ deal. > > But you're right. Being able to have par files over all parts will > greatly reduce the number of par files needed. Well, you don't really want a single par file to span over 4000 parts because that means that you have to read, and do math, over all 3999 parts in order to reconstruct the single missing part. What you have to do is allow the par technology to span byte ranges that are able to span multiple files. So a file might be posted in 4000 parts, but logically, the par technology breaks it in 256 parts. This is easy to do if it's all integrated with the posting software instead of how it's down now as a two step processes where the file is first split into large RAR files, and then each of those is posted as a mutiplart file on Usenet with matching PAR files. > If you have 16 subsets with five par files for each (should be enough), > you already have 60 par files. > > Claus -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [FNTP] 'in-completeness'
Author: J.B. Moreno
Date: Fri, 04 Oct 2002 18:14
Date: Fri, 04 Oct 2002 18:14
40 lines
2922 bytes
2922 bytes
In article <36268.u92208@archiver.winews.net>, Juergen Helbing <archiver@i3w.com> wrote: > In the past most people agreed to the statement that the end of > the binary newsgroups would be also the end of the text newsgroups. If so, most people are fools -- the bandwidth available to users today means that text groups could survive via user bandwidth alone. I.e. anyone with a high speed connection and the interest could easily host a few dozen text groups for a couple of hundred people. Assume that the groups are all "heavy" traffic groups with an average of 300 articles a day, average text article size is 2k, that's 600k articles per day, a dozen groups turns that into 7.2m, and a hundred users downloading everything turns that into 720m -- well within the bandwidth limits for people with high speed connections. At one time the FIDO network was a viable alternative to usenet -- and that was with considerably slower connections and considerably fewer people connecting. If binaries died, something like it would make a come back. Not to mention that without the binary groups, the local ISPs could go back to hosting them without trouble -- set it up, let it run, and ignore it (10,000 x 600 is 6gig a day, a single 80 gig drive gives a week retention, you could probably do it on a spare machine off of a secretaries desk). And the possibility of text only commercial services is not unreasonable, less people interested in it, but the cost are significantly less on both sides. (Plus universities where they started off). All of which adds up to one thing: text groups aren't going to die off. -- J.B. Moreno
Re: [FNTP] 'in-completeness'
Author: J.B. Moreno
Date: Fri, 04 Oct 2002 18:38
Date: Fri, 04 Oct 2002 18:38
19 lines
2038 bytes
2038 bytes
In article <ylzntuxir5.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> wrote: > There's one exception, however: I will not carry new binary groups > devoted to the postings of multipart binaries, because I consider > multipart binaries to be inherently abusive regardless of their contents. > It's taken me a while to come to that conclusion, but it's becoming more > and more obvious that pretty much the entire point of a multipart binary > is to bypass article size limitations in news servers. People posting > large binaries should really post them as single articles; then the people See Curts statements on this, he says that it's more efficient and cheaper for the server to deal with smaller sizes -- if so, then those size limits are there for efficiency reasons and not just "we don't want this size files on our disks". -- J.B. Moreno
Re: [FNTP] 'in-completeness'
Author: Russ Allbery
Date: Fri, 04 Oct 2002 18:59
Date: Fri, 04 Oct 2002 18:59
14 lines
1683 bytes
1683 bytes
J B Moreno <planb@newsreaders.com> writes:
> See Curts statements on this, he says that it's more efficient and
> cheaper for the server to deal with smaller sizes
I used to believe this and have changed my mind. I'm assuming that this
argument is based on a starvation analysis?
--
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: [FNTP] 'in-completeness'
Author: Klaas
Date: Fri, 04 Oct 2002 23:24
Date: Fri, 04 Oct 2002 23:24
17 lines
1913 bytes
1913 bytes
After careful consideration, Russ Allbery muttered: > J B Moreno <planb@newsreaders.com> writes: > >> See Curts statements on this, he says that it's more efficient and >> cheaper for the server to deal with smaller sizes > > I used to believe this and have changed my mind. I'm assuming that this > argument is based on a starvation analysis? > What about the fact that usenet articles are not resumable? Losing 500kB when downloading or peering is a lot better than starting from scratch for a 500mB post. It'd be nice if a byte offset could be specified. -Mike
Re: [FNTP] 'in-completeness'
Author: Klaas
Date: Fri, 04 Oct 2002 23:28
Date: Fri, 04 Oct 2002 23:28
34 lines
2787 bytes
2787 bytes
After careful consideration, Juergen Helbing muttered: > curt@kcwc.com (Curt Welch) wrote: >>But also think about what might happen if everyone was using download >>tools that could spot files like that. Maybe people wouldn't be so >>sloppy about reposting files which were a minior variation of other >>files? > > The contrary would happen: > People would post their _entire_ collection all the time. > Simply because they can now be sure that those who have some > pics already will not download them again. If that were true then the only reason people don't already post their "full collection" is because they think some people might already have it. I don't think that that is the case. >>But, I think using a reah hash of the file to identify the file is >>something that's "just the right way to do it". It's something that >>opens the door for other systems to take advantage of it if it becomes >>the "norm" for usenet. > > I agree - and we could even solve Russ Albery's problem: > A decentral database could be used to assign a "legal status" > - and a "where may I pay status"....... > We all know that Usenet must go this way - and it is up to _us_ > to realise it. We do?! -Mike
Re: [FNTP] 'in-completeness'
Author: Russ Allbery
Date: Fri, 04 Oct 2002 23:42
Date: Fri, 04 Oct 2002 23:42
26 lines
2338 bytes
2338 bytes
Klaas <spamhole@klaas.ca> writes:
> After careful consideration, Russ Allbery muttered:
>> J B Moreno <planb@newsreaders.com> writes:
>>> See Curts statements on this, he says that it's more efficient and
>>> cheaper for the server to deal with smaller sizes
>> I used to believe this and have changed my mind. I'm assuming that
>> this argument is based on a starvation analysis?
> What about the fact that usenet articles are not resumable? Losing
> 500kB when downloading or peering is a lot better than starting from
> scratch for a 500mB post. It'd be nice if a byte offset could be
> specified.
That's true, although that's not a server argument but rather a client
argument. But you're right, resumable downloads would be useful, and also
shouldn't be particularly hard. I'll add that to my list of NNTP
extensions to think about.
--
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: [FNTP] 'in-completeness'
Author: J.B. Moreno
Date: Fri, 04 Oct 2002 23:54
Date: Fri, 04 Oct 2002 23:54
19 lines
1941 bytes
1941 bytes
In article <yl7kgyrpwd.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> wrote: > J B Moreno <planb@newsreaders.com> writes: > > > See Curts statements on this, he says that it's more efficient and > > cheaper for the server to deal with smaller sizes > > I used to believe this and have changed my mind. I'm assuming that > this argument is based on a starvation analysis? It's based upon cache size and the number of posts that the cache can hold -- I think it's a good point considering that there are movies (illegal and otherwise) being passed around, and I doubt if anyone can afford to hold very many files in the 1 to 2 gig range in the cache. -- J.B. Moreno
Re: [FNTP] 'in-completeness'
Author: Ade Lovett
Date: Sat, 05 Oct 2002 00:00
Date: Sat, 05 Oct 2002 00:00
22 lines
1755 bytes
1755 bytes
In article <yl4rc1ixdo.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> wrote: >That's true, although that's not a server argument but rather a client >argument. But you're right, resumable downloads would be useful, and also >shouldn't be particularly hard. I'll add that to my list of NNTP >extensions to think about. Also trivial to implement (at least for NNRP, where it's just the addition of an optional <offset> to ARTICLE <id>|<num> [<offset>], and what to do if the offset is silly (a new error code? Dunno, thinking on the fly...)). This could actually be one of the first real uses for LIST EXTENSIONS. Restartable downloads. Hrm.. I wonder if my team will let me anywhere near /home/cvs this time.. -aDe -- Ade Lovett, Austin, TX. Director, Supernews[tm] mailto:ade@supernews.net http://www.supernews.net/
Re: [FNTP] 'in-completeness'
Author: Russ Allbery
Date: Sat, 05 Oct 2002 00:11
Date: Sat, 05 Oct 2002 00:11
69 lines
5057 bytes
5057 bytes
J B Moreno <planb@newsreaders.com> writes:
> It's based upon cache size and the number of posts that the cache can
> hold -- I think it's a good point considering that there are movies
> (illegal and otherwise) being passed around, and I doubt if anyone can
> afford to hold very many files in the 1 to 2 gig range in the cache.
I doubt there are many servers that are successfully accepting all of the
over 1,000 parts into which those files are currently being broken to get
around the default file size limits either, so you're actually doing the
world a favor to have those servers not even try to accept such articles
(and then spark an endless sequences of repost requests).
My argument is based on the following:
* Multipart posts inherently increase the total traffic posted to Usenet
for equivalent amounts of content, since they result in things like
parity posts and multiple reposts because people don't get all of the
component posts. For an equivalent amount of work you get more actual
content in a world without multipart posts.
* Sites that don't want to carry binaries over a given size (maybe they
feel like large binaries would then starve out small binaries that have
more user interest per byte) are faced with an extremely difficult
filtering task.
* The performance analyses favoring multiparts are based on article write
and read times on the server. Multipart binaries, due to caching
effects, may be faster to propagate to other servers. However, they
are *not* faster to store, and they're not going to be appreciably
faster to feed out to clients because the client accesses will be all
over the map, not fit into a neatly cachable read pattern. Not to
mention that any client reading the resulting binary is going to read
the entire binary, not just one part, and therefore will end up doing
a sequential read of all of that data anyway. Propagation to other
servers is not the important function to optimize, and I don't believe
the caching effects are sufficient to make a noticable difference to
the overall throughput of the server (although I don't have numbers on
that).
* Storing multiple articles involves more overhead, sometimes
considerably more overhead, than storing the equivalent amount of data
in a single article. Each article requires a history database commit,
an overview database commit, and an active file commit (for article
numbering, possibly part of the overview commit), and each additional
article increases the size of the overview data for that group (not to
mention the additional overhead of the article headers and the NNTP
protocol commands, although that's much smaller and not as much of a
factor).
* Transit servers in a world without multipart posts face a potential
starvation problem, both in accepting posts and in writing posts to
disk when single-threaded, since a binary can take considerably more
time to accept than a text post. However, this affects *latency*, not
*throughput*; it means that you may take longer to accept and propagate
a particular post, but you still accept the same total quantity of
bytes at the end of the day. Optimizing for latency over throughput
matters for Freenix and not much else. And most of this effect can be
ameliorated with split feeds by article size, particularly when feeding
multithreaded servers.
I'm willing to be convinced that I'm wrong. Let me know what I'm missing.
--
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: [FNTP] 'in-completeness'
Author: Russ Allbery
Date: Sat, 05 Oct 2002 00:13
Date: Sat, 05 Oct 2002 00:13
27 lines
2239 bytes
2239 bytes
Ade Lovett <ade@supernews.net> writes:
> Also trivial to implement (at least for NNRP, where it's just the
> addition of an optional <offset> to ARTICLE <id>|<num> [<offset>], and
> what to do if the offset is silly (a new error code? Dunno, thinking on
> the fly...)).
Yup, extremely simple. And hm, that's a good question. A new error code
makes the most sense to me.
> This could actually be one of the first real uses for LIST EXTENSIONS.
> Restartable downloads.
I have a bunch of really good uses for LIST EXTENSIONS that are just
waiting for the NNTP draft to finish and for me to find the time to write
them up. I'm at least going to start by documenting all the extensions
that INN *already* accepts and advertising them. :)
Maybe someone will then rediscover XBATCH and think it's a cool idea,
since someone put a lot of effort into it originally.
--
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: [FNTP] 'in-completeness'
Author: Kjetil Torgrim Homme
Date: Sat, 05 Oct 2002 00:41
Date: Sat, 05 Oct 2002 00:41
39 lines
3213 bytes
3213 bytes
[JP Velders]:
>
> In article <1r7kgzeh6q.fsf@atta.ifi.uio.no>, Kjetil Torgrim Homme wrote:
> > no. Usenet will route around the weakest link.
>
> I don't entirely agree with that. Over here in Europe
I'm in Europe ;-)
> I see that there are only a few provider who have (several) peers
> "across the pond", all the other ISP's mostly peer with those
> sites.
last I checked, our transit server is one or two hops away from
everyone on Freenix Top20. we don't try to get a complete binary
feed, though, so we see only 200 GB/day inbound.
> So eventually articles will spread.
_all_ the links have to be weak, right? if there is one good link,
traffic will flow.
for sure, many of the smaller ISPs have very few peers. some of them
can't even get the posts of their customers out to the Usenet at large
reliably. there is very little we can do to help that, really.
> But still there *is* a bottleneck... "Transit IP" traffic costs,
> significantly...
for the most part the extra traffic from adding peers is miniscule.
it is important that your peers are about even with you, though. you
don't want to add peers which get significantly more data from you
than vice versa. in theory, it should be a zero sum game.
--
Kjetil T. ==. ,,==. ,,==. ,,==. ,,==. ,,==
::://:::://:::://:::://:::://::::
=='' `=='' `=='' `=='' `=='' `== http://folding.stanford.edu
Re: [FNTP] 'in-completeness'
Author: Kjetil Torgrim Homme
Date: Sat, 05 Oct 2002 01:13
Date: Sat, 05 Oct 2002 01:13
51 lines
3158 bytes
3158 bytes
[Ade Lovett]:
>
> Also trivial to implement (at least for NNRP, where it's just the
> addition of an optional <offset> to ARTICLE <id>|<num> [<offset>],
> and what to do if the offset is silly (a new error code? Dunno,
> thinking on the fly...)).
>
> This could actually be one of the first real uses for LIST
> EXTENSIONS. Restartable downloads.
we also need a mechanism for signalling an aborted transfer, at least
if we want to implement cut-through transit, rather than
store-and-forward. TAKETHIS allows the recipient to say "239 article
transferred ok", but there is no way for the sender to say "sorry, it
turns out the article was incomplete". a simple method is
S: TAKETHIS <foo@bar>
S: data
S: data
S: .439
if I read the RFC correctly, it is not currently possible to have a
line starting with period followed by anything other than another
period, or CR LF, which would indicate end of transmission. extending
that to include an optional status code seems natural to me.
while we're at it, an ABORT command would be nice, mostly for readers,
but also for transit. consider:
S: TAKETHIS <zot@gazonk>
S: Newsgroups: alt.binaries.some.uncarried.group
S: Subject: Angel E02S03
S: ...
R: ABORT TAKETHIS <zot@gazonk>
S: ...
S: .439
the ABORT would be handled best effort by the server, as a guideline,
it should check for new input once a second. (remember the context
here is huge articles.)
this might be worthwhile to save bandwidth when you don't want to
hassle your peer with updating the group list all the time. you can
of course do all kinds of filtering, you can even look at the first
line of the body (=yenc...)
--
Kjetil T. ==. ,,==. ,,==. ,,==. ,,==. ,,==
::://:::://:::://:::://:::://::::
=='' `=='' `=='' `=='' `=='' `== http://folding.stanford.edu
Re: [FNTP] 'in-completeness'
Author: Russ Allbery
Date: Sat, 05 Oct 2002 01:32
Date: Sat, 05 Oct 2002 01:32
50 lines
3190 bytes
3190 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:
> we also need a mechanism for signalling an aborted transfer, at least
> if we want to implement cut-through transit, rather than
> store-and-forward.
I don't understand what you mean, or what cut-through transit is. I
certainly wasn't proposing any sort of mechanism to avoid store and
forward, though.
> TAKETHIS allows the recipient to say "239 article transferred ok", but
> there is no way for the sender to say "sorry, it turns out the article
> was incomplete".
Yes, there is. You close the connection.
It's not particularly elegant, but that should also be an uncommon case.
> while we're at it, an ABORT command would be nice, mostly for readers,
> but also for transit.
I've never understood why people object to just closing the connection for
readers, given how infrequently aborts happen.
> this might be worthwhile to save bandwidth when you don't want to
> hassle your peer with updating the group list all the time.
That's the wrong protocol level to solve that problem, I think. Inline
NNTP commands sound really, really ugly; let's not reinvent a Frankenstein
merger of rnews batches and FTP. :)
One way to solve that problem, while we're playing with the NNTP protocol,
would be to add a CHECK-style command that includes the headers.
Obviously you'd want to add some sort of logic to the sending server to
estimate the probability that the article would be rejected and the
relative size of the article to decide whether to use that command or the
regular command.
> you can of course do all kinds of filtering, you can even look at the
> first line of the body (=yenc...)
Of course, if yEnc were done right, you could have made that decision
based on the headers....
--
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.
Page 4 of 7 • 313 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