- ›
- Forums ›
- Get Help to do your B.E., and M.E., M.Tech., & M.S., Project in Ns2 ›
- Need help with the wireless tracefile.
refer
http://nsnam.isi.edu/nsnam/index.php/NS-2_Trace_Formats
it says
“Note that the value for the -Hd flag may be -1 or -2. -1 means that the packet is a broadcast packet, and -2 means that the destination node has not been set. -2 is typically seen for packets that are passed between the agent (-Nl AGT) and routing (-Nl RTR) levels.”
If you are getting very high number, then it may be a partial compilation of ns2 trace related files.
Are you using
$ns use-newtrace
in your tcl script?
Thanks for your reply and help. Could you explain why the number of Hd become so high when transmit real cbr data? And what did you mean by partial compilation of ns2 trace related files? I could’t understand it. Should its value be one of the node id which is from 0 to 7? I use NOAH routing protocol for wimax configuration. Is this the reason?
I do use $ns use-newtrace. And the router0 is the transmitter while the mobile node is receiver. The scenario consists of both wire and wireless connection so the trace file has both format. But I can’t understand why the trace format for some wireless link are shorter than the standard one. Does that mean there is no data transmission? But there should be some signalling message such as RA or Sol.
Thanks very much!
what did you mean by partial compilation of ns2 trace related files?
Ans : if you are trying to add some new agent or protocol, if there is some change in trace support, then it should al so be done properly. In some cases, the simulation will run without the new trace support but, the output trace file will not reflect some events.
Should its value be one of the node id which is from 0 to 7
Ans : No. according to manual it is not node id.
I use NOAH routing protocol for wimax configuration. Is this the reason?
Ans : While adding NOAH routing protocol there is no additions for trace support. It means the packets of NOAH will use one of the existing trace supports. So probably it will not be a problem.
But I can’t understand why the trace format for some wireless link are shorter than the standard one.
Ans : probably it is due to the mixed scenario. Wired node trace is little bit different from wireless node trace.
Discuss Through WhatsApp