The ip netstream monitor command deploys an IPv4 NetStream monitoring service in the inbound or outbound direction on an interface.
The undo ip netstream monitor command deletes an IPv4 NetStream monitoring service.
The ipv6 netstream monitor command deploys an IPv6 NetStream monitoring service in the inbound or outbound direction of an interface.
The undo ipv6 netstream monitor command deletes an existing IPv6 NetStream monitoring service.
By default, IPv4 NetStream services are not deployed on an interface.
Parameter | Description | Value |
---|---|---|
monitor-name |
Specifies the name of a monitoring service. The name of the monitoring service configured in the system view is used. |
The name is a string of 1 to 31 case-sensitive characters, spaces not supported and special characters supported. |
inbound |
Deploys a NetStream monitoring service in the inbound direction of the interface. |
- |
outbound |
Deploys a NetStream monitoring service in the outbound direction of the interface. |
- |
ipv6 |
Indicates the IPv6 netstream feature. |
- |
ip |
Indicates the IPv4 netstream feature. |
- |
100GE Layer 2 sub-interface view, 100GE interface view, 25GE Layer 2 sub-interface view, 400GE Layer 2 sub-interface view, 400GE interface view, 40GE Layer 2 sub-interface view, 40GE interface view, 50GE Layer 2 sub-interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk Layer 2 sub-interface view, Eth-Trunk interface view, GE Layer 2 sub-interface view, GE interface view, Global VE sub-interface view, Multi-GE Layer 2 sub-interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view, XGE Layer 2 sub-interface view, Sub-interface view
Usage Scenario
Increasing types of services and applications on networks urge carriers to provide more delicate management and accounting services.
If NetStream is configured on multiple interfaces on an NDE, all interfaces send traffic statistics to a single NSC. The NSC cannot distinguish interfaces and therefore is unable to manage or analyze traffic statistics based on interfaces. In addition, the NSC will be overloaded due to a great amount of information. NetStream monitoring configured on an NDE allows the NDE to send traffic statistics collected on specified interfaces to specified NSCs for analysis, achieving more delicate service monitoring based on interfaces. Traffic statistics can be load-balanced among these NSCs.Prerequisites
Before applying the NetStream monitoring service to an interface, ensure that a monitoring service view has been created by running the ip netstream monitor command or ipv6 netstream monitor command in the system view.
Configuration Impact
If the destination IP address and port number for NetStream statistics have been configured in the monitoring view, and the NetStream monitoring service has been applied, NetStream statistics are output to the destination IP address specified in the monitoring view, not the system view.
Follow-up Procedure
Run the netstream export host command in the monitoring view to configure the destination IP address for NetStream statistics.
Precautions
NetStream monitoring services are available only for original flows, not aggregated flows.
After this command is run, you also need to run the netstream command so that the NetStream function takes effect. Interfaces and sub-interfaces, both of which are configured with BAS services, still support Netstream sampling configurations.<HUAWEI> system-view [~HUAWEI] ip netstream monitor monitora [*HUAWEI-monitor-monitora] quit [*HUAWEI] interface virtual-ethernet 0/1/0 [*HUAWEI-Virtual-Ethernet0/1/0] ve-group 1 l3-access [*HUAWEI-Virtual-Ethernet0/1/0] quit [*HUAWEI] interface virtual-ethernet 0/1/0.1 [*HUAWEI-Virtual-Ethernet0/1/0.1] ip netstream monitor monitora inbound
<HUAWEI> system-view [~HUAWEI] ipv6 netstream monitor monitora [*HUAWEI-monitor6-monitora] quit [*HUAWEI] interface GigabitEthernet 0/1/0 [*HUAWEI-GigabitEthernet0/1/0] ipv6 netstream monitor monitora inbound
<HUAWEI> system-view [~HUAWEI] ipv6 netstream monitor monitora [*HUAWEI-monitor6-monitora] quit [*HUAWEI] interface virtual-ethernet 0/1/0 [*HUAWEI-Virtual-Ethernet0/1/0] ve-group 1 l3-access [*HUAWEI-Virtual-Ethernet0/1/0] quit [*HUAWEI] interface virtual-ethernet 0/1/0.1 [*HUAWEI-Virtual-Ethernet0/1/0.1] ipv6 netstream monitor monitora inbound
<HUAWEI> system-view [~HUAWEI] ip netstream monitor monitora [*HUAWEI-monitor-monitora] quit [*HUAWEI] interface GigabitEthernet 0/1/0 [*HUAWEI-GigabitEthernet0/1/0] ip netstream monitor monitora inbound