11-ACL and QoS Command Reference

HomeSupportRoutersCR16000-F SeriesReference GuidesCommand ReferencesH3C CR16000-F Routers Command References-Release795x-6W10011-ACL and QoS Command Reference
03-MPLS QoS commands
Title Size Download
03-MPLS QoS commands 45.50 KB

MPLS QoS commands

CSPC (except CSPC-GE16XP4L-E, CSPC-GE24L-E, and CSPC-GP24GE8XP2L-E) and CMPE-1104 cards do not support MPLS QoS.

diffserv-mode

Use diffserv-mode to configure the MPLS DiffServ mode.

Use undo diffserv-mode to restore the default.

Syntax

diffserv-mode { ingress { pipe service-class | short-pipe service-class | uniform } egress { pipe | short-pipe | uniform } | { pipe service-class | short-pipe service-class | uniform } }

undo diffserv-mode

Default

The MPLS DiffServ mode is pipe, and the EXP value is 0.

Views

VPN instance view

Predefined user roles

network-admin

Parameters

ingress: Configures the MPLS DiffServ mode for the inbound direction.

egress: Configures the MPLS DiffServ mode for the outbound direction.

pipe: Specifies the pipe mode.

short-pipe: Specifies the short-pipe mode.

uniform: Specifies the uniform mode.

service-class: Specifies the MPLS EXP value for packets that enter from a private network to a public network, in the range of 0 to 7.

Usage guidelines

If you do not specify a direction when executing this command, the configured MPLS DiffServ mode applies to both directions.

If you execute this command for the same direction multiple times, the most recent configuration takes effect.

In a DiffServ architecture, an intermediate node can modify the DSCP and EXP fields, which are collectively referred to as class of service (CoS). Therefore, the CoS value of a packet might change during transmission in an IP network or MPLS network. The device supports the following MPLS DiffServ modes to process CoS:

·          pipe—When an IP packet enters an MPLS network, the ingress node ignores the DSCP value of the IP packet and uses the configured value as the EXP value of the MPLS packet. When the MPLS packet leaves the MPLS network, the egress node does not modify the original DSCP value. In the MPLS network, the packet is scheduled based on the configured EXP value.

·          short-pipe—When an IP packet enters and leaves an MPLS network, the packet is processed in the same way as in pipe mode. On nodes from the ingress node to the penultimate node, the packet is scheduled based on the configured EXP value. On the egress node, the top label is popped, and then the packet is scheduled based on its DSCP value.

·          uniform—When an IP packet enters an MPLS network, the ingress node maps the DSCP value of the IP packet to the EXP value of the MPLS packet. When the MPLS packet leaves the MPLS network, the ingress node maps the EXP value to the DSCP value.

Mappings between DSCP and EXP are performed according to the dscp-exp map and exp-dscp map. For more information about these priorities and maps, see ACL and QoS Configuration Guide.

When a VPN instance uses an MPLS DiffServ mode other than the default, the following rules apply:

·          If the public network interface or the interface bound to the VPN instance is applied with a QoS policy containing a priority marking action, the priority in the action takes precedence.

·          If the public network interface or the interface bound to the VPN instance is configured a port priority, the priority configured for the VPN instance takes precedence.

Examples

# Configure the MPLS DiffServ mode as uniform for VPN instance abc.

<Sysname> system-view

[Sysname] ip vpn-instance abc

[Sysname-vpn-instance-abc] diffserv-mode uniform

# In VPN instance xyz, configure the MPLS DiffServ mode as pipe with EXP AF1 for the inbound direction and as short-pipe for the outbound direction.

<Sysname> system-view

[Sysname] ip vpn-instance xyz

[Sysname-vpn-instance-xyz] diffserv-mode ingress pipe af1 egress short-pipe

if-match mpls-exp

Use if-match mpls-exp to define a criterion to match the EXP field in the first MPLS label.

Use undo if-match mpls-exp to delete the match criterion.

Syntax

if-match mpls-exp exp-value&<1-8>

undo if-match mpls-exp exp-value&<1-8>

Default

No criterion is defined to match the EXP field in the first MPLS label.

Views

Traffic class view

Predefined user roles

network-admin

Parameters

exp-value&<1-8>: Specifies a space-separated list of up to eight EXP values. The value range for the exp-value argument is 0 to 7. If the same EXP value is specified multiple times, the system considers them as one. If a packet matches one of the defined MPLS EXP values, it matches the if-match clause.

Examples

# Define a criterion to match packets with EXP value 3 or 4 in the first MPLS label.

<Sysname> system-view

[Sysname] traffic classifier database

[Sysname-classifier-database] if-match mpls-exp 3 4

remark imposition-mpls-exp

Use remark imposition-mpls-exp to configure an EXP value marking action in a traffic behavior.

Use undo remark imposition-mpls-exp to delete the action.

Syntax

remark imposition-mpls-exp exp-value

undo remark imposition-mpls-exp

Default

No EXP value marking action is configured in a traffic behavior.

Views

Traffic behavior view

Predefined user roles

network-admin

Parameters

exp-value: Specifies an EXP value in the range of 0 to 7.

Usage guidelines

This command takes effect only when the QoS policy is applied to the inbound direction. On a P device, this command modifies only the EXP value in the first label. On a PE device, this command modifies the EXP values in both the first label and second label.

If both the remark mpls-exp and remark imposition-mpls-exp commands are configured in a QoS policy applied to the inbound direction on a PE device, the following rules apply:

·          The remark mpls-exp command modifies only the EXP value in the first label.

·          The remark imposition-mpls-exp command modifies only the EXP value in the second label.

CSPEX (except CSPEX-1204 and CSPEX-1104-E) and CEPC cards support configuring both remark mpls-exp and remark imposition-mpls-exp commands in one QoS policy.

Examples

# Set the EXP value to 0 for MPLS packets.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] remark imposition-mpls-exp 0

Related commands

remark mpls-exp

remark mpls-exp

Use remark mpls-exp to configure an action of marking the EXP value in the first label in a traffic behavior.

Use undo remark mpls-exp to delete the action.

Syntax

remark mpls-exp exp-value

undo remark  mpls-exp

Default

No action of marking the EXP value in the first label is configured in a traffic behavior.

Views

Traffic behavior view

Predefined user roles

network-admin

Parameters

exp-value: Specifies an EXP value in the range of 0 to 7.

Usage guidelines

If the QoS policy is applied to the inbound direction, the remark mpls-exp command modifies the EXP value in the second label.

If the QoS policy is applied to the outbound direction, the remark mpls-exp command modifies only the EXP value in the first (outer) label.

If both the remark mpls-exp and remark imposition-mpls-exp commands are configured in a QoS policy applied to the inbound direction on a PE device, the following rules apply:

·          The remark mpls-exp command modifies only the EXP value in the first label.

·          The remark imposition-mpls-exp command modifies only the EXP value in the second label.

CSPEX (except CSPEX-1204 and CSPEX-1104-E) and CEPC cards support configuring both remark mpls-exp and emark imposition-mpls-exp commands in one QoS policy.

Examples

# Set the EXP value in the first label to 0 for MPLS packets.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] remark mpls-exp 0

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网