All of lore.kernel.org
 help / color / mirror / Atom feed
From: "tanxuey" <tanxuey@163.com>
To: lartc@vger.kernel.org
Subject: [LARTC] HTB+BRIDGE QUESTION !!!
Date: Fri, 18 Jul 2003 01:18:00 +0000	[thread overview]
Message-ID: <marc-lartc-105849118108149@msgid-missing> (raw)

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

Hi everybody! 

Today, I setup a bridge using brctl. my setup as following:

    192.168.2.26 |              |             |
                 |------------- | HTB+BR box  |-------- 192.168.2.18
                 |       eth0   |             | eth1
    192.168.2.29 |              |             |


I want to limit the traffics when i download data from 192.168.2.18 to 26 or 29.
My script as following:

tc qdisc add dev eth0 root handle 1: htb default 10

tc class add dev eth0 parent 1:0 classid 1:1 htb rate 10Mbit
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 1Mbit ceil 10Mbit prio 1
tc class add dev eth0 parent 1:1 classid 1:11 htb rate 7Mbit ceil 10Mbit prio 2
tc class add dev eth0 parent 1:1 classid 1:12 htb rate 2Mbit ceil 10Mbit prio 3

tc filter add dev eth0 parent 1:0 protocol ip prio 10 u32 match ip dst 192.168.2.26/32 flowid 1:11
tc filter add dev eth0 parent 1:0 protocol ip prio 10 u32 match ip dst 192.168.2.29/32 flowid 1:12

 26 download from 18,26 can get 900kbytes/s. if 26 and 29 download simultaneously, 26 get 400kbytes/s while 29 get 500kbytes/s .

I had thought 26 gets 875kbytes/s and 29 gets 250kbytes/s.

i do not know why

any idea any sugestion ! please tell me,  I really appreciate your help!!!

I have two email accounts. one is tanxuey@163.com which has added to your mail list the other is tanxueyuan@dg-telecom.com that is my company account. I used the wrong account. sorry and sorry for pool english!!!!


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

             reply	other threads:[~2003-07-18  1:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-18  1:18 tanxuey [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-07-18  0:58 [LARTC] HTB + BRIDGE QUESTION!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! HELP!!!!!!!!!!! tanxuey
2003-07-18  7:11 ` [LARTC] HTB + BRIDGE QUESTION!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Σταμ?τη? Κεκ??

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-105849118108149@msgid-missing \
    --to=tanxuey@163.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.