Re: How can I test my tc script?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2011-02-04 at 15:57 -0400, Optimum Wireless Services wrote:
> Hi, is me once again.
> 
> I tried this for a test box and the download speed worked correctly:
> 
> $tc qdisc del dev eth0 root
> $tc class del dev eth0
> 
> $tc qdisc add dev eth0 root handle 1: htb r2q 1
> 
> $tc class add dev eth0 parent 1:0  classid 1:1 htb rate 3000kbit ceil
> 3000kbit
> 
> $tc class add dev eth0 parent 1:1 classid 1:100 htb rate 256kbit ceil
> 256kbit prio 3
> 
> $tc filter add dev eth0 parent 1: protocol ip u32 match ip dst
> 172.16.254.1/32 classid 1:100
> 
> $tc qdisc add dev eth0 parent 1:100 handle 100: sfq perturb 2
> 
> 
> So, are these ruleset more convenient than the one I currently have?
> 

They are more efficient, yes, and in some ways more convenient, but you
lose some of the flexibility you had with marking packets.

Horses for courses really.

Andy


--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux