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.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,494
Rep:
Re post #30, @alwaleed16 : Welcome to LQ.
Ubuntu 12.04.5 - 32bits : Using "ns235-gpsr-hls", built today.
Code:
ns235-gpsr-hls 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!
... But then again, I didn't update yesterday. Last update = Jun 19.
So maybe a new update made Ubuntu 12.04 ns2 hostile ?
There is a possible solution : You can use an older executable 'ns-hls'.
Provided by the package gpsr-hls-2.33-ubuntu10_i386.deb, once made with Ubuntu 10.10 https://drive.google.com/file/d/0B7S...ew?usp=sharing
... Download the package, and 1) cd Downloads/
2) sudo gdebi ./gpsr-hls-2.33-ubuntu10_i386.deb
The command 'ns-hls ssoumayaa.tcl' works perfect here too.
I re-patched GPSR in ns 2.35 and now it works fine after execute 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!
khalid@khalid-VirtualBox:~/hls-utils_05.15$
But when I executed 130sec-1f-hls-1.tcl and tried to calculate the PDF, NRL, and e2e-delay from awk#perl#python__scripts-10.2015 for the trace file in the link below, the awk scripts didn't work property and give zero.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,494
Rep:
Re #32.
"130sec-1f-hls-1.tcl" :
Seems the old version must be used, see post #31.
I.e. /usr/local/bin/ns-hls → → $ ns-hls 130sec-1f-hls-1.tcl
... I get a 13.4MB trace file = 1f-gpsr20_2.tr
Analyzing : I edited 'evaluate.pl', (typo´s edited) → new version = evaluate-2016.pl
$ perl evaluate-2016.pl -f 1f-gpsr20_2.tr
Saving the result :
perl evaluate-2016.pl -f 1f-gpsr20_2.tr 2>&1 | tee evaluate-2016__1f-gpsr20_2.tr.txt
Note : No guaranties for the examples in hls-utils_05.15/ to work in a particular way.
You are welcome to add / upload your own improved simulation examples.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,494
Rep:
Re #35.
Quote:
Please, how can I execute the 130sec-1f-hls-1.tcl
The folder hls-utils_05-15/ can have any location in /home/.
Example location : /home/[name]/ns2/gpsr-hls/hls-utils_05-15/
/usr/local/bin/ns-hls is provided by "gpsr-hls-2.33-ubuntu10_i386.deb".
Download and install, see post #31 :
sudo gdebi ./gpsr-hls-2.33-ubuntu10_i386.deb
I tried to install compiler version 4.1.2 in ubuntu 10.10 32 bit bu the following error appeared:
khalid@khalid-VirtualBox:~$ sudo apt-get install g++-4.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package g++-4.1
E: Couldn't find any package by regex 'g++-4.1'
bash: :/usr/X11R6/lib:/usr/local/lib: No such file or directory
khalid@khalid-VirtualBox:~$ ns-hls ssoumayaa.tcl
couldn't read file "ssoumayaa.tcl": no such file or directory
Finally, I got I a 13.4MB trace file when run 130sec-1f-hls-1.tcl. But when I tried to evaluate the packet delivery fraction for the trace file from the awk#perl#python__scripts-10.2015, I got the received packet larger than the source packet
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.