Skip to contentSkip to conversation

Which option is better

LARTC DervishD 2 participants 3 messages Dec 2, 2005

lore
Share & tools
lore

DervishD

author
#0 lore raw

Hi all :)

Currently I'm shaping the traffic that goes to my ADSL router,
using HTB.

.    Root (HTB) 1:
.    |
.    |------------------------|
.    LAN (1:1)                ADSL router (1:2)
.    90Mbit/90MBit            200000bit/200000bit

. |
. (Here go some children classes)

I find the above a bit overkill, since LAN and ADSL classes won't
NEVER borrow nor lend bandwidth to one another. Moreover, every time I set up my traffic control I get the same warning:

HTB: quantum of class 10001 is big. Consider r2q change.

Of course it is big!, it's my LAN class, limited to 90Mbit/s...

Is there any better alternative to the above, given the great
difference in rates and the fact that I won't NEVER share bandwidth between 1:1 and 1:2?

Thanks a lot in advance :)

Raúl Núñez de Arenas Coronado

Signature · 7 lines
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
#1 lore raw
Quoted 2 lines · DervishD

I find the above a bit overkill, since LAN and ADSL classes won't
NEVER borrow nor lend bandwidth to one another.

They won't do that because the classes got the same rate/ceil. So there is no need to borrow/lend ever. HTB is used for bandwidth limiting only here, probably except for "(some children classes)", whatever they are.

I'm doing it practically the same way, except I don't like setups with more than one root class, so I actually got a fat root class with the device speed as rate above those two. In my personal opinion, having two root classes in HTB implies that these two are completely independent, which is not the case since they have to share the same interface after all.

And I think it's not overkill at all, since this is the only way to ensure that LAN traffic (file transfers and such) leave a bandwidth window open for the more fragile internet traffic.

Quoted 3 lines

HTB: quantum of class 10001 is big. Consider r2q change.

Of course it is big!, it's my LAN class, limited to 90Mbit/s...

You can get rid of this message by specifying the quantum for this class directly.

Quoted 3 lines

Is there any better alternative to the above, given the great
difference in rates and the fact that I won't NEVER share bandwidth between 1:1 and 1:2?

I don't have any problems at all with this solution, so I never bothered looking for something better. In fact, I think it's a very good solution, and if you're shaping using nothing but HTB, it's probably even the best solution you can get.

Regards,
Andreas Klauer
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

author
#2 lore raw
In reply to DervishD

Hi Andreas :)

* Andreas Klauer <[email protected]> dixit:

Quoted 4 lines · DervishD
Quoted 2 lines

I find the above a bit overkill, since LAN and ADSL classes won't
NEVER borrow nor lend bandwidth to one another.

They won't do that because the classes got the same rate/ceil.

I did that on purpose, just in case I add another class above
them in the future. Right now they cannot borrow/lend even if the rate is less than the ceil, because they are root classes, am I wrong? I got that idea from the HTB documentation.

Quoted 2 lines

HTB is used for bandwidth limiting only here, probably except for "(some children classes)", whatever they are.

Exactly. The children classes are a couple of classes to limit
the rate for my ftp server, etc. There I want share, but on the top classes I just want to do limiting.

Quoted 6 lines

I'm doing it practically the same way, except I don't like setups with more than one root class, so I actually got a fat root class with the device speed as rate above those two. In my personal opinion, having two root classes in HTB implies that these two are completely independent, which is not the case since they have to share the same interface after all.

Interesting...

Quoted 3 lines

And I think it's not overkill at all, since this is the only way to ensure that LAN traffic (file transfers and such) leave a bandwidth window open for the more fragile internet traffic.

Well, in fact I didn't use 100Mbit as the rate/ceil of the LAN
class for two reasons:

- I don't think my cheap Ethernet card will never get that
throughput even in a sunny day XDD

- I want to leave a bit of bandwidth for the other PC in the LAN,
which is running Windoze and, I don't know why, doesn't "fight" for the Ethernet bus...

Quoted 6 lines
Quoted 3 lines

HTB: quantum of class 10001 is big. Consider r2q change.

Of course it is big!, it's my LAN class, limited to 90Mbit/s...

You can get rid of this message by specifying the quantum for this class directly.

I know, I just wanted to show an additional advantage of using
another approach for classes instead HTB O:)

Quoted 8 lines
Quoted 3 lines

Is there any better alternative to the above, given the great
difference in rates and the fact that I won't NEVER share bandwidth between 1:1 and 1:2?

I don't have any problems at all with this solution, so I never bothered looking for something better. In fact, I think it's a very good solution, and if you're shaping using nothing but HTB, it's probably even the best solution you can get.

Well, then I will run it as-is, although I take note of your idea
of putting another class on top of my two main classes, just in case I want to shape things differently in the future.

Thanks for your answer! :)

Raúl Núñez de Arenas Coronado

Signature · 7 lines
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc