sflow max-packet-length

Function

The sflow max-packet-length command configures the maximum length of sFlow packet payload.

The undo sflow max-packet-length command restores the default maximum length of sFlow packet payload.

By default, the maximum length of sFlow packet payload is 1400.

Format

sflow max-packet-length length

undo sflow max-packet-length length

Parameters

Parameter Description Value
length

Specifies the maximum length of sFlow packet payload, in bytes.

The value is an integer ranging from 1024 to 8100.

Views

sFlow collector view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
sflow write

Usage Guidelines

Usage Scenario

To configure the maximum length of sFlow packet payload, run the sflow max-packet-length command. Increasing the maximum length of sFlow packet payload reduces the number of sFlow packets that can be sent. However, when the length of an sFlow packet (packet payload length + packet header length) exceeds the MTU, the packet is fragmented. You are advised to increase the maximum length of sFlow packets within the MTU range.

Precautions

IPv6 sFlow packets do not support fragmentation. Note that the maximum length of sFlow packets cannot exceed the MTU of an outbound interface.

Example

# Set the maximum length of sFlow packet payload to 5000 bytes.
<HUAWEI> system-view
[~HUAWEI] sflow
[*HUAWEI-sflow] sflow collector 1
[*HUAWEI-sflow-collector-1] sflow max-packet-length 5000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >