Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
# 15
I reinstalled ns-2.31 again, detailed steps:
1. tar -zxvf ns-allinone-2.31.tar.gz
2. cd ns-allinone-2.31
3. export CC=gcc-4.1 CXX=g++-4.1
4. ./install
then I follow your advice in the link: http://www.linuxquestions.org/questi...rror-940388/#5
./ns test4maccon.tcl seems well, nam test.nam still appears "node i is not defined". However, when the topology script is changed into random.tcl, it nam well.
Concerning the node not defined problem:
1st define your nodes positions (x,y,z) coordinates 2nd Define node size. By that you'll be able to view them in nam without errors
Concerning the add-channel problem generated from start simulation button in CRCN GIU:
Just create your traffic,topo and other parameters and after that use your terminal to compile by ./ns yourfile.tcl , however I prefer not using that GUI.
i am using ubuntu 12.04
i installed ns2-2.31
i am getting an error in terminal
harsha@Harsha:~/ns2/ns-allinone-2.31/ns-2.31$ java -jar CRCN.jar
Yeah
/home/harsha/ns2/ns-allinone-2.31/ns-2.31/test.tcl
routing
/home/harsha/ns2/ns-allinone-2.31/ns-2.31/test.tcl is called by ns
Starting Simulation...
NS EXITING...
num_nodes is set 10
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
Process exitValue: 0
jTabbedPane1_stateChanged(ChangeEvent e) called.
java.io.FileNotFoundException: (No such file or directory)
harshav you have to install java correctly and if you did otherwise you will get to CRCN problems, anyway I did not use the CRCN GUI try to write and run scripts of your calculation and drawings instead.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513
Rep:
# 20 .
Please try out one or more of the other *th* awk scripts:
avg_throughput.awk
avg_throughput(zigbee).awk
flow-thr.awk
genthroughput.awk
instantThroughput.awk*
instantThroughputStll.awk
Throughput2007.awk
throughput_newtrace.awk
thruput.awk
wireless-thr.awk
→ → →
awk_scripts-09.2013.tar.bz2 : https://docs.google.com/file/d/0B7S2...it?usp=sharing
what about the nam?? i'm using nam1.13 for ns2.31..
but i dont understand the topology created by nam...the node represent for what and also the others
thank you for your help knudfl..
thank god, the throughput.awk script that you gave me previously working perfectly..
i just want to know that the node below represent CR users or PR users?
set val(chan) Channel/WirelessChannel ; #Channel Type
set val(prop) Propagation/TwoRayGround ; #Radio propagation model
set val(netif) Phy/WirelessPhy ; #Network interface type
set val(ant) Antenna/OmniAntenna ; #Antenna model
set val(rp) WCETT ;#Routing Protocol
set val(ifq) Queue/DropTail/PriQueue ;# interface queue type
set val(ifqlen) 50 ;# max packet in ifq
set val(mac) Mac/802_11 ;# MAC type
set val(ll) LL ;# link layer type
set val(nn) 8 ;# number of mobilenodes
set val(ni) 2 ;# number of interfaces
set val(channum) 2 ;# number of channels per radio
set val(cp) ./scenario2random.tcl ; # topology traffic file
set val(stop) 50 ;# simulation time
#set Pt_ 0.04 ;#power level
# ==================================================================
# Main Program
# ======================================================================
# Initialize Global Variables
set ns_ [new Simulator]
set tracefd [open scenario2.tr w]
$ns_ trace-all $tracefd
# set up topography object
set topo [new Topography]
$topo load_flatgrid 500 500
#create nam
set namtrace [open scenario2.nam w]
$ns_ namtrace-all-wireless $namtrace 500 500
# Create God
set god_ [create-god $val(nn)]
# configure node
Phy/WirelessPhy set Pt_ 0.33 ;#power level
$ns_ node-config -adhocRouting $val(rp) -llType $val(ll) -macType $val(mac) -ifqType $val(ifq) -ifqLen $val(ifqlen) -antType $val(ant) -propType $val(prop) -phyType $val(netif) -topoInstance $topo -agentTrace ON -routerTrace ON -macTrace ON -movementTrace ON
for {set i 0} { $i < $val(ni)} {incr i} {
set chan_($i) [new $val(chan)]
}
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513
Rep:
# 27, # 23 . My result :
Code:
$ ns-crcn
num_nodes is set 8
INITIALIZE THE LIST xListHead
INITIALIZE THE LIST xListHead
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 572.1
SORTING LISTS ...DONE!
SORTING LISTS ...DONE!
NS EXITING...
The executable "ns-crcn" is from the package crcn-ns-2.31-ubuntu10_i386.deb (4MB) https://drive.google.com/file/d/0B7S...it?usp=sharing
Please install the package : $ sudo dpkg -i crcn-ns-2.31-ubuntu10_i386.deb
... to compare with your seemingly failed 'ns'.
List of generated files concerning scenario2wcett.tcl / scenario2random.tcl :
Chanfile 50kB, ITfile 194kB, scenario2.nam 20MB, scenario2.tr 14MB, Trafficfile 6kB.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.