In order to understand QoS implementation, it is important to have an understanding of the three different QoS models and how they are applicable when designing and implementing a QoS solution. The three Quality of Service models are:
- Best Effort Delivery (Default)
- Integrated Services
- Differentiated Services
As the name implies, the Best-Effort (BE) model does not guarantee any level of service and instead internetwork devices simply make their ‘best effort’ to deliver packets as quickly as possible. The best-effort delivery model scales well, but provides no difference in service for different traffic classes. In other words, when this model is used (which is the default) voice, video, and data traffic are all treated as one and the same. This model requires no Quality of Service implementation within the internetwork and is not recommended.
Integrated Services (IntServ) performs admission control for each flow request. IntServ provides a way to deliver end-to-end QoS for real-time applications by explicitly managing network resources to provide QoS to specific user packet streams (flows). RFC 1633 defines two components to provide guarantees per flow: resource reservation and admission control. IntServ uses Resource Reservation Protocol (RSVP) to signal the internetworking devices about how much bandwidth and delay a particular flow requires. Intelligent queuing mechanisms can be used with RSVP to provide two kinds of services which are:
- Guaranteed Rate Service
- Controlled Load Service
Guaranteed rate service type allows applications to reserve bandwidth to meet their specific requirements. In Cisco IOS software, the guaranteed service rate can be provided using Weighted Fair Queuing (WFQ) in conjunction with RSVP. Controlled load service allows applications to have low delay and high throughput even during times of congestion. This service can be provided using RSVP and Weighted Random Early Detection (WRED). And finally, admission control is used to decide when a reservation request should be rejected.
NOTE: WFQ and WRED are described in additional detail later in this chapter.
The primary issue with IntServ is that is scales very poorly, especially when many sources are attempting to reserve end-to-end bandwidth for each of their particular flows.
Unlike IntServ, the DiffServ model requires no advance reservations and therefore scales very well. DiffServ defines the concept of service classes. DiffServ also allows each internetwork device to handle these packets on an individual (per hop) basis. This is referred to as per-hop behavior (PHB). Differentiated Services are applicable to Layer 3. Layer 2 frames use Class of Service (CoS) bits that are contained within the 802.1Q or ISL-encapsulated frame.
In addition to IP Precedence, DiffServ defines a new Differentiated Services Code Point (DSCP) field in the IP packet header by redefining the ToS byte and creating a replacement for the IP Precedence field with a new 6-bit field called the Differentiated Services (DS) field. The last 2 bits of the ToS byte can now be used to perform flow control, and are referred to as the Explicit Congestion Notification (ECN) bits.
DiffServ defines three sets of PHBs, which are the Class Selector (CS), Assured Forwarding (AF) and Expedited Forwarding (EF) PHBs. The Class Selectors are DSCP values that are compatible with IP Prec values. The Assured Forwarding (AF) PHB set is used for two functions: queuing and congestion avoidance. Queuing places the packets into the different software queues based on the QoS labels. The last PHB set is the Expedited Forwarding (EF) set. This uses a single DSCP value (EF) to represent it. EF packets are given premium service (above all other classes). This is the default value assigned to voice media packets in Cisco IP Telephony solutions.
NOTE: additional detailed information on the three QoS models described in this section can be found in the current SWITCH guide which is available online at www.howtonetwork.net.
LAN QoS Solutions for IP Telephony Implementations
The primary purpose of LAN QoS is buffer management. Switches require buffering to avoid buffer overflows. Buffer overflows occur when multiple ingress ports are contending for the same egress port. Catalyst switch QoS is primarily based on the Layer 2 markings that are contained within a frame, i.e. the Class of Service (CoS) value. However, it can also be based on the Layer 3 markings contained within a packet, i.e. the IP Precedence or DSCP values. IP Precedence and DSCP were described in the previous section. The CoS value is contained in the VLAN field for 802.1Q and ISL-encapsulated frames
On Cisco Catalyst switches, the configuration of a VVID configures the switch to send CDP packets to the Cisco IP phone instructing the phone to send voice traffic in 802.1Q frames, tagged with the specified VVID and a Layer 2 Class of Service (CoS) value of 5. However, it should be noted that simply configured a voice VLAN alone does not means that this automatically occurs. Instead, QoS must be manually enabled on the switch and the switch port(s) must be configured to trust incoming QoS markings.
In Cisco IOS Catalyst switches, QoS is enabled globally using the mls qos global configuration command. Following this, the mls qos trust interface configuration command must be used to configure the port to trust incoming CoS or DSCP markings. Alternatively, the switch port can simply be configured to trust frames / packets received from the attached Cisco IP phone. In addition to trusting packets / frames received from the phone, the Cisco IOS software also allows administrators to trust or re-mark frames / packets received from the device that is also attached to the IP phone using the switchport priority extend suite of commands.
LAN QoS solutions for IP Telephony integration are typically performed in the ingress direction when configuring Catalyst switches. Ingress Quality of Service mechanisms are applied to frames and packets received by the switch in the inbound direction. Catalyst switches support the following ingress QoS mechanisms:
- Traffic Classification
- Traffic Policing
- Marking
- Congestion Management and Avoidance
Classification is used to differentiate one stream of traffic from another so that different service levels can be applied to different streams of traffic. Frames can be classified based on the incoming CoS, DSCP or even based on Access Control List (ACL) configuration. When the switch receives a frame or packet with an already existing QoS value, it must decide whether or not to trust the received QoS value. This is determined using the port trust setting. Trust settings are configured at the trust boundary which is the perimeter of the network, such as the access port to which a workstation or IP Phone is connected. The traffic that is received from beyond the perimeter is considered untrusted unless it is explicitly trusted using the switchport priority extend trust interface configuration command on the switch. The trust boundary itself is configured using the mls qos trust [cos|device cisco-phone|dscp| ip-precedence] interface configuration command.
Policing is a process that is used to limit traffic to a prescribed rate. Policing is used to compare the ingress traffic rate to a configured policer. The policer is configured with a rate and a burst. The rate defines the amount of traffic that is sent per given interval. When that specified amount has been sent, no more traffic is sent for that given interval. The burst defines the amount of traffic that can be held in readiness for being sent. Traffic in excess of the burst can be either dropped or have its priority setting reduced.
Traffic that conforms to the policing configuration is considered in profile and will be forward, as configured, by the switch. However, traffic that does not conform to the policing configuration is considered out of profile. Out of profile traffic can either be dropped, or marked down, i.e. re-marked with a lower QoS value.
Marking involves setting QoS bits inside the Layer 2 or Layer 3 headers, which allows the other internetwork devices to classify based on the marked values. Marking is typically used in conjunction with traffic policing. For example, if the traffic is in profile, the switch will typically allow the packets to be passed through, i.e. will not change or reset the QoS settings in the packets. However, if the traffic is out of profile, the switch may be configured to mark down this traffic with a lower QoS value. However, marking can also be used in conjunction with classification. For example, you could issue the switchport priority extend cos 3 command to mark all frames / packets received from the device connected to the IP phone LAN port with a CoS value of 3, effectively classifying this traffic.
Congestion management and avoidance is comprised of three (3) elements which are queuing, dropping, and scheduling. Queuing is used to place packets into different software queues based on the QoS labels. After the traffic is classified and marked with QoS labels, it is assigned into different queues based on the QoS labels.
Once the packets have been placed into the appropriate queue based on their Quality of Service values, dropping is used to manage queues. Dropping provides drop priorities for different classes of traffic. Queues have drop thresholds which are used to indicate which packets can be dropped once the queue has filled beyond a certain threshold. After ingress packets are placed into the queue, a congestion avoidance mechanism will use a CoS-to-threshold map to determine what frames are eligible to be dropped when a threshold is breached. This prevents the queues from filling up.
Catalyst switches typically have two ingress queues, one of which is either a priority queue or can be configured as a priority queue. The ingress frames and packets received by the switch are placed in a queue based on the ingress (received) CoS value. Voice traffic, for example, that is received with CoS 5 or DSCP EF will be placed into the priority queue, while regular data traffic will be placed into the normal queue.
Scheduling refers to how the queues are serviced or emptied. If a priority queue is configured, it only makes sense that this be serviced (emptied) before the normal queue. In other words, the packets in the priority queue should be sent before the packets in the normal queue. Catalyst switches use Strict Round Robin (SRR) for ingress scheduling. SRR is beyond the scope of the TSHOOT exam and will not be described in any further detail in this chapter.
WAN QoS Solutions for IP Telephony Implementations
The primary purpose of WAN QoS mechanisms is to make better use of bandwidth. However, in converged networks, consideration should also be given to protecting voice traffic and ensuring that voice quality is not impacted by other traffic types. Voice quality problems are one of the most common issues experienced in converged networks. These problems are typically attributed to packet drops, queuing delays and link congestion. While implementing QoS will not guarantee that there will never be any VoIP quality issues, it does allow you to optimize voice quality in networks by protecting this type of traffic. In Cisco IOS software, routers can be configured to use strict priority queuing or Weighted Random Early Detection mechanisms when implementing VoIP QoS on the WAN.
Strict priority queuing can be accomplished with Class-Based Weighted Fair Queuing (CBWFQ) by using the IP RTP Priority, Frame Relay IP RTP Priority, or Low Latency Queuing (LLQ) features. The IP RTP Priority feature provides a strict priority queuing scheme for delay-sensitive data such as voice. Using this method, voice traffic is identified by its Real-Time Transport Protocol (RTP) port numbers and classified into a priority queue. The result is that voice is serviced as strict priority in preference to other non-voice traffic types.
The Cisco IOS Frame Relay IP RTP Priority feature is performs a similar function to the IP RTP Priority feature but is specific to Frame Relay. This feature provides a strict priority queuing scheme on a Frame Relay PVC / DLCI and is used in conjunction with Frame Relay map classes.
Low Latency Queuing (LLQ) provides strict priority queuing in conjunction with CBWFQ. LLQ configures the priority status for a class within CBWFQ, in which voice packets receive priority over all other traffic. This strict priority mechanism, like the others also described, reduces jitter in voice conversations, improving overall voice quality. It should be noted that of the strict priority mechanisms described, the Cisco Enterprise Solutions Engineering (ESE) group considers Low Latency Queuing (LLQ) as not only a recommendation but as best practice when implementing voice QoS solutions on the WAN.
Weighted Random Early Detection (WRED) is a queue management mechanism that provides differentiated performance characteristics for different classes of service. This allows for the preferential handling of voice traffic under congestion conditions. WRED drops lower-priority traffic more aggressively than higher-priority traffic as the interface’s output queue begins to become congested. In Cisco IOS software, WRED can be implemented in conjunction with Explicit Congestion Notification (ECN). The ECN bits are the last 2 bits of the ToS byte. These can now be used to perform flow control by allowing routers and end hosts to use this marking as a signal that the network is congested so as to slow down the sending of packets.
Configuring WAN QoS in Cisco IOS Software Routers
While LAN QoS configuration is described and illustrated in detail in the SWITCH guide, WAN QoS configuration has yet to be described or illustrated. While you are not required to go into detail on any advanced WAN QoS configurations, you should have a basic understanding of how to configure and verify the mechanisms described in the previous section.
In Cisco IOS software, the IP RTP Priority feature is configured under the WAN interface using theip rtp priority <lower bound UDP port number> <port range> <bandwidth> interface configuration command. When using this command, you can prioritize and allocate bandwidth to RTP UDP ports numbers for voice, video and whiteboard traffic using the ranges listed in Table 12-1:
| Application | Starting RTP UDP Port Number | Ending RTP UDP Port Number |
|---|---|---|
| Voice | 16,384 | 32,767 |
| Whiteboard | 32,768 | 49,151 |
| Video | 49,152 | 65,535 |
The following configuration example illustrates how to configure the IP RTP Priority feature for the entire voice RTP UDP port range while specifying a total maximum bandwidth of 512Kbps for this type of traffic. The configuration is applied under a WAN interface:
| R1(config)#interface serial 0/0 R1(config-if)#ip rtp priority 16384 16383 512 R1(config-if)#exit |
This configuration can be validated by looking at the router configuration. The Frame Relay IP RTP Priority feature is specified in a Frame Relay map class, which is then applied to one or more PVCs / DLCIs. The following configuration example illustrates how to configure a Frame Relay map class, enable the Frame Relay IP RTP Priority feature, and then apply the configuration to Frame Relay DLCI 100 which is configured under the router Serial0/0 interface:
| R2(config)#map-class frame-relay TSHOOT R2(config-map-class)#frame-relay ip rtp priority 16384 16383 512 R2(config-map-class)#exit R2(config)#interface serial 0/0 R2(config-if)#encapsulation frame-relay R2(config-if)#frame-relay interface-dlci 100 R2(config-fr-dlci)#class TSHOOT R2(config-fr-dlci)#exit |
Again, this configuration can be validated by checking the router configuration. LLQ, as was stated earlier in this chapter, is configured in conjunction with CBWFQ. CBWFQ is implemented using the Cisco IOS Modular QoS CLI (MQC). MQC configuration in Cisco IOS software requires three steps to be performed. These steps are listed and described below:
- Define a class map, which is used to identify the ‘interesting traffic’ using the class-map [match-any|match-all] <name> global configuration command. In class map configuration mode, match packets against an ACL, protocol, or other QoS parameters such as DSCP values, for example. To ensure successful matches, it is important that traffic is marked and classified and the network edge. The match-any and match-allkeywords allow you to specify whether to match any one of the parameters matched in the class-map (if more than one is specified) or match all parameters in the class map. Using the match-all keyword means that all specified conditions must be met for an actual match to be made
- Define a policy-map, which is used to determine what to do with the different class-maps once the traffic has been matched. The policy map can be used to implement LLQ (strict priority queuing), WRED, and other actions, such as re-marking packets before they are transmitted across the WAN. The policy-map is configured using the policy-map <name>global configuration command. In policy-map configuration mode, explicitly configured class-maps are matched using the class <class-map-name> command. The default class, which is used for all other traffic types that are not included in the explicitly configured class-maps is configured using the class class-default policy-map configuration command
- Apply the policy-map to interfaces, subinterfaces, PVCs, or DLCIs using the service-policy output <policy-map-name> configuration command. Although the policy-map can also be applied in the inbound direction, this configuration is beyond the scope of the TSHOOT exam and will not be discussed in this chapter
The following configuration example illustrates how to implement strict priority queuing (LLQ) in conjunction with CBWFQ on a router. The router is configured to match VoIP media traffic (RTP) and assign it to the priority queue using LLQ. This traffic is allocated 128K of the available bandwidth. This traffic is assigned a DSCP value of EF prior to being transmitted across the WAN. The router is also configured to match video traffic (RTP) and assigns this traffic at least 256K of the available bandwidth. This traffic is assigned a DSCP value of AF 41 prior to being transmitted across the WAN. All other traffic, i.e. the default class, is assigned a default DSCP value of 0 (default) prior to being transmitted across the WAN via Serial 0/0:
| R1(config)#class-map match-any TSHOOT-VOICE R1(config-cmap)#match protocol rtp audio R1(config-cmap)#exit R1(config)#class-map match-any TSHOOT-VIDEO R1(config-cmap)#match protocol rtp video R1(config-cmap)#exit R1(config)#policy-map TSHOOT-MULTIMEDIA-QOS R1(config-pmap)#class TSHOOT-VOICE R1(config-pmap-c)#priority 128 R1(config-pmap-c)#set ip dscp ef R1(config-pmap-c)#exit R1(config-pmap)#class TSHOOT-VIDEO R1(config-pmap-c)#bandwidth 256 R1(config-pmap-c)#set ip dscp af41 R1(config-pmap-c)#exit R1(config-pmap)#class class-default R1(config-pmap-c)#set ip dscp default R1(config-pmap-c)#exit R1(config-pmap)#exit R1(config)#interface serial 0/0 R1(config-if)#service-policy output TSHOOT-MULTIMEDIA-QOS R1(config-if)#exit |
Following this configuration, you can use the show policy-map interface <name> command to view matches against the applied configuration as illustrated below:
| R1#show policy-map interface serial 0/0 Serial0/0Service-policy output: TSHOOT-MULTIMEDIA-QOSClass-map: TSHOOT-VOICE (match-any) 1344 packets, 85247 bytes 5 minute offered rate 8000 bps, drop rate 0 bps Match: protocol rtp audio 1344 packets, 85247 bytes 5 minute rate 8000 bps Queueing Strict Priority Output Queue: Conversation 264 Bandwidth 128 (kbps) Burst 3200 (Bytes) (pkts matched/bytes matched) 0/0 (total drops/bytes drops) 0/0 QoS Set dscp ef Packets marked 1344Class-map: TSHOOT-VIDEO (match-any) 0 packets, 0 bytes 5 minute offered rate 0 bps, drop rate 0 bps Match: protocol rtp video 0 packets, 0 bytes 5 minute rate 0 bps Queueing Output Queue: Conversation 265 Bandwidth 256 (kbps)Max Threshold 64 (packets) (pkts matched/bytes matched) 0/0 (depth/total drops/no-buffer drops) 0/0/0 QoS Set dscp af41 Packets marked 0 Class-map: class-default (match-any) |
Like Cisco IOS Catalyst switches, Cisco IOS routers support QoS configuration using the Auto QoS Feature. On routers, auto QoS is enabled using the auto qos <voip> <trust> interface configuration command. The <voip> keyword must be used in order to configure auto QoS parameters for VoIP traffic. The <trust> keyword configures the router to trust the DSCP values of VoIP packets. This is based on the assumption that these packets have been classified and marked ahead appropriately. If the <trust> keyword is not specified, the router will match voice packets using NBAR, i.e. using the match protocol rtp audio command as was illustrated in the previous configuration example.
Prior to configuring the Auto QoS Feature, ensure that you are familiar with the following prerequisites and restrictions:
- Cisco Express Forwarding (CEF) is required and must be globally enabled on the router
- Remove any policy-maps currently applied to the interface
- Ensure that the correct bandwidth has been configured for the interface
- Ensure that the interface is configured with an IP address
- The auto qos voip command is not supported on subinterfaces or gigabit interfaces
- The auto qos voip command is supported with Frame Relay DLCIs
- If the trust is not specified, a policy-map named AutoQoS-Policy-UnTrust is created
- If the trust keyword is used, a policy-map named AutoQoS-Policy-Trust is created
The following configuration example illustrates how to enable the Auto QoS feature on a router and configure the device to trust the DSCP markings of packets:
| R1(config)#ip cef R1(config)#interface serial 0/0 R1(config-if)#description ‘768Kbps Link To WAN’ R1(config-if)#ip address 10.0.0.1 255.255.255.252 R1(config-if)#bandwidth 768 R1(config-if)#auto qos voip trust R1(config-if)#exit |
Following this configuration, you can use the show auto qos interface <name> command to view the configuration parameters applied to the interface as follows:
| R1#show auto qos interface serial 0/0Serial0/0 – ! interface Serial0/0 no ip address encapsulation ppp no fair-queue ppp multilink ppp multilink group 2001100115 ! interface Multilink2001100115 bandwidth 768 ip address 10.0.0.1 255.255.255.252 ppp multilink ppp multilink fragment delay 10 ppp multilink interleave ppp multilink group 2001100115 service-policy output AutoQoS-Policy-Trust ip rtp header-compression iphc-format |
Notice that in the output above the interface encapsulation has been changed to PPP and that a PPP Multilink interface has been automatically provisioned. The IP address which has been previously assigned to the Serial0/0 has now been moved to this interface. Because of this default behavior, it is important to remember that Auto QoS must be enabled on both sides of the link. If the other (remote) side is still using default configuration and encapsulation, i.e. HDLC, then Auto QoS (and other features) will not work as the link will transition to a down/down state due to the mismatched Data Link Layer encapsulation types. This is one of the most common causes of problems when using the Auto QoS Feature.
In addition to using the show auto qos interface <name> command, you can also use theshow policy-map interface <name> command to view statistics, e.g. packet matches, and configuration parameters for the automatically created policy-map as illustrated below:
| R1#show policy-map interface multilink 2001100115 Multilink2001100115 Service-policy output: AutoQoS-Policy-TrustClass-map: AutoQoS-VoIP-RTP-Trust (match-any) 0 packets, 0 bytes 5 minute offered rate 0 bps, drop rate 0 bps Match: ip dscp ef (46) 0 packets, 0 bytes 5 minute rate 0 bps Queueing Strict Priority Output Queue: Conversation 264 Bandwidth 70 (%) Bandwidth 537 (kbps) Burst 13425 (Bytes) (pkts matched/bytes matched) 0/0 (total drops/bytes drops) 0/0Class-map: AutoQoS-VoIP-Control-Trust (match-any) 0 packets, 0 bytes 5 minute offered rate 0 bps, drop rate 0 bps Match: ip dscp cs3 (24) 0 packets, 0 bytes 5 minute rate 0 bps Match: ip dscp af31 (26) 0 packets, 0 bytes 5 minute rate 0 bps Queueing Output Queue: Conversation 265 Bandwidth 5 (%) Bandwidth 38 (kbps)Max Threshold 64 (packets) (pkts matched/bytes matched) 0/0 (depth/total drops/no-buffer drops) 0/0/0 Class-map: class-default (match-any) |
The following configuration example illustrates how to enable the Auto QoS feature on a router and configure it to match packets using Network Based Application Recognition (NBAR):
| R1(config)#ip cef R1(config)#interface serial 0/0 R1(config-if)#description ‘768Kbps Link To WAN’ R1(config-if)#ip address 10.0.0.1 255.255.255.252 R1(config-if)#bandwidth 768 R1(config-if)#auto qos voip R1(config-if)#exit |
Again, the show auto qos interface <name> command can be used to view the applied Auto QoS configuration parameters for this interface as illustrated below:
| R1#show auto qos interface serial 0/0Serial0/0 – ! interface Serial0/0 no ip address encapsulation ppp no fair-queue ppp multilink ppp multilink group 2001100115 ! interface Multilink2001100115 bandwidth 768 ip address 10.0.0.1 255.255.255.252 ppp multilink ppp multilink fragment delay 10 ppp multilink interleave ppp multilink group 2001100115 service-policy output AutoQoS-Policy-UnTrust ip rtp header-compression iphc-format |
Again, notice that the default encapsulation is now PPP and PPP Multilink is enabled. The IP address has been moved from the Serial interface to the Multilink interface. In order for this configuration to work, the same must be configured on the remote end. And finally, use theshow policy-map interface <name> command to view statistics and configuration parameters for the automatically created policy-map as illustrated below:
| R1#show policy-map interface multilink 2001100115 Multilink2001100115Service-policy output: AutoQoS-Policy-UnTrustClass-map: AutoQoS-VoIP-RTP-UnTrust (match-any) 0 packets, 0 bytes 5 minute offered rate 0 bps, drop rate 0 bps Match: protocol rtp audio 0 packets, 0 bytes 5 minute rate 0 bps Match: access-group name AutoQoS-VoIP-RTCP 0 packets, 0 bytes 5 minute rate 0 bps Queueing Strict Priority Output Queue: Conversation 264 Bandwidth 70 (%) Bandwidth 537 (kbps) Burst 13425 (Bytes) (pkts matched/bytes matched) 0/0 (total drops/bytes drops) 0/0 QoS Set dscp ef Packets marked 0Class-map: AutoQoS-VoIP-Control-UnTrust (match-any) 0 packets, 0 bytes 5 minute offered rate 0 bps, drop rate 0 bps Match: access-group name AutoQoS-VoIP-Control 0 packets, 0 bytes 5 minute rate 0 bps Queueing Output Queue: Conversation 265 Bandwidth 5 (%) Bandwidth 38 (kbps)Max Threshold 64 (packets) (pkts matched/bytes matched) 0/0 (depth/total drops/no-buffer drops) 0/0/0 QoS Set dscp af31 Packets marked 0 Class-map: AutoQoS-VoIP-Remark (match-any) Class-map: class-default (match-any) |
Comparing the output of the AutoQoS-Policy-Trust and AutoQoS-Policy-UnTrust policies, we can automatically identify some significant differences. For example, with the AutoQoS-Policy-Trust policy, voice packets are not marked as they are sent out the WAN as is the case with the AutoQoS-Policy-UnTrust policy. This is because the AutoQoS-Policy-Trust trusts that the settings are correct and so negates the need to do so. Another difference is that in addition to using NBAR, the AutoQoS-Policy-UnTrust class-map also matches against ACLs using a match-any configuration setting, which means either NBAR (i.e. match protocol) or ACL matching is acceptable. You can verify the ACL configuration using the show ip access-lists command. The automatically configured ACLs are illustrated in the following router output:
| R1#show ip access-listsExtended IP access list AutoQoS-VoIP-Control 10 permit tcp any any eq 1720 20 permit tcp any any range 11000 11999 30 permit udp any any eq 2427 40 permit tcp any any eq 2428 50 permit tcp any any range 2000 2002 60 permit udp any any eq 1719 70 permit udp any any eq 5060Extended IP access list AutoQoS-VoIP-RTCP 10 permit udp any any range 16384 32767 |
NOTE: You are not required to describe what each of these ports in the ACLs is used for.
The class maps and policy maps applied when the Auto QoS feature is enabled are created from the templates that are automatically generated by the AutoQoS for the Enterprise feature. These templates are generated on the basis of the data collected during the Auto-Discovery phase of the AutoQoS for the Enterprise feature. For this reason, prior to implementing the Auto QoS feature, it is recommended that you manually run the AutoQoS for the Enterprise feature so as to determine whether or not the parameters generated by the Auto QoS feature are acceptable for your network and business requirements. The AutoQoS for the Enterprise feature is enabled using the auto discover qos <trust> interface configuration command.
The <trust> keyword indicates that the DSCP markings of packets are trusted, or are used for classification of the voice, video, and data traffic. If this keyword is omitted, then the voice, video, and data traffic is classified using NBAR, and the matched packets are marked with the appropriate DSCP value prior to being transmitted by the router. The following example illustrates how to enable the AutoQoS for the Enterprise feature under a router WAN interface:
| R1(config)#interface serial 0/0 R1(config-if)#auto discovery qos trust R1(config-if)#exit |
Following this configuration, the auto discovery data collection process is initiated. The auto discovery captured statistics can then be viewed using the show auto discovery qos [interface <name>] command. This command also includes a recommended QoS configuration based on the discovered traffic types within your network as illustrated below:
| R1#show auto discovery qos Serial0/0 AutoQoS Discovery enabled for trusted DSCP Discovery up time: 17 minutes, 49 seconds AutoQoS Class information: Class Voice: Recommended Minimum Bandwidth: 26 Kbps/3% (PeakRate) Detected DSCPs and data: DSCP value AverageRate PeakRate Total (kbps/%) (kbps/%) (bytes) ———– ———– ——– ———— 46/ef 6/<1 26/3 846063 Class Interactive Video: No data found. Class Signaling: No data found. Class Streaming Video: No data found. Class Transactional: No data found. Class Bulk: No data found. Class Scavenger: No data found. Class Management: No data found. Class Routing: No data found. Class Best Effort: Current Bandwidth Estimation: 0 Kbps/0% (AverageRate) Detected DSCPs and data: DSCP value AverageRate PeakRate Total (kbps/%) (kbps/%) (bytes) ———– ———– ——– ———— 0/default 0/0 4/<1 67722Suggested AutoQoS Policy for the current uptime: ! class-map match-any AutoQoS-Voice-Trust match ip dscp ef ! policy-map AutoQoS-Policy-Se0/0-Trust class AutoQoS-Voice-Trust priority percent 3 class class-default fair-queue |
Using this information, you can modify the default Auto QoS configuration to accommodate the needs of your network based on the discovery process.