2007年8月18日土曜日

ポリシング

以前 egress も police でできるのでは? と書いて、試してみた。
# tc qdisc add dev eth1 root handle 10: prio
# tc filter add dev eth1 parent 10: protocol ip prio 20 u32 match u8 0 0 police rate 1Mbit buffer 64Kb drop flowid :1
# iperf -c toptor4
------------------------------------------------------------
Client connecting to toptor4, TCP port 5001
TCP window size: 16.0 KByte (default)
------------------------------------------------------------
[ 3] local 172.27.129.1 port 57260 connected with 172.27.129.2 port 5001
[ 3] 0.0-10.0 sec 1.26 MBytes 1.05 Mbits/sec
それなり。ingress も同様で burst の値でだいぶ変わるけど、まぁそれなり....
あと flowid :1 も ingress 同様どうでも良いのか?

0 件のコメント: