LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-05-2014, 11:20 AM   #1
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Rep: Reputation: Disabled
run a scenario in ns2


hi
i run a scenario in ns2 ,but i dont know it run completly or no!! i put some words in the end of the scenario to displayed when the scenario finish,but it does not display. the output after running the scenario is this:

num_nodes is set 40
INITIALIZE THE LIST xListHead
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!

i attach the scenario here
Attached Files
File Type: txt sm.txt (43.1 KB, 28 views)
 
Old 12-05-2014, 12:11 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,428

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
.. it does not display : Please install a valid nam package :

$ sudo apt-get remove nam
... and remove any nam you may have on your OS,
i.e. 'nam' executable´s and nam-1.**/ folders.

Nam packages that will work, post #2 here ...
http://www.linuxquestions.org/questi...-4175524760/#2

Note : A file.tcl must be attached as file.tcl.txt,
and a unique file name must be used, like sm3-mary1001.tcl.txt

About your file : No issues here, the nam window opens OK.

-
 
Old 12-05-2014, 12:36 PM   #3
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Original Poster
Rep: Reputation: Disabled
yes yes my nam has an error, when i run nam command in terminal it has this error : Segmentation fault
what should i do?
 
Old 12-05-2014, 12:45 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,428

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
← #3 .

Segmentation fault :
That's the error from all the faulty Ubuntu nam packages.
It's old news :
No valid nam packages for any later Ubuntu versions for many months.

Solution :
Install a proper package for your OS → Read post #2.

Any doubts : Specify your OS →
a) Please show the output from the command $ uname -m
b) $ cat /etc/issue

-

Last edited by knudfl; 12-05-2014 at 12:50 PM.
 
Old 12-05-2014, 12:53 PM   #5
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Original Poster
Rep: Reputation: Disabled
my os is linux mint 17.1

the output :

HP-PC ex # uname -m
x86_64
HP-PC ex # cat /etc/version
cat: /etc/version: No such file or directory
HP-PC ex #
 
Old 12-05-2014, 01:01 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,428

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
← #5 . OK, Mint 17.1 - 64bits.

Released a few days ago. Mint 17.1 = Ubuntu 14.04.

You can use the package nam_1.15-10-ubuntu14_amd64.deb :
1) $ sudo apt-get remove nam
2) Download the new package, click the package,
and your 'Package Installer' will install it.

-
 
Old 12-05-2014, 11:39 PM   #7
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Original Poster
Rep: Reputation: Disabled
thank you so much, my problem solved with your guideness, thanksssssss
 
Old 01-24-2015, 12:50 PM   #8
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Original Poster
Rep: Reputation: Disabled
hi
can anyone send me a scenario like the one in #1 (sm.tcl) ?
wireless with more than 30 nodes and aodv routing....
i want to know if the problem is with my scenario !!!
 
Old 01-24-2015, 04:34 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,428

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
← #8 .

The file in post #1 is not a scenario file. Is a simulation file.

AODV with > 30 nodes : Please see this example → →
http://enggedu.com/ns2_simulator/ns2...ffic/index.php
= Aodv-enggedu.tcl : Can be expanded to more than 30 nodes.

My test (-example) is with 33 nodes : Aodv-enggedu-33.tcl
-
Attached Files
File Type: txt Aodv-enggedu-33.tcl.gz.txt (3.2 KB, 20 views)
 
  


Reply

Tags
ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create a nam file to see the scenario of leach protocol in NS2 ? Mehedi Hasan Linux - Newbie 1 09-01-2014 09:44 AM
VANET scenario in NS2 (City or Highway) Bara Linux - Networking 0 12-19-2013 08:44 PM
how to find retransmission of packets in wireless scenario in NS2 susanthomas Linux - Software 0 03-07-2013 08:44 AM
NS2 Simulation/scenario help nadeempitafi Linux - Newbie 2 12-28-2012 02:20 PM
run c++ in ns2 11mcomputer Linux - Newbie 1 06-18-2011 01:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration