Re: Where to assign weights to different flows?

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux