Controller availability
Controller failure is not always forwarding failure
A controller outage can prevent new policy installation without immediately stopping existing forwarding. Whether traffic continues depends on rule lifetime, local behavior, topology and failure policy. In OpenFlow deployments, fail-secure behavior can preserve applicable existing rules while standalone behavior may revert to local switching, depending on implementation. Open vSwitch documents secure and standalone failure modes; standalone is not a universal safe fallback because local forwarding may differ from the intended centralized policy. Verify the actual version and configured behavior before assuming either outcome.
Predict a rule-expiration boundary
Assume a rule installed at second 0 has a hard timeout of 30 seconds; the controller disconnects at second 10. Our toy secure-mode switch retains valid entries, drops misses, and cannot install updates until reconnection. At second 20 a matching packet selects its installed output if the link is healthy. At second 30 the rule is expired and the packet drops. A hard timeout counts from installation even if packets keep arriving; an idle timeout instead depends on time since last use. The toy model includes only hard timeout and treats zero as no hard expiration. A permanent entry may still fail if its output link fails.
t=0: rule installed, hard timeout 30 st=10: controller disconnectst=20: matching packet -> output if link upt=30: expired -> drop (toy model)A quorum is not just a node count
For an illustrative majority-based controller state store, three configured voting members need two mutually reachable members to authorize a new write. With one failure, the other two can form a majority if connected. In a partition of two versus one, only the two-member side can authorize writes under the model. Five voters require three. A controller must also have the device connection, leadership authority and current state to apply a rule; quorum alone does not provide these. Controller designs vary in consistency and failover semantics; the arithmetic is not an ONOS implementation simulation.
Recover by reconciling state
Suppose desired policy revision 8 denies a service but S1 still has revision 7 permitting it while S2 reports revision 8. Restoring connectivity is only the first step. Obtain authoritative desired state, confirm leadership and device identity, read back actual rules, compare revisions and semantics, then plan a narrowly scoped repair. Check for intermediate states that might open unintended access; multi-device atomicity is not assumed. Verify allowed and denied flows in both directions. An acknowledgement or revision label alone does not establish correct forwarding.
Design a safe failure exercise
On paper, change the timeout to 60 seconds and compare packets at seconds 29, 30 and 60. Repeat with zero timeout and a failed output link. Next partition five fictional voters into groups of three and two. Identify which group can authorize writes, then explain why the result does not prove device reachability. For any future approved isolated virtual switch test, save baseline state, define allowed/denied traffic and recovery criteria, keep management access separate, and restore the baseline. Do not disconnect real controllers.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Controller availability Quiz
Reason about SDN architecture, match-action rules and controller failure.
A matching rule installed at second 0 expires at second 30. At second 29 with a healthy output and no controller, what happens in the toy secure mode?
What happens at second 30 in the same model?
How many of five configured majority voters are needed?
Why is standalone fallback not automatically safe?
What is required after controller reconnection?