Outputting Original Flows

To ensure that original flows can be correctly output to the NMS, configure the aging time, output format, and source and destination addresses for original flows.

Procedure

  1. Run system-view

    The system view is displayed.

  2. (Optional) Run ip netstream export version { 5 [ origin-as | peer-as ] | 9 [ origin-as | peer-as ] [ bgp-nexthop ] [ ttl ] [ route-distinguisher ] | ipfix [ origin-as | peer-as ] [ bgp-nexthop ] [ ttl ] }

    The output format of original flows is configured.

    NetStream original flow packets support V5 and V9 as well as IPFIX packet formats. V5, IPFIX, and V9 packet formats are mutually exclusive.

    The V9 format allows the output original flows to carry more variable statistics, to expand newly defined flow elements more flexibly, and to generate new records more easily.

    Compared with the V9 format, the IPFIX format improves packet extensibility and compatibility, security, and reliability. In addition, the IPFIX format has an enterprise identifier field added. When setting this field, you must use the IPFIX format for outputting NetStream IPv4 original flows.

    The V5 format is fixed, and the system cost is low. In most cases, NetStream original flows are output in V5 format. In any of the following situations, NetStream original flows must be output in V9 format or IPFIX:
    • NetStream original flows need to carry BGP next-hop information.

    • Interface indexes carried in the output NetStream original flows need to be extended from 16 bits to 32 bits.

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

    1. Run slot slot-id

      The view of the slot where 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

      The system view is displayed.

  4. (Optional) 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.

  5. (Optional) Run ip netstream export template timeout-rate timeout-interval

    The interval at which the template for outputting original flows in the V9 or IPFIX format is updated.

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

    The source IP address and source port number are specified for original flows.

  7. In the system or slot view, specify the destination IP address and UDP port number of the peer NSC for original flows to be output.

    • In the system view:

      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 original flows to be output.

    • In the slot view:

      1. Run slot slot-id

        The view of the slot where the interface board for NetStream sampling resides 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 original flows to be output.

      3. Run quit

        The system view is displayed.

  8. (Optional) Set parameters for aging original flows as needed.

    • Run ip netstream timeout active { active-interval | interval-second active-interval-second }

      The active aging time is set for NetStream original flows.

    • Run ip netstream timeout inactive inactive-interval

      The inactive aging time is set for NetStream original flows.

  9. Run commit

    The configuration is committed.

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