You are on page 1of 11

Implementing Quality of Service

(QoS)

Classification and Marking

http://www.INE.com
Module 4

• Markings
• Trust Boundaries
• NBAR
• Class-Based Marking
• Pre-Classification
• QPPB
• Classifying and Marking on Catalyst
Switches

Copyright © 2010 Internetwork Expert, Inc


www.INE.com
Network Based Application Recognition
(NBAR)
• Two jobs in the network – QoS
classification and protocol discovery
(analysis)
– QoS classification inside the MQC is our
“famous” usage; “match protocol”
• Pre-defined definitions in the IOS and you
can extend them using PDLMs

Copyright © 2010 Internetwork Expert, Inc


www.INE.com
NBAR Protocol Discovery
• router(config-if)#
ip nbar protocol-discovery

• show ip nbar protocol-discovery

Copyright © 2010 Internetwork Expert, Inc


www.INE.com
NBAR
• NBAR requires Cisco Express Forwarding
• Non-fragmented, non-MPLS, IP traffic only
• Not supported on logical interfaces like
EtherChannel; dialer interfaces, or
interfaces engaged in tunneling or
encryption

Copyright © 2010 Internetwork Expert, Inc


www.INE.com
NBAR Application Recognition
• Applications that use static TCP and UDP
port numbers
• Applications that use dynamic TCP and
UDP port numbers
• Non-TCP and Non-UDP IP protocols; for
example, ICMP, EIGRP, GRE
• Also – deep packet inspection can be
done – for example Web traffic carrying a
certain payload type (.jpg)

Copyright © 2010 Internetwork Expert, Inc


www.INE.com
NBAR for Classification
• class-map CM_NBAR_SAMPLE
match protocol citrix

• class-map CM_NBAR_SAMPLE2
match protocol http url /media/sample*

• class-map CM_NBAR_SAMPLE3
match protocol http mime “*jpeg”

• class-map CM_NBAR_SAMPLE4
match protocol fasttrack file-transfer “*.mpeg”

• class-map CM_NBAR_SAMPLE5
match protocol rtp audio

Copyright © 2010 Internetwork Expert, Inc


www.INE.com
Customizing Existing NBAR Definitions
• router(config)#
ip nbar port-map protocol-name [tcp | udp] port-number

• Example:
ip nbar port-map http tcp 80 8080

• show ip nabr port-map

Copyright © 2010 Internetwork Expert, Inc


www.INE.com
PDLM
• Upgrades to the built-in definitions of
protocols
• PDLMs not already in the IOS are called
non-native

Copyright © 2010 Internetwork Expert, Inc


www.INE.com
Adding the PDLM
• router(config)#
ip nbar pdlm flash://directconnect.pdlm

• show ip nbar pdlm

Copyright © 2010 Internetwork Expert, Inc


www.INE.com
Configuring a Custom Protocol
• You can add your own protocols
• They can be referenced in the match
protocol and port-map syntax
• router(config)#
ip nbar custom MYAPP 8 ascii SAMPLE tcp range 2000 2999

Copyright © 2010 Internetwork Expert, Inc


www.INE.com

You might also like