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.
{ ip | ipv6 } netstream sampler fix-packets packet-interval inbound
undo { ip | ipv6 } netstream sampler fix-packets packet-interval inbound
| 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. |
- |
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.