IP LAB EXPERIMENT –8 - ananthan05/Networking-Fundamentals-IP- GitHub Wiki

1.Downloaded the BitTorrent software.

  1. Downloaded the Torrent file.

  2. Open Wireshark in the background.

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. Keep-Alive: Empty message sent to maintain the connection.

Choke/Unchoke: Used for flow control. Peers can stop sending or resume sending to specific peers. Interested/Not Interested: Indicate whether a peer is interested in the pieces another peer has. 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. Cancel: Sent to cancel a request previously made. Port: Sent by a peer to inform about its listening port for incoming connections

d..Tracker’s status.

image

f.DHT status f.Identify other peers involved in the communication

WhatsApp Image 2023-10-07 at 20 58 18_aa03dfb1

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

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