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

Does IPFS use bittorrent or bitswap? #206

Closed
iskradelta opened this issue Nov 30, 2016 · 2 comments
Closed

Does IPFS use bittorrent or bitswap? #206

iskradelta opened this issue Nov 30, 2016 · 2 comments

Comments

@iskradelta
Copy link

iskradelta commented Nov 30, 2016

Or bitswap and bittorrent?

What is bitswap, how does it deal with free-riders/leechers in the swarm?

@jackie-scholl
Copy link

jackie-scholl commented Dec 6, 2016

IPFS uses Bitswap. It does not use Bittorrent in any way. Any references you see to Bittorrent are likely from people trying to explain the similarity, as Bitswap is similar in many ways to Bittorrent. You can learn more about Bitswap by reading this paper: https://github.com/ipfs/papers/blob/master/ipfs-cap2pfs/ipfs-p2p-file-system.pdf. Section 3.6 explains Bitswap.

Bitswap does not set one true way of dealing with leeches; instead, it allows clients to set their own Bitswap strategies. A Bitswap strategy tells a node how it should request and send blocks to/from its peers. In the paper, they discuss one possible strategy, which uses a "sigmoid scaled by a debt ratio." I don't understand the math involved, but basically it should elegantly handle free-riders and the retention of rare blocks and so on.

@flyingzumwalt
Copy link
Contributor

flyingzumwalt commented May 23, 2017

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

No branches or pull requests

3 participants