torrent client traffic shaping question

Brent Clark brentgclarklist at
Wed Mar 11 05:22:53 PDT 2009

Olivier Nicole wrote:
> Maybe torrent protocol includes something where by the client tells
> its peers to send data at a slower rate.
> Traffic shaping is done at IP or TCP level, while the up/down load
> speed is managed at the client level.
> Bests,
> Olivier

I posted the same Q on netfilters mailinglist. This was one of the 
answers I got ....

If you read from socket at fixed rate, it's TCP receive buffer is 
emptied at same rate. TCP announces free buffer in receive window field, 
so congestion window on sender side is also adjusted, thus limiting send 
speed to the rate you read from socket on receiver side.


More information about the freebsd-questions mailing list