No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.

Troubleshooting Guide
CloudEngine 16800, 12800, 12800E, 8800, 7800, 6800, and 5800 Series Switches
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
How Do I Configure NetStream?

How Do I Configure NetStream?

CE switches provide the NetStream feature to collect statistics on original flows, aggregation flows, flexible flows, and Layer 2 flows. The following describes how to configure NetStream to collect statistics on IPv4 original flows. For details about how to configure NetStream to collect statistics on other types of flows, see the CE switch product documentation.

# Set the NetStream sampling rate. Set the sampling rate in both the inbound and outbound directions of 10GE1/0/1 to 8192.
<HUAWEI> 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
# Set the NetStream flow aging mode and aging time. Set the inactive aging time to 100 seconds and enable FIN- and RST-based aging.
[*HUAWEI] netstream timeout ip inactive 100
[*HUAWEI] netstream timeout ip tcp-session
# Set the source IP address, destination IP address, and destination port number of the exported packets carrying original flow statistics.
[*HUAWEI] netstream export ip source
[*HUAWEI] netstream export ip host 6000
# Set the version of exported NetStream packets.
[*HUAWEI] netstream export ip version 9
# Enable NetStream statistics collection on 10GE1/0/1 for incoming and outgoing packets.
[*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
Updated: 2020-01-07

Document ID: EDOC1000060766

Views: 656445

Downloads: 3042

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next