* [LARTC] Requesting Ingress Policing Examples
@ 2004-03-11 13:32 David McNab
0 siblings, 0 replies; only message in thread
From: David McNab @ 2004-03-11 13:32 UTC (permalink / raw)
To: lartc
Hi,
I'm a complete newbie to tc, but have been learning enough to get a very
basic grasp. (studying 'wondershaper', 'snitch' and other tc-using
scripts has helped muchly).
My question relates to ingress policing.
I've got a basic understanding of setting up specific ingress policers,
for example setting up one policer to limit HTTP download rates, and
another to limit FTP download rates.
But from what I can gather, these limits are independent. For instance,
if I set the HTTP download policer to a ceiling to 40kbit, and an FTP
policer to a download ceiling to 20kbit, then concurrent HTTP and FTP
downloads will total 60kbit.
tc qdisc add DEV ingress handle ffff:
tc filter add DEV parent ffff: protocol ip prio 50 u32 \
match ip sport 80 0xffff \
police rate 40kbit burst 10k drop flowid ffff:1
tc filter add DEV parent ffff: protocol ip prio 50 u32 \
match ip sport 21 0xffff \
police rate 20kbit burst 10k drop flowid ffff:1
But what I'm wanting to do is set up a download pool of (say) 64kbit,
and share that amongst n different filters.
I'm slowly gaining some clarity on how to do that via htb for outbound
traffic, but is there any any way to set up shared pools for inbound?
I saw on the list archives some example using 'index nnn' as an
argument, but the example was incomplete.
I've also scoured Google, but am not coming up with much.
Can anyone please point me to a rich set of working tc ingress policing
examples, enough for me to build a general understanding?
Thanks muchly in advance
--
Kind regards
David
--
leave this line intact so your email gets through my junk mail filter
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-03-11 13:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-11 13:32 [LARTC] Requesting Ingress Policing Examples David McNab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox