Search code examples
mininetopenflow

How do I view the hard timeout value on an openflow switch in mininet?


I'm creating a custom topology with 4 switches and 2 hosts. I want to see the hard_timeout value for the flow entries on the openflow switches. For instance, when I run the command to view the flow entries on switch s1:

sh ovs-ofctl dump-flows s1

I get the following output:

Flow_entries

The flow entry only displays the idle_timeout (of 60ms) but not the hard_timeout. How can I observe this parameter?


Solution

  • It is likely that the hard_timeout value is not set or set to zero for the active flows in your network since the flows are also not tracking the hard_age parameter.

    In order to observe the hard_timeout you need to set it to a non-zero value

    Also, the timers are in seconds, so the idle_timeout is 60 seconds.