Hybrid OpenFlow Switching
664 Router Configuration Guide
The router allows mixing H-OFS rules from one or more H-OFS instances in a single filter 
policy. Co-existence of H-OFS rules in a single policy with CLI/SNMP programmed rules 
and/or BGP flowspec programmed rules in a single line card filter policy is also supported. 
When a management interface and an OF controller flow entry have the same filter policy 
entry, the management interface-created entry overrides the OF controller-created entry; see 
the embedded filter functional description. For mixing of the rules from multiple 
management entities, the controller should not program an entry in its Flow Table that would 
match all traffic, as this would stop evaluation of the filter policy.
The router supports HA for the OF Flow Table content and statistics. On an activity switch 
the channel goes down and is re-established by the newly active CPM. “Fail secure mode” 
operation takes place during channel re-establishment (OpenFlow rules continue to be 
applied to the arriving traffic). OF controller is expected to re-synchronize the OF table when 
the channel is re-established.On a router reboot, H-OFS Flow Table rules and statistics are 
purged. The same takes place when H-OFS instance is shutdown. The H-OFS instance cannot 
be deleted unless the H-OFS instance is removed first from all embedding filter policies.
Hybrid OpenFlow Switch Statistics
SR OS Hybrid OpenFlow switch supports statistics retrieval using the OpenFlow protocol. 
There are two types of statistics that can be collected:
1. Statistics for SR OS H-OFS logical ports
Logical port statistics are available for RSVP-TE and MPLS-TP LSP logical ports. 
The non-zero statistics will be returned as long as a given LSP has its statistics 
enabled through an MPLS configuration. The statistics can be retrieved irrespective 
of whether a given OF switch uses the specified LSP or not. The statistics account for 
an aggregate of all packets/bytes forwarded over a given LSP. High availability 
follows MPLS statistics support.
Statistics are not available for any other logical ports encodings.
2. Statistics for SR OS H-OFS flow table
Flow table statistics can be retrieved for one or more flow table entries of a given H-
OFS. The returned packet/bytes values are based on ACL statistics collected in 
hardware. An OpenFlow controller can retrieve statistics either directly from 
hardware or from the ACL CPM-based bulk request cache. The ACL cache is used 
when processing an OpenFlow statistics multi-part aggregate request message 
(OFPMP_AGGREGATE), or when an OpenFlow statistics multi-part flow message 
request (OFPM_FLOW) is translated to multiple flow table entries (a bulk request). 
When an OpenFlow multi-part flow statistics request message (OFPM_FLOW) is 
translated to a single flow table entries requests (a single entry request), the counters 
are read from hardware in real-time.