cc/td/doc/product/rtrmgmt/cw2000/fam_prod/acl_mgr
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

Optimizing ACLs

Optimizing ACLs

These topics describe optimization and how you can optimize your ACLs for better performance:

What Are the ACL Optimizer and Hits Optimizer?

When an ACL is used on one or more interfaces in a network device, network traffic performance through the device can be degraded for the following reasons:

To safeguard against problems, the ACL Optimizer minimizes the number of ACEs that must be compared, and the ACL Hits Optimizer arranges ACEs in an order in which the most frequent conditions are examined first.

What Is the ACL Optimizer?

The goal of the ACL Optimizer is to minimize the number of ACEs in an ACL. It accomplishes this by:

What Is the ACL Hits Optimizer?

The goal of the ACL Hits Optimizer is to place the most frequently "hit" ACEs ahead of the less frequently "hit" ACEs. A "hit" occurs when an ACE statement matches a network packet; IOS tracks the number of times a statement is hit. ACL Manager reorders the ACE accordingly, as follows:
Original ACEs (# Hits) Optimized ACEs

permit ip from host 205.178.18.5 (300)
deny ip from host 205.178.18.100 (500)

deny ip from host 205.178.18.100
permit ip from host 205.178.18.5

Reordering ACEs is performed only if the new order does not change ACL semantics. For example, ACL Manager would not reorder ACEs in the following manner:
Original ACEs (# Hits) Incorrectly Reordered ACEs

deny ip from host 205.178.18.5 (300)
permit ip from 205.178.18.0/0.0.0.255 (500)

permit ip from 205.178.18.0/0.0.0.255
deny ip from host 205.178.18.5

ACL Manager would not perform this reorder because doing so would change the ACL semantics, which were to deny packets from host 205.178.18.5 and allow them from the rest of the subnet.

Using the ACL Optimizer

Use the ACL Optimizer to minimize the number of ACEs in an ACL and improve router performance.

Procedure

Step 1 From the ACL Manager main window, select the ACL to optimize. In Figure 9-1, ACL 7 is selected.


Figure 9-1: ACL to Be Optimized

Step 2 Select Optimizer from the ACL pop-up window. The Optimizer completes optimization and a high-level report is displayed (see Figure 9-3).


Figure 9-2: ACL Optimizer

Step 3 Click Details to view more information (see Figure 9-3).


Figure 9-3: ACL Manager Optimizer - Details

Step 4 If you are satisfied with the optimization, click Done to return to the previous display.

Step 5 Click Apply to apply the optimization.

Using the ACL Hits Optimizer

Use the ACL Hits Optimizer to place the most frequently "hit" ACEs ahead of the less frequently "hit" ACEs, improving network traffic throughput.

When you create a new ACL and initiate logging, you should reset the hit optimizer counter to zero.

Procedure

Step 1 From the ACL Manager main window, select the ACL to optimize. In Figure 9-4, ACL 100 is selected.


Figure 9-4: ACL to be Hit Optimized

Step 2 Right-click and select Hits Optimizer. The Hits Optimizer completes optimization and a high-level report is displayed (see Figure 9-5).


Figure 9-5: Hits Optimizer

Step 3 Click Details to view more information (see Figure 9-6).


Figure 9-6: Hits Optimizer - Details

Step 4 If you are satisfied with the optimization, click Done to return to the previous display.

Step 5 Click Apply to apply the optimization.

Resetting Hit Counters

You can reset the hit counters to zero from Essentials.

Procedure

Step 1 From Essentials, select Admin > ACL Management > Reset Hit Counter.

Step 2 Select All Devices, then select those devices for which you want the hit counter reset to zero.

Step 3 Click Finish.


hometocprevnextglossaryfeedbacksearchhelp
Posted: Fri Oct 1 12:17:09 PDT 1999
Copyright 1989-1999©Cisco Systems Inc.