|
|
| Author |
Message |
dinangkur Super Moderator


Joined: 24 Mar 2004 Posts: 491
Location: Dhaka, Bangladesh
|
Post subject: Bandwidth management with free software - HOWTO |
|
|
Dear all,
You understand what I want to say. This is a place where we can put some lights.
One of my friend who has a ISP at Bogra was asking me how he can optimized he bandwidth distribution. He tried to get solution from Dhaka but as we know people always like to make money on poor soul.
Network senario:
1. He has 64kbps full-duplex. He runs a cyber cafe and offer connections to few business organizations.
2. He wants to dedicate 32 kbps full-duplex to his cyber cafe. He has 15pcs. Now, he wants to share bandwidth 2kbps for each pc. Not less not much. When PC is idle bandwidth will be provided to his outside client. And also he wants to provide his clients (10) 3Kbps always, not less. If clients are idle, bandwidth will be devided to other clients.
What is the best solution for this?
I like to know everybody's comments.
Happy hacking.
-DK. _________________ ...we too are stardust... |
|
Sun Sep 19, 04 9:54 pm
 |
|
 |
aronnok Beginner User

Joined: 16 Sep 2004 Posts: 44
Location: Dhaka, Bangladesh
|
Post subject: Re: Bandwidth management with free software - HOWTO |
|
|
| dinangkur wrote: |
Network senario:
1. He has 64kbps full-duplex. He runs a cyber cafe and offer connections to few business organizations.
2. He wants to dedicate 32 kbps full-duplex to his cyber cafe. He has 15pcs. Now, he wants to share bandwidth 2kbps for each pc. Not less not much. When PC is idle bandwidth will be provided to his outside client. And also he wants to provide his clients (10) 3Kbps always, not less. If clients are idle, bandwidth will be devided to other clients.
|
Ok dinangkur
Here is the solution.
I think your friend has a Linux box which is running Red Hat 8.0 or 9.0 and the CBQ packege is installed there. If CBQ is not present, ask him to install it from the Linux CD. I am also guessing that, His external NIC is eth0 and internal NIC is eth1.
After installation, ask your friend to edit the Example configuration file of CBQ.
#cd /etc/sysconfig/cbq
There he will find a file named cbq_0000.example.
Ask him to do the followings...
#cp cbq_0000.example cbq_0032.clients
#cp cbq_0000.example cbq_0032.cybercafe
#vi cbq_0032.cybercafe
Then ask him to edit the file like this..
DEVICE=eth1,10Mbit,1Mbit
RATE=32Kbit
WEIGHT=3Kbit
PRIO=5
RULE=192.168.1.11
RULE=192.168.1.12
RULE=192.168.1.13
............................
............................
............................
RULE=192.168.1.26
Done for the Cyber cafe
Next for the Clients..
#vi cbq_0032.clients
Edit the file like this..
DEVICE=eth1,10Mbit,1Mbit
RATE=32Kbit
WEIGHT=3Kbit
PRIO=5
RULE=192.168.1.101
RULE=192.168.1.102
RULE=192.168.1.103
............................
............................
............................
RULE=192.168.1.110
Done.
If everything goes ok, then exicute the command..
#cbq stop
#cbq start
And if you want to Dedicate 2 or 3 kbps to any IP, just make your own configuration file.
Its too easy. :)
I dont need money...just give me a cup of tea. |
|
Sun Sep 19, 04 10:37 pm
 |
|
 |
dinangkur Super Moderator


Joined: 24 Mar 2004 Posts: 491
Location: Dhaka, Bangladesh
|
Post subject: |
|
|
Let me know when you like to have a cup of tea, though i like a cup of coffee.
Mobile:0172883953
Happy Hacking.
-DK _________________ ...we too are stardust... |
|
Sun Sep 19, 04 11:17 pm
 |
|
 |
aronnok Beginner User

Joined: 16 Sep 2004 Posts: 44
Location: Dhaka, Bangladesh
|
Post subject: |
|
|
Ha ha ha ha.....
Why not...sure...someday.
 |
|
Sun Sep 19, 04 11:23 pm
 |
|
 |
hasnut Expert User


Joined: 28 Aug 2004 Posts: 201
|
|
Fri Oct 01, 04 5:45 pm
 |
|
 |
hasnut Expert User


Joined: 28 Aug 2004 Posts: 201
|
|
Fri Oct 01, 04 5:48 pm
 |
|
 |
dinangkur Super Moderator


Joined: 24 Mar 2004 Posts: 491
Location: Dhaka, Bangladesh
|
Post subject: |
|
|
Purchase bandwidth manager...hmm...but that doesn't work for every Orgnaization. Like a small ISP in district level don't have that resources to do that. Every penny cost there. As, it's really hard to make profit. Though my intention is to provide a open source script which will do the work like that.
-DK _________________ ...we too are stardust... |
|
Fri Oct 01, 04 8:32 pm
 |
|
 |
hasnut Expert User


Joined: 28 Aug 2004 Posts: 201
|
Post subject: |
|
|
100$ is not so much its just 6000Taka. to distribute brandwith.
But you might find some opensource. I am not sure about it. I will be looking at this topic to get more info on it. _________________ Sarder Hasnut
MCSD, CIW A
Need Low Cost Prefessional Hosting Contact me |
|
Fri Oct 01, 04 9:47 pm
 |
|
 |
hasnut Expert User


Joined: 28 Aug 2004 Posts: 201
|
|
Fri Oct 01, 04 10:12 pm
 |
|
 |
hasnut Expert User


Joined: 28 Aug 2004 Posts: 201
|
Post subject: |
|
|
Also see thoes two open source
[http://yabmas.sourceforge.net/]
[http://psnmp.sourceforge.net/]
Note: I naver used thoes, but think it will help you. _________________ Sarder Hasnut
MCSD, CIW A
Need Low Cost Prefessional Hosting Contact me |
|
Fri Oct 01, 04 10:21 pm
 |
|
 |
|