Hi,
I am using the followings commands to execute to control bandwidth between
192.168.1.5 - 192.168.1.4 to 50Mbps
but when I run these series of commands and check the bandwidth between these I
get only 19Mbps.
/sbin/tc qdisc del dev eth0 root
/sbin/tc qdisc add dev eth0 root handle 10: cbq bandwidth 100Mbit avpkt 1000
/sbin/tc class add dev eth0 parent 10:0 classid 10:1 cbq bandwidth 100Mbit rate
100Mbit weight 10Mbit maxburst 20 avpkt 1000 allot 1514 prio 3
/sbin/tc class add dev eth0 parent 10:1 classid 10:10 cbq bandwidth 100Mbit rate
50Mbit weight 5Mbit maxburst 20 avpkt 1000 allot 1514 prio 3 bounded
/sbin/tc filter add dev eth0 parent 10:0 protocol ip prio 3 u32 match ip dst
192.168.1.4 flowid 10:10
I am also displaying the output of qdisc and class of tc
---------------------------------------------------------------
# /sbin/tc -s qdisc show dev eth0
qdisc cbq 10: rate 100Mbit (bounded,isolated) prio no-transmit
Sent 26177842 bytes 18063 pkts (dropped 0, overlimits 5406)
borrowed 0 overactions 0 avgidle 62 undertime 0
-----------------------------------------------------------------
# /sbin/tc -s class show dev eth0
class cbq 10: root rate 100Mbit (bounded,isolated) prio no-transmit
Sent 26792774 bytes 19823 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 62 undertime 0
class cbq 10:10 parent 10:1 rate 50Mbit (bounded) prio 3
Sent 24900652 bytes 16554 pkts (dropped 0, overlimits 7194)
borrowed 0 overactions 1314 avgidle 1657 undertime 0
class cbq 10:1 parent 10: rate 100Mbit prio 3
Sent 24900652 bytes 16554 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 60 undertime 0
Thanks in advance,
regards,
Srikanth Goteti
Research Assitant,
Dept. of Computer Science,
University of Houston