- Table of Contents
-
- 14-Network Management and Monitoring Command Reference
- 00-Preface
- 01-System maintenance and debugging commands
- 02-NQA commands
- 03-iNQA commands
- 04-iFIT commands
- 05-SRPM commands
- 06-NTP commands
- 07-PTP commands
- 08-Network synchronization commands
- 09-SNMP commands
- 10-RMON commands
- 11-NETCONF commands
- 12-CWMP commands
- 13-EAA commands
- 14-Process monitoring and maintenance commands
- 15-Sampler commands
- 16-Mirroring commands
- 17-NetStream commands
- 18-IPv6 NetStream commands
- 19-TCP connection trace commands
- 20-Performance management commands
- 21-Flow log commands
- 22-Information center commands
- 23-Packet capture commands
- 24-Flow monitor commands
- Related Documents
-
Title | Size | Download |
---|---|---|
18-IPv6 NetStream commands | 218.66 KB |
Contents
display ipv6 netstream cache archive
display ipv6 netstream template
ipv6 netstream (interface view)
ipv6 netstream cache archive enable
ipv6 netstream export host (IPv6 NetStream aggregation mode view)
ipv6 netstream export host (system view)
ipv6 netstream export template refresh-rate
ipv6 netstream outbound srv6-policy
ipv6 netstream srv6 inner-packet
ipv6 netstream timeout inactive
reset ipv6 netstream statistics
IPv6 NetStream commands
display ipv6 netstream cache
Use display ipv6 netstream cache to display IPv6 NetStream entry information.
Syntax
display ipv6 netstream cache [ verbose ] [ type { ip | ipl2 | l2 | mpls [ label-position1 label-value1 [ label-position2 label-value2 [ label-position3 label-value3 ] ] ] } ] [ destination destination-ip | destination-port destination-port | interface interface-type interface-number | protocol protocol | source source-ip | source-port source-port ] * [ arrived-time start-date start-time end-date end-time ] [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
verbose: Displays detailed information about IPv6 NetStream entries. If you do not specify this keyword, this command displays brief information about IPv6 NetStream entries.
type: Specifies the IPv6 NetStream entry type. If you do not specify this keyword, this command displays information about all types of IPv6 NetStream entries.
ip: Specifies IP NetStream entries.
ipl2: Specifies IPv6 NetStream entries for Layer 2 flows with IPv6 protocol information.
l2: Specifies Layer 2 NetStream entries.
mpls: Specifies MPLS NetStream entries.
label-position1 label-value1: Specifies a label by its position and value. The value range for the label-position1 argument is 1 to 10, representing labels from the innermost to the outermost. The value range for the label-value1 argument is 0 to 1048575.
label-position2 label-value2: Specifies a label by its position and value. The value range for the label-position2 argument is 1 to 10 except for specified labels, representing labels from the innermost to the outermost. The value range for the label-value2 argument is 0 to 1048575.
label-position3 label-value3: Specifies a label by its position and value. The value range for the label-position3 argument is 1 to 10 except for specified labels, representing labels from the innermost to the outermost. The value range for the label-value3 argument is 0 to 1048575.
destination destination-ipv6: Specifies a destination IPv6 address. If you specify this option, this command does not display Layer 2 NetStream entries.
destination-port destination-port: Specifies a destination port number in the range of 0 to 65535. If you specify this option, this command does not display Layer 2 NetStream entries.
interface interface-type interface-number: Specifies an interface by its type and number.
protocol protocol: Specifies a protocol by its number in the range of 0 to 255 or by its name such as GRE, OSPF, TCP, or UDP. If you specify this option, this command does not display Layer 2 NetStream entries.
source source-ipv6: Specifies a source IPv6 address. If you specify this option, this command does not display Layer 2 NetStream entries.
source-port source-port: Specifies a source port number in the range of 0 to 65535. If you specify this option, this command does not display Layer 2 NetStream entries.
arrived-time: Specifies an arrived time range to display IPv6 NetStream entries. If you do not specify this keyword, the arrived time is not used as a criterion for filtering the IPv6 NetStream entries to be displayed.
start-date: Specifies the start date in the format of MM/DD/YYYY or YYYY/MM/DD, where MM is in the range of 1 to 12 and YYYY is in the range of 2000 to 2035. The value range for DD varies by the value of MM.
start-time: Specifies the start time in the format of HH:MM:SS, where HH is in the range of 0 to 23, MM and SS are in the range of 0 to 59. The SS element can be omitted if its value is 00. Both the SS and MM elements can be omitted if their values are 0. For example, the start time of 0 indicates 00:00:00.
end-date: Specifies the end date in the format of MM/DD/YYYY or YYYY/MM/DD, where MM is in the range of 1 to 12 and YYYY is in the range of 2000 to 2035. The value range for DD varies by the value of MM.
end-time: Specifies the end time in the format of HH:MM:SS, where HH is in the range of 0 to 23, MM and SS are in the range of 0 to 59. The SS element can be omitted if its value is 00. Both the SS and MM elements can be omitted if their values are 0. For example, the end time of 0 indicates 00:00:00.
slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays information about IPv6 NetStream entries on all cards.
Examples
# Display detailed information about IPv6 NetStream entries.
<Sysname> display ipv6 netstream cache verbose
IPv6 NetStream cache information:
Active flow timeout : 60 min
Inactive flow timeout : 10 sec
Max number of entries : 1000
IPv6 active flow entries : 1
MPLS active flow entries : 0
IPL2 active flow entries : 0
IPv6 flow entries counted : 10
MPLS flow entries counted : 20
IPL2 flow entries counted : 20
Last statistics resetting time : 01/01/2000 at 00:01:02
IPv6 packet size distribution (1103746 packets in total):
1-32 64 96 128 160 192 224 256 288 320 352 384 416 448 480
.249 .694 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000
512 544 576 1024 1536 2048 2560 3072 3584 4096 4608 >4608
.000 .000 .027 .000 .027 .000 .000 .000 .000 .000 .000 .000
Protocol Total Packets Flows Packets Active(sec) Idle(sec)
Flows /sec /sec /flow /flow /flow
--------------------------------------------------------------------------
TCP-Telnet 2656855 372 4 86 49 27
TCP-FTP 5900082 86 9 9 11 33
TCP-FTPD 3200453 1006 5 193 45 33
TCP-WWW 546778274 11170 887 12 8 32
TCP-other 49148540 3752 79 47 30 32
UDP-DNS 117240379 570 190 3 7 34
UDP-other 45502422 2272 73 30 8 37
ICMP 14837957 125 24 5 12 34
IP-other 77406 5 0 47 52 27
Type DstIP(Port) SrcIP(Port) Pro TC FlowLbl If(Direct) Pkts
DstMAC(VLAN) SrcMAC(VLAN)
TopLblType(IP/MASK) Lbl-Exp-S-List
--------------------------------------------------------------------------
IP 2001::1(1024) 2002::1(21) 6 0 0x6000 XGE3/0/1(I) 42996
TCPFlag: 27 TTL: 64
DstMask: 24 SrcMask: 24 NextHop: 0.0.0.0
DstAS: 0 SrcAS: 0 BGPNextHop: 0.0.0.0
InVRF: mvpn
Bgp-community1: 0
Bgp-community2: 0
Bgp-community3: 0
Bgp-community4: 0
SamplerMode:Random SamplerInt: 256
Active: 120.600 Bytes/Pkt: 152
First packet arrived: 10/28/2013, 14:10:03
Last packet arrived: 10/28/2013, 14:21:03
SRv6 policy NID: 2150629379
Field |
Description |
Active flow timeout |
Aging timer for active flows, in minutes. |
Inactive flow timeout |
Aging timer for inactive flows, in seconds. |
Max number of entries |
Maximum number of IPv6 flows allowed in the cache. |
IPv6 active flow entries |
Number of active IPv6 flows in the cache. |
MPLS active flow entries |
Number of active IPv6 MPLS flows in the cache. |
IPL2 active flow entries |
Number of active Layer 2 flows with IPv6 protocol information. |
IPv6 flow entries counted |
Number of IPv6 flows that have been counted. |
MPLS flow entries counted |
Number of MPLS flows that have been counted. |
IPL2 flow entries counted |
Number of Layer 2 flows (with IPv6 protocol information) that have been counted. |
Last statistics resetting time |
Last time the reset ipv6 netstream statistics command was executed. This field displays Never if you have never executed this command. |
IPv6 packet size distribution (1103746packets in total): |
Distribution of IPv6 packets by packet size, and the bracketed number is the total number of IPv6 packets. The value is displayed in the proportion of the number of IPv6 packets of the specified sizes to the total number of IPv6 packets. The value is displayed with three decimal places. |
1-32 64 96 128 160 192 224 256 288 320 352 384 416 448 480 512 544 576 1024 1536 2048 2560 3072 3584 4096 4608 >4608 |
Range of IPv6 packet length (excluding data link layer header). · For the values in the range of 1 to 576 bytes, the range increases in the step of 32 bytes. For example, 1-32 shows the number of packets with the size of 1 to 32 bytes. 64 shows the number of packets with the size of 33 to 64 bytes. · For the values greater than 1024 bytes, the range increases in the step of 512 bytes. For example, 1536 shows the number of packets with the size of 1025 to 1536 bytes. · Packets with the size of 577 to 1024 bytes are recorded in the 1024 entry. |
Protocol Total Flows Packets/Sec Flow/Sec Packets/flow Active(sec)/ flow Idle(sec)/flow |
Statistics of packets by protocol type: · Protocol type. · Total number of flows. · Number of packets per second. · Number of flows per second. · Number of packets per flow. · Active time (in seconds) of each flow. · Inactive time (in seconds) of each flow. |
Type DstIP(Port) SrcIP(Port) Pro TC FlowLbl If(Direct) Pkts |
Statistics of the active flows in the current cache: · Flow type. Flows are classified into the following types: ¡ IP flows. ¡ Layer 2 flows with IPv6 protocol information (IPL2). ¡ MPLS flows without IP options (MPLS). ¡ MPLS flows with IP options (IP&MPLS). · Destination IPv6 address (destination port). · Source IPv6 address (source port). · Protocol number. · Traffic classification. · Flow label. · Interface name (direction). · Number of packets. ICMPv6 packets do not contain port number fields, so the type and code fields are captured. The value for the destination port represents these two fields: · The highest 8 bits represent the type field. · The lowest 8 bits represent the code field. The value for the source port is set to 0 and does not indicate any statistics. NetStream sampling based on an SRv6 TE policy collects the destination IP address (destination port), source IP address (source port), protocol number, traffic classification, and flow label in the inner header of packets. |
DstMAC(VLAN) SrcMAC(VLAN) |
Layer 2 information for the active flows in the current cache: · Destination MAC address, followed by the destination VLAN ID in parenthesis. · Source MAC address, followed by the source VLAN ID in parenthesis. |
TopLblType(IP/MASK) Lbl-Exp-S-List |
Information about the active MPLS flows in the current cache: · TopLblType—Type of the labels at the top of the label stack. · IP/Mask—IP address and mask associated with the label. · Lbl—20-bit label value. · EXP—3-bit field for implementing QoS. · S—1-bit bottom of stack flag. The S field is set to 1 if the label is the bottom label and set to 0 if not. · List—Label list. Up to three labels can be listed in one label list. Use the mpls-position argument to specify the label position. |
TcpFlag: TTL: DstMask: SrcMask: DstAS: SrcAS: NextHop: BGPNextHop: OutVRF: InVRF: Bgp-community1: Bgp-community2: Bgp-community3: Bgp-community4: SamplerMode: SamplerInt: Active: Bytes/Pkt: First packet arrived: Last packet arrived: SRv6 policy NID: |
Other information about the active flows in the cache: · TCPFlag—TCP flag. · TTL. · DstMask—Destination mask. · SrcMask—Source mask. · DstAS—Destination AS. · SrcAS—Source AS. · NextHop—Routing next hop. · BGPNextHop—BGP next hop. · OutVRF—VPN to which the outbound packets belong. · InVRF—VPN to which the inbound packets belong. · Bgp-community—BGP community attribute value. · SamplerMode—Sampling mode. IPv6 NetStream supports the following sampling modes: ¡ N/A—No sampling. ¡ Fixed—Fixed sampling. ¡ Random—Random sampling. · SamplerInt—Sampling interval. · Active—Flow's active time. · Bytes/Pkt—Number of bytes per packet. · First packet arrived—Arrival time of the first packet of the flow. · Last packet arrived—Arrival time of the last packet of the flow. · SRv6 policy NID—NHLFE entry index for the SRv6 TE policy. NetStream sampling based on an SRv6 TE policy displays the following information in L3VPN service packets: · TCPFlag—TCP tag in the inner header. · TTL—TTL in the outer header. · DstMask—Destination mask in the outer header. · SrcMask—Source mask in the outer header. · NextHop—Routing next hop in the outer header. · DstAS—Destination AS in the outer header. · SrcAS—Source AS in the outer header. · BGPNextHop—BGP next hop in the outer header. · Bytes/Pkt—Number of bytes per original packet. NetStream based on an SRv6 TE policy displays only the TTL for L2VPN service packets. Interface-specific NetStream displays the following information for packets that match an SRv6 TE policy: · TCPFlag—TCP tag in the inner header. · TTL—TTL in the outer header. · DstMask—Destination mask in the outer header. · SrcMask—Source mask in the outer header. · NextHop—Routing next hop in the outer header. · DstAS—Destination AS in the outer header. · SrcAS—Source AS in the outer header. · BGPNextHop—BGP next hop, fixed at ::. · Bytes/Pkt—Number of bytes per original packet. |
display ipv6 netstream cache archive
Use display ipv6 netstream cache archive to display the locally archived NetStream entries.
Syntax
display ipv6 netstream cache archive [ verbose ] [ type { ip | ipl2 | l2 | mpls [ label-position1 label-value1 [ label-position2 label-value2 [ label-position3 label-value3 ] ] ] } ] [ destination destination-ip | destination-port destination-port | interface interface-type interface-number | protocol protocol | source source-ip | source-port source-port ] * [ arrived-time start-date start-time end-date end-time ] [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
verbose: Displays detailed IPv6 NetStream entry information.
type: Specifies the IPv6 NetStream entry type. If you do not specify this keyword, this commands displays information about all types of NetStream entries.
ip: Specifies Layer 3 NetStream entries.
ipl2: Specifies Layer 2 and Layer 3 NetStream entries.
l2: Specifies Layer 2 NetStream entries.
mpls: Specifies MPLS NetStream entries.
label-position1 label-value1: Specifies a label by its position and value. The value range for the label-position1 argument is 1 to 10, representing labels from the outermost to the innermost. The value range for the label-value1 argument is 0 to 1048575.
label-position2 label-value2: Specifies a label by its position and value. The value range for the label-position2 argument is 1 to 10, representing labels from the outermost to the innermost. The value range for the label-value2 argument is 0 to 1048575.
label-position3 label-value3: Specifies a label by its position and value. The value range for the label-position3 argument is 1 to 10, representing labels from the outermost to the innermost. The value range for the label-value3 argument is 0 to 1048575.
destination destination-ipv6: Specifies a destination IPv6 address. If you specify this option, this command does not display Layer 2 NetStream entries.
interface interface-type interface-number: Specifies an interface by its type and number.
source source- ipv6: Specifies a source IPv6 address. If you specify this option, this command does not display Layer 2 NetStream entries.
protocol protocol: Specifies a protocol by its number in the range of 0 to 255 or by its name such as GRE, OSPF, TCP, or UDP. If you specify this option, this command does not display Layer 2 NetStream entries.
destination-port destination-port: Specifies a destination port number in the range of 0 to 65535. If you specify this option, this command does not display Layer 2 NetStream entries.
source-port source-port: Specifies a source port number in the range of 0 to 65535. If you specify this option, this command does not display Layer 2 NetStream entries.
arrived-time: Specifies an arrived time range to display IPv6 NetStream entries. If you do not specify this keyword, the arrived time is not used as a criterion for filtering the NetStream entries to be displayed.
start-date: Specifies the start date in the format of MM/DD/YYYY or YYYY/MM/DD, where MM is in the range of 1 to 12 and YYYY is in the range of 2000 to 2035. The value range for DD varies by the value of MM.
start-time: Specifies the start time in the format of HH:MM:SS, where HH is in the range of 0 to 23, MM and SS are in the range of 0 to 59. The SS element can be omitted if its value is 00. Both the SS and MM elements can be omitted if their values are 0. For example, the start time of 0 indicates 00:00:00.
end-date: Specifies the end date in the format of MM/DD/YYYY or YYYY/MM/DD, where MM is in the range of 1 to 12 and YYYY is in the range of 2000 to 2035. The value range for DD varies by the value of MM.
end-time: Specifies the end time in the format of HH:MM:SS, where HH is in the range of 0 to 23, MM and SS are in the range of 0 to 59. The SS element can be omitted if its value is 00. Both the SS and MM elements can be omitted if their values are 0. For example, the end time of 0 indicates 00:00:00.
slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays information about locally archived NetStream entries on all cards.
Examples
# Display information about the IPv6 NetStream entries archived between 14:10:03 and 14:23:03 on July 28, 2017.
<Sysname> display ipv6 netstream cache archive arrived-time 7/28/2017 14:10:03 7/28/2017 14:23:03
Type DstIP(Port) SrcIP(Port) Pro TC FlowLbl APPID If(Direct) Pkts
DstMAC(VLAN) SrcMAC(VLAN)
TopLblType(IP/Mask) Lbl-Exp-S-List
--------------------------------------------------------------------------
IP 2001::1(1024) 2002::1(21) 6 0 0x6000 0x0 XGE3/0/1(I) 42996
First packet arrived: 7/28/2017, 14:20:03
Last packet arrived: 7/28/2017, 14:21:03
Related commands
ipv6 netstream cache archive enable
display ipv6 netstream export
Use display ipv6 netstream export to display information about the IPv6 NetStream data export.
Syntax
display ipv6 netstream export [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays IPv6 NetStream data export information on all cards.
Usage guidelines
IP NetStream export information varies by aggregation mode. This command displays IPv6 NetStream export information for all the configured aggregation modes.
Examples
# Display information about the IPv6 NetStream data export.
<Sysname> display ipv6 netstream export
as aggregation export information:
Flow source interface : Ten-GigabitEthernet3/0/1
Flow destination VPN instance : VPN1
Flow destination DSCP : 0
Flow destination IPv6 address (UDP) : 40::1 (30000)
Version 9 exported flow number : 16
Version 9 exported UDP datagram number (failed) : 2 (0)
Version 10 exported flow number : 0
Version 10 exported UDP datagram number (failed) : 0 (0)
IPv6 export information:
Flow source interface : Ten-GigabitEthernet3/0/1
Flow destination VPN instance : VPN1
Flow destination DSCP : 0
Flow destination IPv6 address (UDP) : 40::1 (30000)
Version 9 exported flow number : 16
Version 9 exported UDP datagram number (failed) : 16 (0)
Version 10 exported flow number : 0
Version 10 exported UDP datagram number (failed) : 0 (0)
Table 2 Command output
Field |
Description |
as aggregation export information |
Statistics of IPv6 NetStream AS aggregation in the version 9 format. |
IPv6 export information |
Information about the IPv6 NetStream data export. |
Flow source interface |
Source interface from which the IPv6 NetStream data is exported. |
Flow destination VPN instance |
VPN to which the destination address of the IPv6 NetStream data export belongs. |
Flow destination DSCP |
DSCP value in export traffic statistics. |
Flow destination IP address (UDP) |
Destination IPv4 address and UDP port number of the IPv6 NetStream data export. |
Flow destination IPv6 address (UDP) |
Destination IPv6 address and UDP port number of the IPv6 NetStream data export. |
Version 9 exported flow number |
Number of flows that are exported in the version 9 format. |
Version 9 exported UDP datagram number (failed) |
Number of UDP packets that are sent in the version 9 format. The value in the parentheses displays the number of UDP packets that failed to be sent. |
Version 10 exported flow number |
Number of flows that are exported in the version 10 format. |
Version 10 exported UDP datagram number (failed) |
Number of UDP packets that are sent in the version 10 format. The value in the parentheses displays the number of UDP packets that failed to be sent. |
Related commands
ipv6 netstream export host (system view)
ipv6 netstream export host (IPv6 NetStream aggregation mode view)
display ipv6 netstream template
Use display ipv6 netstream template to display IPv6 NetStream template information.
Syntax
display ipv6 netstream template [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
slot slot-number: Specifies a card by its slot number. If you do not specify a card, the command displays IPv6 NetStream template information on the active MPU.
Usage guidelines
IPv6 NetStream templates vary by aggregation mode. This command displays IPv6 NetStream template information for all the configured aggregation modes.
Examples
# Display NetStream template information. The template is in the version 10 format and is not compliant with the RFC 7011 template format.
<Sysname> display ipv6 netstream template
Flow template refresh frequency : 20
Flow template refresh interval : 30 min
Active flow templates : 2
Created flow templates : 4
L3 outbound template:
Template ID : 3282
Packets : 0
Last template export time : Never
Field count : 29
Field type Field length (bytes)
------------------------------------------------------------------------------
Out packets 8
Out bytes 8
First forwarded 4
Last forwarded 4
Input interface index 4
Output interface index 4
Source IPv6 address 16
Destination IPv6 address 16
Next hop IPv6 address 16
PAD 1
IPv6 flow label 3
Source AS 4
Destination AS 4
L4 source port 2
L4 destination port 2
IP protocol version 1
TCP flags 1
Protocol 1
Source ToS 1
Source address mask 1
Destination address mask 1
Direction 1
Forwarding status 1
Out VPN ID 2
Sampling algorithm 1
PAD 1
Sampling interval 4
App ID 4
VPN instance name 65535
Bgp-community1 4
Bgp-community2 4
Bgp-community3 4
Bgp-community4 4
Serial number 65535
L3 inbound template:
Template ID : 3281
Packets : 0
Last template export time : Never
Field count : 29
Field type Field length (bytes)
------------------------------------------------------------------------------
In packets 8
In bytes 8
First forwarded 4
Last forwarded 4
Input interface index 4
Output interface index 4
Source IPv6 address 16
Destination IPv6 address 16
Next hop IPv6 address 16
PAD 1
IPv6 flow label 3
Source AS 4
Destination AS 4
L4 source port 2
L4 destination port 2
IP protocol version 1
TCP flags 1
Protocol 1
Source ToS 1
Source address mask 1
Destination address mask 1
Direction 1
Forwarding status 1
In VPN ID 2
Sampling algorithm 1
PAD 1
Sampling interval 4
App ID 4
VPN instance name 65535
Bgp-community1 4
Bgp-community2 4
Bgp-community3 4
Bgp-community4 4
Serial number 65535
Table 3 Command output
Field |
Description |
Flow template refresh frequency |
Refresh frequency at which the templates are sent, in packets. |
Flow template refresh interval |
Refresh interval at which the templates are sent, in minutes. |
Active flow templates |
Number of active IPv6 NetStream templates. |
Created flow templates |
Number of templates that have been created. |
MPLS outbound template |
Information of MPLS templates in the outbound direction. This field is displayed only when NetStream statistic collection is enabled for MPLS by using the ip netstream mpls command. |
MPLS inbound template |
Information of MPLS templates in the inbound direction. This field is displayed only when NetStream statistic collection is enabled for MPLS by using the ip netstream mpls command. |
L3 outbound template |
Information of the Layer 3 template in the outbound direction. |
L3 inbound template |
Information of the Layer 3 template in the inbound direction. |
Packets |
Number of packets sent by using the template. |
Last template export time |
Time when the template was exported most recently. |
Field count |
Total number of fields in the template. |
Field type |
Type of a field in the template. |
Field length (bytes) |
Length of the field, in bytes. |
Out packets |
Number of sent packets. |
In packets |
Number of received packets. |
Out bytes |
Number of sent bytes. |
In bytes |
Number of received bytes. |
First forwarded |
System time when the first packet was forwarded, accurate to milliseconds. |
Last forwarded |
System time when the last packet was forwarded, accurate to milliseconds. |
BGP next hop IPv6 address |
BGP next hop IPv6 address. If the traffic is not forwarded based on the BGP routing table, the system cannot identify the BGP next hop IPv6 address, and this field is not displayed. |
PAD |
Padding string. |
TCP flags |
TCP flag of the flow. |
Protocol |
Layer 4 protocol type. |
Out VPN ID |
Name of the VPN instance to which the egress interface of the packets belong. |
In VPN ID |
Name of the VPN instance to which the ingress interface of the packets belong. |
Sampling interval |
Sampling rate. |
App ID |
Application ID. |
Bgp-community |
BGP community attribute value. This feature is only supported in version 10. If you do not configure the RFC 7011 IPv6 NetStream template format, this field displays Bgp-community1, Bgp-community2, Bgp-community3, Bgp-community4 and is in a fixed length of 4 bytes. If you configure the format, this field displays Bgp-community and the length is changeable up to a maximum of 65535 bytes. |
VPN instance name |
VPN instance name. If the packets belong to the public network, this field displays N/A. |
SRv6 policy color |
Color for the SRv6 TE policy. |
SRv6 policy endpoint |
IPv6 address of the destination node for the SRv6 TE policy. |
SRv6 policy name |
Name of the SRv6 TE policy. |
Serial number |
Device serial number |
MPLS label n |
MPLS label position. The value range for the argument n is 1 to 10, representing label positions from the stack top to the tenth layer. |
enable
Use enable to enable an IPv6 NetStream aggregation mode.
Use undo enable to disable an IPv6 NetStream aggregation mode.
Syntax
enable
undo enable
Default
No IPv6 NetStream aggregation mode is enabled.
Views
IPv6 NetStream aggregation mode view
Predefined user roles
network-admin
Examples
# Enable IPv6 NetStream AS aggregation mode.
<Sysname> system-view
[Sysname] ipv6 netstream aggregation as
[Sysname-ns6-aggregation-as] enable
Related commands
ipv6 netstream aggregation
ipv6 netstream (interface view)
Use ipv6 netstream to enable IPv6 NetStream on an interface.
Use undo ipv6 netstream to disable IPv6 NetStream on an interface.
Syntax
ipv6 netstream { inbound | outbound } [ main ]
undo ipv6 netstream { inbound | outbound }
Default
IPv6 NetStream is disabled on an interface.
Views
Interface view
Predefined user roles
network-admin
Parameters
inbound: Enables IPv6 NetStream for incoming traffic.
outbound: Enables IPv6 NetStream for outgoing traffic.
main: Enables IPv6 NetStream on the main interface. If you do not specify this keyword, this command enables IPv6 NetStream on the main interface and its subinterfaces.
Usage guidelines
Do not enable IPv6 NetStream on an interface that has been assigned to an MP group or HDLC link bundle.
You can enable both IPv4 and IPv6 NetStream on an interface. If you enable both IPv4 and IPv6 NetStream on an interface, either specify the main keyword or do not specify it for both IPv4 and IPv6 NetStream simultaneously. To change the configuration of main keyword, first disable NetStream. Enable NetStream again after the configuration change.
If you do not specify the main keyword, you cannot enable IPv6 NetStream on both a main interface and its subinterfaces.
The main keyword is available only for Layer 3 Ethernet interfaces and ATM interfaces on the device.
Examples
# Enable IPv6 NetStream for incoming traffic on Ten-GigabitEthernet 3/0/1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/0/1
[Sysname-Ten-GigabitEthernet3/0/1] ipv6 netstream inbound
ipv6 netstream (system view)
Use ipv6 netstream to enable IPv6 NetStream.
Use undo ipv6 netstream to disable IPv6 NetStream.
Syntax
ipv6 netstream
undo ipv6 netstream
Default
IPv6 NetStream is disabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
Global IPv6 NetStream configuration takes effect only on NetStream flow mirroring. This command does not take effect on interface-specific NetStream and NetStream based on an SRv6 TE policy.
Examples
# Enable IPv6 NetStream.
<Sysname> system-view
[Sysname] ipv6 netstream
ipv6 netstream aggregation
Use ipv6 netstream aggregation to specify an IPv6 NetStream aggregation mode and enter its view.
Use undo ipv6 netstream aggregation to remove the configuration for an IPv6 NetStream aggregation mode.
Syntax
ipv6 netstream aggregation { as | bgp-nexthop | destination-prefix | prefix | protocol-port | source-prefix }
undo ipv6 netstream aggregation { as | bgp-nexthop | destination-prefix | prefix | protocol-port | source-prefix }
Default
No IPv6 NetStream aggregation mode is specified.
Views
System view
Predefined user roles
network-admin
Parameters
as: Specifies the AS aggregation mode. It aggregates flows by source AS number, destination AS number, input interface index, and output interface index.
bgp-nexthop: Specifies the BGP nexthop aggregation mode. It aggregates flows by BGP next hop IPv6 address and output interface index.
destination-prefix: Specifies the destination-prefix aggregation mode. It aggregates flows by destination AS number, destination address mask length, destination prefix, and output interface index.
prefix: Specifies the source and destination prefix aggregation mode. It aggregates flows by the following criteria:
· Source AS number.
· Destination AS number.
· Source address mask length.
· Destination address mask length.
· Source prefix.
· Destination prefix.
· Input interface index.
· Output interface index.
protocol-port: Specifies the protocol-port aggregation mode. It aggregates flows by protocol number, source port, and destination port.
source-prefix: Specifies the source-prefix aggregation mode. It aggregates flows by source AS number, source address mask length, source prefix, and input interface index.
Usage guidelines
In IPv6 NetStream aggregation mode view, you can perform the following tasks:
· Enable or disable the specified IPv6 NetStream aggregation mode.
· Configure source interface, destination IPv6 address, and destination port for the IPv6 NetStream data export.
A flow matching multiple aggregation modes is counted as multiple aggregate flows.
Examples
# Set the IPv6 NetStream aggregation mode to AS, and enter IPv6 NetStream AS aggregation mode view.
<Sysname> system-view
[Sysname] ipv6 netstream aggregation as
[Sysname-ns6-aggregation-as]
Related commands
enable
ipv6 netstream export host
ipv6 netstream export source
ipv6 netstream cache archive enable
Use ipv6 netstream cache archive enable to enable archiving of cached IPv6 NetStream entries.
Use undo ipv6 netstream cache archive enable to disable archiving of cached IPv6 NetStream entries.
Syntax
ipv6 netstream cache archive enable
undo ipv6 netstream cache archive enable
Default
Archiving of cached IPv6 NetStream entries is disabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
This command enables local archiving of cached IPv6 NetStream entries when they are exported to NetStream servers.
This feature is applicable when a small number of IPv6 NetStream entries exist and no log server exists. If the device generates a large number of IPv6 NetStream entries, do not enable this feature. Otherwise, the device performance will be affected.
Examples
# Enable archiving of cached IPv6 NetStream entries.
<Sysname> system-view
[Sysname] ipv6 netstream cache archive enable
Related commands
display ipv6 netstream cache archive
ipv6 netstream export host (IPv6 NetStream aggregation mode view)
Use ipv6 netstream export host to specify a destination host for IPv6 NetStream aggregation data export in an IPv6 NetStream aggregation mode view.
Use undo ipv6 netstream export host to remove the specified destination host or all destination hosts that are configured in an IPv6 NetStream aggregation mode view.
Syntax
ipv6 netstream export host { ipv4-address | ipv6-address } udp-port [ vpn-instance vpn-instance-name ] [ dscp dscp-value ]
undo ipv6 netstream export host [ { ipv4-address | ipv6-address } [ vpn-instance vpn-instance-name ] ]
Default
No destination host is specified in an IPv6 NetStream aggregation mode view.
Views
IPv6 NetStream aggregation mode view
Predefined user roles
network-admin
Parameters
ipv4-address: Specifies the destination IPv4 address.
ipv6-address: Specifies the destination IPv6 address.
udp-port: Specifies the destination UDP port number in the range of 0 to 65535.
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance to which the destination host belongs. The vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. If the destination host is on the public network, do not specify this option.
dscp dscp-value: Specifies the DSCP value in export traffic statistics, in the range of 0 to 63. If you do not specify this option, the DSCP value in export traffic statistic is 0.
Usage guidelines
If an aggregation mode is not enabled, the display ipv6 netstream export command cannot display the destination host configuration for the mode.
If no destination host is specified in an IPv6 NetStream aggregation mode view, the destination host in system view applies. If destination hosts are specified in an IPv6 NetStream aggregation mode view and system view, the destination hosts in the aggregation mode view take effect.
You can specify the same destination IP address and UDP port in different IPv6 NetStream aggregation mode views. Each IPv6 NetStream aggregation mode view supports a maximum of four destination hosts. The device supports exporting IPv6 NetStream data to multiple destination hosts for backup. Each destination host is identified by the combination of IP address, UDP port number, and network identifier (VPN instance or public network).
· Destination hosts on different VPN instances can use the same IP address and UDP port number.
· Within the same VPN instance or on the public network, each destination host must use a unique IP address. If you specify a destination host with the same IP address but different UDP port numbers, the most recent configuration takes effect.
IPv6 NetStream aggregation data is exported to all destination hosts in the related IPv6 NetStream aggregation mode view.
Examples
# In AS aggregation mode view, specify 40::1 as the IPv6 address of the destination host and UDP port 5000 as the export destination port number, and set the DSCP value in export traffic statistics to 1.
<Sysname> system-view
[Sysname] ipv6 netstream aggregation as
[Sysname-ns-aggregation-as] ipv6 netstream export host 40::1 5000 dscp 1
Related commands
ipv6 netstream aggregation
ipv6 netstream export source
ipv6 netstream export host (system view)
display ipv6 netstream export
ipv6 netstream export host (system view)
Use ipv6 netstream export host to specify a destination host for IPv6 NetStream data export in system view.
Use undo ipv6 netstream export host to remove the specified destination host or all destination hosts that are specified in system view.
Syntax
ipv6 netstream export host { ipv4-address | ipv6-address } udp-port [ vpn-instance vpn-instance-name ] [ dscp dscp-value ] [ slot slot-number ]
undo ipv6 netstream export host [ {ipv4-address | ipv6-address } [ vpn-instance vpn-instance-name ] ] [ slot slot-number ]
Default
No destination host is specified for IPv6 NetStream data export in system view.
Views
System view
Predefined user roles
network-admin
Parameters
ipv4-address: Specifies the destination IPv4 address.
ipv6-address: Specifies the destination IPv6 address.
udp-port: Specifies the destination UDP port number in the range of 0 to 65535.
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance to which the destination host belongs. The vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. If the destination host is on the public network, do not specify this option.
dscp dscp-value: Specifies the DSCP value in export traffic statistics, in the range of 0 to 63. If you do not specify this option, the DSCP value in export traffic statistic is 0.
slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command applies to all cards.
Usage guidelines
If no destination host is specified in an IPv6 NetStream aggregation mode view, the destination host in system view applies. If destination hosts are specified in an IPv6 NetStream aggregation mode view and system view, the destination hosts in the aggregation mode view take effect.
The system supports general and slot-specific destination hosts, and they can share the same IP address and port number. If both types of destination hosts are specified for one slot, the device prefers the slot-specific destination hosts for exporting NetStream data of that card. If no slot-specific destination host is specified for that slot, the device uses the general destination hosts for exporting IPv6 NetStream data of the card.
You can specify a maximum of four destination hosts in system view. The device supports exporting IPv6 NetStream traditional data to multiple destination hosts for backup. Each destination host is identified by the combination of the IP address, UDP port number, and network identifier (VPN instance or public network).
· Destination hosts on different VPN instances can use the same IP address and UDP port number.
· Within the same VPN instance or on the public network, each destination host must use a unique IP address. If you specify a destination host with the same IP address but different UDP port numbers, the most recent configuration takes effect.
In system view, the device supports a maximum of four destination hosts for each slot.
Examples
# In system view, specify 40::1 as the IPv6 address of the destination host and UDP port 5000 as the export destination port number, and set the DSCP value in export traffic statistics to 1.
<Sysname> system-view
[Sysname] ipv6 netstream export host 40::1 5000 dscp 1
Related commands
ipv6 netstream aggregation
ipv6 netstream export source
ipv6 netstream export host (IPv6 NetStream aggregation mode view)
display ipv6 netstream export
ipv6 netstream export rate
Use ipv6 netstream export rate to limit the IPv6 NetStream data export rate.
Use undo ipv6 netstream export rate to restore the default.
Syntax
ipv6 netstream export rate rate
undo ipv6 netstream export rate
Default
The export rate of IPv6 NetStream data is not limited.
Views
System view
Predefined user roles
network-admin
Parameters
rate: Specifies the export rate in the range of 1 to 1000.
Usage guidelines
This command sets the maximum number of IPv6 NetStream packets that can be exported per second. Packets that cannot be exported due to the export rate limit are buffered for later export. When the buffer is full, the system will temporarily invalidate the rate limit and export packets as fast as possible until the buffer has available free space.
Examples
# Allow a maximum of 10 packets to be exported per second.
<Sysname> system-view
[Sysname] ipv6 netstream export rate 10
ipv6 netstream export source
Use ipv6 netstream export source to specify the source interface for data packets sent to NetStream servers. The IPv6 address of the interface is used as the source IPv6 address of the data packets.
Use undo ipv6 netstream export source to restore the default.
Syntax
ipv6 netstream export source interface interface-type interface-number
undo ipv6 netstream export source
Default
The packets take the IPv6 address of the output interface as the source IPv6 address.
Views
System view
IPv6 NetStream aggregation mode view
Predefined user roles
network-admin
Parameters
interface-type interface-number: Specifies a source interface by its type and number for the IPv6 NetStream data export.
Usage guidelines
You can configure different source interfaces in different IPv6 NetStream aggregation mode views.
If no source interface is configured in IPv6 NetStream aggregation mode view, the source interface in system view applies.
As a best practice, connect the management Ethernet interface to a NetStream server, and configure the interface as the source interface.
Examples
# In system view, specify Ten-GigabitEthernet 3/0/1 as the source interface for IPv6 NetStream traditional data packets.
<Sysname> system-view
[Sysname] ipv6 netstream export source interface ten-gigabitethernet 3/0/1
# In AS aggregation mode view, specify Ten-GigabitEthernet 3/0/2 as the source interface for IPv6 NetStream aggregation data packets.
<Sysname> system-view
[Sysname] ipv6 netstream aggregation as
[Sysname-ns6-aggregation-as] ipv6 netstream export source interface ten-gigabitethernet 3/0/2
Related commands
ipv6 netstream aggregation
ipv6 netstream export template refresh-rate
Use ipv6 netstream export template refresh-rate to set the refresh rate for the IPv6 NetStream version 9 or version 10 template.
Use undo ipv6 netstream export template refresh-rate to restore the default.
Syntax
ipv6 netstream export template refresh-rate { packet packets | time minutes }
undo ipv6 netstream export template refresh-rate { packet | time }
Default
The packet count-based refresh rate is 20 packets, and the time-based refresh interval is 30 minutes.
Views
System view
Predefined user roles
network-admin
Parameters
packet packets: Specifies the number of packets that are sent before the template is sent. The value range is 1 to 600.
time minutes: Specifies the interval at which the template is sent, in the range of 1 to 3600 minutes.
Usage guidelines
Version 9 and version 10 are template-based and support user-defined formats. An IPv6 NetStream device must send the version 9 or version 10 template to NetStream servers regularly, because the servers do not permanently save templates.
The refresh rate can be packet count-based or time-based. If both settings are configured, the template is sent when either of the conditions is met.
Examples
# Configure the device to send the IPv6 NetStream version 9 or version 10 template every 100 packets.
<Sysname> system-view
[Sysname] ipv6 netstream export template refresh-rate packet 100
ipv6 netstream export version
Use ipv6 netstream export version 9 to export IPv6 NetStream data in the version 9 format and configure the AS, BGP next hop, and serial number export attributes.
Use ipv6 netstream export version 10 to export IPv6 NetStream data in the version 10 format and configure the AS, BGP next hop, and serial number export attributes.
Use undo ipv6 netstream export version to restore the default.
Syntax
ipv6 netstream export version { 9 | 10 } { origin-as | peer-as } [ bgp-nexthop ] [ serial-number ]
undo ipv6 netstream export version
Default
The version 9 format is used to export IPv6 NetStream data.
The peer AS numbers are recorded.
The BGP next hop and serial number information is not recorded.
Views
System view
Predefined user roles
network-admin
Parameters
origin-as: Records the original AS numbers for the flow source and destination.
peer-as: Records the peer AS numbers for the flow source and destination.
bgp-nexthop: Records the BGP next hop information.
serial-number: Records the device serial number.
Usage guidelines
Only one version format can take effect on the device. If you execute this command multiple times, the most recent configuration takes effect.
An IPv6 NetStream entry records the source IPv6 address, destination IPv6 address, and two AS numbers for each address. You can choose to configure which AS numbers are to be exported as the source AS and destination AS.
Only the version 9 and version 10 formats support recoding BGP next hop and serial number information.
Examples
# Configure the device to export IPv6 NetStream data in the version 9 format, specify the IPv6 NetStream data to include the source AS and destination AS, and record the BGP next hop and serial number information.
<Sysname> system-view
[Sysname] ipv6 netstream export version 9 origin-as bgp-nexthop serial-number
ipv6 netstream max-entry
Use ipv6 netstream max-entry to set the upper limit for IPv6 NetStream entries or specify the processing method when the upper limit is reached.
Use undo ipv6 netstream max-entry to restore the default.
Syntax
ipv6 netstream max-entry { max-entries | aging | disable-caching }
undo ipv6 netstream max-entry
Default
A maximum of 2048000 IPv6 NetStream entries can be cached. The system will age out the oldest entries when the number of cached entries reaches the upper limit.
Views
System view
Predefined user roles
network-admin
Parameters
max-entries: Specifies the upper limit for IPv6 NetStream entries that the cache can accommodate. The value range for this argument is 1024 to 2048000.
aging: Ages out the oldest entries when the upper limit is reached.
disable-caching: Disables creation of a new entry when the upper limit is reached.
Usage guidelines
The max-entries argument takes effect on each card.
If you execute the ipv6 netstream max-entry max-entries command multiple times, the most recent configuration takes effect.
If you execute the ipv6 netstream max-entry { aging | disable-caching } command multiple times, the most recent configuration takes effect.
Examples
# Set the upper limit to 5000 for IPv6 NetStream entries.
<Sysname> system-view
[Sysname] ipv6 netstream max-entry 5000
# Disable creation of a new entry when the upper limit is reached.
<Sysname> system-view
[Sysname] ipv6 netstream max-entry disable-caching
# Configure the device to age out the oldest entries when the upper limit is reached.
<Sysname> system-view
[Sysname] ipv6 netstream max-entry aging
ipv6 netstream outbound srv6-policy
Use ipv6 netstream outbound srv6-policy to enable IPv6 NetStream for an SRv6 TE policy.
Use undo ipv6 netstream outbound srv6-policy to disable IPv6 NetStream for an SRv6 TE policy.
Syntax
ipv6 netstream outbound srv6-policy end-point ipv6 ipv6-address color color-value
undo ipv6 netstream outbound srv6-policy end-point ipv6 ipv6-address color color-value
Default
IPv6 NetStream is disabled for an SRv6 TE policy.
Views
System view
Predefined user roles
network-admin
Parameters
end-point ipv6 ipv6-address: Specifies the IPv6 address of the destination node for an SRv6 TE policy.
color color-value: Specifies the color for an SRv6 TE policy, in the range of 0 to 4294967295.
Usage guidelines
Execute this command on the ingress node for an SRv6 TE policy to enable IPv6 NetStream to collect statistics about the outgoing traffic forwarded based on that SRv6 TE policy. For more information about SRv6 TE policies, see Segment Routing Configuration Guide.
Global IPv6 NetStream configuration does not take effect on NetStream based on an SRv6 TE policy.
Examples
# Enable IPv6 NetStream for the SRv6 TE policy whose destination node is at 1000::1 and color is 10.
<Sysname> system-view
[Sysname] ipv6 netstream outbound srv6-policy endpoint ipv6 1000::1 color 10
ipv6 netstream srv6 inner-packet
Use ipv6 netstream srv6 inner-packet to enable IPv6 NetStream statistics collection for the payload packets in SRv6-tunneled packets.
Use undo ipv6 netstream srv6 inner-packet to disable IPv6 NetStream statistics collection for the payload packets in SRv6-tunneled packets.
Syntax
ipv6 netstream srv6 inner-packet
undo ipv6 netstream srv6 inner-packet
Default
IPv6 NetStream statistics collection is enabled for the payload packets in SRv6-tunneled packets.
Views
System view
Predefined user roles
network-admin
Usage guidelines
This feature enables IPv6 NetStream to collect statistics about the source IPv6 address, destination IPv6 address, protocol number, source port number, and destination port number of the payload packets in the SRv6-tunneled packets. When you disable the feature, IPv6 NetStream collects statistics about the source IPv6 address, destination IPv6 address, protocol number, source port number, and destination port number of the outer header packets in the SRv6-tunneled packets.
Examples
# Enable IPv6 NetStream statistics collection for the payload packets in SRv6-tunneled packets.
<Sysname> system-view
[Sysname] ipv6 netstream srv6 inner-packet
ipv6 netstream timeout active
Use ipv6 netstream timeout active to set the aging timer for active flows.
Use undo ipv6 netstream timeout active to restore the default.
Syntax
ipv6 netstream timeout active minutes
undo ipv6 netstream timeout active
Default
The aging timer is 30 minutes for active flows.
Views
System view
Predefined user roles
network-admin
Parameters
minutes: Sets the aging timer for active flows, in the range of 1 to 60 minutes.
Usage guidelines
A flow is considered active if packets for the IPv6 NetStream entry arrive before the timer set by this command expires.
Examples
# Set the aging timer to 60 minutes for active flows.
<Sysname> system-view
[Sysname] ipv6 netstream timeout active 60
Related commands
ipv6 netstream timeout inactive
ipv6 netstream timeout inactive
Use ipv6 netstream timeout inactive to set the aging timer for inactive flows.
Use undo ipv6 netstream timeout inactive to restore the default.
Syntax
ipv6 netstream timeout inactive seconds
undo ipv6 netstream timeout inactive
Default
The aging timer is 30 seconds for inactive flows.
Views
System view
Predefined user roles
network-admin
Parameters
seconds: Sets the aging timer for inactive flows, in the range of 10 to 600 seconds.
Usage guidelines
A flow is considered inactive if no packet for the IPv6 NetStream entry arrives before the timer set by this command expires.
Examples
# Set the aging timer to 60 seconds for inactive flows.
<Sysname> system-view
[Sysname] ipv6 netstream timeout inactive 60
Related commands
ipv6 netstream timeout active
reset ipv6 netstream statistics
Use reset ipv6 netstream statistics to age out all flows in the cache and export IPv6 NetStream data.
Syntax
reset ipv6 netstream statistics
Views
User view
Predefined user roles
network-admin
Usage guidelines
It takes the system several minutes to execute the command. During this period, the system does not collect IPv6 NetStream data.
Examples
# Age out and export all IPv6 NetStream data.
<Sysname> reset ipv6 netstream statistics
This process may take a few minutes.
NetStream statistic function is disabled during this process.