< Home

Troubleshooting NetStream

Fault Description

After NetStream is configured, the NSC cannot export the statistics packets to the NDA.

Procedure

  1. Check whether the NSC can parse statistics packets.

    • If the NSC cannot parse statistics packets, run the display netstream all command to check whether the version of the exported packets is the same as the version supported by the NSC. Assume that the NSC supports exported V9 packets.
      • If the version is not V9, run the ip netstream export version 9 command to set the version to V9. To set the exported packet version of aggregation flows, run the export version 9 command in the aggregation view.
      • The NSC can parse V9 packets only after the device exports the V9 template to the NSC. The default interval for exporting a V9 template is 30 minutes. Therefore, check whether the NSC parses V9 packets successfully after 30 minutes, or run the refresh netstream template command to enable the device to immediately export the V9 template to the NSC.
    • If the NSC can parse statistics packets, proceed to step 2.

  2. Verify NetStream configuration.

    Run the display netstream all command to check NetStream configurations.

    <HUAWEI>display netstream all
    system                                                                          
     ip netstream export version 9                                                  
     ip netstream export host 10.1.1.2 6000                                         
     ipv6 netstream export version 9                                                
     ipv6 netstream export host 10.1.1.3 6000                                       
    ip netstream aggregation destination-prefix                                     
     ip netstream export host 10.1.1.5 6000                                         
     enable                                                                         
     export version 9                                                               
                                                                                    
    slot 0                                                                          
    GigabitEthernet0/0/1                                                            
     ip netstream inbound               
    Verify the NetStream configurations according to the following tables:
    • Table 1 shows the configuration criteria for original flows.
    • Table 2 shows the configuration criteria for aggregation flows.
    • The method for checking flexible NetStream configuration is the same as checking the NetStream original flows configuration. Flexible NetStream requires that:
      • The port ip netstream record be run in the interface view.
      • IPv4 or IPv6 NetStream be enabled on the interface.
      • The exported packet version be set to V9.
    Table 1 Configuration criteria of original flows

    Criteria

    Checking Method

    Solution

    NetStream is enabled on the interface.

    Check whether the output contains ip netstream inbound, ip netstream outbound, ipv6 netstream inbound, or ipv6 netstream outbound.

    Original flows are classified into IPv4 and IPv6 flows. To collect statistics on a given type of flow, NetStream must be enabled for that type of flow.

    • To enable NetStream for IPv4 original flows, run the ip netstream { inbound | outbound } command in the interface view.
    • To enable NetStream for IPv6 original flows, run the ipv6 netstream { inbound | outbound } command in the interface view.

    The aging time is set properly.

    Check whether the output contains ip netstream timeout inactive inactive-interval.
    • If so, check whether the value of inactive-interval is properly set.
    • If not, the default aging time is used.

    The default aging time of 30 seconds is recommended.

    To restore the default aging time, run the undo ip netstream timeout inactive command in the system view.

    The destination address and destination port of the exported packets are correctly configured.

    Check whether the output contains ip netstream export host ip-address port-number and ipv6 netstream export host ip-address port-number.

    • To configure NetStream for IPv4 original flows, run the ip netstream export host ip-address port-number command in the system view.
    • To configure NetStream for IPv6 original flows, run the ipv6 netstream export host ip-address port-number command in the system view.
    NOTE:

    The destination is the NSC address.

    Table 2 Configuration criteria of aggregation flows

    Criteria

    Checking Method

    Solution

    Flexible NetStream is configured.

    Check whether the output contains port ip netstream record record-name.

    If flexible NetStream is configured, NetStream for aggregation flows is invalid. Run the undo port ip netstream record command to disable flexible NetStream.

    NetStream is enabled for IPv4 flows on the interface.

    Check whether the output contains ip netstream inbound or ip netstream outbound.

    Currently, only IPv4 flows can be aggregated.

    To enable NetStream, run the ip netstream { inbound | outbound } command in the interface view.

    The aging time is set properly.

    Check whether the output contains ip netstream timeout inactive inactive-interval.
    • If so, check the value of inactive-interval.
    • If not, the default aging time is used.

    The default aging time of 30 seconds is recommended.

    To restore the default aging time, run the undo ip netstream timeout inactive command in the system view.

    Aggregation NetStream is enabled.

    Check whether the output in the NetStream aggregation view contains enable.

    To enable aggregation NetStream, run the enable command in the NetStream aggregation view.

    The destination address and destination port of the exported packets are correctly configured.

    Check whether the output in the NetStream aggregation view contains ip netstream export host ip-address port-number.

    The destination NSC address configured in the aggregation view takes precedence over that configured in the system view. After the destination NSC address is configured:
    • Original flow statistics are exported only to the destination NSC address configured in the system view.
    • Aggregation flows are exported to the destination NSC address configured in the corresponding aggregation view.
    • If no destination NSC address is configured in the aggregation view, aggregation flows are exported to the destination NSC address configured in the system view.

    To configure the destination IP address and destination port number, run the ip netstream export host ip-address port-number command in the NetStream aggregation view.

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