LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 05-06-2012, 10:39 AM   #1
mounaboug
LQ Newbie
 
Registered: Apr 2012
Posts: 28

Rep: Reputation: Disabled
Installatiion EURNAE + NS2


I want to install EURANE and NS2
But I don't know :
what platform I must use it (Ubuntu or Fedora )?
how can I install EURANE ??



Thank you ;

Last edited by mounaboug; 05-06-2012 at 10:52 AM.
 
Old 05-06-2012, 11:25 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
For best result : Fedora. http://eurane.ti-wmc.nl/eurane/

NS2 prerequisites, Fedora # yum install \
gcc-c++ compat-gcc-34-c++ automake autoconf libtool libX11-devel \
libXext-devel libXau-devel libXmu-devel xorg-x11-proto-devel

Eurane : Links, files and install, here ..
http://www.linuxquestions.org/questi...ta-etc-869957/
>>> post #8 and others.

.
 
Old 05-06-2012, 01:54 PM   #3
mounaboug
LQ Newbie
 
Registered: Apr 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Thank you so much

which version of fedora that I need to use ??
I see the link but I don't know the steps to install eurane ??

thank you;
 
Old 05-06-2012, 03:25 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
Fedora 16.

Installing ns-allinone-2.30(.tar.gz) + the eurane patch
is mostly like the commands shown in the link ..

1) cd ns-allinone-2.30/tk-8.4.11/ EDIT cd ns-allinone-2.30/tk-8.4.13/
2) wget ftp://ftp.swin.edu.au/gentoo-portage...astevent.patch
3) patch -p0 < tk-8.4-lastevent.patch
4) cd ../ns-2.30/
5) zcat ns-eurane-111.diff.gz | patch -p1
EDIT : zcat ns-2.30_eurane-1.12.diff.gz | patch -p1
6) cd ../
7) export CC=gcc34 CXX=g++34 && ./install

.

Last edited by knudfl; 05-07-2012 at 11:03 AM.
 
Old 05-07-2012, 03:38 AM   #5
mounaboug
LQ Newbie
 
Registered: Apr 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
I must install only fedora 16 (64 bits ) on VirtualBox, I tried with fedora 16 (32 bits) but it refuse to open this OS !!
I try also with ubuntu 10.04, I install ns-nist , it works but I don't know if I can integrate EURANE with nist or no
I think that's easy to install ns-2.30 !!

What can I do on this problem ??

thank you;
 
Old 05-07-2012, 07:57 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
A 32bits OS is still the best choice.

How about giving the 32bits CentOS 6.2 or Scientific Linux 6.2 a try ?
( Advantage : Supported till 2017 (2020). Fedora 16 : End of 2012.)

Both are RHEL6 copies. ( Based on Fedora 12.)
 
Old 05-07-2012, 08:51 AM   #7
mounaboug
LQ Newbie
 
Registered: Apr 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
I installed fedora 16 (32 bits) successfully
and I dowload ns-allinone-2.30
I have many problems:
*I have tk-8.4.13 not tk-8.4.11!!??
*compat-gcc-34-c or compat-gcc-3.4-c
* wget ftp://ftp.swin.edu.au/gentoo-portage...astevent.patch : I don't understand what i must write,the link is not clear ??!!
*ns-eurane-111.diff.gz : I use ns-allinone-2.30 so I think that i must use ns-2.30_eurane-1.12.diff.gz ,it's logical ?? it's my opinion of course

frankly, I am very tired of trying( with ubuntu,nist,ns) every time I have not had good results
I hope that you can help me
thank you a lot
 
Old 05-07-2012, 11:04 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
#7
Quote:
I have tk-8.4.13 not tk-8.4.11
Sorry, typo. It's : cd ns-allinone-2.30/tk-8.4.13/
Quote:
compat-gcc-34-c or compat-gcc-3.4-c
# yum install compat-gcc-34-c++
wget<space> and then do a right click on the link in post #4,
and select "Copy Link Location".
You can also click the link, and move the downloaded file to tk-8.4.13/.
( The "link" in post #7 is a typo, not a complete link.)
Quote:
ns-eurane-111.diff.gz ?
May be an older file ? You are right ...
Now it is : zcat ns-2.30_eurane-1.12.diff.gz | patch -p1

.
 
Old 05-07-2012, 01:53 PM   #9
mounaboug
LQ Newbie
 
Registered: Apr 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
thank you,
I try With
Code:
[mouna@localhost tk8.4.13]$ patch -p0 < tk-8.4-lastevent.patch
I have this error
Code:
bash: patch: command not found...
 
Old 05-07-2012, 02:06 PM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
# 9

# yum install patch make

( Another LQ member had no Fedora packages 'patch' and 'make' installed.
May be it's the same for your Fedora ? )
 
Old 05-08-2012, 05:26 AM   #11
mounaboug
LQ Newbie
 
Registered: Apr 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
I installed ns-2.30 with eurane patch successfully
I tried this example.
Code:
global ns

set nb_mn 1 				
set node_odd [expr $nb_mn % 2]
set packet_size	1000			;# packet size in bytes at CBR applications 
set output_dir umts
set bw [expr 1024*1024]      			;# 48KB/s=384Kb/s
#set gap_size [expr ($packet_size*8.0*$nb_mn)/$bw]
set gap_size [expr ($packet_size*8.0)/$bw]
puts "gap_size $gap_size"

#remove-all-packet-headers
#add-packet-header MPEG4 MAC_HS RLC LL Mac RTP TCP UDP IP Common Flags


set ns [new Simulator]
set nf [open out.nam w]
$ns namtrace-all $nf

set f [open out.tr w]
$ns trace-all $f

proc finish {} {
    global ns nf nb_mn 
    global f
    $ns flush-trace
    close $nf
    exec nam out.nam &
    close $f
    #exec ./datarate out.tr datarate.res [expr $nb_mn+4] [expr $nb_mn+5]
    puts " Simulation ended."
    exit 0
}

$ns set debug_ 1

$ns set hsdschEnabled_ 1addr
$ns set hsdsch_rlc_set_ 0
$ns set hsdsch_rlc_nif_ 0

# set up for hierarchical routing
# (needed for routing over a basestation)
set num_wired_nodes 4
set num_mobile_nodes $nb_mn
set num_bs_nodes 2
$ns node-config -addressType hierarchical
AddrParams set domain_num_  5          ;# domain number
AddrParams set cluster_num_ {1 1 1 1 1}       ;# cluster number for each domain 
AddrParams set nodes_num_  {4 1 1 1 1}	;# number of nodes for each cluster             

$ns node-config -UmtsNodeType rnc 

# Node address is 0.
set rnc [$ns create-Umtsnode 0.0.0]
puts "rnc $rnc"

$ns node-config -UmtsNodeType bs \
		-downlinkBW 384kbs \
		-downlinkTTI 10ms \
		-uplinkBW 384kbs \
		-uplinkTTI 10ms \
     		-hs_downlinkTTI 2ms \
      		-hs_downlinkBW 384kbs \


# Node address is 1.
set bs [$ns create-Umtsnode 0.0.1]
puts "bs $bs"

$ns setup-Iub $bs $rnc 622Mbit 622Mbit 15ms 15ms DummyDropTail 2000

$ns node-config -UmtsNodeType ue \
		-baseStation $bs \
		-radioNetworkController $rnc

# Node address for ue1 and ue2 is 2 and 3, respectively.
for {set i 0} {$i  $nb_mn} {incr i} {
   set ue($i) [$ns create-Umtsnode 0.0.[expr 2+$i]]
  puts "ue($i) created $ue($i)" 
}
if { $node_odd == 1 } {
    set dummy_node [$ns create-Umtsnode 0.0.[expr 2+$nb_mn]]
    puts "Creating dummy node $dummy_node"
}

# Node address for sgsn0 and ggsn0 is 4 and 5, respectively.
set sgsn0 [$ns node 1.0.0]
puts "sgsn0 $sgsn0"
set ggsn0 [$ns node 2.0.0]
puts "ggsn0 $ggsn0"
# Node address for node1 and node2 is 6 and 7, respectively.
set node1 [$ns node 3.0.0]
puts "node1 $node1"
set node2 [$ns node 4.0.0]
puts "node2 $node2"

$ns duplex-link $rnc $sgsn0 622Mbit 0.4ms DropTail 1000
$ns duplex-link $sgsn0 $ggsn0 622MBit 10ms DropTail 1000
$ns duplex-link $ggsn0 $node1 10MBit 15ms DropTail 1000
$ns duplex-link $node1 $node2 10MBit 35ms DropTail 1000
$rnc add-gateway $sgsn0

for {set i 0} {$i  1} {incr i} {
    #create source traffic 3: from ethernet interface to router0
    #Create a TCP agent and attach it to multi-interface node
    set tcp_(0) [new Agent/TCP/FullTcp]
    $ns attach-agent $ue(0) $tcp_(0) ;# the interface is used for sending
    set app_(0) [new Application/TcpApp $tcp_(0)]
    puts "App0 id=$app_(0)"
    
    #create an sink into the MN1
    # Create the Null agent to sink traffic
    set tcp_(1) [new Agent/TCP/FullTcp] 
    $ns attach-agent $node2 $tcp_(1)
    set app_(1) [new Application/TcpApp $tcp_(1)]
    puts "App1 id=$app_(1)"
    
    $ns connect $tcp_(0) $tcp_(1)
    $tcp_(0) listen
    puts "udp stream made from udp($i) and sink($i)"
}

$ns node-config -llType UMTS/RLC/AM \
		-downlinkBW 384kbs \
		-uplinkBW 384kbs \
		-downlinkTTI 20ms \
		-uplinkTTI 20ms \
   		-hs_downlinkTTI 2ms \
    		-hs_downlinkBW 384kbs


$ns create-hsdsch $ue(0) $tcp_(0)

for {set i 1} {$i  1} {incr i} {
	$ns attach-hsdsch $ue($i) $udp($i)
}

$bs setErrorTrace 0 "/home/soufia/Bureau/documentation/idealtrace"
$bs setErrorTrace 1 "/home/soufia/Bureau/documentation/idealtrace"
$bs loadSnrBlerMatrix "/home/soufia/Bureau/documentation/SNRBLERMatrix"

$bs trace-outlink $f 2
$ue(0) trace-inlink $f 2
$ue(0) trace-outlink $f 3

# we cannot start the connect right away. Give time to routing algorithm to run
$ns at 0.5 "$app_(1) connect $app_(0)"

# install a procedure to print out the received data
Application/TcpApp instproc recv {data} {
    global ns
    $ns trace-annotate "$self received data \"$data\""
    puts "$self received data \"$data\""
}

# send a message via TcpApp
# The string will be interpreted by the receiver as Tcl code.
for { set i 1 } { $i  5 } { incr i} {
    $ns at [expr $i + 0.5] "$app_(1) send 100 {$app_(0) recv {my mesage $i}}"
}

#for {set i 0} {$i  1} {incr i} {
#	$ns at 10 "$cbr($i) start"
#	$ns at 11.0 "$cbr($i) stop"
#}
$ns at 11.401 "finish"

puts " Simulation is running ... please wait ..."
$ns run
I have this error
Code:
[mouna@localhost ~]$ ns umts.tcl
gap_size 0.00762939453125
wrong # args: should be "_o3 self class proc"
    (Simulator create-Umtsnode line 1)
    invoked from within
"$ns create-Umtsnode 0.0.0"
    invoked from within
"set rnc [$ns create-Umtsnode 0.0.0]"
    (file "umts.tcl" line 54)
I don`t know what`s the problem!!!

thank you so much
 
Old 05-08-2012, 06:17 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
# 11. Don't know. ?Some error in "umts.tcl" ? Where did you get it from ?


Did you try out the other tcl files ?
Post # 5 here ...
http://www.linuxquestions.org/questi...-etc-869957/#5
→ → umts_am1movil.tcl.txt, umts_am5mobiles.tcl.txt

http://eurane.ti-wmc.nl/eurane/test_tcp.tcl.txt → test_tcp.tcl
http://eurane.ti-wmc.nl/eurane/test_udp_dch.tcl → test_udp_dch.tcl
http://eurane.ti-wmc.nl/eurane/test_udp_hsdsch.tcl → test_udp_hsdsch.tcl

.
 
Old 05-08-2012, 06:57 AM   #13
mounaboug
LQ Newbie
 
Registered: Apr 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
I try with umts_am1movil.tcl
I have this result
Code:
Ejecutandose la Simulación....
 Simulación Terminada.
Really m I don`t understand what can I do to simulate UMTS!!

Thank you ,
 
Old 05-08-2012, 08:00 AM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
# 13

ns umts_am1movil.tcl
... is creating this trace file : traza_am1.tr ( 127 kB.)

The message : Ejecutandose la Simulación.... Simulación Terminada :
= Running the simulation .... simulation completed.
 
Old 05-08-2012, 08:15 AM   #15
mounaboug
LQ Newbie
 
Registered: Apr 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Sorry,I don`t understand what you say zith:`` ...is creating this trace file:traza_am1.tr``

thank you,
 
  


Reply

Tags
eurane, umts


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
want to install ns2.29.3 along with mannasim patch for ns2.29 jeevanpinto Linux - Software 4 10-02-2013 12:09 AM
Differences between LEACH results on ns2.1b5 and ns2.35 deepa_2111 Linux - Software 15 05-16-2013 05:53 PM
Code of GPSR for ns2.33 or ns2.35 monikagoyal Linux - Software 31 04-26-2013 12:13 PM
i am using ubuntu as os. for NS2 to implement a routing protocol in ns2. sujovasu Programming 1 07-27-2010 01:44 AM
Installatiion failure timothy.mann Linux - Newbie 1 04-20-2005 07:00 AM


All times are GMT -5. The time now is 02:49 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration