http://www.cse.msu.edu/~wangbo1/ns2/
There are several posts on NS2 user mailing list explaining how to display RTS/CTS packet type in NS2 trace file. Here is an example. However, I failed to adopt them in NS 2.26 with new trace format. Here is my solution which just uses code written for old trace format. You only need to modify ns-2.26/trace/cmu-trace.cc in the following way and I think this solution can also work for NS versions later than 2.26.
void ......
|
Here is an exmaple NS2 trace file which displays the RTS/CTS/ACK information of MAC layer frame.
r -t 0.003583515 -Hs 0 -Hd -2 ... -Nl MAC -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt ACK
|
2 comments:
Can I use this code for ns2.35 to calculate rts cts information from trace files...
Can I use this code for ns2.35 to calculate rts cts information from trace files...
Post a Comment