This section describes how to configure 5-tuple packet discarding statistics using the CLI.
To configure 5-tuple packet discarding statistics can affect the device performance to some extent, please be cautious.
After locating network problems is complete, please stop collecting packet drop statistics and clear configuration.
The acl-number of an advanced ACL ranges from 3000 to 3999.
If you run the firewall statistics acl acl-number command for multiple times, the configuration at the last time takes effect.
Run the firewall statistics acl acl-number timeout aging-time [ all-systems ] enable command to enable the IPv4 5-tuple packet statistics function and sets the packet statistics aging time.
Run the firewall ipv6 statistics acl acl-number [ timeout aging-time ] [ all-systems ] enable command to enable the IPv6 5-tuple packet statistics function and sets the packet statistics aging time.
By default, the 5-tuple packet statistics collection function is disabled. The configured statistics collection condition range is large, which affects the device performance. Therefore, you are advised to configure a refined IP address or port number.
Run the firewall statistics tunnel-protocol gre enable command to enable 5-tuple packet statistics collection for GRE inner packets. After that, you can view statistics about GRE inner packets (5-tuples of original packets). Outer GRE packets are not counted. This enables you to view key information about GRE packets, helping you locate and analyze faults.
By default, 5-tuple packet statistics collection for GRE inner packets is disabled. That is, only statistics on outer packets are collected.
The FW also supports the display firewall statistics acl fast-forwarding command to display statistics on hardware fast forwarded IPv4 packets.
After fault location ends, run the undo firewall statistics acl command to disable the 5-tuple packet statistics collection function to prevent adverse impact on the device performance.