OLD | NEW |
(Empty) | |
| 1 Author: Blake Hurd <naimorai@gmail.com> |
| 2 |
| 3 In order to use the Switch module, you must create and link the |
| 4 OFSID (OpenFlow Software Implementation Distribution) to ns-3. |
| 5 To do this: |
| 6 |
| 7 #1 Obtain the OFSID code. The suggested distribution currently is |
| 8 Ericsson's MPLS modified OFSID, located at |
| 9 <http://arl.wustl.edu/~mah5/openflow-mpls.tgz>. Extract it to |
| 10 a directory named "openflow" (the path in the filesystem does |
| 11 not matter). |
| 12 |
| 13 #2 Copy the waf and wscript files in the "openflow" subdirectory |
| 14 to the directory you have extracted/copied OFSID code to. |
| 15 ···· |
| 16 #3 From the "openflow" directory, run: |
| 17 ········ |
| 18 $ ./waf configure |
| 19 $ ./waf build |
| 20 |
| 21 #4 Your OFSID is now built into a libopenflow.a library! To |
| 22 link to an ns-3 build with this switch module, run from the ns-3-dev |
| 23 (or whatever you have named your distribution): |
| 24 |
| 25 $ ./waf configure --with-openflow=path/to/openflow |
| 26 |
| 27 #5 Under "---- Summary of optional NS-3 features:", you should see |
| 28 "NS-3 OpenFlow Integration : enabled", indicating the library |
| 29 has been linked to ns-3. Run: |
| 30 |
| 31 $ ./waf build |
| 32 |
| 33 to build ns-3 and activate the Switch module. |
| 34 |
| 35 Once set up, you have access to some tests: |
| 36 ········ |
| 37 For a test suite for the switch module, run: |
| 38 |
| 39 $ ./test.py --suite=switch |
| 40 |
| 41 For an example demonstrating its use in a simple learning controller/switch,
run: |
| 42 |
| 43 $ ./waf --run examples/switch/csma-switch |
| 44 |
| 45 To see it in detailed logging, run: |
| 46 |
| 47 $ ./waf --run "examples/switch/csma-switch -v" |
| 48 |
| 49 If you have any questions, read the wiki <http://www.nsnam.org/wiki/index.php/GS
OC2010OpenFlow> |
| 50 first, and consider posting to the ns-3 developers mailing list <http://www.isi.
edu/nsnam/ns/ns-dev-list.html>, |
| 51 but feel free to reach me at <naimorai@gmail.com> |
OLD | NEW |