How to import external datasets without node position into ns3

77 views
Skip to first unread message

Jelline

unread,
Sep 2, 2014, 5:18:48 AM9/2/14
to ns-3-...@googlegroups.com
Dear all,

How to import datasets without node positions (eg. infocom2006, MIT reality) into ns3, its format like this:

1   3   500  800
 
which means node1 meets node3 from t1(500) to t2(800). Based on my understanding, The Simulator can do that. Thanks for your help.

Best regards,
Jelline

Tommaso Pecorella

unread,
Sep 2, 2014, 1:22:47 PM9/2/14
to ns-3-...@googlegroups.com
Hi,

no, you can not (simply) do that. Simply because you should first decide what does it means "node1 meets node3".

You could pretend that "meets" means that the two nodes are in radio range (but then, how close?) or that they have a reliable link (activate a NetDevice?). But then there's the issue of activating the interfaces, IP addresses, routing, etc.

Summarizing: the "at time x node y meets node z" is too generic for ns-3.

Cheers,

T.

Qiankun Su

unread,
Sep 2, 2014, 4:54:07 PM9/2/14
to ns-3-...@googlegroups.com
Dear Tommaso,

Thanks for kind reply. Sorry, I mistyped last letter and what I expected to express is  ”The ONE Simulator can do that“.  The item like this:

1   3   500  800

can be transformed into the following in The ONE simulator

500    CONN   1     3  UP
800    CONN   1     3  DOWN

which means there is a connection established between node 1 and node 3 from t1 to t2.


The dataset I used is infocom05, http://crawdad.org/cambridge/haggle/
I simply write a script to get nodes' overlapping durations. Take an example: 

Inline images 3


======================== Examples taken from table.Exp3.dat (two first columns and first rows) ======================== 1 8 121 121 1 0 1 3 236 347 1 0 1 4 236 347 1 0 1 5 121 464 1 0 1 8 585 585 2 464 ======================== ========================

- The first column gives the ID of the device who recorded the sightings. - The second column gives the ID of the device who was seen (it may be an iMote, or another device recorded during the experiment).

- The third and fourth column describe, respectively, the first and last time when the address of ID2 were recorded by ID1 for this contact.




Best regards,
​Jelline

--
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/8JTZU72rzWo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

Tommaso Pecorella

unread,
Sep 2, 2014, 5:38:41 PM9/2/14
to ns-3-...@googlegroups.com
Hi Jelline,

Yes, I think ONE can simulate this scenario. About ns-3, it is possible as well, but as I said, it may be a bit more complex.
ONE (from my understanding) would simply consider the link up / link down events, while ns-3 is far more pedantic on what's a link up and down.
As you may have noticed, wireless links are up or down [usually] depending on the nodes distance. And even if the two nodes can reach each other, the SINR may lead to different performances (higher SINR -> higher robustness modulation schemes and lower bitrate).

Anyway, a simple solution is to use the MatrixPropagationLossModel, see "examples/wireless/wifi-hidden-terminal.cc".
You can create an appropriate "Mobility Model" (it's not a real mobility model) and tie the propagation loss model to it.

Summarizing... it is possible. Not simple maybe, but it's possible.

Cheers,

T.

Qiankun Su

unread,
Sep 2, 2014, 5:51:10 PM9/2/14
to ns-3-...@googlegroups.com
Dear Tommaso,

Thanks for your constant help. I try to make it.

Best regards,
Jelline


Dongsheng

unread,
Sep 26, 2014, 11:48:48 AM9/26/14
to ns-3-...@googlegroups.com
Hi Jelline,
I am also trying to import datasets (eg. infocom2006, MIT reality) into ns3.
did you get it to work? would you mind sharing some experience?

Thanks,
Dongsheng

Qiankun Su

unread,
Sep 26, 2014, 12:14:57 PM9/26/14
to ns-3-...@googlegroups.com
Dear Dongsheng,

Finally, I decide to work on The ONE Simulator because of focusing on DTN. So I didn't make it in ns3, sorry.

Nice weekend.

Best regards,
SU Qiankun
-------------------------------------------------
IRIT, INPT-ENSEEIHT, University of Toulouse
Reply all
Reply to author
Forward
0 new messages