All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ed Wildgoose <lists@wildgooses.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] 2 Questions on filtering incoming stuff
Date: Tue, 18 May 2004 07:21:22 +0000	[thread overview]
Message-ID: <40A9B972.9020905@wildgooses.com> (raw)
In-Reply-To: <40A92F1A.4030706@wildgooses.com>


>>> First is: Can I prioritise my "drops" on incoming traffic when the 
>>> link is overloaded.  ie instead of just tail dropping, can I 
>>> "prefer" to drop certain classes of traffic?  If so, do I do this by 
>>> setting up, say, a HTB tree like on the incoming, but the only 
>>> action at the leaf is to drop?
>>
>>
>> You can't set up a HTB or any classful qdiscs on incoming traffic, 
>> you can only create ingress policer filters.  You can setup different 
>> filters with different priorities, to try and drop one particular 
>> type of traffic moreso than others.
>
>
> Thanks, this is helpful.
> Thinking about it though, the different filters priorities isn't going 
> to help too much?  eg if I want to accept ACK's, then incoming SMTP, 
> then other bulk downloads, then of course I can setup prioritised 
> "bands" by limiting some stuff more than others.  But I don't think 
> that a simple priority system will let me accept up to full bandwidth 
> of each, but dropping in a preferential order?  (Or do you think 
> simply matching each with a 200Kb/s filter in priority order from 
> highest to lowest will do the trick?)


Aha, just seen that you can setup HTB filters on incoming if you use the 
IMQ filter.  This looks like it will do the trick.  (See ADSL Bandwidth 
HOWTO for details)

Will play with that first. 

I still think it might be an interesting project for someone to use the 
IMQ filter to record incoming bandwidth, and then delay outgoing 
ACK's...  Presumably one would need to have a queue of incoming packets 
and sizes available from the incoming interface, then watch ack's coming 
back and take them out of the queue (just like a real TCP stack).  
However, you then rate limit the speed at which they are removed.  Of 
course it gets more complicated with respect to non selective ACK's and 
retransmits from the source side...  It would reduce the amount of 
bandwidth due to retransmits anyway...

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

  parent reply	other threads:[~2004-05-18  7:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-17 21:31 [LARTC] 2 Questions on filtering incoming stuff Ed Wildgoose
2004-05-17 23:19 ` Andy Furniss
2004-05-18  0:25 ` Damion de Soto
2004-05-18  1:55 ` Andreas Klauer
2004-05-18  6:54 ` Ed Wildgoose
2004-05-18  7:18 ` Damion de Soto
2004-05-18  7:21 ` Ed Wildgoose [this message]
2004-05-18  7:56 ` Ed Wildgoose

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=40A9B972.9020905@wildgooses.com \
    --to=lists@wildgooses.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.