How can I add olsr protocol to ns2 ? please help me
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
when I run the tcl file for 3d movement, the following error appears:
nour@ubuntu:~/Desktop/geo3D-ex-4$ ns235-geo3D wireless3D.tcl
(_o10 cmd line 1)
invoked from within
"_o10 cmd load_cube 1500 1500 1500 1"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o10" line 2)
(SplitObject unknown line 2)
invoked from within
"$topo load_cube $val(x) $val(y) $val(z) 1"
(file "wireless3D.tcl" line 47)
nour@ubuntu:~/Desktop/geo3D-ex-4$
this is Name OS and version:
nour@ubuntu:~/Desktop$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
nour@ubuntu:~/Desktop$
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516
Rep:
Re #16, #18 : Ubuntu 18.04
Testing : ns235-geo3D wireless3D.tcl : No errors
Your errors: Seems you are using a copy of ns (ns235-geo3D) with no "geo3D".
I.e. your error output is as the result from a stock ns-2.35 with no modifications.
You are supposed to unpack a new ns-allinone-2.35_gcc5.tar.gz https://drive.google.com/file/d/0B7S...FDb7ul0VFk6FZQ
.... into a new directory, and start from scratch ...
You can have as many ns-allinone-2.xx as you want, at the same time https://docs.google.com/document/d/1...it?usp=sharing
Example
/home/name/ns2/geo+olsr/ns-allinone-2.35
/home/name/ns2/geo/ns-allinone-2.35
/home/name/ns2/AA/ns-allinone-2.xx
.
/home/name/ns2/ZZ/ns-allinone-2.xx
My research is to improve the performance of the OLSR protocol using the ant algorithm.
I made the modification to the ant algorithm by entering the node velocity factor and the third dimension z.
How can I make these modifications to the OLSR protocol and its implementation?
can you help me please?
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516
Rep:
Re #16
`ns235-geo-olsr-64´ is a copy of my simulation example command.
I don't think you have this particular executable.
As with the previously discussed setdest3D/setdest3d, please use the command you actually have.
HOWTO
Type ns235-<TAB>
... to show your installed options (If any "ns235-...." command is available.)
When I modify the olsr code and execute the tcl file, the results remain the same as before.
Are there any instructions that I should implement after modifying the olsr code?
can you help me please.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516
Rep:
Re #23
A modification may require three tings further to add :
1. "Tcl Hook" line(s) in the C++ code
2. Some lines in tcl/lib/ns-** files
3. New commands / lines in your simulation.tcl
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.