Jump to content

Does size piece have to be uniform within a torrent?


hermanm

Recommended Posts

I ask this because, I occasionally see posts about 99.9% and have experienced the same myself when re-seeding other torrents. If the size piece can change within a torrent, it seems the boundary pieces could have their own size piece. I was thinking file hashing was a good idea but it wouldn't scale very well if you had a single 50GB file you wanted to hash! But if pieces could be re-sized on current boundary pieces, it seems that would avoid the 99.9% issues...

Link to comment
Share on other sites

Additionally 99.9% issues are unrelated to anything having to do with piecesize.

BitComet decided to implement this very idea. It adds up to n-1 bytes PER FILE where n is the piecesize... needless to say with alot of files more overhead is required. ADDED to the fact one NEEDS to download these files to be a seeder on the torrent. Supposedly BitComet users don't... and if this is the case it's an especially rude behaviour.

This is covered @ http://forum.utorrent.com/viewtopic.php?id=36808

Link to comment
Share on other sites

> All pieces except the final piece are uniform in size.

Right. So, Bittorrent can have pieces that are smaller in size so file boundaries are not crossed?

> Additionally 99.9% issues are unrelated to anything having to do with piecesize.

I would disagree with that statement. When seeding someone else's torrent, boundary piece hash will fail because the other torrent's piece hash do not completely match up with mine. There may be other reasons 99.9% issues occur, like you say, but I'm talking specifically about piece hash failures.

Link to comment
Share on other sites

"Bittorrent can have pieces that are smaller in size so file boundaries are not crossed?"

My understanding of the BitTorrent protocol is that only the LAST piece of a torrent can be any size other than maximum.

BitComet's 0-padding to fill piece gaps between files is a kludge at best...and hostile at worst, as typically only the latest BitComet clients can parse such torrents correctly.

Link to comment
Share on other sites

That the pieces are all the same size is specified in the protocol... that's what that "piece length" key in the info dictionary of the torrent is for. Trying to come up with something akin to BitComet's implementation of "pad files to piece boundaries" would only discourage users from using whatever client it's implemented in... at least for torrenting.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...