[LARTC] HTB not working quite the way I'd expect?

Linux Advanced Routing and Traffic Control

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

 



Hi Martin.  Thanks for your reply.

On Sat, 2002-02-02 at 08:14, Martin Devera wrote:
> filter design in Linux QoS but I can't do anything with it.
> Simply add prio 1 to the class definition (last tc line above).
> And let me know ! ;)

In fact, there is no change.  Here is my current configuration, with the
changes you suggested:

    tc class add dev eth8 parent 1: classid 1:1 htb rate 250kbps
    tc class add dev eth8 parent 1:1 classid 1:10 htb rate 200kbps \
      ceil 250kbps burst 10k prio 1
    tc qdisc add dev eth8 parent 1:10 sfq perturb 5
    tc filter add dev eth8 protocol ip parent 1: u32 match ip \
      src 199.212.53.0/24 flowid 1:10
    
    tc class add dev eth8 parent 1:1 classid 1:11 htb rate 50kbps \
      ceil 200kbps burst 2k prio 4
    tc qdisc add dev eth8 parent 1:11 sfq perturb 5
    
    tc filter add dev eth8 protocol ip parent 1: u32 match ip \
       src 199.212.55.128/25 flowid 1:11
    
Monitoring eth8, I see it sending out at 200k/s, all traffic generated
from 199.212.55.128/25.  This is what I'd expect.  When I hit the
webserver (on 199.212.53.0/24) hard, eth8 begins to send at 250k/s (it
is a 2Mbit uplink), but the portion of that from the webserver is only
about 50-90/s, not 200k/s like I'd expect based on id 1:10.

Any other thoughts?

Regards,
Jason.

-- 
Academic Computing Support Specialist
Algoma University College
Sault Ste. Marie, Ontario
705-949-2301 x330                                   Personal Home Page
http://www.auc.ca                                     http://sault.org



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