My system: - proxmox-1.1
Network configuration:
Template for VE - Debian 4.0 (standard)
Hosts for testing:
VE101 (172.16.254.241)- shaper (consolidation and traffic shaping/control in one point - eth1)
VE120 - firewall (firewalling)
VE4001 (192.168.5.220) - STORE - samba fileserver
tatooine (172.16.254.245)- PC connected to vlan123 (shape net)
admin-pc (192.168.5.XX) - my PC connected to vlan10 (local net)
NETWORK: Speed: 1000/100Mb/s Duplex: Full
local net: 192.168.5.0/24 vlan10, vmbr0
shape net: 172.16.254.0/24 vlan123, vmbr2
-------------
Test without shaping:
Test VE101 -> VE120 14.2MB/s
Test VE101 -> tatooine 11.2MB/s
--------------
Simple script for shaping:
Test VE101 -> VE120 NO SHAPE AND CLASSIFIED between VE!!!
Test VE101 -> tatooine TRAFFIC SHAPE AND CLASSIFIED
Test VE4001 -> MY PC - TRAFFIC SHAPE AND CLASSIFIED ON VE101 !!!!!!!????????
VE4001 - without shaping
Test VE0 -> MY PC - TRAFFIC SHAPING AND CLASSIFIED !!!!!!!????????
VE0
My old system (ovzkernel-2.6.18-60.2) has no this bug.
Code:
uname -a
Linux vserver2 2.6.24-2-pve #1 SMP PREEMPT Wed Jan 14 11:32:49 CET 2009 x86_64 GNU/Linux
Code:
---------------------------
VE0 eth0 eth1
\ / /veth2003.0 - mailserver and other
vmbr2-vlan123 -bond0--vlan111--brdmz--veth2002.0 -server DNS in DMZ
| / \ \veth2001.1 - apache+tomacat....
| vlan555 vlan10 \-veth200X
| | \ \-
| vmbr1 --vmbr0(bridge) \
| | | \ |
veth120.0 | | veth120.1 veth120.2 veth120.3 veth120.X FIREWALL
(shape net) | | (loc net) (dmz) (loc net2) (loc net3)
| | |
brshape | veth4001.0 (STORE)
| |
veth101.1 veth101.0 (SHAPER)
(internet)
---------------------------
Hosts for testing:
VE101 (172.16.254.241)- shaper (consolidation and traffic shaping/control in one point - eth1)
VE120 - firewall (firewalling)
VE4001 (192.168.5.220) - STORE - samba fileserver
tatooine (172.16.254.245)- PC connected to vlan123 (shape net)
admin-pc (192.168.5.XX) - my PC connected to vlan10 (local net)
NETWORK: Speed: 1000/100Mb/s Duplex: Full
local net: 192.168.5.0/24 vlan10, vmbr0
shape net: 172.16.254.0/24 vlan123, vmbr2
-------------
Test without shaping:
Test VE101 -> VE120 14.2MB/s
Code:
scp root@172.16.254.241:/file.bin .
root@172.16.254.241's password:
file.bin 100% 256MB 14.2MB/s 00:18
--------------
Simple script for shaping:
Code:
----------
#!/bin/bash
tc qdisc add dev eth1 root handle 1: htb default 30
tc class add dev eth1 parent 1: classid 1:1 htb rate 10mbit burst 15k
tc class add dev eth1 parent 1:1 classid 1:10 htb rate 5mbit burst 15k
tc class add dev eth1 parent 1:1 classid 1:20 htb rate 3mbit ceil 3mbit burst 15k
tc class add dev eth1 parent 1:1 classid 1:30 htb rate 1mbit ceil 1mbit burst 15k
tc qdisc add dev eth1 parent 1:10 handle 10: sfq perturb 10
tc qdisc add dev eth1 parent 1:20 handle 20: sfq perturb 10
tc qdisc add dev eth1 parent 1:30 handle 30: sfq perturb 10
U32="tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32"
$U32 match ip dport 80 0xffff flowid 1:10
$U32 match ip sport 22 0xffff flowid 1:20
---------------
Code:
[B]tc -s class show dev eth1[/B]
class htb 1:10 parent 1:1 leaf 10: prio 0 rate 5000Kbit ceil 5000Kbit burst 15Kb cburst 7850b
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0
lended: 0 borrowed: 0 giants: 0
tokens: 24576 ctokens: 12560
class htb 1:1 root rate 10000Kbit ceil 10000Kbit burst 15Kb cburst 14100b
Sent 546 bytes 5 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0
lended: 0 borrowed: 0 giants: 0
tokens: 12199 ctokens: 11191
class htb 1:20 parent 1:1 leaf 20: prio 0 rate 3000Kbit ceil 3000Kbit burst 15Kb cburst 5349b
Sent 504 bytes 4 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0
lended: 4 borrowed: 0 giants: 0
tokens: 40662 ctokens: 13968
class htb 1:30 parent 1:1 leaf 30: prio 0 rate 1000Kbit ceil 1000Kbit burst 15Kb cburst 2850b
Sent 42 bytes 1 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0
lended: 1 borrowed: 0 giants: 0
tokens: 122560 ctokens: 22480
---------------------
Test VE101 -> VE120 NO SHAPE AND CLASSIFIED between VE!!!
Code:
gate120:/# scp root@172.16.254.241:/file.bin .
root@172.16.254.241's password:
file.bin 100% 256MB 28.4MB/s 00:09
class htb 1:20 parent 1:1 leaf 20: prio 0 rate 3000Kbit ceil 3000Kbit burst 15Kb cburst 5349b
Sent 6456 bytes 36 pkt (dropped 0, overlimits 0 requeues 0)
rate 136bit 0pps backlog 0b 0p requeues 0
lended: 36 borrowed: 0 giants: 0
tokens: 40662 ctokens: 13968
------------------------
Code:
tatooine:~# scp root@172.16.254.241:/file.bin .
root@172.16.254.241's password:
file.bin 3% 9024KB 338.4KB/s
class htb 1:20 parent 1:1 leaf 20: prio 0 rate 3000Kbit ceil 3000Kbit burst 15Kb cburst 5349b
Sent 10109716 bytes 6734 pkt (dropped 54, overlimits 0 requeues 0)
rate 18664bit 2pps backlog 0b 0p requeues 0
lended: 6734 borrowed: 0 giants: 0
tokens: 40662 ctokens: 13968
--------------------
Test VE4001 -> MY PC - TRAFFIC SHAPE AND CLASSIFIED ON VE101 !!!!!!!????????
Code:
scp root@192.168.5.220:/file.bin .
file.bin 1% 2672KB 322.0KB/s 320.0KB/s
Code:
[B]root@store:/# tc -s qdisc show dev eth0[/B]
qdisc pfifo_fast 0: root bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
Sent 444416061 bytes 538397 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0
SHAPING ON VETH -> SHAPING ON BOND INTERFACE !!!!scp root@XXXXXXX:/file.bin .
file.bin 1% 2672KB 322.0KB/s 320.0KB/s
VE0
Code:
[B] tc -s class show dev bond0[/B]
class htb 1:10 parent 1:1 leaf 10: prio 0 rate 5000Kbit ceil 5000Kbit burst 15728b cburst 8038b
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0
lended: 0 borrowed: 0 giants: 0
tokens: 24576 ctokens: 12560
class htb 1:1 root rate 10000Kbit ceil 10000Kbit burst 15727b cburst 14437b
Sent 5624 bytes 46 pkt (dropped 0, overlimits 0 requeues 0)
rate 1856bit 2pps backlog 0b 0p requeues 0
lended: 0 borrowed: 0 giants: 0
tokens: 12199 ctokens: 11191
class htb 1:20 parent 1:1 leaf 20: prio 0 rate 3000Kbit ceil 3000Kbit burst 15728b cburst 5478b
Sent 5352 bytes 44 pkt (dropped 0, overlimits 0 requeues 0)
rate 1760bit 2pps backlog 0b 0p requeues 0
lended: 44 borrowed: 0 giants: 0
tokens: 40662 ctokens: 13968
class htb 1:30 parent 1:1 leaf 30: prio 0 rate 1000Kbit ceil 1000Kbit burst 15728b cburst 2918b
Sent 272 bytes 2 pkt (dropped 0, overlimits 0 requeues 0)
rate 96bit 0pps backlog 0b 0p requeues 0
lended: 2 borrowed: 0 giants: 0
tokens: 121088 ctokens: 21008
Last edited: