Chapter 7
Chapter 7
http://www.thebryantadvantage.com
Back To Index
Throughout the course, we've been creating ACLs, calling those ACLs
with class maps, writing policy maps that in turn call the class maps, and
then finally we've been applying the policy maps. You may *think* we
were using the CLI, but in truth we were using the MQC.
Cisco's website defines the MQC as "a CLI structure used to create traffic
policies and to attach these policies to interfaces". You won't notice a
difference from the regular CLI, frankly, but keep that MCQ in mind on
exam day.
AutoQoS actually discovers what applications are running on your
network - with the help of NBAR - and creates the appropriate QoS
deployment.
AutoQoS is Cisco's attempt to make configuring QoS easier in today's
complex networks. Several of their documents mention a cost savings as
well, since this app makes it possible for someone without in-depth
knowledge of QoS to successfully deploy QoS in their network. The
phrase "without calling a consulting firm and paying a consultant" is left
unspoken.
Frankly, some control freaks (like me) have a hard time letting go of
manually configuring QoS - that can be the hardest part of running
AutoQoS! But once you work with AutoQoS, you'll wonder how you did
without it.
It's hard for anyone to think of everything, even a network admin, but look
at just a partial list of what AutoQoS will take care of for us.
On The WAN Side ....
So on the WAN side, AutoQoS can enable LLQ and its corresponding
priority queue, cRTP, and LFI. Pretty good deal!
And on the LAN Side....
We're not done with the lists yet - hang in there. We've got quite a few
prerequisites to concern ourselves with...
AutoQoS Prerequisites:
For WAN interfaces, the following must be configured:
or slower)
bandwidth command is required on interfaces on both ends of the link
CEF must be enabled at the interface level (or in the case of ATM, on
the PVC itself)
NBAR will be used to identify applications and traffic
QoS policies must be removed from the interface(s) that will run
AutoQoS
AutoQoS can't be implemented on/to a Frame Relay DLCI if a map
class is already configured on that DLCI
Another DLCI-related rule: If one subinterface already has a Frame
DLCI, you can't configure AutoQoS on a different subinterface.
Communications
AutoQoS for VoIP has two requirements and about 30 warnings. Let's
look at the requirements first:
There are some other Frame Relay "gotchas" that you might run into:
Man, that's a lot of rules! :) The good news is that the simple command
auto qos voip enables this feature. We have one interesting option to
consider as well, shown here with IOS Help:
R1(config)#int s0/1
R1(config-if)#auto qos ?
voip Configure AutoQoS for VoIP
<cr>
R1(config-if)#auto qos voip ?
trust Trust the DSCP marking
<cr>
R1(config-if)#auto qos voip
If you use the auto qos voip command by itself, NBAR will be used to
discover traffic. If you choose the trust option, the incoming DSCP values
are trusted and NBAR is not used to discover and classify the traffic.
AutoQoS For The Enterprise
Enterprise is a two-step process, with the commands shown in
parenthesis:
The autodiscovery phase is put into action with the auto discovery qos
command. (It's not the auto qos command - that comes later.)
We have the same trust option with Enterprise as we did with VoIP:
R1(config)#int s0/0
R1(config-if)#auto ?
discovery Configure Auto Discovery
qos
Configure AutoQoS
R1(config-if)#auto discovery ?
qos Configure Auto Discovery for QoS
R1(config-if)#auto discovery qos ?
trust Trust the DSCP marking
<cr>
R1(config-if)#auto discovery qos
Note the option "trust" for this command. If you use the basic auto
discovery qos command, NBAR will be used to discover traffic; if you use
the trust option, traffic will be classified by DSCP.
Regardless of which option you choose, be prepared for the router to
"pause" for 15 seconds or so after you configure this command. The
prompt for the next line will take that long to appear, and if this is the first
time you've used the command, it's easy to think that the router is "stuck".
Now that we've got discovery running, we'll configure the auto qos
command on both R1 and R2.
R1(config-if)#auto qos
R2(config-if)#auto qos
We'll run the show auto discovery qos command to view the results. This
command also shows you how long the discovery process has been
running.
The output of this command is huge, so we'll start with the class
information you'll see at the top of the output. Obviously, you'll need to
run Autodiscovery for longer than four minutes in a production network!
R1#show auto discovery qos
Serial0/1/0
AutoQoS Discovery enabled for applications
Discovery up time: 4 minutes, 29 seconds
AutoQoS Class information:
Class Voice:
Recommended Minimum Bandwidth: 43 Kbps/5% (PeakRate)
Detected applications and data:
Application/
AverageRate
PeakRate
Total
Protocol
(kbps/%)
(kbps/%)
(bytes)
--------------------------------------rtp audio
6/<1
43/5
226032
Class Interactive Video:
No data found.
Class Signaling:
Recommended Minimum Bandwidth: 11 Kbps/1% (AverageRate)
Detected applications and data:
Application/
AverageRate
PeakRate
Total
Protocol
(kbps/%)
(kbps/%)
(bytes)
--------------------------------------h323
11/1
22/2
382727
rtcp
0/0
0/0
2496
Class Streaming Video:
No data found.
Class Transactional:
Recommended Minimum Bandwidth: 62 Kbps/8% (AverageRate)
Detected applications and data:
Application/
AverageRate
PeakRate
Total
Protocol
(kbps/%)
(kbps/%)
(bytes)
--------------------------------------sqlnet
61/7
116/15
2054083
citrix
1/<1
5/<1
63552
Class Bulk:
Recommended Minimum Bandwidth: 42 Kbps/5% (AverageRate)
Detected applications and data:
Application/
AverageRate
PeakRate
Total
Protocol
(kbps/%)
(kbps/%)
(bytes)
--------------------------------------exchange
24/3
47/6
817004
ftp
18/2
35/4
625428
Class Scavenger:
Recommended Minimum Bandwidth: 8 Kbps (AverageRate)/1% (fixed)
Total
(bytes)
-----------284312
Total
(bytes)
-----------473712
Total
(bytes)
-----------2640
1176
Total
(bytes)
-----------15797717
1006088
405744
As you can see, the protocols running in each class of traffic are
displayed. For example, under Class Routing (the next to last category
shown), you can see ICMP and OSPF.
The next information is the suggested AutoQoS policy, with the class
maps followed by the AutoQoS policy. Take note of the classes - if you're
creating your own classes rather than using AutoQOS, this is a good road
map to follow.
Voice
Signaling
Transactional
Bulk
Scavenger
Management
We'll verify the AutoQoS configuration with show auto qos. Some of the
same information is repeated from the earlier command - the policy maps
and class maps, to be specific - but at the very bottom of the show auto
qos output, you'll see the service-policy command which applies these
maps.
R1#show auto qos
!
policy-map AutoQoS-Policy-Se0/1/0
class AutoQoS-Voice-Se0/1/0
priority percent 5
set dscp ef
class AutoQoS-Signaling-Se0/1/0
bandwidth remaining percent 2
set dscp cs3
class AutoQoS-Transactional-Se0/1/0
bandwidth remaining percent 15
random-detect dscp-based
set dscp af21
class AutoQoS-Bulk-Se0/1/0
bandwidth remaining percent 10
random-detect dscp-based
set dscp af11
class AutoQoS-Scavenger-Se0/1/0
bandwidth remaining percent 1
set dscp cs1
class AutoQoS-Management-Se0/1/0
bandwidth remaining percent 3
And that's it! We now have an AutoQoS policy configured and applied, all
done with just the auto discovery qos and auto qos commands!
Enterprise AutoQoS Benefits
You'll then be prompted for the IP address of the router you wish to
configure. The option to connect via Secure HTTP is also available, but is
not checked by default.
Two separate browsers will open, and one will display this message:
Did you notice the main difference? It's okay to close the first one, but if
you close the second window, SDM will shut down. So don't close this
one until you're done! :)
SDM opens to the Home window. This window gives you some basic
information regarding your router, along with an overview of the current
configuration.
There's one SDM default I prefer to change, so we'll click Edit and then go
to Preferences on the Home window.
Here are the three preferences, shown with their default settings:
Note the "How do I" selection at the bottom of the screen. Every SDM
selection in the Configure section has this option at the bottom,and if
you're unsure of how to carry out a task, this is very helpful!
I click the QoS button, and here's the resulting screen. The SDM
screens give excellent descriptions of what you're about to do.
Transactional
Management
Routing
There's a Next button not shown in the above screen - I'll click that and
we'll move on.
The drop-down box lists the interface upon which we will apply this QoS
policy for outgoing traffic. Once you select an interface, you can click
Details for additional information about that particular interface, and here's
the result.
I'll click Close, then Next, and we move to the next screen!
I'll click Yes, and in a few minutes we get a report on the traffic NBAR has
discovered. I will not show all of the protocols, but here's a sample of what
you'll see. Note that Realtime traffic shows by default and that there is a
separate tab for Business-Critical traffic. RTP Audio traffic will be marked
with a DSCP value of EF (Expedited Forwarding).
After closing that window and clicking Next, we're shown a summary of
the configuration that will be delivered to the router.
The scroll bar on the right side can be used to browse the config if you
like. Note the option to save the running config to the startup config, and
that it is not selected by default. Personally, I've seen that save fail more
than once, so I like to do that myself. Again, it's a personal preference.
When I click Deliver, that's just what happens - the commands are
delivered to the router.
As the commands are delivered, that solid bar shown above the "OK"
button will scroll back and forth. It can take a few minutes to deliver the
configuration, but in this case it took only a few seconds. Note that 95
commands were delivered!
I'll click OK, and we're taken to the Edit QoS Policy window. Note the
queueing schemes - priority and bandwidth, with priority next to Voice.
To edit any of the QoS settings, just highlight the feature you want to edit
and click - what else? - the grey Edit button. Since the SDMVoice class
was highlighted in the previous illustration, I just clicked Edit and up pops
the following window:
You can also use SDM to see the DSCP value that will be assigned to
different traffic classes, as well as the LLQ priority and bandwidth queues.
At the top of the Edit QoS Policy window, you'll see the policies and the
interfaces they've been applied to. Here we only have one policy, but in
situations where you have multiple policies, make sure you're reading and
editing the correct one for the interface you're working with.
At the bottom of the screen, you'll see the following information. (To allow
this to fit into one screen, I've narrowed the Enabled and Remaining
Percentage fields, which are not the ones we're concerned with right
now.)
RTP Audio traffic will be put into the LLQ priority queue, as we'd expect.
The DSCP marking for that traffic will be ef. You can see the other
DSCP markings for various traffic types.
As with anything new, SDM takes a little getting used to - but frankly,
you'll pick it up very quickly the first time you use it, whether that be in the
exam room or working on a production network. Just keep your calm and
keep looking around - SDM is a very intuitive GUI and you'll enjoy using it.
Ease of configuration
Spotting potential issues with a configuration
Suggesting fixes and implementing them if the admin gives the goahead
SDM will not only create a LLQ service policy, but will create a priority
queue (as we'd expect with LLQ) and assign a certain amount of
bandwidth to the other queues.
As we saw in the lab, SDM uses NBAR to gather information about traffic
flows in the network.
SDM configures QoS for both Realtime and Business-Critical traffic. All
other traffic will receive "best-effort" delivery.
As we saw in the lab, SDM will create two realtime traffic subclasses
(VOIP and signaling) and three business-critical traffic subclasses.
Okay, it's not that interesting, I admit. But this part of the Wizard will not
leave any bandwidth unassigned.
Hey, remember that you can also run AutoQoS in the MQC! :)
review those commands....
Let's
auto discovery qos starts the Discovery process, using NBAR to observe
and record traffic flows.
auto qos actually creates the class maps and policy maps we saw in this
section and applies them to that interface.
Keep the purpose of both of those commands straight! Running those
two commands in that order is almost all there is to actually running
AutoQoS - it's all of the prerequisites you have to watch out for!
Both of those commands are interface-level commands.
To run AutoQoS for VoIP, use the auto qos voip command. AutoQoS for
VoIP is an excellent way to automate the entire process of developing a
QoS scheme for voice, and it's a real boon for networks whose admins
may not know enough voice to do that on their own.
Copyright 2008 The Bryant Advantage. All Rights Reserved.