The service-class track bfd-session command configures the function of re-marking matching packets' CoS and color based on the status of the specified BFD session.
The undo service-class track bfd-session command cancels the function of re-marking matching packets' CoS and color based on the status of the specified BFD session.
By default, the function of re-marking matching packets' CoS and color based on the status of the specified BFD session is not configured.
Parameter | Description | Value |
---|---|---|
service-class |
Specifies the CoS of packets. |
The value is an enumerated type and can be case-insensitive EF, AF1, AF2, AF3, AF4, BE, CS6, or CS7. |
color color |
Specifies the packet color. |
The value is an enumerated type and can be case-insensitive green, yellow, or red. |
master |
Indicates the active BFD session. |
- |
slave |
Indicates the standby BFD session. |
- |
session-name bfd-session-name |
Specifies the name of a BFD session. The value can be only the name of a configured BFD session. |
The value is a string of 1 to 64 case-sensitive characters, spaces not supported. |
Usage Scenario
When multiple forwarding paths exist on a link, you can run this command to dynamically mark the service class and color of packets matching the traffic policy based on the specified BFD session status.
The status of a BFD session reflects the connectivity of the forwarding path monitored by BFD. You can specify both active and standby BFD sessions or specify only one BFD session.Prerequisites
Precautions
<HUAWEI> system-view [~HUAWEI] bfd [~HUAWEI-bfd] quit [~HUAWEI] bfd b1 bind peer-ip 1.1.1.1 [*HUAWEI-bfd-session-b1] quit [*HUAWEI] traffic behavior b1 [*HUAWEI-behavior-b1] service-class af1 color green track master bfd-session session-name b1