OcNOS SP : Multi-Protocol Label Switching Guide : Multi-Protocol Label Switching Command Reference : Differentiated Services Commands
Differentiated Services Commands
This chapter describes the RSVP Differentiated Services (DiffServ) commands.
map-route A.B.C.D
Use this command to map a IPv4 prefix route onto a trunk. This route is to be used for packets that are mapped to a specific RSVP trunk.
Use the no parameter with this command for unmapping routes from specified trunks.
Note: Do not configure the local address as a map route, as explicit validation is not done. The wrong configuration may impact traffic.
Command Syntax
map-route A.B.C.D A.B.C.D
map-route A.B.C.D A.B.C.D CLASS
map-route A.B.C.D/M
map-route A.B.C.D/M CLASS
no map-route A.B.C.D A.B.C.D
no map-route A.B.C.D A.B.C.D CLASS
no map-route A.B.C.D/M
no map-route A.B.C.D/M CLASS
Parameters
A.B.C.D
Specify the IPV4 address to be mapped.
A.B.C.D
Specify a mask to be applied to the address being mapped.
A.B.C.D/M
Specify the IPV4 address to be mapped, with mask.
CLASS
Specify the DiffServ Class Name (for example, be, ef etc.) used for selecting incoming IP packets to be mapped to a specified RSVP trunk.
Default
By default, map route A.B.C.D is disabled
Command Mode
Trunk mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#rsvp-trunk T1
(config-trunk)#map-route 1.1.2.2/24 be
override-diffserv
Use this command to enable the Differentiated Services (Diff-Serv) override configuration.
If a Path message is received without a Diff-Serv object by a Diff-Serv enabled node, it can be interpreted either as a request for an E-LSP (EXP-Inferred-PSC LSP) or as a request for Non-Diff-Serv LSP. This command supports the override option and when configured, the LSR interprets a path message without a Diff-Serv object as a request for Non-Diff-Serv LSP.
Use the no parameter with this command disable this feature.
Command Syntax
override-diffserv
no override-diffserv
Parameters
None
Default
By default, override diffserv is disabled
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#router rsvp
(config-router)#override-diffserv
primary class-to-exp-bit
Use this command to configure a primary PHB-EXP (Per-Hop Behavior-Experimental) mapping to be used by an E-LSP (EXP-Inferred-PSC LSP). This mapping is different from the node level PHB-EXP mapping.
Use the no parameter with this command to remove a PHB-EXP mapping configuration from current E-LSP PHB-EXP mapping.
Command Syntax
primary class-to-exp-bit CLASS <0-7>
no primary class-to-exp-bit CLASS <0-7>
Parameters
CLASS
Specify the DiffServ Class Name (for example, be, ef etc.) used for selecting incoming IP packets to be mapped to a specified RSVP trunk.
<0-7>
Exp bit which is to be mapped to this PHB.
Default
By default, primary map class is disabled
Command Mode
Trunk mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#rsvp-trunk T1
(config-trunk)#primary class-to-exp-bit af12 3
 
(config)#rsvp-trunk T1
(config-trunk)#no primary class-to-exp-bit af12 3
primary elsp-signaled
Use this command to configure a primary Diff-Serv (Differentiated Services) explicitly signaled E-LSP (EXP-Inferred-PSC LSP) interface.
The classes 1 to 7 are optional parameters that can be selected from node level PHB-EXP (Per-Hop Behavior) mapping as PHBs, which will then be used for an E-LSP. If you do not specify a class with this command, all classes will be selected for the E-LSP.
Use the no parameter with this command to remove the configuration.
Command Syntax
primary elsp-signaled
primary elsp-signaled CLASS1
primary elsp-signaled CLASS1 CLASS2
primary elsp-signaled CLASS1 CLASS2 CLASS3
primary elsp-signaled CLASS1 CLASS2 CLASS3 CLASS4
primary elsp-signaled CLASS1 CLASS2 CLASS3 CLASS4 CLASS5
primary elsp-signaled CLASS1 CLASS2 CLASS3 CLASS4 CLASS5 CLASS6
primary elsp-signaled CLASS1 CLASS2 CLASS3 CLASS4 CLASS5 CLASS6 CLASS7
no primary elsp-signaled
Parameter
CLASS<0-7>
Diffserv class alias. e.g.: be, ef, af11, etc.
Default
By default, primary elsp signaled is disabled
Command Mode
Trunk mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#rsvp-trunk T1
(config-trunk)#primary elsp-signaled cs2 cs5 cs6
 
(config)#rsvp-trunk T1
(config-trunk)#no primary elsp-signaled
primary llsp
Use this command to configure a primary Differentiated Services Label-Only-Inferred-PSC (Diff-Serv L-LSP) interface, which will use Diff-Serv Class as its PHB Scheduling Class (PSC).
Use the no parameter with this command to remove the Diff-Serv L-LSP configuration.
Command Syntax
primary llsp CLASS
no primary llsp
Parameters
CLASS<0-7>
Diffserv class alias. e.g: be, ef, af11, etc.
Default
By default, primary llsp is disabled
Command Mode
Trunk mode
Applicability
This command was introduced before OcNOS version 1.3.
This command is not available on QUMRAN devices.
Examples
#configure terminal
(config)#rsvp-trunk T1
(config-trunk)#primary llsp cs4
 
(config)#rsvp-trunk T1
(config-trunk)#no primary llsp
secondary map class
Use this command to configure a secondary PHB-EXP (Per-Hop Behavior-Experimental) mapping to be used by an E-LSP (EXP-Inferred-PSC LSP). This mapping is different from the node level PHB-EXP mapping.
Use the no parameter with this command to remove a PHB-EXP mapping configuration from current E-LSP PHB-EXP mapping.
Command Syntax
secondary map class-to-exp-bit CLASS <0-7>
no secondary map class-to-exp-bit CLASS <0-7>
Parameters
CLASS
Diff-Serv class (queue) mapped to the particular PHB.
Diffserv class alias e.g: be, ef, af11, etc.
<0-7>
Exp bit that is to be mapped to this PHB.
Default
By default, secondary map class is disabled
Command Mode
Trunk mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#rsvp-trunk T1
(config-trunk)#secondary class-to-exp-bit cs4 3
 
(config)#rsvp-trunk T1
(config-trunk)#no secondary class-to-exp-bit cs4 3
secondary elsp-signaled
Use this command to configure a secondary Diff-Serv (Differentiated Services) explicitly signaled E-LSP (EXP-Inferred-PSC LSP) interface. The classes 1 to 7 are optional parameters can be selected from the node level PHB-EXP (Per-Hop Behavior) mapping as PHBs. They will then be used for an E-LSP. If you do not specify a class with this command, all classes will be selected for the E-LSP.
Use the no parameter with this command to remove the configuration.
Command Syntax
secondary elsp-signaled
secondary elsp-signaled CLASS1
secondary elsp-signaled CLASS1 CLASS2
secondary elsp-signaled CLASS1 CLASS2 CLASS3
secondary elsp-signaled CLASS1 CLASS2 CLASS3 CLASS4
secondary elsp-signaled CLASS1 CLASS2 CLASS3 CLASS4 CLASS5
secondary elsp-signaled CLASS1 CLASS2 CLASS3 CLASS4 CLASS5 CLASS6
secondary elsp-signaled CLASS1 CLASS2 CLASS3 CLASS4 CLASS5 CLASS6 CLASS7
no secondary elsp-signaled
Parameters
CLASS<0-7>
Diffserv class alias. e.g: be, ef, af11, etc.
Default
By default, secondary elsp signaled is disabled
Command Mode
Trunk mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#rsvp-trunk T1
(config-trunk)#secondary elsp-signaled class cs3 cs6 cs2 cs5
 
(config)#rsvp-trunk T1
(config-trunk)#no secondary elsp-signaled
secondary llsp
Use this command to configure a secondary Differentiated Services Label-Only-Inferred-PSC (Diff-Serv L-LSP) interface, which will use Diff-Serv Class as its PHB Scheduling Class (PSC).
Use the no parameter with this command to remove the Diff-Serv L-LSP configuration.
Command Syntax
secondary llsp CLASS
no secondary llsp
Parameters
CLASS<0-7>
Diffserv class alias. e.g: be, ef, af11, etc.
Default
By default, secondary llsp is disabled
Command Mode
Trunk mode
Applicability
This command was introduced before OcNOS version 1.3.
This command is not available on QUMRAN devices.
Example
#configure terminal
(config)#rsvp-trunk T1
(config-trunk)#secondary llsp class cs5
 
(config)#rsvp-trunk T1
(config-trunk)#no secondary llsp
show rsvp diffserv-info
Use this command to display node level Differentiated Services (Diff-Serv) configuration information. This information includes the node level PHB-EXP mapping configured for ELSP-signaled LSP.
Command Syntax
show rsvp diffserv-info
Parameters
None
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
Following is a sample output of the show rsvp diffserv-info command.
#show rsvp diffserv-info
CLASS-EXP mapping:
CLASS DSCP_value
c5 101000 0
be 000000 1
cs1 001000 2
cs3 011000 3
cs2 010000 4
cs4 100000 5
cs6 110000 6
cs7 111000 7
Table 2-1 explains the show command output fields.
 
Table 2-1: show rsvp diffserv-info output fields
Field
Description
CLASS
MPLS class type that corresponds to the DiffServ traffic engineering class.
EXP_value
Exp value is initialized at the ingress routing device only and overrides the rewrite configuration
established for that forwarding class.