Home > Articles > Cisco > CCNP Security

Quality of Service (QoS) on the Cisco ASA

Your Cisco Adaptive Security Appliance (ASA) is a key ingredient in your modern Cisco network infrastructure. But does this important device represent a stumbling block when it comes to your Quality of Service implementation? This article explores this question. It provides a valuable review of QoS in general, and then details the exact QoS mechanisms that are currently supported on the Cisco ASA. These capabilities include classification, congestion management, traffic shaping, and traffic policing.
Like this article? We recommend

Students tend to have a difficult time understanding Quality of Service where it is most often covered in Cisco certification—the Routing and Switching and Voice disciplines. But now, QoS is so important to networks, that we must also master it in Security, Wireless, Data Center, and just about every major area of Cisco discipline. In this article, we will examine the Quality of Service capabilities that exist on the Cisco Adaptive Security Appliance (ASA).

Cisco made sure to integrate some much needed features on the next-generation firewall device, and it is no surprise. These features are not only critical to understand and potentially implement in your production networks, but they are also listed as potential areas of testing in the FIREWALL portion of the Cisco Certified Network Professional (CCNP) Security track.

A QoS Refresher

There are three overall, broad-brushed approaches to QoS that an organization can employ. The first is called Best Effort, and in this approach, more bandwidth is provided to each link of the network than can possibly be used. This over-provisioning of bandwidth results in a lack of contention for network bandwidth resources and allows for the default queuing mechanisms of the devices to be sufficient. Typically, Cisco devices (including the ASA) will engage in a First-In First-Out (FIFO) approach to traffic under the default arrangement. This works perfectly well, if there is an overabundance of network bandwidth.

The Best Effort approach sure sounds wonderful in theory, but it breaks down when organizations look at the recurring costs associated with over-provisioning the bandwidth everywhere. The first major overall approach to QoS that did not involve Best Effort was called Integrated Services (IntServ). Under this approach, the Resource Reservation Protocol (RSVP) is used to have devices signal ahead into the network regarding information flows that will need certain levels of bandwidth reserved. You can see why this approach was nicknamed “hard QoS” by many network engineers.

The issue with the IntServ approach is the fact that this model just does not scale well. Imagine the difficulty one might have in verifying all devices in the corporate network are using RSVP correctly; now expand this out to other networks that the corporate network interacts with. It might be impossible to provide the end-to-end QoS needs using this Integrated Services approach. Also, consider the overhead placed on the network from the RSVP processes alone. It is easy to see why a new, overall model for QoS was needed.

The Differentiated Services (DiffServ) approach to QoS seeks to address the concerns of scalability and the achievement of true end-to-end QoS. Unfortunately, the approach is very complex consisting of many different functional categories. For example, traffic might be first classified, and then marked with a service designation. Then, traffic might be policed or shaped as it is sent on to the next hop in the network. There, the traffic might be queued using a sophisticated queueing algorithm, and sent to the next hop where it might be fragmented and interleaved between other data packets. The official list of functions found under the DiffServ approach is listed for you below. You should note that the Cisco ASA can indeed support several tools within these categories:

  • Classification
  • Marking
  • Congestion Avoidance
  • Congestion Management
  • Policing
  • Shaping
  • Traffic Conditioning

QoS Mechanisms on the Cisco ASA

The ASA supports several of the key tools found in the Differentiated Services approach. Specifically, the ASA can do the following:

  • Classification
  • Congestion Management—Low Latency Queueing (LLQ)
  • Policing
  • Shaping

Classification on the Cisco ASA

While the ASA cannot mark packets for special treatment in the network, it does preserve existing markings, and it can classify traffic based on these QoS markings. Traffic classification on the Cisco ASA is accomplished with class-maps. This is consistent with how traffic classification is accomplished on Cisco’s routers and switches in the network. In the following example, the ASA detects traffic that is marked with a Differentiated Services Code Point (DSCP) marking of Expedited Forwarding (EF). This traffic is typically Voice over IP (VoIP) traffic and the network is programmed to provide it with the best possible service:

ciscoasa(config)# class-map CM_VOICE ciscoasa(config-cmap)# match dscp ef

Remember, with classification, the Cisco ASA will automatically create a class-default class-map. This structure is used to classify all traffic passing through the device that does not fall into one of your user-created class-maps. This is very important on the ASA, since some of the QoS mechanisms only work against this unclassified traffic.

Congestion Management—Low Latency Queuing (LLQ) on the Cisco ASA

LLQ priority queuing on the Cisco ASA is very important because it allows you prioritize certain traffic flows (like voice and video) and send this traffic through interfaces in advance of less important traffic forms. The ASA supports two types of priority queuing. The first is standard priority queuing. Under this approach, the ASA uses an LLQ priority queue on an interface for the traffic that you classify as important, and the device takes all other traffic and places it in a “best effort” queue.

The second type that is available is called hierarchical priority queuing. You use this approach on interfaces where you also need to use traffic shaping. Thanks to the hierarchical priority queuing capability, a subset of the shaped traffic can be prioritized.

Here is an example of the standard priority queuing approach:

ciscoasa(config)# access-list AL_TCPTRAFFIC permit tcp any any
ciscoasa(config)# class-map CM_TCPTRAFFIC
ciscoasa(config-cmap)# match access-list AL_TCPTRAFFIC
ciscoasa(config-cmap)# match dscp ef
ciscoasa(config)# policy-map PM_LLQ
ciscoasa(config-pmap)# class CM_TCPTRAFFIC
ciscoasa(config-pmap-c)# priority
ciscoasa(config-pmap-c)# service-policy PM_LLQ global

This configuration not only demonstrates the LLQ approach on the Cisco ASA, but it also serves to illustrate how the QoS configuration on the ASA follows the original Modular Quality of Service Command Line Interface (MQC) that was invented for routers and multi-layer switches when Class-based Weighted Fair Queuing (CB-WFQ) was invented. Notice the configuration follows the classic three step approach. Class-maps classify the traffic, a policy-map dictates the QoS treatment for the class(es), and service-policy indicates the placement of the QoS policy. Here in our example, the policy applies globally on the device, but keep in mind that specific interfaces can be referenced for more specific policies.

Policing

Policing allows us to ensure that no traffic exceeds a maximum rate that we can define on the Cisco ASA. This is extremely beneficial in networks where bandwidth is a precious and scarce commodity, because it can prevent various types of network traffic from monopolizing the available resources on an interface. With policing, when traffic exceeds the maximum rate you have defined, the ASA drops the excess traffic. With policing, you can also define the largest single burst of traffic permitted on the ASA interface(s).

Here is an example of policing. Notice that we are not showing the class-map definition step for brevity:

ciscoasa(config)# policy-map PM_POLICE
ciscoasa(config-pmap)# class CM_SAMPLE
ciscoasa(config-pmap-c)# police output 56000 10500
ciscoasa(config-pmap-c)# service-policy PM_POLICE interface outside

Here we can see the maximum rate for traffic of the CM_SAMPLE class is 56,000 bits/second and a maximum burst size is configured of 10,500 bytes per second. I always recommend the use of context sensitive help when configuring such parameters so you can ensure the exact measurement of rate in use for the QoS feature.

Shaping

Traffic shaping is used to control the rate of at which a Cisco ASA interface sends traffic. The configuration is for all traffic on an interface. Therefore, the class-default class-map is used. Unlike policing, the Cisco ASA does not drop excess traffic, but attempts to buffer it for sending in the next time interval.

Here is an example of traffic shaping on the Cisco ASA. Once again, the class-map configuration is omitted:

ciscoasa(config-pmap-c)# policy-map PM_SHAPING
ciscoasa(config-pmap)# class class-default
ciscoasa(config-pmap-c)# shape average 2000000 16000
ciscoasa(config-pmap-c)# service-policy PM_SHAPING interface outside

Conclusion

To keep pace with the demands of the network, more and more Differentiated Services tools have made their way to the Cisco ASA. Whether it is to prioritize certain traffic forms, or limit the rate of others, the Cisco ASA continues to become more QoS aware to ensure critical service levels to important traffic forms. This article demonstrated the capabilities of classification, congestion management, and shaping and policing that exist on the ASA as of the time of this writing.

Pearson IT Certification Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Pearson IT Certification and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about Pearson IT Certification products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites; develop new products and services; conduct educational research; and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by Adobe Press. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.pearsonitcertification.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020