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

Configuration Guide - Network Management and Monitoring

CloudEngine 8800, 7800, 6800, and 5800 V200R005C10

This document describes the configurations of Network Management and Monitoring, including SNMP, RMON, NETCONF, OpenFlow, LLDP, NQA, Mirroring, Packet Capture, Packet Trace, Path and Connectivity Detection Configuration, NetStream, sFlow, and iPCA.
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).
Configuring an sFlow Sampling Mode

Configuring an sFlow Sampling Mode

Context

An sFlow agent provides two sampling modes:

  • Flow sampling: An sFlow agent samples packets in a direction on a specified interface based on a sampling rate, encapsulates the analysis result into sFlow packets, and then sends the sFlow packets to an sFlow collector.
  • Counter sampling: An sFlow agent periodically collects traffic statistics on the interfaces, processor, and memory. It encapsulates the collected information into sFlow packets, and sends the sFlow packets to an sFlow collector.

Flow sampling and counter sampling are independent of each other. Flow sampling obtains information about the flows of a specified service, whereas counter sampling obtains the traffic statistics on an interface. It is recommended that both sampling modes be configured.

Procedure

  • Configure flow sampling.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. Run sflow sampling { collector { collector-id } &<1-2> | rate rate | length { length | head-only } | inbound | outbound } *

      Flow sampling is configured.

      By default, flow sampling is not configured for interfaces.

      The collector-id parameter and sampling direction must be specified; otherwise, the sFlow function does not take effect.

      NOTE:
      • With the exception of the CE6870EI and CE6875EI, the Layer 2 subinterfaces of CE switches do not support the flow sampling rate. If a flow sampling rate is configured on the main interface corresponding to such a Layer 2 subinterface, the Layer 2 subinterface uses this configured sampling rate. If a flow sampling rate is not configured on the main interface, the Layer 2 subinterface uses the default sampling rate: 8192.

      • Only the CE6870EI and CE6875EI support outbound flow sampling on Layer 2 subinterfaces.

      • When the assign forward enp sflow enable command is run to enable the CE6875EI to perform sFlow sampling in enhanced mode, the maximum sFlow sampling rate is 65535. If you set the sampling rate to be larger than 65535, the switch automatically restores it to 65535.

    4. Run quit

      Exit from the interface view.

    5. (Optional) Run sflow sampling local-host packet-type arp inbound [ rate rate ]

      The switch is configured to sample the ARP packets sent to the CPU.

      By default, the switch does not sample the ARP packets sent to the CPU.

      When this command is executed, the switch samples the ARP packets sent to the CPU, encapsulates the ARP packets into sFlow packets, and sends the packets to the sFlow Collector. The sFlow Collector checks whether the network has a loop based on the sFlow packets. Different sFlow Collectors use different conditions. Look up the details in sFlow Collector's manual. For example, when an AC detects repeated ARP packets, it considers that a loop occurs.

      NOTE:

      The CE6870EI and CE6875EI do not support sampling for ARP packets sent to the CPU.

    6. Run commit

      The configuration is committed.

  • Configure counter sampling.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. Run sflow counter { collector { collector-id } &<1-2> | interval interval } *

      Counter sampling is configured.

      By default, counter sampling is not configured on interfaces.

      The collector-id parameter must be specified; otherwise, the sFlow function does not take effect.

      NOTE:

      When the assign forward enp sflow enable command is run to enable the CE6875EI to perform sFlow sampling in enhanced mode, the maximum sFlow sampling interval is 65535. If you set the sampling interval to be larger than 65535, the switch automatically restores it to 65535.

    4. Run commit

      The configuration is committed.

Translation
Download
Updated: 2019-04-20

Document ID: EDOC1100075365

Views: 36376

Downloads: 123

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