Can't read mobility.tcl file and error SIGIOT

242 views
Skip to first unread message

Sia Chiu shoon

unread,
Dec 16, 2016, 11:16:48 AM12/16/16
to ns-3-users
Hi,

I'm new on this NS3 tool. Facing problem when transfer the traffic simulation from SUMO that created three files: Mobility.tcl, Activity.tcl & Config.tcl. into NS3. Once running it on NS3, the mobility.tcl file cannot be read and display error like terminated with error SIGIOT. Appreciate if someone here can help me on this problem and idea to solve it. Many thanks in advanced.Please refer to attachment for screen shot taken during the error occurred.

Regards,
IMG_8541.JPG

Konstantinos

unread,
Dec 16, 2016, 11:31:54 AM12/16/16
to ns-3-users
Hi

The message is clear "Could not open file .... for reading".
The reason could be that the file is not there or that you do not have read rights to that.
Check for potential typos.

Regards,
K

Sia Chiu shoon

unread,
Dec 17, 2016, 6:59:22 AM12/17/16
to ns-3-users
Hi,

Thanks for the reply,

Actually the file located on scratch directory. For potential typos is that on commands like "./waf --run ....". just wants to confirm the idea being shared. 

Regards,
S

Adil Alsuhaim

unread,
Dec 17, 2016, 4:07:26 PM12/17/16
to ns-3-users
NS3 programs points to files starting from your ns3 root directory. In your case: "~/Desktop/NS3/ns3-allinone/ns-3.26/"

I usually simply place my TCL file in "~/Desktop/NS3/ns3-allinone/ns-3.26/" or create a directory under it for all my traces and logs.

I do notice that you have an error in your path. 

You're working directory "~/Desktop/NS3/ns3-allinone/ns-3.26/" , so maybe your mobility trace file is in "~/Desktop/NS3/ns3-allinone/ns-3.26/scratch" but you're passing a different path, /ns3/Desktop/NS3/ns3-allinone/ns-3.26/ , which does not have your TCL, or might not even exist. You're also using $Home, but you probably mean $HOME. I'd usually just simply use ~ as this means home directory. 

For simplicity, place the mobility.tcl under ~/Desktop/NS3/ns3-allinone/ns-3.26/ and simply use --traceFile=mobility.tcl and that should work. or simply leave it where it is, and use --traceFile=scratch/mobility.tcl

Hope this helps!

Sia Chiu shoon

unread,
Dec 19, 2016, 9:16:12 AM12/19/16
to ns-3-users
Hi Adil, 

Thanks for your helps. Finally, managed to run the simulation successfully. By the way, do you have any ideas on how to configure the simulation. The reason is that after my simulation running, there is no packet data sending and replying among the nodes. Appreciate if you can help me on this like configuring routing protocol,AODV, IP Addressing, Logging and etc. Now I'm doing VASNET research to do search and rescue application to evaluate the VASNET performance. Looking forward to hear from you to share some valuable ideas to me. 

Regards,

Konstantinos

unread,
Dec 19, 2016, 9:24:17 AM12/19/16
to ns-3-users
Dear Sia,

Please consider studying the tutorial and examples.
They explain how you can configure all those parameters you asked.

In addition, I had presented a tutorial on vehicular communications during the WNS3 2015
The slides and materials can be found here https://www.nsnam.org/wiki/AnnualTraining2015 and a recording is available here https://vimeo.com/134337391

Regards,
K

Sia Chiu shoon

unread,
Dec 19, 2016, 9:41:26 AM12/19/16
to ns-3-users
Dear Konstantinos, 

Thanks for your sharing. Will go through all the examples and tutorial sharing. 

Regards,

Sia Chiu shoon

unread,
Dec 19, 2016, 9:55:47 AM12/19/16
to ns-3-users
Hi Konstantinos, 

May i Know how to downlaod the video share by your. Appreciate if you can help me on this for my study. 

Regards,

Konstantinos

unread,
Dec 19, 2016, 10:06:33 AM12/19/16
to ns-3-users
Hi,

There is a download button below the video.

Sia Chiu shoon

unread,
Dec 19, 2016, 10:20:55 AM12/19/16
to ns-3-users
thanks
Reply all
Reply to author
Forward
0 new messages