From owner-freebsd-questions@FreeBSD.ORG Wed Mar 11 12:42:29 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 EDE03106566C for ; Wed, 11 Mar 2009 12:42:29 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-ew0-f166.google.com (mail-ew0-f166.google.com [209.85.219.166]) by mx1.freebsd.org (Postfix) with ESMTP id 7A80F8FC18 for ; Wed, 11 Mar 2009 12:42:29 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: by ewy10 with SMTP id 10so1929622ewy.43 for ; Wed, 11 Mar 2009 05:42:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=D08EeVJhcnd+KN5idauziwZQQMVlqxUkH0AwIhdan5w=; b=KFA4vYZ4GYnWJYS75KCROqozA8LuKjuXm8rOMKgawAoWGTozJqDXxyt7fUkr0mQhJx M87HUPOizmWQnlwiNgLSN4oUJyx8PGrXzoD9iMtOsMXcOVCEG127aSaW8dSJBamuvepR XBLzbauNM3bVdvTCIssdy9dfxtCoJbGt2Cu7o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=Jife8JMDJNhaw0V/+/zw59PVOWPS4ON+gbAbVySBY1LZXi42I2+C6D4l//+XllcUFV UFBfV0NOLw7iAjYq2RLmzkXDIBxOdFlsEmhGXH785glBO7G2plCiu8pxDf0tctDV0+8p 7cS77gEpMTuPU/WjpmgoY7KgNjcjNfiWVjANM= Received: by 10.216.48.195 with SMTP id v45mr3381596web.123.1236775348259; Wed, 11 Mar 2009 05:42:28 -0700 (PDT) Received: from gumby.homeunix.com (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mx.google.com with ESMTPS id 7sm6480171eyb.38.2009.03.11.05.42.26 (version=SSLv3 cipher=RC4-MD5); Wed, 11 Mar 2009 05:42:27 -0700 (PDT) Date: Wed, 11 Mar 2009 12:42:23 +0000 From: RW To: freebsd-questions@freebsd.org Message-ID: <20090311124223.7f81913e@gumby.homeunix.com> In-Reply-To: <49B780AC.3010600@gmail.com> References: <49B780AC.3010600@gmail.com> X-Mailer: Claws Mail 3.7.1 (GTK+ 2.14.7; i386-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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:42:30 -0000 On Wed, 11 Mar 2009 11:13:16 +0200 Brent Clark wrote: > Hiya > > I got this question to ask, and I was hoping the TCP/IP gurus would be > able to help me understand this. > > K you know how with traffic shapping you can control only the traffic > leaving you, how it is that torrent clients say they can control the > download as well as the upload. I would think the client can only > control the upload. If the client reads from a TCP socket slower than the data is coming-in, the buffers fill-up and the sliding-window algorithm in TCP causes the sending side to slow down. A traffic shaper could efficiently regulate downloads by proxying TCP. And even though PF does some limited TCP proxying, unfortunately dummynet and altq work at the IP level.