To share a file or group of files, a peer first creates a .torrent file, a small file that contains metadata about the files to be shared, and Information about the tracker, the computer that coordinates the file distribution. Peers first obtain a .torrent file, and then connect to the specified tracker, which tells them from which other peers to download the pieces of the file.When transferring data over TCP, always have several requests pending at once, to avoid a delay between pieces being sent. At any point in time, some number, typically 5, are requested simultaneously.Every time a piece or a sub-piece arrives, a new request is sent out.Initially, a peer has nothing to tradeImportant to get a complete piece ASA.Select a random piece of the file and download it.
Powered by Blogger.