From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by huchra.bufferbloat.net (Postfix) with ESMTPS id 73FC721F2AA for ; Fri, 21 Nov 2014 03:51:50 -0800 (PST) Received: from u-100-d033.biologie.uni-tuebingen.de ([134.2.100.33]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MRGTX-1XNIVw1bKB-00UYF7; Fri, 21 Nov 2014 12:51:47 +0100 Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) From: Sebastian Moeller In-Reply-To: Date: Fri, 21 Nov 2014 12:51:45 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <1467AE3E-F8D9-4937-8358-DEE9988CC879@gmx.de> References: To: Dane Medic X-Mailer: Apple Mail (2.1878.6) X-Provags-ID: V03:K0:E0ZYPX1zxv+iWPh+tPyG4b7kQ91qQWr7ob1OAcKqPGduiccDkQg 7W/SyHVcbnTLVqxtJ4p7o6h4DkGtI8p3H4YCm6x5nkJ0oiFw+3Rl5vZGknIIWe3fIYWhk5g 7XV+RfffmIY9VaCP2eOznneM+VpEUnphH1sxvEpYDfXuKIl02CHqbRkPVo8x3LVNfLv1q7m NZFj5KvpW8KFYxnQ25Y0g== X-UI-Out-Filterresults: notjunk:1; Cc: "cerowrt-devel@lists.bufferbloat.net" Subject: Re: [Cerowrt-devel] Torrents are too fast X-BeenThere: cerowrt-devel@lists.bufferbloat.net X-Mailman-Version: 2.1.13 Precedence: list List-Id: Development issues regarding the cerowrt test router project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Nov 2014 11:52:19 -0000 HI Dane hi Dave, On Nov 20, 2014, at 17:25 , Dane Medic wrote: > Thank you for advice Dave. I'm just looking around how to set-up layer = 7 inspection, I've also found this -> = http://luci.subsignal.org/trac/browser/luci/trunk/contrib/package/freifunk= -p2pblock?rev=3D > It would be very nice if someone could "merge" this with simple.qos, I = don't really know how, yet. See the last comment in https://dev.openwrt.org/ticket/8590 it seems = that L7 filters are on the way out in openwrt. If I understand correctly = L7 does regular expression search of each packet (which are documented = as not perfect and potentially slow), I would not be amazed if that = would be really costly on your wndr. You might be =93saved=94 though by = your slow link ;) . Also L& filters doe not really work with encrypted = packets, so a malicious (actually mischievous would be enough) torrent = client could mask its packets out of the filter match by encryption. >=20 > 2014-11-20 15:40 GMT+01:00 Dave Taht : > I would be surprised if you could tolerate a *single* big download > while watching a movie, at 4mbit/512k, much less torrents, which are 6 > or more. >=20 > That said, most torrent clients are configurable in several ways. >=20 > 1) You can limit the number of download flows to something far less > than 6. Try 1 or 2. >=20 > 2) You can typically rate limit them in the client to a lower rate > during the day and a higher rate at night. >=20 > 3) You can tell them to mark the torrents as background (QoS marking > CS1), but that only helps on uploads vs the simple.qos script. I think this is the best approach to take, actively configure = the torrent client to be a good citizen... >=20 > At the router itself, you can try things like identifying torrent > traffic via a consistent port number (if you have one) to toss it into > the background queue , or try qos-scripts which has a layer 7 dpi > tool. If you have just a single torrent application you are concerned = with you could capture a few incoming and outgoing packets and see = whether you can find a =93signature=94 for these packets in the data and = then create =93tc filter=94 invocations just against your specific = torrent application=85 I fear there is no automatic solution that will get all this = right, and hence the prudent way would be for SQM to use the background = queue as the default queue for everything (instead of the best effort = queue) and then selectively promote reasonable traffic to the other = queues. (But that means everything not classified will share a queue = /suffer with the torrents until special cased by a promotion rule).=20 Best Regards Sebastian >=20 >=20 >=20 >=20 > On Thu, Nov 20, 2014 at 6:13 AM, Dane Medic wrote: > > dpreed, thank you for response. I'm already using fq_codel with = cerowrt and > > I don't think it does what I want (or maybe I want too much :) > > > > So the steps I've made: > > flashed wndr3700v2 with cerowrt 3.10.50-1 then I've measured: > > > > root@cerowrt:/usr/lib/CeroWrtScripts# sh betterspeedtest.sh -p = wlan-si.net > > -t 120 > > 2014-11-20 12:18:34 Testing against netperf.bufferbloat.net (ipv4) = with 5 > > simultaneous sessions while pinging wlan-si.net (120 seconds in each > > direction) > > = ..........................................................................= ............................................... > > Download: 3.78 Mbps > > Latency: (in msec, 119 pings, 0.00% packet loss) > > Min: 13.077 > > 10pct: 251.522 > > Median: 317.851 > > Avg: 308.497 > > 90pct: 371.033 > > Max: 376.132 > > = ..........................................................................= .................................................. > > Upload: 0.48 Mbps > > Latency: (in msec, 103 pings, 0.00% packet loss) > > Min: 12.278 > > 10pct: 12.727 > > Median: 18.359 > > Avg: 23.256 > > 90pct: 33.971 > > Max: 180.303 > > > > Then I've put these commands: > > > > uci set sqm.ge00.enabled=3D1 > > uci set sqm.ge00.download=3D3200 > > uci set sqm.ge00.qdisc=3Dnfq_codel > > uci commit sqm > > reboot > > > > And another measure: > > > > root@cerowrt:/usr/lib/CeroWrtScripts# sh betterspeedtest.sh -p = wlan-si.net > > -t 120 > > 2014-11-20 12:49:05 Testing against netperf.bufferbloat.net (ipv4) = with 5 > > simultaneous sessions while pinging wlan-si.net (120 seconds in each > > direction) > > = ..........................................................................= ............................................... > > Download: 2.74 Mbps > > Latency: (in msec, 121 pings, 0.00% packet loss) > > Min: 12.210 > > 10pct: 13.002 > > Median: 15.077 > > Avg: 15.095 > > 90pct: 16.968 > > Max: 18.599 > > = ..........................................................................= ................................................... > > Upload: 0.49 Mbps > > Latency: (in msec, 101 pings, 0.00% packet loss) > > Min: 12.255 > > 10pct: 12.684 > > Median: 16.679 > > Avg: 23.100 > > 90pct: 34.019 > > Max: 170.173 > > > > The tests doesn't look bad, but the problem is I watch a video clip = on > > youtube and my sister starts torrent client, I can't watch anymore. > > > > Cheers > > > > _______________________________________________ > > Cerowrt-devel mailing list > > Cerowrt-devel@lists.bufferbloat.net > > https://lists.bufferbloat.net/listinfo/cerowrt-devel > > >=20 >=20 >=20 > -- > Dave T=E4ht >=20 > thttp://www.bufferbloat.net/projects/bloat/wiki/Upcoming_Talks >=20 > _______________________________________________ > Cerowrt-devel mailing list > Cerowrt-devel@lists.bufferbloat.net > https://lists.bufferbloat.net/listinfo/cerowrt-devel