LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-05-2015, 11:00 AM   #31
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641

Post #30, @imen : Welcome to LQ.
Quote:
[code omitted because of length]
... means that you have added some wrong / extra entries to ns-2*/tcl/lib/ns-default.tcl

Your ns2 version must be specified ...
http://www.linuxquestions.org/linux/...Ask_a_Question
http://www.catb.org/~esr/faqs/smart-questions.html
... And the Ubuntu 14.04 version : 32bits or 64bits.

LTE info ...
. http://www.linuxquestions.org/questions/tags/lte/


LTE Build Examples
Ns-2.33 + LTE : (Ubuntu 11* ... 15*)
a) $ tar xvf ns-allinone-2.33.tar.gz
b) $ cd ns-allinone-2.33/
c) $ tar xvf lte-ns233-patching-2.tar.gz
https://drive.google.com/file/d/0B7S...it?usp=sharing
cX) Or : $ patch -p0 < lte-ns233.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
d) $ patch -p0 < otcl_ns234_gcc-4.4.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
d) $ export CC=gcc-4.4 CXX=g++-4.4
e) $ ./install
.. If CentOS 6, the 'export CC=gcc-4.4 CXX=g++-4.4' is to be ommited.
.. If Fedora 15 .. 22, the export command is 'export CC=gcc34 CXX=34'.


Ns-2.34 + LTE : (Ubuntu 11* ... 15*)
$ tar zvf ns-allinone-2.34.tar.gz
$ cd ns-allinone-2.34/
$ patch -p0 < otcl_ns234_gcc-4.4.patch
$ patch -p0 < lte-ns234.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
d) $ export CC=gcc-4.4 CXX=g++-4.4
e) $ ./install
.. If CentOS 6, the 'export CC=gcc-4.4 CXX=g++-4.4' is to be ommited.
.. If Fedora 15 .. 22, the export command is 'export CC=gcc34 CXX=g++34'.


Ns-2.35 + LTE :
$ tar xvf ns-allinone-2.35_gcc482.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ cd ns-allinone-2.35/
$ patch -p0 < LTE-ns235_2014-2.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ ./install
Please also see post #124 here ...
http://www.linuxquestions.org/questi...930/page9.html


-
 
Old 08-05-2015, 03:18 PM   #32
imen
LQ Newbie
 
Registered: Aug 2015
Posts: 9

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Post #30, @imen : Welcome to LQ.

... means that you have added some wrong / extra entries to ns-2*/tcl/lib/ns-default.tcl

Your ns2 version must be specified ...
http://www.linuxquestions.org/linux/...Ask_a_Question
http://www.catb.org/~esr/faqs/smart-questions.html
... And the Ubuntu 14.04 version : 32bits or 64bits.

LTE info ...
. http://www.linuxquestions.org/questions/tags/lte/


LTE Build Examples
Ns-2.33 + LTE : (Ubuntu 11* ... 15*)
a) $ tar xvf ns-allinone-2.33.tar.gz
b) $ cd ns-allinone-2.33/
c) $ tar xvf lte-ns233-patching-2.tar.gz
https://drive.google.com/file/d/0B7S...it?usp=sharing
cX) Or : $ patch -p0 < lte-ns233.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
d) $ patch -p0 < otcl_ns234_gcc-4.4.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
d) $ export CC=gcc-4.4 CXX=g++-4.4
e) $ ./install
.. If CentOS 6, the 'export CC=gcc-4.4 CXX=g++-4.4' is to be ommited.
.. If Fedora 15 .. 22, the export command is 'export CC=gcc34 CXX=34'.


Ns-2.34 + LTE : (Ubuntu 11* ... 15*)
$ tar zvf ns-allinone-2.34.tar.gz
$ cd ns-allinone-2.34/
$ patch -p0 < otcl_ns234_gcc-4.4.patch
$ patch -p0 < lte-ns234.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
d) $ export CC=gcc-4.4 CXX=g++-4.4
e) $ ./install
.. If CentOS 6, the 'export CC=gcc-4.4 CXX=g++-4.4' is to be ommited.
.. If Fedora 15 .. 22, the export command is 'export CC=gcc34 CXX=g++34'.


Ns-2.35 + LTE :
$ tar xvf ns-allinone-2.35_gcc482.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ cd ns-allinone-2.35/
$ patch -p0 < LTE-ns235_2014-2.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ ./install
Please also see post #124 here ...
http://www.linuxquestions.org/questi...930/page9.html


-
Thanks knudfl,I have installed NS-2.33(ubuntu 14.04) and it worked very well but when I am trying to implement the LTE module l have many problem and when I try to run .tcl file I have

ns:
[code omitted because of length]
: invalid command name "Queue/LTEQueue"
while executing
"Queue/LTEQueue set drop_front_ 0"
 
Old 08-06-2015, 03:43 AM   #33
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #32.

Please do not quote entire posts. A "one word reference" will do.

""[code omitted because of length]"" : See post #2.
Some wrong entries were added to ns-2*/tcl/lib/ns-default.tcl .

** If you do old instructions ns233 / LTE / Ubuntu : You will probably fail for every try.

More "latest" : See post #124 here ...
http://www.linuxquestions.org/questi...930/page9.html
.. And make yourself a couple of other executables :
/usr/local/bin/{ ns234-lte, ns235-lte }, to use with e.g. $ ns235-lte eyana.tcl


-

Last edited by knudfl; 08-06-2015 at 03:45 AM.
 
Old 08-07-2015, 06:55 AM   #34
imen
LQ Newbie
 
Registered: Aug 2015
Posts: 9

Rep: Reputation: Disabled
[QUOTE=knudfl;5401704]Re #33

Thank you knudfl,can you help me, in my project I have to work with the version NS-2.35,can you give me the steps that describe the imlpementation of LTE module in NS-2.35 (Ubuntu 14.04),help me please thank you
 
Old 08-07-2015, 10:03 AM   #35
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #34.

Ns-2.35 + LTE : Like post #31, etc.

$ tar xvf ns-allinone-2.35_gcc482.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ cd ns-allinone-2.35/
$ patch -p0 < LTE-ns235_2014-2.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ ./install
$ cd ns-2.35/
$ cp ns ns235-lte
$ sudo cp ns235-lte /usr/local/bin/
$ cd ../nam-1.15/
$ sudo make install

-
 
1 members found this post helpful.
Old 08-07-2015, 02:26 PM   #36
imen
LQ Newbie
 
Registered: Aug 2015
Posts: 9

Rep: Reputation: Disabled
Thank you knudfl I will try now
I tried the instructions and I have

greencloud@greencloud:~/ns-allinone-2.35/ns-2.35$ cd ../nam-1.15/
greencloud@greencloud:~/ns-allinone-2.35/nam-1.15$ sudo make install
/usr/bin/install -c -m 755 nam /usr/local/bin
greencloud@greencloud:~/ns-allinone-2.35/nam-1.15$

that's OK ??

Last edited by imen; 08-07-2015 at 04:08 PM.
 
Old 08-07-2015, 05:43 PM   #37
imen
LQ Newbie
 
Registered: Aug 2015
Posts: 9

Rep: Reputation: Disabled
[QUOTE=knudfl;5402445]Re #35

knudfl when I am try to run an exemple such (ns235-lte ltez.tcl or ns235-lte lte.tcl )

I have

All the UEs are empty in DLS1Queue!
All the UEs are empty in DLS1Queue!
All the UEs are empty in DLS1Queue!
All the UEs are empty in DLS1Queue!
All the UEs are empty in DLS1Queue!
All the UEs are empty in DLS1Queue!

please help me I have the same result when I run my own file scenario.tcl

Code:
set val(chan) Channel/WirelessChannel
set val(prop) Propagation/TwoRayGround
set val(netif) Phy/WirelessPhy
set val(mac) Mac/802_11
set val(ifq) Queue/DropTail/PriQueue
set val(ll) LL
set val(ant) Antenna/OmniAntenna
set val(ifqlen) 50
set val(nn) 5 ; 
set val(nU) 1 ; 
set val(nb) 6 ; 
set val(rp) DSDV
set val(x) 500
set val(y) 500

set ns_ [new Simulator]
set tracefd [open scenario.tr w]
$ns_ trace-all $tracefd

set namtrace [open scenario.nam w]
$ns_ namtrace-all-wireless $namtrace $val(x) $val(y)

set topo [new Topography]
$topo load_flatgrid $val(x) $val(y)
create-god [expr $val(nb)]

set chan_1_ [new $val(chan)]
$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) \
                 -topoInstance $topo \
                 -channelType $val(chan) \
                 -agentTrace ON \
                 -routerTrace ON \
                 -macTrace OFF \
                 -movementTrace OFF
                 
Queue/LTEQueue set qos_ true
Queue/LTEQueue set flow_control_ false

$ns_ node-config -wiredRouting OFF
for {set i 1} {$i <= $val(nU) } {incr i} {         
set UE($i) [$ns_ node] ;#UE
$UE($i) random-motion 0
$UE($i) label "UE $i"
}

$ns_ node-config -wiredRouting ON
set node_(4) [$ns_ node] ; #MME
$node_(4) random-motion 0
$node_(4) label "MME"
set node_(3) [$ns_ node] ; #aGW
$node_(3) random-motion 0
set node_(2) [$ns_ node] ; #aGW
$node_(2) random-motion 0        

Phy/WirelessPhy set CSThresh_ 7.69113e-08 ; 
Phy/WirelessPhy set RXThresh_ 2.13643e-07 ;

set node_(0) [$ns_ node];
$node_(0) random-motion 0
$node_(0) label "eNB1"
set node_(1) [$ns_ node] ;
$node_(1) random-motion 0
$node_(1) label "eNb2"

for {set i 1} {$i <= $val(nU)} {incr i} {
$ns_ initial_node_pos $UE($i) 10 }

$node_(4) set X_ 250.00
$node_(4) set Y_ 400.00
$node_(4) set Z_ 0.00
$node_(3) set X_ 350.00
$node_(3) set Y_ 300.00
$node_(3) set Z_ 0.00
$node_(2) set X_ 150.00
$node_(2) set Y_ 300.00
$node_(2) set Z_ 0.00
$node_(1) set X_ 450.00
$node_(1) set Y_ 200.00
$node_(1) set Z_ 0.00
$node_(0) set X_ 50.00
$node_(0) set Y_ 200.00
$node_(0) set Z_ 0.00

for {set i 1} {$i <= $val(nU) } {incr i} {
$UE($i) set X_ 220.00
$UE($i) set Y_ 350.00
$UE($i) set Z_ 0.00 }

$ns_ simplex-link $node_(3) $node_(4) 5Mb 2ms DropTail
$ns_ simplex-link-op $node_(3) $node_(4) orient left-up
$ns_ simplex-link $node_(4) $node_(3) 2Mb 2ms LTEQueue/DLS1Queue
$ns_ simplex-link-op $node_(4) $node_(3) orient right-down
$ns_ simplex-link $node_(2) $node_(4) 5Mb 2ms DropTail
$ns_ simplex-link-op $node_(2) $node_(4) orient right-up
$ns_ simplex-link $node_(4) $node_(2) 2Mb 2ms LTEQueue/DLS1Queue
$ns_ simplex-link-op $node_(4) $node_(2) orient left-down
$ns_ simplex-link $node_(0) $node_(2) 5Mb 2ms LTEQueue/ULS1Queue
$ns_ simplex-link-op $node_(0) $node_(2) orient right-up
$ns_ simplex-link $node_(2) $node_(0) 2Mb 2ms LTEQueue/DLS1Queue
$ns_ simplex-link-op $node_(2) $node_(0) orient left-down
$ns_ simplex-link $node_(1) $node_(3) 5Mb 2ms LTEQueue/ULS1Queue
$ns_ simplex-link-op $node_(1) $node_(3) orient left-up
$ns_ simplex-link $node_(3) $node_(1) 2Mb 2ms LTEQueue/DLS1Queue
$ns_ simplex-link-op $node_(3) $node_(1) orient right-down

$ns_ at 15.0 "$UE(1) setdest 290.0 450.0 100.0"
$ns_ at 30.0 "$UE(1) setdest 220.0 350.0 100.0"
for {set i 1} {$i <= $val(nU)} {incr i} {

set null($i) [new Agent/Null]
$ns_ attach-agent $UE($i) $null($i)
set udp($i) [new Agent/UDP]
$ns_ attach-agent $node_(4) $udp($i)
$ns_ connect $null($i) $udp($i)
$udp($i) set class_ 1
set cbr($i) [new Application/Traffic/CBR]
$cbr($i) attach-agent $udp($i)
}
for {set i 1} {$i < $val(nU) } {incr i} {
#$ns_ at 3.0 "$ftp($i) start"
#$ns_ at 99.0 "$ftp($i) stop"
$ns_ at 3.0 "$cbr($i) start"
$ns_ at 99.0 "$cbr($i) stop" }
for {set i 1} {$i < $val(nU) } {incr i} {
$ns_ at 100.0 "$UE($i) reset";
}
for {set i 0} {$i < $val(nn) } {incr i} {
$ns_ at 100.0 "$node_($i) reset";
}
$ns_ at 100.0 "stop"
$ns_ at 100.01 "puts "NS EXITING..." ; $ns_ halt"
proc stop {} {
global ns_ tracefd namtrace
$ns_ flush-trace
#exec nam scenario2 &
close $tracefd
close $namtrace
}
puts "Starting Simulation..."
#puts "$nb"
$ns_ run






I have a result

num_nodes is set 6
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Starting Simulation...
All the UEs are empty in DLS1Queue!
All the UEs are empty in DLS1Queue!
All the UEs are empty in DLS1Queue!
All the UEs are empty in DLS1Queue!
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
NS EXITING...


Help me please

Last edited by imen; 08-08-2015 at 06:49 AM.
 
Old 08-07-2015, 08:54 PM   #38
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #37.

Please edit post #37 to CODE TAGS : [code]code text[/code]
http://www.linuxquestions.org/questi....php?do=bbcode
Editing : The 'Edit' button in post #37.


Quote:
I have
All the UEs are empty in DLS1Queue!
Then please stick to the examples that doesn't do that :
eyana.tcl, bic1.tcl, bic-throughput-down.tcl, bicfixdownlink.tcl .


-
 
Old 08-08-2015, 06:57 AM   #39
imen
LQ Newbie
 
Registered: Aug 2015
Posts: 9

Rep: Reputation: Disabled
Re #38

when I run eyana.tcl ,the nam works but in terminal I have


warning: no class variable Session/RTP::debug_
see tcl-object.tcl in tclcl for info about this warning.

All the UEs are empty in DLS1Queue!
DLQueue::deque(), all the queues are empty, no packet to be sent.
DLQueue::deque(), all the queues are empty, no packet to be sent.
All the UEs are empty in DLS1Queue!
UE 3 is demarked in DLAirQueue.
UE 4 is demarked in DLAirQueue.
UE 5 is demarked in DLAirQueue.
UE 6 is demarked in DLAirQueue.
UE 7 is demarked in DLAirQueue.
UE 8 is demarked in DLAirQueue.
UE 9 is demarked in DLAirQueue.
UE 10 is demarked in DLAirQueue.
UE 11 is demarked in DLAirQueue.
UE 12 is demarked in DLAirQueue.
DLQueue::deque(), all the queues are empty, no packet to be sent.
DLQueue::deque(), all the queues are empty, no packet to be sent.
DLQueue::deque(), all the queues are empty, no packet to be sent.
All the UEs are empty in DLS1Queue!
DLQueue::deque(), all the queues are empty, no packet to be sent.
All the UEs are empty in DLS1Queue!
DLQueue::deque(), all the queues are empty, no packet to be sent.
DLQueue::deque(), all the queues are empty, no packet to be sent.
All the UEs are empty in DLS1Queue!

when I run the scripts bic1.tcl, bic-throughput-down.tcl, bicfixdownlink.tcl ,I didn't have problems and the NAM worked

Last edited by imen; 08-08-2015 at 07:08 AM.
 
Old 08-08-2015, 03:41 PM   #40
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #39.

Your Ubuntu 14.04 must be specified. Read post #31 !
I.e. generally ns2 is for a 32bits OS (i686).
This command will reply with `architecture' : $ uname -m

And if i686, you can install the package lte-ns-2.33-ubuntu10_i386.deb
https://drive.google.com/file/d/0B7S...ew?usp=sharing
Download the package, click the package, and it will be installed.

`lte-ns-2.33-ubuntu10_i386.deb' provides /usr/local/bin/ns-lte ,
.. and can run eyana.tcl with no issues : $ ns-lte eyana.tcl

All later Ubuntu`s (11.** - 15.**)are not necessarily ns2 friendly.
The package lte-ns-2.33-ubuntu10_i386.deb was built with Ubuntu 10.10 .

NS2 friendly contemporary 32bits OS`s : CentOS 6.x, PCLinuxOS, Slackware.
(Some protocols will work fully only with CentOS 6 (Currently update level 6.6).

-
 
Old 08-08-2015, 05:00 PM   #41
imen
LQ Newbie
 
Registered: Aug 2015
Posts: 9

Rep: Reputation: Disabled
Re #40.

I have installed lte-ns-2.33-ubuntu10_i386 and when I a; trying to run eyana.tcl mNam works ans the result is just

warning: no class variable Session/RTP::debug_
see tcl-object.tcl in tclcl for info about this warning.

But I have a problem with my own project

Code:
set val(chan) Channel/WirelessChannel
set val(prop) Propagation/TwoRayGround
set val(netif) Phy/WirelessPhy
set val(mac) Mac/802_11
set val(ifq) Queue/DropTail/PriQueue
set val(ll) LL
set val(ant) Antenna/OmniAntenna
set val(ifqlen) 50
set val(nn) 5 ; 
set val(nU) 1 ; 
set val(nb) 6 ; 
set val(rp) DSDV
set val(x) 500
set val(y) 500

set ns_ [new Simulator]
set tracefd [open scenario.tr w]
$ns_ trace-all $tracefd

set namtrace [open scenario.nam w]
$ns_ namtrace-all-wireless $namtrace $val(x) $val(y)

set topo [new Topography]
$topo load_flatgrid $val(x) $val(y)
create-god [expr $val(nb)]

set chan_1_ [new $val(chan)]
$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) \
                 -topoInstance $topo \
                 -channelType $val(chan) \
                 -agentTrace ON \
                 -routerTrace ON \
                 -macTrace OFF \
                 -movementTrace OFF
                 
Queue/LTEQueue set qos_ true
Queue/LTEQueue set flow_control_ false

$ns_ node-config -wiredRouting OFF
for {set i 1} {$i <= $val(nU) } {incr i} {         
set UE($i) [$ns_ node] ;#UE
$UE($i) random-motion 0
$UE($i) label "UE $i"
}

$ns_ node-config -wiredRouting ON
set node_(4) [$ns_ node] ; #MME
$node_(4) random-motion 0
$node_(4) label "MME"
set node_(3) [$ns_ node] ; #aGW
$node_(3) random-motion 0
set node_(2) [$ns_ node] ; #aGW
$node_(2) random-motion 0        

Phy/WirelessPhy set CSThresh_ 7.69113e-08 ; 
Phy/WirelessPhy set RXThresh_ 2.13643e-07 ;

set node_(0) [$ns_ node];
$node_(0) random-motion 0
$node_(0) label "eNB1"
set node_(1) [$ns_ node] ;
$node_(1) random-motion 0
$node_(1) label "eNb2"

for {set i 1} {$i <= $val(nU)} {incr i} {
$ns_ initial_node_pos $UE($i) 10 }

$node_(4) set X_ 250.00
$node_(4) set Y_ 400.00
$node_(4) set Z_ 0.00
$node_(3) set X_ 350.00
$node_(3) set Y_ 300.00
$node_(3) set Z_ 0.00
$node_(2) set X_ 150.00
$node_(2) set Y_ 300.00
$node_(2) set Z_ 0.00
$node_(1) set X_ 450.00
$node_(1) set Y_ 200.00
$node_(1) set Z_ 0.00
$node_(0) set X_ 50.00
$node_(0) set Y_ 200.00
$node_(0) set Z_ 0.00

for {set i 1} {$i <= $val(nU) } {incr i} {
$UE($i) set X_ 220.00
$UE($i) set Y_ 350.00
$UE($i) set Z_ 0.00 }

$ns_ simplex-link $node_(3) $node_(4) 5Mb 2ms DropTail
$ns_ simplex-link-op $node_(3) $node_(4) orient left-up
$ns_ simplex-link $node_(4) $node_(3) 2Mb 2ms LTEQueue/DLS1Queue
$ns_ simplex-link-op $node_(4) $node_(3) orient right-down
$ns_ simplex-link $node_(2) $node_(4) 5Mb 2ms DropTail
$ns_ simplex-link-op $node_(2) $node_(4) orient right-up
$ns_ simplex-link $node_(4) $node_(2) 2Mb 2ms LTEQueue/DLS1Queue
$ns_ simplex-link-op $node_(4) $node_(2) orient left-down
$ns_ simplex-link $node_(0) $node_(2) 5Mb 2ms LTEQueue/ULS1Queue
$ns_ simplex-link-op $node_(0) $node_(2) orient right-up
$ns_ simplex-link $node_(2) $node_(0) 2Mb 2ms LTEQueue/DLS1Queue
$ns_ simplex-link-op $node_(2) $node_(0) orient left-down
$ns_ simplex-link $node_(1) $node_(3) 5Mb 2ms LTEQueue/ULS1Queue
$ns_ simplex-link-op $node_(1) $node_(3) orient left-up
$ns_ simplex-link $node_(3) $node_(1) 2Mb 2ms LTEQueue/DLS1Queue
$ns_ simplex-link-op $node_(3) $node_(1) orient right-down

$ns_ at 15.0 "$UE(1) setdest 290.0 450.0 100.0"
$ns_ at 30.0 "$UE(1) setdest 220.0 350.0 100.0"
for {set i 1} {$i <= $val(nU)} {incr i} {

set null($i) [new Agent/Null]
$ns_ attach-agent $UE($i) $null($i)
set udp($i) [new Agent/UDP]
$ns_ attach-agent $node_(4) $udp($i)
$ns_ connect $null($i) $udp($i)
$udp($i) set class_ 1
set cbr($i) [new Application/Traffic/CBR]
$cbr($i) attach-agent $udp($i)
}
for {set i 1} {$i < $val(nU) } {incr i} {
#$ns_ at 3.0 "$ftp($i) start"
#$ns_ at 99.0 "$ftp($i) stop"
$ns_ at 3.0 "$cbr($i) start"
$ns_ at 99.0 "$cbr($i) stop" }
for {set i 1} {$i < $val(nU) } {incr i} {
$ns_ at 100.0 "$UE($i) reset";
}
for {set i 0} {$i < $val(nn) } {incr i} {
$ns_ at 100.0 "$node_($i) reset";
}
$ns_ at 100.0 "stop"
$ns_ at 100.01 "puts \"NS EXITING...\" ; $ns_ halt"
proc stop {} {
global ns_ tracefd namtrace
$ns_ flush-trace
#exec nam scenario2 &
close $tracefd
close $namtrace
}
puts "Starting Simulation..."
#puts "$nb"
$ns_ run
I have a result

num_nodes is set 6
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Starting Simulation...
All the UEs are empty in DLS1Queue!
All the UEs are empty in DLS1Queue!
All the UEs are empty in DLS1Queue!
All the UEs are empty in DLS1Queue!
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
NS EXITING...

Please my friend help me my project is about evaluation of Qos of video streaming in mobile cloud computing I have to implement LTE module and I have to generate graphs that describe the Qos of video streaming

Scenario 1
At first, we will generate the streaming traffic and evaluate the performance.
Increase the number of UEs having services between 1 to 25 UEs
Make the UEs move in the served zone with a constant speed fixed at 1m/s which is equivalent to 3.6 km/h.
A handover will be executed.
Testing the Delay, the Throughput and the packet loss ratio.

Sceario 2
At first, we will generate the streaming traffic and evaluate the performance.
Only one UE is using the network and it moves with a speed from 3.6 km/h to 180 km/h.
A handover will be executed at 23s of the simulation and the UE will be attached to eNB2 instead of eNB1.

Thanks a lot for your help
 
  


Reply

Tags
lte, lte#11, ns2


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
What are the steps to build and install a Slackware package from a RPM package? sudeepkulkarni Slackware 6 04-25-2011 12:51 PM
install lte $ wimax in ns-2 maouhoub Linux - Newbie 15 03-26-2011 12:11 AM
Does apt-get install <package> upgrade the package if it is already installed? davidas Debian 4 04-05-2004 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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