Skip to contentSkip to conversation

tc class htb

LARTC derbel hajer 3 participants 3 messages Apr 29, 2004 – May 2, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

I am new to this group.

I use this script

tc qdisc add dev eth0 root handle 1: htb

tc class add dev eth0 parent 1:0 classid 1:1 htb rate 500kbit ceil 500kbit

tc class add dev eth0 parent 1:1 classid 1:2 htb rate 300Kbit ceil 500kbit

tc class add dev eth0 parent 1:1 classid 1:3 htb rate 200kbit ceil 500kbit

I like to know:

If two customers of the same class (for example 1:2) work simultaneously, what is that every customer is going to have the rate of this class (300Kbit for the example class 1:2) or they share this debit?

Thank you for your help

---------------------------------
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! Créez votre Yahoo! Mail

Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !

#1 lore raw

Hi,

Quoted 10 lines

tc qdisc add dev eth0 root handle 1: htb
tc class add dev eth0 parent 1:0 classid 1:1 htb rate 500kbit ceil 500kbit tc class add dev eth0 parent 1:1 classid 1:2 htb rate 300Kbit ceil 500kbit tc class add dev eth0 parent 1:1 classid 1:3 htb rate 200kbit ceil 500kbit

I like to know:
If two customers of the same class (for example 1:2) work simultaneously, what is that every customer is going to have the rate of this class (300Kbit for the example class 1:2) or they share this debit?

Everyone in the same class (1:2) shares the same rate and ceiling.

regards,

Signature · 10 lines
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Damion de Soto - Software Engineer  email:     [email protected]
SnapGear - A CyberGuard Company ---    ph:         +61 7 3435 2809
  | Custom Embedded Solutions          fax:         +61 7 3891 3630
  | and Security Appliances            web: http://www.snapgear.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ---  Free Embedded Linux Distro at   http://www.snapgear.org  ---
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to derbel hajer

Am Thursday 29 April 2004 10:42 schrieb derbel hajer:

Quoted 2 lines

If two customers of the same class (for example 1:2) work simultaneously, what is that every customer is going to have

They will both use the bandwidth the class provides. If the class is at it's limit, they'll steal each others bandwidth, since HTB doesn't care where the traffic comes from. If you want fair sharing between the two customers, you have to give each of them their own class.

Andreas
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/