4 ms·
> The node sends out a want for each CID to several peers in the session in parallel, because not all peers will have all blocks. If the node starts receiving a
by hinkley 7y ago
> The node sends out a want for each CID to several peers in the session in parallel, because not all peers will have all blocks. If the node starts receiving a lot of duplicate blocks, it sends a want for each CID to fewer peers. If the node gets timeouts waiting for blocks, it sends a want for each CID to more peers.
Trying to recall how the protocol works. Doesn’t this pattern of behavior mean that a lot of machines will end up with the beginning of a file and few will have the end?
It sounds like the start of downloading would be very fast and the end would slow down while it hunts for a source
May be why this is only 20% faster than Dockerhub.
- setr 7y agoI don't see why it'd be ordered for blocks received If I remember correctly, a node with a full file will send out the blocks in parallel, so leechers should receive blocks effectively in random order The only reason for some machines having only the start versus the end would be implementation-wise, where maybe you see the want list ordered, and the seeder responds by only shipping the first n blocks it reads in the want list If the seeder responds with random ordering, you'd avoid the problem of all leechers all having the same blocks
- tylersmith 7y agoFiles are not downloaded sequentially, they're chunked into blocks which are sent in parallel.
- hinkley 7y agoEach client downloads in random order, or all clients download in the same order?