ネットワークパフォーマンスを測る

windowsではTTCP.EXEを利用する。CD-ROMの\VALUEADD\MSFT\NET\TOOLSから取り出して使う。
debianではaptitude install nttcpでOK

待ち受け側は
winだと ttcp.exe -r で待機
debianだと nttcp -iで待機

測定側は
win->winだと TTCP.exe -t マシン名
win->debianだと TTCP -p5037 -t マシン名
debian->winだと nttcp -p5001 マシン名
debian->debian nttcp マシン名


結果はwinだとreal millisecondsの値

ttcp-t: 16777216 bytes in 2054 real milliseconds = 7976 KB/sec
ttcp-t: 2048 I/O calls, msec/call = 1, calls/sec = 997, bytes/call = 8192

この例だと 7976KB/secが性能値。

debianだと5番目のフィールドが KB/sec
$ nttcp localhost
l 8388608 0.02 0.02 3410.0033 3355.4432 2048 104065.04 102400.0
1 8388608 0.02 0.02 3420.9545 3355.4432 2049 104450.22 102450.0