* [LARTC] HTB + BRIDGE QUESTION!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! HELP!!!!!!!!!!!
@ 2003-07-18 0:58 tanxuey
2003-07-18 7:11 ` [LARTC] HTB + BRIDGE QUESTION!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Σταμ?τη? Κεκ??
0 siblings, 1 reply; 3+ messages in thread
From: tanxuey @ 2003-07-18 0:58 UTC (permalink / raw)
To: lartc
[-- Attachment #1: Type: text/plain, Size: 1297 bytes --]
Hi everybody!
I am very glad to get htb test information from www.docum.org for the htb performance.
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, but 26 and 29 download simultaneously, 26 get 400kbytes/s while 29 get 500kbytes/s .
i do not know why
any idea any sugestion ! please tell me, I really appreciate your help!!!
[-- Attachment #2: Type: text/html, Size: 3398 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [LARTC] HTB + BRIDGE QUESTION!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2003-07-18 0:58 [LARTC] HTB + BRIDGE QUESTION!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! HELP!!!!!!!!!!! tanxuey
@ 2003-07-18 7:11 ` Σταμ?τη? Κεκ??
0 siblings, 0 replies; 3+ messages in thread
From: Σταμ?τη? Κεκ?? @ 2003-07-18 7:11 UTC (permalink / raw)
To: lartc
In a bridge you must have also some classes an filters on the second
ethernet interface.
by having the same classes for both network interfaces and to specify
filters to classify the traffic you can control both incomming and
outgoing traffic.
In your policy if you want to limit the traffic to 1Mbit you have to
specify also the same amount as ceil cause ceil specifies the amount of
bandwidth that a class can allocate but when is needed from some other
class then it will be deallocated. Thus you saw too fast downloads. If
you have rate and ceil exactly the same then you make the guarateed to
be the only traffic that must be allocated.
tanxuey wrote:
> Hi everybody!
> I am very glad to get htb test information from *www.docum.org*
> <http://www.docum.org> for the htb performance.
> 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, but 26 and 29 download
> simultaneously, 26 get *400kbytes*/s while 29 get 500kbytes/s .
> i do not know why
> any idea any sugestion ! please tell me, I really appreciate your help!!!
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* [LARTC] HTB+BRIDGE QUESTION !!!
@ 2003-07-18 1:18 tanxuey
0 siblings, 0 replies; 3+ messages in thread
From: tanxuey @ 2003-07-18 1:18 UTC (permalink / raw)
To: lartc
[-- 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 --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-07-18 7:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-18 0:58 [LARTC] HTB + BRIDGE QUESTION!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! HELP!!!!!!!!!!! tanxuey
2003-07-18 7:11 ` [LARTC] HTB + BRIDGE QUESTION!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Σταμ?τη? Κεκ??
-- strict thread matches above, loose matches on Subject: below --
2003-07-18 1:18 [LARTC] HTB+BRIDGE QUESTION !!! tanxuey
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.