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.
Procedure
Purpose
Command or Action
Enters global configuration mode.
switch#
configure terminal
Step 1
Creates a named object that represents a class of traffic.
Class-map names can contain alphabetic, hyphen, or
switch(config)#
class-map type qos
class-name
Step 2
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
switch(config-cmap-qos)#
match ip
rtp port-number
Step 3
is likely to target applications using RTP. Values can
range from 2000 to 65535.
(Optional)
Removes the match from the traffic class.
switch(config-cmap-qos)#
no match
ip rtp port-number
Step 4
The following 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 match-any class_rtp
switch(config-cmap-qos)#
match
ip rtp 2000-2100, 4000-4100
Use the
show class-map
command to display the RTP class-map configuration:
switch#
show class-map class_rtp
Configuring ACL Classification
You can classify traffic by matching packets based on an existing access control list (ACL). Traffic is classified
by the criteria defined in the ACL. The
permit
and
deny
ACL keywords are ignored in the matching; even
if a match criteria in the access-list has a
deny
action, it is still used for matching for this class.
Procedure
Purpose
Command or Action
Enters global configuration mode.
switch#
configure terminal
Step 1
Creates a named object that represents a class of traffic.
Class-map names can contain alphabetic, hyphen, or
switch(config)#
class-map type qos
class-name
Step 2
underscore characters, are case sensitive, and can be up to
40 characters.
Cisco Nexus 5000 NX-OS Quality of Service Configuration Guide, Release 5.1(3)N2(1)
OL-26657-01
15
Configuring Classification
Configuring ACL Classification