Re: prio queue not working as expected?

Linux Advanced Routing and Traffic Control

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

 



On Wed, 2013-06-19 at 15:15 +0200, Wolfgang Hennerbichler wrote:
> hi tc folks, 
> 
> I'm trying to set up a bridged traffic shaper, and I am experimenting with the prio qdisc. 
> I've take the example from www.lartc.org: 
> 
> tc qdisc add dev wan0 root handle 1: prio 
> tc qdisc add dev wan0 parent 1:1 handle 10: sfq
> tc qdisc add dev wan0 parent 1:2 handle 20: tbf rate 20kbit buffer 1600 limit 3000
> tc qdisc add dev wan0 parent 1:3 handle 30: sfq             
> 
> unfortunately, it seems as if it doesn't detect the TOS of my scp
> traffic. when I do a scp from a box behind the bridge, only qdisc 20:
> increases it's counters,

For an scp command, it should be the 20: or 30: counters that increase,
as it's bulk traffic.

> I can't create counter values in 10: or 30: by issuing telnet or ssh
> commands or whatever. 

But normal ssh commands should, of course, be in 10:

I don't know why it is not working for you, but I've just tried the
above commands myself and it works for me, so at least you know that the
example is correct.

> The system is running within a VM on linux kernel 3.7.10. 
> I can't figure out what's wrong here. Any help is really appreciated. 

My test was with Linux 3.0.0, not inside a VM.

You could maybe use some iptables logging to see if the packets have the
TOS value that you expect? You could also try setting some TOS values
with iptables and see if that works.

Andy



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




[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux