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

CLI-based Configuration Guide - Network Management and Monitoring

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R009

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).
Overview of IP Accounting

Overview of IP Accounting

This section describes the background, types, and concepts of IP accounting.

The Internet technologies and services develop fast. Internet users have high requirements on traffic statistics and analysis. The device's NetStream function provides comprehensive traffic statistics for users. NetStream collects statistics on all network traffic and provides statistics reports; however, it is complex and consumes a lot of resources. IP accounting only collects statistics on IP packets.

Compared to NetStream, IP accounting is easy to configure, provides statistics fast, and occupies a few resources. It effectively implements IP packet statistics with low costs.

IP accounting applies to the IPv4 packets sent and forwarded by a local router.

Type

The device provides common IP accounting and IP precedence accounting.

  • Common IP accounting: collects packet statistics based on source IP addresses, destination IP addresses, protocol numbers, number of packets, number of bytes, and data flow update time. Each data flow is stored as one record in the statistics tables.
  • IP precedence accounting: collects packet statistics based on IP precedences, number of packets, and number of bytes. The packets with the same IP precedence are stored as one record in the statistics tables.

The two IP accounting methods can collect statistics on either incoming and outgoing packets; therefore, you must specify the direction to which IP accounting applies.

NOTE:
IP precedence accounting is implemented based on common IP accounting. To use IP precedence accounting, first enable common IP accounting first, and ensure that they apply to the same direction. For example, to use IP precedence accounting on the packets received by an interface, first enable common IP accounting for the incoming packets on the interface.

Concepts

  • IP accounting rule

    IP accounting rules only apply to common IP accounting, but do not apply to IP precedence accounting.

    An IP accounting rule consists of an IP address and a subnet mask. Each record in the rule table is the AND result between an IP address and a subnet mask. IP accounting matches the source or destination address of an IP packet against the rules. If an IP packet matches a rule, the IP packet information is recorded in the matched table; otherwise, the IP packet information is recorded in the mismatched table.

    For example, a rule consists of IP address 192.168.0.1 and subnet mask 255.255.255.0:

    • The IP packets originating from or destined for network segment 192.168.0.0/24 match the rule, so they are recorded in the matched table.
    • Other packets do not match the rule, so they are recorded in the mismatched table.
    NOTE:

    If you have enabled the common IP accounting function but do not configure IP accounting rules, all packet information is recorded in the mismatched table.

  • Statistics table upper threshold

    There are two types of IP accounting statistics table upper thresholds as follows:

    • Matched table upper threshold: specifies the maximum number of records stored in the matched table.

    • Mismatched table upper threshold: specifies the maximum number of records stored in the mismatched table.

    Statistics about IP precedence accounting are not recorded in matched or mismatched table, but are stored in a dedicated table. This table does not have an upper threshold because only 8 records can be stored in the table to match IP precedence 0-7.

  • Aging time

    The aging time only applies to the matched and mismatched tables of common IP accounting. The records in the statistics table of IP precedence accounting will never be aged out, and must be deleted manually.

    If a statistics record is not updated within the aging time, the record is aged out and deleted.

Translation
Download
Updated: 2019-05-17

Document ID: EDOC1000174072

Views: 109370

Downloads: 346

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