기본 정보
- 저자
- DOI
- 10.1007/978-3-030-53291-8_8
- 저널
- Lecture notes in computer science
- 발행년도
- 2020
- 발행기관
- Springer Science+Business Media
- 피인용수
- 1
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1007/978-3-030-53291-8_8
- 토픽
- Fuel Cells and Related Materials
- OpenAlex ID
- W3019524286
평가 내용
- 관련도
- 사업분야
- 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
In software-defined networks (SDN), a controller program is in charge of deploying diverse network functionality across a large number of switches, but this comes at a great risk: deploying buggy controller code could result in network and service disruption and security loopholes. The automatic detection of bugs or, even better, verification of their absence is thus most desirable, yet the size of the network and the complexity of the controller makes this a challenging undertaking. In this paper, we propose MOCS, a highly expressive, optimised SDN model that allows capturing subtle real-world bugs, in a reasonable amount of time. This is achieved by (1) analysing the model for possible partial order reductions, (2) statically pre-computing packet equivalence classes and (3) indexing packets and rules that exist in the model. We demonstrate its superiority compared to the state of the art in terms of expressivity, by providing examples of realistic bugs that a prototype implementation of MOCS in Uppaal caught, and performance/scalability, by running examples on various sizes of network topologies, highlighting the importance of our abstractions and optimisations.
본문 68,378자
본문 펼치기
# Towards Model Checking Real-World Software-Defined Networks
Vasileios Klimis <sup>(B)</sup>, George Parisis, and Bernhard Reus
University of Sussex, Brighton, UK
_{_ v.klimis,g.parisis,bernhard _}_ @sussex.ac.uk
Abstract. In software-defined networks (SDN), a controller program is
in charge of deploying diverse network functionality across a large number of switches, but this comes at a great risk: deploying buggy controller
code could result in network and service disruption and security loopholes. The automatic detection of bugs or, even better, verification of
their absence is thus most desirable, yet the size of the network and the
complexity of the controller makes this a challenging undertaking. In this
paper, we propose MOCS, a highly expressive, optimised SDN model that
allows capturing subtle real-world bugs, in a reasonable amount of time.
This is achieved by (1) analysing the model for possible partial order
reductions, (2) statically pre-computing packet equivalence classes and
(3) indexing packets and rules that exist in the model. We demonstrate
its superiority compared to the state of the art in terms of expressivity,
by providing examples of realistic bugs that a prototype implementation
of MOCS in Uppaal caught, and performance/scalability, by running
examples on various sizes of network topologies, highlighting the importance of our abstractions and optimisations.
1 Introduction
Software-Defined Networking (SDN) [16] has brought about a paradigm shift in
designing and operating computer networks. A logically centralised controller
implements the control logic and ‘programs’ the data plane, which is defined by
flow tables installed in network switches. SDN enables the rapid development
of advanced and diverse network functionality; e.g. in designing next-generation
inter-data centre traffic engineering [10], load balancing [19], firewalls [24], and
Internet exchange points (IXPs) [15]. SDN has gained noticeable ground in the
industry, with major vendors integrating OpenFlow [37], the de-facto SDN standard maintained by the Open Networking Forum, in their products. Operators
deploy it at scale [27,38]. SDN presents a unique opportunity for innovation and
rapid development of complex network services by enabling all players, not just
vendors, to develop and deploy control and data plane functionality in networks.
This comes at a great risk; deploying buggy code at the controller could result
in problematic flow entries at the data plane and, potentially, service disruption [13,18,47,49] and security loopholes [7,26]. Understanding and fixing such
_⃝_ c The Author(s) 2020
S. K. Lahiri and C. Wang (Eds.): CAV 2020, LNCS 12225, pp. 126–148, 2020.
h //d i /10 [1007/978](https://doi.org/10.1007/978-3-030-53291-8_8) 3 030 53291 8 8
bugs is far from trivial, given the distributed and concurrent nature of computer
networks and the complexity of the control plane [44].
With the advent of SDN, a large body of research on verifying network properties has emerged [33]. Static network analysis approaches [2,11,30,34,45,51]
can only verify network properties on a given fixed network configuration but this
may be changing very quickly (e.g. as in [1]). Another key limitation is the fact
that they cannot reason about the controller program, which, itself, is responsible for the changes in the network configuration. Dynamic approaches, such
as [23,29,31,40,48,50], are able to reason about network properties as changes
happen (i.e. as flow entries in switches’ flow tables are being added and deleted),
but they cannot reason about the controller program either. As a result, when
a property violation is detected, there is no straightforward way to fix the bug
in the controller code, as these systems are oblivious of the running code. Identifying bugs in large and complex deployments can be extremely challenging.
Formal verification methods that include the controller code in the model
of the network can solve this important problem. Symbolic execution methods, such as [5,8,11,12,14,28,46], evaluate programs using symbolic variables
accumulating path-conditions along the way that then can be solved logically.
However, they suffer from the path explosion problem caused by loops and function calls which means verification does not scale to larger controller programs
(bug finding still works but is limited). Model checking SDNs is a promising area
even though only few studies have been undertaken [3,8,28,35,36,43]. Networks
and controller can be naturally modelled as transition systems. State explosion
is always a problem but can be mitigated by using abstraction and optimisation techniques (i.e. partial order reductions). At the same time, modern model
checkers [6,9,20,21,25] are very efficient.
netsmc [28] uses a bespoke _symbolic_ model checking algorithm for checking
properties given a subset of computation tree logic that allows quantification
only over all paths. As a result, this approach scales relatively well, but the
requirement that only one packet can travel through the network at any time
is very restrictive and ignores race conditions. nice [8] employs model checking
but only looks at a limited amount of input packets that are extracted through
symbolically executing the controller code. As a result, it is a bug-finding tool
only. The authors in [43] propose a model checking approach that can deal
with dynamic controller updates and an arbitrary number of packets but require
manually inserted non-interference lemmas that constrain the set of packets that
can appear in the network. This significantly limits its applicability in realistic
network deployments. Kuai [35] overcomes this limitation by introducing modelspecific partial order reductions (PORs) that result in pruning the state space
by avoiding redundant explorations. However, it has limitations explained at the
end of this section.
In this paper, we take a step further towards the full realisation of model
checking real-world SDNs by introducing MOCS (MOdel Checking for Software defined networks) <sup>1</sup>, a highly expressive, optimised SDN model which we
1 A release of MOCS is publicly available at [https://tinyurl.com/y95qtv5k.](https://tinyurl.com/y95qtv5k)
implemented in Uppaal <sup>2</sup> [6]. MOCS, compared to the state of the art in model
checking SDNs, can model network behaviour more realistically and verify larger
deployments using fewer resources. The main contributions of this paper are:
Model Generality. The proposed network model is closer to the OpenFlow standard than previous models (e.g. [35]) to reflect commonly exhibited
behaviour between the controller and network switches. More specifically, it
allows for race conditions between control messages and includes a significant
number of OpenFlow interactions, including barrier response messages. In our
experimentation section, we present families of elusive bugs that can be efficiently
captured by MOCS.
Model Checking Optimisations. To tackle the state explosion problem we
propose context-dependent _partial_ _order_ _reductions_ by considering the concrete
control program and specification in question. We establish the soundness of
the proposed optimisations. Moreover, we propose _state_ _representation_ _optimi-_
_sations_, namely packet and rule indexing, identification of packet equivalence
classes and bit packing, to improve performance. We evaluate the benefits from
all proposed optimisations in Sect. 4.
Our model has been inspired by Kuai [35]. According to the contributions
above, however, we consider MOCS to be a considerable improvement. We model
more OpenFlow messages and interactions, enabling us to check for bugs that [35]
cannot even express (see discussion in Sect. 4.2). Our context-dependent PORs
systematically explore possibilities for optimisation. Our optimisation techniques
still allow MOCS to run at least as efficiently as Kuai, often with even better
performance.
2 Software-Defined Network Model
A key objective of our work is to enable the verification of network-wide properties in real-world SDNs. In order to fulfill this ambition, we present an extended
network model to capture complex interactions between the SDN controller
and the network. Below we describe the adopted network model, its state and
transitions.
2.1 Formal Model Definition
The formal definition of the proposed SDN model is by means of an actiondeterministic transition system. We parameterise the model by the underlying
network topology _λ_ and the controller program cp in use, as explained further
below (Sect. 2.2).
Definition 1. _An SDN model is a 6-tuple M_ p _λ,_ cpq = p _S, s_ 0 _, A, �→, AP, L_ q _, where_
_S_ _is_ _the_ _set_ _of_ _all_ _states_ _the_ _SDN_ _may_ _enter,_ _s_ 0 _the_ _initial_ _state,_ _A_ _the_ _set_ _of_
2 Uppaal has been chosen as future plans include extending the model to timed actions
like e.g. timeouts. Note that the model can be implemented in any model checker.
_actions_ _which_ _encode_ _the_ _events_ _the_ _network_ _may_ _engage_ _in,_ _�→_ Ď _S_ ˆ _A_ ˆ _S_
_the_ _transition_ _relation_ _describing_ _which_ _execution_ _steps_ _the_ _system_ _undergoes_ _as_
_it_ _perform_ _actions,_ _AP_ _a_ _set_ _of_ _atomic_ _propositions_ _describing_ _relevant_ _state_
_properties,_ _and_ _L_ : _S_ _→_ 2 <sup>_AP_</sup> _is_ _a_ _labelling_ _function,_ _which_ _relates_ _to_ _any_ _state_
_s_ P _S_ _a_ _set_ _L_ p _s_ q P 2 <sup>_AP_</sup> _of_ _those_ _atomic_ _propositions_ _that_ _are_ _true_ _for_ _s._ _Such_
_an_ _SDN_ _model_ _is_ _composed_ _of_ _several_ _smaller_ _systems,_ _which_ _model_ _network_
_components_ _(hosts,_ _switches_ _and_ _the_ _controller)_ _that_ _communicate_ _via_ _queues_
_and,_ _combined,_ _give_ _rise_ _to_ _the_ _definition_ _of_ _�→._ _The_ _states_ _of_ _an_ _SDN_ _transition_
_system_ _are_ _3-tuples_ p _π, δ, γ_ q _,_ _where_ _π_ _represents_ _the_ _state_ _of_ _each_ _host,_ _δ_ _the_
_state_ _of_ _each_ _switch,_ _and_ _γ_ _the_ _controller_ _state._ _The_ _components_ _are_ _explained_
_in_ _Sect. 2.2_ _and_ _the_ _transitions_ _�→_ _in_ _Sect. 2.3._
Figure 1 illustrates a high-level view of OpenFlow interactions (left side),
modelled actions and queues (right side).
Fig. 1. A high-level view of OpenFlow interactions using OpenFlow specification terminology (left half) and the modelled actions (right half). A red solid-line arrow depicts
an action which, when fired, (1) dequeues an item from the queue the arrow begins
at, and (2) adds an item in the queue the arrowhead points to (or multiple items if
the arrow is double-headed). Deleting an item from the target queue is denoted by
a reverse arrowhead. A forked arrow denotes multiple targeted queues. (Color figure
online)
2.2 SDN Model Components
Throughout we will use the common “dot-notation” ( . ) to refer to components
of composite gadgets (tuples), e.g. queues of switches, or parts of the state. We
use obvious names for the projections functions like _s.δ.sw.pq_ for the packet
queue of the switch _sw_ in state _s_ . At times we will also use _t_ 1 and _t_ 2 for the first
and second projection of tuple _t_ .
Network Topology. A location p _n, pt_ q is a pair of a node (host or switch)
_n_ and a port _pt_ . We describe the network topology as a bijective function
_λ_ : p _Switches_ Y _Hosts_ q ˆ _Ports_ _→_ p _Switches_ Y _Hosts_ q ˆ _Ports_ consisting of a set
of directed edges _⟨_ p _n, pt_ q _,_ p _n_ <sup>_′_</sup> _, pt_ <sup>_′_</sup> q _⟩_, where _pt_ <sup>_′_</sup> is the input port of the switch or
host _n_ <sup>_′_</sup> that is connected to port _pt_ at host or switch _n_ . _Hosts_, _Switches_ and
_Ports_ are the (finite) sets of all hosts, switches and ports in the network, respectively. The topology function is used when a packet needs to be forwarded in
the network. The location of the next hop node is decided when a _send_, _match_
or _fwd_ action (all defined further below) is fired. Every SDN model is w.r.t. a
fixed topology _λ_ that does not change.
Packets. Packets are modelled as finite bit vectors and transferred in the network by being stored to the queues of the various network components. A
_packet_ P _Packets_ (the set of all packets that can appear in the network) contains
bits describing the proof-relevant header information and its location _loc_ .
Hosts. Each _host_ P _Hosts_, has a packet queue ( _rcvq_ ) and a finite set of ports
which are connected to ports of other switches. A host can send a packet to one
or more switches it is connected to ( _send_ action in Fig. 1) or receive a packet
from its own _rcvq_ ( _recv_ action in Fig. 1). Sending occurs repeatedly in a nondeterministic fashion which we model implicitly via the p0 _,_ 8q abstraction at
switches’ packet queues, as discussed further below.
Switches. Each _switch_ P _Switches_, has a flow table ( _ft_ ), a packet queue ( _pq_ ),
a control queue ( _cq_ ), a forwarding queue ( _fq_ ) and one or more ports, through
which it is connected to other switches and/or hosts. A flow table _ft_ Ď _Rules_ is a
set of forwarding rules (with _Rules_ being the set of all rules). Each one consists
of a tuple p _priority, pattern, ports_ q, where _priority_ P N determines the priority
of the rule over others, _pattern_ is a proposition over the proof-relevant header
of a packet, and _ports_ is a subset of the switch’s ports. Switches match packets
in their packet queues against rules (i.e. their respective _pattern_ ) in their flow
table ( _match_ action in Fig. 1) and forward packets to a connected device (or final
destination), accordingly. Packets that cannot be matched to any rule are sent to
the controller’s request queue ( _rq_ ) ( _nomatch_ action in Fig. 1); in OpenFlow, this
is done by sending a _PacketIn_ message. The forwarding queue _fq_ stores packets
forwarded by the controller in _PacketOut_ messages. The control queue stores
messages sent by the controller in _FlowMod_ and _BarrierReq_ messages. _FlowMod_
messages contain instructions to add or delete rules from the flow table (that
trigger _add_ and _del_ actions in Fig. 1). _BarrierReq_ messages contain barriers to
synchronise the addition and removal of rules. MOCS conforms to the OpenFlow
specifications and always execute instructions in an interleaved fashion obeying
the ordering constraints imposed by barriers.
OpenFlow Controller. The controller is modelled as a finite state automaton
embedded into the overall transition system. A controller program cp, as used
to parametrise an SDN model, consists of p _CS, pktIn, barrierIn_ q. It uses its own
local state _cs_ P _CS_, where _CS_ is the finite set of control program states. Incoming
_PacketIn_ and _BarrierRes_ messages from the SDN model are stored in separate
queues ( _rq_ and _brq_, respectively) and trigger _ctrl_ or _bsync_ actions (see Fig. 1)
which are then processed by the controller program in its current state. The
controller’s corresponding handler, _pktIn_ for _PacketIn_ messages and _barrierIn_
for _BarrierRes_ messages, responds by potentially changing its local state and
sending messages to a subset of _Switches_, as follows. A number of _PacketOut_
messages (pairs of _pkt_, _ports_ ) can be sent to a subset of _Switches_ . Such a message
is stored in a switch’s forward queue and instructs it to forward packet _pkt_
along the ports _ports_ . The controller may also send any number of _FlowMod_
and _BarrierReq_ messages to the control queue of any subset of _Switches_ . A
_FlowMod_ message may contain an _add_ or _delete_ rule modification instruction.
These are executed in an arbitrary order by switches, and _barriers_ are used to
synchronise their execution. Barriers are sent by the controller in _BarrierReq_
messages. OpenFlow requires that a response message ( _BarrierRes_ ) is sent to
the controller by a switch when a barrier is consumed from its control queue
so that the controller can synchronise subsequent actions. Our model includes a
_brepl_ action that models the sending of a _BarrierRes_ message from a switch to
the controller’s barrier reply queue ( _brq_ ), and a _bsync_ action that enables the
controller program to react to barrier responses.
Queues. All queues in the network are modelled as _finite_ state. Packet queues _pq_
for switches are modelled as multisets, and we adopt p0 _,_ 8q abstraction [41]; i.e.
a packet is assumed to appear either zero or an arbitrary (unbounded) amount
of times in the respective multiset. This means that once a packet has arrived
at a switch or host, (infinitely) many other packets of the same kind repeatedly
arrive at this switch or host. Switches’ forwarding queues _fq_ are, by contrast,
modelled as sets, therefore if multiple identical packets are sent by the controller
to a switch, only one will be stored in the queue and eventually forwarded by
the switch. The controller’s request _rq_ and barrier reply queues _brq_ are modelled
as sets as well. Hosts’ receive queues _rcvq_ are also modelled as sets. Controller
queues _cq_ at switches are modelled as a finite sequence of sets of control messages
(representing add and remove rule instructions), interleaved by any number of
barriers. As the number of barriers that can appear at any execution is finite,
this sequence is finite.
2.3 Guarded Transitions
Here we provide a detailed breakdown of the transition relation _s_ _�_ ´´ _α_ p _→⃗a_ q _s_ <sup>_′_</sup> for
each action _α_ p _⃗a_ q P _A_ p _s_ q, where _A_ p _s_ q the set of all enabled actions in _s_ in the
proposed model (see Fig. 1). Transitions are labelled by action names _α_ with
arguments _⃗a_ . The transitions are only enabled in state _s_ if _s_ satisfies certain
conditions called _guards_ that can refer to the arguments _⃗a_ . In guards, we make
use of predicate _bestmatch_ p _sw_ _, r_ _, pkt_ q that expresses that _r_ is the highest priority
rule in _sw_ _.ft_ that matches _pkt_ ’s header. Below we list all possible actions with
their respective guards.
_send_ p _h, pt, pkt_ q _._ Guard: _true_ . This transition models packets arriving in the
network in a non-deterministic fashion. When it is executed, _pkt_ is added to
the packet queue of the network switch connected to the port _pt_ of host _h_ (or,
formally, to _λ_ p _h, pt_ q1 _.pq_, where _λ_ is the topology function described above). As
described in Sect. 3.2, only relevant representatives of packets are actually sent
by end-hosts. This transition is unguarded, therefore it is always enabled.
_recv_ p _h, pkt_ q _._ Guard: _pkt_ P _h.rcvq_ . This transition models hosts receiving (and
removing) packets from the network and is enabled if _pkt_ is in _h_ ’s receive queue.
_match_ p _sw, pkt, r_ q _._ Guard: _pkt_ P _sw.pq_ ^ _r_ P _sw_ _.ft_ ^ _bestmatch_ p _sw, r, pkt_ q. This
transition models matching and forwarding packet _pkt_ to zero or more next hop
nodes (hosts and switches), as a result of highest priority matching of rule _r_ with
_pkt_ . The packet is then copied to the packet queues of the connected hosts and/or
switches, by applying the topology function to the port numbers in the matched
rule; i.e. _λ_ p _sw, pt_ q1 _.pq,_ @ _pt_ P _r.ports_ . Dropping packets is modelled by having a
special ‘drop’ port that can be included in rules. The location of the forwarded
packet(s) is updated with the respective destination (switch/host, port) pair; i.e.
_λ_ p _sw, pt_ q. Due to the p0 _,_ 8q abstraction, the packet is not removed from _sw.pq_ .
_nomatch_ p _sw, pkt_ q _._ Guard: _pkt_ P _sw.pq_ ^ ∄ _r_ P _sw_ _.ft_ _._ _bestmatch_ p _sw, r, pkt_ q.
This transition models forwarding a packet to the OpenFlow controller when a
switch does not have a rule in its forwarding table that can be matched against
the packet header. In this case, _pkt_ is added to _rq_ for processing. _pkt_ is not
removed from _sw.pq_ due to the supported p0 _,_ 8q abstraction.
_ctrl_ p _sw, pkt, cs_ q _._ Guard: _pkt_ P _controller_ _.rq_ . This transition models the execution of the packet handler by the controller when packet _pkt_ that was previously sent by _sw_ is available in _rq_ . The controller’s packet handler function
_pktIn_ p _sw_ _, pkt, cs_ q is executed which, in turn (i) reads the current controller state
_cs_ and changes it according to the controller program, (ii) adds a number of rules,
interleaved with any number of barriers, into the _cq_ of zero or more switches,
and (iii) adds zero or more forwarding messages, each one including a packet
along with a set of ports, to the _fq_ of zero or more switches.
_fwd_ p _sw, pkt, ports_ q _._ Guard: p _pkt, ports_ q P _sw_ _.fq_ . This transition models forwarding packet _pkt_ that was previously sent by the controller to _sw_ ’s forwarding
queue _sw_ _.fq_ . In this case, _pkt_ is removed from _sw_ _.fq_ (which is modelled as a
set), and added to the _pq_ of a number of network nodes (switches and/or hosts),
as defined by the topology function _λ_ p _sw, pt_ q1 _.pq,_ @ _pt_ P _ports_ . The location of
the forwarded packet(s) is updated with the respective destination (switch/host,
port) pair; i.e. _λ_ p _n, pt_ q.
_F M_ p _sw, r_ q, where _FM_ P _{add_ _, del_ _}_ . Guard: p _FM, r_ q P _head_ p _sw.cq_ q. These
transitions model the addition and deletion, respectively, of a rule in the flow
table of switch _sw_ . They are enabled when one or more _add_ and _del_ control
messages are in the set at the head of the switch’s control queue. In this case,
_r_ is added to - or deleted from, respectively - _sw_ _.ft_ and the control message
is deleted from the set at the head of _cq_ . If the set at the head of _cq_ becomes
empty it is removed. If then the next item in _cq_ is a barrier, a _brepl_ transition
becomes enabled (see below).
_brepl_ p _sw, xid_ q _._ Guard: _b_ p _xid_ q = _head_ p _sw_ _.cq_ q. This transition models a switch
sending a barrier response message, upon consuming a barrier from the head of
its control queue; i.e. if _b_ p _xid_ q is the head of _sw_ _.cq_, where _xid_ P N is an identifier
for the barrier set by the controller, _b_ p _xid_ q is removed and the barrier reply
message _br_ p _sw_ _, xid_ q is added to the controller’s _brq_ .
_bsync_ p _sw, xid, cs_ q _._ Guard: _br_ p _sw, xid_ q P _controller_ _.brq_ . This transition models
the execution of the barrier response handler by the controller when a barrier
response sent by switch _sw_ is available in _brq_ . In this case, _br_ p _sw_ _, xid_ q is removed
from the _brq_, and the controller’s barrier handler _barrierIn_ p _sw_ _, xid_ _, cs_ q is executed which, in turn (i) reads the current controller state _cs_ and changes it
according to the controller program, (ii) adds a number of rules, interleaved
with any number of barriers, into the _cq_ of zero or more switches, and (iii) adds
zero or more forwarding messages, each one including a packet along with a set
of ports, to the _fq_ of zero or more switches.
An Example Run. In Fig. 2, we illustrate a sequence of MOCS transitions
through a simple packet forwarding example. The run starts with a _send_ transition; packet _p_ is copied to the packet queue of the switch in black. Initially,
switches’ flow tables are empty, therefore _p_ is copied to the controller’s request
queue ( _nomatch_ transition); note that _p_ remains in the packet queue of the
switch in black due to the p0 _,_ 8q abstraction. The controller’s packet handler is
then called ( _ctrl_ transition) and, as a result, (1) _p_ is copied to the forwarding
queue of the switch in black, (2) rule _r_ 1 is copied to the control queue of the
switch in black, and (3) rule _r_ 2 is copied to the control queue of the switch in
white. Then, the switch in black forwards _p_ to the packet queue of the switch
in white ( _fwd_ transition). The switch in white installs _r_ 2 in its flow table ( _add_
transition) and then matches _p_ with the newly installed rule and forwards it to
the receive queue of the host in white ( _match_ transition), which removes it from
the network ( _recv_ transition).
2.4 Specification Language
In order to specify properties of packet flow in the network, we use LTL formulas
without “next-step” operator _⃝_ <sup>3</sup>, where atomic formulae denoting properties of
states of the transition system, i.e. SDN network. In the case of safety properties,
i.e. an invariant w.r.t. states, the LTL _\{⃝}_ formula is of the form - _ϕ_, i.e. has
only an outermost - temporal connective.
Let _P_ denote unary predicates on packets which encode a property of a
packet based on its fields. An atomic _state_ _condition_ (proposition) in _AP_ is
either of the following: (i) existence of a packet _pkt_ located in a packet queue
( _pq_ ) of a switch or in a receive queue ( _rcvq_ ) of a host that satisfies _P_ (we
denote this by D _pkt_ P _n.pq . P_ p _pkt_ q with _n_ P _Switches_, and D _pkt_ P _h.rcvq . P_ p _pkt_ q
3 This is the largest set of formulae supporting the partial order reductions used in
Sect. 3, as stutter equivalence does not preserve the truth value of formulae with
the _⃝_ .
Fig. 2. Forwarding _p_ from to . Non greyed-out icons are the ones whose state
changes in the current transition.
with _h_ P _Hosts_ ) <sup>4</sup> ; (ii) the controller is in a specific _controller_ state _q_ P _CS_,
denoted by a unary predicate symbol _Q_ p _q_ q which holds in system state _s_ P _S_
if _q_ = _s.γ.cs_ . The specification logic comprises first-order formula with equality
on the finite domains of switches, hosts, rule priorities, and ports which are
_state-independent_ (and decidable).
For example, D _pkt_ P _sw.pq . P_ p _pkt_ q represents the fact that the packet predicate _P_ p ~~q~~ is true for at least one packet _pkt_ in the _pq_ of switch _sw_ . For every
atomic packet proposition _P_ p _pkt_ q, also its negation _¬P_ p _pkt_ q is an atomic proposition for the reason of simplifying syntactic checks of formulae in Table 1 in
the next section. Note that universal quantification over packets in a queue
is a derived notion. For instance, @ _pkt_ P _n.pq . P_ p _pkt_ q can be expressed as
∄ _pk_ P _n.pq . ¬P_ p _pkt_ q. Universal and existential quantification over switches or
hosts can be expressed by finite iterations of ^ and _, respectively.
In order to be able to express that a condition holds when a certain event
happened, we add to our propositions instances of _propositional_ _dynamic_ _logic_
[17,42]. Given an action _α_ p _·_ q P _A_ and a proposition _P_ that may refer to any
variables in _⃗x_, [ _α_ p _⃗x_ q] _P_ is also a proposition and [ _α_ p _⃗x_ q] _P_ is true if, and only if,
after firing transition _α_ p _⃗a_ q (to get to the current state), _P_ holds with the variables
in _⃗x_ bound to the corresponding values in the actual arguments _⃗a_ . With the help
of those basic modalities one can then also specify that more complex events
occurred. For instance, dropping of a packet due to a _match_ or _fwd_ action can
be expressed by [ _match_ p _sw, pkt, r_ q]p _r.fwd_ _port_ = dropq _∧_ [ _fwd_ p _sw, pkt, pt_ q]p _pt_ =
dropq. Such predicates derived from modalities are used in [32] (extended version
of this paper, with proofs and controller programs), Appendix B-CP5.
4 Note that these are _atomic_ propositions despite the use of the existential quantifier
notation.
The meaning of temporal LTL operators is standard depending on the trace
_α_ 1 _α_ 2
of a transition sequence _s_ 0 _�_ ´ _→_ _s_ 1 _�_ ´ _→_ _. . ._ . The trace _L_ p _s_ 0q _L_ p _s_ 1q _. . . L_ p _si_ q _. . ._ is
defined as usual. For instance, trace _L_ p _s_ 0q _L_ p _s_ 1q _L_ p _s_ 2q _. . ._ satisfies invariant - _ϕ_ if
each _L_ p _si_ q implies _ϕ_ .
3 Model Checking
In order to verify desired properties of an SDN, we use its model as described in
Definition 1 and apply model checking. In the following we propose optimisations
that significantly improve the performance of model checking.
3.1 Contextual Partial-Order Reduction
_Partial_ _order_ _reduction_ (POR) [39] reduces the number of interleavings (traces)
one has to check. Here is a reminder of the main result (see [4]) where we use a
stronger condition than the regular ( _C4_ ) to deal with cycles:
Theorem 1 (Correctness of POR). _Given_ _a_ _finite_ _transition_ _system_ _M_ =
p _S, A, �→, s_ 0 _, AP, L_ q _that_ _is_ _action-deterministic_ _and_ _without_ _terminal_ _states,_ _let_
_A_ p _s_ q _denote_ _the_ _set_ _of_ _actions_ _in_ _A_ _enabled_ _in_ _state_ _s_ P _S._ _Let_ _ample_ p _s_ q Ď _A_ p _s_ q
_be_ _a_ _set_ _of_ _actions_ _for_ _a_ _state_ _s_ P _S_ _that_ _satisfies_ _the_ _following_ _conditions:_
_C1_ _(Non)emptiness_ _condition:_ ∅ _̸_ = _ample_ p _s_ q Ď _A_ p _s_ q _._
_α_ 1 _αn_ _β_
_C2_ _Dependency_ _condition:_ _Let_ _s_ _�_ ´ _→_ _s_ 1 _..._ _�_ ´ _→_ _sn_ _�_ ´ _→_ _t_ _be_ _a_ _run_ _in_ _M._ _If_ _β_ P
_A \ ample_ p _s_ q _depends_ _on_ _ample_ p _s_ q _,_ _then_ _αi_ P _ample_ p _s_ q _for_ _some_ 0 ă _i_ ď _n,_
_which_ _means_ _that_ _in_ _every_ _path_ _fragment_ _of_ _M,_ _β_ _cannot_ _appear_ _before_ _some_
_transition_ _from_ _ample_ p _s_ q _is_ _executed._
_C3_ _Invisibility_ _condition:_ _If_ _ample_ p _s_ q _̸_ = _A_ p _s_ q _(i.e.,_ _state_ _s_ _is_ _not_ _fully_ _expanded),_
_then_ _every_ _α_ P _ample_ p _s_ q _is_ _invisible._
_C4_ _Every_ _cycle_ _in_ _M_ <sup>_ample_</sup> _contains_ _a_ _state_ _s_ _such_ _that_ _ample_ p _s_ q = _A_ p _s_ q _._
_where_ _M_ <sup>_ample_</sup> = p _Sa_ _, A, �→→, s0_ _, AP_ _, La_ q _is_ _the_ _new,_ _optimised,_ _model_ _defined_ _as_
_follows:_ _let_ _Sa_ Ď _S_ _be_ _the_ _set_ _of_ _states_ _reachable_ _from_ _the_ _initial_ _state_ _s_ 0 _under_
_�→→,_ _let_ _La_ p _s_ q = _L_ p _s_ q _for_ _all_ _s_ P _Sa,_ _and_ _define_ _�→→_ Ď _Sa_ ˆ _A_ ˆ _Sa_ _inductively_ _by_
_the_ _rule_
_s_
_s_
_�_ <u>´</u> _<u>→α</u>_ _s_ <sup>_′_</sup>
_<u>α</u>_ if _α_ P _ample_ p _s_ q
_�→→_ _s_ <sup>_′_</sup>
_If_ _ample_ p _s_ q _satisfies_ _conditions_ _(C1)–(C4)_ _as_ _outlined_ _above,_ _then_ _for_ _each_ _path_
_in_ _M_ _there_ _exists_ _a_ _stutter-trace_ _equivalent_ _path_ _in_ _M_ <sup>_ample_</sup> _,_ _and_ _vice-versa,_
_denoted_ _M_ _≡M_ st _ample_ _._
The intuitive reason for this theorem to hold is the following: Assume an action
sequence _αi...αi_ ` _nβ_ that reaches the state _s_, and _β_ is _independent_ of _{αi, ...αi_ ` _n}_ .
Then, one can permute _β_ with _αi_ ` _n_ through _αi_ successively _n_ times. One can
therefore construct the sequence _βαi...αi_ ` _n_ that also reaches the state _s_ . If this
shift of _β_ does not affect the labelling of the states with atomic propositions
( _β_ is called _invisible_ in this case), then it is not detectable by the property to
be shown and the permuted and the original sequence are equivalent w.r.t. the
property and thus don’t have to be checked both. One must, however, ensure,
that in case of loops (infinite execution traces) the ample sets do not _preclude_
some actions to be fired altogether, which is why one needs ( _C4_ ).
The more actions that are both stutter and provably independent (also
referred to as _safe_ _actions_ [22]) there are, the smaller the transition system,
and the more efficient the model checking. One of our contributions is that we
attempt to identify _as_ _many_ _safe_ _actions_ _as_ _possible_ to make PORs more widely
applicable to our model.
The PORs in [35] consider only dependency and invisibility of _recv_ and _bar-_
_rier_ actions, whereas we explore systematically all possibilities for applications
of Theorem 1 to reduce the search space. When identifying safe actions, we consider (1) the actual controller program cp, (2) the topology _λ_ and (3) the state
formula _ϕ_ to be shown invariant, which we call the _context_ ctx of actions. It
turns out that two actions may be dependent in a given context of abstraction while independent in another context, and similarly for invisibility, and we
exploit this fact. The argument of the action thus becomes relevant as well.
Definition 2 (Safe Actions). _Given_ _a_ _context_ ctx = pcp _, λ, ϕ_ q _,_ _and_ _SDN_
_model_ _M_ p _λ,_ cpq = p _S, A, �→, s_ 0 _, AP_ _, L_ q _,_ _an_ _action_ _α_ p _·_ q P _A_ p _s_ q _is_ _called_ _‘safe’_ _if_
_it_ _is_ _independent_ _of_ _any_ _other_ _action_ _in_ _A_ _and_ _invisible_ _for_ _ϕ._ _We_ _write_ _safe_
_actions_ _α_ ˇp _·_ q _._
Definition 3 (Order-sensitive Controller Program). _A_ _controller_ _pro-_
_gram_ cp _is_ _order-sensitive_ _if_ _there_ _exists_ _a_ _state_ _s_ P _S_ _and_ _two_ _actions_ _α, β_
_α_ _β_ _β_ _α_
_in_ _{ctrl_ p _·_ q _, bsync_ p _·_ q _}_ _such_ _that_ _α, β_ P _A_ p _s_ q _and_ _s_ _�_ ´ _→_ _s_ 1 _�_ ´ _→_ _s_ 2 _and_ _s_ _�_ ´ _→_ _s_ 3 _�_ ´ _→_ _s_ 4
_with_ _s_ 2 _̸_ = _s_ 4 _._
Definition 4. _Let_ _ϕ_ _be_ _a_ _state_ _formula._ _An_ _action_ _α_ P _A_ _is_ _called_ _‘ϕ-invariant’_
_if_ _s |_ = _ϕ_ _iff_ _α_ p _s_ q _|_ = _ϕ_ _for_ _all_ _s_ P _S_ _with_ _α_ P _A_ p _s_ q _._
Lemma 1. _For_ _transition_ _system_ _M_ p _λ,_ cpq = p _S, A, �→, s_ 0 _, AP, L_ q _and_ _a_ _formula_
_ϕ_ P _LTL\{⃝},_ _α_ P _A_ _is_ _safe_ iff <sup>�3</sup> _i_ =1 <sup>_Safe_</sup> _i_ <sup>p</sup> <sup>_α_</sup> <sup>q</sup> <sup>_,_</sup> <sup>_where_</sup> <sup>_Safe_</sup> _i_ <sup>_,_</sup> <sup>_given_</sup> <sup>_in_</sup> <sup>_Table 1,_</sup>
_are_ _per-row._
_Proof._ See [32] Appendix A.
Theorem 2 (POR instance for SDN). _Let_ pcp _, λ, ϕ_ q _be_ _a_ _context_ _such_ _that_
_M_ p _λ,_ cpq = p _S, A, �→, s_ 0 _, AP, L_ q _is_ _an_ _SDN_ _network_ _model_ _from_ _Definition_ _1;_ _and_
_let_ _safe_ _actions_ _be_ _as_ _in_ _Definition_ _2._ _Further,_ _let_ _ample_ p _s_ q _be_ _defined_ _by:_
_ample_ p _s_ q =
- _{α_ P _A_ p _s_ q _|_ _α_ _safe_ _} if_ _{α_ P _A_ p _s_ q _|_ _α_ _safe_ _}̸_ = ∅
_A_ p _s_ q _otherwise_
Table 1. Safeness predicates
Action Independence Invisibility
_Safe_ <u>1p</u> _α_ q _Safe_ <u>2p</u> _α_ q _Safe_ <u>3p</u> _α_ q
_α_ = _ctrl_ p _sw, pk, cs_ q cp is not order-sensitive if _Q_ p _q_ q occurs in _ϕ_, where _q_ P _CS_,
then _α_ is _ϕ_ -invariant
_α_ = _bsync_ p _sw, xid, cs_ q cp is not order-sensitive if _Q_ p _q_ q occurs in _ϕ_, where _q_ P _CS_,
then _α_ is _ϕ_ -invariant
_α_ = _fwd_ p _sw_ _, pk_ _, ports_ q _⊤_ if D _pk_ P _b.q . P_ p _pk_ q occurs in _ϕ_, for any
_b_ P _{sw}_ Y _{λ_ p _sw, p_ q1 _|_ _p_ P _ports}_ and
_q_ P _{pq, recvq}_, then _α_ is _ϕ_ -invariant
_α_ = _brepl_ p _sw, xid_ q _⊤_ _⊤_
_α_ = _recv_ p _h, pk_ q _⊤_ if D _pk_ P _h.rcvq . P_ p _pk_ q occurs in _ϕ_,
then _α_ is _ϕ_ -invariant
_Then,_ _ample_ _satisfies_ _the_ _criteria_ _of_ _Theorem_ _1_ _and_ _thus_ _M_ p _λ,_ cpq
_Proof._
_≡M_ st _ample_ p _λ,_ cpq
5
_C1_ The (non)emptiness condition is trivial since by definition of _ample_ p _s_ q it
follows that _ample_ p _s_ q = ∅ iff _A_ p _s_ q = ∅.
_C2_ By assumption _β_ P _A\ample_ p _s_ q depends on _ample_ p _s_ q. But with our defini
tion of _ample_ p _s_ q this is impossible as all actions in _ample_ p _s_ q are safe and by
definition independent of all other actions.
_C3_ The validity of the invisibility condition is by definition of _ample_ and safe
actions.
_C4_ We now show that every cycle in _M_ <sup>_ample_</sup>
p _λ,_ cpq <sup>contains a fully expanded state</sup> <sup>_s_</sup> <sup>, i.e.</sup>
a state _s_ such that _ample_ p _s_ q = _A_ p _s_ q. By definition of _ample_ p _s_ q in Theorem 2
it is equivalent to show that there is no cycle in _M_ <sup>_ample_</sup>
p _λ,_ cpq <sup>consisting</sup> <sup>of</sup> <sup>safe</sup>
actions only. We show this by contradiction, assuming such a cycle of only
safe actions exists. There are five safe action types to consider: _ctrl_, _fwd_, _brepl_,
_bsync_ and _recv_ . Distinguish two cases.
_Case_ _1. A_ _sequence_ _of_ _safe_ _actions_ _of_ _same_ _type_ . Let us consider the different
safe actions:
_•_ Let _ρ_ an execution of _M_ <sup>_ample_</sup>
p _λ,_ cpq <sup>which consists of only one type of</sup> <sup>_ctrl_</sup> <sup>-actions:</sup>
_ρ_ = _s_ 1
_ctrl_ p _pkt_ 1 _,cs_ 1q _ctrl_ p _pkt_ 2 _,cs_ 2q _ctrl_ p _pkti_ ´1 _,csi_ ´1q
_�_ ´´´´´´´´ _→→_ _s_ 2 _�_ ´´´´´´´´ _→→_ _...si_ ´1 _�_ ´´´´´´´´´´´ _→→_ _si_
Suppose _ρ_ is a cycle. According to the _ctrl_ semantics, for each transition
_ctrl_ p _pkt,cs_ q
_s_ _�_ ´´´´´´´ _→→_ _s_ <sup>_′_</sup>, where _s_ = p _π, δ, γ_ q, _s_ <sup>_′_</sup> = p _π_ <sup>_′_</sup> _, δ_ <sup>_′_</sup> _, γ_ <sup>_′_</sup> q, it holds that _γ_ <sup>_′_</sup> _.rq_ =
_γ.rq\{pkt}_ as we use sets to represent _rq_ buffers. Hence, for the execution
_ρ_ it holds _γi.rq_ = _γ_ 1 _.rq\{pkt_ 1 _, pkt_ 2 _, ...pkti_ ´1 _}_ which implies that _s_ 1 _̸_ = _si_ .
Contradiction.
5 Stutter equivalence here implicitly is defined w.r.t. the atomic propositions appearing
in _ϕ_, but this suffices as we are just interested in the validity of _ϕ_ .
_•_ Let _ρ_ an execution which consists of only one type of _fwd_ -actions: similar
argument as above since _fq_ -s are represented by sets and thus forward messages are removed from _fq_ .
_•_ Let _ρ_ an execution which consists of only one type of _brepl_ -actions: similar
argument as above since control messages are removed from _cq_ .
_•_ Let _ρ_ an execution which consists of only one type of _bsync_ -actions: similar
argument as above, as barrier reply messages are removed from _brq_ -s that are
represented by sets.
_•_ Let _ρ_ an execution which consists of only one type of _recv_ -actions: similar
argument as above, as packets are removed from _rcvq_ buffers that are represented by sets.
_Case_ _2. A_ _sequence_ _of_ _different_ _safe_ _actions_ . Suppose there exists a cycle with
mixed safe actions starting in _s_ 1 and ending in _si_ . Distinguish the following
cases.
i) There exists at least a _ctrl_ and/or a _bsync_ action in the cycle. According
to the effects of safe transitions, the _ctrl_ action will change to a state with
smaller _rq_ and the _bsync_ will always switch to a state with smaller _brq_ . It
is important here that _ctrl_ does not interfere with _bsync_ regarding _rq,_ _brq_,
and no safe action of other type than _ctrl_ and _bsync_ accesses _rq_ or _brq_ . This
implies that _s_ 1 _̸_ = _si_ . Contradiction.
ii) Neither _ctrl_, nor _bsync_ actions in the cycle.
a) There is a _fwd_ and/or _brepl_ in the cycle: _fwd_ will always switch to a state
with smaller _fq_ and _brepl_ will always switch to a state with smaller _cq_
( _brepl_ and _recv_ do not interfere with _fwd_ ). This implies that _s_ 1 _̸_ = _si_ .
Contradiction.
b) There is neither _fwd_ nor _brepl_ in the cycle. This means that only _recv_ is
in the cycle which is already covered by the first case.
_⊓⊔_
Due to the definition of the transition system via ample sets, each
safe action is immediately executed after its enabling one. Therefore,
one can merge every transition of a safe action with its precursory
enabling one. Intuitively, the semantics of the merged action is defined
as the successive execution of its constituent actions. This process can be
repeated if there is a chain of safe actions; for instance, in the case of
_nomatch_ p _sw,pkt_ q _ctrl_ p _sw,pkt,cs_ q _fwd_ p _sw,pkt,ports_ q
_s_ _�_ ´´´´´´´´´´´ _→→_ _s_ <sup>_′_</sup> _�_ ´´´´´´´´´ _→→_ _s_ <sup>_′′_</sup> _�_ ´´´´´´´´´´´ _→→_ _s_ <sup>_′′′_</sup> where each transition
enables the next and the last two are assumed to be safe. These transitions can
be merged into one, yielding a stutter equivalent trace as the intermediate states
are invisible (w.r.t. the context and thus the property to be shown) by definition
of safe actions.
3.2 State Representation
Efficient state representation is crucial for minimising MOCS’s memory footprint
and enabling it to scale up to relatively large network setups.
Packet and Rule Indexing. In MOCS, only a single instance of each packet
and rule that can appear in the modelled network is kept in memory. An index
is then used to associate queues and flow tables with packets and rules, with a
single bit indicating their presence (or absence). This data structure is illustrated
in Fig. 3. For a data packet, a value of 1 in the _pq_ section of the entry indicates
that infinite copies of it are stored in the packet queue of the respective switch.
A value of 1 in the _fq_ section indicates that a single copy of the packet is stored
in the forward queue of the respective switch. A value of 1 in the _rq_ section
indicates that a copy of the packet sent by the respective switch (when a _nomatch_
transition is fired) is stored in the controller’s request queue. For a rule, a value
of 1 in the _ft_ section indicates that the rule is installed in the respective switch’s
flow table. A value of 1 in the _cq_ section indicates that the rule is part of a
_FlowMod_ message in the respective switch’s control queue.
Fig. 3. Packet (left) and rule (right) indices
The proposed optimisation enables scaling up the network topology by minimising the required memory footprint. For every switch, MOCS only requires a
few bits in each packet and rule entry in the index.
Discovering Equivalence Classes of Packets. Model checking with all possible packets, including all specified fields in the OpenFlow standard, would
entail a huge state space that would render any approach unusable. Here, we
propose the discovery of equivalence classes of packets that are then used for
model checking. We first remove all fields that are not referenced in a statement
or rule creation or deletion in the controller program. Then, we identify packet
classes that would result in the same controller behaviour. Currently, as with the
rest of literature, we focus on simple controller programs where such equivalence
classes can be easily identified by analysing static constraints and rule manipulation in the controller program. We then generate one representative packet
from each class and assign it to all network switches that are directly connected
to end-hosts; i.e. modelling clients that can send an arbitrarily large number of
packets in a non-deterministic fashion. We use the minimum possible number of
bits to represent the identified equivalence classes. For example, if the controller
program exerts different behaviour if the destination tcp port of a packet is 23
(i.e. destined to an ssh server) or not, we only use a 1-bit field to model this
behaviour.
Bit Packing. We reduce the size of each recorded state by employing bit packing
using the _int_ type supported by Uppaal, and bit-level operations for the entries
in the packet and rule indices as well as for the packets and rules themselves.
4 Experimental Evaluation
In this section, we experimentally evaluate MOCS by comparing it with the
state of the art, in terms of performance (verification throughput and memory footprint) and model expressivity. We have implemented MOCS in Uppaal
[6] as a network of parallel automata for the controller and network switches,
which communicate asynchronously by writing/reading packets to/from queues
that are part of the model discussed in Sect. 2. As discussed in Sect. 3, this is
implemented by directly manipulating the packet and rule indices.
Throughout this section we will be using three examples of network controllers: (1) A _stateless_ _firewall_ ([32] Appendix B-CP1) requires the controller to
install rules to network switches that enable them to decide whether to forward
a packet towards its destination or not; this is done in a stateless fashion, i.e.
without having to consider any previously seen packets. For example, a controller
could configure switches to block all packets whose destination tcp port is 22
(i.e. destined to an ssh server). (2) A _stateful_ _firewall_ ([32] Appendix B-CP2)
is similar to the stateless one but decisions can take into account previously
seen packets. A classic example of this is to allow bi-directional communication
between two end-hosts, when one host opens a tcp connection to the other.
Then, traffic flowing from the other host back to the connection initiator should
be allowed to go through the switches on the reverse path. (3) A _MAC_ _learning_
_application_ ([32] Appendix B-CP3) enables the controller and switches to learn
how to forward packets to their destinations (identified with respective MAC
addresses). A switch sends a _PacketIn_ message to the controller when it receives
a packet that it does not know how to forward. By looking at this packet, the
controller learns a mapping of a source switch (or host) to a port of the requesting switch. It then installs a rule (by sending a _FlowMod_ message) that will allow
that switch to forward packets back to the source switch (or host), and asks the
requesting switch (by sending a _PacketOut_ message) to flood the packet to all
its ports except the one it received the packet from. This way, the controller
eventually learns all mappings, and network switches receive rules that enable
them to forward traffic to their neighbours for all destinations in the network.
4.1 Performance Comparison
We measure MOCS’s performance, and also compare it against Kuai [35] <sup>6</sup> using
the examples described above, and we investigate the behaviour of MOCS as
we scale up the network (switches and clients/servers). We report three metrics:
6 Note that parts of Kuai’s source code are not publicly available, therefore we implemented it’s model in Uppaal.
Fig. 4. Performance comparison - verification throughput
(1) _verification_ _throughput_ in visited states per second, (2) number of visited
states, and (3) required memory. We have run all verification experiments on an
18-Core iMac pro, 2.3 GHz Intel Xeon W with 128 GB DDR4 memory.
Verification Throughput. We measure the verification throughput when running a single experiment at a time on one cpu core and report the average and
standard deviation for the first 30 min of each run. In order to assess how MOCS’s
different optimisations affect its performance, we report results for the following
system variants: (1) MOCS, (2) MOCS without POR, (3) MOCS without any
optimisations (neither POR, state representation), and (4) Kuai. Figure 4 shows
the measured throughput (with error bars denoting standard deviation).
For the MAC learning and stateless firewall applications, we observe that
MOCS performs significantly better than Kuai for all different network setups
and sizes <sup>7</sup>, achieving at least double the throughput Kuai does. The throughput
performance is much better for the stateful firewall, too. This is despite the fact
that, for this application, Kuai employs the unrealistic optimisation where the
_barrier_ transition forces the immediate update of the forwarding state. In other
words, MOCS is able to explore significantly more states and identify bugs that
Kuai cannot (see Sect. 4.2).
The computational overhead induced by our proposed PORs is minimal. This
overhead occurs when PORs require dynamic checks through the safety predicates described in Table 1. This is shown in Fig. 4a, where, in order to decide
about the (in)visibility of _fwd(sw,pk,pt)_ actions, a lookup is performed in the
history-array of packet _pk_, checking whether the bit which corresponds to switch
_sw_ <sup>_′_</sup>, which is connected with port _pt_ of _sw_, is set. On the other hand, if a POR
does not require any dynamic checks, no penalty is induced, as shown in Figs. 4b
7 S ˆ H in Figs. 4 to 6 indicates the number of switches S and hosts H.
Fig. 5. Performance comparison - visited states (logarithmic scale)
Fig. 6. Performance comparison - memory footprint (logarithmic scale)
and 4c, where the throughput when the PORs are disabled is almost identical to
the case where PORs are enabled. This is because it has been statically established at a pre-analysis stage that all actions of a particular type are always safe
for any argument/state. It is important to note that even when computational
overhead is induced, PORs enable MOCS to scale up to larger networks because
the number of visited states can be significantly reduced, as discussed below.
In order to assess the contribution of the state representation optimisation in
MOCS’s performance, we measure the throughput when both PORs and state
representation optimisations are disabled. It is clear that they contribute significantly to the overall throughput; without these the measured throughput was
at least less than half the throughput when they were enabled.
Number of Visited States and Required Memory. Minimising the number of visited states and required memory is crucial for scaling up verification to
larger networks. The proposed partial order reductions (Sect. 3.1) and identification of packet equivalent classes aim at the former, while packet/rule indexing
and bit packing aim at the latter (§3.2). In Fig. 5, we present the results for the
various setups and network deployments discussed above. We stopped scaling up
the network deployment for each setup when the verification process required
more than 24 h or started swapping memory to disk. For these cases we killed
the process and report a topped-up bar in Figs. 5 and 6.
For the MAC learning application, MOCS can scale up to larger network
deployments compared to Kuai, which could not verify networks consisting of
more than 2 hosts and 6 switches. For that network deployment, Kuai visited
_∼_ 7 m states, whereas MOCS visited only _∼_ 193 k states. At the same time, Kuai
required around 48 GBs of memory (7061 bytes/state) whereas MOCS needed
_∼_ 43 MBs (228 bytes/state). Without the partial order reductions, MOCS can
only verify tiny networks. The contribution of the proposed state representation
optimisations is also crucial; in our experiments (results not shown due to lack of
space), for the 6 ˆ 2 network setups (the largest we could do without these optimisations), we observed a reduction in state space (due to the identification of
packet equivalence classes) and memory footprint (due to packet/rule indexing
and bit packing) from _∼_ 7 m to _∼_ 200k states and from _∼_ 6 KB per state to _∼_ 230 B
per state. For the stateless and stateful firewall applications, resp., MOCS performs equally well to Kuai with respect to scaling up.
4.2 Model Expressivity
The proposed model is significantly more expressive compared to Kuai as it
allows for more asynchronous concurrency. To begin with, in MOCS, controller
messages sent before a barrier request message can be interleaved with all other
enabled actions, other than the control messages sent after the barrier. By contrast, Kuai always flushes all control messages until the last barrier in one go,
masking a large number of interleavings and, potentially, buggy behaviour. Next,
in MOCS _nomatch,_ _ctrl_ and _fwd_ can be interleaved with other actions. In Kuai,
it is enforced a mutual exclusion concurrency control policy through the _wait_ semaphore: whenever a _nomatch_ occurs the mutex is locked and it is unlocked by
the _fwd_ action of the thread _nomatch-ctrl-fwd_ which refers to the same packet;
all other threads are forced to wait. Moreover, MOCS does not impose any limit
on the size of the _rq_ queue, in contrast to Kuai where only one packet can exist
in it. In addition, Kuai does not support notifications from the data plane to
the controller for completed operations as it does not support reply messages
and as a result any bug related to the fact that the controller is not synced to
data-plane state changes is hidden. <sup>8</sup> Also, our specification language for states is
more expressive than Kuai’s, as we can use any property in LTL without “next”,
whereas Kuai only uses invariants with a single outermost �.
The MOCS extensions, however, are conservative with respect to Kuai, that
is we have the following theorem (without proof, which is straightforward):
8 There are further small extensions; for instance, in MOCS the controller can send
multiple _PacketOut_ messages (as OpenFlow prescribes).
Theorem 3 (MOCS Conservativity). _Let_ _M_ p _λ,_ cpq = p _S, A, �→, s_ 0 _, AP, L_ q
_and_ _M_ <sup>_K_</sup> p _λ,_ cpq <sup>=</sup> <sup>p</sup> <sup>_SK, AK, �→K_</sup> <sup>_, s_</sup> <sup>0</sup> <sup>_, AP, L_</sup> <sup>q</sup> <sup>_the_</sup> <sup>_original_</sup> <sup>_SDN_</sup> <sup>_models_</sup> <sup>_of_</sup> <sup>_MOCS_</sup>
_and_ _M_ <sup>_K_</sup> p _λ,_ cpq <sup>=</sup> <sup>p</sup> <sup>_SK, AK, �→K_</sup> <sup>_, s_</sup> <sup>0</sup> <sup>_, AP, L_</sup> <sup>q</sup> <sup>_the_</sup> <sup>_original_</sup> <sup>_SDN_</sup> <sup>_models_</sup> <sup>_of_</sup> <sup>_MOCS_</sup>
_and_ _Kuai,_ _respectively,_ _using_ _the_ _same_ _topology_ _and_ _controller._ _Furthermore,_
_let_ _Traces_ p _M_ p _λ,_ cpqq _and_ _Traces_ p _M_ <sup>_K_</sup> p _λ,_ cpq <sup>q</sup> <sup>_denote_</sup> <sup>_the_</sup> <sup>_set_</sup> <sup>_of_</sup> <sup>_all_</sup> <sup>_initial_</sup> <sup>_traces_</sup> <sup>_in_</sup>
_let_ _Traces_ p _M_ p _λ,_ cpqq _and_ _Traces_ p _M_ <sup>_K_</sup> p _λ,_ cpq <sup>q</sup> <sup>_denote_</sup> <sup>_the_</sup> <sup>_set_</sup> <sup>_of_</sup> <sup>_all_</sup> <sup>_initial_</sup> <sup>_traces_</sup> <sup>_in_</sup>
_these_ _models,_ _respectively._ _Then,_ _Traces_ p _M_ <sup>_K_</sup> p _λ,_ cpq <sup>q Ď</sup> <sup>_Traces_</sup> <sup>p</sup> <sup>_M_</sup> <sup>p</sup> <sup>_λ,_</sup> <sup>cpqq</sup> <sup>_._</sup>
For each of the extensions mentioned above, we briefly describe an example
(controller program and safety property) that expresses a bug that is impossible
to occur in Kuai.
Control Message Reordering Bug. Let us consider a stateless firewall in
Fig. 7a (controller is not shown), which is supposed to block incoming ssh packets from reaching the server (see [32] Appendix B-CP1). Formally, the safety
property to be checked here is �p@ _pkt_ P _S.rcvq . ¬pkt._ sshq. Initially, flow tables
are empty. Switch _A_ sends a _PacketIn_ message to the controller when it receives
the first packet from the client (as a result of a _nomatch_ transition). The controller, in response to this request (and as a result of a _ctrl_ transition), sends the
following _FlowMod_ messages to switch _A_ ; rule r1 has the highest priority and
drops all ssh packets, rule r2 sends all packets from port 1 to port 2, and rule r3
sends all packets from port 2 to port 1. If the packet that triggered the transition
above is an ssh one, the controller drops it, otherwise, it instructs (through a
_PacketOut_ message) _A_ to forward the packet to _S_ . A bug-free controller should
ensure that r1 is installed before any other rule, therefore it must send a barrier
request after the _FlowMod_ message that contains r1. If, by mistake, the _Flow-_
_Mod_ message for r2 is sent before the barrier request, _A_ may install r2 before r1,
which will result in violating the given property. MOCS is able to capture this
buggy behaviour as its semantics allows control messages prior to the barrier to
be processed in a interleaved manner.
Fig. 7. Two networks with (a) two switches, and (b) _n_ stateful firewall replicas
Wrong Nesting Level Bug. Consider a correct controller program that
enforces that server _S_ (Fig. 7a) is not accessible through ssh. Formally, the safety
property to be checked here is �p@ _pkt_ P _S.rcvq . ¬pkt._ sshq. For each incoming
_PacketIn_ message from switch _A_, it checks if the enclosed packet is an ssh one
and destined to _S_ . If not, it sends a _PacketOut_ message instructing _A_ to forward
the packet to _S_ . It also sends a _FlowMod_ message to _A_ with a rule that allows
packets of the same protocol (not ssh) to reach _S_ . In the opposite case (ssh), it
checks (a Boolean flag) whether it had previously sent drop rules for ssh packets
to the switches. If not, it sets flag to true, sends a _FlowMod_ message with a rule
<sup>_K_</sup> p _λ,_ cpq <sup>q Ď</sup> <sup>_Traces_</sup> <sup>p</sup> <sup>_M_</sup> <sup>p</sup> <sup>_λ,_</sup> <sup>cpqq</sup> <sup>_._</sup>
that drops ssh packets to _A_ and drops the packet. Note that this inner block
does not have an else statement.
A fairly common error is to write a statement at the wrong nesting level ([32]
Appendix B-CP4). Such a mistake can be built into the above program by nesting
the outer else branch in the inner if block, such that it is executed any time
an ssh-packet is encountered but the ssh drop-rule has already been installed
(i.e. flag f is true). Now, the ssh drop rule, once installed in switch _A_, disables
immediately a potential _nomatch_ p _A, p_ q with _p._ ssh = _true_ that would have sent
packet _p_ to the controller, but if it has not yet been installed, a second incoming
ssh packet would lead to the execution of the else statement of the inner branch.
This would violate the property defined above, as _p_ will be forwarded to _S_ <sup>9</sup> .
MOCS can uncover this bug because of the correct modelling of the controller
request queue and the asynchrony between the concurrent executions of control
messages sent before a barrier. Otherwise, the second packet that triggers the
execution of the wrong branch would not have appeared in the buffer before
the first one had been dealt with by the controller. Furthermore, if all rules in
messages up to a barrier were installed synchronously, the second packet would
be dealt with correctly, so no bug could occur.
Inconsistent Update Bug. OpenFlow’s barrier and barrier reply mechanisms
allow for updating multiple network switches in a way that enables _consistent_
_packet_ _processing_, i.e., a packet cannot see a partially updated network where
only a subset of switches have changed their forwarding policy in response to
this packet (or any other event), while others have not done so. MOCS is expressive enough to capture this behaviour and related bugs. In the topology shown
in Fig. 7a, let us assume that, by default, switch _B_ drops all packets destined
to _S_ . Any attempt to reach _S_ through _A_ are examined separately by the controller and, when granted access, a relevant rule is installed at both switches
(e.g. allowing all packets from _C_ destined to _S_ for given source and destination
ports). Updates must be consistent, therefore the packet cannot be forwarded
by _A_ and dropped by _B_ . Both switches must have the new rules in place, before
the packet is forwarded. To do so, the controller, ([32] Appendix B-CP5), upon
receiving a _PacketIn_ message from the client’s switch, sends the relevant rule to
switch _B_ ( _FlowMod_ ) along with respective barrier ( _BarrierReq_ ) and temporarily stores the packet that triggered this update. Only after receiving _BarrierRes_
message from _B_, the controller will forward the previously stored packet back
to _A_ along with the relevant rule. This update is consistent and the packet is
guaranteed to reach _S_ . A (rather common) bug would be one where the controller installs the rules to both switches and at the same time forwards the
packet to _A_ . In this case, the packet may end up being dropped by _B_, if it
arrives and�gets processed before the relevant� rule is installed, and therefore the
invariant � [ _drop_ p _pkt, sw_ q] _. ¬_ p _pkt.dest_ = _S_ q, where [ _drop_ p _pkt, sw_ q] is a quanti
arrives and�gets processed before the relevant� rule is installed, and therefore the
invariant � [ _drop_ p _pkt, sw_ q] _. ¬_ p _pkt.dest_ = _S_ q, where [ _drop_ p _pkt, sw_ q] is a quanti
fier that binds dropped packets (see definition in [32] Appendix B-CP5), would
�gets processed before the relevant
[ _drop_ p _pkt, sw_ q] _. ¬_ p _pkt.dest_ = _S_ q
9 Here, we assume that the controller looks up a static forwarding table before sending
_PacketOut_ messages to switches.
be violated. For this example, it is crucial that MOCS supports barrier response
messages.
5 Conclusion
We have shown that an OpenFlow compliant SDN model, with the right optimisations, can be model checked to discover subtle real-world bugs. We proved
that MOCS can capture real-world bugs in a more complicated semantics without sacrificing performance.
But this is not the end of the line. One could automatically compute equivalence classes of packets that cover all behaviours (where we still computed
manually). To what extent the size of the topology can be restricted to find
bugs in a given controller is another interesting research question, as is the analysis of the number and length of interleavings necessary to detect certain bugs.
In our examples, all bugs were found in less than a second.
References
1. Al-Fares, M., Radhakrishnan, S., Raghavan, B.: Hedera: dynamic flow scheduling
for data center networks. In: NSDI (2010)
2. Al-Shaer, E., Al-Haj, S.: FlowChecker: configuration analysis and verification of
federated OpenFlow infrastructures. In: SafeConfig (2010)
3. Albert, E., G´omez-Zamalloa, M., Rubio, A., Sammartino, M., Silva, A.: SDNActors: modeling and verification of SDN programs. In: Havelund, K., Peleska, J.,
Roscoe, B., de Vink, E. (eds.) FM 2018. LNCS, vol. 10951, pp. 550–567. Springer,
Cham (2018)
4. Baier, C., Katoen, J.P.: Principles of Model Checking. The MIT Press, Cambridge
(2008)
5. Ball, T., Bjørner, N., Gember, A., et al.: VeriCon: towards verifying controller
programs in software-defined networks. In: PLDI (2014)
6. Behrmann, G., David, A., Larsen, K.G., et al.: Developing UPPAAL over 15 years.
In: Practice and Experience, Software (2011)
7. Braga, R., Mota, E., Passito, A.: Lightweight DDoS flooding attack detection using
NOX/OpenFlow. In: LCN (2010)
8. Canini, M., Venzano, D., Pereˇs´ıni, P., et al.: A NICE way to test OpenFlow applications. In: NSDI (2012)
9. Cimatti, A., et al.: NuSMV 2: an OpenSource tool for symbolic model checking.
In: Brinksma, E., Larsen, K.G. (eds.) CAV 2002. LNCS, vol. 2404, pp. 359–364.
Springer, Heidelberg (2002)
10. Curtis, A.R., Mogul, J.C., Tourrilhes, J., et al.: DevoFlow: scaling flow management
for high-performance networks. In: SIGCOMM (2011)
11. Dobrescu, M., Argyraki, K.: Software dataplane verification. In: Communications
of the ACM (2015)
12. El-Hassany, A., Tsankov, P., Vanbever, L., Vechev, M.: Network-wide configuration
synthesis. In: Majumdar, R., Kunˇcak, V. (eds.) CAV 2017. LNCS, vol. 10427, pp.
261–281. Springer, Cham (2017)
13. Fayaz, S.K., Sharma, T., Fogel, A., et al.: Efficient network reachability analysis
using a succinct control plane representation. In: OSDI (2016)
14. Fayaz, S.K., Yu, T., Tobioka, Y., et al.: BUZZ: testing context-dependent policies
in stateful networks. In: NSDI (2016)
15. Feamster, N., Rexford, J., Shenker, S., et al.: SDX: A Software-defined Internet
Exchange. Open Networking Summit (2013)
16. Feamster, N., Rexford, J., Zegura, E.: The road to SDN. SIGCOMM Comput.
Commun. Rev. (2014)
17. Fischer, M.J., Ladner, R.E.: Propositional dynamic logic of regular programs. J.
Comput. Syst. Sci. 18, 194–211 (1979)
18. Fogel, A., Fung, S., Angeles, L., et al.: A general approach to network configuration
analysis. In: NSDI (2015)
19. Handigol, N., Seetharaman, S., Flajslik, M., et al.: Plug-n-Serve: load-balancing
web traffic using OpenFlow. In: SIGCOMM (2009)
20. Havelund, K., Pressburger, T.: Model checking JAVA programs using JAVA
PathFinder. STTT 2, 366–381 (2000)
21. Holzmann, G.J.: The model checker SPIN. IEEE Trans. Softw. Eng. 23, 279–295
(1997)
22. Holzmann, G.J., Peled, D.: An improvement in formal verification. In: Hogrefe D.,
Leue S. (eds) Formal Description Techniques VII. IAICT, pp. 197–211. Springer,
Boston, MA (1995)
23. Horn, A., Kheradmand, A., Prasad, M.R.: Delta-net: real-time network verification
using atoms. In: NSDI (2017)
24. Hu, H., Ahn, G.J., Han, W., et al.: Towards a reliable SDN firewall. In: ONS (2014)
25. Jackson, D.: Alloy: a lightweight object modelling notation. ACM Trans. Softw.
Eng. Methodol. 11, 256–290 (2002)
26. Jafarian, J.H., Al-Shaer, E., Duan, Q.: OpenFlow random host mutation: transparent moving target defense using software defined networking. In: HotSDN (2012)
27. Jain, S., Zhu, M., Zolla, J., et al.: B4: experience with a globally-deployed software
defined WAN. In: SIGCOMM (2013)
28. Jia, Y.: NetSMC: a symbolic model checker for stateful network verification. In:
NSDI (2020)
29. Kazemian, P., Chang, M., Zeng, H., et al.: Real time network policy checking using
header space analysis. In: NSDI (2013)
30. Kazemian, P., Varghese, G., McKeown, N.: Header space analysis: static checking
for networks. In: NSDI (2012)
31. Khurshid, A., Zou, X., Zhou, W., et al.: VeriFlow: verifying network-wide invariants
in real time. In: NSDI (2013)
32. Klimis, V., Parisis, G., Reus, B.: Towards model checking real-world softwaredefined networks (version with appendix). preprint [arXiv:2004.11988](http://arxiv.org/abs/2004.11988) (2020)
33. Li, Y., Yin, X., Wang, Z., et al.: A survey on network verification and testing with
formal methods: approaches and challenges. IEEE Surv. Tutorials 21, 940–969
(2019)
34. Mai, H., Khurshid, A., Agarwal, R., et al.: Debugging the data plane with anteater.
In: SIGCOMM (2011)
35. Majumdar, R., Deep Tetali, S., Wang, Z.: Kuai: a model checker for softwaredefined networks. In: FMCAD (2014)
36. McClurg, J., Hojjat, H., Cern´y, <sup>ˇ</sup> P., et al.: Efficient synthesis of network updates.
In: PLDI (2015)
37. McKeown, N., Anderson, T., Balakrishnan, H., et al.: OpenFlow: enabling innovation in campus networks. SIGCOMM Comput. Commun. Rev. 38, 69–74 (2008)
38. Patel, P., Bansal, D., Yuan, L., et al.: Ananta: cloud scale load balancing. SIGCOMM 43, 207–218 (2013)
39. Peled, D.: All from one, one for all: on model checking using representatives. In:
Courcoubetis, C. (ed.) CAV 1993. LNCS, vol. 697, pp. 409–423. Springer, Heidelberg (1993)
40. Plotkin, G.D., Bjørner, N., Lopes, N.P., et al.: Scaling network verification using
symmetry and surgery. In: POPL (2016)
41. Pnueli, A., Xu, J., Zuck, L.: Liveness with (0,1, 8)- counter abstraction. In:
Brinksma, E., Larsen, K.G. (eds.) CAV 2002. LNCS, vol. 2404, pp. 107–122.
Springer, Heidelberg (2002)
42. Pratt, V.R.: Semantical considerations on Floyd-Hoare logic. In: FOCS (1976)
43. Sethi, D., Narayana, S., Malik, S.: Abstractions for model checking SDN controllers.
In: FMCAD (2013)
44. Shenker, S., Casado, M., Koponen, T., et al.: The future of networking, and the
past of protocols. In: ONS (2011). [https://tinyurl.com/yxnuxobt](https://tinyurl.com/yxnuxobt)
45. Son, S., Shin, S., Yegneswaran, V., et al.: Model checking invariant security properties in OpenFlow. In: IEEE (2013)
46. Stoenescu, R., Popovici, M., Negreanu, L., et al.: SymNet: scalable symbolic execution for modern networks. In: SIGCOMM (2016)
47. Varghese, G.: Vision for network design automation and network verification. In:
NetPL (Talk) (2018). [https://tinyurl.com/y2cnhvhf](https://tinyurl.com/y2cnhvhf)
48. Yang, H., Lam, S.S.: Real-time verification of network properties using atomic
predicates. IEEE/ACM Trans. Network. 24, 887–900 (2016)
49. Zeng, H., Kazemian, P., Varghese, G., et al.: A survey on network troubleshooting.
Technical report TR12-HPNG-061012, Stanford University (2012)
50. Zeng, H., Zhang, S., Ye, F., et al.: Libra: divide and conquer to verify forwarding
tables in huge networks. In: NSDI (2014)
51. Zhang, S., Malik, S.: SAT based verification of network data planes. In: Van Hung,
D., Ogawa, M. (eds.) ATVA 2013. LNCS, vol. 8172, pp. 496–505. Springer, Cham
(2013)
Open Access This chapter is licensed under the terms of the Creative Commons
Attribution 4.0 International License [(http://creativecommons.org/licenses/by/4.0/),](http://creativecommons.org/licenses/by/4.0/)
which permits use, sharing, adaptation, distribution and reproduction in any medium
or format, as long as you give appropriate credit to the original author(s) and the
source, provide a link to the Creative Commons license and indicate if changes were
made.
The images or other third party material in this chapter are included in the
chapter’s Creative Commons license, unless indicated otherwise in a credit line to the
material. If material is not included in the chapter’s Creative Commons license and
your intended use is not permitted by statutory regulation or exceeds the permitted
use, you will need to obtain permission directly from the copyright holder.
섹션 본문
섹션 본문이 없습니다.
참고문헌 39건
- Real time network policy checking using header space analysis 2013
- A general approach to network configuration analysis Networked Systems Design and Implementation · 2015
- Libra: divide and conquer to verify forwarding tables in huge networks Networked Systems Design and Implementation · 2014 10.5555/2616448.2616457
- NuSMV 2: An OpenSource Tool for Symbolic Model Checking Lecture notes in computer science · Springer Science+Business Media · 2002 10.1007/3-540-45657-0_29
- All from one, one for all: on model checking using representatives Lecture notes in computer science · Springer Science+Business Media · 1993 10.1007/3-540-56922-7_34
- SAT Based Verification of Network Data Planes Lecture notes in computer science · Springer Science+Business Media · 2013 10.1007/978-3-319-02444-8_43
- FlowChecker 2010 10.1145/1866898.1866905
- Abstractions for model checking SDN controllers Formal Methods in Computer-Aided Design · 2013 10.1109/fmcad.2013.6679403
- Openflow random host mutation 2012 10.1145/2342441.2342467
- Model checking invariant security properties in OpenFlow 2013 10.1109/icc.2013.6654813
- Developing U<scp>PPAAL</scp> over 15 years Software Practice and Experience · Wiley · 2011 10.1002/spe.1006
- Model checking JAVA programs using JAVA PathFinder International Journal on Software Tools for Technology Transfer · Springer Science+Business Media · 2000 10.1007/s100090050043
- Software dataplane verification Communications of the ACM · Association for Computing Machinery · 2015 10.1145/2823400
- Efficient synthesis of network updates 2015 10.1145/2737924.2737980
- Alloy ACM Transactions on Software Engineering and Methodology · Association for Computing Machinery · 2002 10.1145/505145.505149
- Semantical consideration on floyo-hoare logic 1976 10.1109/sfcs.1976.27
- Propositional dynamic logic of regular programs Journal of Computer and System Sciences · Elsevier BV · 1979 10.1016/0022-0000(79)90046-1
- The road to SDN ACM SIGCOMM Computer Communication Review · Association for Computing Machinery · 2014 10.1145/2602204.2602219
- The model checker SPIN IEEE Transactions on Software Engineering · IEEE Computer Society · 1997 10.1109/32.588521
- Debugging the data plane with anteater 2011 10.1145/2018436.2018470
- DevoFlow 2011 10.1145/2018436.2018466
- VeriFlow 2012 10.1145/2342441.2342452
- B4 2013 10.1145/2486001.2486019
- Liveness with (0,1, ∞)- Counter Abstraction Lecture notes in computer science · Springer Science+Business Media · 2002 10.1007/3-540-45657-0_9
- VeriCon 2014 10.1145/2594291.2594317
- OpenFlow ACM SIGCOMM Computer Communication Review · Association for Computing Machinery · 2008 10.1145/1355734.1355746
- Lightweight DDoS flooding attack detection using NOX/OpenFlow 2010 10.1109/lcn.2010.5735752
- An Improvement in Formal Verification IFIP advances in information and communication technology · Springer Science+Business Media · 1995 10.1007/978-0-387-34878-0_13
- Scaling network verification using symmetry and surgery 2016 10.1145/2837614.2837657
- BUZZ: testing context-dependent policies in stateful networks Networked Systems Design and Implementation · 2016
- Real-Time Verification of Network Properties Using Atomic Predicates IEEE/ACM Transactions on Networking · Institute of Electrical and Electronics Engineers · 2015 10.1109/tnet.2015.2398197
- SymNet 2016 10.1145/2934872.2934881
- Network-Wide Configuration Synthesis Lecture notes in computer science · Springer Science+Business Media · 2017 10.1007/978-3-319-63390-9_14
- Efficient network reachability analysis using a succinct control plane representation 2016 10.5555/3026877.3026895
- SDN-Actors: Modeling and Verification of SDN Programs Lecture notes in computer science · Springer Science+Business Media · 2018 10.1007/978-3-319-95582-7_33
- A Survey on Network Verification and Testing With Formal Methods: Approaches and Challenges IEEE Communications Surveys & Tutorials · Institute of Electrical and Electronics Engineers · 2018 10.1109/comst.2018.2868050
- Towards model checking real-world software-defined networks Sussex Research Online (University of Sussex) · University of Sussex · 2020
- Ananta ACM SIGCOMM Computer Communication Review · Association for Computing Machinery · 2013 10.1145/2534169.2486026
- Kuai: A model checker for software-defined networks 2014 10.1109/fmcad.2014.6987609