Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: "Mindaugas Riauba" <mind@bi.lt>
To: lartc@vger.kernel.org
Subject: [LARTC] Semi-shaped traffic
Date: Sat, 21 Dec 2002 06:58:50 +0000	[thread overview]
Message-ID: <marc-lartc-104045399325537@msgid-missing> (raw)


  During my tests I'm starting to feel stupid :). Traffic
shaping works quite on its own.

  System: RedHat 7.3, RedHat kernel 2.4.18-18.7.xsmp, HTB
version 3.6, interfaces eth0 and eth1 are acting as bridge br0.

  If TCP shaping almost works, it just exceeds limits UDP
is not shaped. Traffic flows PC=>eth0=>eth1=>PC. Statistics
shown is for just UDP traffic (1mbit of small udp packets).
What strange is that I do not see dropped or overlimits
packets.

  Lots of info is at the end of the letter. Where is my mistake?

  Thanks,

  Mindaugas

================================
$TC qdisc del dev eth1 root
$TC qdisc add dev eth1 root handle 1: htb
$TC class add dev eth1 parent 1: classid 1:200 htb rate 256kbit
$TC qdisc add dev eth1 parent 1:200 handle 200: sfq perturb 10
$TC filter add dev eth1 parent 1: protocol ip prio 1 u32 match ip dst $ip
flowid 1:200

#for w in "qdisc" "class" "filter"; do bin/tc -s -d $w show dev eth1; echo;
done
qdisc sfq 200: quantum 1514b limit 128p flows 128/1024 perturb 10sec
 Sent 25485900 bytes 424765 pkts (dropped 0, overlimits 0)

 qdisc htb 1: r2q 10 default 0 direct_packets_stat 552 ver 3.6
 Sent 25553103 bytes 425317 pkts (dropped 0, overlimits 0)


class htb 1:200 root leaf 200: prio 0 quantum 3276 rate 256Kbit ceil 256Kbit
burst 1919b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 25486560 bytes 424776 pkts (dropped 0, overlimits 0)
 rate 162710bps 2711pps
 lended: 424776 borrowed: 0 giants: 0
 tokens: 30 ctokens: 30


filter parent 1: protocol ip pref 1 u32
filter parent 1: protocol ip pref 1 u32 fh 800: ht divisor 1
filter parent 1: protocol ip pref 1 u32 fh 800::800 order 2048 key ht 800
bkt 0 flowid 1:200
  match d5e28382/ffffffff at 16

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

             reply	other threads:[~2002-12-21  6:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-21  6:58 Mindaugas Riauba [this message]
2002-12-24 11:48 ` [LARTC] Semi-shaped traffic Mindaugas Riauba
2002-12-27  9:12 ` devik
2002-12-27  9:19 ` devik
2002-12-30  8:21 ` Mindaugas Riauba
2002-12-30 10:02 ` devik
2002-12-30 13:47 ` Mindaugas Riauba

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-104045399325537@msgid-missing \
    --to=mind@bi.lt \
    --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