LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-27-2015, 02:22 AM   #1
jayashri ahire
LQ Newbie
 
Registered: Mar 2015
Posts: 6

Rep: Reputation: Disabled
installation of ns2.35 allinone package on ubuntu 14.04


Hello Sir,
I am new in linux. I want to install ns2.35 on ubuntu 14.04.So for that I have to install ubuntu 14.04.So which option is preferable for installing ubuntu whether by using vmware or by dual booting & also suggest me that whether ubuntu 14.04 is compatible for ns2.35 or not.
 
Old 03-27-2015, 08:58 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,097

Rep: Reputation: 8044Reputation: 8044Reputation: 8044Reputation: 8044Reputation: 8044Reputation: 8044Reputation: 8044Reputation: 8044Reputation: 8044Reputation: 8044Reputation: 8044
Quote:
Originally Posted by jayashri ahire View Post
Hello Sir,
I am new in linux. I want to install ns2.35 on ubuntu 14.04.So for that I have to install ubuntu 14.04.So which option is preferable for installing ubuntu whether by using vmware or by dual booting
It doesn't matter at all, since the machine won't know the difference, and you'll be running Ubuntu 14.04 no matter what.
Quote:
& also suggest me that whether ubuntu 14.04 is compatible for ns2.35 or not.
We will suggest that you perform such basic research on your own, rather than asking us to look it up for you. Since you found this site with a Google search, you should have also tried typing in "can you run ns2.35 on ubuntu 14.04". You would get MANY results like this:
http://installwithme.blogspot.com/20...-or-14.04.html

Also, there are not just "sirs" on this site, so starting your post with "Hello Sir" isn't a good thing.
 
Old 03-27-2015, 09:53 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
@jayashri ahire : Welcome to LQ.

Please use the 32bits Ubuntu 14.04 : "ubuntu-14.04.2-desktop-i386.iso"
Example link http://mirrors.telianet.dk/ubuntu-re...sktop-i386.iso

! I.e. ns2 is for a 32bits OS !

* ns-2.35 : Please use the 'Nov 2014' update = ns-allinone-2.35_gcc482.tar.gz
* https://drive.google.com/file/d/0B7S...ew?usp=sharing


-
 
2 members found this post helpful.
Old 03-31-2015, 04:31 AM   #4
jayashri ahire
LQ Newbie
 
Registered: Mar 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
How to run codes?

Thank you very much sir,for reply.
Sir we want to know that how to run TORA(TEMPORARY ORDERED ROUTING ALGORITHM) codes in ns2.35? We have already install ns-allinone-2.35 package. So ,sir please give us steps and commands for running the codes.
Is TORA required Patches? How we come to know that TORA required Patches? Also tell us how to download patches?
Waiting for youre quick reply.
 
Old 03-31-2015, 05:58 AM   #5
jayashri ahire
LQ Newbie
 
Registered: Mar 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
Installation of ns2.35 in Open Suse12.1

Hello sir ,
We want to install ns2.35 in open suse 12.1 in another laptop. So please can you provide us steps for installation.
 
Old 03-31-2015, 09:11 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,097

Rep: Reputation: 8044Reputation: 8044Reputation: 8044Reputation: 8044Reputation: 8044Reputation: 8044Reputation: 8044Reputation: 8044Reputation: 8044Reputation: 8044Reputation: 8044
Quote:
Originally Posted by jayashri ahire View Post
Thank you very much sir,for reply.
Sir we want to know that how to run TORA(TEMPORARY ORDERED ROUTING ALGORITHM) codes in ns2.35? We have already install ns-allinone-2.35 package. So ,sir please give us steps and commands for running the codes.
Is TORA required Patches? How we come to know that TORA required Patches? Also tell us how to download patches? Waiting for youre quick reply.
Again, there are NOT JUST SIRS on this site...so starting everything with "sir" is a bit insulting. And again, as you were told before, we will be glad to HELP you, but we are NOT going to look things up FOR YOU, as we have twice before now.

You can go to Google and find the TORA code for NS2, if you tried.
Quote:
Originally Posted by jayashri ahire
Hello sir , We want to install ns2.35 in open suse 12.1 in another laptop. So please can you provide us steps for installation.
No, thanks...again, if you need to install this, you can easily look up the instructions, download link, and steps required. Please stop asking us to look things up for you.
 
Old 03-31-2015, 09:31 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Suse 12.1 :
# zypper in gcc-c++ automake autoconf make libtool patch xorg-x11-libXmu-devel

TORA :
The stock tora in ns-2.xx isn't working well with the known tora simulation examples.
* Erlend http://erl1.wordpress.com/2010/08/10...-ubuntu-10-04/
* http://wpage.unina.it/marcello.caleffi/ns2/tora.html
. http://network-simulator-ns-2.7690.n...39.html#a28540

Ns-2.35 + tora :
$ tar xvf ns-allinone-2.35_gcc482.tar.gz (The 'Nov 2014 update)
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ cd ns-allinone-2.35/
patch -p0 < tora_ns235.patch (This is new. Easier than replacing files)
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ ./install
$ cd ns-2.35/
$ cp ns ns235-tora ( This is your backup )
# make install ( 'make install' will copy ns to /usr/local/bin/ )
# cp ns235-tora /usr/local/bin/
$ cd ../nam-1.15/
# make install

Simulation :
$ ns235-tora tora2.tcl : OK.
$ ns235-tora wrls-tora1.tcl : OK.

-
 
Old 04-01-2015, 03:34 AM   #8
jayashri ahire
LQ Newbie
 
Registered: Mar 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
To run TORA codes

Hello knudfi,
First we want simply to run TORA codes on ns2.35 in ubuntu 14.04.So how can we run following codes.


# ======================================================================
# Define options
# ======================================================================
set val(chan) Channel/WirelessChannel ;# channel type
set val(prop) Propagation/TwoRayGround ;# radio-propagation model
set val(ant) Antenna/OmniAntenna ;# Antenna type
set val(ll) LL ;# Link layer type
set val(ifq) Queue/DropTail/PriQueue ;# Interface queue type
set val(ifqlen) 50 ;# max packet in ifq
set val(netif) Phy/WirelessPhy ;# network interface type
set val(mac) Mac/802_11 ;# MAC type
set val(nn) 6 ;# number of mobilenodes
set val(rp) TORA ;# routing protocol
set val(x) 800
set val(y) 800

set ns [new Simulator]
#ns-random 0

set f [open 1_out.tr w]
$ns trace-all $f
set namtrace [open 1_out.nam w]
$ns namtrace-all-wireless $namtrace $val(x) $val(y)
set f0 [open proj_out0.tr w]
set f1 [open proj_out1.tr w]
set f2 [open proj_out2.tr w]
set f3 [open proj_out3.tr w]

set topo [new Topography]
$topo load_flatgrid 800 800

create-god $val(nn)

set chan_1 [new $val(chan)]
set chan_2 [new $val(chan)]
set chan_3 [new $val(chan)]
set chan_4 [new $val(chan)]
set chan_5 [new $val(chan)]
set chan_6 [new $val(chan)]

# CONFIGURE AND CREATE NODES

$ns node-config -adhocRouting $val(rp) \
-llType $val(ll) \
-macType $val(mac) \
-ifqType $val(ifq) \
-ifqLen $val(ifqlen) \
-antType $val(ant) \
-propType $val(prop) \
-phyType $val(netif) \
#-channelType $val(chan) \
-topoInstance $topo \
-agentTrace OFF \
-routerTrace ON \
-macTrace ON \
-movementTrace OFF \
-channel $chan_1 # \
#-channel $chan_2 \
#-channel $chan_3 \
#-channel $chan_4 \
#-channel $chan_5 \
#-channel $chan_6


proc finish {} {
global ns f f0 f1 f2 f3 namtrace
$ns flush-trace
close $namtrace
close $f0
close $f1
close $f2
close $f3
# exec xgraph proj_out0.tr proj_out1.tr
# proj_out2.tr proj_out3.tr
exec nam -r 5m 1_out.nam &
exit 0
}

proc record {} {
global sink0 sink1 sink2 sink3 sink4 sink5 f0 f1 f2 f3
#Get An Instance Of The Simulator
set ns [Simulator instance]

#Set The Time After Which The Procedure Should Be Called Again
set time 0.05
#How Many Bytes Have Been Received By The Traffic Sinks?
set bw0 [$sink5 set npkts_]
set bw1 [$sink5 set nlost_]
#set bw2 [$sink2 set npkts_]
#set bw3 [$sink3 set npkts_]

#Get The Current Time
set now [$ns now]

#Save Data To The Files
puts $f0 "$now [expr $bw0]"
puts $f1 "$now [expr $bw1]"
#puts $f2 "$now [expr $bw2]"
#puts $f3 "$now [expr $bw3]"

#Re-Schedule The Procedure
$ns at [expr $now+$time] "record"
}

# define color index
$ns color 0 blue
$ns color 1 red
$ns color 2 chocolate
$ns color 3 red
$ns color 4 brown
$ns color 5 tan
$ns color 6 gold
$ns color 7 black

set n(0) [$ns node]
#$ns at 0.0 "$n(0) color red"
$n(0) color "0"
$n(0) shape "circle"
set n(1) [$ns node]
$n(1) color "blue"
$n(1) shape "circle"
set n(2) [$ns node]
$n(2) color "tan"
$n(2) shape "circle"
set n(3) [$ns node]
$n(3) color "red"
$n(3) shape "circle"
set n(4) [$ns node]
$n(4) color "tan"
$n(4) shape "circle"
set n(5) [$ns node]
$n(5) color "red"
$n(5) shape "circle"






for {set i 0} {$i < $val(nn)} {incr i} {
$ns initial_node_pos $n($i) 30+i*100
}

$n(0) set X_ 0.0
$n(0) set Y_ 0.0
$n(0) set Z_ 0.0

$n(1) set X_ 0.0
$n(1) set Y_ 0.0
$n(1) set Z_ 0.0

$n(2) set X_ 0.0
$n(2) set Y_ 0.0
$n(2) set Z_ 0.0

$n(3) set X_ 0.0
$n(3) set Y_ 0.0
$n(3) set Z_ 0.0

$n(4) set X_ 0.0
$n(4) set Y_ 0.0
$n(4) set Z_ 0.0

$n(5) set X_ 0.0
$n(5) set Y_ 0.0
$n(5) set Z_ 0.0

$ns at 0.0 "$n(0) setdest 100.0 100.0 3000.0"
$ns at 0.0 "$n(1) setdest 200.0 200.0 3000.0"
$ns at 0.0 "$n(2) setdest 300.0 200.0 3000.0"
$ns at 0.0 "$n(3) setdest 400.0 300.0 3000.0"
$ns at 0.0 "$n(4) setdest 500.0 300.0 3000.0"
$ns at 0.0 "$n(5) setdest 600.0 400.0 3000.0"

$ns at 2.0 "$n(5) setdest 100.0 400.0 500.0"
#$ns at 1.5 "$n(3) setdest 450.0 150.0 500.0"


# CONFIGURE AND SET UP A FLOW


set sink0 [new Agent/LossMonitor]
set sink1 [new Agent/LossMonitor]
set sink2 [new Agent/LossMonitor]
set sink3 [new Agent/LossMonitor]
set sink4 [new Agent/LossMonitor]
set sink5 [new Agent/LossMonitor]
$ns attach-agent $n(0) $sink0
$ns attach-agent $n(1) $sink1
$ns attach-agent $n(2) $sink2
$ns attach-agent $n(3) $sink3
$ns attach-agent $n(4) $sink4
$ns attach-agent $n(5) $sink5

#$ns attach-agent $sink2 $sink3
set tcp0 [new Agent/TCP]
$ns attach-agent $n(0) $tcp0
set tcp1 [new Agent/TCP]
$ns attach-agent $n(1) $tcp1
set tcp2 [new Agent/TCP]
$ns attach-agent $n(2) $tcp2
set tcp3 [new Agent/TCP]
$ns attach-agent $n(3) $tcp3
set tcp4 [new Agent/TCP]
$ns attach-agent $n(4) $tcp4
set tcp5 [new Agent/TCP]
$ns attach-agent $n(5) $tcp5


proc attach-CBR-traffic { node sink size interval } {
#Get an instance of the simulator
set ns [Simulator instance]
#Create a CBR agent and attach it to the node
set cbr [new Agent/CBR]
$ns attach-agent $node $cbr
$cbr set packetSize_ $size
$cbr set interval_ $interval

#Attach CBR source to sink;
$ns connect $cbr $sink
return $cbr
}

set cbr0 [attach-CBR-traffic $n(0) $sink5 1000 .015]
#set cbr1 [attach-CBR-traffic $n(1) $sink2 1000 .015]
#set cbr2 [attach-CBR-traffic $n(2) $sink3 1000 .015]
#set cbr3 [attach-CBR-traffic $n(3) $sink0 1000 .015]
#set cbr4 [attach-CBR-traffic $n(4) $sink3 1000 .015]
#set cbr5 [attach-CBR-traffic $n(5) $sink0 1000 .015]



$ns at 0.0 "record"
#$ns at 0.5 "$cbr0 start"
#$ns at 0.5 "$cbr2 start"
#$ns at 2.0 "$cbr0 stop"
#$ns at 2.0 "$cbr2 stop"
$ns at 1.0 "$cbr0 start"
#$ns at 4.0 "$cbr3 stop"

$ns at 10.0 "finish"

puts "Start of simulation.."
$ns run
 
Old 04-01-2015, 03:46 AM   #9
jayashri ahire
LQ Newbie
 
Registered: Mar 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
How to download patches for TORA

Hello knudfi,
I followed your given link but we can not download patches from it. It may be our fault. But we are again requesting you to give link so we can directly download patches from it.
can you please give the separate answer for separate question so there will not be any confusion for us.
 
Old 04-01-2015, 04:08 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re post #9.

Links
1) The updated ns-allinone-2.35 : To use all gcc versions 4.4.x .. 4.9.2 :
https://drive.google.com/file/d/0B7S...ew?usp=sharing
>>> ns-allinone-2.35_gcc482.tar.gz

2) The tora patch, tora_ns235.patch :
https://drive.google.com/file/d/0B7S...ew?usp=sharing

3) Tora simulation examples : tora-files+examples.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing

TORA info http://www.linuxquestions.org/questions/tags/tora/

-
 
1 members found this post helpful.
Old 04-01-2015, 04:25 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re post #8.

Please edit post #8 to use CODE Tags around the tcl code.
. http://www.linuxquestions.org/questi....php?do=bbcode
. http://www.linuxquestions.org/questi...gs-4175464257/
I.e. code tags is the ` # ' button in the 'Advanced Editor'.
Or simply type [/code] at code end, and [code] at code start.
Editing post #8 : That's the 'Edit' button in post #8.

-
 
Old 04-01-2015, 07:31 AM   #12
jayashri ahire
LQ Newbie
 
Registered: Mar 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
Installation of ns-2.35 in opensuse 12.1

Hello knudfi,
Thank you very much for your reply.
We also want installation steps for ns-allinone-2.35 in opensuse 12.1 in other pc. from your previous reply we tried this step-# zypper in gcc-c++ automake autoconf make libtool patch xorg-x11-libXmu-devel
But it did not work. so please give direct steps for installation.
 
Old 04-01-2015, 08:53 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
@jayashri ahire : Read post #11.

You will have to hit the 'Edit' button in post #8 : Edit to 'code tags'.

Please do . Else no more answers.
 
1 members found this post helpful.
Old 04-01-2015, 08:56 AM   #14
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,097

Rep: Reputation: 8044Reputation: 8044Reputation: 8044Reputation: 8044Reputation: 8044Reputation: 8044Reputation: 8044Reputation: 8044Reputation: 8044Reputation: 8044Reputation: 8044
Quote:
Originally Posted by jayashri ahire View Post
Hello knudfi,
Thank you very much for your reply.
We also want installation steps for ns-allinone-2.35 in opensuse 12.1 in other pc. from your previous reply we tried this step-# zypper in gcc-c++ automake autoconf make libtool patch xorg-x11-libXmu-devel
But it did not work. so please give direct steps for installation.
Can you please tell us what is preventing you from looking these things up on your own? knudfl has given you the answers several times now...rather than asking people here to look things up for you (over and over), can you please show us what you've done/tried so far? What tutorials you followed? Anything?
 
Old 09-20-2017, 05:27 AM   #15
Rango4
LQ Newbie
 
Registered: Oct 2015
Posts: 6

Rep: Reputation: Disabled
TORA

I have successfully patched tora protocol as u suggested...........and working fine...
but when i run the tcl script it gives the following error

""""""""Schedular event uid not valid!"""""""""""""
 
  


Reply

Tags
ns2, tora


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
Installation of ns2.35 allinone package on ubuntu 13.04 dipashri Linux - Newbie 3 03-27-2015 09:31 AM
install wimax wifi lte ns2-allinone-2.35 abdennour Linux - General 1 03-24-2015 02:46 PM
Installation problem of ns allinone 2.29 on Ubuntu 9.10 labee Linux - Software 3 05-05-2011 09:13 AM
Problem in installing NS2 allinone 2.34 into Fedora 8i goroogee Linux - Software 3 04-17-2010 07:02 AM
NS2 2.33 allinone on Ubuntu Liz Mwaniki Linux - Newbie 1 01-26-2009 04:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:59 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