From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stef Coene Date: Thu, 21 Oct 2004 19:22:31 +0000 Subject: Re: [LARTC] can't understand howto example Message-Id: <200410212122.31193.stef.coene@docum.org> List-Id: References: <41776403.9040504@wp.pl> In-Reply-To: <41776403.9040504@wp.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org 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 destinat= ion=20 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 count= s=20 and that limits the matching packets to a certain rate (${DOWNLINK}kbit in = this example). Stef --=20 stef.coene@docum.org =A0"Using Linux as bandwidth manager" =A0 =A0 =A0http://www.docum.org/ _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/