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.
thanks for your kindness but please try to help me as soon as possible because i have to make my tcl script work in 2 days maximum ...
about your posts # 11, # 23 in http://www.linuxquestions.org/questi...4-a-878526/#11, I already have seen them and it was really helpful to make hls.tcl work . .. but as i have explained to the problem now is how to use GPSR as a routing protocol to simulate a vehicular ad hoc network .... i need an exemple of tcl script to understund how does it work !!because i couldn't make my tcl script work till the moment ....
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
Rep:
# 13, the tcl files : ( "ssoumayaa.tcl" depends on changjing1.tcl )
Code:
$ ./ns ssoumayaa.tcl
num_nodes is set 2
INITIALIZE THE LIST xListHead
Starting Simulation...
radiorange 250, x 2000 y 500
length : 3.000000 , cellperline 12 , heigth 1.000000
maxlevel 3
radiorange 250, x 2000 y 500
length : 3.000000 , cellperline 12 , heigth 1.000000
maxlevel 3
SORTING LISTS ...DONE!
... And the files fangzhen1.nam (110.5 kB), fangzhen1.tr (174.8 kB) are created.
$ nam fangzhen1.nam : Nam opens. They play button will start some "animation".
thanks for your help, i have also the same result but there is now real transmission of packets between nodes if you read the tr file or execute the nam file ... if the tcl script works and there is generation of tr and nam files does this mean that the tcl script is correct ?
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
Rep:
# 19 .
Something is working.
But not much activity in the "nam visualized simulation."
Understanding what's happening. One could say the usual :
A week or two to learn how to build ns2 with a patch.
And 3 months? to learn how to use ns2.
.. And sorry, I only understand very little about the many ns2 functions.
I am mostly building the "package" only.
And can make a few edits in a tcl file. ( I am not a coder.)
hi all , hope you all fine , i run gpsr protocol on my file tcl with " ns-hls ", but the trace file , have another format , so i cant apply my scripts awk , and this an extract of my trace file
my question is , should i modify my awk script ? and if its the only way to resolve my problem , what mean
HLS_UPD_s , HLS_UD_fr and is there a difference between them and s , r ( i talk about the beginning of each line of my trace file)
or i should find another awk script special to gpsr routing protocol ,?
I got the GPSR patch and also it working well...please can anybody help me to use GPCR routing protocol to simulate a vehicular ad hoc network ???
from where i got the patch for it..????
invalid command name "Agent/GPSR"
while executing
"Agent/GPSR create _o3 "
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 Agent/GPSR"
invoked from within
"set gpsr [new Agent/GPSR]"
(file "hls.tcl" line 4)
can you help me to find problem
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.