161 | | Step 2. Review [http://groups.geni.net/geni/wiki/GeniAggregate GeniAggregate] to determine how each MyPLC host maps to the Site's OpenFlow switch. |
162 | | Determin addresses and ports. |
163 | | Step 3. Using guidelines from the [http://groups.geni.net/geni/wiki/HowTo/WriteOFv3Rspecs#WritingOpenFlowv3requestrspecs Writing OF V3 RSpec] page merge the information from step 1 and 2 to generate the request RSpecs. |
| 161 | Step 2. Review [http://groups.geni.net/geni/wiki/GeniAggregate GeniAggregate] to determine how each MyPLC host maps to the Site's OpenFlow switch. Determine addresses and ports. |
| 162 | Step 3. Define site specific OF Group rules. |
| 163 | Step 4. Using guidelines from the [http://groups.geni.net/geni/wiki/HowTo/WriteOFv3Rspecs#WritingOpenFlowv3requestrspecs Writing OF V3 RSpec] page merge the information from step 1 and 2 to generate the request RSpecs. |
292 | | '' '''Step 3''' ''. Define OF groups and merge with Switch details from step 2: |
293 | | |
294 | | Use the request template in the [http://groups.geni.net/geni/wiki/HowTo/WriteOFv3Rspecs#WritingOpenFlowv3requestrspecs Writing OF V3 Request RSpecs] |
| 292 | '' '''Step 3''' ''. Define OF groups rules: |
| 293 | |
| 294 | Each of the site will need to define OF rules for handling site traffic for the hosts. Each site Rspec will include: |
| 295 | |
| 296 | {{{ |
| 297 | <openflow:match> |
| 298 | <openflow:use-group name="group-name" /> |
| 299 | <openflow:packet> |
| 300 | <openflow:dl_type value="0x800,0x806"/> |
| 301 | <openflow:nw_dst value="10.42.11.0/24"/> |
| 302 | <openflow:nw_src value="10.42.11.0/24"/> |
| 303 | </openflow:packet> |
| 304 | </openflow:match> |
| 305 | }}} |
| 306 | Note the ''group-name'' above will be replace by the actual group name values defined in the previous step. Here is a summary of groups defined in Step 2: |
| 307 | * BBN Site: bbn-1750-nodes, bbn-1750-3715 |
| 308 | * Clemson site: clemson-1750-3715 |
| 309 | * Wisconsin group name=wisconsin-nodes-1750, wisconsin-1750-3715 |
| 336 | |
| 337 | For the above template: |
| 338 | * Modify the "openflow:sliver" line to replace the "user@geni.net" with your valid email address, and update the sliver description. |
| 339 | * Update the "openflow:controller" line to include your controller information. |
| 340 | |
| 341 | You may now combine the modified template with each of the Site specific openflow details from step 2 and 3. |
| 342 | |
| 343 | This will result in the following final OF RSpecs: |
| 344 | |
| 345 | __BBN OpenFlow RSpec_ |
| 346 | |
| 347 | {{{ |
| 348 | #xml |
| 349 | <?xml version="1.1" encoding="UTF-8"?> |
| 350 | <rspec xmlns="http://www.geni.net/resources/rspec/3" |
| 351 | xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" |
| 352 | xmlns:openflow="http://www.geni.net/resources/rspec/ext/openflow/3" |
| 353 | xs:schemaLocation="http://www.geni.net/resources/rspec/3 |
| 354 | http://www.geni.net/resources/rspec/3/request.xsd |
| 355 | http://www.geni.net/resources/rspec/ext/openflow/3 |
| 356 | http://www.geni.net/resources/rspec/ext/openflow/3/of-resv.xsd" |
| 357 | type="request"> |
| 358 | |
| 359 | <openflow:sliver email="lnevers@geni.net" description="OF Experiment" ref="http://www.geni.net"> |
| 360 | <openflow:controller url="tcp:example.geni.net:9933" type="primary" /> |
| 361 | |
| 362 | |
| 363 | <!-- RSpec details from Step 2 and Step 3 --> |
| 364 | |
| 365 | </openflow:sliver> |
| 366 | </rspec> |
| 367 | |
| 368 | __Clemson OpenFlow RSpec_ |
| 369 | |
| 370 | |
| 371 | __Wisconsin OpenFlow RSpec_ |
| 372 | |
| 373 | |
| 374 | |
| 375 | |