64 bytes from 192.168.7.86: icmp_seq=36 ttl=64 time=100 ms
64 bytes from 192.168.7.86: icmp_seq=37 ttl=64 time=100 ms
--- 192.168.7.86 ping statistics ---
38 packets transmitted, 34 received, 10% packet loss, time 37055ms
rtt min/avg/max/mdev = 100.363/100.594/102.102/0.495 ms, pipe 2
[root@localhost nistnet-3.0a]# cnistnet -u -a 192.168.7.88 192.168.7.87 --delay 100.000 --bandwidth 200000 --drop 5
addnistnet: 192.168.7.88:0 to 192.168.7.87:0 (prot 0 cos 0),
delay 100.000000 (sigma 0.000000 corr 0.000000),
bandwidth 200000, drop 5.000000 (corr 0.000000),
dup 0.000000 (corr 0.000000),
drdmin 0, drdmax 0, drdcongest 0
[root@localhost nistnet-3.0a]# cnistnet -R
cnistnet -a 192.168.7.88 192.168.7.87 --delay 100.000 --drop 5.0003 --bandwidth 200000
cnistnet -a 192.168.7.86 192.168.7.87 --delay 100.000 --drop 5.0003 --bandwidth 200000
[root@localhost nistnet-3.0a]#
上面是基本服务器的命令脚本,一般情况下,用 cnistnet -u ,查看是否启动,如果没有启动,会报一个没有目录的脚本,启动以后用cnistnet -R查看状态,可以看到相关的延迟,和抖动,还有控制相关的丢包.
发现cnistnet的软件还是不错的,可以模拟测试网络状况的,不过要加载一些库文件,上面的测试是在linux AS4 update5 系统下进行的.