引用自:http://hi.baidu.com/fishzy0819/blog/item/8ca13af661e2c12b730eec5a.html
特此声明
1、使用 trace 新格式
**注:仅对无线模拟有用
$ns_ use-newtrace
set tracefd
[open $opt(tr) w]
$ns_ trace-all $tracefd
2、trace 新格式说明
s -t 0.267662078 -Hs 0 -Hd -1 -Ni 0
-Nx 5.00 -Ny 2.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 0 -Md
0 -Ms 0 -Mt 0 -Is 0.255 -Id -1.255 -It message -Il 32 -If 0 -Ii 0
-Iv 32
s -t 0.000001000 -Hs 8 -Hd -2 -Ni 8 -Nx 113.58 -Ny 410.32 -Nz 0.00
-Ne 10000.000000 -Nl AGT -Nw --- -Ma 0 -Md 0 -M