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 |
# 31
Quote:
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. .. |
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 |
# 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. .. |
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. |
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 ! |
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. |
# 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). |
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. |
# 39
Quote:
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 .. |
Dear knudfl,
I tried many times and at last I can install LTE module in ns2.33... Thank you very much!!! i really HAPPY :)) |
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;) |
LTE patch download link
|
#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' .. |
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
|
All times are GMT -5. The time now is 06:41 AM. |