All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Piotr Wójcicki" <pwl@4me.pl>
To: lartc@vger.kernel.org
Subject: [LARTC] Token Bucket Filter and Dropping
Date: Tue, 08 May 2007 11:44:29 +0000	[thread overview]
Message-ID: <002a01c79166$3e53a7b0$bafaf710$@pl> (raw)

I am trying to create my own Token Bucket Filter. However, I have a problem
with packet dropping.

Scenario :
I got two streams 20KB/s each.
I got one bucket with rate 20KB/s

I put both streams into this bucket.

When buffer is full packets need to be dropped. The problem is that only
every other packet needs to be dropped in this scenario.
Streams are the same so queue looks like that :

S1  | S2 | S1 | S2

Packets form both streams are one by one. 
The result is that all packets from stream S1 are being dropped and all
packets from Stream S2 are being sent. 
Ideally half of dropped packets would be from S1 and half from S1.

What are possible solutions to this problem ?


Piotr Wojcicki

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

             reply	other threads:[~2007-05-08 11:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-08 11:44 Piotr Wójcicki [this message]
2007-05-08 14:03 ` [LARTC] Token Bucket Filter and Dropping Marco Aurelio
2007-05-08 15:08 ` Piotr Wójcicki
2007-05-09 20:24 ` John Default

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='002a01c79166$3e53a7b0$bafaf710$@pl' \
    --to=pwl@4me.pl \
    --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.