< Home

Configuring the Output Format of Packets

This section describes how to configure NetStream to output statistics packets in the version 5 or 9 format.

Context

Currently, the NetStream function of the FW supports two versions of the output packets, namely, 5 and 9. Version 9 provides users with a template for you to customize the statistics factors according to actual requirements, ensuring the flexibility of the statistics output.

  • Version 5: The original data flow is generated on the basis of the 7-tuple. The format of packets is fixed and hard to extend. Version 5 does not support the statistic output on the BGP next hop.
  • Version 9: Based on the template, version 9 ensures that the output of statistics is more flexible and can be used to output the data of various format combinations. Version 9 supports the statistic output of MPLS and the BGP next hop.

Procedure

  1. Access the system view.

    system-view

  2. Configure the format of output packets.

    • IPv4:
      ip netstream export version version [ origin-as | peer-as ] [ bgp-nexthop ]

      The default format is version 5 with the AS option as peer-as. The output does not contain the BGP next hop.

    • IPv6:
      ipv6 netstream export version version [ origin-as | peer-as ]

      IPv6 original streams can be exported in V9 format.

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