All of lore.kernel.org
 help / color / mirror / Atom feed
From: 박정은 <cupid99@dkpower.com>
To: lartc@vger.kernel.org
Subject: [LARTC] 'sport' is good but 'dport'?
Date: Fri, 11 Oct 2002 01:04:35 +0000	[thread overview]
Message-ID: <marc-lartc-103429827524219@msgid-missing> (raw)

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

hi all

I just tried to test whether the HTB works well or not .. (policy is very simple ^^;;)

I tried HTB simulator 'Ethloop' with lo (loopback ) and I found HTB works well....(very well)

So I changed lo to eth0  and tested ..

./tc qdisc add dev eth0 root handle 1: htb default 10
./tc class add dev eth0 parent 1: classid 1:1 htb rate 500kbps ceil 500kbps
./tc class add dev eth0 parent 1:1 classid 1:2 htb rate 180kbps ceil 500kbps
./tc class add dev eth0 parent 1:2 classid 1:10 htb rate 150kbps ceil 500kbps prio 2
./tc class add dev eth0 parent 1:2 classid 1:11 htb rate 5kbps ceil 10kbps prio 2
./tc class add dev eth0 parent 1:1 classid 1:12 htb rate 10kbps ceil 20kbps prio 1
./tc qdisc add dev eth0 parent 1:10 handle 20: pfifo limit 5
./tc qdisc add dev eth0 parent 1:11 handle 30: pfifo limit 5
./tc qdisc add dev eth0 parent 1:12 handle 40: sfq perturb 10

./tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip sport 23 0xffff flowid 1:11
./tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip sport 80 0xffff flowid 1:12

 It works well with outgoing packets ..  

 BUT!!   

  I changed last two lines to control Incoming packets .. like below..
./tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dport 23 0xfffe flowid 1:11
./tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dport 80 0xfffe flowid 1:12

It never works .. !!   If I send to 23 port 50kbps  It receive 50kbps.. I have no idea ..  

Did I thought wrong?    

thanks in advance...


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

             reply	other threads:[~2002-10-11  1:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-11  1:04 박정은 [this message]
2002-10-11  1:13 ` [LARTC] 'sport' is good but 'dport'? 박정은
2002-10-11 10:42 ` Stef Coene
2002-10-11 13:52 ` Michael T. Babcock
2002-10-11 13:54 ` Robert Penz

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-103429827524219@msgid-missing \
    --to=cupid99@dkpower.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 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.