From owner-freebsd-questions@FreeBSD.ORG Wed Mar 11 12:22:53 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5AA5D106566C for ; Wed, 11 Mar 2009 12:22:53 +0000 (UTC) (envelope-from brentgclarklist@gmail.com) Received: from mail.eccotours.biz (mail.ripponssafarilodge.com [196.36.10.114]) by mx1.freebsd.org (Postfix) with ESMTP id DB4A88FC18 for ; Wed, 11 Mar 2009 12:22:52 +0000 (UTC) (envelope-from brentgclarklist@gmail.com) Received: from [192.168.111.31] by mail.eccotours.biz with esmtp (Exim 4.69) (envelope-from ) id 1LhNSU-0000Z0-IZ for freebsd-questions@freebsd.org; Wed, 11 Mar 2009 14:22:50 +0200 Message-ID: <49B7AD1A.6090103@gmail.com> Date: Wed, 11 Mar 2009 14:22:50 +0200 From: Brent Clark User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <49B780AC.3010600@gmail.com> <200903110919.n2B9JDe8063258@banyan.cs.ait.ac.th> In-Reply-To: <200903110919.n2B9JDe8063258@banyan.cs.ait.ac.th> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: torrent client traffic shaping question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Mar 2009 12:22:53 -0000 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 .... 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. Brent