LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-19-2014, 01:11 PM   #16
nassou19891
Member
 
Registered: Sep 2014
Posts: 56

Original Poster
Rep: Reputation: Disabled

I add ns2 light wimax (lwx)" for ns233 and lte but when i simulate the "eyana.tcl" it show for me this error

:
memoire@memoire-virtual-machine:~/Desktop/ns-allinone-2.33/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)
memoire@memoire-virtual-machine:~/Desktop/ns-allinone-2.33/lte-ex_06.14$


i'm blocked i don't know what is the problem

Last edited by nassou19891; 09-19-2014 at 01:13 PM.
 
Old 09-19-2014, 01:33 PM   #17
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,383

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
← Ref. post #16.
Quote:
invalid command name "Queue/LTEQueue/ULAirQueue"
May be you are using a wrong executable "ns".
( Or you have a failed build.)

The trick is to use named copies of the right 'ns' in /usr/local/bin/ :
/usr/local/bin/{ns233_lwx+lte, ns234_MPTCP, ns234wimax-lwx+DCCP+LTE+MPTCP}
... etc. etc.

-
 
Old 09-19-2014, 03:20 PM   #18
nassou19891
Member
 
Registered: Sep 2014
Posts: 56

Original Poster
Rep: Reputation: Disabled
Actualy i didn't understand very well what you say . Please can you explain more and how can i solve this problem ?

About building when i write "ns" in the terminal is showen "%" it's mean that the ns is installed succefull ; is am i right or not ?

Last edited by nassou19891; 09-19-2014 at 03:22 PM.
 
Old 09-19-2014, 03:48 PM   #19
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,383

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
← #18 .
Quote:
About building when I write "ns" in the terminal is shown "%"
it's mean that the ns is installed succefull
Not really. Unless you never have built any other 'ns' on that OS,
.. and you have no entries to .bashrc .

But : You can copy the file eyana.tcl to ns-allinone-2.33/ns-2.33/,
and do $ ./ns eyana.tcl
... Only then you can be sure it's the right 'ns'.

The safe way is renaming ns ( or copy ) to 'ns_wimax-lwx+lte', and :
$ sudo cp ns_wimax-lwx+lte /usr/local/bin/ .
... Then do the simulation with $ ns_wimax-lwx+lte eyana.tcl

-
 
Old 09-19-2014, 04:03 PM   #20
nassou19891
Member
 
Registered: Sep 2014
Posts: 56

Original Poster
Rep: Reputation: Disabled
when i copy the file eyana.tcl to ns-allinone-2.33/ns-2.33/, and do $ ./ns eyana.tcl this error was showen :

warning: no class variable Session/RTP::debug_

see tcl-object.tcl in tclcl for info about this warning.

memoire@memoire-virtual-machine:~/Desktop/ns-allinone-2.33/ns-2.33$ nam: nam_init out.nam : couldn't open "/home/memoire/.nam-port": permission denied
while executing
"open $PORT_FILE_ w 0600"
(procedure "_o3" line 20)
(AnimControl start-server line 20)
invoked from within
"$self start-server"
(procedure "_o3" line 3)
(AnimControl local-create-animator line 3)
invoked from within
"$self local-create-animator $trace_file [join $args]"
invoked from within
"if $flag {
$self local-create-animator $trace_file [join $args]
} else {
$self remote-create-animator $trace_file [join $args]
}"
(procedure "_o3" line 20)
(AnimControl init line 20)
invoked from within
"_o3 init out.nam {}"
(Class create line 1)
invoked from within
"AnimControl create _o3 out.nam {}"
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 AnimControl $trace_file $args"
(procedure "nam_init" line 2)
invoked from within
"nam_init out.nam "



i think that ns was not build succefuly . can you help me to verified that it was build succefuly .
I folow these steps :
$ tar xvf ns-allinone-2.33.tar.gz
$ cd ns-allinone-2.33/
$ patch -p0 < wimax-lwx_ns233.patch
$ patch -p0 < lte-ns2.33.patch
$ export CC=gcc41 CXX=g++41 && ./install

Last edited by nassou19891; 09-19-2014 at 04:25 PM.
 
Old 09-19-2014, 05:38 PM   #21
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,383

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
← #20 .
Quote:
warning: no class variable Session/RTP::debug_
see tcl-object.tcl in tclcl for info about this warning.
That's the usual output from $ ns-lte eyana.tcl

About nam : Delete all nam* that you can find in /home/<name>/,
.. and install a usable nam, from nam-1.14.i586.tar.gz
https://drive.google.com/file/d/0B7S...it?usp=sharing
$ tar xvf nam-1.14.i586.tar.gz
$ cd nam-1.14.i586/
$ sudo cp nam /usr/local/bin/

* The nam you can build from ns-allinone often fails,
and the Ubuntu packages from Ubuntu have not been good for some time.

-
 
Old 09-20-2014, 12:35 PM   #22
nassou19891
Member
 
Registered: Sep 2014
Posts: 56

Original Poster
Rep: Reputation: Disabled
Sorry i follow the steps that you given to me about nam but i have another problem .
i uninstal ns2.34 and i reinstal it by following this steps : http://ns2-ubuntu.blogspot.com/ but when i write ns to be sure that ns2.34 is installed correctly i have this message :

"The program 'ns' is currently not installed. You can install it by typing:
sudo apt-get install ns2


I think that ns was not installed what should i do please ?
 
Old 09-20-2014, 01:53 PM   #23
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,383

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
← #22 .
Quote:
I think that ns was not installed
Installing the executable 'ns' is done this way :
$ cd ns-allinone-2.34/ns-2.34/
$ sudo make install
I.e. 'make install' will copy 'ns' to /usr/local/bin/

.... And if you have more than one version of ns-allinone :
$ cd ns-allinone-2.34/ns-2.34/
$ cp ns ns_new.name
$ sudo cp ns_new.name /usr/local/bin/

About http://ns2-ubuntu.blogspot.com/ : Don't use it !
The purpose of the text is to use a later gcc/g++ ,
instead of the gcc/g++ that ns-2.34 was made for.
The instructions may work ( sometimes ) for an ns234,
with no extra protocols added.
And I think this thread is all about lots of "extra's".
Besides that, the text about adding *PATH text to .bashrc makes no sense :
The executable 'ns' is hard coded to know the location of it's libraries.

-
 
Old 09-21-2014, 08:22 AM   #24
nassou19891
Member
 
Registered: Sep 2014
Posts: 56

Original Poster
Rep: Reputation: Disabled
unfortunately , i was doing this steps in http://ns2-ubuntu.blogspot.com/ and i install gcc/g++.so how could i begin from zero and install ns with using your steps
 
Old 09-21-2014, 08:33 AM   #25
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,383

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
← #24 .

Delete all ns2 related PATH entries you may have in .bashrc .

For Wimax-lwx + LTE : Read post #4.
Or use one combined patch only :
$ patch -p0 < WimaxLWX+lte+dccp_ns233.patch
https://drive.google.com/file/d/0B7S...it?usp=sharing


-
 
Old 09-21-2014, 08:59 AM   #26
nassou19891
Member
 
Registered: Sep 2014
Posts: 56

Original Poster
Rep: Reputation: Disabled
i didn't change the bashrc file but i make a new file called bash_aliases like he said in the link and i put the PATH . But i couldn't delate it it can bathered me or not ??
 
Old 09-21-2014, 09:37 AM   #27
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,383

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
← #26 .
Quote:
a new file called bash_aliases like he said in the link and i put the PATH
Yes, you should delete that file.
 
Old 09-21-2014, 10:04 AM   #28
nassou19891
Member
 
Registered: Sep 2014
Posts: 56

Original Poster
Rep: Reputation: Disabled
I didn't found where is the file saved ? how can i delate it with a command ?

Last edited by nassou19891; 09-21-2014 at 10:27 AM.
 
Old 09-21-2014, 10:32 AM   #29
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,383

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
← #28 .

Reading http://ns2-ubuntu.blogspot.com/ ,
you will know that the file name is ~/.bash_aliases
.. That's a hidden file in your /home/<name>
Deleting : $ rm .bash_aliases
 
Old 09-21-2014, 10:56 AM   #30
nassou19891
Member
 
Registered: Sep 2014
Posts: 56

Original Poster
Rep: Reputation: Disabled
Think you i delate the bash_aliases file but when try to install ns bu following your steps this message was showen
make: *** No rule to make target `install'. Stop.

Note :there is a file install under the ns-allinone-2.34 not ns-2.34
 
  


Reply

Tags
lte, mptcp, ns2, wimax-lwx_and_lte


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
regarding LTE patch on ns2.35 swetha.goudar Linux - Networking 3 03-24-2014 05:11 AM
[SOLVED] patching lte in ns2.33 chandana Linux - Software 19 03-01-2014 12:20 AM
Ns2 + wimax ballexaa Linux - Software 1 09-14-2013 03:27 PM
Ns2-lte binteasim Linux - Software 2 07-23-2013 04:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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