Skip to content
This repository has been archived by the owner. It is now read-only.

balanced distribution/load for a disseminated file ? #189

Closed
ivar opened this issue Oct 23, 2016 · 3 comments
Closed

balanced distribution/load for a disseminated file ? #189

ivar opened this issue Oct 23, 2016 · 3 comments
Labels

Comments

@ivar
Copy link

ivar commented Oct 23, 2016

Say I publish a file to ipfs and three other nodes grab a copy.
I understand that the copies the others have downloaded are accessible via the file hash plus their node hash, but are future requests for said file distributed between all clients that have a copy of the file (so each node with the file has a 25% chance of receive the next request) ? Or is like bittorrent where file chunks can be fetched from various peers and reassembled when complete ?

@leroycep
Copy link

leroycep commented Oct 31, 2016

First paragraph of section 3.4 the IPFS whitepaper;

In IPFS, data distribution happens by exchanging blocks
with peers using a BitTorrent inspired protocol: BitSwap.
Like BitTorrent, BitSwap peers are looking to acquire a set
of blocks (
want_list
), and have another set of blocks to of-
fer in exchange (
have_list
). Unlike BitTorrent, BitSwap
is not limited to the blocks in one torrent. BitSwap oper-
ates as a persistent marketplace where node can acquire the
blocks they need, regardless of what les those blocks are
part of. The blocks could come from completely unrelated
les in the lesystem. Nodes come together to barter in the
marketplace.

So yes. From my understanding, IPFS uses a BitTorrent-like protocol to download file chunks and reassemble them.

@Kubuxu
Copy link

Kubuxu commented Oct 31, 2016

Yes, files are chunked into 256KiB chunks, then you can fetch each chunk from different place.

@madavieb
Copy link

madavieb commented May 23, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants