Changes between Version 2 and Version 3 of GEC21Agenda/ChoiceNet/run_tests_part2


Ignore:
Timestamp:
10/17/14 12:32:09 (5 years ago)
Author:
xinming@umass.edu
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GEC21Agenda/ChoiceNet/run_tests_part2

    v2 v3  
    22
    33After Step 2: Configure and Install ChoiceNet Software, we already have the Choicenet Framework setup. If you want to try the SDN implementation of ChoiceNet, you can follow this part of instructions.
     4
     5
     6== Start ChoiceNet server and app ==
     7
    48
    59The SDN-based implementation has an SDN controller that knows the network topology and detect the path services. It also has a marketplace server which accepts the service advertisement from controller and handles the user request.
     
    3539After login, the app will intercept any TCP SYN packets with destination IP 10.0.0.0/8 and destination port 8080 or 443. Once it intercepts a packet, it communicated with the marketplace and request for a path service with 3-minute duration. This means it is compatible with almost any existing network applications, here we will use wget and mplayer as two examples.
    3640
     41
     42== Test using wget ==
     43
    3744First start a simple http server on H1:
    3845
     
    4249sudo su
    4350cd /root/
     51ping 10.10.1.1 -c 1
    4452python -m SimpleHTTPServer 8080
    4553}}}
     54
     55The ping is used to let the controller know the existence of H1.
    4656
    4757We then use wget on the other terminal of H2
     
    5060
    5161{{{
     62ping 10.10.4.1 -c 1
    5263wget http://10.10.1.1:8080/sample.mp4
    5364}}}
     
    5566After executing this command, switch to TERMINAL 2, you will see the ChoiceNet App gives you several options about the forward and revert path. Select one for each, then you will be asked to pay for the path service on a webpage.
    5667
    57 '''Output on TERMINAL 2 (H2 node)'''
    58 
    59 {{{
    60 #!sh
    61 Forward recipe:
    62 0. Bandwidth: 10.000000 Mbps, Latency: 0.400000 ms, Price: 0.180000 dollars
    63 1. Bandwidth: 1.000000 Mbps, Latency: 0.400000 ms, Price: 0.160000 dollars
    64 Enter selection: 1
    65 Return recipe:
    66 0. Bandwidth: 1.000000 Mbps, Latency: 0.400000 ms, Price: 0.160000 dollars
    67 1. Bandwidth: 10.000000 Mbps, Latency: 0.400000 ms, Price: 0.180000 dollars
    68 Enter selection: 0
    69 Please pay for the services in the following webpage before you use them:
    70 http://192.122.236.102/new/client/paypal/payment/service/69/2/1413512209097/39/
    71 }}}
     68[[Image(screenshot_SDN_01.jpg, 60%)]]
    7269
    7370Copy the link to your browser, and pay for the service using paypal. You can use the test paypal account:
     
    8683HTTP request sent, awaiting response... 200 OK
    8784Length: 73516259 (70M) [video/mp4]
    88 Saving to: `sample.mp4.4'
     85Saving to: `sample.mp4'
    8986
    908710% [========>                                                                                  ] 7,927,627    116K/s  eta 9m 11s
     
    9289
    9390The download speed should match the speed you select in the ChoiceNet App.
     91