The ipv6 netstream sampler command configures packet sampling for IPv6 packets on an interface.
The undo ipv6 netstream sampler command restores the default setting.
By default, an interface uses the packet-based regular sampling and the sampling ratio is 1000.
ipv6 netstream sampler fix-packets packet-interval { inbound | outbound }
undo ipv6 netstream sampler [ fix-packets packet-interval ] { inbound | outbound }
Parameter |
Description |
Value |
---|---|---|
fix-packets packet-interval |
Indicates the sampling ratio for packet-based regular sampling. |
The value is an integer that ranges from 1 to 65535. NOTE:
For the S5730-HI, S5731-H, S5731-S, S5731S-H, and S5731S-S, setting the sampling ratio to 1 affects the forwarding performance and can be performed on a maximum of eight interfaces. For details about how to calculate a sampling ratio, see NetStream Packet Sampling under the "NetStream Configuration" chapter in the S2720, S5700, and S6700 V200R019C10 Configuration Guide - Network Management and Monitoring. |
inbound |
Samples incoming traffic on an interface. |
- |
outbound |
Samples outgoing traffic on an interface. |
- |
GE interface view, XGE interface view, MultiGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view
Usage Scenario
You can set an interval for sampling packets so that only statistics about sampled packets are collected. The statistics show the flow status on the entire network. The sampling function reduces impact of NetStream on device performance.
Precautions
You must run the ipv6 netstream sampler command together with the ipv6 netstream command. If you run only the ipv6 netstream sampler command, the command does not take effect.
If you run the ipv6 netstream sampler command multiple times in the same view, only the latest configuration takes effect.