The display ip netstream cache slot command displays information about flows in the NetStream IPv4 or MPLS flow buffer.
display ip netstream cache [ source-ip source-ip ] [ source-port source-port ] [ destination-ip destination-ip ] [ destination-port destination-port ] [ protocol { tcp | udp | protocol-number } ] [ time-range from start-time to end-time ] [ interface { interface-name | interface-type interface-num } ] [ type { ipv4 | mpls } ] 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 |
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 |
Specifies the protocol type. |
- |
| tcp |
Specifies the UDP protocol. |
- |
| udp |
Specifies the UDP protocol. |
- |
| protocol-number |
Specifies a protocol number. |
The value is an integer that ranges from 0 to 255. |
| time-range |
Specifies the range of time. |
- |
| 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. |
| interface interface-name |
Specifies interface name. |
- |
| interface-type |
Specifies the interface type. |
- |
| interface-num |
Specifies the interface number. |
- |
| type |
Specifies the flow type. |
- |
| ipv4 |
Specifies the IPv4 flow. |
- |
| mpls |
Specifies the MPLS flow. |
- |
| slot slot-id |
Specifies·the·ID·of·the·slot·where·the·NetStream·service·board·for·displaying·information·about·the·NetStream·flow·buffer·resides. |
- |
Usage Scenario
The display ip netstream cache slot command displays information about original flows in the NetStream flow buffer.
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 ip netstream cache protocol udp slot 1 -------------------------------------------------------------------------------------------------------------------------------------------------------------- Type SrcIP(Sport) DstIP(Dport) Pro Tos Pkts TTL Flag VniId Vlan If(Direct) Label-Exp-S-List -------------------------------------------------------------------------------------------------------------------------------------------------------------- MPLS 10.2.2.3(2000) 10.3.3.3(3000) UDP 0 128 64 0 0 0 GigabitEthernet0/1/0(I) -
| Item | Description |
|---|---|
| Pro | IP bearer protocol type. |
| Tos | Type of Service. |
| Pkts | Average packet length. |
| TTL | Time to live (TTL). |
| Flag | TCP flag. |
| VniId | VNI ID of the VXLAN tunnel. |
| Vlan | VLAN ID of the packet. |
| DstIP | Destination IP address. |
| Dport | Destination port number. |
| SrcIP | Source IP address. |
| Sport | Source port number. |
| Direct | Flow direction:
|
| Label | Label value. |
| Exp | EXP value. |
| S | 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. |