service-class track bfd-session

Function

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.

Format

service-class service-class color color track { master | slave } bfd-session session-name bfd-session-name

undo service-class track { master | slave } bfd-session

undo service-class service-class color color track { master | slave } bfd-session session-name bfd-session-name

Parameters

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.

Views

Traffic behavior view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

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.

  • When the active BFD session is Up, the matching packets are marked the service-class and color corresponding to the active BFD session.
  • When the active BFD session is Down or no active BFD session is specified.
  • If the standby BFD session is Up, the matching packets are marked the service-class and color corresponding to the standby BFD session.
  • If the standby BFD session is Down, the matching packets are not marked a new CoS or color.

Prerequisites

  • BFD sessions are configured.
  • A traffic behavior is configured.

Precautions

  • If the specified BFD session does not exist, this command cannot be configured.
  • On a board not equipped with an eTM subcard, this command marks the outgoing packets' CoS and color, which can be mapped to the 802.1p or DSCP value using the PHB function, without packets being placed in queues.

Example

# Configure the function of marking matching packets' CoS and color based on the status of the specified active BFD session.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >