Manufacturer: Huawei
Model(s): AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, AR3600
Version(s): V200R009C00
URL: https://support.huawei.com/enterprise/en/doc/EDOC1000174072/23634fe7/netstream-configuration
Notes: 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.
Configuration steps
Configuring interface-based NetStream sampling
- Run system-view
- Run interface interface-type interface-number [.subinterface-number ]
- Run ip netstream sampler fix-packets By default, the packet-based regular sampling is used. The default packet sampling rate is 100.
Configuring NetStream Flow Aging
- Run the system-view command to enter the system view.
- Run the ip netstream timeout active active-interval command to set the active aging time of IPv4 flows. Set the active-interval to 1 minute. By default, the active aging time of IPv4 flows is 30 minutes.
- Run the system-view command to enter the system view.
- Run the ip netstream timeout inactive inactive-interval command to set the inactive time of IPv4 flows. Set the inactive-interval to 15 seconds. By default, the inactive aging time of IPv4 flows is 30 seconds.
Configuring NetStream Settings
- Run the system-view command to enter the system view.
- Run the ip netstream export version version command to set the version of the exported packets carrying original flow statistics. V5, V8, V9, and V10 are supported, set the version to V9 or V10.
- Run the ip netstream export source ip-address command to configure the source address of the exported packets carrying original flow statistics.
- Run the ip netstream export host ip-address port-number [ vpn-instance vpn-instance-name ] command to configure the destination IP address and destination UDP port number of the exported packets carrying original flow statistics. The export host IP address is the IP address of the Scrutinizer collector. Depending on the NetStream version you set the port number can vary. V9 typically uses 2055 while V10 uses 4739, set accordingly.
- Run system-view
- Run interface interface-type interface-number [.subinterface-number ]
- Run ip netstream{ inbound | outbound }
The NetStream function is enabled on the interface to collect statistics about IPv4 flows.
Note: Repeat steps 13 and 14 for every interface that are to collect statistics for NDE.