All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Ip accounting, masq'ing and bandwidth sharing
Date: Mon, 05 Aug 2002 17:59:25 +0000	[thread overview]
Message-ID: <marc-lartc-102857048401734@msgid-missing> (raw)
In-Reply-To: <marc-lartc-102853077629151@msgid-missing>

> What I'd like is either an explanation of how queueing on eth0 works for
> what I'm doing, or a set of rules/explanations of how to set up an
> appropriate set of queues on the ppp interface that handle the masq'ing
> settings..
You can't control how much data you receive.  But you can try to do it.  If 
you give one connection 1kbyte/s, tcp will control his behaviour untill the 
1kilobyte/s is reached.  But you can't prevent that they send more.  
All data that you receive on ppp0 is also transmitted on eth0.  So 
controlling the outgoing bandwidth on eth0 is the same as controlling the 
incoming traffic on ppp0 (if you don't run any special services on the box).  
You can't control incoming traffic (there some work arounds), so you have to 
use eth0 to control the incoming traffic on ppp0

If you make sure you never receive that so many data that the modem can't 
handle it, you will never have big queueus in the modem.  So limiting the 
total incoming traffic on ppp0 to 99% of the link, is a good idea.  Big 
queues means a long time for a packet to travel thru the queue, so this 
create big latency.

By creating a queue for each ip in the LAN, you can make sure that each IP 
has the same chance to send/receive something.  So launching 10 parallel 
downloads is useless.

Stef 

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  reply	other threads:[~2002-08-05 17:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-05  6:59 [LARTC] Ip accounting, masq'ing and bandwidth sharing Simon Bland
2002-08-05 17:59 ` Stef Coene [this message]
2002-08-06 18:22 ` raptor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-102857048401734@msgid-missing \
    --to=stef.coene@docum.org \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.