📄 readme
字号:
The way to run the various SPAN/PSM testcases is to CD to: .../ns-2.28/tcl/exand then run:run-span.pl tcl/mobility/scene/<scen>.scenYou might want to add a "-stop 120" to avoid the simulation from taking too long. That will generate the appropriate files in /tmp directory,from which you can use some of the output-parsing scripts below.mkscen.pl - creates scenario files; scenario files contain communication patterns and movement patternsalive.pl - parses packet trace file (.tr) and logs nodes dyingctr.pl - parses packet trace file (.tr) and reports loss rate, latency, hops, etctime.pl - parses stderr outputs (.out) and reports power consumption, coordinator election stats, etc. you will need to change some of the settings at the top of the time.pl file. for example, you will want to skip nodes in your scen file that are senders and receivers, stop accumulating stats after certain number of seconds, etc.parse_output.pl (calls parse_dump.pl) - generate topology pictures for every dump period; usage: parse_output.pl token < .out file creates token.0.*, token.1.*, etc, where the number is the dump period; can plot current topology using gnuplot. for example, to plot topology at dump period 0 load "token.0.core" there are other useful files that parse_output.pl generates, in the form of token.#.blahrun.pl - runs a scenario file w/o span and psm; usage: run.pl scenfile; generates .tr, .out, and .stdout files in /tmp/scenfilerun-span.pl - similar to run.pl, but uses psm and spanrun-psm.pl - similar to run.pl, uses psm but not spanuptime.pl - parses packet trace file (.tr) and reports sleep and idle time statscapacity.pl - parses packet trace file (.tr) and reports capacity periodically
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -