How does the limit on the download in your torrent clients?

Tell me, how does the mechanism limit the download speed in torrent clients? I.e. I set a limit of 1 Mbit/s and what happens?

How it works in the simplest case, when 1 led and 1 leech. Led can give 10 MB/s, leach wants to take only 5 Mbps.
October 3rd 19 at 02:45
1 answer
October 3rd 19 at 02:47
The transmitted blocks, the length of which is calculated... this is valid after averaging for a considerable period of time (exact features depend on the implementation of the Protocol — client), and the peak speed (at each transmission of a block) of the maximum possible. No magic.
It is not entirely clear. What exactly does the torrent client that the data he received slower? Requests less than the blocks per unit of time? - morris.Hessel66 commented on October 3rd 19 at 02:50
Well, for example to reduce the window size in the transmission process. Regular mechanisms of TCP. Some uTP, UDP which seems to work, can find their own mechanisms. - chelsie_Emmerich commented on October 3rd 19 at 02:53
The client inserts a delay between received/transmitted data blocks calculated from the current speed and preset limits. - Erick commented on October 3rd 19 at 02:56

Find more questions by tags Computer networksBitTorrentP2P