261 | | This sections shows you how to determine the site specific !OpenFlow RSpec details by walking through the information gathering process. To determine which !OpenFlow resources to use, go to the [http://groups.geni.net/geni/wiki/GeniAggregate GeniAggregate] page and select the !OpenFlow Aggregate links for BBN, Clemson and Wisconsin. Each of these !OpenFlow Aggregate pages contain a site diagram. The !OpenFlow site diagrams show ports, DPIDs, and hosts mapping for the site's !OpenFlow switch. In addition to the information from the !OpenFlow site diagram, !OpenFlow filter groups rules must defined for each site to handle traffic for the hosts. Each site RSpec will include a group filter definition "openflow:match" for the reserved network that may look as follows: |
262 | | |
263 | | {{{ |
264 | | <openflow:match> |
265 | | <openflow:use-group name="group-name" /> |
266 | | <openflow:packet> |
267 | | <openflow:dl_type value="0x800,0x806"/> |
268 | | <openflow:nw_dst value="10.42.11.0/24"/> |
269 | | <openflow:nw_src value="10.42.11.0/24"/> |
270 | | </openflow:packet> |
271 | | </openflow:match> |
272 | | }}} |
273 | | ''Note:'' The ''openflow:use-group'' section of the !OpenFlow RSpec defines the traffic characteristics allowed for the experiment. [[BR]] |
274 | | ''Note:'' The ''group-name'' is replaced by the site specific group name value. [[BR]] |
275 | | ''Note:'' The address ''10.42.11.0/24'' was requested as described in the section [wiki:GENIExperimenter/ExperimentExample-OF-FOAM#ReserveGENIIPsubnet above]. Your RSpec will use the subnet you reserved. |
276 | | |
277 | | For a detailed look at !OpenFlow configuration parameters, see the [http://groups.geni.net/geni/wiki/HowTo/WriteOFv3Rspecs/Spec OF V3 RSpec] page. On this page you will also find the list of available [http://groups.geni.net/geni/wiki/HowTo/WriteOFv3Rspecs/Spec#Filterelements packet header fields] that can be used to filter the !OpenFlow traffic. |
278 | | |
| 261 | This sections shows you how to determine the site specific !OpenFlow RSpec details by walking through the information gathering process. To determine which !OpenFlow resources to use, go to the [http://groups.geni.net/geni/wiki/GeniAggregate GeniAggregate] page and select the !OpenFlow Aggregate links for BBN, Clemson and Wisconsin. Each of these !OpenFlow Aggregate pages contain a site diagram. The !OpenFlow site diagrams show ports, DPIDs, and hosts mapping for the site's !OpenFlow switch, which you will have to include in the RSpec. In addition you also have to define how the host traffic will be handled by !OpenFlow by defining packet filters. |
| 262 | |
330 | | In addition each of the groups must be allowed to share traffic for the IP subnet range reserved for the experiment, this is done with the following filter definitions: |
| 313 | Each !OpenFlow RSpec must also include a packet filter definition to describe how the host traffic is to be handled for the experiment. Following is an example packet filter template: |
| 314 | {{{ |
| 315 | <openflow:match> |
| 316 | <openflow:use-group name="group-name" /> |
| 317 | <openflow:packet> |
| 318 | <openflow:dl_type value="0x800,0x806"/> |
| 319 | <openflow:nw_dst value="10.42.XX.0/24"/> |
| 320 | <openflow:nw_src value="10.42.XX.0/24"/> |
| 321 | </openflow:packet> |
| 322 | </openflow:match> |
| 323 | }}} |
| 324 | ''Note:'' The ''openflow:use-group'' section of the !OpenFlow RSpec defines the traffic characteristics allowed for the experiment. [[BR]] |
| 325 | ''Note:'' The ''group-name'' should match the ''openflow:group'' specific to the !OpenFlow switch [[BR]] |
| 326 | ''Note:'' The address ''10.42.XX.0/24'' was requested as described in the section [wiki:GENIExperimenter/ExperimentExample-OF-FOAM#ReserveGENIIPsubnet above]. Your RSpec will use the subnet you reserved. |
| 327 | |
| 328 | For a detailed look at !OpenFlow configuration parameters, see the [http://groups.geni.net/geni/wiki/HowTo/WriteOFv3Rspecs/Spec OF V3 RSpec] page. On this page you will also find the list of available [http://groups.geni.net/geni/wiki/HowTo/WriteOFv3Rspecs/Spec#Filterelements packet header fields] that can be used to filter the !OpenFlow traffic. |
| 329 | |
| 330 | Let's modify the packet filter definition above so it applies to the BBN !OpenFlow resources: |