Skip to content
/ swift Public

the multiparty transport protocol (aka "TCP with swarming" or "BitTorrent at the transport layer")

License

Notifications You must be signed in to change notification settings

gritzko/swift

Folders and files

NameName
Last commit message
Last commit date
Jun 28, 2011
Jun 3, 2010
Mar 2, 2010
Oct 7, 2010
Mar 2, 2010
Dec 16, 2009
Mar 29, 2010
Jun 22, 2010
Jun 23, 2010
Oct 28, 2010
Jan 26, 2010
Mar 5, 2010
Jun 16, 2010
May 21, 2010
May 21, 2010
May 20, 2010
Mar 5, 2010
Mar 9, 2010
May 20, 2010
May 20, 2010
Feb 25, 2010
Feb 25, 2010
Feb 25, 2010
May 21, 2010
Jan 27, 2010
Nov 26, 2010
Oct 19, 2010
Oct 13, 2010
Jan 15, 2010
Jan 15, 2010
Jun 22, 2010
Jun 4, 2010
Nov 26, 2010

Repository files navigation

swift: the multiparty transport protocol
    (aka BitTorrent at the transport layer)
    Differently from TCP, the protocol does not use the ordered data stream
    abstraction. Effectively, it splits a file into 1KB packets and sends
    them around. The secret sauce is Merkle hash trees and binmaps.

see doc/index.html for marketing stuff, ideas and rants
    doc/swift.txt for protocol draft spec
    *.cpp for the actual code
    swift.cpp is the main exec file; may run as e.g.
    
        ./swift -t node300.das2.ewi.tudelft.nl:20000 -h \
        d1502706c46779d361a1d562a10da0a45c4c40e5 -f \
        trailer.ogg
        
    ...to retrieve video and save it to a file.

    Alternatively, you might play with the HTTP gateway, the preliminary
    version. First, run the seeder-tracker: 

        $ ./swift -f ~/Downloads/big_buck_bunny_480p_stereo.ogg -l 0.0.0.0:20000
        Root hash: 7c462ad1d980ba44ab4b819e29004eb0bf6e6d5f

    ...then you may try running the swift-HTTP gateway...

        ./swift -t localhost:20000 -g 0.0.0.0:8080 -w

    ...and finally you may point your browser at the gateway...

        http://localhost:8080/7c462ad1d980ba44ab4b819e29004eb0bf6e6d5f

    If you use an HTML5 browser (Chrome preferred), you are likely to see
    the bunny trailer at this point...

About

the multiparty transport protocol (aka "TCP with swarming" or "BitTorrent at the transport layer")

Resources

License

Stars

Watchers

Forks

Packages

No packages published