ORBIT-USER: Question in tutorial about Virtual Mobility SS

Arinto Murdopo arinto at gmail.com
Wed Feb 14 10:58:10 EST 2007


Dear all,

I have question regarding the tutorial about Virtual Mobility in spatial
switching. I'll highlight my question like this
I login to one of the node with click image and enter /root/iperf/src to
find several
1.3   Creating OML shared library and headers for
Iperf<http://www.orbit-lab.org/wiki/Documentation/OtherApps/IPerf#id4>

After defining the application definition file as above, use the following
command to submit the application definition file to a wrapper utility

'''wget -q http://www.orbit-lab.org/oml/client_wrapper --post-file <
app-def.xml>'''

In response to the <app-def>.xml file, the OML application service returns a
tar file containing: oml_<app-def>.h and liboml_<app-def>.a.

Which directory the oml_<app-def>.h and liboml_<app-def>.a exist?

Iperf is then compiled against this library.
 1.4   Include header files and function calls in source
code<http://www.orbit-lab.org/wiki/Documentation/OtherApps/IPerf#id5>

In the main method of Iperf (found in main.cpp),

''#include "oml_orbit_winlab_iperf.h"''

''initialize_oml(&argc, argv, null)''

In the file ReportDefault.c

''oml_receiverport(msmt1, msmt2, msmt3)''

Where exactly we put above new lines? Actually I have already found
'#include "oml_orbit_winlab_iperf.h"'' and ''initialize_oml(&argc, argv,
null)'' in main.cpp but I can't find ''oml_receiverport(msmt1, msmt2,
msmt3)''. I found oml_receiverport(stats->transferID,tput,jitter,loss); in
ReportDefault.c

Here is the detailed output

node1-1:~/iperf/src# grep oml_receiverport ReportDefault.c
        oml_receiverport(stats->transferID,tput,jitter,loss);
        oml_receiverport(stats->transferID,tput,jitter,loss);

 1.5   Modify Makefile and build
application<http://www.orbit-lab.org/wiki/Documentation/OtherApps/IPerf#id6>

Linker options: -loml_client -lomltx

Where do I put above commands? Is it inside file Makefile ?

LDFLAGS = -L/usr/lib/ -Lpath_to/liboml_orbit_winlab_iperf.a

Where do I put above commands? Is it in LDFLAGS parameter inside Makefile ?

The oml client package with the required libraries can be obtained from the
orbit repository (apt-get oml-client). It will install oml-client and
oml_transport libraries in /usr/lib/

Note that the OML client is already present on the nodes (so the second step
can be ignored)

Now, Iperf can be rebuilt using the Makefile.

thank you

arinto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://orbit-lab.org/pipermail/orbit-user/attachments/20070214/916f88f1/attachment.htm 


More information about the orbit-user mailing list