< Home

ip netstream sampler

Function

The ip netstream sampler command enables NetStream to sample the incoming packets.

The undo ip netstream sampler command disables NetStream from sampling the incoming packets.

By default, each incoming packet is not sampled, that is each packet participates in NetStream flow creation and counting.

Format

{ ip | ipv6 } netstream sampler fix-packets packet-interval inbound

undo { ip | ipv6 } netstream sampler fix-packets packet-interval inbound

Parameters

Parameter Description Value

ip

Indicates an IPv4 data flow.

-

ipv6

Indicates an IPv6 data flow.

-

fix-packets packet-interval

Specifies the packet interval for sampling packets.

The value is an integer ranging from 1 to 65535. By default, the value is 30.

inbound

Indicates the NetStream monitoring service deployed in the inbound direction of the interface.

-

Views

System view and interface view

Default Level

3: Management level

Usage Guidelines

Management does not support this command.

For an interface with a high rate, if NetStream sampling is not configured, each packet participates in NetStream flow creation and counting, which greatly affects device performance. In this case, you need to configure NetStream sampling and reduce the sampling ratio to minimize the impact on device performance.

Example

# Configure NetStream to sample the incoming IPv4 packets every 1000 packets.

<sysname> system-view
[sysname] interface GigabitEthernet 0/0/0
[sysname-GigabitEthernet0/0/0] ip netstream sampler fix-packets 1000 inbound
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >