< Home

Configuring a Flexible Flow Statistics Template

Context

You need to configure a flexible flow statistics template and aggregation keywords before applying the template to an interface. To obtain more detailed flow statistics, you can configure whether the flexible flow statistics exported to the NSC contain the number of packets and bytes, indexes of the inbound and outbound interfaces, and TCP flags of a flow.

Procedure

  1. Run the system-view command to enter the system view.
  2. Run the ip netstream record record-name command to create flexible flow statistics template and enter the flexible flow statistics template view.
  3. Run the following commands to configure aggregation keywords for flexible flow statistics:

    • match ip { protocol | dscp | source-address | destination-address | source-port | destination-port | flow-label | ttl }
    • match { vlan | source-mac | destination-mac } { input | output }

  4. (Optional) Run the collect counter { bytes | packets } command to add the number of packets and bytes to the flexible flow statistics exported to the NSC.

    By default, the flexible flow statistics that are exported to the NSC do not contain the number of packets or bytes.

  5. (Optional) Run the collect interface { input | output } command to add the indexes of the inbound and outbound interfaces to the flexible flow statistics exported to the NSC.

    By default, the flexible flow statistics exported to the NSC do not contain the index of the inbound or outbound interface.

  6. (Optional) Run the collect ip tcp-flag command to add the TCP flags of a flow to the flexible flow statistics exported to the NSC.

    By default, the flexible flow statistics exported to the NSC do not contain the TCP flags of a flow.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >