Skip to contentSkip to conversation

HTB questions

LARTC Mancinelli Giovanni 4 participants 5 messages Jun 6, 2002 – Sep 14, 2002

lore
Share & tools
lore
#0 lore raw

Hello all,

I have some doubts about HTB algorithm:
Is it possible to deny client connection when bandwidth is saturated ?

I mean bandwidth manager manages 1Mbit and link is full, can I stop new connection ?
can I guarantee a fixed minimum bandwidth to all connection already established?

Thanks in advance for the answer.

Best Regards,
Giovanni
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw

No. It would require tcp-qos cooperation.

Quoted 10 lines · Mancinelli Giovanni

Hello all,

I have some doubts about HTB algorithm:
Is it possible to deny client connection when bandwidth is saturated ?

I mean bandwidth manager manages 1Mbit and link is full, can I stop new connection ?
can I guarantee a fixed minimum bandwidth to all connection already established?

Quoted 9 lines

Thanks in advance for the answer.

Best Regards,
Giovanni
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

#2 lore raw
In reply to Mancinelli Giovanni

Hello Devik,
Do you have any information about?
Is there a tool does it on Linux?

Thanks for the answer,
Giovanni

-----Messaggio originale-----
Da: Martin Devera [mailto:[email protected]]
Inviato: giovedì 6 giugno 2002 20.06
A: Mancinelli Giovanni
Cc: '[email protected]'
Oggetto: Re: [LARTC] HTB questions

No. It would require tcp-qos cooperation.

Quoted 10 lines · Mancinelli Giovanni

Hello all,

I have some doubts about HTB algorithm:
Is it possible to deny client connection when bandwidth is saturated ?

I mean bandwidth manager manages 1Mbit and link is full, can I stop new connection ?
can I guarantee a fixed minimum bandwidth to all connection already established?

Quoted 9 lines

Thanks in advance for the answer.

Best Regards,
Giovanni
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

#3 lore raw
In reply to Mancinelli Giovanni

Hello,

I have a number of questions re: HTB

* Traffic Simulator

I saw the traffic simulator, ethloop -- very clever. I was wondering, however, how to simulate traffic destined for specific ports ? In the HBT HOWTO there are gnuplots of traffic destined for different ports.

* Low rate shaping

My maximum uplink is 384kbits/sec . I plan to shape HTTP,SMTP and other protos to some fraction of the maximum. Are there any special steps when shaping to these low rates ? I saw most of the examples are in the 5 to 10 mbit/sec range, roughly 30 times higher than what I plan to do.

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

#4 lore raw
In reply to Mancinelli Giovanni
Quoted 9 lines · curt brune

Hello,

I have a number of questions re: HTB

* Traffic Simulator

I saw the traffic simulator, ethloop -- very clever. I was wondering, however, how to simulate traffic destined for specific ports ? In the HBT HOWTO there are gnuplots of traffic destined for different ports.

I never used ethloop myself, but I think it uses flowid's. So if you create a htb setup with classes and filters, you can use the u32 filter to match packets with different ports. Ethloop will generate the traffic in the flowid's you configured it for.

Or take a look at the P option :

P Number. Priocode set by setsockopt(sock,SOL_SOCKET,SO_PRIORITY,...). It is very convenient way to test qdisc because majority of classfull qdisc will use classid stored in priority field. To say that this flow should go to class 3:4f use P 0x3004f. This way you need no filters.

Quoted 6 lines

* Low rate shaping

My maximum uplink is 384kbits/sec . I plan to shape HTTP,SMTP and other protos to some fraction of the maximum. Are there any special steps when shaping to these low rates ? I saw most of the examples are in the 5 to 10 mbit/sec range, roughly 30 times higher than what I plan to do.

If you have class with very different rates, it's possible you can get warnings about quantum. You can ignore them, but it's better fix it. To be short, quantum = rate / r2q with r2q = 10 by default.
And MTU (1500) < quantum < 60.000.
Quantum is the number of bytes a class my send IF 2 or more classes are fighting for bandwidth from the same parent. You can overrule r2q when you add the htb qdisc and/or you can overrule quantum when you add a htb class.

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

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