Configuring NetStream Sampling
Context
You can set the intervals for sampling packets so that only statistics of sampled packets are collected. The statistics show the flow status on the entire network. The sampling function reduces the impact of NetStream on device performance.
When there is little network traffic, you can set a traffic suppression ratio instead of sampling. The device does not create flow tables for the traffic within the traffic suppression ratio.
Procedure
- Run the system-view command to enter the system view.
- Run the interface interface-type interface-number command to enter the interface view.
- (Optional) Run the ip netstream
suppress suppress-rate { inbound | outbound } command
to set the suppression ratio.
By default, the suppression ratio on an interface is 1000.
Only E series cards (except ET1D2X48SEC0 card) support this command.
- Run the ip netstream sampler fix-packets packet-interval { inbound | outbound } command to configure IPv4
packet sampling on the interface.
By default, an interface uses the packet-based regular sampling and the sampling ratio is 1000.