No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

NE40E V800R010C00 Configuration Guide - System Monitor 01

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Collecting Statistics About MPLS IPv4 Packets

Collecting Statistics About MPLS IPv4 Packets

Collecting packet statistics on MPLS networks helps you monitor MPLS network status.

Usage Scenario

On the network shown in Figure 3-14, a carrier enables NetStream on the P to obtain detailed network application information. The carrier can use the information to monitor abnormal network traffic, analyze users' operation modes, and plan networks between ASs.

If statistics about MPLS packets are collected on the P, the P sends statistics to inform the NetStream Collector (NSC) of the MPLS label-specific traffic volume.

Figure 3-14  Networking diagram for collecting MPLS flow statistics

Context

Before collecting statistics about MPLS IPv4 packets, enable MPLS on the device and interfaces and configure the MPLS network.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Output statistics about MPLS IPv4 packets in the form of original or aggregated flows.

    NOTE:

    MPLS original and aggregated flows can be output in V9 or IPFIX format.

    • Statistics about original flows

      1. Run:

        ip
        netstream mpls-aware { label-only | ip-only | label-and-ip }

        Statistics collection of MPLS packets is enabled.

        One of the following parameters can be configured to sample MPLS packets:

        • label-only: The device samples only MPLS labels, not inner IP packets.

        • ip-only: The device samples only inner IP packets, not MPLS labels.

        • label-and-ip: The device samples both MPLS labels and inner IP packets.

      2. For other configurations, see Collecting Statistics About IPv4 Original Flows.
    • Statistics about aggregated flows

      1. Run:

        system-view

        The system view is displayed.

      2. Run:

        ip netstream aggregation mpls-label

        The NetStream aggregation view is displayed.

      3. For other configurations, see Collecting Statistics About IPv4 Aggregated Flows.

Checking the Configurations

After completing the configuration, run the following commands to verify the configuration.

  • Run the display ip netstream cache origin slot slot-id command to check information about the NetStream buffer.
    <HUAWEI> display ip netstream cache origin slot 1
     DstIf                         
     SrcIf                           
     DstP                          Msk          Pro            Tos 
     SrcP                          Msk          Flags          
     Packets                                                   Bytes
     NextHop                                                   Direction
     DstIP                                                     DstAs
     SrcIP                                                     SrcAs
     BGP: BGP NextHop                                          TopLabelType
     Label1                        Exp1         Bottom1
     Label2                        Exp2         Bottom2
     Label3                        Exp3         Bottom3
     TopLabelIpAddress                          VlanId         VniId
    
     --------------------------------------------------------------------------
    
     Unknown                                                          
     GigabitEthernet1/0/0                                            
     0                             0            253            0
     0                             0            0              
    
     3                                                         384       
     0.0.0.0                                                   in
     192.172.133.151                                           0         
     192.172.131.151                                           0         
     0.0.0.0                                                   UNKNOWN             
     0                             0            0         
     0                             0            0         
     0                             0            0         
     0.0.0.0                                    0              0        
    
    
     Unknown                                                          
     GigabitEthernet1/0/1                                            
     0                             0            253            0  
     0                             0            0              
    
     1                                                         128       
     0.0.0.0                                                   in
     192.173.81.232                                            0         
     192.173.79.232                                            0         
     0.0.0.0                                                   UNKNOWN             
     0                             0            0         
     0                             0            0         
     0                             0            0         
     0.0.0.0                                    0              0
    
    
  • Run the display ip netstream statistics slot slot-id command to check statistics about NetStream flows.
    <HUAWEI> display ip netstream statistics slot 1 
     Netstream statistic information on slot 1:
    
    --------------------------------------------------------------------------------
     length of packets  Number                   Protocol   Number
    --------------------------------------------------------------------------------
     1      ~    64   : 0                        IPV4     : 2779            
     65     ~    128  : 985                      IPV6     : 0            
     129    ~    256  : 1                        MPLS     : 0                   
     257    ~    512  : 360                      L2       : 0                   
     513    ~    1024 : 360                      Total    : 2779           
     1025   ~    1500 : 357                 
     longer than 1500 : 716                
    
    
    --------------------------------------------------------------------------------
    
    --------------------------------------------------------------------------------
     Aggregation   Current Streams       Aged Streams
                   Created Streams       Exported Packets      Exported Streams
    --------------------------------------------------------------------------------
     origin        2                     92                
                   94                    65                    92                
     as            0                     0                    
                   0                     0                     0                   
     as-tos        0                     0                   
                   0                     0                     0                   
     protport      0                     0                   
                   0                     0                     0                   
     protporttos   0                     0                   
                   0                     0                     0                   
     srcprefix     0                     0               
                   0                     0                     0               
     srcpretos     0                     0               
                   0                     0                     0               
     dstprefix     0                     0                   
                   0                     0                     0                   
     dstpretos     0                     0                   
                   0                     0                     0                   
     prefix        0                     0               
                   0                     0                     0               
     prefix-tos    0                     0               
                   0                     0                     0                
     mpls-label    0                     0                    
                   0                     0                     0                    
     vlan-id       0                     0                    
                   0                     0                     0                    
     bgp-nhp-tos   0                     0                   
                   0                     0                     0                   
     index-tos     0                     0                   
                   0                     0                     0                   
     src-index-tos 0                     0                   
                   0                     0                     0                   
     bgp-community                       0                     0                                                                        
                   0                     0                     0                                                                        
     vni-sip-dip                         0                     0                                                                        
                   0                     0                     0                                                                        
     system: bbbb                        0                     0                                                                
                   0                     0                     0                                                                
     aaaa                                0                     0                                                                        
                   0                     0                     0                                                                        
     bbbb                                0                     0                                                                                                                                           
     all-aggre     2                     92                    0                                                                
                   94                    65                    92                                                                
    --------------------------------------------------------------------------------                     
     srcprefix = source-prefix,   srcpretos = source-prefix-tos,
     dstprefix = destination-prefix,   dstpretos = destination-prefix-tos,
     protport = protocol-port,   protporttos = protocol-port-tos,
     src-index-tos = source-index-tos,   all-aggre = all aggregation streams
     "---" means that the current board is not supported.
  • Run the display netstream { all | global | interface interface-type interface-number } command to check NetStream configurations in different views.
    <HUAWEI> display netstream all
    system
    ip netstream export version 9 origin-as
    ip netstream timeout active 50
    ip netstream timeout inactive 10
    ip netstream export source 10.1.1.1
    ip netstream export host 4.4.4.4 10000
    ip netstream aggregation as
     enable
     export version 9
     ip netstream export source 1.1.1.2
     ip netstream export host 3.3.3.3 555
     ip netstream export host 1.1.1.2 55
    slot 1
    interface GigabitEthernet1/0/3
     ip netstream sampler fix-packets 1000 inbound
    Slot
     Slot 1:ip netstream sampler to slot 2
Download
Updated: 2018-07-12

Document ID: EDOC1100028538

Views: 28084

Downloads: 213

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next