Packet sampling takes samples of incoming and outgoing traffic in adjustable intervals so that only the statistics of sampled packets are collected. This reduces the impact of NetStream on device performance and the statistics show the flow status of the entire network.
The switch supports packet-based regular sampling. In this mode, one packet is sampled out of a fixed number of packets. For example, if the number of packets is set to 100 and packet sampling starts from the 5th packet, the 105th packet is sampled and so on. This mode is applicable to accounting based on traffic volume.
The NetStream sampling ratio is related to the packet processing capability of NetStream, number of interfaces with NetStream sampling configured, sampling direction, interface rate, and average packet length on the network.
The minimum NetStream sampling ratio is calculated as follows:
When NetStream sampling is configured only in the outbound or inbound direction, the forwarding bandwidth (in Gbit/s) is calculated as follows:
Forwarding bandwidth = Number of interfaces with NetStream sampling configured x Interface rate
When NetStream sampling is configured in both the outbound and inbound directions, the forwarding bandwidth is calculated as follows:
Forwarding bandwidth = Number of interfaces with NetStream sampling configured x Interface rate x 2
For example, when NetStream sampling is configured on four XGE interfaces in the inbound direction and on another six XGE interfaces in the outbound and inbound directions, and these interfaces work at the maximum rate, the forwarding bandwidth is 160 (4 x 10 + 6 x 10 x 2) Gbit/s.