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.


Configuration Guide - Network Management and Monitoring

S1720, S2700, S5700, and S6720 V200R011C10

This document provides the configurations of network management and monitoring features supported by the product, including SNMP, RMON and RMON2, LLDP, Performance Management, iPCA, NQA, Service Diagnosis, Mirroring, Packet Capture, NetStream, sFlow, TWAMP Light, and NETCONF.

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).
Understanding sFlow

Understanding sFlow

Architecture of an sFlow System

As shown in Figure 12-1, the sFlow system involves an sFlow agent embedded in a Huawei switch or router and a remote sFlow collector. The sFlow agent obtains traffic statistics from an interface using sampling and encapsulates them into sFlow packets. When an sFlow packet buffer overflows or an sFlow packet expires (expiry period 1 second), the agent sends the sFlow packets to the collector. The collector analyzes these sFlow packets and displays traffic statistics in a report.

Figure 12-1  sFlow system

sFlow Sampling

An sFlow agent provides flow sampling and counter sampling.

Flow sampling

With flow sampling, an agent samples ingress packets, egress packets, or both on an interface based on a sampling rate, and parses the packets to obtain information about packet data content.

Table 12-1 describes the data types that may be in an sFlow packet. All information below is encapsulated into an sFlow packet and then sent to a collector.

Table 12-1  Main fields in flow sampling packets



Raw packet

Records the entire packet or part of the packet header.

Ethernet Frame Data

Analyzes Ethernet headers in Ethernet frames.

IPv4 Data

Analyzes IPv4 headers in IPv4 packets.

IPv6 Data

Analyzes IPv6 headers in IPv6 packets.

Extended Switch Data

Records VLAN translation and 802.1Q priority mapping information in Ethernet frames. VLAN ID 0 indicates an invalid VLAN.

Extended Router Data

Records routing information for packets.

Counter sampling

With counter sampling, an agent periodically obtains traffic statistics on an interface. Table 12-2 describes the main fields in counter sampling packets.

Table 12-2  Main fields in counter sampling packets



Generic Interface Counters

Records basic information and traffic statistics on an interface.

Ethernet Interface Counters

Records traffic statistics on an Ethernet interface.

Processor Information

Records CPU usage and memory usage of a device.

sFlow Packet Format

sFlow packets are encapsulated in UDP packets. By default, sFlow packets are transmitted by known port 6343.

sFlow packets use the following packet header formats:
  • Flow sample
  • Expanded Flow sample
  • Counter sample
  • Expanded Counter sample
Expanded Flow sample and Expanded Counter sample are additions in sFlow version 5 and are extensions to Flow sample and Counter sample, but they are not compatible with earlier versions. All expanded sampling packets must be encapsulated with the expanded sampling packet header.
Updated: 2020-02-06

Document ID: EDOC1000178174

Views: 209217

Downloads: 829

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next