All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lawrence MacIntyre <lpz@ornl.gov>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] HFSC
Date: Thu, 13 May 2004 13:52:11 +0000	[thread overview]
Message-ID: <40A37D8B.4020904@ornl.gov> (raw)
In-Reply-To: <marc-lartc-98548596122489@msgid-missing>

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

Thanks, Patrick.  That makes it a bit harder to manage from a remote 
machine.  I'll have to be very careful with that.  I'll try to figure 
out the implications of the default classification and send more email 
if I can't get it.

So I reordered the commands and changed them around.  It looks like I am 
either doing something strange or I have found a bug.  When I execute 
the following script, the UDP traffic on port 1234 continues for a few 
seconds and then stops.  When I examine the tc data, it shows no change 
in the periods or amount of bytes flowing after the flow stops.  I am 
enclosing the command  and the output.

Thanks again!

Patrick McHardy wrote:
> Lawrence MacIntyre wrote:
> 
>> /usr/local/bin/tc qdisc add dev eth0 root handle 1: hfsc
>>
>> /usr/local/bin/tc class add dev eth0 parent 1: classid 1:1 hfsc ul m1 
>> 30mbit d 0 m2 30mbit ls m1 30mbit d 0 m2 30mbit
>>
>> When the second command is executed, the machine simply drops all 
>> packets going through it.
> 
> 
> Unlike HTB, HFSC drops unclassified packets. You need to setup filters
> or use the "default" classification.
> 
> Regards
> Patrick

-- 
     Lawrence MacIntyre     865.574.8696     lpz@ornl.gov
                Oak Ridge National Laboratory
High Performance Information Infrastructure Technology Group

[-- Attachment #2: hfsc.conf.4 --]
[-- Type: text/x-troff-man, Size: 919 bytes --]

#!/bin/bash
/usr/local/bin/tc qdisc add dev eth0 root handle 1: hfsc 

/usr/local/bin/tc class add dev eth0 parent 1: classid 1:1 hfsc ul m1 80mbit d 500 m2 30mbit ls m1 80mbit d 500 m2 30mbit
/usr/local/bin/tc class add dev eth0 parent 1:1 classid 1:10 hfsc ls m1 50mbit d 500 m2 20mbit
/usr/local/bin/tc class add dev eth0 parent 1:1 classid 1:11 hfsc ls m1 20mbit d 500 m2 10mbit
/usr/local/bin/tc class add dev eth0 parent 1:1 classid 1:12 hfsc ls m1 10mbit d 500 m2 10mbit

/usr/local/bin/tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dport 1234 0xffff flowid 1:10
/usr/local/bin/tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dport 5001 0xffff flowid 1:11
/usr/local/bin/tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dport 22 0xffff flowid 1:12
/usr/local/bin/tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip sport 22 0xffff flowid 1:12

[-- Attachment #3: data --]
[-- Type: text/plain, Size: 4157 bytes --]

[root@castor QoS]# ./tcshow.conf
class hfsc 1: root
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 period 0 level 2
 
class hfsc 1:11 parent 1:1 ls m1 20Mbit d 500us m2 10Mbit
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 period 0 level 0
 
class hfsc 1:1 parent 1: ls m1 80Mbit d 500us m2 30Mbit ul m1 80Mbit d 500us m2
30Mbit
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 period 492 work 7280180 bytes level 1
 
class hfsc 1:10 parent 1:1 ls m1 50Mbit d 500us m2 20Mbit
 Sent 7280180 bytes 5314 pkts (dropped 0, overlimits 0)
 period 492 work 7280180 bytes level 0
 
class hfsc 1:12 parent 1:1 ls m1 10Mbit d 500us m2 10Mbit
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 period 0 level 0
 
qdisc hfsc 1:
 Sent 7280180 bytes 5314 pkts (dropped 0, overlimits 6570)
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:10
  match 000004d2/0000ffff at 20
filter parent 1: protocol ip pref 1 u32 fh 800::801 order 2049 key ht 800 bkt 0
flowid 1:11
  match 00001389/0000ffff at 20
filter parent 1: protocol ip pref 1 u32 fh 800::802 order 2050 key ht 800 bkt 0
flowid 1:12
  match 00000016/0000ffff at 20
filter parent 1: protocol ip pref 1 u32 fh 800::803 order 2051 key ht 800 bkt 0
flowid 1:12
  match 00160000/ffff0000 at 20
[root@castor QoS]# ./tcshow.conf
class hfsc 1: root
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 period 0 level 2
 
class hfsc 1:11 parent 1:1 ls m1 20Mbit d 500us m2 10Mbit
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 period 0 level 0
 
class hfsc 1:1 parent 1: ls m1 80Mbit d 500us m2 30Mbit ul m1 80Mbit d 500us m2
30Mbit
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 period 965 work 14246630 bytes level 1
 
class hfsc 1:10 parent 1:1 ls m1 50Mbit d 500us m2 20Mbit
 Sent 14246630 bytes 10399 pkts (dropped 0, overlimits 0)
 period 965 work 14246630 bytes level 0
 
class hfsc 1:12 parent 1:1 ls m1 10Mbit d 500us m2 10Mbit
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 period 0 level 0
 
qdisc hfsc 1:
 Sent 14246630 bytes 10399 pkts (dropped 32, overlimits 12895)
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:10
  match 000004d2/0000ffff at 20
filter parent 1: protocol ip pref 1 u32 fh 800::801 order 2049 key ht 800 bkt 0
flowid 1:11
  match 00001389/0000ffff at 20
filter parent 1: protocol ip pref 1 u32 fh 800::802 order 2050 key ht 800 bkt 0
flowid 1:12
  match 00000016/0000ffff at 20
filter parent 1: protocol ip pref 1 u32 fh 800::803 order 2051 key ht 800 bkt 0
flowid 1:12
  match 00160000/ffff0000 at 20
[root@castor QoS]# ./tcshow.conf
class hfsc 1: root
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 period 0 level 2
 
class hfsc 1:11 parent 1:1 ls m1 20Mbit d 500us m2 10Mbit
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 period 0 level 0
 
class hfsc 1:1 parent 1: ls m1 80Mbit d 500us m2 30Mbit ul m1 80Mbit d 500us m2
30Mbit
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 period 965 work 14246630 bytes level 1
 
class hfsc 1:10 parent 1:1 ls m1 50Mbit d 500us m2 20Mbit
 Sent 14246630 bytes 10399 pkts (dropped 0, overlimits 0)
 period 965 work 14246630 bytes level 0
 
class hfsc 1:12 parent 1:1 ls m1 10Mbit d 500us m2 10Mbit
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 period 0 level 0
 
qdisc hfsc 1:
 Sent 14246630 bytes 10399 pkts (dropped 33, overlimits 12895)
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:10
  match 000004d2/0000ffff at 20
filter parent 1: protocol ip pref 1 u32 fh 800::801 order 2049 key ht 800 bkt 0
flowid 1:11
  match 00001389/0000ffff at 20
filter parent 1: protocol ip pref 1 u32 fh 800::802 order 2050 key ht 800 bkt 0
flowid 1:12
  match 00000016/0000ffff at 20
filter parent 1: protocol ip pref 1 u32 fh 800::803 order 2051 key ht 800 bkt 0
flowid 1:12
  match 00160000/ffff0000 at 20
[root@castor QoS]# ./hfscdel.conf

  parent reply	other threads:[~2004-05-13 13:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-25  2:14 [LARTC] HFSC Rick Goh
2004-02-26  2:39 ` syrius.ml
2004-02-26 13:39 ` Patrick McHardy
2004-02-28  2:59 ` syrius.ml
2004-02-28  6:22 ` Patrick McHardy
2004-02-28  6:42 ` Patrick McHardy
2004-05-12 16:36 ` Lawrence MacIntyre
2004-05-13 13:05 ` Patrick McHardy
2004-05-13 13:52 ` Lawrence MacIntyre [this message]
2004-05-13 14:23 ` Patrick McHardy
2004-05-13 17:43 ` Lawrence MacIntyre

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=40A37D8B.4020904@ornl.gov \
    --to=lpz@ornl.gov \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.