Re: bandwidth for bkbits.net (good news)

From: Andrea Arcangeli (andrea_at_suse.de)
Date: 08/31/03

  • Next message: Marcelo Tosatti: "Re: [PATCH] check_gcc for i386"
    Date:	Sun, 31 Aug 2003 04:42:48 +0200
    To: Jeff Sipek <jeffpc@optonline.net>
    
    

    On Sat, Aug 30, 2003 at 10:18:37PM -0400, Jeff Sipek wrote:
    > -----BEGIN PGP SIGNED MESSAGE-----
    > Hash: SHA1
    >
    > On Saturday 30 August 2003 21:39, Andrea Arcangeli wrote:
    > > On Sun, Aug 31, 2003 at 03:05:37AM +0200, Pascal Schmidt wrote:
    > > > On Sat, 30 Aug 2003, Larry McVoy wrote:
    > > > >> All you have to do is drop the incoming packets if they exceed
    > > > >> a certain bandwidth.
    > > > >
    > > > > If you think we haven't done that, think again.
    > > > >
    > > > > We're at the wrong end of the pipe to do that, I'm pretty sure that
    > > > > what you are describing simply won't work.
    > > >
    > > > In a way, you're on the right end of the pipe because the system
    > > > that does your traffic shaping is part of the general network, viewed
    > > > from the machines behind the shaper.
    > > >
    > > > Dropping the packets means that the sending side, at least if we're
    > > > talking TCP, will throttle its sending rate. But, depending on the
    > > > distance in hops to the sender, it may take up to a few seconds for
    > > > this to kick in. So I guess that's why it doesn't work for your
    > > > VoIP case - the senders don't notice fast enough that they should
    > > > slow down.
    > >
    > > that's because you don't limit the bkbits.net to a fixed rate. If you
    > > want to give priorities, it won't work well because it takes time to be
    > > effective, but if you rate limit hard both ways it has to work, unless
    > > you're under syn-flood ;) The downside is that you will waste bandwith
    > > (i.e. you will hurt the bkbits.net service even when you don't use
    > > voip), but it will work.
    >
    > How about giving something to voip as a hard limit and then using some shaper
    > to give it more if needed.

    it may take a few secs to rate limit the rest, the old tcp connections
    will keep sending packets that will get rejected when voip kicks in,
    that's the problem described in the email I answered to with the
    solution (i.e. limit bkbits.net hard). I'm pretty sure that rate
    limting bkbits.net hard (like we do with my brother's computer when he
    generates heavy traffic) will let voip to work flawlessy, but it has the
    downside of limiting the bandwith available to bkbits users even when
    nobody place phone calls. Upgrading the current line and using the
    software rate limiting with the solution I proposed, or adding a new
    line dedicated to bkbits.net, wouldn't be much different in practice (if
    it was me I'd choose it only in function of what's more cost effective,
    after double checking that my algorithm infact works fine for higher
    bandwidth too, I only tested it on 640kbit).

    Andrea
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Marcelo Tosatti: "Re: [PATCH] check_gcc for i386"

    Relevant Pages

    • Re: bandwidth for bkbits.net (good news)
      ... will throttle its sending rate. ... > effective, but if you rate limit hard both ways it has to work, unless ... How about giving something to voip as a hard limit and then using some shaper ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: bandwidth for bkbits.net (good news)
      ... outgoing acks and their incoming packets for every connection but voip ... but your voip will work. ... and the reason everything makes perfect sense is that ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: bandwidth for bkbits.net (good news)
      ... Assume the guaranteed bandwidth is much lower ... so voip will take it over as much as it can. ... think it's a matter of "if it works or not", I think it's a matter of ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 50% CPU user usage but top doesnt list any CPU unfriendly task
      ... >> The interesting program you mention is the VoIP application. ... >> multithreaded and is every thread using a little bit of CPU? ... "Debugging is twice as hard as writing the code in the first place. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)