Git Product home page Git Product logo

thesis's Introduction

Usage

Traffic redirection: latency

Node A:

$ gcc -pthread common.c generator.c -o generator -lrt
$ ./generator -s 10 udp:10.0.0.2:50000 

Node C:

$ python controller.py -n 1000

Displaying results:

$ python plot_latency.py output.txt

Traffic redirection: packet loss

Node B:

$ gcc analyzer.c common.c -o analyzer
$ ./analyzer -s 10 udp:10.0.0.2:50000

Node C:

$ gcc -DHOST_C analyzer.c common.c -o analyzer
$ ./analyzer -s 10 udp:10.0.0.2:50000

Node A:

$ gcc -pthread common.c generator.c -o generator -lrt
$ ./generator -s 10 udp:10.0.0.2:50000 

Node C4:

$ java -jar target/floodlight.jar

Node C1:

$ python controller.py -n 1001

Substitute analyzer.c with analyzer_multistream.c or analyzer_close_up.c or analyzer_second_lowest.c to obtain different results (see paper). Displaying results:

$ python plot.py B.txt C.txt (multi stream case)
$ python plot.py B_output_port.txt C_output_port.txt  (single stream case)

Traffic duplication

Use either of passthrough or duplicate methods within the start method of controller.py to conduct experiments with the respective flow: either simply connect A to B, or duplicate to C and D as well. (Comment the one out that's not needed) Node A:

$ gcc -pthread common.c generator.c -o generator -lrt
$ gcc -shared -lrt -fPIC -I/usr/include/python2.7 -lpython2.7 -o cutils.so cutils.c
$ python server.py

Node B:

$ gcc analyzer.c common.c -o analyzer
./analyzer -s 10 udp:10.0.0.2:50000

Node C4:

$ java -jar target/floodlight.jar

Node C1:

$ python controller.py -n 1001

For multistream tests, make sure to use sockets 50000-50006 when launching the analyzer instances on B, since this is what the controller expects. Displaying results:

$ python plot_out_of_order.py 1stream_passthrough/B_50000.txt
$ python plot_loss.py 1stream_passthrough/output.txt 1stream_passthrough/B_50000.txt
$ python plot_out_of_order.py 1stream_duplication/B_50000.txt
$ python plot_loss.py 1stream_duplication/output.txt 1stream_duplication/B_50000.txt
$ python plot_out_of_order.py 7stream_passthrough/B_50000.txt
$ python plot_loss.py 7stream_passthrough/output.txt 7stream_passthrough/B_50000.txt
$ python plot_out_of_order.py 7stream_duplication/B_50000.txt
$ python plot_loss.py 7stream_duplication/output.txt 7stream_duplication/B_50000.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.