???iperf????????????
???????????? ???????[ 2014/1/26 11:18:34 ] ???????????????? ???????
????iperf???????????
????4. iperf???????
????iperf?е??????????????????μ?????????
????http://webfolder.wirelessleiden.nl/iperf/
???????????????????????????????????????????????????????????????????????-l??????????-b????????
????5. ???????????????????????
???????????????????????????????????????UDP??á????-u????????UDP?????iperf????TCP????
???????????server????????????檔
[ 3] local 192.168.1.1 port 2152 connected with 192.168.101.2 port 56768
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 0.0- 1.0 sec 1.40 MBytes 11.7 Mbits/sec 0.069 ms 0/14671 (0%)
[ 3] 1.0- 2.0 sec 1.40 MBytes 11.8 Mbits/sec 0.050 ms 0/14703 (0%)
[ 3] 2.0- 3.0 sec 1.40 MBytes 11.8 Mbits/sec 0.052 ms 0/14708 (0%)
[ 3] 3.0- 4.0 sec 1.40 MBytes 11.8 Mbits/sec 0.057 ms 0/14704 (0%)
[ 3] 4.0- 5.0 sec 1.40 MBytes 11.8 Mbits/sec 0.072 ms 0/14706 (0%)
[ 3] 5.0- 6.0 sec 1.40 MBytes 11.8 Mbits/sec 0.075 ms 0/14705 (0%)
[ 3] 6.0- 7.0 sec 1.40 MBytes 11.8 Mbits/sec 0.060 ms 0/14707 (0%)
[ 3] 7.0- 8.0 sec 1.40 MBytes 11.8 Mbits/sec 0.073 ms 0/14703 (0%)
[ 3] 8.0- 9.0 sec 1.40 MBytes 11.8 Mbits/sec 0.073 ms 0/14706 (0%)
[ 3] 0.0-10.0 sec 14.0 MBytes 11.8 Mbits/sec 0.064 ms 0/147020 (0%)
?????????????????????????client???????????????server????????????????????server???????????????????????????
????6. ???????
?????????????????iperf????????????????????????????????QOS??????????????
?????????????????Ping??????????????????????????????????IP????
?????????????????????????????????????????????????????????
??????????????????????????????????·?????????????????????????????????iperf??????????????tcpdump????????????wireshark????.cap???????ó?????????????????????
????7. ???TCP????????????????
???????????????????TCP????????????????????????????????????????TCP?????С?????????-w?????????
?????????????????capacity = bandwidth * round-trip time
??????????TCP??????С?????????????????
???????磬????????40Mbit/s?????·???????????2ms?????TCP??????С??С??40Mbit/s×2ms = 80kbit = 10Kbytes
????????????????iperf????TCP?????С????????????????????????????У??????С???????10Kbytes??????????????????????????????п????????????????
???????????
????-s ??server???????eg??iperf -s
????-c ??client???????host??server??????eg??iperf -c 222.35.11.23
??????ò???
????-f [k|m|K|M] ???????Kbits?? Mbits?? KBytes?? MBytes??????棬?????Mbits???λ??eg:iperf -c 222.35.11.23 -f K
????-i sec ???????λ??????????eg:iperf -c 222.35.11.23 -i 2
????iperf??client????server?????????
????server??????????????????ü?i?????????????????
????client ??????????????
????server ???????????
????-l ????????С???????8KB??eg:iperf -c 222.35.11.23 -l 16
??????????ò????????????в???
????-m ???tcp??mtu?
????-o ?????????????????????eg:iperf -c 222.35.11.23 -o c:iperflog.txt
????-p ???????????????????????????????eg:iperf -s -p 9999;iperf -c 222.35.11.23 -p 9999
????-u ???udpЭ??
????????htb????????udp??udp??????С?????????????
????-w ???TCP?????С???????8KB
????????????С???п??????
????-B ????????????????????????ж?????????????ò?????
????-C ?????汾????server???client??汾??????????
????-M ?趨TCP????????mtu?
????-N ?趨TCP?????
????-V ????ipv6?????
????server??ò???
????-D ??????????ipserf??eg:iperf -s -D
????-R ??iperf???????-D??eg:iperf -s -R
????client????ò???
????-d ??????????????
????-n ???????????????eg:iperf -c 222.35.11.23 -n 100000
????-r ????????????????
????-b ????????????????1Mbit/s
?????????qos???????????????????
????-t ??????????10??eg:iperf -c 222.35.11.23 -t 5
?????????10s
????-F ??????????????
????-T ???ttl?
??????

???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11