From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Srikanth Goteti" Date: Mon, 01 Apr 2002 00:03:15 +0000 Subject: [LARTC] tc MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0006_01C1D8DE.54BDD1B0" Message-Id: List-Id: References: In-Reply-To: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_0006_01C1D8DE.54BDD1B0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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.=20 /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 ------=_NextPart_000_0006_01C1D8DE.54BDD1B0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 I am using the followings = commands to execute=20 to control bandwidth between
 
192.168.1.5 - 192.168.1.4 to = 50Mbps
 
but when I run these series of commands = and check=20 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=20 bandwidth 100Mbit avpkt 1000
/sbin/tc class add dev eth0 parent 10:0 = classid=20 10:1 cbq bandwidth 100Mbit rate 100Mbit weight 10Mbit maxburst 20 avpkt = 1000=20 allot 1514 prio 3
 
/sbin/tc class add dev eth0 parent 10:1 = classid=20 10:10 cbq bandwidth 100Mbit rate 50Mbit weight 5Mbit maxburst 20 avpkt = 1000=20 allot 1514 prio 3 bounded
 
/sbin/tc filter add dev eth0 parent = 10:0 protocol=20 ip prio 3 u32 match ip dst 192.168.1.4 flowid 10:10
I am also displaying the output of = qdisc and class=20 of tc
 
---------------------------------------------------------------<= /FONT>
# /sbin/tc -s qdisc show dev = eth0
qdisc cbq 10: rate 100Mbit = (bounded,isolated) prio=20 no-transmit
 Sent 26177842 bytes 18063 pkts (dropped 0, = overlimits=20 5406)
  borrowed 0 overactions 0 avgidle 62 undertime = 0
----------------------------------------------------------------= -
# /sbin/tc -s class show dev = eth0
class cbq 10: root rate 100Mbit = (bounded,isolated)=20 prio no-transmit
 Sent 26792774 bytes 19823 pkts (dropped 0, = overlimits=20 0)
  borrowed 0 overactions 0 avgidle 62 undertime 0
class = cbq 10:10=20 parent 10:1 rate 50Mbit (bounded) prio 3
 Sent 24900652 bytes = 16554 pkts=20 (dropped 0, overlimits 7194)
  borrowed 0 overactions 1314 = avgidle 1657=20 undertime 0
class cbq 10:1 parent 10: rate 100Mbit prio = 3
 Sent=20 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
 
------=_NextPart_000_0006_01C1D8DE.54BDD1B0-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/