several update operations,
op, are going to be done
over the ACL, these time results must be multiplied
by
op, since they are done in sequence.
However, ADT build times are very high,
compared with time needed for update operations
(ACL
allow
plus ACL
deny
times have been measured
here). Fortunately, ADTs can be instantiated only
once, and then be maintained. Thus, build time
should be taken as the start-up time, and needs to be
amortized. Our proposal begins to be faster than the
optimized trivial algorithm from 8-9 sequential
updates and up (for all ACL sizes). Thus, it is
possible to wait to 8-9 update operations or more
and execute them in a burst. Effectiveness of this
approach depends on ACL update frequency.
5 RELATED WORKS
Baboescu et al. (Baboescu, 2003) provide algorithms
to detect inconsistencies in router filters that are 40
times faster than
O(f
2
) the trivial one for the general
case of k selectors per rule. They also provide
modifications to its algorithms and data structures
for rule updates. It experimentally improves other
previous works of detection algorithms. However,
they preprocess the ACL and convert selector ranges
to prefixes (Srinivasan, 1998). The range to prefix
conversion technique could need to split a range in
several prefixes and thus the final number of rules
could increase over the original ACL. This kind of
conversion could be inefficient: in the worst case, a
range covering
w-bit port numbers may require 2(w-
1)
prefixes (Taylor, 2003). Furthermore, results are
given over a modified ACL.
Other research woks (Al-Shaer, 2004) (Pozo2,
2008) complemented the diagnosis process with a
characterization of the faults. However, minimal
diagnosis and characterization is NP.
6 CONCLUSIONS
In this paper we have showed a divide-and-conquer
process, ADTs, and algorithms, capable of solving
the inconsistency detection problem during an ACL
update operation in worst case linear complexity
divided by a big constant. The process is
O(1) in
best and average cases (no inconsistency found).
Experimental results that support our theoretical
complexity analysis have been provided.
ACKNOWLEDGEMENTS
This work has been partially funded by Spanish
Ministry of Science and Education project under
grant DPI2006-15476-C02-01, and by FEDER.
REFERENCES
Al-Shaer, E., Hamed, H. Modeling and Management of
Firewall Policies". IEEE eTransactions on Network
and Service Management (eTNSM) Vol.1, No.1, 2004.
Baboescu, F., Varguese, G. “Fast and Scalable Conflict
Detection for Packet Classifiers.” Elsevier Computers
Networks (42-6) (2003) 717-735.
Cormen, T., Leiserson, C., Rivest, R., Stein, C.
Introduction to Algorithms, McGraw-Hill, 2001.
Edelsbrunner, H. A new approach to rectangle
intersections, Part II. International Journal on
Computational Mathematics. Vol.13, pp. 221-229,
1983.
Fantacci, R., Maccari, L., Neira, P., Gasca, R. M.
“Efficient Packet Filtering in Wireless Ad Hoc
Networks”. IEEE Communications Magazine Vol.46,
No.2, 2008.
Pozo1, S., Ceballos, R., Gasca, R.M. "AFPL, An Abstract
Language Model for Firewall ACLs". 8
th
International
Conference on Computational Science and Its
Applications (ICCSA). Perugia, Italy. Springer-
Verlag, 2008.
Pozo2, S., Ceballos, R., Gasca, R.M. "Improving
Computational Complexity of the Inconsistency
Characterization Problem in Firewall Rule Sets".
International Conference on Security and
Cryptography (SECRYPT). Porto, Portugal. INSTICC
Press, 2008.
Pozo3, S., Ceballos, R., Gasca, R.M. "Fast Algorithms for
Local Inconsistency Detection in Firewall ACL
Updates". 1
st
International Workshop on
Dependability and Security in Complex and Critical
Information Systems (DEPEND). Cap Esterel, France.
IEEE Computer Society Press, 2008.
Srinivasan, V., Varguese, G, Suri, S., Waldvogel, M. “Fast
and Scalable Layer Four Switching.” Proceedings of
the ACM SIGCOMM conference on Applications,
Technologies, Architectures and Protocols for
Computer Communication, Vancouver, British
Columbia, Canada, ACM Press, 1998.
Taylor, David E. Survey and taxonomy of packet
classification techniques. ACM Computing Surveys,
Vol. 37, No. 3, 2005. Pages 238 – 275.
EFFICIENT DATA STRUCTURES FOR LOCAL INCONSISTENCY DETECTION IN FIREWALL ACL UPDATES
181