cd shadow/resource/examples for d in shadow.data/host/*client*: do grep "transfer-complete" ${d}/* done |tee clients.log | wc -l
//tgen完成1000次传输
for d in shadow.data/hosts/*server*: do grep “ transfer-complete ”${d}/*; done | tee servers.log | wc -l
//客户端完成传输次数
cd ../.. # parse the shadow output file python src/tools/parse-shadow.py --help python src/tools/parse-shadow.py --prefix results resource/examples/shadow.log # parse tgen output files from all hosts python src/tools/parse-tgen.py --help python src/tools/parse-tgen.py --prefix results resource/examples/shadow.data/hosts/ # plot the results! python src/tools/plot-shadow.py --help python src/tools/plot-shadow.py --data results "example-plots"
//分析结果
cd resource/examples/ rm -rf shadow.data shadow.log shadow --tcp-windows=1 shadow.config.xml > window1.log mv shadow.data window1.data shadow --tcp-windows=1000 shadow.config.xml > window1000.log mv shadow.data window1000.data
////测试1和1000的结果
python ../../src/tools/parse-shadow.py --prefix=window1.results window1.log python ../../src/tools/parse-tgen.py --prefix=window1.results window1.data/hosts python ../../src/tools/parse-shadow.py --prefix=window1000.results window1000.log python ../../src/tools/parse-tgen.py --prefix=window1000.results window1000.data/hosts
//绘制结果