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

Reminder

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

upgrade

CX11x, CX31x, CX710 (Earlier Than V6.03), and CX91x Series Switch Modules V100R001C10 Configuration Guide 13

The documents describe the configuration of various services supported by the CX11x&CX31x&CX91x series switch modules The description covers configuration examples and function configurations.
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).
Principles

Principles

Architecture of an sFlow System

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

Figure 14-56 sFlow system

sFlow Sampling

An sFlow agent provides two sampling modes: flow sampling and counter sampling.

Flow sampling

In flow sampling, an sFlow agent samples packets in one direction or both directions on an interface based on the sampling ratio, and parses the packets to obtain information about packet data content. Flow sampling focuses on traffic details to monitor and parse traffic behaviors on the network.

Table 14-24 Main fields in flow sampling packets

Field

Description

Raw packet

Records the entire packet or part of the packet header. The recorded information is encapsulated in an sFlow packet and sent to the collector.

Ethernet Frame Data

Analyzes Ethernet headers in Ethernet frames. The Ethernet header information is encapsulated in an sFlow packet and sent to the collector.

IPv4 Data

Analyzes IPv4 headers in IPv4 packets. The analyzed IPv4 information is encapsulated in an sFlow packet and sent to the collector.

IPv6 Data

Analyzes IPv6 headers in IPv6 packets. The IPv6 information is encapsulated in an sFlow packet and sent to the collector.

Extended Switch Data

Records VLAN translation and 802.1Q priority mapping information in Ethernet frames. The recorded information is encapsulated in an sFlow packet and sent to the collector. VLAN ID 0 indicates an invalid VLAN.

Extended Router Data

Records routing information for packets. The recorded information is encapsulated in an sFlow packet and sent to the collector.

Counter sampling

An sFlow agent periodically obtains traffic statistics on an interface. Table 14-25 lists the main fields in counter sampling packets. Compared with flow sampling, counter sampling focuses on traffic statistics on an interface rather than traffic details.

Table 14-25 Main fields in counter sampling packets

Field

Description

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

Figure 14-56 shows the 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, and Expanded Counter sample. Expanded Flow sample and Expanded Counter sample are added to sFlow version5 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.

Translation
Download
Updated: 2019-12-13

Document ID: EDOC1000041694

Views: 61243

Downloads: 3623

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next