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 05-08-2012, 10:20 AM   #16
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,301

Rep: Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168

# 15.

When you run : ns umts_am1movil.tcl
... then the simulation result is saved in the file traza_am1.tr


cd ns-allinone-2.30/
The find command : find . -name "traza_am1.tr"
The reply : ./ns-2.30/traza_am1.tr

.
 
Old 05-09-2012, 04:23 AM   #17
mounaboug
LQ Newbie
 
Registered: Apr 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Thank you very much for your help

Exactly, i found the file "traza_am1.tr".
I open it I had the same file as you :http://www.linuxquestions.org/questi...ta-etc-869957/
The problem is that I did not understand this file
I do not know how I can make the simulation..
this is the first time that i use ns2
 
Old 05-10-2012, 04:55 AM   #18
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,301

Rep: Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168
#17
This is the simulation : ns ns umts_am1movil.tcl
The simulation result : traza_am1.tr

I guess you may find an answer in one of @unodior's posts.
She used some awk scripts to order the trace files,
so they would display in a "plot application".

LQ Search → → User Name = unodior , Keyword = awk

.
 
Old 05-14-2012, 07:39 AM   #19
mounaboug
LQ Newbie
 
Registered: Apr 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Hi thank a lot for your help
I see the link http://www.linuxquestions.org/questi...ations-873644/
and I write the file "instantThroughputStll.awk"
The problem is that I don't understand where I must write this file and how I can see the result ???!!
I want to see the result of "unodior" ([SOLVED] ns2.30: “LMS_SETUP” instead of “UM_Data, AM_Data, etc)
How can I contact "unodior" ??
Really I need to understand the problem and see the result !!

Thank you;
 
Old 05-15-2012, 02:24 AM   #20
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,301

Rep: Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168
# 19.

Just ask your question to @unodior in the thread ...
http://www.linuxquestions.org/questi...ations-873644/
 
Old 05-18-2012, 02:24 AM   #21
mounaboug
LQ Newbie
 
Registered: Apr 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Hi knudfl;
I asked Unodior but she did not reply me
I don't what can I do now !?

Thank you ;
 
Old 05-20-2012, 08:23 AM   #22
mounaboug
LQ Newbie
 
Registered: Apr 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Hi
I want to install ns-2.28 with eurane
what can I do ??

thank you ;
 
Old 05-21-2012, 06:25 AM   #23
mounaboug
LQ Newbie
 
Registered: Apr 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Hi
I try to re-install ns-2.30 with EURANE patch but I have this error
Code:
trace/trace.cc:43:17: fatal error: rtp.h: No such file or directory
compilation terminated.
make: *** [trace/trace.o] Error 1
Ns make failed!
I don1t know where is the problem !!
I hope that you reply me
Really I need your help

Thank you a lot
 
Old 05-21-2012, 07:26 AM   #24
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,301

Rep: Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168
# 22 : Not possible. Unless you rewrite some code.

# 23 : cd ns-allinone-2.30/ns-2.30/ &&
zcat ns-2.30_eurane-1.12.diff.gz | patch -p1 && cd ../ &&
export CC=gcc34 CXX=g++34 && ./install

No clue why the header ns-allinone-2.30/ns-2.30/apps/rtp.h isn't found.

.
 
Old 05-21-2012, 03:55 PM   #25
mounaboug
LQ Newbie
 
Registered: Apr 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Hi;
Thank you a lot for your help
Now what can I do for UMTS simulation !!
I don't know how I can resolve this problem !!

Thank you ;
 
Old 05-29-2012, 04:36 AM   #26
mounaboug
LQ Newbie
 
Registered: Apr 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Hi
I want to try this example
Code:
global ns
remove-all-packet-headers
ad



d-packet-header MPEG4 MAC_HS RLC LL Mac RTP TCP IP Common Flags

set ns [new Simulator]
set f [open files.tr w]
$ns trace-all $f

proc finish {} {
    global ns
    global f
    $ns flush-trace
    close $f
    puts " Simulation ended."
    exec nam out1.nam &
    exit 0
}



# Node = 0
$ns node-config -UmtsNodeType rnc

# Node address is 0
set rnc [$ns create-Umtsnode]

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

# Node address is 1
set bs [$ns create-Umtsnode]

# Interface between RNC and 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.
set ue1 [$ns create-Umtsnode]
set ue2 [$ns create-Umtsnode]

# Node address for sgsn0 and ggsn0 is 4 and 5,respectively.

set sgsn0 [$ns node]
set ggsn0 [$ns node]

#Node address for node1 and node2 is 6 and 7,respectively.
set node1 [$ns node]
set node2 [$ns node]

# Connections between fixed network nodes
$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

# Routing Gateway
$rnc add-gateway $sgsn0

# Agent set-up for ue1
set tcp0 [new Agent/TCP]
$tcp0 set fid_ 0
$tcp0 set prio_ 2

# Agent set-up for ue2
set tcp1 [new Agent/TCP]
$tcp1 set fid_ 1
$tcp1 set prio_ 2

# Agent sagents to a common fixed node
$ns attach-agent $node2 $tcp0
$ns attach-agent $node2 $tcp1		

# Create and connect two applications to their agent	
set ftp0 [new Application/FTP]
$ftp0 attach-agent $tcp0 

set ftp1 [new Application/FTP]
$ftp1 attach-agent $tcp1 

# Create and attach sinks
set sink0 [new Agent/TCPSink]
$sink0 set fid_0
$ns attach-agent $ue2 $sink1

# Connect sinks to TCP agents
$ns connect $tcp0 $sink0
$ns connect $tcp1 $sink1

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

# Create HS-DSCH and attach TCP agent for ue1
$ns create-hsdsch $ue1 $sink0

# Attach TCP agent for ue2 to existing HS-DSCH
$ns attach-hsdsch $ue2 $sink1

# Loads input tracefiles for each UE, identified by its fid_
$bs setErrorTrace 0 "UE1_trace_file"
$bs setErrorTrace 1 "UE2_trace_file"

# Load BLER lookup table from file SNRBLERMatrix
$bs loadSnrBlermatrix "SNRBLEMatrix"

# Tracing for all HSDPA TRAFFIC IN DOWNTARGET 
$rnc trace-inlink-tcp $f 0
$bs trace-outlink $f 2

# UE1 Tracing
$ue1 trace-inlink $f 2 
$ue1 trace-outlink $f 3
$BS  trace-inlink $f 3
$ue2 trace-inlink-tcp $f 2

# UE2 Tracing
$ue2 trace-inlink $f 2
$ue2 trace-outlink $f 3
$bs trace-inlink $f 4
$ue2 trace-inlink-tcp $f 2

$ns at 0.0 "$ftp0 start"
$ns at 0.002 "$ftp1 start"
$ns at 10.1 "$ftp0 stop"
$ns at 10.102"$ftp1 stop"
$ns at 10.201 "finish"

puts " Simulation is runing ... please wait ..."
$ns runglobal ns
remove-all-packet-headers
add-packet-header MPEG4 MAC_HS RLC LL Mac RTP TCP IP Common Flags

set ns [new Simulator]
set f [open files.tr w]
$ns trace-all $f

proc finish {} {
    global ns
    global f
    $ns flush-trace
    close $f
    puts " Simulation ended."
    exec nam out1.nam &
    exit 0
}


# Node = 0
$ns node-config -UmtsNodeType rnc

# Node address is 0
set rnc [$ns create-Umtsnode]

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

# Node address is 1
set bs [$ns create-Umtsnode]

# Interface between RNC and 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.
set ue1 [$ns create-Umtsnode]
set ue2 [$ns create-Umtsnode]

# Node address for sgsn0 and ggsn0 is 4 and 5,respectively.

set sgsn0 [$ns node]
set ggsn0 [$ns node]

#Node address for node1 and node2 is 6 and 7,respectively.
set node1 [$ns node]
set node2 [$ns node]

# Connections between fixed network nodes
$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

# Routing Gateway
$rnc add-gateway $sgsn0

# Agent set-up for ue1
set tcp0 [new Agent/TCP]
$tcp0 set fid_ 0
$tcp0 set prio_ 2

# Agent set-up for ue2
set tcp1 [new Agent/TCP]
$tcp1 set fid_ 1
$tcp1 set prio_ 2

# Agent sagents to a common fixed node
$ns attach-agent $node2 $tcp0
$ns attach-agent $node2 $tcp1		

# Create and connect two applications to their agent	
set ftp0 [new Application/FTP]
$ftp0 attach-agent $tcp0 

set ftp1 [new Application/FTP]
$ftp1 attach-agent $tcp1 

# Create and attach sinks
set sink0 [new Agent/TCPSink]
$sink0 set fid_0
$ns attach-agent $ue2 $sink1

# Connect sinks to TCP agents
$ns connect $tcp0 $sink0
$ns connect $tcp1 $sink1

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

# Create HS-DSCH and attach TCP agent for ue1
$ns create-hsdsch $ue1 $sink0

# Attach TCP agent for ue2 to existing HS-DSCH
$ns attach-hsdsch $ue2 $sink1

# Loads input tracefiles for each UE, identified by its fid_
$bs setErrorTrace 0 "UE1_trace_file"
$bs setErrorTrace 1 "UE2_trace_file"

# Load BLER lookup table from file SNRBLERMatrix
$bs loadSnrBlermatrix "SNRBLEMatrix"

# Tracing for all HSDPA TRAFFIC IN DOWNTARGET 
$rnc trace-inlink-tcp $f 0
$bs trace-outlink $f 2

# UE1 Tracing
$ue1 trace-inlink $f 2 
$ue1 trace-outlink $f 3
$BS  trace-inlink $f 3
$ue2 trace-inlink-tcp $f 2

# UE2 Tracing
$ue2 trace-inlink $f 2
$ue2 trace-outlink $f 3
$bs trace-inlink $f 4
$ue2 trace-inlink-tcp $f 2

$ns at 0.0 "$ftp0 start"
$ns at 0.002 "$ftp1 start"
$ns at 10.1 "$ftp0 stop"
$ns at 10.102"$ftp1 stop"
$ns at 10.201 "finish"

puts " Simulation is runing ... please wait ..."
$ns runglobal ns
remove-all-packet-headers
add-packet-header MPEG4 MAC_HS RLC LL Mac RTP TCP IP Common Flags

set ns [new Simulator]
set f [open files.tr w]
$ns trace-all $f

proc finish {} {
    global ns
    global f
    $ns flush-trace
    close $f
    puts " Simulation ended."
    exec nam out1.nam &
    exit 0
}


# Node = 0
$ns node-config -UmtsNodeType rnc

# Node address is 0
set rnc [$ns create-Umtsnode]

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

# Node address is 1
set bs [$ns create-Umtsnode]

# Interface between RNC and 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.
set ue1 [$ns create-Umtsnode]
set ue2 [$ns create-Umtsnode]

# Node address for sgsn0 and ggsn0 is 4 and 5,respectively.

set sgsn0 [$ns node]
set ggsn0 [$ns node]

#Node address for node1 and node2 is 6 and 7,respectively.
set node1 [$ns node]
set node2 [$ns node]

# Connections between fixed network nodes
$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

# Routing Gateway
$rnc add-gateway $sgsn0

# Agent set-up for ue1
set tcp0 [new Agent/TCP]
$tcp0 set fid_ 0
$tcp0 set prio_ 2

# Agent set-up for ue2
set tcp1 [new Agent/TCP]
$tcp1 set fid_ 1
$tcp1 set prio_ 2

# Agent sagents to a common fixed node
$ns attach-agent $node2 $tcp0
$ns attach-agent $node2 $tcp1		

# Create and connect two applications to their agent	
set ftp0 [new Application/FTP]
$ftp0 attach-agent $tcp0 

set ftp1 [new Application/FTP]
$ftp1 attach-agent $tcp1 

# Create and attach sinks
set sink0 [new Agent/TCPSink]
$sink0 set fid_0
$ns attach-agent $ue2 $sink1

# Connect sinks to TCP agents
$ns connect $tcp0 $sink0
$ns connect $tcp1 $sink1

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

# Create HS-DSCH and attach TCP agent for ue1
$ns create-hsdsch $ue1 $sink0

# Attach TCP agent for ue2 to existing HS-DSCH
$ns attach-hsdsch $ue2 $sink1

# Loads input tracefiles for each UE, identified by its fid_
$bs setErrorTrace 0 "UE1_trace_file"
$bs setErrorTrace 1 "UE2_trace_file"

# Load BLER lookup table from file SNRBLERMatrix
$bs loadSnrBlermatrix "SNRBLEMatrix"

# Tracing for all HSDPA TRAFFIC IN DOWNTARGET 
$rnc trace-inlink-tcp $f 0
$bs trace-outlink $f 2

# UE1 Tracing
$ue1 trace-inlink $f 2 
$ue1 trace-outlink $f 3
$BS  trace-inlink $f 3
$ue2 trace-inlink-tcp $f 2

# UE2 Tracing
$ue2 trace-inlink $f 2
$ue2 trace-outlink $f 3
$bs trace-inlink $f 4
$ue2 trace-inlink-tcp $f 2

$ns at 0.0 "$ftp0 start"
$ns at 0.002 "$ftp1 start"
$ns at 10.1 "$ftp0 stop"
$ns at 10.102"$ftp1 stop"
$ns at 10.201 "finish"

puts " Simulation is runing ... please wait ..."
$ns run
I need:UE1_trace_file
UE2_trace_file
SNRBLERMatrix
I don`t know what I must put in the trace file and where are their locationsMM
I download the SNRBLERmatrix in ns-allinone-2.30 and I do make
../ns-allinone-2.30/make it`s true ??


Thank you very much,
 
Old 10-09-2012, 12:24 PM   #27
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,301

Rep: Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168
Info : There are some umts files in this package : NS-MIH-MULTI-CRITERIA.tar.bz2

Links, post # 20 here ..
http://www.linuxquestions.org/questi...571/page2.html
→ → ns-allinone-2.29/ns-2.29/tcl/hsntg/umts-hier-tcp.tcl, etc.
 
Old 11-02-2012, 06:20 AM   #28
Papagei
LQ Newbie
 
Registered: Nov 2012
Posts: 1

Rep: Reputation: Disabled
I think you can "Rayleigh 3kmh 300m 200s" from EURANE website and rename it to UE1_trace_file for testing your script.
If it works, could you try the simulation with one UE and one application.

I have tried but it shows Simulation is running ... please wait ...
--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
_o71: no target for slot -1
_o71 type: Classifier/Hash/Dest
content dump:
classifier _o71
0 offset
0 shift
2147483647 mask
0 slots
-1 default
---------- Finished standard no-slot{} default handler ----------

I do not know how to debug it.
 
  


Reply

Tags
eurane, ns2, 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 03:14 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration