LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-29-2004, 05:34 AM   #1
Ipolit
Member
 
Registered: Nov 2003
Location: Bulgaria
Distribution: Vector Linux, Morphix
Posts: 295

Rep: Reputation: 31
htb.init


I have a little router with Slack 9.0 which operates with a small network with 4 computers.
I decided to start htb.init to share the traffic fairily. In the htb.init it's written that I should use sfq and nothing more. The idea is all the computers in the network to recieve equal traffic.
So I recompiled the kernel with htb, QoS, and all needed.
I put htb.init in /var/cache
I made a file eth0 in /etc/sysconfig/htb
LEAF=sfq
RULE=192.168.0.0/24
R2Q=1

after this I made
htb.init compile
htb.init start nocache
when I make lsmod I receive:
sch_sfq 3360 0 (unused)
sch_htb 19392 1
Do you think that my htb.init makes something? I'm not shore.
Do you have any suggestions what should I do?
Thanks
 
Old 05-01-2004, 02:30 PM   #2
frostschutz
Member
 
Registered: Apr 2004
Distribution: Gentoo
Posts: 95

Rep: Reputation: 28
Exclamation

I don't think that HTB.init can do anything useful with that kind of configuration. It should at least know the IPs of your machines, otherwise it'd have to create a whole load of classes to cover the complete subnet. Or is the class structure by chance dynamically reconfigured when clients connect? That would be nifty, but the script doesn't look anything like it at the first glance.

I had a similar problem (5 machines behind a stand-alone router). The scripts I found on the net either looked much too complicated to modify (like HTB.init) or just didn't quite do what I wanted. So I wrote my own script after reading lots of stuff on www.lartc.org and other sites. Maybe you have to do that too... Everyone has other thoughts about what traffic shaping should look like,, so there is no general script that solves everything in every case.

There are two scripts you may want to look at. One is the Wondershaper on www.lartc.org, the other is my own script. It could be useful since it's in general the same idea, a router with machines behind it and traffic that should be shared fairly among them. My script won't do you any good however if you aren't able to do certain modifications to it. The design is simple, but rather static.

My script can be found here: http://www.metamorpher.de/files/ipshape.sh

For four users, you'd have to remove all lines that contain $USER_E and modify the mathematics (so that rates aren't divided by 5 anymore, but by 4 instead... feh, I should put them mathematics in variables, too... bug me about it and I'll do just that)
 
Old 05-02-2004, 01:23 PM   #3
frostschutz
Member
 
Registered: Apr 2004
Distribution: Gentoo
Posts: 95

Rep: Reputation: 28
Quote:
For four users, you'd have to remove all lines that contain $USER_E and modify the mathematics (so that rates aren't divided by 5 anymore, but by 4 instead... feh, I should put them mathematics in variables, too... bug me about it and I'll do just that)
I just made the script a little more flexible. It now supports a variable number of users behind the router. All you have to do is specify their IPs. Here's a little documentation: http://www.metamorpher.de/ipshape/.

If this doesn't fit you, use HTB.init. I just read a little more about HTB.init - as far as I understand it, it doesn't do anything by default. It's just a script that provides an easier method to configure HTB classes and filters. So you have to figure out by yourself what kind of class structure you might want.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
htb.init divide trafic in groups ? Problem .. sys7em Linux - Networking 0 08-18-2005 05:35 AM
htb.init -> howto divide national and international trafics sys7em Linux - Networking 1 07-15-2005 09:39 AM
htb.init hardware prerequirements Ipolit Slackware 1 12-02-2004 08:12 AM
HTB.init and "metropolitan" bandwidth shaping Ghitza Linux - Networking 0 11-23-2004 06:47 PM
shaping scripts - htb.init ... confusion ? :( mikero Linux - Networking 0 02-17-2004 05:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration