You are not logged in.

#1 2010-07-12 09:07:30

hunterthomson
Member
Registered: 2008-06-22
Posts: 794
Website

Bandwidth Shaping technology question

Aloha,

I'd like to regulate bandwidth on my LAN like this.

Guarantee an equal percentage of the BandWidth to every client but allow unused bandwidth to be used by a client needing more then it's share.

Like say, I have 6Mb/s and 3 clients connected. I'd like the router to "guarantee" each client 1/3 of the bandwidth, which in this case would be 2Mb/s. BUT, if the other 2 clients are not using all of their 2Mb/s it would allow the third client to use that unused bandwidth. Then if one of the other clients starts to need there full 2Mb/s it would give it back to that client.

Dose a technology exist like this? Is it a utility that can be installed on an Archlinux router or dose Cisco have this technology?

Last edited by hunterthomson (2010-07-12 10:06:11)


OpenBSD-current Thinkpad X230, i7-3520M, 16GB CL9 Kingston, Samsung 830 256GB
Contributor: linux-grsec

Offline

#2 2010-07-12 11:20:58

hunterthomson
Member
Registered: 2008-06-22
Posts: 794
Website

Re: Bandwidth Shaping technology question

Awe, I think I am getting somewhere now. I knew Linux had far more networking power then I had learned about thus far. I'll post more when I learn more.

Linux Advanced Routing & Traffic Control HOWTO
http://lartc.org/lartc.html#LARTC.INTRO.LINUX

Last edited by hunterthomson (2010-07-12 13:12:36)


OpenBSD-current Thinkpad X230, i7-3520M, 16GB CL9 Kingston, Samsung 830 256GB
Contributor: linux-grsec

Offline

#3 2010-07-12 23:55:17

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: Bandwidth Shaping technology question

tc allows you to set a "guaranteed" and "maximum" bandwidth. This might help you:
http://github.com/fukawi2/pb-route
Feedback welcome smile

Offline

#4 2010-07-13 07:19:55

hunterthomson
Member
Registered: 2008-06-22
Posts: 794
Website

Re: Bandwidth Shaping technology question

Right on, that looks good. I'll play with that.

Basically I'm looking to solve the common problem of I have a network with 20Mbs/down and 2Mbs/up and 11 users. I would like to prevent one or two people from DOSing the network with bittorrent and other bandwidth hogs. Educating the users on bittorrent usage helped a lot and manually setting there clients to max out at 300KBs/down by 10KBs/up helped a lot but problems still come up.

I was originally looking for a quick fix, but I'm thinking now that to get the most out of the network for everyone I'll need to put in some real effort. I'm thinking the problem would best be solved with more monitoring and logging of network usage. Then taking note of high usage times/days what kind of usage it is, and if it is everyone that is attempting to hog the network or if it is just a few people. Then use these new tools to setup traffic shaping rules based around toughs times of day/days, users, and traffic types.

Last edited by hunterthomson (2010-07-13 08:24:07)


OpenBSD-current Thinkpad X230, i7-3520M, 16GB CL9 Kingston, Samsung 830 256GB
Contributor: linux-grsec

Offline

#5 2010-07-13 08:56:30

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: Bandwidth Shaping technology question

The problem in that situation is that it's difficult (read: impossible) to control the download since by the time you have any way to influence the traffic, it's already traversed the choke point (your net connection), so all you can do it police the upstream traffic by delaying it on the gateway. This can be surprisingly effective though since it's often the up that gets choked before the down because it's so much smaller.

Offline

#6 2010-07-13 11:22:43

hunterthomson
Member
Registered: 2008-06-22
Posts: 794
Website

Re: Bandwidth Shaping technology question

Ya, the up stream is a problem. By default bit-torrent clients will eat up all the upstream long before they are getting 20Mbs down. I vary often see slow network problems yet the downstream still has a good 5-10Mbs free.

I was figuring sens during the day like 3am-4pm ish.. kind of guessing, most people are gone there would be less need to set maximum bandwidth limits but to only intact them from like 4pm-3am.

I also considered setting up two WAP's. On one set a maximum bandwidth of like half the bandwidth.
Then not limit the other, but block all outgoing traffic to all destination ports except 80, 443, 53, 21, 22, and so on.
This way on the Bit-torrent WAP the people could have an equal fight over the bandwidth making their 300 connection each but still leave the rest of the people free to watch you-tube and serf the web. Sure, bit-torrent can use port 80 and stuff but it could help. Maybe I could set a cron job to kick & block a MAC from the Non-torrent WAP for like 30min's if it sees they have more then like 300 TCP/UDP streams. I am sure none of the users are knowledgeable enough to use a VPN or bypass the restrictions in other ways.

Using a caching proxy mite be worth playing with as well. I guess running a DNS server would save some bandwidth too.

I guess if I installed like qBittorrent on the server with the HTTP web UI and had it download all the torrents to a Samba share. Then get everyone to use that to download their torrents the problem would be solved too. It would be far simpler to manage that one bittorrent client.

Last edited by hunterthomson (2010-07-13 23:29:25)


OpenBSD-current Thinkpad X230, i7-3520M, 16GB CL9 Kingston, Samsung 830 256GB
Contributor: linux-grsec

Offline

Board footer

Powered by FluxBB