(Optional) Adjusting the AS Field Mode and Interface Index Type

Before the NetStream Collector (NSC) can properly receive and parse NetStream packets output by the NetStream Data Exporter (NDE), the AS field modes and interface index types configured on the NDE must be the same as those on the NSC.

Context

Before you enable the NSC to properly receive and parse NetStream packets output by the NDE, specify the same AS field mode and interface index type on the NDE and NSC.
  • AS field mode: The length of the AS field in IP packets can be set to 16 bits or 32 bits. Devices on a network must use the same AS field mode. An AS field mode inconsistency causes NetStream to fail to sample inter-AS traffic.

    If the 32-bit AS field mode is used, the NMS must identify the 32-bit AS field. If the NMS cannot identify the 32-bit AS field, the NMS fails to identify inter-AS traffic sent by devices.

  • Interface index: The NMS uses an interface index carried in a NetStream packet output by the NDE to query information about the interface that sends the packet. The interface index can be 16 or 32 bits long. The index length is determined by NMS devices of different vendors. Therefore, the NDE must use a proper interface index type that is also supported by the NMS. For example, if the NMS can parse 32-bit interface indexes, set the format of the interface indexes contained in output NetStream packets to 32-bit.

    Compared with the default 16-bit interface index, the 32-bit interface index can be identified by more third-party NMSs.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run ipv6 netstream as-mode { 16 | 32 }

    The AS field mode is specified on the router.

  3. Run ipv6 netstream export index-switch { 16 | 32 }

    The type of the interface index carried in the NetStream packet output by the router is specified.

    An interface index can be changed from 16 bits to 32 bits only after the following conditions are met:
    • Original flows are output in V9 or IPFIX format.
    • Aggregated flows are output in V9 or IPFIX format.

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