Changes between Version 17 and Version 18 of GENIExperimenter/Tutorials/OpenFlowOVS/Execute


Ignore:
Timestamp:
09/19/13 11:56:49 (6 years ago)
Author:
lnevers@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GENIExperimenter/Tutorials/OpenFlowOVS/Execute

    v17 v18  
    163163  }}}
    164164
    165   2. In the other OVS host go under the `/local/pox/ext` directory:
    166   {{{
    167    cd ext
    168   }}}
    169 
    170   2. There you would see two files:
     165  2. In the other OVS host directory `/local/pox/ext` you would see two files:
    171166
    172167     i. myDuplicateTraffic.py : this is the file that has instructions about how to complete the missing information, go ahead and try to implement your first controller.
    173168     ii. !DuplicateTraffic.py : this has the actual solution you can just run this if you don't want to bother with writing a controller.
    174169
    175    To run the controller do (while at /local/pox directory) where the <data_interface_name> should be the one that corresponds to OVS:if2 :
     170 3. Run your newly written controller on the <data_interface_name> that corresponds to OVS:if2 :
    176171    {{{
     172    cd /local/pox
    177173    ./pox.py --verbose myDuplicateTraffic \
    178174                  --duplicate_port=<data_interface_name>
     
    187183    If your controller is working you the packets registering in both terminals that you run tcpdump.
    188184
     185 4. Stop the POX controller:
     186   {{{
     187    DEBUG:myDuplicateTraffic:Got a packet : [02:f1:ae:bb:e3:a8>02:c7:e8:a7:40:65 IP]
     188    DEBUG:SimpleL2Learning:installing flow for 02:f1:ae:bb:e3:a8.2 -> 02:c7:e8:a7:40:65.[1, 2]
     189    ^C
     190    INFO:core:Going down...
     191    INFO:openflow.of_01:[3a-51-a1-ab-c3-43 1] disconnected
     192    INFO:core:Down.
     193    ovs:/local/pox%
     194}}}
     195
     196    If your controller is working you the packets registering in both terminals that you run tcpdump.
     197
    189198=== 3d. Run a port forward Controller ===
    190199Now let's do a slightly more complicated controller. OpenFlow gives you the power to overwrite fields of your packets at the switch, for example the TCP source or destination port and do port forwarding. You can have clients trying to contact a server at port 5000, and the OpenFlow switch can redirect your traffic to a service listening on port 6000.