Linux - NewbieThis 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
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.
num_nodes is set 6
INITIALIZE THE LIST xListHead
using backward compatible Agent/CBR; use Application/Traffic/CBR instead
Start of simulation..
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
Segmentation fault
I think dsr.tcl is protocol script. so you are not getting any output. Use this dsr protocol agent. create a simulation enviroment. that you should do.
just write
## this part used in dsr to avoid segmentation fault error
if { $val(rp) =="DSR"} {
set val(ifq) CMUPriQueue
} else {
set val(ifq) Queue/DropTail/PriQueue
}
I am trying to run wired-cum-wireless tcl in ns2.
The above mention tcl file is running well with dsdv as a routing protocol.when i replace dsdv with dsr and qtype as CMUPriQueue.
it shows me following error as i run command ns test.tcl
sneha@ubuntu:~/Desktop/test/
test18_05_2014$ ns test.tcl
num_nodes is set 2
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
can't read "ragent_": no such variable
while executing
"subst $[subst $var]"
(procedure "_o37" line 5)
(SplitObject set line 5)
invoked from within
"$self set ragent_"
(procedure "_o37" line 3)
(Node/MobileNode agenttrace line 3)
invoked from within
"$node agenttrace $tracefd"
(procedure "_o3" line 109)
(Simulator create-wireless-node line 109)
invoked from within
"_o3 create-wireless-node 1.0.0"
("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 [lindex $temp 0]"
invoked from within
"set BS(0) [ $ns_ node [lindex $temp 0]]"
(file "test.tcl" line 155)
please help me to resolve this error as early as possible.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Post #9, @s20.
Quote:
I am trying to run wired-cum-wireless tcl in ns2.
The above mention tcl file is running well with dsdv as a routing protocol.
When I replace dsdv with dsr and qtype as CMUPriQueue,
it shows me following error ...
First : The original 'ns-2.35/tcl/ex/wired-cum-wireless.tcl' → already has DSR →
set val(adhocRouting) DSR
And : Changing "set val(ifq) Queue/DropTail/PriQueue" → to →
set val(ifq) CMUPriQueue
... doesn't prevent the file from showing an OK simulation.
Quote:
can't read "ragent_": no such variable
There is no "ragent_" in the original file !
So what are you doing ? Are you using a clean ns2 version ? No code changes ?
And did you do other changes to `wired-cum-wireless.tcl´ ?
Please attach your file as test_s20.tcl.txt (Or any new name, you'd prefer :
Already multiple files with the naming `test.tcl´ ! Attachments : The paper clip tool in the 'Advanced Editor'.
-
It consists of three sections of links and four nodes.
The wired part including two sections of links, one is the link from the source to the router, and the other one is the link from the router to the base station. The wireless part is the link from the base station to the terminal. The bandwidth of the link from the source to the router is 100Mbps,and the delay is 1ms. The bandwidth of the link form the router to the base station is 100Mbps, and the delay is 49ms. The bandwidth of the link from the base station to the terminal is 1Mbps, and the delay is 0.01ms. The data packet's size is set to the fixed length 1000byte, and the range of wireless error rate is 0.001-0.01. The simulation last for 200s, and there is only one data stream named FTP which starts at 10s and ends at 200s.
With the above topology i need to use dsr as a routing protocol.
1. yes i am using clean ns2 version, no changes made to dsr protocol
Aim of the project is to improve performance of TCP Reno on wired-cum-wireless topology by making some changes in tcp reno.
in above topology tcl as a routing protocol tried DSDV it is working well but not with DSR and AODV.
ive used the scenario that i made to run dsr but the cbr file not suited because it suited just for 25 nodes. does anyone have the cbr file that can adjust the more node because in my project it need 90-200 node. thks for the reply
thanks. but when i called nam it got me error like this :
Cannot connect to existing nam instance. Starting a new one...
You are using the tracefile format older than 1.0a5
which will not allow you to run namgraph
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.