LinuxQuestions.org
Help answer threads with 0 replies.
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 05-03-2024, 02:03 AM   #1
Aman Kemal
LQ Newbie
 
Registered: May 2024
Posts: 5

Rep: Reputation: 0
Ns2.35


I am install ubuntu 14.04 and ns-2.35. how to run .patch files ? , .tcl file? in after installing ns-2.35 please help me
when I am running this command
aman@aman-VirtualBox:~/ns-allinone-2.35/ns-2.35/Directional-Antenna_ex-2$ ns Dir-antenna-test.tcl
the following error displays
num_nodes is set 6
invalid command name "Antenna/DirAntenna"
while executing
"Antenna/DirAntenna create _o22 "
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 $anttype"
(procedure "_o14" line 13)
(Node/MobileNode add-interface line 13)
invoked from within
"$node add-interface $chan $propInstance_ $llType_ $macType_ $ifqType_ $ifqlen_ $phyType_
$antType_ $topoInstance_ $inerrProc_ $outerrProc_ $FECProc_"
(procedure "_o3" line 83)
(Simulator create-wireless-node line 83)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns_ node"
(procedure "create_node" line 27)
invoked from within
"create_node 10 10 0"
invoked from within
"set node_(0) [create_node 10 10 0]"
(file "Dir-antenna-test.tcl" line 259)

Last edited by Aman Kemal; 05-10-2024 at 03:15 AM. Reason: need clear information
 
Old 05-03-2024, 02:06 AM   #2
Aman Kemal
LQ Newbie
 
Registered: May 2024
Posts: 5

Original Poster
Rep: Reputation: 0
how to run .patch files , .tcl file in ns-2.35 eg directional-antenna_ns235.patch and ns-default.tcl
 
Old 05-03-2024, 02:13 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,973

Rep: Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334
Welcome here, at LQ,

you do not need to make new posts, you can edit your original post if you wish (and add more details).
Otherwise without those details hard to say anything. You can find a lot of info about it on the net, like this: https://askubuntu.com/questions/1376...pt-install-ns2
 
Old 05-06-2024, 11:34 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
ns-2.35 Directional Antenna build example ........
Code:
tar xvf ns-allinone-2.35_gcc5.tar.gz 
https://drive.google.com/file/d/0B7S...FDb7ul0VFk6FZQ
cd ns-allinone-2.35/
patch -p0 < directional-antenna_ns235.patch
https://drive.google.com/file/d/1-jC...usp=drive_link
export CC=gcc-4.8 CXX=g++-4.8 && ./install
cd ns-2.35/
cp ns ns-dir-antenna
sudo cp ns-dir-antenna /usr/local/bin/
------ Simulation -------
cd Directional-Antenna_ex-2/
export NS_ANTENNA_FILE=./antenna1.txt && ns-dir-antenna Dir-antenna-test.tcl
You can run these simulations : Directional-Antenna_ex-2.tar.gz
https://drive.google.com/file/d/15rx...ew?usp=sharing

! You can not run ns-default.tcl :
Is a configuration file / a library file in tcl/lib/

All ~400 ns2 patches https://drive.google.com/drive/folde...usp=drive_link

Directional Antenna INFO https://www.linuxquestions.org/quest...ional-antenna/

ns2 INFO https://docs.google.com/document/d/1...usp=share_link

-

Last edited by knudfl; 05-06-2024 at 11:45 AM.
 
Old 05-07-2024, 03:59 AM   #5
Aman Kemal
LQ Newbie
 
Registered: May 2024
Posts: 5

Original Poster
Rep: Reputation: 0
omni directional antenna

how to run ns-2.35 for omni directional antenna
 
Old 05-07-2024, 04:55 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #5.

ns2 Doc 16.1.3 https://www.isi.edu/nsnam/ns/doc/node173.html

Please have a look into ns-2.35/tcl/ex/ to know that "omni directional antenna" is the default setting.
Code:
$ cd tcl/ex/
$ grep -Rin OmniAntenna *
I.e. omnidirectional antenna pattern = OmniAntenna

Code:
$ cd 000-All-examples-5/
https://drive.google.com/file/d/1tpt...ew?usp=sharing
$ grep -Rin OmniAntenna * | wc -l    #### ~4000 lines OmniAntenna
All ~3000 ns2 simulation examples, tree
https://drive.google.com/drive/folde...usp=drive_link

-
 
  


Reply

Tags
directional-antenna, 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
want to install ns2.29.3 along with mannasim patch for ns2.29 jeevanpinto Linux - Software 4 10-02-2013 12:09 AM
Differences between LEACH results on ns2.1b5 and ns2.35 deepa_2111 Linux - Software 15 05-16-2013 05:53 PM
Code of GPSR for ns2.33 or ns2.35 monikagoyal Linux - Software 31 04-26-2013 12:13 PM
i am using ubuntu as os. for NS2 to implement a routing protocol in ns2. sujovasu Programming 1 07-27-2010 01:44 AM
weight throwing protocol using ns2 code,diffusion based protocol using ns2 code rajrupa Linux - Networking 1 05-27-2010 03:39 AM

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

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