Book Image

OpenFlow Cookbook

Book Image

OpenFlow Cookbook

Overview of this book

Table of Contents (17 chapters)
16
Index

Handling a multipart request message to get statistics of a group/aggregate of flow table entry

When the controller wants to get statistics for an aggregate or set of flow entries, it sends the OFPMP_AGGREGATE multipart message (ofp_multipart_request) to the switch.

How to do it...

The message format that will be used by the controller to get the statistics of the group/aggregate of flow entries is defined in the Getting statistics of a group/aggregate of flow table entries using multipart messages recipe of Chapter 5, Handling Multipart State Information Messages (Part 2).

When the switch receives this OFPMP_AGGREGATE message, it should first fetch all the matching flow entries from its flow table. Once it fetches all the matching flow entries, it should construct a reply message. The format of the reply message is defined in the Introduction section of this chapter.

The type field represents the type of the multipart message and should be set with the value as OFPMP_AGGREGATE. The body field...