Skip to main content
QUICK REVIEW

[Paper Review] Forwarding Tables Verification through Representative Header Sets

Yacine Boufkhad, Ricardo De La Paz|arXiv (Cornell University)|Jan 26, 2016
Software System Performance and ReliabilityComputer Science9 references4 citations
TL;DR

This paper proposes a polynomial-time method for forwarding table verification in SDN by computing representative header sets—minimal collections that capture all header classes matching the same rules. By leveraging weak completion and efficient set operations, it enables tractable detection of loops and black-holes, with correctness guarantees via proof labeling schemes, significantly improving over NP-hard alternatives.

ABSTRACT

Forwarding table verification consists in checking the distributed data-structure resulting from the forwarding tables of a network. A classical concern is the detection of loops. We study this problem in the context of software-defined networking (SDN) where forwarding rules can be arbitrary bitmasks (generalizing prefix matching) and where tables are updated by a centralized controller. Basic verification problems such as loop detection are NP-hard and most previous work solves them with heuristics or SAT solvers. We follow a different approach based on computing a representation of the header classes, i.e. the sets of headers that match the same rules. This representation consists in a collection of representative header sets, at least one for each class, and can be computed centrally in time which is polynomial in the number of classes. Classical verification tasks can then be trivially solved by checking each representative header set. In general, the number of header classes can increase exponentially with header length, but it remains polynomial in the number of rules in the practical case where rules are constituted with predefined fields where exact, prefix matching or range matching is applied in each field (e.g., IP/MAC addresses, TCP/UDP ports). We propose general techniques that work in polynomial time as long as the number of classes of headers is polynomial and that do not make specific assumptions about the structure of the sets associated to rules. The efficiency of our method rely on the fact that the data-structure representing rules allows efficient computation of intersection, cardinal and inclusion. Finally, we propose an algorithm to maintain such representation in presence of updates (i.e., rule insert/update/removal). We also provide a local distributed algorithm for checking the absence of black-holes and a proof labeling scheme for locally checking the absence of loops.

Motivation & Objective

  • To address the NP-hard nature of forwarding table verification in SDN, where arbitrary bitmasks and complex rule interactions make exhaustive header space analysis infeasible.
  • To develop a scalable verification framework that avoids exhaustive header scanning by focusing on equivalence classes of headers that trigger identical rule matches.
  • To enable efficient, centralized and distributed verification of critical network properties such as loop freedom and black-hole absence using header class representatives.
  • To provide a minimal, maintainable representation of rule behavior via weak completion, reducing redundancy compared to strong completion or SAT-based methods.

Proposed method

  • Computes a minimal representative header set collection via weak completion, ensuring every header class is represented by at least one set.
  • Uses efficient set operations—intersection, inclusion, and cardinality checks—on rule-defined header sets to compute and maintain the representative collection.
  • Employs a centralized algorithm to compute the representative header sets in polynomial time, assuming the number of header classes is polynomial.
  • Introduces incremental update algorithms to maintain the representative set collection under rule insertions, updates, and deletions.
  • Proposes a local distributed algorithm to verify the absence of black-holes by checking header set behavior at each node.
  • Designs a proof labeling scheme for loop detection based on distance labels, which is efficient under the MORE-SPECIFIC assumption (increasing rule specificity).

Experimental results

Research questions

  • RQ1Can header equivalence classes be represented efficiently enough to enable polynomial-time verification of forwarding tables in SDN?
  • RQ2How can a minimal and maintainable representation of header classes be computed and updated under dynamic rule changes?
  • RQ3Can the number of header classes remain polynomial in practice when rules use prefix or range matching on fixed fields?
  • RQ4Under what conditions can loop and black-hole detection be verified efficiently using local checks and labeling schemes?

Key findings

  • The number of header classes remains polynomial (O(n^d)) for n rules using prefix or range matching on d fixed fields, making verification tractable in practice.
  • The proposed method reduces verification complexity from NP-hard to polynomial time by focusing on representative header sets instead of all headers.
  • Weak completion provides a minimal representation of header classes that is sufficient for verifying loop and black-hole properties.
  • The method supports incremental updates to the representative header set collection, enabling dynamic network configuration verification.
  • Under the MORE-SPECIFIC assumption, a fully distributed verification of loop freedom becomes feasible using Bellman-Ford style distance labeling.
  • The approach outperforms SAT solvers and heuristics by avoiding exhaustive header space exploration and reducing redundancy in rule representations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.