Outputting Aggregated Flows

To ensure that aggregated flows are correctly output to the NMS, specify the aging time, output format, and source and destination addresses for aggregated flows.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run ip netstream export host [ ipv6 ] ip-address port [ vpn-instance vpn-instance-name ] [ dscp dscp-value ]

    The destination IP address and UDP port number of the peer NSC are specified for NetStream original flows to be output.

    If the destination IP addresses are specified in both the system and the aggregation views, the configuration in the aggregation view takes effect.

  3. Run ip netstream aggregation { as | as-tos | bgp-nexthop-tos | destination-prefix | destination-prefix-tos | index-tos | mpls-label | prefix | prefix-tos | protocol-port | protocol-port-tos | source-prefix | source-prefix-tos | source-index-tos | vlan-id | bgp-community | vni-sip-dip}

    The IPv4 NetStream aggregation view is displayed.

  4. Run enable

    The NetStream aggregation mode is enabled.

  5. (Optional) Run export version { 8 | 9 | ipfix }

    The output format is specified for the aggregated flows. Flows aggregated in as, as-tos, destination-prefix, destination-prefix-tos, prefix, prefix-tos, protocol-port, protocol-port-tos, source-prefix, or source-prefix-tos mode are output in V8 format by default. You can specify the output format for aggregated flows as needed.

    For the vlan-id, bgp-nhp-tos, vni-sip-dip, and index-tos aggregation modes, aggregated packets can be encapsulated only in the default V9 format. You can change the format to IPFIX using the export version command.

  6. (Optional) Run template timeout-rate timeout-interval

    The interval at which the template for outputting aggregated flows in the V9 or IPFIX format is refreshed is set.

  7. Run ip netstream export source { ip-address | ipv6ipv6-address } [ port ]

    The source IP address and source port are specified for aggregated flows.

    The source IP address and source port specified in the aggregation view take precedence over that specified in the system view. If no source IP address or source port is specified in the aggregation view, the source IP address and source port specified in the system view take effect.

  8. Run ip netstream export host { ip-address | ipv6 ipv6-address } port [ vpn-instance vpn-instance-name ] [ vpn-instance vpn-instance-name ] [ dscp dscp-value ]

    The destination IP address and UDP port number of the peer NSC are specified for NetStream original flows to be output.

    The destination IP address specified in the NetStream aggregation view takes precedence over that specified in the system view.

  9. Run quit

    Return to the system view.

  10. (Optional) Configure NetStream packets to carry the flow sequence field.

    1. Run slotslot-id

      The view of the slot in which the interface board for NetStream sampling resides is displayed.

    2. Run ip netstream export sequence-mode flow

      The NetStream export sequence mode is set to flow.

      The command applies to the V9 format only.

    3. Run quit

      Return to the system view.

  11. (Optional) Set parameters for aging aggregated flows.

  12. (Optional) Exit the IPv4 aggregated configuration mode view. In the system view, run ip netstream export template sequence-number fixed

    The sequence numbers of template packets and option template packets in IPFIX format are configured to remain unchanged, but data packets and option data packets in IPFIX format are still consecutively numbered.

  13. Run commit

    The configuration is committed.

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