tc bandwidth management doesn't work on one-armed router

Linux Advanced Routing and Traffic Control

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

 



hello everyone,

when i am using two NICs in my machine, one connected to the testclient and the
other to the LAN/internet, everything is working fine about limiting throughput
speed using tc. i have the upstream controlled on the one interface and the
downstream on the other.

basically, i have a script that sets up a root class, three different classes,
applies the queue management rules (using SFQ and the option "bounded"), and
filters packets based on fwmark. for testing i simply mark everything using
iptables.

now the problem:

i need to do bandwidth control on a single-arm router using only one NIC.

the script remains the same except half of the statements omitted, since there
is only one interface left.

when i do tc -s qdisc, i can watch packets going through the right class, but
the rate does not take effect. traffic gets as fast as the contacted server can
send (approx. 3MByte/s).

actually, i am surprised by this behaviour, that i don't understand at all. :)

can anyone help me finding a reason for / explanation of this effect?
any hint, advice or solution is welcome.

thanx, ulric

ulrich schwarz, computing center, university of ulm, germany
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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