How to Running RR and PF Scheduler

198 views
Skip to first unread message

Dimas Pandu

unread,
Dec 24, 2012, 5:18:40 AM12/24/12
to ns-3-...@googlegroups.com
Hi everyone,

I don't know how to running basic program to get execute likes ff-mac-scheduler.h and rr-ff-mac-scheduler.h in src/lte/model.
Anyone how to know running it, please guide me.

Thank you.

Konstantinos

unread,
Dec 24, 2012, 6:03:24 AM12/24/12
to ns-3-...@googlegroups.com
Hi, you have to read the ns3-tutorial first to understand how ns3 works. 

What you have asked is incorrect. The files you asked are header files; you can't execute them. 
And generally you can't 'run' programs within /scr/<any_module>/model ; This folder contains the functionality that a module can provide.

You will have to create your own (or get from the examples) a script (C++ or python program) that will use this functionality. This script will be placed in /scratch folder and you will run it from there.

Dimas Pandu

unread,
Dec 24, 2012, 7:19:21 AM12/24/12
to ns-3-...@googlegroups.com
thanks for reply.

so, I can 'run' programs by 'test.py' ?

Konstantinos

unread,
Dec 24, 2012, 8:42:17 AM12/24/12
to ns-3-...@googlegroups.com
Have you read the tutorial yet??

'test.py' is a python script that runs all the test scenarios that the developers of each module have created to test the functionality of a module. 
See for example the /src/lte/examples folder. There are .cc files. Copy one of them in /scratch and run './waf --run scratch/<the_file>' the file without the .cc at the end.

Dimas Pandu

unread,
Dec 25, 2012, 3:16:06 AM12/25/12
to ns-3-...@googlegroups.com
yes sir, I'm already following running a script using "./waf"

I running "./waf -d debug --enable-examples --enable-tests configure" and the output are:

Setting top to                           : /home/pandu/Documents/ns/repos/tarballs/ns-allinone-3.16/ns-3.16
Setting out to                           : /home/pandu/Documents/ns/repos/tarballs/ns-allinone-3.16/ns-3.16/build
Checking for 'gcc' (c compiler)          : /usr/bin/gcc
Checking for 'g++' (c++ compiler)        : /usr/bin/g++
Checking for program pkg-config          : /usr/bin/pkg-config
Checking for compilation flag -Wl,--soname=foo... support : ok
Checking for program python                               : /usr/bin/python
Checking for python version                               : (2, 7, 1, 'final', 0)
Checking for library python2.7 in LIBDIR                  : not found
Checking for library python2.7 in python_LIBPL            : yes
Checking for program python2.7-config,python-config-2.7,python2.7m-config : not found
Checking for header Python.h                                              : Could not find the python development headers
Checking for []                                                           : not found
Checking for click location                                               : not found
Checking for pkg-config flags for GTK_CONFIG_STORE                        : ok
Checking for pkg-config flags for LIBXML2                                 : not found
Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml-2.0' found
Checking for type uint128_t                                               : not found
Checking for type __uint128_t                                             : not found
Checking high precision time implementation                               : cairo 128-bit integer
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 netpacket/packet.h                                    : yes
Checking for NSC location                                                 : ../nsc-0.5.3 (guessed)
Checking for library dl                                                   : yes
Checking for NSC supported architecture i686                              : ok
Checking boost includes                                                   : not found
Checking for library sqlite3                                              : not found
Checking for pkg-config flags for SQLITE3                                 : not found
Package sqlite3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `sqlite3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sqlite3' found
Checking for header linux/if_tun.h                                        : yes
Checking for program sudo                                                 : /usr/bin/sudo
Checking for program valgrind                                             : not found
Checking for pkg-config flags for GSL                                     : not found
Package gsl was not found in the pkg-config search path.
Perhaps you should add the directory containing `gsl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gsl' 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                                              : not found
---- Summary of optional NS-3 features:
Python Bindings               : not enabled (Python library or headers missing)
BRITE Integration             : not enabled (BRITE not enabled (see option --with-brite))
NS-3 Click Integration        : not enabled (nsclick not enabled (see option --with-nsclick))
GtkConfigStore                : enabled
XmlIo                         : not enabled (library 'libxml-2.0 >= 2.7' not found)
Threading Primitives          : enabled
Real Time Simulator           : enabled
Emulated Net Device           : enabled
Network Simulation Cradle     : not enabled (NSC library liblinux2.6.26.so is missing: NSC has not been built?)
MPI Support                   : not enabled (option --enable-mpi not selected)
NS-3 OpenFlow Integration     : not enabled (Required boost libraries not found)
SQlite stats data output      : not enabled (library 'sqlite3' not found)
Tap Bridge                    : enabled
PyViz visualizer              : not enabled (Python Bindings are needed but not enabled)
Use sudo to set suid bit      : not enabled (option --enable-sudo not selected)
Build tests                   : enabled
Build examples                : enabled
GNU Scientific Library (GSL)  : not enabled (GSL not found)
'configure' finished successfully (8.658s)

there are too many "not found" and "not enabled". So, when I read tutorial there is 'OK'. how to fix it? used by "apt-get install" one-by-one, sir?

after I run "./waf --run scratch/lena-simple" I don't see the output.

Dimas Pandu

unread,
Dec 29, 2012, 4:05:03 AM12/29/12
to ns-3-...@googlegroups.com
Build failed
 -> task in 'lte-test-pf-ff-mac-scheduler' failed (exit status 1):
    {task 165799436: cxxprogram lte-test-pf-ff-mac-scheduler.cc.3.o -> lte-test-pf-ff-mac-scheduler}
['/usr/bin/g++', '-pthread', '-pthread', 'scratch/lte-test-pf-ff-mac-scheduler.cc.3.o', '-o', '/home/pandu/Documents/ns/ns-allinone-3.16/ns-3.16/ns-3.16/build/scratch/lte-test-pf-ff-mac-scheduler', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-Wl,--no-as-needed', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-lns3.16-test-debug', '-lns3.16-csma-layout-debug', '-lns3.16-point-to-point-layout-debug', '-lns3.16-netanim-debug', '-lns3.16-lte-debug', '-lns3.16-spectrum-debug', '-lns3.16-antenna-debug', '-lns3.16-aodv-debug', '-lns3.16-dsdv-debug', '-lns3.16-dsr-debug', '-lns3.16-mesh-debug', '-lns3.16-olsr-debug', '-lns3.16-csma-debug', '-lns3.16-wimax-debug', '-lns3.16-applications-debug', '-lns3.16-virtual-net-device-debug', '-lns3.16-uan-debug', '-lns3.16-energy-debug', '-lns3.16-flow-monitor-debug', '-lns3.16-nix-vector-routing-debug', '-lns3.16-tap-bridge-debug', '-lns3.16-internet-debug', '-lns3.16-bridge-debug', '-lns3.16-point-to-point-debug', '-lns3.16-mpi-debug', '-lns3.16-wifi-debug', '-lns3.16-buildings-debug', '-lns3.16-propagation-debug', '-lns3.16-mobility-debug', '-lns3.16-config-store-debug', '-lns3.16-tools-debug', '-lns3.16-stats-debug', '-lns3.16-emu-debug', '-lns3.16-topology-read-debug', '-lns3.16-network-debug', '-lns3.16-core-debug', '-lrt', '-lgsl', '-lgslcblas', '-lm', '-lgtk-x11-2.0', '-lgdk-x11-2.0', '-latk-1.0', '-lgio-2.0', '-lpangoft2-1.0', '-lpangocairo-1.0', '-lgdk_pixbuf-2.0', '-lcairo', '-lpango-1.0', '-lfreetype', '-lfontconfig', '-lgobject-2.0', '-lglib-2.0', '-lxml2', '-lsqlite3']

how I can fix it?
Reply all
Reply to author
Forward
0 new messages