Learning-Guided Fuzzing for Testing Stateful SDN Controllers
Raphaël Ollando, Seung Yeob Shin, Lionel C. Briand
TL;DR
This paper tackles the challenge of testing stateful SDN controllers, where failures may arise only after complex sequences of control messages. It introduces SeqFuzzSDN, a learning-guided fuzzing framework that sniffs OpenFlow-like messages, mutates sequences with five fuzz operators, learns failure-inducing EFSMs with Mint and RIPPER, and plans fuzzing paths via a multi-objective NSGA-II search. Empirical results on ONOS and RYU show SeqFuzzSDN yields more diverse, effective tests and more accurate EFSMs than extended baselines (FuzzSDN, Delta, Beads), with scalability largely independent of network size due to sampling-based learning. The work advances practical, instrumentation-free testing of stateful SDN controllers and provides artifacts for reproducibility and further research.
Abstract
Controllers for software-defined networks (SDNs) are centralised software components that enable advanced network functionalities, such as dynamic traffic engineering and network virtualisation. However, these functionalities increase the complexity of SDN controllers, making thorough testing crucial. SDN controllers are stateful, interacting with multiple network devices through sequences of control messages. Identifying stateful failures in an SDN controller is challenging due to the infinite possible sequences of control messages, which result in an unbounded number of stateful interactions between the controller and network devices. In this article, we propose SeqFuzzSDN, a learning-guided fuzzing method for testing stateful SDN controllers. SeqFuzzSDN aims to (1) efficiently explore the state space of the SDN controller under test, (2) generate effective and diverse tests (i.e., control message sequences) to uncover failures, and (3) infer accurate failure-inducing models that characterise the message sequences leading to failures. In addition, we compare SeqFuzzSDN with three extensions of state-of-the-art (SOTA) methods for fuzzing SDNs. Our findings show that, compared to the extended SOTA methods, SeqFuzzSDN (1) generates more diverse message sequences that lead to failures within the same time budget, and (2) produces more accurate failure-inducing models, significantly outperforming the other extended SOTA methods in terms of sensitivity.
