Re: Controlling ratios

Linux Advanced Routing and Traffic Control

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

 



On Tuesday 24 February 2004 06:12, Nandini wrote:
> Hi,
>   I have a situation where the queue to interface eth0 is full all the
> time.
>   I want my scheduler to send  4 packets to destination 1.2.3.4 followed
> by 2 packets to destination 5.6.7.8 ( I assume sufficient  packets are
> available all the time)
>
> Is this method of configuring correct
>  Assuming my *MTU* is 1514
>
> tc qdisc add dev eth0 root handle 1: prio
> tc filter add dev eth0 parent 1:0 prio 1 protocol ip u32 match ip dst
> 1.2.3.4/32 flowid 1:1
> tc filter add dev eth0 parent 1:0 prio 2 protocol ip u32 match ip dst
> 5.6.7.8/32 flowid 1:2
> tc qdisc add dev eth0 parent 1:1 handle 10: sfq quantum 6056
> tc qdisc add dev eth0 parent 1:2 handle 20: sfq quantum 3028
>
>  Will this work ??
Yes, but quantum is for htb classes, not for qdiscs.

Stef

-- 
stef.coene@xxxxxxxxx
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net
_______________________________________________
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