BitTorrent File Transfer
Implementation of BitTorrent P2P protocol with parallel TCP connections for distributed file sharing.
- Role: Developer
- Timeline: March 2021
- Team: Networks Course Assignment
- Technologies: Python, Networking, TCP/IP, P2P
- Link: https://github.com/Laxman824/Projects-Assignments/tree/main/BitTorrent-technique
Problem
Understanding distributed systems requires hands-on implementation. BitTorrent's peer-to-peer architecture is an excellent case study for parallel downloads, chunk verification, and distributed coordination.
Solution
Implemented core BitTorrent concepts: torrent file parsing, tracker communication, peer discovery, parallel chunk downloading from multiple peers, SHA1 verification, and file reconstruction.
Impact
- Working P2P file transfer
- 4x faster than sequential download
- Demonstrates distributed systems concepts
- Educational resource for networking
Key features
- Torrent file (.torrent) parsing
- Tracker HTTP announce protocol
- Peer discovery and handshake
- Parallel downloads from multiple peers
- Piece selection algorithms (rarest first)
- SHA1 hash verification
- File reconstruction from chunks
- Progress tracking and resumption
Tech stack
- Language: Python 3
- Networking: socket, asyncio, aiohttp
- Crypto: hashlib (SHA1)
- Encoding: bencodepy
What K Laxman learned
- TCP socket programming in Python
- Binary protocol implementation
- Asynchronous I/O with asyncio
- Distributed systems coordination
Explore more
- Home — overview, skills and a built-in AI assistant
- Experience — roles at Think360 AI (CAMS), CAMS Mutual Funds and IIT Delhi
- Projects — GenAI, LLM, RAG and full-stack builds
- Education — IIT Delhi, M.Tech & B.Tech Computer Science
- GitHub Activity — open-source contributions
- Contact / Hire me