Skip to content

Implemented a P2P file-sharing system like Bit-Torrent, using TCP/IP protocols, handshaking and bit-fields to keep track of the different pieces in the peers. Incorporated special message types for choking and un-choking to increase download speeds by up to 50%.

Notifications You must be signed in to change notification settings

bharathaiys/BitTorrent-Simulator

Repository files navigation

BitTorrent-Simulator

In this project, we write a P2P file sharing software similar to BitTorrent using Java

TEAM MEMBERS:

BHARATH SHANKAR, UFID: 9841-4098
SHIRIDI SAI PRASAD, UFID: 8073-3499
ROHIT KARUMURI, UFID: 9097-1158

LINK FOR VIDEO:

https://uflorida-my.sharepoint.com/:v:/g/personal/bharathshankar_ufl_edu/EZUWtLq8w_dHk4IXjbLpYMcBhXbkSz3tRaP0cgZQkINjlg?e=KPT8wN

HOW TO RUN:

  1. Navigate to the main folder src that contains the files

  2. Compile the code with the following command on the terminal:

    javac *.java
    
  3. Ensure that the PeerInfo.cfg and Common.cfg files are added.

  4. Navigate to the folder main folder src in 9 terminals

  5. Run the following command in quick succession in the 9 terminals

     java peerProcess <peerID>
    
     Here <peerID> should be from 1001 to 1009 in the 9 terminals
    

Peer 1001 and 1006 will initially have the file

WHAT IS RUNNING:

All parts of the program given in the description have been implemented.

About

Implemented a P2P file-sharing system like Bit-Torrent, using TCP/IP protocols, handshaking and bit-fields to keep track of the different pieces in the peers. Incorporated special message types for choking and un-choking to increase download speeds by up to 50%.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published