All of lore.kernel.org
 help / color / mirror / Atom feed
From: don-lartc@isis.cs3-inc.com (Don Cohen)
To: lartc@vger.kernel.org
Subject: [LARTC] sfq as solution to "Small ISP problems" and "How could I do this?"
Date: Sun, 09 Dec 2001 05:19:33 +0000	[thread overview]
Message-ID: <marc-lartc-100788041703904@msgid-missing> (raw)


 > Subject: [LARTC] Small ISP problems (CBQ)
 > First of all, this is what we want (in network priority order):
 > 1: SSH - to be realtime always.
I don't think you want this to always be high prio - that includes scp.

 > 2: HTTP to be fast, always.
Clearly can't be done if you have more http requests than your
bandwidth can handle.

 > 3-> ftp, direct-connect, kazaa and others to be throttled to X bandwidh per
 > IP.. (or not disturb http and ssh and use real fair quing.. )

I think what you really want is to prevent large flows from unfairly
impacting small ones, and that's what sfq does.  Try it and see
whether you get the behavior you want.

========
 > Subject: [LARTC] How could I do this?

 > If I want to limit bandwidth from a lot of ip addresses( every ip has a
 > limit),
Again, I wonder if this is really what you want.  You really want to
waste extra bandwidth?  Normally if you have 10 users you'd be willing
to let one use all of the bandwidth whenever none of the others want
any.  Now it's possible for an ISP that you promise some particular
bandwidth to each customer and don't want to give him more unless he
pays for it.  That's another situation.
If you're really in the first situation where you just want to give
equal service to all who are requesting it then what you really want
is a slight variant of sfq.  If you look at the code you'll see a hash
function that takes into consideration source and destination ip
address and port and maybe other stuff.  All you want to do is remove
all but the source IP (and then perhaps do what you can to prevent
source forgery!).  That will give fair service among all source IP
addresses.


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/

             reply	other threads:[~2001-12-09  5:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-09  5:19 Don Cohen [this message]
2001-12-11 22:52 ` [LARTC] sfq as solution to "Small ISP problems" and "How could I do this?" Paul Wisen

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-100788041703904@msgid-missing \
    --to=don-lartc@isis.cs3-inc.com \
    --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.