ACL rule complexity, matching, and the number of rules that are checked before servicing each request can affect performance. For this reason, rules and restrictive policies should be cautiously applied. Ordering rules, grouping rules, and using the correct variables to form rules are just a few techniques that ensure optimal performance when you implement secure policies for controlling access to NetCache services. These techniques include:
Note
See, Contains and contains-case operators for information about using these operators an as efficient alternative for matching URL substrings.
To achieve optimum efficiency, order the most frequently matched rules at the top of an ACL list. You can use the Web access log files to determine the frequency at which a match occurs.
Minimize the length of your ACL lists by collapsing many complex rules into one simple rule where possible. For example, the following ACL lists multiple directories that can be collapsed into one:
deny url-prefix http://www.company.com/monitoring
deny url-prefix http://www.company.com/administration
deny url-prefix http://www.company.com/security
The preceding ACL can be collapsed into the following simple rule:
deny server-domain company.com
Contiguous blocks are useful for optimizing performance when the same ACL action and variable occur in 10 or more rules. A contiguous list of at least 10 like rules is converted internally to a data structure that optimizes matching. For example:
allow client-ip 128.126.10.40
allow client-ip 128.126.10.41
allow client-ip 128.126.10.42
allow client-ip 128.126.10.43
allow client-ip 128.126.10.44
allow client-ip 128.126.10.45
allow client-ip 128.126.10.46
allow client-ip 128.126.10.47
allow client-ip 128.126.10.48
allow client-ip 128.126.10.49
allow client-ip 128.126.10.42
allow client-ip 128.126.10.43
deny any
NetCache supports contiguous blocks for the following variables:
server-name
client-name
url
client-ip
server-ip
You can optimize performance by ordering rules according to their requirements for system resources. Network Appliance recommends that you list rules by order of impact on system resources, beginning with the rules that have the least impact on resources and ending with the rules that have the greatest impact. The following table illustrates this guideline.
Absolute values are significantly more efficient if they are sorted by variable. Use contiguous blocks when the same variable occurs in 10 or more rules.
Copyright © 1994-2002, Network Appliance, Inc. All rights
reserved.
Part No. 210-00370
File: acls6.htm
Last updated: 11/12/02 11:23:23