All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] can't understand howto example
@ 2004-10-21  7:23 Hariett Jones
  2004-10-21 19:22 ` Stef Coene
  0 siblings, 1 reply; 2+ messages in thread
From: Hariett Jones @ 2004-10-21  7:23 UTC (permalink / raw)
  To: lartc

tc class add dev $DEV parent 1: classid 1:1 htb rate ${UPLINK}kbit burst 6k

tc qdisc add dev $DEV handle ffff: ingress

tc filter add dev $DEV parent ffff: protocol ip prio 50 u32 match ip src \
  0.0.0.0/0 police rate ${DOWNLINK}kbit burst 10k drop flowid :1

why does the download is being sent to class 1 which is limited by uplink ?
why the rate is being mentioned in filter and in class ?

copied from : http://lartc.org/howto/lartc.cookbook.ultimate-tc.html#AEN2241



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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [LARTC] can't understand howto example
  2004-10-21  7:23 [LARTC] can't understand howto example Hariett Jones
@ 2004-10-21 19:22 ` Stef Coene
  0 siblings, 0 replies; 2+ messages in thread
From: Stef Coene @ 2004-10-21 19:22 UTC (permalink / raw)
  To: lartc

On Thursday 21 October 2004 09:23, Hariett Jones wrote:
> tc class add dev $DEV parent 1: classid 1:1 htb rate ${UPLINK}kbit burst 6k
This is for packets leaving device $DEV.

> tc qdisc add dev $DEV handle ffff: ingress
>
> tc filter add dev $DEV parent ffff: protocol ip prio 50 u32 match ip src \
>   0.0.0.0/0 police rate ${DOWNLINK}kbit burst 10k drop flowid :1
This is for packets entering device $DEV.  "flowid :1" is an other destination 
as "classid 1:1" in the previous line.  Read "flowid :1" as "flowid ffff:1".

> why does the download is being sent to class 1 which is limited by uplink ?
> why the rate is being mentioned in filter and in class ?
For ingress, the destination is not important.  It's the policer that counts 
and that limits the matching packets to a certain rate (${DOWNLINK}kbit in 
this example).

Stef

-- 
stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-10-21 19:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-21  7:23 [LARTC] can't understand howto example Hariett Jones
2004-10-21 19:22 ` Stef Coene

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.