reduce-srh enable

Function

The reduce-srh enable command enables reduced SRH function.

The undo reduce-srh enable command disables reduced SRH function.

By default, the reduced SRH function is disabled.

Format

reduce-srh enable

undo reduce-srh enable

Parameters

None

Views

Segment routing IPv6 view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
segr write

Usage Guidelines

Usage Scenario

An SRH consumes a large number of bits. During SRH encapsulation, the SRv6 source node encapsulates the first SID to be processed into the destination address (DA) field of the IPv6 header. Therefore, the first SID in the SRH is meaningless for forwarding. To reduce the SRH size, the SRv6 source node can encapsulate a reduced SRH that does not contain the first SID to be processed. If an SRH contains only one SID, the SRH does not need to be encapsulated, as defined by relevant standards.

After the reduce-srh enable command is run, the first SID is not encapsulated into the SRH, which reduces the SRH length without affecting service forwarding.

Example

# Enable reduced SRH function.
<HUAWEI> system-view
[~HUAWEI] segment-routing ipv6
[*HUAWEI-segment-routing-ipv6] reduce-srh enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >