te-class0

Function

The te-class command configures a TE-class.

The undo te-class command deletes a TE-class.

By default, no TE-class is set.

Format

te-class0 { class-type { ct0 | ct1 | ct2 | ct3 | ct4 | ct5 | ct6 | ct7 } priority priority [ description description-info ] | description description-info }

te-class1 { class-type { ct0 | ct1 | ct2 | ct3 | ct4 | ct5 | ct6 | ct7 } priority priority [ description description-info ] | description description-info }

te-class2 { class-type { ct0 | ct1 | ct2 | ct3 | ct4 | ct5 | ct6 | ct7 } priority priority [ description description-info ] | description description-info }

te-class3 { class-type { ct0 | ct1 | ct2 | ct3 | ct4 | ct5 | ct6 | ct7 } priority priority [ description description-info ] | description description-info }

te-class4 { class-type { ct0 | ct1 | ct2 | ct3 | ct4 | ct5 | ct6 | ct7 } priority priority [ description description-info ] | description description-info }

te-class5 { class-type { ct0 | ct1 | ct2 | ct3 | ct4 | ct5 | ct6 | ct7 } priority priority [ description description-info ] | description description-info }

te-class6 { class-type { ct0 | ct1 | ct2 | ct3 | ct4 | ct5 | ct6 | ct7 } priority priority [ description description-info ] | description description-info }

te-class7 { class-type { ct0 | ct1 | ct2 | ct3 | ct4 | ct5 | ct6 | ct7 } priority priority [ description description-info ] | description description-info }

undo { te-class0 | te-class1 | te-class2 | te-class3 | te-class4 | te-class5 | te-class6 | te-class7 }

undo { te-class0 | te-class1 | te-class2 | te-class3 | te-class4 | te-class5 | te-class6 | te-class7 } description

Parameters

Parameter Description Value
class-type

Indicates the service type.

The IETF-mode DiffServ-aware Traffic Engineering (DS-TE) supports eight service types, namely, CT0 to CT7.

ct0

Specifies service type 0.

-

ct1

Specifies Class-Type 1.

-

ct2

Specifies service type 2.

-

ct3

Specifies service type 3.

-

ct4

Specifies service type 4.

-

ct5

Specifies service type 5.

-

ct6

Specifies service type 6.

-

ct7

Specifies the service type 7.

-

priority priority

Specifies the priority. The priority here refers to the CR-LSP (Constraint-based Routed Label Switch Path) priority in the TE-class mapping table, not the EXP value in the MPLS header.

A CR-LSP can be set up only when both <CT, setup-priority> and <CT, hold-priority> exist in the TE-class mapping table. For example, assume that the TE-class mapping table of a node contains only TE-Class [0] = <CT0, 6> and TE-Class [1] = <CT0, 7>, only the following three types of CR-LSPs can be set up successfully (the setup priority of a CR-LSP cannot be higher than the holding priority; therefore, the combination of setup-priority = 6 and hold-priority = 7 does not exist):

  • Class-Type=CT0, setup-priority=6, hold-priority=6;
  • Class-Type=CT0, setup-priority=7, hold-priority=6;
  • Class-Type=CT0, setup-priority=7, hold-priority=7.

The preemption priority ranges from 0 to 7. A smaller value indicates a higher priority.

description description-info

Specifies the description of a TE-class.

The value is a string of 1 to 31 characters.

te-class1

Configures TE-Class 1.

-

te-class2

Configures TE-Class 2.

-

te-class3

Configures TE-Class 3.

-

te-class4

Configures TE-Class 4.

-

te-class5

Configures TE-Class 5.

-

te-class6

Configures TE-Class 6.

-

te-class7

Configures TE-Class 7.

-

te-class0

Configures TE-Class 0.

-

Views

TE-class mapping view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-te write

Usage Guidelines

Usage Scenario

A TE-class mapping table has been created using the te-class-mapping command.

The relationship between CT, priorities, and LSP preemption is as follows:

  • In MAM and extended MAN, a higher-priority LSP preempts the bandwidth of a lower-priority LSP with the same CT. LSPs with different CTs do not preempt each other.
  • In the RDM, the preemption relationship among CTs is: In the case of 0 ≤ m < ≤7 and 0 ≤ i < j ≤ 7, CTi with priority m can preempt the bandwidth of CTi with priority n and that of CTj with priority n. The total LSP bandwidths of CTi, however, does not exceed the bandwidth of BCi.

    All configured TE-classes are deleted after the undo mpls command is run in the system view or the undo mpls te command is run in the MPLS view. All configured TE-classes are also deleted after the undo te-class-mapping command is run in the system view to delete a TE-class mapping table.

Example

# Configure a TE-class mapping table and CT0, CT1, and CT2 mapped to priorities of 0, 1, and 2, respectively.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls te
[*HUAWEI-mpls] quit
[*HUAWEI] te-class-mapping
[*HUAWEI-te-class-mapping] te-class0 class-type ct0 priority 0 description For-EF
[*HUAWEI-te-class-mapping] te-class1 class-type ct1 priority 1 description For-AF
[*HUAWEI-te-class-mapping] te-class2 class-type ct2 priority 2 description For-BE
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >