throttling network access

This is a discussion on throttling network access within the Linux Networking forums, part of the Linux Forums category; On Mon, 23 Jun 2003 21:54:32 +0000, Bob Tennent wrote: > My son accesses the network via my ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-23-2003
nunya
 
Posts: n/a
Default Re: throttling network access

On Mon, 23 Jun 2003 21:54:32 +0000, Bob Tennent wrote:

> My son accesses the network via my IP-masquerading Linux box. He uses
> something called e-mule which results in continuous heavy loading of
> our cable connection to the internet. How, apart from cutting him off
> completely, can I throttle his access so I can get some packets in or
> out?
>
> Bob T.

What is your current network setup?
Reply With Quote
  #2 (permalink)  
Old 06-23-2003
nunya
 
Posts: n/a
Default Re: throttling network access

On Mon, 23 Jun 2003 21:54:32 +0000, Bob Tennent wrote:

> My son accesses the network via my IP-masquerading Linux box. He uses
> something called e-mule which results in continuous heavy loading of
> our cable connection to the internet. How, apart from cutting him off
> completely, can I throttle his access so I can get some packets in or
> out?
>
> Bob T.

If the traffic you wish to limit is through one NIC, simply use something
such as:
tc qdisc add dev eth# root tbf rate 207Kbit buffer 5Kb/8 limit 10Kb
(207Kbit is 80% of 256Kbit in this example, so set according to your needs)
Reply With Quote
  #3 (permalink)  
Old 06-23-2003
Bob Tennent
 
Posts: n/a
Default throttling network access

My son accesses the network via my IP-masquerading Linux box. He uses
something called e-mule which results in continuous heavy loading of
our cable connection to the internet. How, apart from cutting him off
completely, can I throttle his access so I can get some packets in or
out?

Bob T.
Reply With Quote
  #4 (permalink)  
Old 06-24-2003
Bob Tennent
 
Posts: n/a
Default Re: throttling network access

On Mon, 23 Jun 2003 19:51:46 +0000, nunya wrote:

>> My son accesses the network via my IP-masquerading Linux box. He uses
>> something called e-mule which results in continuous heavy loading of
>> our cable connection to the internet. How, apart from cutting him off
>> completely, can I throttle his access so I can get some packets in or
>> out?


> What is your current network setup?


Linux box with 2 NICs, one to a cable modem, the other to a hub into
which two other computers connect. The Linux box uses IP-masquerading to
forward packets to/from the other computers from/to the internet.

Bob T.
Reply With Quote
  #5 (permalink)  
Old 06-24-2003
Bob Tennent
 
Posts: n/a
Default Re: throttling network access

On Mon, 23 Jun 2003 19:54:42 +0000, nunya wrote:

>> My son accesses the network via my IP-masquerading Linux box. He
>> uses something called e-mule which results in continuous heavy
>> loading of our cable connection to the internet. How, apart from
>> cutting him off completely, can I throttle his access so I can get
>> some packets in or out?


> If the traffic you wish to limit is through one NIC, simply use something
> such as:


> tc qdisc add dev eth# root tbf rate 207Kbit buffer 5Kb/8 limit 10Kb


I'm glad it's so simple :+) (Why isn't there a man page for tc?)

Would it be possible not to limit the bandwidth at all times but to give
non-forwarded packets higher priority, a kind of "nice" for networking?

Bob T.
Reply With Quote
  #6 (permalink)  
Old 06-24-2003
lcoe
 
Posts: n/a
Default Re: throttling network access

Bob Tennent <BobT@cs.queensu.ca> wrote:
> On Mon, 23 Jun 2003 19:54:42 +0000, nunya wrote:


> >> My son accesses the network via my IP-masquerading Linux box. He
> >> uses something called e-mule which results in continuous heavy
> >> loading of our cable connection to the internet. How, apart from
> >> cutting him off completely, can I throttle his access so I can get
> >> some packets in or out?

>
> > If the traffic you wish to limit is through one NIC, simply use something
> > such as:


> > tc qdisc add dev eth# root tbf rate 207Kbit buffer 5Kb/8 limit 10Kb


> I'm glad it's so simple :+) (Why isn't there a man page for tc?)


> Would it be possible not to limit the bandwidth at all times but to give
> non-forwarded packets higher priority, a kind of "nice" for networking?
> Bob T.


i don't have any idea of your linux cpu speed, but just acting as the
gateway is going to slow it down, maybe that is really most of your
problem.

if so, a cheapie NAT router would put all hosts on the same lan, but
you lose some flexibility in controlling the kiddies' access to the
wan. --Loren

Reply With Quote
  #7 (permalink)  
Old 06-24-2003
Bob Tennent
 
Posts: n/a
Default Re: throttling network access

On Tue, 24 Jun 2003 11:15:09 GMT, lcoe wrote:

>> >> My son accesses the network via my IP-masquerading Linux box. He
>> >> uses something called e-mule which results in continuous heavy
>> >> loading of our cable connection to the internet. How, apart from
>> >> cutting him off completely, can I throttle his access so I can get
>> >> some packets in or out?


> i don't have any idea of your linux cpu speed, but just acting as the
> gateway is going to slow it down, maybe that is really most of your
> problem.


No evidence of that from top: typically 98% idle.

Bob T.
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:34 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0