All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Furniss <andy.furniss@dsl.pipex.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] tc rules for Internet Radio
Date: Fri, 19 Nov 2004 23:51:14 +0000	[thread overview]
Message-ID: <419E86F2.40104@dsl.pipex.com> (raw)
In-Reply-To: <200411161702.45717.Martin.Ward@durham.ac.uk>

Andy Furniss wrote:

> There are lots of complicated things you can do with policers/u32 but I 
> have no experience.
> 
> First thoughts are to mark all that aren't -sport 8000 and change the 
> police rule to police to police marked.
> 
> iptables -A PREROUTING -t mangle -p tcp ! --sport 8000 -j MARK --set-mark 1
> 
> tc qdisc add dev $DEV handle ffff: ingress
> 
> tc filter add dev $DEV parent ffff: protocol ip prio 1 handle 1 fw 
> police rate ${DOWNLINK}kbit burst 10k drop flowid :1
> 
> I haven't tested that.

Ignore that - it's no good if your stream(s) use much bandwidth.

If you only have one LAN interfave you can shape ingress by seting up 
queues on that.

Andy.


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

      parent reply	other threads:[~2004-11-19 23:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-16 17:02 [LARTC] tc rules for Internet Radio Martin Ward
2004-11-19 21:30 ` Andy Furniss
2004-11-19 23:51 ` Andy Furniss [this message]

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=419E86F2.40104@dsl.pipex.com \
    --to=andy.furniss@dsl.pipex.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.