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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
05-06-2012, 10:39 AM
|
#1
|
|
LQ Newbie
Registered: Apr 2012
Posts: 28
Rep: 
|
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.
|
|
|
|
05-06-2012, 11:25 AM
|
#2
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,762
|
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.
.
|
|
|
|
05-06-2012, 01:54 PM
|
#3
|
|
LQ Newbie
Registered: Apr 2012
Posts: 28
Original Poster
Rep: 
|
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;
|
|
|
|
05-06-2012, 03:25 PM
|
#4
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,762
|
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.
|
|
|
|
05-07-2012, 03:38 AM
|
#5
|
|
LQ Newbie
Registered: Apr 2012
Posts: 28
Original Poster
Rep: 
|
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;
|
|
|
|
05-07-2012, 07:57 AM
|
#6
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,762
|
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.)
|
|
|
|
05-07-2012, 08:51 AM
|
#7
|
|
LQ Newbie
Registered: Apr 2012
Posts: 28
Original Poster
Rep: 
|
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
|
|
|
|
05-07-2012, 11:04 AM
|
#8
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,762
|
#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.)
May be an older file ? You are right ...
Now it is : zcat ns-2.30_eurane-1.12.diff.gz | patch -p1
.
|
|
|
|
05-07-2012, 01:53 PM
|
#9
|
|
LQ Newbie
Registered: Apr 2012
Posts: 28
Original Poster
Rep: 
|
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...
|
|
|
|
05-07-2012, 02:06 PM
|
#10
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,762
|
# 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 ? )
|
|
|
|
05-08-2012, 05:26 AM
|
#11
|
|
LQ Newbie
Registered: Apr 2012
Posts: 28
Original Poster
Rep: 
|
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 
|
|
|
|
05-08-2012, 06:57 AM
|
#13
|
|
LQ Newbie
Registered: Apr 2012
Posts: 28
Original Poster
Rep: 
|
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 ,
|
|
|
|
05-08-2012, 08:00 AM
|
#14
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,762
|
# 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.
|
|
|
|
05-08-2012, 08:15 AM
|
#15
|
|
LQ Newbie
Registered: Apr 2012
Posts: 28
Original Poster
Rep: 
|
Sorry,I don`t understand what you say zith:`` ...is creating this trace file:traza_am1.tr``
thank you,
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:12 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|