mgen & tc

Linux Advanced Routing and Traffic Control

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

 



Hello,
I have the following proplem. My DiffServ configuration is working fine when I do ping, but when I use mgen the packets are not detected at the core router.

Here is my core router configuration:

#!/bin/bash

tc qdisc add dev eth1 handle 1:0 root dsmark indices 64 set_tc_index
tc filter add dev eth1 parent 1:0 protocol ip prio 1 tcindex mask 0xfc shift 2

tc qdisc add dev eth1 parent 1:0 handle 2:0 htb
tc class add dev eth1 parent 2:0 classid 2:1 htb rate 10Mbit ceil 10Mbit

############ EF
tc class add dev eth1 parent 2:1 classid 2:10 htb rate 1500Kbit ceil 10Mbit
tc qdisc add dev eth1 parent 2:10 pfifo limit 5
tc filter add dev eth1 parent 2:0 protocol ip prio 1 handle 0x2e tcindex \
classid 2:10 pass_on

############ AF
tc class add dev eth1 parent 2:1 classid 2:20 htb rate 2500Kbit ceil 10Mbit
tc qdisc add dev eth1 parent 2:20 pfifo limit 20
tc filter add dev eth1 parent 2:0 protocol ip prio 2 handle 10 tcindex \
classid 2:20 pass_on


############ BE
tc class add dev eth1 parent 2:1 classid 2:30 htb rate 5Mbit ceil 10Mbit
tc qdisc add dev eth1 parent 2:30 red limit 60KB min 15KB max 45KB \
burst 20 avpkt 1000 bandwidth 10Mbit probability 0.4
tc filter add dev eth1 parent 2:0 protocol ip prio 3 handle 0 tcindex \
mask 0 classid 2:30 pass_on
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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