Book Image

OpenFlow Cookbook

Book Image

OpenFlow Cookbook

Overview of this book

Table of Contents (17 chapters)
16
Index

Creation of a bundle

When the controller wants the switch to create a bundle then the controller sends an OFPT_BUNDLE_CONTROL message with the type field set as OFPBCT_OPEN_REQUEST.

The message field that will be used by the controller to create a bundle is described in the Introduction section of Chapter 7, Handling Bundle Messages (Part 2).

How to do it...

When the switch receives the OFPBCT_OPEN_REQUEST message, the switch must perform the following validations before creating a bundle:

  • If the bundle request message is received by the switch over an unreliable connection, then the switch should respond as error message ofp_error_msg with the type as OFPET_BUNDLE_FAILED, and code as OFPBFC_OUT_OF_BUNDLES.
  • If the bundle ID refers to an existing bundle over an existing connection, then the switch should send an error message ofp_error_msg with the type as OFPET_BUNDLE_FAILED, and code as OFPBFC_BAD_ID.
  • If the switch isn't able to support the feature mentioned in the flag field, then the...