l
Fragmented packets
NOTE
If a NetStream-enabled interface is bound to a VPN instance, all packets in the VPN instance will be
sampled.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
(Optional) Run:
ipv6 netstream sampler
fix-packets
fix-packets-number
{
inbound
|
outbound
}
The sampling mode and sampling ratio are configured globally.
By default, NetStream is disabled from packet sampling. Instead, it collects the statistics about
each packet.
Step 3
Run:
interface
interface-type
interface-number
The interface view is displayed.
Step 4
(Optional) Run:
ipv6 netstream sampler
fix-packets
fix-packets-number
{
inbound
|
outbound
}
The sampling mode and sampling ratio are configured for the interface.
By default, NetStream is disabled from packet sampling. Instead, it collects the statistics about
each packet.
NOTE
The sampling mode and sampling ratio configured in the system view are applicable to all interfaces on
the device. The sampling mode and sampling ratio configured in the interface view takes precedence over
those configured in the system view.
The
ip netstream sampler
command has the same function as the
ipv6 netstream sampler
command.
l
The execution of either command takes effect on all packets and there is no need to configure
both of them. If it is required to configure both of them, ensure that sampling modes and
sampling ratios configured by the
ip netstream sampler
and
ipv6 netstream sampler
commands are identical.
l
Packets are sampled at the set sampling ratio, regardless of packet types. For example, if the
sampling ratio in fixed packet sampling mode is set to 1000:1, one packet will be sampled
every 1000 packets, regardless of these packets are IPv4 or IPv6 packets.
Step 5
Run:
ipv6 netstream
{
inbound
|
outbound
}
NetStream is enabled on the interface.
Statistics about packets' BGP next-hop information can also be collected. Original flows output
in V5 format, however, cannot carry the BGP next-hop information.
HUAWEI NetEngine5000E Core Router
Configuration Guide - System Management
6 NetStream Configuration
Issue 01 (2011-10-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
167