Re: [LARTC] HOW CAN I PRIORITIZE THE ICMP PACKETS

Linux Advanced Routing and Traffic Control

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

 



Thanks for try to help me, i apprecite so much this.


Well

this is my cbq.init configuration, how can modify this to priorize ICMP
packets [ping service]


Thanks

Alexandra

#!/bin/sh

DEV="dev eth1"
TTOPIC=207.100.136.194
MORTEG=207.100.136.208
MCADEN=207.100.136.233
KLAPEN=207.100.136.199
JSABAN=207.100.136.201
OTHERS=207.100.136.0/24

tc qdisc add $DEV root handle 10: cbq bandwidth 100Mbit avpkt 1000

tc class add $DEV parent 10:0 classid 10:1 cbq bandwidth 100Mbit rate
100Mbit allot 1514 weight 10Mbit prio 8 maxburst 20 avpkt 1000

tc class add $DEV parent 10:1 classid 10:100 cbq bandwidth 100Mbit rate
128Kbit allot 1514 weight 12Kbit prio 5 maxburst 20 avpkt 1000 bounded

tc class add $DEV parent 10:100 classid 10:1000 cbq bandwidth 128Kbit
rate 16Kbit allot 1514 weight 1Kbit prio 1 maxburst 20 avpkt 1000
bounded
tc class add $DEV parent 10:100 classid 10:2000 cbq bandwidth 128Kbit
rate 16Kbit allot 1514 weight 1Kbit prio 2 maxburst 20 avpkt 1000
bounded
tc class add $DEV parent 10:100 classid 10:3000 cbq bandwidth 128Kbit
rate 8Kbit allot 1514 weight 1Kbit prio 3 maxburst 20 avpkt 1000 bounded
tc class add $DEV parent 10:100 classid 10:4000 cbq bandwidth 128Kbit
rate 8Kbit allot 1514 weight 1Kbit prio 4 maxburst 20 avpkt 1000 bounded
tc class add $DEV parent 10:100 classid 10:5000 cbq bandwidth 128Kbit
rate 8Kbit allot 1514 weight 1Kbit prio 4 maxburst 20 avpkt 1000 bounded
tc class add $DEV parent 10:100 classid 10:6000 cbq bandwidth 128Kbit
rate 84Kbit allot 1514 weight 1Kbit prio 5 maxburst 20 avpkt 1000
bounded

tc qdisc add $DEV parent 10:1000 tbf rate 16Kbit buffer 10Kb/8 limit
15Kb
tc qdisc add $DEV parent 10:2000 tbf rate 16Kbit buffer 10Kb/8 limit
15Kb
tc qdisc add $DEV parent 10:3000 tbf rate 16Kbit buffer 10Kb/8 limit
15Kb
tc qdisc add $DEV parent 10:4000 tbf rate 16Kbit buffer 10Kb/8 limit
15Kb
tc qdisc add $DEV parent 10:5000 tbf rate 16Kbit buffer 10Kb/8 limit
15Kb
tc qdisc add $DEV parent 10:6000 tbf rate 16Kbit buffer 10Kb/8 limit
15Kb

tc filter add $DEV parent 10:0 protocol ip prio 25 u32 match ip dst
$TTOPIC flowid 10:1000
tc filter add $DEV parent 10:0 protocol ip prio 25 u32 match ip dst
$MORTEG flowid 10:2000
tc filter add $DEV parent 10:0 protocol ip prio 100 u32 match ip dst
$MCADEN flowid 10:3000
tc filter add $DEV parent 10:0 protocol ip prio 100 u32 match ip dst
$KLAPEN flowid 10:4000
tc filter add $DEV parent 10:0 protocol ip prio 100 u32 match ip dst
$JSABAN flowid 10:5000
tc filter add $DEV parent 10:0 protocol ip prio 100 u32 match ip dst
$OTHERS flowid 10:6000


"Wingtung.Leung" wrote:
> 
> On Thu, 3 May 2001, Alexandra Alvarado wrote:
> 
> > Obviously this occur when I configure the cbq [64Kbit], when i turn cbq
> > off all is ok, BUT I NEED CONTROL THE BANDWITH all traffic minus the
> > ping service.
> >
> > That is the reason why I need that the ping service not be controlled
> > [or be prioritized], FOR THE CLIENTS, can you give me a good example for
> > that? :)
> 
> It depends how you select your pakkets for putting in the bandwidth
> limited queues. Just don't mark the ICMP packets or adjust the filter
> so they have enough bandwidth. Or create a seperate class for ICMP
> messages.
> 
> Please be more specific ..
> 
> --
> CAPS = SHOUTING = (maybe) impolite
> 
> _______________________________________________
> LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/



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