Skip to content

nerai/BitTorrentVisualization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BitTorrentVisualization

A simplified simulation of a bittorrent network

This is one of the projects I did to learn C# back in 2010. I touched it again in 2015, brushed it up a bit and put it on github for your enjoyment. For a Winforms-only application, it looks pretty decent, but do not expect high quality code behind.

example image

This application simulates a dynamic network of nodes which communicate via the bittorrent protocol. This basically means they all try to download some data, which they share among each other in pieces. This continues until everyone has all pieces, i.e. all nodes finished the download. While this is simple enough, the matter gets more complicated by new nodes entering or leaving the network, which means not all pieces may be available.

Note that while this simulation superficially does resemble an actual network, it is not technically accurate. Many aspects were dumbed down or removed entirely. I'm not going to write a physically accurate TCP/IP simulation here.

I got the idea from mg8.org/processing/bt.html, which uses processing.js to achieve a similar effect. It also says the idea originated at aphid.org/btsim, which is defunct now.

About

A simplified graphical simulation of a bittorrent network

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages