Re: [LARTC] htb

Linux Advanced Routing and Traffic Control

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

 



Stef Coene wrote:

> On Tuesday 13 May 2003 21:47, Evgeni Gechev wrote:
> > Stef Coene wrote:
> > > > Satisfied :)
> > > > But partially :(
> > > > The problem is that the bandwidth is REALLY limited to about 730kbps.
> > >
> > > Then your class reaches it's limit.  But why do you have a ceil of 48Mbps
> > > and 730kbps?
> >
> > Exactly. Why?
> > I can't find out.
> What's the command you used to create that class?
>
> Stef
>
> --
>
> stef.coene@xxxxxxxxx
>  "Using Linux as bandwidth manager"
>      http://www.docum.org/
>      #lartc @ irc.oftc.net

Simple configuration:


test1:
root@xxxx:~# tc qdisc add dev eth1 root handle 1000: htb
root@xxxx:~# tc class add dev eth1 parent 1000: classid 1000:10 htb rate 5Mbit
ceil 5Mbit burst 3k quantum 1600
root@xxxx:~# tc filter add dev eth1 protocol ip prio 100 u32 match ip dst
0.0.0.0/0 flowid 1000:10
root@xxxx:~# ifstat -i eth1
       eth1
 KB/s in  KB/s out
   43.84    631.32
   43.46    627.32
   43.71    627.99
   43.27    626.35
   43.72    627.36
   43.59    628.03
   43.62    627.17
   43.96    627.22
   43.43    627.81
   43.83    627.54

test2:
root@xxxx:~# tc qdisc add dev eth1 root handle 1000: htb
root@xxxx:~# tc class add dev eth1 parent 1000: classid 1000:10 htb rate 6Mbit
ceil 6Mbit burst 3k quantum 1600
root@xxxx:~# tc filter add dev eth1 protocol ip prio 100 u32 match ip dst
0.0.0.0/0 flowid 1000:10
root@xxxx:~# ifstat -i eth1
       eth1
 KB/s in  KB/s out
   45.46    651.63
   45.06    651.58
   45.02    651.49
   45.22    647.36
   45.14    652.95
   45.31    651.22
   45.29    650.39
   44.96    650.34
   45.13    651.30
   45.16    651.42

test3:
root@xxxx:~# tc qdisc add dev eth1 root handle 1000: htb
root@xxxx:~# tc class add dev eth1 parent 1000: classid 1000:10 htb rate 50Mbit
ceil 50Mbit burst 3k quantum 1600
root@xxxx:~# tc filter add dev eth1 protocol ip prio 100 u32 match ip dst
0.0.0.0/0 flowid 1000:10
root@xxxx:~# ifstat -i eth1
       eth1
 KB/s in  KB/s out
   45.04    655.73
   44.75    644.21
   45.16    651.51
   45.36    652.94
   44.28    650.62
   45.15    651.90
   44.91    651.28
   45.21    651.69
   44.66    651.25
   45.16    650.84



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