IP Lab‐Bit‐Torrent Assignment - Nifalnasar/Fundamentals-of-Network GitHub Wiki

1.Download the BitTorrent software from the given link https://www.bittorrent.com/.

image

2.Then download any one Torrent file and then save it onyour device.

image

3.Open Wireshark in the background by choosing the appropriate interface.

image

4.Then open your torrent file and start the download at least 20%. Stop the capture and document the answers tothe following questions:

a.Give a detailed study about the working of BitTorrent in your downloading scenario. b.Working of BitTorrent.

The user's BitTorrent client contacts the tracker server and registers itself as a peer wanting to download/upload the file. The tracker server responds with a list of peers and seeds who are currently sharing the file or downloading it. The downloading peer selects a few peers from the list and establishes connections with them. The downloading peer requests specific pieces of the file from the connected peers. Peers respond by sending the requested pieces to the downloading peer. While downloading, the peer also starts uploading the pieces it has to other peers.

c.Protocol LevelAnalysis

Handshake: Initiating communication, peers exchange handshake messages containing protocol identifiers, info_hash, and peer_id. Choke/Unchoke: Used for flow control. Peers can stop sending or resume sending to specific peers. Have: Sent when a peer has downloaded a specific piece. Bitfield: Indicates which pieces a peer has. Request: Sent to request a specific piece from another peer. Piece: Contains a piece of the file requested by another peer. Port: Sent by a peer to inform about its listening port for incoming connections.

d.Tracker’s status.

image

e.DHT status.

image

f.Identify other peers involved in the communication.

image

g.Try to identify the name of the file downloaded.

image

5.Try to export the 20% of data you have captured as traffic in Wireshark while downloading filesin Torrent.

image

6.Afterthe Download completes and when it starts seeding, open the Wireshark and analyze the information being transferred in that traffic. Document the difference in Network traffic.

image

Downloading involves more varied requests for different pieces of the file. Seeding - Seeders mainly upload pieces of the file to other peers, and the uploading traffic is usually more consistent