ip rsvp precedence
To enable the router to mark the IP Precedence value of the type of service (ToS) byte for packets in a Resource Reservation Protocol (RSVP) reserved path using the specified values for packets that either conform to or exceed the RSVP flowspec, use the iprsvpprecedence command in interface configuration mode. To remove existing IP Precedence settings, use the no form of this command.
ip rsvp precedence {conform precedence-value | exceed precedence-value}
no ip rsvp precedence [conform | exceed]
Syntax Description
conform precedence-value |
Specifies an IP Precedence value in the range from 0 to 7 for traffic that conforms to the RSVP flowspec. The IP Precedence value is written to the three high-order bits (bits 5 to 7) of the ToS byte in the IP header of a packet. Either the conform or exceed keyword is required; both keywords may be specified. When used with the no form of the command, the conform keyword is optional. |
exceed precedence-value |
Specifies an IP Precedence value in the range from 0 to 7 for traffic that exceeds the RSVP flowspec. The IP Precedence value is written to the three high-order bits (bits 5 to 7) of the ToS byte in the IP header of a packet. Either the conform or exceed keyword is required; both keywords may be specified. When used with the no form of the command, the exceed keyword is optional. |
Command Default
The IP Precedence bits of the ToS byte are left unmodified when this command is not used. The default state is equivalent to execution of the noiprsvpprecedence command.
Command Modes
Interface configuration
Command History
Release |
Modification |
---|---|
12.0(3)T |
This command was introduced. |
12.2(33)SRA |
This command was integrated into Cisco IOS Release 12.2(33)SRA. |
12.2SX |
This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware. |
Usage Guidelines
Packets in an RSVP reserved path are divided into two classes: those that conform to the reservation flowspec and those that correspond to a reservation but that exceed, or are outside, the reservation flowspec.
The iprsvpprecedence command allows you to set the IP Precedence values to be applied to packets belonging to these two classes. You must specify the IP Precedence value for at least one class of traffic when you use this command. You can use a single instance of the command to specify values for both classes, in which case you can specify the conform and exceed keywords in either order.
As part of its input processing, RSVP uses the iprsvpprecedence command to set the IP Precedence bits on conforming and nonconforming packets. If per-VC DWRED is configured, the system uses the IP Precedence and ToS bit settings on the output interface in its packet drop process. The IP Precedence setting of a packet can also be used by interfaces on downstream routers.
Execution of the iprsvpprecedence command causes IP Precedence values for all preexisting reservations on the interface to be modified.
Note |
RSVP must be enabled on an interface before you can use this command; that is, use of the iprsvpbandwidth command must precede use of the iprsvpprecedence command. RSVP cannot be configured with VIP-distributed Cisco Express Forwarding (dCEF). |
RSVP receives packets from the underlying forwarding mechanism. Therefore, before you use the iprsvpprecedence command to set IP Precedence, one of the following features is required:
-
Weighted fair queueing (WFQ) must be enabled on the interface.
-
RSVP switched virtual circuits (SVCs) must be used.
-
NetFlow must be configured to assist RSVP.
Note |
Use of the no form of this command is not equivalent to giving the iprsvpprecedence0 command, which sets all precedence on the packets to 0, regardless of previous precedence setting. |
Examples
The following example sets the IP Precedence value to 3 for all traffic on the ATM interface 0 that conforms to the RSVP flowspec and to 2 for all traffic that exceeds the flowspec:
interface atm0
ip rsvp precedence conform 3 exceed 2
The following example sets the IP Precedence value to 2 for all traffic on ATM interface 1 that conforms to the RSVP flowspec. The IP Precedence values of those packets that exceed the flowspec are not altered in any way.
interface ATM1
ip rsvp precedence conform 2