From: pablo daniel rey Date: Mon, 07 Feb 2005 15:37:14 +0000 Subject: Re: [LARTC] Where to assign weights to different flows? Message-Id: <200502071537.14434.listas@pablodanielrey.com.ar> List-Id: References: <200502071146.50616.listas@pablodanielrey.com.ar> In-Reply-To: <200502071146.50616.listas@pablodanielrey.com.ar> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org if you want to distinguish http flows form each other you must filter them by some criteria. the sfq treats flows equally. it doesn't have any weights assigned to the flows. you can achieve what you want by setting up some filters and assigning them to the bands of the prio qdisc something like this : tc qdisc add dev ppp0 handle 1:0 root prio tc filter add dev ppp0 parent 1:0 protocol ip prio 1 u32 match ip dport 80 flowid 1:1 -- band 0 (high priority) http tc filter add dev ppp0 parent 1:0 protocol ip prio 1 u32 match ip dport 21 flowid 1:2 -- band 1 (medium priority) ftp you can even filter the traffic by ip tc filter add dev ppp0 parent 1:0 protocol ip prio 1 u32 match ip src 192.168.0.1 flowid 1:1 -- band 0 hope that helps _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/