TY - GEN
T1 - A Layered Formal Methods Approach to Answering Queue-related Queries
AU - Raghunathan, Divya
AU - Apostolaki, Maria
AU - Gupta, Aarti
N1 - Publisher Copyright:
© 2025 by The USENIX Association All Rights Reserved.
PY - 2025
Y1 - 2025
N2 - Queue dynamics introduce significant uncertainty in network management tasks such as debugging, performance monitoring, and analysis. Despite numerous queue-monitoring techniques, many networks today continue to collect only per-port packet counts (e.g., using SNMP). Although queue lengths are correlated with packet counts, deriving the precise correlation between them is very challenging since packet counts do not specify many quantities (e.g., packet arrival order) which affect queue lengths. This paper presents QUASI, a system that can answer many queue-related queries using only coarse-grained per-port packet counts. QUASI checks whether there exists a packet trace that is consistent with the packet counts and satisfies a query. To scale on large problem instances, QUASI relies on a layered approach and on a novel enqueue-rate abstraction, which is lossless for the class of queries that QUASI answers. The first layer employs a novel and efficient algorithm that generates a cover-set of abstract traces, constructs representative abstract traces from the cover-set, and efficiently checks each representative abstract trace by leveraging a known result on (0, 1)-matrix existence. The first layer guarantees no false negatives: if the first layer says “No”, there is no packet trace consistent with the observed packet counts that makes the query true. If it says “Yes”, further verification is needed, which the second layer resolves using an SMT solver. As a result, QUASI has no false positives and no false negatives. Our evaluations show that QUASI is up to 106X faster than state-of-the-art, and can answer non-trivial queries about queue metrics (e.g., queue length) using minute-granularity packet counts. Our work is the first step toward more practical formal performance analysis under given measurements.
AB - Queue dynamics introduce significant uncertainty in network management tasks such as debugging, performance monitoring, and analysis. Despite numerous queue-monitoring techniques, many networks today continue to collect only per-port packet counts (e.g., using SNMP). Although queue lengths are correlated with packet counts, deriving the precise correlation between them is very challenging since packet counts do not specify many quantities (e.g., packet arrival order) which affect queue lengths. This paper presents QUASI, a system that can answer many queue-related queries using only coarse-grained per-port packet counts. QUASI checks whether there exists a packet trace that is consistent with the packet counts and satisfies a query. To scale on large problem instances, QUASI relies on a layered approach and on a novel enqueue-rate abstraction, which is lossless for the class of queries that QUASI answers. The first layer employs a novel and efficient algorithm that generates a cover-set of abstract traces, constructs representative abstract traces from the cover-set, and efficiently checks each representative abstract trace by leveraging a known result on (0, 1)-matrix existence. The first layer guarantees no false negatives: if the first layer says “No”, there is no packet trace consistent with the observed packet counts that makes the query true. If it says “Yes”, further verification is needed, which the second layer resolves using an SMT solver. As a result, QUASI has no false positives and no false negatives. Our evaluations show that QUASI is up to 106X faster than state-of-the-art, and can answer non-trivial queries about queue metrics (e.g., queue length) using minute-granularity packet counts. Our work is the first step toward more practical formal performance analysis under given measurements.
UR - https://www.scopus.com/pages/publications/105006422187
UR - https://www.scopus.com/inward/citedby.url?scp=105006422187&partnerID=8YFLogxK
M3 - Conference contribution
AN - SCOPUS:105006422187
T3 - Proceedings of the 22nd USENIX Symposium on Networked Systems Design and Implementation, NSDI 2025
SP - 1289
EP - 1304
BT - Proceedings of the 22nd USENIX Symposium on Networked Systems Design and Implementation, NSDI 2025
PB - USENIX Association
T2 - 22nd USENIX Symposium on Networked Systems Design and Implementation, NSDI 2025
Y2 - 28 April 2025 through 30 April 2025
ER -