Book Image

OpenFlow Cookbook

Book Image

OpenFlow Cookbook

Overview of this book

Table of Contents (17 chapters)
16
Index

Adding messages to a bundle

When the controller wants to add new OpenFlow message to a bundle, the controller sends OFPT_BUNDLE_ADD_MESSAGE message.

Getting started

The controller should have created the bundle as described in Creation of a bundle recipe of this chapter, before sending the bundle add message to a switch.

How to do it...

When the switch receives the OFPT_BUNDLE_ADD_MESSAGE message, the switch should first fetch the bundle (which was created already by, an OFPBCT_OPEN_REQUEST message) using the bundle_id and connection_id pair wherein the bundle_id is the bundle identifier present in the message, and the connection ID is the identifier of the received connection. The connection ID is used in the case of bundle parallelism, wherein separate bundle staging areas will be maintained for each controller connection.

Once the bundle is fetched, the switch should perform the following bundle related validations:

  • If the switch can't fetch a bundle using these key pairs, then the switch...