[ns] conversion int to hex address format -> plot delay in MIP
aldous at free.fr
aldous at free.fr
Tue May 25 09:30:32 PDT 2004
Hi everybody,
I am a new user of NS2 and I have some questions about the information within
the trace file. I am currently using the example wireless3.tcl that you can find
in the Marc Greis tutorial presenting mobileIP.
In tat simulation you have two wired nodes W(0) and W(1) and two kind of
basestation Home agent (node 2) and foreign agent (node 3), and finally the
mobile node 4. A FTP communication is set between the node 0 and the MH 4.
I have found some scripts already written to compute delay or packet lost for a
particular flow IP but they are only made either for wired or wireless nodes. In
that case I am dealing with the two types. The problem is that the trace file is
composed of wired trace file and new wireless trace format, this give me some
misunderstanding
1.In the normal trace file the source and destination address are given in
integer, while in the source and destination are given in hexadecimal. I used to
know the difference but here I must admit that I can not find out how to make
the conversion. Ethernet address mean MAC addresses isn't it ?
2. Is there any way to see or to assign a particular MAC address or node id to a
particular node. I have found the function $node id and $node node-addr in the
documentation but I don't know how to use them at all.
3.If I understand well the IP or MAC destination of the message are the node
which is concerned by the information within the message even if other node will
received that message and so produce some event 'r' in the trace file. In order
to compute the overall delay I want select the time when the message was send by
the wired node 0 and the time where it has been received by the final node in
that example the Mobile node (4). My trouble is that I am not able to make the
correspondence between a message send by a wired node so written in wired format
in the trace file and a message received by the mobile node so written in
wireless format in the same trace file.
4.In the tlc script just TCP agent are planned but there is some trace of UDP
packet in the trace file how is it possible ?
5.What is the difference between 0 and 800 for the Ethernet Type ?
Thx a lot if you have read this mail until here, if you have any information
please answer me.
Julien ENFER
University of Plymouth UK
PS: I have already read this trace file detail :
http://k-lug.org/~griswold/NS2/ns2-trace-formats.html
More information about the Ns-users
mailing list