Nepal: a path query language for communication networks

Theodore Johnson, Yaron Kanza, Laks V. S. Lakshmanan, Vladislav ShkapenyukNDA@SIGMOD 2016

TL;DR

This paper introduces Nepal, a novel query language designed to simplify querying complex, dynamic communication networks. By treating network paths as first-class citizens, Nepal allows for more intuitive and powerful path-based queries, crucial for tasks like troubleshooting in modern Software-Defined Networks (SDNs).

What Problem Does This Paper Address?

Modern communication networks, especially those leveraging Software-Defined Networking (SDN) and virtualized network functions (VNFs), are becoming incredibly complex and dynamic. Managing these networks requires understanding the intricate relationships between various entities like servers, virtual machines, and network functions, and crucially, the paths they use to communicate. Traditional graph query languages often struggle with this, being too cumbersome for network analysts and lacking robust support for time-travel queries (essential for diagnosing past issues). The paper highlights the need for a language that can efficiently discover and manipulate paths within these evolving network structures, especially for troubleshooting.

Methods

The core contribution of Nepal is its approach to querying network data. Instead of focusing solely on individual nodes or edges, Nepal treats paths as fundamental data types. This means queries operate on sets of paths, and the results are also sets of paths, enabling a powerful form of compositionality.

Key methodological aspects include:

  • Data Model: A layered graph model representing network entities and their relationships, inspired by TOSCA standards for cloud orchestration. This model supports hierarchical structures and temporal aspects.
  • Temporal Inventory: The system can store historical network states, allowing for "time-travel" queries to investigate past network configurations and connectivity.
  • Regular Pathway Expressions: Nepal uses a syntax similar to regular expressions but adapted for pathways, allowing users to define patterns for paths (e.g., sequences of nodes and edges with specific properties).
  • SQL-like Formulation: The query language is presented with an SQL-like syntax for ease of understanding and use, with keywords like RETRIEVE, FROM, and WHERE.
  • Pathway Algebra: A formal algebraic framework is proposed for evaluating Nepal queries, enabling systematic query processing and optimization.
  • Induced Pathways: A mechanism to "zoom in" or "zoom out" of pathways across different network layers, allowing users to see how a path in one layer is represented in another.

Datasets

Not discussed in the paper. The paper focuses on the language and data model, using illustrative examples based on a conceptual network diagram (Figure 1) rather than specific real-world datasets.

Key Insights and Ideas

  • Paths as First-Class Citizens: This is the central innovation. By making paths fundamental, Nepal achieves closure under composition, meaning the output of a query can be directly used as the input for another, simplifying complex analysis. This contrasts with languages where results are tuples or graphs that require complex transformations to be re-queried.
  • Simplifying Troubleshooting: Many network issues stem from connectivity problems. Nepal's path-centric approach directly addresses this by making it easy to find and analyze communication paths, which is often the most direct way to diagnose such problems.
  • Time-Travel Queries for Diagnosis: The ability to query past network states is crucial for understanding how and when problems arose. Nepal's temporal capabilities allow for historical analysis of network connectivity.
  • Layered Network Representation: The model's ability to represent networks in distinct layers (physical, virtualization, logical, service) and query across them is vital for understanding the complex dependencies in modern infrastructure.
  • Induced Pathways for Abstraction: The concept of induced pathways allows users to abstract or detail network paths across different layers, providing flexible views for analysis.

Key Results

The paper doesn't present quantitative results from running Nepal on large-scale benchmarks. Instead, it demonstrates the capabilities of Nepal through illustrative examples. The key "results" are qualitative:

  • Nepal can express complex path-finding queries that are cumbersome or impossible in existing graph query languages.
  • The language simplifies the extraction of information from dynamic, multi-layer network inventories.
  • Nepal's design facilitates troubleshooting by directly querying communication paths and historical network states.

Limitations and Future Work

  • Query Evaluation Efficiency: While an algebra is proposed, the paper acknowledges that efficient evaluation of Nepal queries, especially for very large networks, is an area for future work. Optimization techniques are mentioned but not fully detailed.
  • Temporal Query Optimization: Optimizing time-travel queries, particularly those involving time intervals and complex conditions, is noted as future work.
  • Real-world Deployment and Benchmarking: The paper focuses on the language design and conceptual framework. Demonstrating Nepal's performance and utility on real-world, large-scale network data would be a natural next step.
  • Completeness of Algebra: The paper mentions that the presented pathway algebra is a starting point, and further development might be needed for a full implementation.

Summary updated

BibTeX
@inproceedings{johnson2016nepal,
  author = {Theodore Johnson and Yaron Kanza and Laks V. S. Lakshmanan and Vladislav Shkapenyuk},
  title = {{Nepal: a path query language for communication networks}},
  booktitle = {NDA@SIGMOD},
  year = {2016},
  doi = {10.1145/2980523.2980530},
}
Figure