LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   reinstall ns2.35 in Mint.17.1 (https://www.linuxquestions.org/questions/linux-software-2/reinstall-ns2-35-in-mint-17-1-a-4175531387/)

mary1001 01-18-2015 02:41 AM

reinstall ns2.35 in Mint.17.1
 
Hi
i have installed ns2.35 in Mint17 but i modified an add some thing to ns2. now i have some problems that i think by reinstalling ns2 may be my problems will solve.
my OS is 64 bit.
so i want to know:
1- how uninstall ns2.35
2- i want a reliable ns2 file, where can i get it? i get here :http://sourceforge.net/projects/nsna...e=typ_redirect
3- how to install it.

knudfl 01-18-2015 07:08 AM

The original ns-allinone-2.35 :
http://sourceforge.net/projects/nsnam/

ns-allinone-2.35 updated to gcc / g++ version 4.8.2 ... 4.9.1 :
https://drive.google.com/file/d/0B7S...ew?usp=sharing
→ ns-allinone-2.35_gcc482.tar.gz

ns-allinone-2.35 updated, also to include ns2 official Codel patches etc.:
https://drive.google.com/file/d/0B7S...ew?usp=sharing
→ ns-allinone-2.35_gcc491.tar.gz

Latest update = ns-allinone-2.36.rc1.tar.gz
http://www.isi.edu/nsnam/dist/releas....36.rc1.tar.gz


Removing a folder "ns-allinone-2.35/" : $ rm -r ns-allinone-2.35/
* But really not required :
You can have as many ns-allinone-2.35 as you want,
installed at the same time.
But do not add any *PATH text to .bashrc.


Add 3) : 3- how to install it.
? Why ask ? You have done ns-allinone-2.35 builds several times.
Old 2011 version : $ export CC=gcc-4.4 CXX=g++-4.4 && install
Updated versions : $ ./install


-

mary1001 01-18-2015 08:32 AM

1 Attachment(s)
i am realy thankful to you for your help...

i dont know what happend for my ns now. it worked very well, but now every thing has problem also the protocol that i did not change them. i reinstall the ns2.35, but again i dont know why sometimes a simple tcl cant run...
i use aodv and i usualy see this error: "ns: scheduler going backwards in time from 72.997428 to 0.000000."

i add a aodv-malicious_ns235.patch as you say here :http://www.linuxquestions.org/questi...-a-4175505657/ #6

but by runing a tcl scenario in each time i get diffrent errors like :

PacketQueue:: remove() couldn't find target
or
ns: scheduler going backwards in time from 180.507428 to 0.000000.
or
Segmentation fault


i attach the tcl file,by puting different hacker nodes in this scenario in each time that i run the scenario, i get different errors...
i dont know why?!!! my ns2.35 is the source that i install today.:confused:

knudfl 01-18-2015 09:15 AM

← #3 .

$ ns235-malicious q.tcl : Is fairly OK here → →
Code:

num_nodes is set 40
INITIALIZE THE LIST xListHead
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 550.0
SORTING LISTS ...DONE!
PacketQueue:: remove() couldn't find target

→ → The file sm.tr, 6MB is created.


Make sure that you are using a named copy of 'ns' for any added protocol.
Like 'ns235-malicious' : That's for hacker / malicious simulations.

And another 'ns' for default simulations (ns-orig, ns235, ns235-orig).
Not all the default files.tcl may work with "ns235-malicious".


-

knudfl 01-18-2015 09:18 AM

Also :

Are you sure that your Mint 17 is the 32bits (i686) version ?

mary1001 01-18-2015 09:27 AM

no i tellyou in #1 that my OS is 64bit...mint 17.1 64bit

so you say "PacketQueue:: remove() couldn't find target" is not a error? and is the scenario compeletly run?

sorry if you can plz put more than 3 or 4 nodes hacker to my scenario you can see another errors as i told in #3

why this happend? i run this before and i never had this errors.

knudfl 01-18-2015 10:38 AM

← #6 .

Sorry. I missed the "64 bit".

Your errors : May be you updated some packages ?
* Updates will constantly change the OS.
And by using a 64bits OS for ns2 :
You are always close to the point of "not working at all".

Generally : ns2 is for a 32bits OS.
However, some protocols may work OK with a 64bits OS.
( You will always get a poor validate result.)

-

mary1001 01-18-2015 11:16 AM

realy?!!! ohhhh my God.
so i should change to 32bit :doh:

i think you are right...it can be the main reason of this problem...
thanks a lotttttt...

mary1001 01-23-2015 05:45 AM

Quote:

Originally Posted by knudfl (Post 5302920)

Make sure that you are using a named copy of 'ns' for any added protocol.
Like 'ns235-malicious' : That's for hacker / malicious simulations.

And another 'ns' for default simulations (ns-orig, ns235, ns235-orig).
Not all the default files.tcl may work with "ns235-malicious".


-

is it nessesery that i use a named copy of 'ns' for any added protocol?!! i think by adding a malicious node to aodv if any malicious node be in the tcl file ,bu run "...$ns name.tcl" could be run..it is not deffirent with using a "...$ns235-malicous name.tcl" is it?

mary1001 01-23-2015 05:55 AM

1 Attachment(s)
my problem does not solved by changing my OS from 64bit to 32bit....i have all the problem in #3 . for example by runing this scenario i see segmentation fault error....but the trace file created (the scenario that i attached here).

plz tell me whats the problem with me?:confused:

error:

me@me-HP-ENVY-15-Notebook-PC ~/Desktop/exa $ ns sm.tcl
num_nodes is set 40
INITIALIZE THE LIST xListHead
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
Segmentation fault

knudfl 01-23-2015 07:53 AM

← Ref. #10 .

That would be `sm.tcl´ number 5 ?
26 Nov 2014 sm.tcl, 41.8 kB
06 Dec 2014 ?sm.tcl 43.2 kB
06 Jan ?sm.tcl 4.4 kB
09 Jan 2015 sm.tcl 4.2 kB
11 Jan 2015 s.tcl 4.2 kB
23 Jan 2015 ?sm.tcl 4.2 kB
23 Jan 2015 sm.tcl 45.6 kB
... How about using some unique file names ?
And please also use unique names for files.tr, instead of sm.tr.

Your file sm"5".tcl, attached to the above post #1 :
No `Segmentation fault´ here with : set val(nn) 20
( Can result in 'Segmentation fault' with :
less than 20, or more than 20 nodes.)

set val(nn) 20 → $ ns235-malicious _mary_sm5.tcl →
The file sm.tr 3.7 MB is created.

-

mary1001 01-23-2015 10:24 AM

i am so sorry
because this problem recieve to the problem in other post i continue this post to other one...
continue in http://www.linuxquestions.org/questi...76#post5305576 #4


All times are GMT -5. The time now is 10:58 AM.