Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: "James Ma" <jma@nsicomm.com>
To: lartc@vger.kernel.org
Subject: [LARTC] my qos-cbq didn't work
Date: Thu, 12 Dec 2002 23:09:09 +0000	[thread overview]
Message-ID: <marc-lartc-103973481703733@msgid-missing> (raw)

[-- Attachment #1: Type: text/plain, Size: 1591 bytes --]

Hi, All,

I implemented the following qos scripts in my Linux gateway (redhat7.3, kernel 2.4.18), put ftp server (10.10.3.49) on one side (eth0 nic) and ftp client (10.10.5.3) on the other side (eth1 nic). I tried to up load a file (211kbytes) from client to ftp server. I wanted to see a 22kbps transmission rate. Quite surprise, the ftp client showed transmission rate as 6.8e+02 kbytes/s (211k transmitted in 0.3 seconds). It was the same as it without qos implementation. So the conclusion is the QoS was not working at all.

Could anybody tell me what's wrong with the setting?

Thanks,



James



#!/bin/sh


OPTION="allot 1514 maxburst 20 avpkt 500"


tc qdisc del dev eth0 root 


tc qdisc add dev eth0 root handle 10: cbq bandwidth 10mbit avpkt 500

tc class add dev eth0 parent 10:0 classid 10:2 cbq bandwidth 10mbit rate 22kbps $OPTION prio 3 bounded

tc qdisc add dev eth0 parent 10:2 handle 20: cbq bandwidth 10mbit allot 1514 avpkt 500

tc class add dev eth0 parent 20: classid 20:10 cbq bandwidth 10mbit rate 11kbps $OPTION prio 3 bounded 

tc class add dev eth0 parent 20: classid 20:20 cbq bandwidth 10mbit rate 11kbps $OPTION prio3 bounded



tc filter add dev eth0 parent 10: protocol ip prio 3 u32 match ip tos 0xa0 0xff flowid 10:2

tc filter add dev eth0 parent 10: protocol ip prio 3 u32 match ip src 10.10.5.3/24 flowid 10:2

tc filter add dev eth0 parent 20: protocol ip prio 3 u32 match ip tos 0xa0 0xff flowid 20:10

tc filter add dev eth0 parent 20: protocol ip prio 3 u32 match ip src 10.10.5.3/24 flowid 20:20





[-- Attachment #2: Type: text/html, Size: 2189 bytes --]

             reply	other threads:[~2002-12-12 23:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-12 23:09 James Ma [this message]
2002-12-13 17:04 ` [LARTC] my qos-cbq didn't work Stef Coene

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-103973481703733@msgid-missing \
    --to=jma@nsicomm.com \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox