From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Beverley Subject: Re: How can I test my tc script? Date: Tue, 08 Feb 2011 00:56:17 +0000 Message-ID: <1297126577.1742.34.camel@andybev> References: <1296699466.4606.14.camel@debian-laptop.OptimumWireless> <1296761916.7587.29.camel@andybev> <1296873898.3644.4.camel@debian-laptop.OptimumWireless> <1296886030.4568.6.camel@debian-laptop.OptimumWireless> <1296908825.1695.8.camel@andybev> <1296958497.3695.18.camel@debian-laptop.OptimumWireless> <1297008953.1613.24.camel@andybev> <1297010113.3928.12.camel@debian-laptop.OptimumWireless> <1297011729.1613.50.camel@andybev> <1297034845.3928.23.camel@debian-laptop.OptimumWireless> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=andybev.com; s=selector1; t=1297126587; bh=n9Ro0FvKyOZT6NF3axU3oR1uS8VTCB0HOvSQt xBScwg=; h=Subject:From:To:Cc:In-Reply-To:References:Content-Type: Date:Message-ID:Mime-Version:Content-Transfer-Encoding; b=jPrnUPXa GzYgb1heBzko6oamcH0nSAXs6XFHSQiVXiOoyWFfr/ePRWM377z7DWy3hNAboc4AJIB t54XvwOQHLL3jKvmZokQCvXaljQjtaaeKZKTg+CtsCJZcXUVbex9PnNUHqOzNkH+lcT 6E9uPjKhx22LYYapy7R5TXPD2FZ+c= In-Reply-To: <1297034845.3928.23.camel@debian-laptop.OptimumWireless> Sender: netfilter-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: wilson@optimumwireless.com Cc: netfilter@vger.kernel.org On Sun, 2011-02-06 at 19:27 -0400, Optimum Wireless Services wrote: > I just added those prioritising rules so, I will be removing them > immediately. Is hard to really notice how the ruleset are working since > there isn't an utility that can graph or show the actual traffic. I was > looking for tc-viewer but, can't find a link where to download it from. http://files.andybev.com/web-portal/tc-viewer tc-viewer --iface=eth0 --zero --counter=1 --unit=kbit > > So you would need separate classes for users and traffic type. They'd > > have to be parents/children of each other, but which way round and how > > you would do it I do not know. > > > > I figured I added the prio rules to the same parent rule I already had. > Thought that was the correct way to do it. So, I should create another > parent rule for ie; 3, and add the children under that to do traffic > prioritizing. Something like that, but you'll have problems sharing traffic between the different classes (classes for different IP addresses and traffic for different priorities). That's why I say that I don't know how to do it myself. > > So, try the per user stuff on its own first. Maybe try the traffic > > prioritisation on its own as well. Check the results and take it from > > there. > > > > BTW - I don't think the traffic prioritisation scripts you posted will > > have much affect anyway: they are only really looking at DNS lookups and > > SSH, which isn't going to solve your problems. > > > > I wanted to speed up dns lookups, icmps, SYN ACK flags, and ssh, for now > and later on add voip since I have an asterisk server on our network as > well. > > I will remove the prioritising script and leave the last created ruleset > and see how things behave. If you give me a few days I'll send you through my traffic prioritisation script. It won't give you the per-user limit, but I can almost guarantee that it will give everyone faster access, so you can at least use it for a comparison to see what is possible. Andy