The display ip netstream cache origin slot command displays sampling information about NetStream IPv4 original flows based on 5-tuple information.
The display ipv6 netstream cache origin slot command displays sampling information about NetStream IPv6 original flows based on 5-tuple information.
display ip netstream cache origin [ source-ip source-ip ] [ source-port source-port ] [ destination-ip destination-ip ] [ destination-port destination-port ] [ protocol { udp | tcp | protocol-number } ] [ time-range from start-time to end-time ] [ source-interface { source-interface-name | source-interface-type source-interface-num } ] [ destination-interface { destination-interface-name | destination-interface-type destination-interface-num } ] slot slot-id
display ipv6 netstream cache origin [ source-ipv6 source-ipv6 ] [ source-port source-port ] [ destination-ipv6 destination-ipv6 ] [ destination-port destination-port ] [ protocol { udp | tcp | protocol-number } ] [ time-range from start-time to end-time ] [ source-interface { source-interface-name | source-interface-type source-interface-num } ] [ destination-interface { destination-interface-name | destination-interface-type destination-interface-num } ] slot slot-id
| Parameter | Description | Value |
|---|---|---|
| source-ip source-ip |
Specifies a source IPv4 address. |
The value is in dotted decimal notation. |
| source-port source-port |
Specifies a source port. |
The value is an integer that ranges from 0 to 65535 . |
| destination-ip destination-ip |
Specifies a destination IPv4 address. |
The value is in dotted decimal notation. |
| destination-port destination-port |
Specifies a destination port. |
The value is an integer that ranges from 0 to 65535. |
| protocol protocol-number |
Specifies a protocol number. |
The value is an integer that ranges from 0 to 255. |
| udp |
Indicates the UDP. |
- |
| tcp |
Indicates the TCP. |
- |
| time-range |
Specifies a time range. |
- |
| from start-time |
Specifies the start time. |
The value is in the format of YYYY/MM/DD,HH:MM:SS. YYYY-MM-DD indicates the year/month/day. The value of YYYY ranges from 1970 to 9999; the value of MM ranges from 1 to 12; the value of DD ranges from 1 to 31. HH:MM:SS indicates the hour:minute:second. The value of HH ranges from 0 to 23; the value of MM and SS ranges from 0 to 59. |
| to end-time |
Specifies the end time. |
The value is in the format of YYYY/MM/DD,HH:MM:SS. YYYY-MM-DD indicates the year/month/day. The value of YYYY ranges from 1970 to 9999; the value of MM ranges from 1 to 12; the value of DD ranges from 1 to 31. HH:MM:SS indicates the hour:minute:second. The value of HH ranges from 0 to 23; the value of MM and SS ranges from 0 to 59. |
| source-interface source-interface-name |
Specifies the source interface name. |
The value is a string of 1 to 255 case-sensitive characters, spaces not supported. |
| source-interface-type |
Specifies the source interface type. |
- |
| source-interface-num |
Specifies the source interface number. |
The value is a string of 1 to 255 case-sensitive characters, spaces not supported. |
| destination-interface destination-interface-name |
Specifies the destination interface name. |
The value is a string of 1 to 255 case-sensitive characters, spaces not supported. |
| destination-interface-type |
Specifies the destination interface type. |
- |
| destination-interface-num |
Specifies the destination interface number. |
The value is a string of 1 to 255 case-sensitive characters, spaces not supported. |
| 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. |
| ipv6 |
Indicates the IPv6 netstream feature. |
- |
| source-ipv6 source-ipv6 |
Specifies a source IPv6 address. |
The value is a 32-bit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
| destination-ipv6 destination-ipv6 |
Specifies a destination IPv6 address. |
The value is a 32-bit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
| ip |
Indicates the IPv4 netstream feature. |
- |
Usage Scenario
To check sampling information about NetStream original flows based on 5-tuple information, run this command.
Precautions
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.
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display ipv6 netstream cache origin protocol udp 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 -------------------------------------------------------------------------- GigabitEthernet0/1/2 GigabitEthernet0/1/1 2222 96 UDP 0 1111 96 0 0 14852667 1901141376 2::2 out 2::2 0 1::2 0 :: UNKNOWN 0 0 0 0 0 0 0 0 0 0.0.0.0 0 0 2020-05-06 16:13:58 2020-05-06 16:16:06 -- 112721 65525:1
<HUAWEI> display ip netstream cache origin protocol udp 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 200 0 UDP 0 100 24 0 0 4170201 417020100 0.0.0.0 in 10.1.1.1 0 10.1.1.2 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 HUAWEI - 65525:1
| Item | Description |
|---|---|
| DstIf | Destination interface. |
| SrcIf | Source interface. |
| DstP | Destination port number. |
| Msk | Source mask or destination mask. |
| Pro | IP bearer protocol type. |
| Tos | Type of Service. |
| SrcP | Source port number. |
| Flags | TCP flag. |
| Ttl | Time to live (TTL). |
| Packets | Number of passed IP packets. |
| Bytes | Number of passed bytes. |
| NextHop | Next hop IP address. |
| Direction | Flow direction:
|
| DstIP | Destination IP address. |
| DstAs | Destination AS number. |
| SrcIP | Source IP address. |
| SrcAs | Source AS number. |
| BGP NextHop | BGP next hop. |
| TopLabelType | Outer label type. |
| TopLabelIpAddress | IP address of the top label. |
| VlanId | VLAN ID of the packet. |
| VniId | VNI ID of the VXLAN tunnel. |
| CreateFlowTime | Time when the flow table was created. |
| LastRefreshTime | Time when the flow table was updated. |
| VPN | Virtual Private Net. |
| FlowLabel | Flow label information. |
| RdValue | RD value. |
| Label | Label value. |
| Exp | EXP value. |
| Bottom | Number of labels. The value 1 indicates that the corresponding label exists. For example, the value of Bottom2 is 1, indicating that the second label of the packet exists. |