问题初步解决:
吞吐量增大:
1. 按照Rohan建议,安装ns-3-dev 开发版本,安装多次,中间想删除原先ns-3.26的文件及配置,清除干净,结果用了sudo apt-get --purge remove 命令,想删除原来的依赖包,使得软件源有问题,重装163软件源,又重装ns-3-dev,结果吞吐量增大了,确定还是版本问题:(debug 很重要)
BAS:
1250 bytes
totalPacketsThrough: 191003
Throughput: 19.1003 Mbit/s
1875 bytes
totalPacketsThrough: 147953
Throughput: 22.1929 Mbit/s
2500 bytes
totalPacketsThrough: 119749
Throughput: 23.9498 Mbit/s
3125 bytes
totalPacketsThrough: 100752
Throughput: 25.188 Mbit/s
3750 bytes
totalPacketsThrough: 87540
Throughput: 26.262 Mbit/s
4375 bytes
totalPacketsThrough: 77185
Throughput: 27.0147 Mbit/s
5000 bytes
totalPacketsThrough: 68979
Throughput: 27.5916 Mbit/s
5625 bytes
totalPacketsThrough: 62777
Throughput: 28.2496 Mbit/s
6250 bytes
totalPacketsThrough: 56973
Throughput: 28.4865 Mbit/s
6875 bytes
totalPacketsThrough: 52155
Throughput: 28.6852 Mbit/s
RTS/CTS 吞吐量:
1250 bytes
totalPacketsThrough: 184150
Throughput: 18.415 Mbit/s
1875 bytes
totalPacketsThrough: 157457
Throughput: 23.6185 Mbit/s
2500 bytes
totalPacketsThrough: 136754
Throughput: 27.3508 Mbit/s
3125 bytes
totalPacketsThrough: 121430
Throughput: 30.3575 Mbit/s
3750 bytes
totalPacketsThrough: 109253
Throughput: 32.7759 Mbit/s
4375 bytes
totalPacketsThrough: 99234
Throughput: 34.7319 Mbit/s
5000 bytes
totalPacketsThrough: 90869
Throughput: 36.3476 Mbit/s
5625 bytes
totalPacketsThrough: 83918
Throughput: 37.7631 Mbit/s
6250 bytes
totalPacketsThrough: 77869
Throughput: 38.9345 Mbit/s
6875 bytes
totalPacketsThrough: 72432
Throughput: 39.8376 Mbit/s