Home

Forums

Web development

 

 

 

 
     
 
dna88 Web development and Technology Forum
 
Profile   Register   Memberlist   Usergroups   FAQ   Search  Log in
Bandwidth management with free software - HOWTO

 
Post new topic   Reply to topic    dna88 Forum Index -> Linux and open source Discussion Forum
Author Message
dinangkur
Super Moderator
Super Moderator


Joined: 24 Mar 2004
Posts: 491
Location: Dhaka, Bangladesh

Post Post subject: Bandwidth management with free software - HOWTO Reply with quote

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
Back to top
dinangkur View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
aronnok
Beginner User
Beginner User


Joined: 16 Sep 2004
Posts: 44
Location: Dhaka, Bangladesh

Post Post subject: Re: Bandwidth management with free software - HOWTO Reply with quote

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
Back to top
aronnok View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
dinangkur
Super Moderator
Super Moderator


Joined: 24 Mar 2004
Posts: 491
Location: Dhaka, Bangladesh

Post Post subject: Reply with quote

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
Back to top
dinangkur View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
aronnok
Beginner User
Beginner User


Joined: 16 Sep 2004
Posts: 44
Location: Dhaka, Bangladesh

Post Post subject: Reply with quote

Ha ha ha ha.....
Why not...sure...someday.
Sun Sep 19, 04 11:23 pm
Back to top
aronnok View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
hasnut
Expert User
Expert User


Joined: 28 Aug 2004
Posts: 201

Post Post subject: Reply with quote

I recommand an ISP and they are using it
www.mikrotik.com
it 100$ bt worth a buy.
_________________
Sarder Hasnut
MCSD, CIW A

Need Low Cost Prefessional Hosting Contact me
Fri Oct 01, 04 5:45 pm
Back to top
hasnut View user's profile Send private message Visit poster's website MSN Messenger
hasnut
Expert User
Expert User


Joined: 28 Aug 2004
Posts: 201

Post Post subject: Reply with quote

sorry the name of software is MikroTik RouterOS
its based on linux OS
_________________
Sarder Hasnut
MCSD, CIW A

Need Low Cost Prefessional Hosting Contact me
Fri Oct 01, 04 5:48 pm
Back to top
hasnut View user's profile Send private message Visit poster's website MSN Messenger
dinangkur
Super Moderator
Super Moderator


Joined: 24 Mar 2004
Posts: 491
Location: Dhaka, Bangladesh

Post Post subject: Reply with quote

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
Back to top
dinangkur View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
hasnut
Expert User
Expert User


Joined: 28 Aug 2004
Posts: 201

Post Post subject: Reply with quote

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
Back to top
hasnut View user's profile Send private message Visit poster's website MSN Messenger
hasnut
Expert User
Expert User


Joined: 28 Aug 2004
Posts: 201

Post Post subject: Reply with quote

you can look at this opensource

http://bwm-tools.lbsd.net/
_________________
Sarder Hasnut
MCSD, CIW A

Need Low Cost Prefessional Hosting Contact me
Fri Oct 01, 04 10:12 pm
Back to top
hasnut View user's profile Send private message Visit poster's website MSN Messenger
hasnut
Expert User
Expert User


Joined: 28 Aug 2004
Posts: 201

Post Post subject: Reply with quote

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
Back to top
hasnut View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    dna88 Forum Index -> Linux and open source Discussion Forum All times are GMT - 7 Hours
Page 1 of 1

 

Partners and Resources

Bangladesh hosting company

Bangladesh web design

Driven by phpBB © phpBB Group