if-match qos-local-id source

Function

The if-match qos-local-id source command configures a matching rule to classify traffic based on the QoS policy ID.

The undo if-match qos-local-id source command deletes a matching rule that is configured based on the QoS policy ID.

By default, the matching rule to classify traffic based on the QoS policy ID is not configured in traffic classifier view.

Format

if-match qos-local-id source source-local-id destination destination-local-id

undo if-match qos-local-id source source-local-id destination destination-local-id

Parameters

Parameter Description Value
source-local-id

Source QoS policy ID.

The value is an integer ranging from 1 to 255.

destination destination-local-id

Destination QoS policy ID.

The value is an integer ranging from 1 to 255.

Views

Traffic classifier view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

You can set different qos-local-id values for routes based on the BGP route attributes, including source and destination qos-local-ids. If traffic classification must be implemented based on qos-local-id values of routes, run the if-match qos-local-id command to configure a matching rule based on the source or destination QoS policy ID, configure a traffic behavior, and then configure and apply a traffic policy to the related interface.

Prerequisites

The mapping between BGP routes and QoS local route tags has been defined in a routing policy, and QPPB has been enabled on an inbound interface.

Configuration Impact

Traffic is classified according to the matched rule and corresponding traffic behaviors are implemented.

Follow-up Procedure

Run the qppb-policy qos-local-id both inbound command to apply a QPPB traffic policy to incoming traffic on the interface.

Precautions

When QPPB and MF classification are configured on both the inbound and outbound interfaces and CAR behaviors are configured, the lower rate limit takes effect.

When QPPB and MF classification are configured on both the inbound and outbound interfaces and non-CAR traffic behaviors are configured, the behavior configured in QPPB takes effect for incoming packets, and the behavior configured in MF classification takes effect for outgoing packets.

When QPPB and MF classification are configured on both the inbound and outbound interfaces and different traffic behaviors are configured for QPPB and MF classification, both behaviors take effect.

Example

# Define traffic classifier c1, and match IPv4 packets whose source-local-id is 1 and destination-local-id is 1.
<HUAWEI> system-view
[~HUAWEI] traffic classifier c1
[*HUAWEI-classifier-c1] if-match qos-local-id source 1 destination 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >