Model Architecture: SDN
The following diagram illustrates the relevant portions of the SDN switch node model.
Figure 480: SDN Switch Node Model Architecture

Process Models
The SDN model uses the following process models.
Table 198: SDN Process Models
| Process | Description |
|---|---|
openflow_mgr |
Implements the OpenFlow protocol and is responsible for translating OpenFlow messages between the controller and generic switch module. |
sdn_switch |
Root process of the sdn_switch module. This process spawns the sdn_switch_mre child process. |
sdn_switch_mre |
Pipeline processing takes place in this process model. The flow, meter, and group tables reside here. For ease of customization, the sdn_switch_mre process performs generic SDN functionality in the event that the openflow_mgr process uses any protocol other than OpenFlow to interface with a controller. |
The following tables summarize the communication between the process models of switch and manager modules via interrupts.
Table 199: Interrupts from Switch Module to Manager Module
| Code | ICI | Type (ICI Field) | Primary Code (ICI Field) | Secondary Code (ICI Field) | Description |
|---|---|---|---|---|---|
| Remote | |||||
SDNSC_SWITCH_NOTIFICATION |
sdn_switch_notification |
SdnsC_Error_Notification |
Error Type | Error Code | Error reporting |
SdnsC_Flow_Removal_Notification |
Reason | Not Used | Flow removal notification | ||
SdnsC_Stat_Info_Notification |
Statistic Type | Number of Matching Entries | Response to statistics queries (sent as a forced interrupt) | ||
SdnsC_Port_Status_Notification |
Port's Stream Index | Indication of Failure or Recovery | Port change reporting | ||
| Stream | |||||
| n/a | sdns_packet_in_info |
n/a | n/a | n/a | Packet-in message |
Table 200: Interrupts from Manager Module to Switch Module
| Code | ICI | Description |
|---|---|---|
| Remote | ||
SDNSC_FLOW_TABLE_MOD_REQ |
sdns_flow_table_mod_req |
Add/Delete/Modify flows |
SDNSC_GROUP_TABLE_MOD_REQ |
sdns_group_table_mod_req |
Add/Delete/Modify groups |
SDNSC_METER_TABLE_MOD_REQ |
sdns_meter_table_mod_req |
Add/Delete/Modify meters |
SDNSC_STAT_INFO_REQ |
sdn_switch_request |
Statistical information request |
| Stream | ||
| n/a | sdns_packet_out_info |
Packet-out message |
Viewing the Tables of an SDN Switch in ODB
Flow, group, and meter tables of an SDN switch can be printed in ODB when desired by executing the diagnostic block of the sdn_switch_mre process model for a given node at the time of interest with the proldiag command. If the trace label "sdns_stats" is enabled when the diagnostic block is executed, then the labels will be printed with relevant statistical information. All of the SDN-related ODB trace labels are listed in the following table.
Table 201: Trace Labels Available to ODB proldiag Command
| Label | Description |
|---|---|
openflow |
General label for the entire OpenFlow process. |
sdns_pkt_processing |
Packets' switching and matching in flow table(s) information. |
sdns_pkt_processing_detailed |
Packets' switching and matching in flow table(s) information with more details about matched flows. |
sdns_stats |
Used in diagnostic block to display the current flow, group, and meter tables with statistical information. |
sdns_tables |
Add/modify/delete operations with flow, group, and meter tables. |