How to configure NetStream original flow statistics exporting on a CE series switch

NetStream collects packet statistics based on flows. After packet sampling, the NetStream module analyzes the sampled packets and creates flows based on key information in packets. The switch stores flows in the buffer and exports statistics about the aging flows to the specified NetStream server. Exporting original flow statistics means that the switch directly exports the flows generated based on key information in packets to a NetStream server. Then the NetStream server obtains details about each flow.

Original flow statistics include IPv4 and IPv6 original flow statistics. The following describes how to export IPv4 original flow statistics.

# Configure NetStream sampling for the incoming and outgoing traffic on 10GE1/0/1 and set the sampling interval to 8192.
system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] netstream sampler random-packets 8192 inbound
[*HUAWEI-10GE1/0/1] netstream sampler random-packets 8192 outbound
[*HUAWEI-10GE1/0/1] quit
[*HUAWEI] commit
# Set the NetStream inactive aging time to 100 seconds. The default active aging time is 30 minutes.
[~HUAWEI] netstream timeout ip inactive 100
[*HUAWEI] commit
# Set the source IP address of the exported packets carrying original flow statistics to 10.1.1.1, destination IP address to 10.1.2.2, and destination port number to 6000.
[~HUAWEI] netstream export ip source 10.1.1.1
[*HUAWEI] netstream export ip host 10.1.2.2 6000
[*HUAWEI] commit
# Enable NetStream original flow statistics collection on 10GE1/0/1.
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] netstream outbound ip
[*HUAWEI-10GE1/0/1] netstream inbound ip
[*HUAWEI-10GE1/0/1] quit
[*HUAWEI] commit

Scroll to top