Changes between Version 1 and Version 2 of Tutorials/m0SDN/cTutorial2


Ignore:
Timestamp:
Mar 14, 2010, 4:19:23 AM (15 years ago)
Author:
ssugrim
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/m0SDN/cTutorial2

    v1 v2  
    1 === Tutorial on seprating traffic on SB9 ===
     1= Tutorial on seprating traffic on SB9 =
    22
    33Open flow is a very versatile standard. You can read more about it here. As an example of the capabalities of open, and a tutorial to the setup
     
    99[[Image(setup.jpg)]]
    1010
     11
     12== Flowvisor ==
     13
     14The flowvisor tool server as an intermediary between controllers. It splits traffic based on predefined rules. For our configuration we're running
     15flowvisor on SB9. While it is completely possible to complie your own flowvisor from scratch and install it in your home directory, a precompiled flowvisor is located in /opt.  In order to properly steer the flowvisor tool, you must populate a flovisor-config.d directory with files that configure the flowvisor behavoir. For the purposes of this demo we'll be using these files:
     16
     17{{{
     18bittorent.guest
     19default.switch
     20routing.guest
     21}}}
     22
     23The defualt file primes the flowvisor and contains only the following lines:
     24
     25{{{
     26 # For switches that do not have a their own, specific config file
     27 Default: 1
     28 # Start numbering "default" switches at 10000
     29 Id: 10000
     30}}}
     31
     32The routing.guest file directs production traffic to SNAC running on port 6634, it denies high numbered IP traffic from getting to port 6634:
     33
     34{{{
     35Name: routing
     36ID: 1
     37
     38Host: tcp:localhost:6634
     39
     40# By default, with now "FlowSpace" param, this slice has
     41# permissions to affect all traffic
     42FlowSpace: deny: tp_src: 10001
     43FlowSpace: deny: tp_dst: 10001
     44FlowSpace: deny: tp_src: 10002
     45FlowSpace: deny: tp_dst: 10002
     46FlowSpace: deny: tp_src: 10003
     47FlowSpace: deny: tp_dst: 10003
     48FlowSpace: deny: tp_src: 10004
     49FlowSpace: deny: tp_dst: 10004
     50FlowSpace: deny: tp_src: 10005
     51FlowSpace: deny: tp_dst: 10005
     52
     53# limit 10000 == at most 10000 packet_in's per second == infinity
     54FlowSpace: allow:   limit: 10000
     55}}}
     56
     57Finally the bittorent.guest directs high numbered ip port traffic to a controller on 6635:
     58{{{
     59Id: 1001
     60Host: tcp:localhost:6635
     61
     62FlowSpace: allow: tp_src: 10001 limit: 10000
     63FlowSpace: allow: tp_dst: 10001 limit: 10000
     64FlowSpace: allow: tp_src: 10002 limit: 10000
     65FlowSpace: allow: tp_dst: 10002 limit: 10000
     66FlowSpace: allow: tp_src: 10003 limit: 10000
     67FlowSpace: allow: tp_dst: 10003 limit: 10000
     68FlowSpace: allow: tp_src: 10004 limit: 10000
     69FlowSpace: allow: tp_dst: 10004 limit: 10000
     70FlowSpace: allow: tp_src: 10005 limit: 10000
     71FlowSpace: allow: tp_dst: 10005 limit: 10000
     72}}}
     73
     74== TESTS for connectivity ==
     75
     76=== The SNAC controller Web interface ===
     77
     78The web interface for snac is accessible externally at http://sb9.orbit-lab.org (default credentials).