![Huawei AR150/200 Series Скачать руководство пользователя страница 243](http://html.mh-extra.com/html/huawei/ar150-200-series/ar150-200-series_configuration-manual_169293243.webp)
7.3.6 (Optional) Configuring the Active Aging Time
The active time indicates the interval from the time the first packet arrives to the current time.
After the traffic in the cache expires, the system ages the traffic in the cache.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
ip netstream timeout active
active-interval
The active aging time is set.
By default, the active aging time is 30 minutes.
----End
7.3.7 Enabling NetStream on an Interface
You can collect the statistics on IPv4 unicast traffic only of the NetStream-enabled interface.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
interface
interface-type
interface-number
The interface view is displayed.
Step 3
(Optional) Run:
ip netstream sampler
{
fix-packets
packet-interval
|
fix-time
time-interval
|
random-packets
packet-interval
|
random-time
time-interval
} {
inbound
|
outbound
}
The packet sampling ratio is set on the interface.
By default, an interface samples packets at fixed packet intervals, and the packet interval is 100.
Step 4
Run:
ip netstream
{
inbound
|
outbound
}
The NetStream function is enabled on the interface to collect statistics about IPv4 unicast traffic.
By default, NetStream is disabled for the IPv4 traffic.
----End
7.3.8 Checking the Configuration
After configuring the IPv4 unicast traffic statistics collection, you can view the configuration.
Huawei AR150&200 Series Enterprise Routers
Configuration Guide - Network Management
7 NetStream Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
232