FlowRemoved

FlowRemoved is sent to the controller by the switch when a flow entry in a flow table is removed. It happens when a timeout occurs, either due to inactivity or hard timeout. An idle timeout happens when no packets are matched in a period of time. A hard timeout happens when a certain period of time elapses, regardless of the number of matching packets. Whether the switch sends a FlowRemoved message after a timeout is specified by the FlowMod. Flow entry removal with a FlowMod message from the controller can also lead to a FlowRemoved message.
Initiator
Switch
Acknowledged
No

Structure

Fields match, cookie and prority are identical to those of FlowMod. The reasons for FlowRemoved include idle timeout, hard timeout and deletion. Fields duration_sec and duration_nsec indicate the time passed since the flow is installed in the switch. The total time is duration_sec * 10^9 + duration_nsec in nanoseconds. Field idle_timeout is the same as that in FlowMod. Packet and byte counts indicate the number of packets and bytes with this flow.

Message Structure

Name Bits Byte Ordering Constraints
match 32 MSBF Match restrictions
cookie 32 MSBF none
priority 16 MSBF none
reason 8 - see table
pad 8 - none
duration_sec 32 MSBF none
duration_nsec 32 MSBF none
idle_timeout 16 MSBF none
pad 8 - none
pad 8 - none
packet_count 64 MSBF none
byte_count 64 MSBF none

Message Constraints

Field Name Code
Reason IdleTimeOut 0x00
HardTimeout 0x01
Delete 0x02

References

Openflow Switch Specification 1.0.0 pages 39-40

Structure

FlowRemoved in this version moves the match field to the end. A table ID is used after the reason. Furthermore, a new GroupDelete is introduced in the reason list.

Message Structure

Name Bits Byte Ordering Constraints
cookie 64 MSBF none
priority 16 MSBF none
reason 8 - see table
table_id 8 - none
duration_sec 32 MSBF none
duration_nsec 32 MSBF none
idle_timeout 16 MSBF none
pad 8 - none
pad 8 - none
packet_count 64 MSBF none
byte_count 64 MSBF none
match 32 MSBF Match restrictions

Message Constraints

Field Name Code
Reason IdleTimeout 0x00
HardTimeout 0x01
Delete 0x02
GroupDelete 0x03

References

Openflow Switch Specification 1.1.0 page 51

Structure

In this version, paddings are replaced by hard_timeout. Similar to idle_timeout, it is the same as that of FlowMod.

Message Structure

Name Bits Byte Ordering Constraints
cookie 64 MSBF none
priority 16 MSBF none
reason 8 - see table
table_id 8 - none
duration_sec 32 MSBF none
duration_nsec 32 MSBF none
idle_timeout 16 MSBF none
hard_timeout 16 MSBF none
packet_count 64 MSBF none
byte_count 64 MSBF none
match 32 MSBF Match restrictions

Message Constraints

Field Name Code
Reason IdleTimeout 0x00
HardTimeout 0x01
Delete 0x02
GroupDelete 0x03

References

Openflow Switch Specification 1.2 page 62

Structure

No changes made since previous version.

Message Structure

Name Bits Byte Ordering Constraints
cookie 64 MSBF none
priority 16 MSBF none
reason 8 - see table
table_id 8 - none
duration_sec 32 MSBF none
duration_nsec 32 MSBF none
idle_timeout 16 MSBF none
hard_timeout 16 MSBF none
packet_count 64 MSBF none
byte_count 64 MSBF none
match 32 MSBF Match restrictions

Message Constraints

Field Name Code
Reason IdleTimeout 0x00
HardTimeout 0x01
Delete 0x02
GroupDelete 0x03

References

Openflow Switch Specification 1.3.0 pages 78-79

Structure

No changes made since previous version.

Message Structure

Name Bits Byte Ordering Constraints
cookie 64 MSBF none
priority 16 MSBF none
reason 8 - see table
table_id 8 - none
duration_sec 32 MSBF none
duration_nsec 32 MSBF none
idle_timeout 16 MSBF none
hard_timeout 16 MSBF none
packet_count 64 MSBF none
byte_count 64 MSBF none
match 32 MSBF Match restrictions

Message Constraints

Field Name Code
Reason IdleTimeout 0x00
HardTimeout 0x01
Delete 0x02
GroupDelete 0x03

References

Openflow Switch Specification 1.3.1 pages 93-94

Structure

No changes made since previous version.

Message Structure

Name Bits Byte Ordering Constraints
cookie 64 MSBF none
priority 16 MSBF none
reason 8 - see table
table_id 8 - none
duration_sec 32 MSBF none
duration_nsec 32 MSBF none
idle_timeout 16 MSBF none
hard_timeout 16 MSBF none
packet_count 64 MSBF none
byte_count 64 MSBF none
match 32 MSBF Match restrictions

Message Constraints

Field Name Code
Reason IdleTimeout 0x00
HardTimeout 0x01
Delete 0x02
GroupDelete 0x03

References

Openflow Switch Specification 1.3.2 page 96

Under development
This section is under active development.

Under development
This section is under active development.