- Home Page of ProjectGuideline.com ›
- Forums ›
- Get Help to do your B.E., and M.E., M.Tech., & M.S., Project in Ns2 ›
- Need help with the wireless tracefile.
Dear sir:
When I simulated handover between UMTS and Wimax. I got a tracefile. And the following is part of the content.
s -t 11.048223581 -Hs 6 -Hd 12582913 -Ni 6 -Nx 50.00 -Ny 50.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw — -Ma 0 -Md 4000000 -Ms 8 -Mt 0 -Is 4194304.0 -Id 12582913.0 -It cbr -Il 506 -If 0 -Ii 107 -Iv 29 -Pn cbr -Pi 100 -Pf 0 -Po 0
r -t 11.048223621 -Hs 7 -Hd -2 -Ni 7 -Nx 62.48 -Ny 50.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw — -Ma 0 -Md 0 -Ms 0 -Mt 0
r 11.050005 3 4 cbr 500
0 1.0.0.0 3.0.1.0 101 108
+ 11.050005 4 6 cbr 500
0 1.0.0.0 3.0.1.0 101 108
– 11.050005 4 6 cbr 500
0 1.0.0.0 3.0.1.0 101 108
r -t 11.050268066 -Hs 7 -Hd 12582913 -Ni 7 -Nx 62.50 -Ny 50.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw — -Ma 0 -Md 4000000 -Ms 8 -Mt 0 -Is 4194304.0 -Id 12582913.0 -It cbr -Il 500 -If 0 -Ii 107 -Iv 29 -Pn cbr -Pi 100 -Pf 0 -Po 0
s -t 11.052001358 -Hs 6 -Hd -2 -Ni 6 -Nx 50.00 -Ny 50.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw — -Ma 0 -Md 0 -Ms 0 -Mt 0
s -t 11.052090247 -Hs 6 -Hd -2 -Ni 6 -Nx 50.00 -Ny 50.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw — -Ma 0 -Md 0 -Ms 0 -Mt 0
r -t 11.052090288 -Hs 7 -Hd -2 -Ni 7 -Nx 62.52 -Ny 50.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw — -Ma 0 -Md 0 -Ms 0 -Mt 0
r -t 11.052268066 -Hs 7 -Hd -2 -Ni 7 -Nx 62.52 -Ny 50.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw — -Ma 0 -Md 0 -Ms 0 -Mt 0
I use the newtrace for wireless communication. I use the media independent handover code defined by NIST to make the mobile node can communication with wimax bs and umts bs. The topology is
the communication between mobile node interface and bstation is wireless and the rest of the link is wire-based. Cbr traffic is transmitted from router0 to mobile node.
But I couldn’t understand the trace file such as:
s -t 11.052001358 -Hs 6 -Hd -2 -Ni 6 -Nx 50.00 -Ny 50.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw — -Ma 0 -Md 0 -Ms 0 -Mt 0
I thinks the new wireless trace format should be longer than this should be like the following
s -t 11.048223581 -Hs 6 -Hd 12582913 -Ni 6 -Nx 50.00 -Ny 50.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw — -Ma 0 -Md 4000000 -Ms 8 -Mt 0 -Is 4194304.0 -Id 12582913.0 -It cbr -Il 506 -If 0 -Ii 107 -Iv 29 -Pn cbr -Pi 100 -Pf 0 -Po 0
And could you explain what is the -Hd mean and how its value is negative. Is it supposed to be the id for the next hop? I think the id of any of the node I created should be positive.
It is a little bit longer. Many thanks
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!