class htb 1000:10 root leaf 1010: prio 0 quantum 1600 rate 48Mbit ceil 48Mbit burst 3Kb/8 mpu 0b cburst 63Kb/8 mpu 0b level 0 Sent 17553816503 bytes 13078592 pkts (dropped 63733, overlimits 0) rate 730783bps 570pps backlog 112p lended: 13078480 borrowed: 0 giants: 0 tokens: -589 ctokens: 7412 Hi! Can somebody explain what is wrong from the above? I can''t understand following relation: "rate 48Mbit ceil 48Mbit" and "rate 730783bps 570pps backlog 112p" Why the current rate is limited to 730KByte/s (and there is backlog 112p) when the rate and ceil are 48Mbit/s (6Mbyte/s)? I sent similar question some months ago, but there was no answer. _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Tuesday 13 May 2003 20:00, Evgeni Gechev wrote:> class htb 1000:10 root leaf 1010: prio 0 quantum 1600 rate 48Mbit ceil > 48Mbit burst 3Kb/8 mpu 0b cburst 63Kb/8 mpu 0b level 0 > Sent 17553816503 bytes 13078592 pkts (dropped 63733, overlimits 0) > rate 730783bps 570pps backlog 112p > lended: 13078480 borrowed: 0 giants: 0 > tokens: -589 ctokens: 7412 > > Hi! > Can somebody explain what is wrong from the above? > I can''t understand following relation: > "rate 48Mbit ceil 48Mbit" and "rate 730783bps 570pps backlog 112p" > Why the current rate is limited to 730KByte/s (and there is backlog > 112p) when the rate and ceil are 48Mbit/s (6Mbyte/s)?rate 730783bps means that the average rate is 730783bps for that class. And 570pps means that class sends 570 packets per seconds. So it''s just some statistics for that class. I''m not sure for the backlog, but I think it means that there are 112 packets in the queue ready to be send.> I sent similar question some months ago, but there was no answer.Satisfied ? :) Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Stef Coene wrote:> On Tuesday 13 May 2003 20:00, Evgeni Gechev wrote: > > class htb 1000:10 root leaf 1010: prio 0 quantum 1600 rate 48Mbit ceil > > 48Mbit burst 3Kb/8 mpu 0b cburst 63Kb/8 mpu 0b level 0 > > Sent 17553816503 bytes 13078592 pkts (dropped 63733, overlimits 0) > > rate 730783bps 570pps backlog 112p > > lended: 13078480 borrowed: 0 giants: 0 > > tokens: -589 ctokens: 7412 > > > > Hi! > > Can somebody explain what is wrong from the above? > > I can''t understand following relation: > > "rate 48Mbit ceil 48Mbit" and "rate 730783bps 570pps backlog 112p" > > Why the current rate is limited to 730KByte/s (and there is backlog > > 112p) when the rate and ceil are 48Mbit/s (6Mbyte/s)? > rate 730783bps means that the average rate is 730783bps for that class. And > 570pps means that class sends 570 packets per seconds. So it''s just some > statistics for that class. > I''m not sure for the backlog, but I think it means that there are 112 packets > in the queue ready to be send. > > > I sent similar question some months ago, but there was no answer. > Satisfied ? :) > > Stef > > -- > > stef.coene@docum.org > "Using Linux as bandwidth manager" > http://www.docum.org/ > #lartc @ irc.oftc.net > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/Satisfied :) But partially :( The problem is that the bandwidth is REALLY limited to about 730kbps. And isn''t the backlog the number of packets, delayed due to bandwidth reached the shaper limit? _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> 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?> And isn''t the backlog the number of packets, delayed due to bandwidth > reached the shaper limit?Or like I said, there are packets in the queue ready to be send but they can''t due to limited link bandwidth. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
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. _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
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@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
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@docum.org > "Using Linux as bandwidth manager" > http://www.docum.org/ > #lartc @ irc.oftc.netSimple configuration: test1: root@mail:~# tc qdisc add dev eth1 root handle 1000: htb root@mail:~# tc class add dev eth1 parent 1000: classid 1000:10 htb rate 5Mbit ceil 5Mbit burst 3k quantum 1600 root@mail:~# tc filter add dev eth1 protocol ip prio 100 u32 match ip dst 0.0.0.0/0 flowid 1000:10 root@mail:~# 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@mail:~# tc qdisc add dev eth1 root handle 1000: htb root@mail:~# tc class add dev eth1 parent 1000: classid 1000:10 htb rate 6Mbit ceil 6Mbit burst 3k quantum 1600 root@mail:~# tc filter add dev eth1 protocol ip prio 100 u32 match ip dst 0.0.0.0/0 flowid 1000:10 root@mail:~# 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@mail:~# tc qdisc add dev eth1 root handle 1000: htb root@mail:~# tc class add dev eth1 parent 1000: classid 1000:10 htb rate 50Mbit ceil 50Mbit burst 3k quantum 1600 root@mail:~# tc filter add dev eth1 protocol ip prio 100 u32 match ip dst 0.0.0.0/0 flowid 1000:10 root@mail:~# 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 _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> Simple configuration: > > > test1: > root@mail:~# tc qdisc add dev eth1 root handle 1000: htb > root@mail:~# tc class add dev eth1 parent 1000: classid 1000:10 htb rate > 5Mbit ceil 5Mbit burst 3k quantum 1600 > root@mail:~# tc filter add dev eth1 protocol ip prio 100 u32 match ip dst > 0.0.0.0/0 flowid 1000:10Your burst is too low. If you don''t specify it, htb will calculate the minimum burst for you. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/