ns-3.30 and UAN-WOSS integration

215 views
Skip to first unread message

Jay Patel

unread,
Dec 22, 2019, 11:25:09 PM12/22/19
to ns-3-users
Hi,

Is ns-3.30 supports UAN-WOSS integration ? i tried to build ns-3.30 with WOSS but it ./waf configuration come up with woss integration error.

on the same machine, i had successfully build woss with ns-3.28.

Any help would be appreciated.

jay@jay-MS-7885:~/Documents/TutorialNS3/ns-allinone-3.30.1/ns-3.30.1$ sudo ./waf configure --with-woss-source=/home/jay/woss --with-woss-library=/home/jay/woss/lib --with-netcdf-lib=/home/jay/local/lib --with-netcdf-include=/home/jay/local
[sudo] password for jay:
Setting top to                           : /home/jay/Documents/TutorialNS3/ns-allinone-3.30.1/ns-3.30.1
Setting out to                           : /home/jay/Documents/TutorialNS3/ns-allinone-3.30.1/ns-3.30.1/build
Checking for 'gcc' (C compiler)          : /usr/bin/gcc
Checking for cc version                  : 5.5.0
Checking for 'g++' (C++ compiler)        : /usr/bin/g++
Checking for compilation flag -Wl,--soname=foo support : ok
Checking for compilation flag -std=c++11 support       : ok
Checking boost includes                                : 1_65_1
Checking boost libs                                    : lib signals not found in /usr/lib/x86_64-linux-gnu
Checking boost includes                                : 1_65_1
Checking boost libs                                    : lib signals not found in /usr/lib/x86_64-linux-gnu
Checking for program 'python'                          : /usr/bin/python3
Checking for python version >= 2.3                     : 3.6.9
python
-config                                          : /usr/bin/python3-config
Asking python-config for pyembed '--cflags --libs --ldflags --embed' flags : not found
Asking python-config for pyembed '--cflags --libs --ldflags' flags         : yes
Testing pyembed configuration                                              : yes
Asking python-config for pyext '--cflags --libs --ldflags' flags           : yes
Testing pyext configuration                                                : yes
Checking for compilation flag -fvisibility=hidden support                  : ok
Checking for compilation flag -Wno-array-bounds support                    : ok
Checking for pybindgen location                                            : ../pybindgen-0.20.0 (guessed)
Checking for python module 'pybindgen'                                     : 0.20.0
Checking for pybindgen version                                             : 0.20.0
Checking for code snippet                                                  : yes
Checking for types uint64_t and unsigned long equivalence                  : no
Checking for code snippet                                                  : no
Checking for types uint64_t and unsigned long long equivalence             : yes
Checking for the apidefs that can be used for Python bindings              : gcc-LP64
Checking for internal GCC cxxabi                                           : complete
Checking for python module 'pygccxml'                                      : 1.9.1
Checking for pygccxml version                                              : 1.9.1
Checking for program 'castxml'                                             : /usr/bin/castxml
Checking for castxml version                                               : 0.1
castxml version unknown
or too old, need version >= 0.2; automatic scanning of API definitions will not be possible
Checking for click location                                                : not found
Checking for program 'pkg-config'                                          : /usr/bin/pkg-config
Checking for 'gtk+-3.0'                                                    : not found
Checking for 'libxml-2.0'                                                  : yes
checking
for uint128_t                                                     : not found
checking
for __uint128_t                                                   : yes
Checking high precision implementation                                     : 128-bit integer (default)
Checking for header stdint.h                                               : yes
Checking for header inttypes.h                                             : yes
Checking for header sys/inttypes.h                                         : not found
Checking for header sys/types.h                                            : yes
Checking for header sys/stat.h                                             : yes
Checking for header dirent.h                                               : yes
Checking for header stdlib.h                                               : yes
Checking for header signal.h                                               : yes
Checking for header pthread.h                                              : yes
Checking for header stdint.h                                               : yes
Checking for header inttypes.h                                             : yes
Checking for header sys/inttypes.h                                         : not found
Checking for library rt                                                    : yes
Checking for header sys/ioctl.h                                            : yes
Checking for header net/if.h                                               : yes
Checking for header net/ethernet.h                                         : yes
Checking for header linux/if_tun.h                                         : yes
Checking for header netpacket/packet.h                                     : yes
Checking for NSC location                                                  : not found
Checking for 'sqlite3'                                                     : yes
Checking for header linux/if_tun.h                                         : yes
Checking for python module 'gi'                                            : 3.26.1
Checking for python module 'gi.repository.GObject'                         : ok
Checking for python module 'cairo'                                         : ok
Checking for python module 'pygraphviz'                                    : 1.4rc1
Checking for python module 'gi.repository.Gtk'                             : ok
Checking for python module 'gi.repository.Gdk'                             : ok
Checking for python module 'gi.repository.Pango'                           : ok
Checking for python module 'gi.repository.GooCanvas'                       : ok
Checking the given WOSS source code path                                   : /home/jay/woss (given)
Checking the given WOSS library path                                       : /home/jay/woss/lib (given)
Checking the given NetCDF source code path                                 : /home/jay/local (given)
Checking the given NetCDF library path                                     : /home/jay/local/lib (given)
WOSS source code path
is not valid                                         : /home/jay/woss/woss  
Checking for program 'sudo'                                                : /usr/bin/sudo
Checking for program 'valgrind'                                            : /usr/bin/valgrind
Checking for 'gsl'                                                         : yes
libgcrypt
-config                                                           : not found
Checking for compilation flag -fstrict-aliasing support                    : ok
Checking for compilation flag -fstrict-aliasing support                    : ok
Checking for compilation flag -Wstrict-aliasing support                    : ok
Checking for compilation flag -Wstrict-aliasing support                    : ok
Checking for program 'doxygen'                                             : /usr/bin/doxygen
---- Summary of optional NS-3 features:
Build profile                 : debug
Build directory               :
BRITE
Integration             : not enabled (BRITE not enabled (see option --with-brite))
DES
Metrics event collection  : not enabled (defaults to disabled)
Emulation FdNetDevice         : enabled
Examples                      : not enabled (defaults to disabled)
File descriptor NetDevice     : enabled
GNU
Scientific Library (GSL)  : enabled
Gcrypt library                : not enabled (libgcrypt not found: you can use libgcrypt-config to find its location.)
GtkConfigStore                : not enabled (library 'gtk+-3.0 >= 3.0' not found)
MPI
Support                   : not enabled (option --enable-mpi not selected)
NS
-3 Click Integration        : not enabled (nsclick not enabled (see option --with-nsclick))
NS
-3 OpenFlow Integration     : not enabled (Required boost libraries not found)
Network Simulation Cradle     : not enabled (NSC not found (see option --with-nsc))
PlanetLab FdNetDevice         : not enabled (PlanetLab operating system not detected (see option --force-planetlab))
PyViz visualizer              : enabled
Python API Scanning Support   : not enabled (castxml too old)
Python Bindings               : enabled
Real Time Simulator           : enabled
SQlite stats data output      : enabled
Tap Bridge                    : enabled
Tap FdNetDevice               : enabled
Tests                         : not enabled (defaults to disabled)
Threading Primitives          : enabled
Use sudo to set suid bit      : not enabled (option --enable-sudo not selected)
WOSS
Integration Framework    : not enabled (WOSS configuration error)
XmlIo                         : enabled
'configure' finished successfully (3.647s)



Federico Guerra

unread,
Dec 23, 2019, 9:53:10 AM12/23/19
to ns-3-users
Jay,
I'm Federico the developer of WOSS and woss-ns3

I'm able to compile latest WOSS-ns3 dev git
https://github.com/MetalKnight/woss-ns3

on top of the latest ns3-dev git repo 

and on top of the latest WOSS 1.8.0 library http://telecom.dei.unipd.it/ns/woss/
with the recommended NetCDF libraries linked at WOSS's mainpage.

as you can see the 
WOSS source code path is not valid                                         : /home/jay/woss/woss  

bottom line 
--with-woss-source=/home/jay/woss

should point to the WOSS library source path where you have unzipped the WOSS.1.8.0 tar, the path should contain the subdirs woss, woss/woss_db/ , woss/woss_def

Jay Patel

unread,
Dec 24, 2019, 12:34:03 PM12/24/19
to ns-3-users
Hello Federico,

Thank you very much for your quick response. I had successfully configured WOSS with ns-3.30. Sorry about misinterpretation.

jay@jay-MS-7885:~/Documents/TutorialNS3/ns-allinone-3.26/ns-3.26$ sudo ./waf configure --with-woss-source=/home/jay/Downloads/WOSS-v1.8.0 --with-woss-library=/home/jay/woss/lib --with-netcdf-lib=/home/jay/local/lib --with-netcdf-include=/home/jay/local
[sudo] password for jay:
Setting top to                           : /home/jay/Documents/TutorialNS3/ns-allinone-3.26/ns-3.26
Setting out to                           : /home/jay/Documents/TutorialNS3/ns-allinone-3.26/ns-3.26/build
Checking for 'gcc' (C compiler)          : /usr/bin/gcc
Checking for cc version                  : 5.5.0
Checking for 'g++' (C++ compiler)        : /usr/bin/g++
Checking for compilation flag -Wl,--soname=foo support : ok
Checking for program 'python'                          : /usr/bin/python
Checking for python version                            : (2, 7, 17, 'final', 0)
python
-config                                          : /usr/bin/python-config
Asking python-config for pyembed '--cflags --libs --ldflags' flags : yes
Testing pyembed configuration                                      : yes
Asking python-config for pyext '--cflags --libs --ldflags' flags   : yes
Testing pyext configuration                                        : yes
Checking for compilation flag -fvisibility=hidden support          : ok
Checking for compilation flag -Wno-array-bounds support            : ok
Checking for pybindgen location                                    : ../pybindgen-0.17.0.post57+nga6376f2 (guessed)
Checking for python module 'pybindgen'                             : 0.17.0.post57+nga6376f2
Checking for pybindgen version                                     : 0.17.0.post57+nga6376f2
Checking for code snippet                                          : yes
Checking for types uint64_t and unsigned long equivalence          : no
Checking for code snippet                                          : no
Checking for types uint64_t and unsigned long long equivalence     : yes
Checking for the apidefs that can be used for Python bindings      : gcc-LP64
Checking for internal GCC cxxabi                                   : complete
Checking for python module 'pygccxml'                              : 1.8.0
Checking for pygccxml version                                      : 1.8.0
Checking for program 'gccxml'                                      : not found
gccxml missing
; automatic scanning of API definitions will not be possible
Checking boost includes                                            : 1_65_1
Checking boost libs                                                : lib signals not found in /usr/lib/x86_64-linux-gnu
Checking boost includes                                            : 1_65_1
Checking boost libs                                                : lib signals not found in /usr/lib/x86_64-linux-gnu
Checking for click location                                        : not found
Checking for program 'pkg-config'                                  : /usr/bin/pkg-config
Checking for 'gtk+-2.0' >= 2.12                                    : yes
Checking for 'libxml-2.0' >= 2.7                                   : yes
Checking for type uint128_t                                        : not found
Checking for type __uint128_t                                      : yes
Checking high precision implementation                             : 128-bit integer (default)
Checking for header stdint.h                                       : yes
Checking for header inttypes.h                                     : yes
Checking for header sys/inttypes.h                                 : not found
Checking for header sys/types.h                                    : yes
Checking for header sys/stat.h                                     : yes
Checking for header dirent.h                                       : yes
Checking for header stdlib.h                                       : yes
Checking for header signal.h                                       : yes
Checking for header pthread.h                                      : yes
Checking for header stdint.h                                       : yes
Checking for header inttypes.h                                     : yes
Checking for header sys/inttypes.h                                 : not found
Checking for library rt                                            : yes
Checking for header sys/ioctl.h                                    : yes
Checking for header net/if.h                                       : yes
Checking for header net/ethernet.h                                 : yes
Checking for header linux/if_tun.h                                 : yes
Checking for header netpacket/packet.h                             : yes
Checking for NSC location                                          : not found
Checking for library libfluid (SDN support) location               : not found
Checking for 'sqlite3'                                             : yes
Checking for header linux/if_tun.h                                 : yes
Checking for python module 'gtk'                                   : ok
Checking for python module 'goocanvas'                             : not found
Checking for python module 'pygraphviz'                            : 1.4rc1
Checking the given WOSS source code path                           : /home/jay/Downloads/WOSS-v1.8.0 (given)
Checking the given WOSS library path                               : /home/jay/woss/lib (given)
Checking the given NetCDF source code path                         : /home/jay/local (given)
Checking the given NetCDF library path                             : /home/jay/local/lib (given)

WOSS source code path
is not valid                                 : /home/jay/Downloads/WOSS-v1.8.0/woss  
Checking for program 'sudo'                                        : /usr/bin/sudo
Checking for program 'valgrind'                                    : /usr/bin/valgrind
Checking for 'gsl'                                                 :
yes
python
-config                                                      : not found
Checking for compilation flag -Wno-error=deprecated-d... support   : ok
Checking for compilation flag -Wno-error=deprecated-d... support   : ok
Checking for compilation flag -fstrict-aliasing support            : ok
Checking for compilation flag -fstrict-aliasing support            : ok
Checking for compilation flag -Wstrict-aliasing support            : ok
Checking for compilation flag -Wstrict-aliasing support            : ok
Checking for program 'doxygen'                                     : /usr/bin/doxygen
---- Summary of optional NS-3 features:
Build profile                 : debug
Build directory               :
BRITE
Integration             : not enabled (BRITE not enabled (see option --with-brite))
DES
Metrics event collection  : not enabled (defaults to disabled)
Emulation FdNetDevice         : enabled
Examples                      : not enabled (defaults to disabled)
File descriptor NetDevice     : enabled
GNU
Scientific Library (GSL)  : enabled
Gcrypt library                : not enabled (libgcrypt not found: you can use libgcrypt-config to find its location.)
GtkConfigStore                : enabled
MPI
Support                   : not enabled (option --enable-mpi not selected)

NS
-3 Click Integration        : not enabled (nsclick not enabled (see option --with-nsclick))
NS
-3 OpenFlow Integration     : not enabled (Required boost libraries not found)

NS
-3 SDN libfluid Integration : not enabled (SDN through libfluid not enabled (see options --enable-sdn))

Network Simulation Cradle     : not enabled (NSC not found (see option --with-nsc))
PlanetLab FdNetDevice         : not enabled (PlanetLab operating system not detected (see option --force-planetlab))
PyViz visualizer              : not enabled (Missing python modules: goocanvas)
Python API Scanning Support   : not enabled (gccxml missing)

Python Bindings               : enabled
Real Time Simulator           : enabled
SQlite stats data output      : enabled
Tap Bridge                    : enabled
Tap FdNetDevice               : enabled
Tests                         : not enabled (defaults to disabled)
Threading Primitives          : enabled
Use sudo to set suid bit      : not enabled (option --enable-sudo not selected)
WOSS
Integration Framework    : not enabled (WOSS configuration error)
XmlIo                         : enabled
'configure' finished successfully (3.252s)
jay@jay
-MS-7885:~/Documents/TutorialNS3/ns-allinone-3.26/ns-3.26$ sudo ./waf configure --with-woss-source=/home/jay/Downloads/WOSS-v1.8.0/woss-1.8.0 --with-woss-library=/home/jay/woss/lib --with-netcdf-lib=/home/jay/local/lib --with-netcdf-include=/home/jay/local
Setting top to                           : /home/jay/Documents/TutorialNS3/ns-allinone-3.26/ns-3.26
Setting out to                           : /home/jay/Documents/TutorialNS3/ns-allinone-3.26/ns-3.26/build
Checking for 'gcc' (C compiler)          : /usr/bin/gcc
Checking for cc version                  : 5.5.0
Checking for 'g++' (C++ compiler)        : /usr/bin/g++
Checking for compilation flag -Wl,--soname=foo support : ok
Checking for program 'python'                          : /usr/bin/python
Checking for python version                            : (2, 7, 17, 'final', 0)
python
-config                                          : /usr/bin/python-config
Asking python-config for pyembed '--cflags --libs --ldflags' flags : yes
Testing pyembed configuration                                      : yes
Asking python-config for pyext '--cflags --libs --ldflags' flags   : yes
Testing pyext configuration                                        : yes
Checking for compilation flag -fvisibility=hidden support          : ok
Checking for compilation flag -Wno-array-bounds support            : ok
Checking for pybindgen location                                    : ../pybindgen-0.17.0.post57+nga6376f2 (guessed)
Checking for python module 'pybindgen'                             : 0.17.0.post57+nga6376f2
Checking for pybindgen version                                     : 0.17.0.post57+nga6376f2
Checking for code snippet                                          : yes
Checking for types uint64_t and unsigned long equivalence          : no
Checking for code snippet                                          : no
Checking for types uint64_t and unsigned long long equivalence     : yes
Checking for the apidefs that can be used for Python bindings      : gcc-LP64
Checking for internal GCC cxxabi                                   : complete
Checking for python module 'pygccxml'                              : 1.8.0
Checking for pygccxml version                                      : 1.8.0
Checking for program 'gccxml'                                      : not found
gccxml missing
; automatic scanning of API definitions will not be possible
Checking boost includes                                            : 1_65_1
Checking boost libs                                                : lib signals not found in /usr/lib/x86_64-linux-gnu
Checking boost includes                                            : 1_65_1
Checking boost libs                                                : lib signals not found in /usr/lib/x86_64-linux-gnu
Checking for click location                                        : not found
Checking for program 'pkg-config'                                  : /usr/bin/pkg-config
Checking for 'gtk+-2.0' >= 2.12                                    : yes
Checking for 'libxml-2.0' >= 2.7                                   : yes
Checking for type uint128_t                                        : not found
Checking for type __uint128_t                                      : yes
Checking high precision implementation                             : 128-bit integer (default)
Checking for header stdint.h                                       : yes
Checking for header inttypes.h                                     : yes
Checking for header sys/inttypes.h                                 : not found
Checking for header sys/types.h                                    : yes
Checking for header sys/stat.h                                     : yes
Checking for header dirent.h                                       : yes
Checking for header stdlib.h                                       : yes
Checking for header signal.h                                       : yes
Checking for header pthread.h                                      : yes
Checking for header stdint.h                                       : yes
Checking for header inttypes.h                                     : yes
Checking for header sys/inttypes.h                                 : not found
Checking for library rt                                            : yes
Checking for header sys/ioctl.h                                    : yes
Checking for header net/if.h                                       : yes
Checking for header net/ethernet.h                                 : yes
Checking for header linux/if_tun.h                                 : yes
Checking for header netpacket/packet.h                             : yes
Checking for NSC location                                          : not found
Checking for library libfluid (SDN support) location               : not found
Checking for 'sqlite3'                                             : yes
Checking for header linux/if_tun.h                                 : yes
Checking for python module 'gtk'                                   : ok
Checking for python module 'goocanvas'                             : not found
Checking for python module 'pygraphviz'                            : 1.4rc1
Checking the given WOSS source code path                           : /home/jay/Downloads/WOSS-v1.8.0/woss-1.8.0 (given)
Checking the given WOSS library path                               : /home/jay/woss/lib (given)
Checking the given NetCDF source code path                         : /home/jay/local (given)
Checking the given NetCDF library path                             : /home/jay/local/lib (given)

WOSS source code path
is valid                                     : /home/jay/Downloads/WOSS-v1.8.0/woss-1.8.0/woss  
WOSS source code path
is valid                                     : /home/jay/Downloads/WOSS-v1.8.0/woss-1.8.0/woss/woss_def  
WOSS source code path
is valid                                     : /home/jay/Downloads/WOSS-v1.8.0/woss-1.8.0/woss/woss_db  
Checking the given WOSS library                                    : yes
NetCDF source code path                                            : /home/jay/local  
Checking the given NETCDF library                                  : yes
Checking for program 'sudo'                                        : /usr/bin/sudo
Checking for program 'valgrind'                                    : /usr/bin/valgrind
Checking for 'gsl'                                                 :
yes
python
-config                                                      : not found
Checking for compilation flag -Wno-error=deprecated-d... support   : ok
Checking for compilation flag -Wno-error=deprecated-d... support   : ok
Checking for compilation flag -fstrict-aliasing support            : ok
Checking for compilation flag -fstrict-aliasing support            : ok
Checking for compilation flag -Wstrict-aliasing support            : ok
Checking for compilation flag -Wstrict-aliasing support            : ok
Checking for program 'doxygen'                                     : /usr/bin/doxygen
---- Summary of optional NS-3 features:
Build profile                 : debug
Build directory               :
BRITE
Integration             : not enabled (BRITE not enabled (see option --with-brite))
DES
Metrics event collection  : not enabled (defaults to disabled)
Emulation FdNetDevice         : enabled
Examples                      : not enabled (defaults to disabled)
File descriptor NetDevice     : enabled
GNU
Scientific Library (GSL)  : enabled
Gcrypt library                : not enabled (libgcrypt not found: you can use libgcrypt-config to find its location.)
GtkConfigStore                : enabled
MPI
Support                   : not enabled (option --enable-mpi not selected)

NS
-3 Click Integration        : not enabled (nsclick not enabled (see option --with-nsclick))
NS
-3 OpenFlow Integration     : not enabled (Required boost libraries not found)

NS
-3 SDN libfluid Integration : not enabled (SDN through libfluid not enabled (see options --enable-sdn))

Network Simulation Cradle     : not enabled (NSC not found (see option --with-nsc))
PlanetLab FdNetDevice         : not enabled (PlanetLab operating system not detected (see option --force-planetlab))
PyViz visualizer              : not enabled (Missing python modules: goocanvas)
Python API Scanning Support   : not enabled (gccxml missing)
Python Bindings               : enabled
ReTal Time Simulator           : enabled
SQlite stats data output      : enabled
Tap Bridge                    : enabled
Tap FdNetDevice               : enabled
Tests                         : not enabled (defaults to disabled)
Threading Primitives          : enabled
Use sudo to set suid bit      : not enabled (option --enable-sudo not selected)

WOSS
Integration Framework    : enabled
XmlIo                         : enabled
'configure' finished successfully (3.358s)


Thanks a ton again.

Federico Guerra

unread,
Dec 24, 2019, 12:48:14 PM12/24/19
to ns-3-...@googlegroups.com


Hey Jay,
You're welcome.
No big deal.
Please read on the woss website the compatibilities of woss 1.8.0 with the
acoustic toolbox version and gebco db version.
Next woss 1.9.0, which will be released before the end of the year, will
have update compatibility with the latest acoustic toolbox (the arr file
file syntax has changed again in March 2019) and also with latest gebco db
(2008 2014 and 2019 in 2d).

Sent from mobile, sorry for any typo.

Federico Guerra

Federico Guerra

unread,
Dec 31, 2019, 5:38:08 AM12/31/19
to ns-3-users
Hi Jay,
WOSS 1.9.0 has been released.

from now on WOSS website will host all the required libraries, in order to avoid incompatibilities issues.

Please check the updated installation instructions.

 I had to add NetCDF4 support to WOSS in order to support the latest GEBCO 15 secs of arc database, wich is in NetCDF + HDF5 format.

Therefore:
- download the AT.zip from the woss website and use the same installation instructions
- download the HDF5, NetCDF-C, Net-CDF-C++4 from the WOSS website and follow the *newest* installation instructions. Please use the same prefix option for all of them
- dowload the WOSS 1.9.0 and follow the *newest* installation instructions
- finally pull the latest woss-ns3 changes from its git repo and follow the *newest* installation instructions, the ones with NetCDF4 support

let me know if you have any issue with the latest version

thanks

Jay Patel

unread,
Jan 6, 2020, 10:20:02 AM1/6/20
to ns-3-users
Hi Federico,

Thanks a lot for your update. I had issues with the installation but able to successfully build with newer instruction. I believe the problem is with NetCDF. Thanks a lot for your valuable expertise.

For all of those, who is facing problems, Please refer newer instruction available on github repo. 


or build your ns with this : NetCDF4 and HDF5 support, pay attention to the CXXFLAGS inline redefinition due to a unresolved NetCDF-C++4 API warning

./waf configure --with-woss-source=<woss_source_path> --with-woss-library=<woss_lib_path> --with-netcdf4-install=<netcdf4_and_hdf5_installed_path> CXXFLAGS="-Wall -Werror -Wno-unused-variable"

the problem can also be resolve with solution proposed here.

P.S.Please make sure your netCDF4 and HDF5 paths are correct. (Attachments may be useful to you if you don't know how to install netCDF4 and HDF5.)

@Federico : I have a question about the database which is defined in the aloha-example.

//m_databasePath = "/home/fedwar/ns/ocean_database/dbs"  # What is this database ? Is that database is GETCO 2019

- What is this database ? Is that database is GETCO 2019 ? How can i use this for myself ? I mean i'm not sure what should i put in path for this ?

also How can i change frequency in example ? I believe this would run for 22000 default. Is it the same as UAN Module ? Will UanTxMode change center frequency as well in this case ? 

Thanks in advance. Any help would be appreciated.
wossinstallationhelp.docx
wossinstallationhelp.txt

Federico Guerra

unread,
Jan 7, 2020, 10:37:38 AM1/7/20
to ns-3-users
Hello,

//m_databasePath = "/home/fedwar/ns/ocean_database/dbs"  # What is this database ? Is that database is GETCO 2019

- What is this database ? Is that database is GETCO 2019 ? How can i use this for myself ? I mean i'm not sure what should i put in path for this ?



also How can i change frequency in example ? I believe this would run for 22000 default. Is it the same as UAN Module ? Will UanTxMode change center frequency as well in this case ? 

WOSS did not change this. The PHY has been inherited from UAN, so you should use UAN APIs.

Il giorno lunedì 23 dicembre 2019 05:25:09 UTC+1, Jay Patel ha scritto:

Jay Patel

unread,
Jan 8, 2020, 1:44:46 PM1/8/20
to ns-3-users
Hi Federico,

Thanks for clarification. I had provided correct path of WOSS (SSP, sediment) and GEBCO databases. But i'll run into following error which i believe is Constructor generates a null object and invoke base class constructor. I had checked my asserts, all looks fine. Any suggestions ? here is more debug information.

jay@jay-MS-7885:~/Documents/dev/workspace/ns-allinone-3.30/ns-3.30$ ./waf --run src/woss-ns3/examples/woss-aloha-example
Waf: Entering directory `/home/jay/Documents/dev/workspace/ns-allinone-3.30/ns-3.30/build'
[2575/2848] Compiling src/woss-ns3/examples/woss-aloha-example.cc
Waf: Leaving directory `
/home/jay/Documents/dev/workspace/ns-allinone-3.30/ns-3.30/build'
Build commands will be stored in build/compile_commands.json
'
build' finished successfully (4.541s)
WossManagerResDbMT::checkConcurrentThreads() 24
WossManagerResDbMT::checkConcurrentThreads() 4
terminate called after throwing an instance of '
netCDF::exceptions::NcException'
  what():  No such file or directory
file: ncFile.cpp  line:88
Command ['
/home/jay/Documents/dev/workspace/ns-allinone-3.30/ns-3.30/build/src/woss-ns3/examples/ns3.30-woss-aloha-example-debug'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").

P.S. not sure what it is looking for.
jay@jay-MS-7885:~/Documents/dev/workspace/ns-allinone-3.30/ns-3.30$ ./waf --run src/woss-ns3/examples/woss-aloha-example --command-template="gdb --args %s <args>"
Waf: Entering directory `/home/jay/Documents/dev/workspace/ns-allinone-3.30/ns-3.30/build'
Waf: Leaving directory `
/home/jay/Documents/dev/workspace/ns-allinone-3.30/ns-3.30/build'
Build commands will be stored in build/compile_commands.json
'
build' finished successfully (1.581s)
GNU gdb (Ubuntu 8.2-0ubuntu1~18.04) 8.2
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/jay/Documents/dev/workspace/ns-allinone-3.30/ns-3.30/build/src/woss-ns3/examples/ns3.30-woss-aloha-example-debug...done.
(gdb) run
Starting program: /home/jay/Documents/dev/workspace/ns-allinone-3.30/ns-3.30/build/src/woss-ns3/examples/ns3.30-woss-aloha-example-debug \<args\>
warning: the debug information found in "/lib64/ld-2.27.so" does not match "/lib64/ld-linux-x86-64.so.2" (CRC mismatch).

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Detaching after fork from child process 18043]
[Detaching after fork from child process 18044]
WossManagerResDbMT::checkConcurrentThreads() 24
WossManagerResDbMT::checkConcurrentThreads() 4
terminate called after throwing an instance of '
netCDF::exceptions::NcException'
  what():  No such file or directory
file: ncFile.cpp  line:88

Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51    ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.

and without
m_databasePath, it is running fine.

jay@jay-MS-7885:~/Documents/dev/workspace/ns-allinone-3.30/ns-3.30$ ./waf --run src/woss-ns3/examples/woss-aloha-example
Waf: Entering directory `/home/jay/Documents/dev/workspace/ns-allinone-3.30/ns-3.30/build'
[2577/2848] Compiling src/woss-ns3/examples/woss-aloha-example.cc
[2803/2848] Linking build/src/woss-ns3/examples/ns3.30-woss-aloha-example-debug
Waf: Leaving directory `
/home/jay/Documents/dev/workspace/ns-allinone-3.30/ns-3.30/build'
Build commands will be stored in build/compile_commands.json
'
build' finished successfully (4.774s)
WossManagerResDbMT::checkConcurrentThreads() 24
WossManagerResDbMT::checkConcurrentThreads() 4
Received a packet of size 1000 bytes
Received a total of 1000 bytes at sink

Thanks a lot for your time and support.

Federico Guerra

unread,
Jan 8, 2020, 2:24:27 PM1/8/20
to ns-3-...@googlegroups.com
Hello, 
The exception is thrown when the netcdf db is trying to open the provided path. 
Check the generic db path of the m_databasePath, but also the woss helperlines Tha set up the path and file name of each single database. One of them is wrong for sure. 

Sent from mobile, sorry for any typo.

Federico Guerra
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/TQHhL8Q3z50/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/ac514312-8beb-4beb-8d6e-784752b14290%40googlegroups.com.

Jay Patel

unread,
Jan 9, 2020, 11:32:16 AM1/9/20
to ns-3-users
Hi,

Thanks for your quick reply. You were right GEBCO_2019.nc was not in the dbs/bathymetry.

It is working now. I provide different coordinate of the location and after every run it is showing me this warnning
BathyGebcoDb::getValue() WARNING current coordinates are on land : Latitude = 43.724272515551895; Longitude = -7.9342890180423096; altitude = 508.177734375
i believe I did run few iteration from database and check if the Lat and Long is on land or not ? Does this iteration run for 15 seconds ? I looked the original example GPS cordinate, It is somewhere in Italy(looks like some kind of Bay), Does one of the cordinate must have to be on land ? How this iterations works ?

Thanks.

P.S. for those who had same error, please put GETCO_2019.nc in the proper path and it should work.

Thanks in advance.
Jay
To unsubscribe from this group and all its topics, send an email to ns-3-...@googlegroups.com.

Jay Patel

unread,
Jan 9, 2020, 6:23:16 PM1/9/20
to ns-3-users
Hi,

I am trying to change the co-ordinates of the sink but the iterations doesn't seem to correct. Is there any document or something i can refer to understand the actual iteration of the mapping.

Here is what i have, logged you for your reference. Please look at logwithdatabase.txt and also putdown pin on geo location of the example. Not sure why it took point 2 and 3 in iteration.

Any help would be appreciated.

Jay
To unsubscribe from this group and all its topics, send an email to ns-3-...@googlegroups.com.
logwithdatabase.txt
woss-aloha-example.cc
Screenshot from 2020-01-09 19-21-28.png

Federico Guerra

unread,
Jan 10, 2020, 2:18:17 AM1/10/20
to ns-3-users

Please read the NS3 mobility documentation, then read the UAN documentation, the read to WOSS documentation at http://telecom.dei.unipd.it/ns/woss/doxygen/ , then check the woss-ns3 doxygen documentation of ALL involved models.

Then recheck the example you are using.

lines:236- 249

again this is a wrong config on your side.



Il giorno lunedì 23 dicembre 2019 05:25:09 UTC+1, Jay Patel ha scritto:

Jay Patel

unread,
Jan 25, 2020, 3:55:26 PM1/25/20
to ns-3-...@googlegroups.com
Hi Federico,

I hope you are well. I had written a easier installation - readme file (Attaching it for your reference.)

I was wondering how can i measure flow monitor with WOSS module ? I try to use general flow monitor but that didn't work out for me. I run with pyviz as well unfortunately didn't saw me any node(simulation working fine). Do you have something in your mind that i can use ?

Thanks in advance.

With Regards,
Jay Patel


--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/6a77f905-fdda-4d74-b3c1-9ee932317715%40googlegroups.com.

dardouri soumya

unread,
Jan 31, 2020, 3:54:00 PM1/31/20
to ns-3-...@googlegroups.com
I give you an idea please I did a work with sumo simulator I found a problem here 



help me please

Screenshot from 2020-01-31 12^%51^%42.png
Reply all
Reply to author
Forward
0 new messages