[LARTC] Linux CBQ question

Linux Advanced Routing and Traffic Control

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

 



Hi,

Question on Linux-CBQ. I have a Pentium 4 based PC running Redhat 7.2 (ke=
rnel
2.4.7) with 2 100-Base T ethernet interfaces (Eth0, Eth1). Traffic receiv=
ed
on Eth0 is sent out on Eth1.

I am trying to restrict the outgoing traffic rate on Eth1 to 50Mbits/sec.=

However, when I use the configuration below, I find that the rate on Eth1=

is about 5 Mbits/sec. If I delete the keywords bounded, isolated, I get
a rate of 90 Mbits/sec. Measurements were made over an interval of 15 sec=

to 1 min)

On trying other Minburst, Maxburst values, the rate changes (e.g. Maxburs=
t
=3D 300, Minburst =3D 70) produces 25Mbits/sec etc.

(I was trying to create a hierarchy of classes whose total rate needs to
be limited to 50Mbits/sec, I have managed to reduce the problem from that=

to this simplified configuration. I would prefer not to use HTB at the mo=
ment).

Can someone take a quick look at the configuration below and tell me what=

I am doing wrong? (Ip address of Eth0=3D10.1.1.2, netmask=3D255.255.255.0=
; Eth1=3D10.1.2.2,netmask=3D255.255.255.0)

Thanks

Udayan

------------------

#!/bin/sh

sysctl -w net.ipv4.ip_forward=3D1

arp -s 10.1.2.4 00:80:AD:55:44:33

tc qdisc add dev eth1 root handle 1:0 cbq avpkt 1000 bandwidth 100Mbit mp=
u
64

tc class add dev eth1 parent 1:0 classid 1:1 cbq avpkt 1000 bandwidth 100=
Mbit
cell 8 maxburst 5 minburst 1 minidle 10 mpu 64 rate 50Mbit allot 1500 pri=
o
1 weight 5Mbit bounded isolated

tc qdisc add dev eth1 parent 1:1 bfifo limit 200000

tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dst 10.=
1.2.4/32
flowid 1:1














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