display netstream cache slot

Function

The display ip netstream cache slot command displays information about various aggregated flows in the NetStream IPv4 flow buffer.

The display ipv6 netstream cache slot command displays information about various aggregated flows in the NetStream IPv6 flow buffer.

Format

display ip netstream cache { source-index-tos | bgp-community } slot slot-id

display { ip | ipv6 } netstream cache { origin | as | as-tos | protocol-port | protocol-port-tos | source-prefix | source-prefix-tos | destination-prefix | destination-prefix-tos | prefix | prefix-tos | mpls-label | vlan-id | bgp-nexthop-tos | index-tos } slot slot-id

display { ip | ipv6 } netstream cache flexflowtpl record-name slot slot-id

display ip netstream cache vni-sip-dip slot slot-id

Parameters

Parameter Description Value
slot-id

Specifies the ID of the slot where the NetStream service board for displaying information about the NetStream flow buffer resides.

The value is a string of 1 to 32 case-sensitive characters, spaces not supported.

ip

Indicates the IPv4 netstream feature.

-

source-index-tos

Displays information about flows aggregated based on the source-index-ToS.

-

bgp-community

Displays information about flows aggregated based on the bgp-community.

-

ipv6

Indicates the IPv6 netstream feature.

-

origin

Displays information about original flows.

-

as

Displays information about flows aggregated based on the AS number.

-

as-tos

Displays information about flows aggregated based on the AS number and ToS.

-

protocol-port

Displays information about flows aggregated based on the protocol number and port number.

-

protocol-port-tos

Displays information about flows aggregated based on the protocol-port-ToS.

-

source-prefix

Displays information about flows aggregated based on the source-prefix.

-

source-prefix-tos

Displays information about flows aggregated based on the source-prefix-ToS.

-

destination-prefix

Displays information about flows aggregated based on the destination IP address and prefix.

-

destination-prefix-tos

Displays information about flows aggregated based on the destination IP address, prefix, and ToS.

-

prefix

Displays information about flows aggregated based on the prefix.

-

prefix-tos

Displays information about flows aggregated based on the prefix and ToS.

-

mpls-label

Displays information about flows aggregated based on the MPLS label.

-

vlan-id

Displays information about flows aggregated based on the VLAN-ID.

-

bgp-nexthop-tos

Displays information about flows aggregated based on the BGP next hop and ToS.

-

index-tos

Displays information about flows aggregated based on the index and ToS.

-

flexflowtpl record-name

Specifies the name of a flexible flow template.

The value is a string of 1 to 32 characters.

vni-sip-dip

Displays information about vni-sip-dip flows.

-

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
forwarding read

Usage Guidelines

Usage Scenario

The display ip netstream cache origin command and display ipv6 netstream cache origin command display information about original flows in the NetStream flow buffer.

The command can be configured only on a physical system (PS).

Precautions

  • If no flow with the specified slot ID is specified in the flow buffer, the command output is empty.
  • In the local ccc forwarding scenario, if the next hop type cannot be obtained, the next hop in IPv6 flow table and the BGP next hop address is displayed as 0.0.0.0.
  • To collect AS number information, you need to specify origin-as or pee-as in the ip/ipv6 netstream export version command.
  • For ICMP/ICMPv6 packets, the value of destination-port is calculated based on the values of Type and Code in ICMP/ICMPv6 packets. Specifically, the value of destination-port is Type x 256 + Code.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display flows aggregated based on IPv4 community attributes in the NetStream flow buffer in slot 1.
<HUAWEI> display ip netstream cache bgp-community slot 1
 DstIf
 SrcIf
 Community1         Community2         Community3         Community4                                                                
 Streams            Packets            Direction                                                                                    
 --------------------------------------------------------------------------
 GI0/1/1
 GI0/1/2
 65536001           0                  0                  0    
 792                6266               in
# Display information about IPv6 original flows in the NetStream flow buffer in slot 1.
<HUAWEI> display ipv6 netstream cache origin slot 1
 DstIf                         
 SrcIf                           
 DstP                          Msk          Pro            Tos 
 SrcP                          Msk          Flags          Ttl
 Packets                                                   Bytes
 NextHop                                                   Direction
 DstIP                                                     DstAs
 SrcIP                                                     SrcAs
 BGP: BGP NextHop                                          TopLabelType
 Label1                        Exp1         Bottom1
 Label2                        Exp2         Bottom2
 Label3                        Exp3         Bottom3
 TopLabelIpAddress                          VlanId         VniId
 CreateFlowTime                LastRefreshTime          VPN
 FlowLabel                     RdValue
 --------------------------------------------------------------------------

 Unknown                                                          
 GigabitEthernet0/1/1                                          
 0                             0            59             0  
 0                             0            0              100
 443426                                                    56758528  
 ::                                                        in
 2001:db8:1::1                                  0         
 2001:db8:2::2                                  0         
 ::                                                        UNKNOWN             
 0                             0            0         
 0                             0            0         
 0                             0            0         
 0.0.0.0                                    0              0
 2018-05-09 11:38:07       2018-05-09 11:40:30           vpn1
 112706                        65525:1
# Display flows aggregated based on the IPv6 AS number in the NetStream flow buffer in slot 1.
<HUAWEI> display ipv6 netstream cache as slot 1
 DstIf 
 SrcIf 
 DstAs      Streams    Packets    Direction     SrcAs   
 --------------------------------------------------------------------------
 GI0/1/0        
 Unknown           0          985988     985988     out           0
# Display information about template record123 in the IPv4 flexible flow buffer in slot 1.
<HUAWEI> display ip netstream cache flexflowtpl record123 slot 1
 DstIf                                                                                                                              
 SrcIf                                                                                                                              
 DstP                          Msk          Pro            Tos                                                                      
 SrcP                          Msk          Flags  
 Packets                                                   Bytes 
 FirstTimeStamp                                            LastTimeStamp      
 NextHop                                                   Direction          
 DstIP                                                     DstAs              
 SrcIP                                                     SrcAs              
 BGP: BGP NextHop                                                                      
 Label1                        Exp1         Bottom1                           
 Label2                        Exp2         Bottom2                           
 Label3                        Exp3         Bottom3                           
 TopLabelIpAddress                          DstVlanId      SrcVlanId           
 -------------------------------------------------------------------------- 
 GigabitEthernet0/1/0                            
 GigabitEthernet0/1/1          
 101                          24           TCP             0              
 100                          24           FIN|RST               
 446453                                                    44645300           
 60458                                                     60501               
 192.168.1.100                                               in                 
 192.168.1.0                                                 0                  
 192.168.1.0                                                 0                   
 -                                                                            
 -                             -            -                                 
 -                             -            -                                  
 -                             -            -                                 
 -                                          0              0
# Display information about the IPv4 original flows and various aggregated flows in the buffer in slot 1.
<HUAWEI> display ip netstream cache origin slot 1
 DstIf                         
 SrcIf                           
 DstP                          Msk          Pro            Tos 
 SrcP                          Msk          Flags          Ttl
 Packets                                                   Bytes
 NextHop                                                   Direction
 DstIP                                                     DstAs
 SrcIP                                                     SrcAs
 BGP: BGP NextHop                                          TopLabelType
 Label1                        Exp1         Bottom1
 Label2                        Exp2         Bottom2
 Label3                        Exp3         Bottom3
 TopLabelIpAddress                          VlanId         VniId
 CreateFlowTime                LastRefreshTime          VPN
 FlowLabel                     RdValue
 --------------------------------------------------------------------------

 Unknown                                                          
 GigabitEthernet0/1/0                                            
 0                             0            253            0
 0                             0            0              60
 3                                                         384       
 0.0.0.0                                                   in
 192.168.1.3                                           0         
 192.168.1.4                                           0         
 0.0.0.0                                                   UNKNOWN             
 0                             0            0         
 0                             0            0         
 0                             0            0         
 0.0.0.0                                    0              0        
 2018-05-09 11:38:07       2018-05-09 11:40:30        vpn1
 -                         -:-

 Unknown                                                          
 GigabitEthernet0/1/1                                            
 0                             0            253            0  
 0                             0            0              60
 1                                                         128       
 0.0.0.0                                                   in
 192.168.1.5                                            0         
 192.168.1.6                                            0         
 0.0.0.0                                                   UNKNOWN             
 0                             0            0         
 0                             0            0         
 0                             0            0         
 0.0.0.0                                    0              0
 2018-05-09 11:38:07       2018-05-09 11:40:30        vpn1
 -                         65525:1
# Display IPv4 flows aggregated based on the AS number in the NetStream flow buffer in slot 1.
<HUAWEI> display ip netstream cache as slot 1
 DstIf   
 SrcIf  
 DstAs      Streams    Packets    Direction     SrcAs   
 --------------------------------------------------------------------------
 GI0/1/0        
 Unknown          0          985988     985988     out           0
Table 1 Description of the display netstream cache slot command output
Item Description
DstIf

Destination interfaces.

SrcIf

Source interfaces.

Streams

Number of aggregated flows.

Packets

Number of passed IP packets.

Direction

Sampling direction.

  • in: inbound direction.
  • out: outbound direction.
DstP

Destination port number.

Msk

Source mask or destination mask.

Pro

Protocol type.

Tos

Service type.

SrcP

Source port number.

Flags

TCP flag.

Ttl

Ttl.

Bytes

Bytes of passed IP packets.

NextHop

Next hop IP address.

DstIP

Destination IP address.

DstAs

Destination AS numbers.

SrcIP

Source IP address.

SrcAs

Source AS numbers.

BGP: BGP NextHop

BGP next hop.

TopLabelType

Type of the outer label.

  • 0x00 UNKNOWN.
  • 0x01 TE-MIDPT.
  • 0x02 ATOM.
  • 0x03 VPN.
  • 0x04 BGP.
  • 0x05 LDP.
TopLabelIpAddress

FEC.

VlanId

The vlan ID of packets.

VniId

The vlan ID of Vxlan tunnel.

CreateFlowTime

Flow table creation time.

LastRefreshTime

Flow table update time.

VPN

Virtual Private Net.

FlowLabel

Flow label information.

RdValue

RD value.

FirstTimeStamp

The time stamp of the first IP packet.

LastTimeStamp

The time stamp of the last IP packet.

DstVlanId

Destination Vlan ID.

SrcVlanId

Source Vlan ID.

Label

Label value.

Exp

EXP value.

Bottom

Stack bottom symbol. The value 1 indicates that the label is a bottom-of-stack label. For example, if the value of Bottom2 is 1, the packet has two labels and the outer label is the bottom-of-stack label.

Community

Community attribute.

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