LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 02-27-2015, 03:47 AM   #1
babar.hameed
LQ Newbie
 
Registered: Feb 2015
Posts: 15

Rep: Reputation: Disabled
Exclamation is it not possible run lte on ns 2.35


I want to run LTE files on ns 2.35.i tried a lot to patch lte on ns 2.35,2.33 and 2.34


now i m fed up.is there any solution to implement lte on ns 2.35

or any other suggestion to implement lte.......please help.

i m using ubuntu 14.04.please dont say to change the version as i already lost my complete data during installation of ubuntu.

Last edited by babar.hameed; 02-27-2015 at 03:48 AM.
 
Old 02-27-2015, 04:21 AM   #2
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
ns-2.35 + LTE

Welcome to LQ.

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
$ cd ns-2.35/
$ cp ns ns235-lte
$ sudo cp ns235-lte /usr/local/bin/

Running simulations : $ ns235-lte eyana.tcl
.. etc. etc. from LTE-examples, lte-examples-0614.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing


-
 
Old 02-27-2015, 04:29 AM   #3
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
Quote:
... I already lost my complete data ...
If something (data) is important :
Copy the files to an external hard drive →
→ Immediately, or at least every day.
And make backups to DVD / cdrom.
 
Old 03-01-2015, 08:51 AM   #4
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
LTE build examples

https://docs.google.com/document/d/1...JMg243PJ4/edit
 
Old 03-03-2015, 03:45 AM   #5
babar.hameed
LQ Newbie
 
Registered: Feb 2015
Posts: 15

Original Poster
Rep: Reputation: Disabled
dear sir
1- "$ ./install" genrated following results:

Please compile your xgraph separately.
Please compile your gt-itm & sgb2ns separately.

Ns-allinone package has been installed successfully.
Here are the installation places:
tcl8.5.10: /home/babar/ns-allinone-2.35/{bin,include,lib}
tk8.5.10: /home/babar/ns-allinone-2.35/{bin,include,lib}
otcl: /home/babar/ns-allinone-2.35/otcl-1.14
tclcl: /home/babar/ns-allinone-2.35/tclcl-1.20
ns: /home/babar/ns-allinone-2.35/ns-2.35/ns
nam: /home/babar/ns-allinone-2.35/nam-1.15/nam



2-also in response of "babar@babar-HP-1000-Notebook-PC:~/ns-allinone-2.35/ns-2.35$ cp ns ns235-lte"
cursor returned to "$"


3- finaly in response of " ns-allinone-2.35/ns-2.35$ sudo cp ns235-lte /usr/local/bin/" following message displayed:
cp: cannot create regular file ‘/usr/local/bin/’: Not a directory.


waiting for kind response so i may proceed to next step.
 
Old 03-03-2015, 04:10 AM   #6
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
← ref. #5.
Quote:
Please compile your xgraph separately
I guess you used the wrong `ns-allinone-2.35´.
Please use ns-allinone-2.35_gcc482.tar.gz !
Besides that, you should already have Xgraph, with the ns2 prerequisites:
$ sudo apt-get install \
g++ automake make patch libtool libxmu-dev xgraph


Quote:
Ns-allinone package has been installed successfully.
Here are the installation places:
Doesn't matter, as long you have '/usr/local/bin/ns235-lte'.
The executable 'ns', or 'ns<any-name> is hard coded,
.. to know the location of it´s libraries :
ns-allinone-2.35/{ bin/tcsh8.5, lib/* }.


»» $ cp ns ns235-lte" : cursor returned to "$" «« :
Correct. Unless you typed '$ cp ns ns235-lte'.
$ is the command prompt.
** You will not get an OK message for 'cp'.
You can see for yourself that you now have 'ns-2.35/ns235-lte'.


Quote:
3- finaly in response of
" ns-allinone-2.35/ns-2.35$ sudo cp ns235-lte /usr/local/bin/"
following message displayed:
cp: cannot create regular file ‘/usr/local/bin/’: Not a directory.
'sudo cp ns235-lte /usr/local/bin/' is OK. Unless you have a corrupt OS :
With no "/usr/local/bin/"


-
 
Old 03-03-2015, 04:37 AM   #7
babar.hameed
LQ Newbie
 
Registered: Feb 2015
Posts: 15

Original Poster
Rep: Reputation: Disabled
Please use ns-allinone-2.35_gcc482.tar.gz !



i used the same link as you shared... for 2.35_gcc482.tar.gz

also

babar@babar-HP-1000-Notebook-PC:~/ns-allinone-2.35$ g++ automake make patch libtool libxmu-dev xgraph
g++: error: automake: No such file or directory
g++: error: make: No such file or directory
g++: error: patch: No such file or directory
g++: error: libtool: No such file or directory
g++: error: libxmu-dev: No such file or directory
g++: error: xgraph: No such file or directory
g++: fatal error: no input files
compilation terminated.

also i tried
babar@babar-HP-1000-Notebook-PC:~$ g++ automake make patch libtool libxmu-dev xgraph
g++: error: automake: No such file or directory
g++: error: make: No such file or directory
g++: error: patch: No such file or directory
g++: error: libtool: No such file or directory
g++: error: libxmu-dev: No such file or directory
g++: error: xgraph: No such file or directory
g++: fatal error: no input files
compilation terminated.
 
Old 03-03-2015, 04:49 AM   #8
babar.hameed
LQ Newbie
 
Registered: Feb 2015
Posts: 15

Original Poster
Rep: Reputation: Disabled
'sudo cp ns235-lte /usr/local/bin/' is OK. Unless you have a corrupt OS :
With no "/usr/local/bin/"


also i have chkd
it is "/usr/bin/"


i then tried
babar@babar-HP-1000-Notebook-PC:~/ns-allinone-2.35/ns-2.35$ sudo cp ns235-lte /usr/bin/

then again cursor returned to $.
 
Old 03-03-2015, 05:38 AM   #9
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
← ref. #7. → Read post #6 → →
$ sudo apt-get install \
g++ automake make patch libtool libxmu-dev xgraph
→ → Which means :
Code:
sudo apt-get install g++ automake make patch libtool libxmu-dev xgraph


← #8.
Quote:
then again cursor returned to $.
Read post #6.
I.e. that's what the terminal is supposed to do, when no errors.
And : Doesn't matter what the terminal shows, if you got /usr/bin/ns235-lte
* Please check with these commands :
Code:
which ns235-lte
ls /usr/bin/ns*
 
Old 03-04-2015, 10:40 AM   #10
babar.hameed
LQ Newbie
 
Registered: Feb 2015
Posts: 15

Original Poster
Rep: Reputation: Disabled
Read post #6.
I.e. that's what the terminal is supposed to do, when no errors.
And : Doesn't matter what the terminal shows, if you got /usr/bin/ns235-lte
* Please check with these commands :
Code:
which ns235-lte
ls /usr/bin/ns*
[/QUOTE]

dear sir
following is situation now. usr-->bin-->nothing
whereas ns235-lte is found on following path.

babar@babar-HP-1000-Notebook-PC:~$ cd usr
babar@babar-HP-1000-Notebook-PC:~/usr$ ls
bin lib lib64 share
babar@babar-HP-1000-Notebook-PC:~/usr$ cd ..
babar@babar-HP-1000-Notebook-PC:~$ cd ..
babar@babar-HP-1000-Notebook-PC:/home$ cd usr
bash: cd: usr: No such file or directory
babar@babar-HP-1000-Notebook-PC:/home$ cd ..
babar@babar-HP-1000-Notebook-PC:/$ cd usr
babar@babar-HP-1000-Notebook-PC:/usr$ cd local
babar@babar-HP-1000-Notebook-PC:/usr/local$ cd sbin
babar@babar-HP-1000-Notebook-PC:/usr/local/sbin$ ls
ns235-lte
babar@babar-HP-1000-Notebook-PC:/usr/local/sbin$



now what is next step....
 
Old 03-04-2015, 01:01 PM   #11
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
ref. #10.
Quote:
what is next step
Please see post #2 :

$ ns235-lte eyana.tcl
.. etc. etc. from LTE-examples, lte-examples-0614.tar.gz
 
Old 03-04-2015, 07:38 PM   #12
babar.hameed
LQ Newbie
 
Registered: Feb 2015
Posts: 15

Original Poster
Rep: Reputation: Disabled
dear sir
i executed eyana.tcl as instructed.but following result displayed.please guide thankyou.



babar@babar-HP-1000-Notebook-PC:~/ns-allinone-2.35/lte-ex_06.14$ ns eyana.tcl


invalid command name "Queue/LTEQueue/ULAirQueue"
while executing
"Queue/LTEQueue/ULAirQueue create _o101 "
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Queue/$qtype"
("default" arm line 3)
invoked from within
"switch -exact $qtype {
ErrorModule {
if { [llength $args] > 0 } {
set q [eval new $qtype $args]
} else {
set q [new $qtype Fid]
}
}
intserv {
set qtyp..."
(procedure "_o3" line 14)
(Simulator simplex-link line 14)
invoked from within
"$ns simplex-link $UE($i) $eNB 500Mb 2ms LTEQueue/ULAirQueue"
("for" body line 2)
invoked from within
"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/DL..."
(file "eyana.tcl" line 24)

Last edited by babar.hameed; 03-05-2015 at 01:50 AM.
 
Old 03-05-2015, 04:26 AM   #13
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
Ref. #10.

ns eyana.tcl : As wrong as possible ? You are using the wrong 'ns'.

The 'ns' with LTE : $ cd ns-2.35/ , i.e. the ns235 compiled with LTE.
$ cp ns ns235-lte
$ sudo cp ns235-lte /usr/local/bin/
..... The right simulation command is then $ ns235-lte eyana.tcl
* Please read post #2.


... And also delete any ns PATH* entries you may have made to .bashrc.


-
 
Old 03-06-2015, 11:46 PM   #14
babar.hameed
LQ Newbie
 
Registered: Feb 2015
Posts: 15

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by knudfl View Post
Ref. #10.

ns eyana.tcl : As wrong as possible ? You are using the wrong 'ns'.



... And also delete any ns PATH* entries you may have made to .bashrc.


-
dear sir
now please guide for installation of best suited os version for this purpose.also precautions during istallation of it.as after deleting path there was no change in output of eyana.tcl.
 
Old 03-09-2015, 01:00 AM   #15
babar.hameed
LQ Newbie
 
Registered: Feb 2015
Posts: 15

Original Poster
Rep: Reputation: Disabled
Unhappy

Quote:
Originally Posted by babar.hameed View Post
dear sir
now please guide for installation of best suited os version for this purpose.also precautions during istallation of it.as after deleting path there was no change in output of eyana.tcl.
dear sir
i want to get the solution of lte on ns. for this purpose.....i m willing to change ubuntu version....also your kind help may lead to the destination...so please let me know ubuntu version 32/64 bit and ns2.xx version to carve out the solution...


best regards.
 
  


Reply

Tags
lte, lte-ns235, ns2



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
LTE Patch for NS-2 Redsfan86 Linux - Software 51 04-22-2014 12:57 AM
Writing for 4G-LTE systemlordanubis Programming 3 03-10-2014 12:15 PM
[SOLVED] patching lte in ns2.33 chandana Linux - Software 19 03-01-2014 12:20 AM
Ns2-lte binteasim Linux - Software 2 07-23-2013 04:43 AM
install lte $ wimax in ns-2 maouhoub Linux - Newbie 15 03-26-2011 12:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:29 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
Open Source Consulting | Domain Registration