LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-11-2012, 12:30 AM   #1
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 199

Rep: Reputation: 0
Bandwidth Management


Hello,
i want to implement dynamic bandwidth management, i mean if i assign a user 20kb/s but if there is low traffic in network he could use more than 20k ,
if it's possible for all protocol not only http...


Thanks.

i found tc is a good tools for traffic shaping , also good example from lartc.org , but i dont really sure about it's performance for 200 user.....

Last edited by unSpawn; 06-11-2012 at 10:38 AM. Reason: //Merge posts, retain 0-reply status
 
Old 06-18-2012, 07:28 PM   #2
kareempharmacist
Member
 
Registered: Jan 2012
Location: Cairo, Egypt
Distribution: MX Linux, Ubuntu 18.04
Posts: 336

Rep: Reputation: 42
need more information about your hardware,network configuration,level of expertise.
do u have a good knowledge about bash scripting?
do u use ubuntu?
what book do u have about networking?
 
Old 06-18-2012, 07:57 PM   #3
kareempharmacist
Member
 
Registered: Jan 2012
Location: Cairo, Egypt
Distribution: MX Linux, Ubuntu 18.04
Posts: 336

Rep: Reputation: 42
kernel-patch-wrr
Extension to traffic Control/network bandwidth management
The WRR scheduler is an extension to the Traffic Control/network bandwidth management part of the Linux 2.2, 2.4 and 2.6 kernels. The scheduler was developed to support distributing bandwidth on a shared Internet connection fairly between local machines.
-As a default all local machines will get equally much of the bandwidth if they have sufficient demand. This is obtained by doing so-called weighted round robin (wrr) scheduling.
-It is possible to give machines transferring much data over a long or short period of time less bandwidth.
-It can work on a bridge, a router or on a firewall.
-Supports accounting locally generated masqueraded packets to the correct local machine.
-On the WRR home page an extension is available which includes patches for Squid and the Nec socks5 proxy servers so that proxied packets can also be accounted to the correct local machine.
-Includes a configuration file based set of scripts that will setup everything without changing your basic network setup. The scripts will allow you to shape both incoming and outgoing traffic.

http://www.zz9.dk/wrr
 
Old 06-18-2012, 08:04 PM   #4
kareempharmacist
Member
 
Registered: Jan 2012
Location: Cairo, Egypt
Distribution: MX Linux, Ubuntu 18.04
Posts: 336

Rep: Reputation: 42
The iproute suite, also known as iproute2, is a collection of utilities for networking and traffic control
 
Old 06-18-2012, 08:19 PM   #5
kareempharmacist
Member
 
Registered: Jan 2012
Location: Cairo, Egypt
Distribution: MX Linux, Ubuntu 18.04
Posts: 336

Rep: Reputation: 42
http://www.ubuntugeek.com/bandwidth-...for-linux.html
 
Old 06-18-2012, 08:22 PM   #6
kareempharmacist
Member
 
Registered: Jan 2012
Location: Cairo, Egypt
Distribution: MX Linux, Ubuntu 18.04
Posts: 336

Rep: Reputation: 42
http://ds9a.nl/cbq-presentation/1024x768/
 
Old 06-18-2012, 08:25 PM   #7
kareempharmacist
Member
 
Registered: Jan 2012
Location: Cairo, Egypt
Distribution: MX Linux, Ubuntu 18.04
Posts: 336

Rep: Reputation: 42
http://tldp.org/HOWTO/Traffic-Control-HOWTO/


http://lartc.org/lartc.html

http://blog.edseek.com/~jasonb/artic...affic_shaping/
 
Old 06-19-2012, 03:44 AM   #8
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 199

Original Poster
Rep: Reputation: 0
Thank you All,
I implement traffic shaping (fairness) on my network but now i have other problem , some users are using IDM or other internet downloader so there are unequal demand for internet , now i want to know, is there any way to equal internet demand (port 80)....

best regards.
 
Old 06-19-2012, 05:08 AM   #9
kareempharmacist
Member
 
Registered: Jan 2012
Location: Cairo, Egypt
Distribution: MX Linux, Ubuntu 18.04
Posts: 336

Rep: Reputation: 42
need more information about your hardware,network configuration.
do u have a good knowledge about bash scripting?
do u use ubuntu?
 
Old 06-19-2012, 07:04 AM   #10
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 199

Original Poster
Rep: Reputation: 0
thanks for your help,
i have debian lenny server as default gateway ,and iptables as firewall , i use MASQUERADE for internet sharing and also have enough knowledge about writing bash script(not complex).

for info , i can replace iptables with other firewalls(inclulde Microtik)

Last edited by hesisaboury; 06-19-2012 at 07:06 AM.
 
Old 06-19-2012, 09:11 AM   #11
kareempharmacist
Member
 
Registered: Jan 2012
Location: Cairo, Egypt
Distribution: MX Linux, Ubuntu 18.04
Posts: 336

Rep: Reputation: 42
Trickle is a voluntary, cooperative bandwidth shaper. it works entirely in userland and is very easy to use.
The most simple application is to limit the bandwidth usage of programs.
 
Old 06-19-2012, 11:45 AM   #12
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 199

Original Poster
Rep: Reputation: 0
hi,
Trickle is good app for limiting bandwidth but it does not work with windows base downloaders, exp IDM,.. , well i was thinking about assigning every user a specific bandwidth but according to current active users (connected to port 80) in gateway, for example i count current users connected to internet and with dividing internet bandwidth(exp. 128kbit) by current users , i split bandwidth equally between users. the problem is i have to do it every for example 3 hours

any suggestion....

Last edited by hesisaboury; 06-19-2012 at 11:47 AM.
 
Old 06-19-2012, 04:10 PM   #13
kareempharmacist
Member
 
Registered: Jan 2012
Location: Cairo, Egypt
Distribution: MX Linux, Ubuntu 18.04
Posts: 336

Rep: Reputation: 42
you didn't tell what your network hardware components are..
 
Old 06-19-2012, 11:15 PM   #14
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 199

Original Poster
Rep: Reputation: 0
i have max 80 users in network and using HP server (debian lenny) for gateway and firewall and samba,mail,.. also have Lease line for internet....
 
Old 06-23-2012, 02:28 AM   #15
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 199

Original Poster
Rep: Reputation: 0
i implement it using mikrotik , using CPQ feature , now i want to know is it possible in linux ?????

Best Regards.
 
  


Reply



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
Bandwidth Management with TC Deewanagan Linux - Networking 1 12-04-2010 07:37 PM
Bandwidth Management pankajdixitcts Linux - Networking 2 10-03-2010 07:14 PM
Bandwidth Management pHreak Linux - Newbie 6 01-05-2010 07:06 AM
Bandwidth management deepaklukose Linux - Networking 3 01-30-2006 02:45 AM
Bandwidth Management khairul Linux - Networking 1 10-16-2005 07:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:51 AM.

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
Open Source Consulting | Domain Registration