throttling network access

Discussion in 'Linux Networking' started by nunya, Jun 23, 2003.

  1. nunya

    nunya Guest

    What is your current network setup?
     
    nunya, Jun 23, 2003
    #1
    1. Advertisements

  2. nunya

    nunya Guest

    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)
     
    nunya, Jun 23, 2003
    #2
    1. Advertisements

  3. nunya

    Bob Tennent Guest

    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.
     
    Bob Tennent, Jun 23, 2003
    #3
  4. nunya

    Bob Tennent Guest

    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.
     
    Bob Tennent, Jun 24, 2003
    #4
  5. nunya

    Bob Tennent Guest

    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.
     
    Bob Tennent, Jun 24, 2003
    #5
  6. nunya

    lcoe Guest

    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
     
    lcoe, Jun 24, 2003
    #6
  7. nunya

    Bob Tennent Guest

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

    Bob T.
     
    Bob Tennent, Jun 24, 2003
    #7
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.