The te-class command configures a TE-class.
The undo te-class command deletes a TE-class.
By default, no TE-class is set.
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
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):
|
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. |
- |
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:<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