Peer-to-peer (P2P) file sharing has evolved significantly since its early adoption in platforms like Napster and Gnutella, offering a decentralized alternative to traditional client-server architectures. Despite their scalability and bandwidth efficiency, P2P systems often face challenges such as network congestion, peer misbehavior, and lack of fairness in data distribution. To address these issues, this research presents a python-based BitTorrent-like file sharing system that implements dynamic peer selection through choking and optimistic unchoking mechanisms, secure handshake protocols, and multithreaded socket communication for efficient and resilient data exchange. The system ensures secure remote deployment using SSH and incorporates a detailed logging mechanism to monitor peer interactions. Experimental results demonstrate improved download speeds, balanced bandwidth allocation, and enhanced fault tolerance. The findings validate the effectiveness of the proposed Framework as a robust and scalable solution for decentralized file sharing.
Alok AgrawalKhushi OswalKranti KharatLalitkumar Premchandra Patil
Jeng-Long ChiangYin-Yeh TsengWen-Tsuen Chen
Ali JafariMohammad Sadegh TalebiAhmad KhonsariGhodrat Sepidnam