LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 06-28-2011, 10:00 AM   #31
sirine
LQ Newbie
 
Registered: Jun 2011
Posts: 7

Rep: Reputation: Disabled
Question LTE patch module ns2.33


hello knudfl
I'm trying to patch lte module using NS2.33 as you have advise the other but I still have the same problem
1- in #2n => patch -p0 < tk-8.4-lastevent.patch doesn't work
I did not fin this file ether to copy it in the located directory as you have
explain before
2- I have this message like every one =>
Deleting the old log files ...
Done
start testing, please wait ...
invalid command name "Queue/LTEQueue"
while executing
"Queue/LTEQueue set qos_ true "
(file "lte.tcl" line 17)
Done
The testing results(throughput, delay, jitter) are:
---------------------------------------------------

0 1 2 3 total(Mbyte)
0.00 0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00 0.00

0 1 2 3 total
-nan -nan -nan -nan -nan

0 1 2 3 total
0 0 0 0 0

check the out.txt out.tr out.nam for detailed information.
please help
 
Old 06-28-2011, 01:53 PM   #32
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,272

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
# 31
Quote:
1- in #2n => patch -p0 < tk-8.4-lastevent.patch doesn't work
→ cd ns-allinone-2.33/tk8.4.18/ &&
ftp://ftp.swin.edu.au/gentoo-portage...astevent.patch
&& patch -p0 < tk-8.4-lastevent.patch && cd ../ && ./install

The "lastevent.patch" is mostly to have a usable 'nam'. See post #2 here
http://www.linuxquestions.org/questi...11-a-876434/#2

About your errors : ""invalid command name "Queue/LTEQueue" :
Has already been answered elsewhere is this thread, I think.

..
 
Old 06-28-2011, 02:48 PM   #33
sirine
LQ Newbie
 
Registered: Jun 2011
Posts: 7

Rep: Reputation: Disabled
thinks for your help knudfl
but I'm having the same problem while I'm executing test file
I have this msg which doesn't change from one execution to onother

root@sirine-mobii:~/ns-allinone-2.33/ns-2.33/lte-model-read-only# ./test
Deleting the old log files ...
rm: cannot remove `*.log': No such file or directory
Done
start testing, please wait ...
invalid command name "Queue/LTEQueue"
while executing
"Queue/LTEQueue set qos_ true "
(file "lte.tcl" line 17)
Done
The testing results(throughput, delay, jitter) are:
---------------------------------------------------

0 1 2 3 total(Mbyte)
0.00 0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00 0.00

0 1 2 3 total
-nan -nan -nan -nan -nan

0 1 2 3 total
0 0 0 0 0
check the out.txt out.tr out.nam for detailed information.

please help me
 
Old 06-29-2011, 10:18 AM   #34
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,272

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
# 33 : If you followed the method in post #2 + #4,
the result should probably look different : See post # 11.

( Please read all posts in this thread.)

And :
May be start from scratch in a new directory, with a new ns-allinone-2.33.

..
 
Old 07-13-2011, 01:26 AM   #35
eyana
LQ Newbie
 
Registered: Jul 2011
Posts: 16

Rep: Reputation: Disabled
Hi all.

I'm a newbie for linux and also ns. I tried to install the lte module. I follow the #2 post. and I have problem.

the command:
"cd ns-allinone-2.33/tk8.4.18/
patch -p0 < tk-8.4-lastevent.patch"

cannot work. it is showing command not found.

please help me.

thank you very much.
 
Old 07-13-2011, 03:13 AM   #36
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,272

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
Post #35 @ eyana : Welcome to LQ. .. .. ..

Well, you will have to download the patch, before applying it.


cd ns-allinone-2.33/tk8.4.18/ &&
wget ftp://ftp.swin.edu.au/gentoo-portage...astevent.patch
&& patch -p0 < tk-8.4-lastevent.patch


More about "tk-8.4-lastevent.patch" and nam :
http://www.linuxquestions.org/questi...a-11-a-876434/

Good luck !
 
Old 07-18-2011, 04:53 AM   #37
eyana
LQ Newbie
 
Registered: Jul 2011
Posts: 16

Rep: Reputation: Disabled
Hello knudfl,

I've get the copy of the tk-8.4-lastevent.patch in tk8.4.18.

But it still cannot work. When I type
patch -p0 < tk-8.4-lastevent.patch

it showing command not found.

please help me.

thank you.

Last edited by eyana; 07-18-2011 at 04:55 AM.
 
Old 07-18-2011, 05:39 AM   #38
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,272

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
# 37.

""patch : command not found"".

Guess, you are missing the package 'patch' : Install patch.
( # yum install patch ).

And please read http://www.linuxquestions.org/questi...a-11-a-876434/
I.e. the tk-8.4-lastevent.patch is used to have a working nam (mostly).
 
Old 07-20-2011, 01:08 AM   #39
eyana
LQ Newbie
 
Registered: Jul 2011
Posts: 16

Rep: Reputation: Disabled
Hello knudfl,

Thank you for the guidance. I can install the lte module in ns2.33 but I am facing a problem when I do make. This message appear.

project/ulairqueue.cc:1:24: error: ulairqueue.h: No such file or directory
project/ulairqueue.cc:3: error: expected class-name before ‘{’ token
project/ulairqueue.cc:6: error: ISO C++ forbids declaration of ‘TclObject’ with no type
project/ulairqueue.cc:6: error: expected ‘;’ before ‘*’ token
project/ulairqueue.cc:9: error: expected ‘;’ before ‘}’ token
project/ulairqueue.cc: In constructor ‘ULAirQueueClass::ULAirQueueClass()’:
project/ulairqueue.cc:5: error: class ‘ULAirQueueClass’ does not have any field named ‘TclClass’
project/ulairqueue.cc: At global scope:
project/ulairqueue.cc:11: error: ‘ULAirQueue’ has not been declared
project/ulairqueue.cc:11: error: variable or field ‘enque’ declared void
project/ulairqueue.cc:11: error: ‘Packet’ was not declared in this scope
project/ulairqueue.cc:11: error: ‘p’ was not declared in this scope
make: *** [project/ulairqueue.o] Error 1

What should I do?

Thank you.
 
Old 07-21-2011, 03:51 PM   #40
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,272

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
# 39
Quote:
error: ulairqueue.h: No such file or directory
The solution is described in post # 3 :
cd project/
1) ln -s ../lte-model-read-only/*.h .
.... Where the period ( . ) means the current directory.
2) ln -s ../lte-model-read-only/dlqueue.cc

..
 
Old 09-21-2011, 03:52 AM   #41
eyana
LQ Newbie
 
Registered: Jul 2011
Posts: 16

Rep: Reputation: Disabled
Dear knudfl,

I tried many times and at last I can install LTE module in ns2.33...

Thank you very much!!! i really HAPPY )
 
Old 12-14-2011, 11:11 PM   #42
eyana
LQ Newbie
 
Registered: Jul 2011
Posts: 16

Rep: Reputation: Disabled
Dear sinungtp,

I did follow the error and I can run lte.tcl. May be you can try with the code below.


set ns [new Simulator -multicast on]

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

set number 10

set eNB [$ns node]
set aGW [$ns node]
set server [$ns node]

for { set i 0} {$i < $number} {incr i} {

set UE($i) [$ns node]
}


for { set i 0} {$i < $number} {incr i} {
$ns simplex-link $UE($i) $eNB 500Mb 2ms LTEQueue/ULAirQueue
$ns simplex-link $eNB $UE($i) 1Gb 2ms LTEQueue/DLAirQueue

}


$ns simplex-link $eNB $aGW 5Gb 10ms LTEQueue/ULS1Queue
$ns simplex-link $aGW $eNB 5Gb 10ms LTEQueue/DLS1Queue

$ns duplex-link $aGW $server 10Gb 100ms DropTail

set mproto DM
set mrthandle [$ns mrtproto $mproto {}]
set group [Node allocaddr]

for { set i 0 } { $i < $number } {incr i} {
set s0($i) [new Session/RTP]
set s1($i) [new Session/RTP]
$s0($i) session_bw 12.2kb/s
$s1($i) session_bw 12.2kb/s
$s0($i) attach-node $UE($i)
$s1($i) attach-node $server
$ns at 0.7 "$s0($i) join-group $group"
$ns at 0.8 "$s0($i) start"
$ns at 0.9 "$s0($i) transmit 12.2kb/s"
$ns at 1.0 "$s1($i) join-group $group"
$ns at 1.1 "$s1($i) start"
$ns at 1.2 "$s1($i) transmit 12.2kb/s"
}

for { set i 0} {$i < $number} {incr i} {
set udp($i) [new Agent/UDP]
$ns attach-agent $server $udp($i)
set null($i) [new Agent/Null]
$ns attach-agent $UE($i) $null($i)
$ns connect $udp($i) $null($i)
$udp($i) set class_ 1

set cbr($i) [new Application/Traffic/CBR]
$cbr($i) attach-agent $udp($i)
$cbr($i) set packetSize_ 1000
$cbr($i) set rate_ 0.01Mb
$cbr($i) set random_ false
$ns at 1.4 "$cbr($i) start"
}

# step 3.3 define the interactive traffic
$ns rtproto Session
set log [open "http.log" w]

# Care must be taken to make sure that every client sees the same set of pages as the servers to which they are attached.
set pgp [new PagePool/Math]
set tmp [new RandomVariable/Constant] ;# Size generator
$tmp set val_ 10240 ;# average page size
$pgp ranvar-size $tmp
set tmp [new RandomVariable/Exponential] ;# Age generator
$tmp set avg_ 4 ;# average page age
$pgp ranvar-age $tmp

set s [new Http/Server $ns $server]
$s set-page-generator $pgp
$s log $log

set cache [new Http/Cache $ns $aGW]
$cache log $log

for { set i 0} {$i<$number} {incr i} {
set c($i) [new Http/Client $ns $UE($i)]
set ctmp($i) [new RandomVariable/Exponential] ;# Poisson process
$ctmp($i) set avg_ 1 ;# average request interval
$c($i) set-interval-generator $ctmp($i)
$c($i) set-page-generator $pgp
$c($i) log $log
}

$ns at 0.4 "start-connection"
proc start-connection {} {
global ns s cache c number

$cache connect $s
for { set i 0} {$i<$number} {incr i} {
$c($i) connect $cache
$c($i) start-session $cache $s
}
}

for { set i 0} {$i < $number} {incr i} {
set tcp($i) [new Agent/TCP]
$ns attach-agent $server $tcp($i)
set sink($i) [new Agent/TCPSink]
$ns attach-agent $UE($i) $sink($i)
$ns connect $tcp($i) $sink($i)
$tcp($i) set class_ 3
$tcp($i) set packetSize_ 0.5M

set ftp($i) [new Application/FTP]
$ftp($i) attach-agent $tcp($i)
$ns at 3.4 "$ftp($i) start"
}

$ns at 30 "finish"
proc finish {} {
global ns f nf
$ns flush-trace
close $f
close $nf
exec nam out.nam &
exit 0
}

$ns run


all the best
 
Old 01-23-2012, 04:55 AM   #43
psd_prasad
LQ Newbie
 
Registered: Oct 2008
Posts: 8

Rep: Reputation: 0
LTE patch download link

Give the link to download the LTE patch
or pls mail me the procedure and patch
prasad.psd@gmail.com
 
Old 01-23-2012, 05:08 AM   #44
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,272

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
#43, @psd_prasad : Please read the above thread.

Links and instructions : Post # 2.

I.e. you will get the usable LTE files with the command
'svn checkout http://lte-model.googlecode.com/svn/trunk/ lte-model-read-only'

..
 
Old 02-24-2012, 04:06 PM   #45
mcshawn
LQ Newbie
 
Registered: Feb 2012
Posts: 1

Rep: Reputation: Disabled
location base services(LBS) in LTE

I am doing masters in Mobile & satellite communication and doing my research on location base services on LTE networks. I am trying to identify the best simulator i can use. I would like to simulate and evaluate the QoS while performing locating.can someone advice me on what simulator to use NS2 or opnet..Thanks

Last edited by mcshawn; 02-24-2012 at 04:11 PM.
 
  


Reply

Tags
lte, lte-ns235, 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
how to install leach patch in ns2.34 in ubuntu 9.10 anjon.sunny Linux - Newbie 9 04-30-2014 05:05 AM
installing leach patch in ns2.34 in ubuntu9.10 g_vaibh Ubuntu 13 04-29-2014 06:17 PM
patch for working leach protocol in ns2.34 fedora rajcek Linux - Wireless Networking 4 02-04-2013 07:59 AM
integrating patch in ns2 MLinux Linux - Networking 2 11-30-2010 09:26 AM
I cant recompile my patch in ns2 on red hat v5 JawadZaheer Linux - Software 0 12-23-2007 12:31 AM


All times are GMT -5. The time now is 11:06 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration