TY - GEN
T1 - Simulation-based analysis of network rules matching
AU - Nicol, David M.
N1 - Publisher Copyright:
© 2019 Association for Computing Machinery.
PY - 2019/5/29
Y1 - 2019/5/29
N2 - A common function in networking is to find “the best" match between a packet’s IP header and a list of matching rules, and to take some action based on the rule which is matched. This approach determines whether a packet transits a firewall or router and which interface is chosen for egress when it does, and whether a Network Address Translation transformation is applied. Considerable past research has optimized data structures and algorithms for rules-matching, under the operating assumption that with every specific application the best match is sought for a single IP flow, with a specified protocol, and specified source and destination IP and port numbers. This paper is motivated by a different scenario, in which we seek the simultaneous determination of the best matches for a bundle of flows. The flows are closely related as the bundle is a “contiguous" subset of the IP header space, meaning each flow draws in each dimension from the same range as other flows do in that same dimension. This specific problem arises in the design of tools that analyze the connectivity of networks. We consider here two algorithms for approaching this problem, which share the characteristic of generalizing the simulation of how devices typically classify a given flow. We study the behavior of these algorithms empirically, and find that the amortized cost of identifying the best matching rule in an ACL is typically measured in (at most) 10’s of micro-seconds on an ordinary laptop computer.
AB - A common function in networking is to find “the best" match between a packet’s IP header and a list of matching rules, and to take some action based on the rule which is matched. This approach determines whether a packet transits a firewall or router and which interface is chosen for egress when it does, and whether a Network Address Translation transformation is applied. Considerable past research has optimized data structures and algorithms for rules-matching, under the operating assumption that with every specific application the best match is sought for a single IP flow, with a specified protocol, and specified source and destination IP and port numbers. This paper is motivated by a different scenario, in which we seek the simultaneous determination of the best matches for a bundle of flows. The flows are closely related as the bundle is a “contiguous" subset of the IP header space, meaning each flow draws in each dimension from the same range as other flows do in that same dimension. This specific problem arises in the design of tools that analyze the connectivity of networks. We consider here two algorithms for approaching this problem, which share the characteristic of generalizing the simulation of how devices typically classify a given flow. We study the behavior of these algorithms empirically, and find that the amortized cost of identifying the best matching rule in an ACL is typically measured in (at most) 10’s of micro-seconds on an ordinary laptop computer.
UR - http://www.scopus.com/inward/record.url?scp=85067107344&partnerID=8YFLogxK
UR - http://www.scopus.com/inward/citedby.url?scp=85067107344&partnerID=8YFLogxK
U2 - 10.1145/3316480.3325519
DO - 10.1145/3316480.3325519
M3 - Conference contribution
AN - SCOPUS:85067107344
T3 - SIGSIM-PADS 2019 - Proceedings of the 2019 ACM SIGSIM Conference on Principles of Advanced Discrete Simulation
SP - 49
EP - 60
BT - SIGSIM-PADS 2019 - Proceedings of the 2019 ACM SIGSIM Conference on Principles of Advanced Discrete Simulation
PB - Association for Computing Machinery
T2 - 2019 ACM SIGSIM Conference on Principles of Advanced Discrete Simulation, SIGSIM-PADS 2019
Y2 - 3 June 2019 through 5 June 2019
ER -