Configuring Class Maps
port, you typically configure RTP to use ports 16384 to 32767. UDP communications use an even port and
the next higher odd port is used for RTP Control Protocol (RTCP) communications.
You can classify based on UDP port ranges, which are likely to target applications using RTP.
SUMMARY STEPS
1. switch# configure terminal
2. switch(config)# class-map type qos class-name
3. switch(config-cmap-qos)# match ip rtp port-number
4. (Optional) switch(config-cmap-qos)# no match ip rtp port-number
DETAILED STEPS
Command or Action
Step 1
switch# configure terminal
Step 2
switch(config)# class-map type qos
class-name
Step 3
switch(config-cmap-qos)# match ip rtp
port-number
Step 4
switch(config-cmap-qos)# no match ip rtp
port-number
This example shows how to classify traffic by matching packets based on UDP port ranges that are typically
used by RTP applications:
switch# configure terminal
switch(config)# class-map type qos class_rtp
switch(config-cmap-qos)# match
Use the show class-map command to display the RTP class-map configuration:
switch# show class-map class_rtp
Configuring Precedence Classification
You can classify traffic based on the precedence value in the type of service (ToS) byte field of the IP header
(either IPv4 or IPv6). The following table shows the precedence values:
Table 2: Precedence Values
Value
<0-7>
Cisco Nexus 5000 Series NX-OS Quality of Service Configuration Guide
20
Purpose
Enters configuration mode.
Creates a named object that represents a class of traffic. Class-map
names can contain alphabetic, hyphen, or underscore characters, are
case sensitive, and can be up to 40 characters.
Configures the traffic class by matching packets based on a range of
lower and upper UDP port numbers, which is likely to target
applications using RTP. Values can range from 2000 to 65535.
(Optional)
Removes the match from the traffic class.
ip rtp 2000-2100, 4000-4100
List of Precedence Values
IP precedence value
Configuring QoS
OL-20921-01