Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1244)

Side by Side Diff: src/devices/switch/README

Issue 1872049: ns-3-openflow
Patch Set: new OFSID library creation/linking system Created 13 years, 7 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
Lalith Suresh 2010/08/13 05:45:07 You can rename this file to switch.h for consisten
OLDNEW

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b