Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Mar 2009 14:22:50 +0200
From:      Brent Clark <brentgclarklist@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: torrent client traffic shaping question
Message-ID:  <49B7AD1A.6090103@gmail.com>
In-Reply-To: <200903110919.n2B9JDe8063258@banyan.cs.ait.ac.th>
References:  <49B780AC.3010600@gmail.com> <200903110919.n2B9JDe8063258@banyan.cs.ait.ac.th>

next in thread | previous in thread | raw e-mail | index | archive | help
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
>   
Hi

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

<snip>
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.
</snip>

Brent




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49B7AD1A.6090103>