< Home

ip netstream aggregation

Function

The ip netstream aggregation command configures the aggregation method and displays the aggregation view.

Format

ip netstream aggregation { as | as-tos | destination-prefix | destination-prefix-tos | prefix | prefix-tos | protocol-port | protocol-port-tos | source-prefix | source-prefix-tos }

Parameters

Parameter

Description

Value

as

Specifies the AS aggregation. It classifies flows based on:
  • Source AS number
  • Destination AS number
  • Inbound interface index
  • Outbound interface index

-

as-tos

Specifies the AS-ToS aggregation. It classifies flows based on:

  • Source AS number
  • Destination AS number
  • Inbound interface index
  • Outbound interface index
  • ToS

-

destination-prefix

Specifies the destination-prefix aggregation. It classifies flows based on:

  • Destination AS number
  • Destination mask length
  • Outbound interface index
  • Destination prefix

-

destination-prefix-tos

Specifies the destination-prefix-ToS aggregation. It classifies flows based on:

  • Destination AS number
  • Destination mask length
  • Destination prefix
  • ToS
  • Outbound interface index

-

prefix

Specifies the prefix aggregation. It classifies flows based on:

  • Source and destination AS numbers
  • Source and destination mask lengths
  • Source and destination prefixes
  • Inbound interface index
  • Outbound interface index

-

prefix-tos

Specifies the prefix-ToS aggregation. It classifies flows based on:

  • Source and destination AS numbers
  • Source and destination mask lengths
  • Source and destination prefixes
  • ToS
  • Inbound interface index
  • Outbound interface index

-

protocol-port

Specifies the protocol-port aggregation. It classifies flows based on:

  • Protocol number
  • Source port number
  • Destination port number

-

protocol-port-tos

Specifies the protocol-port-ToS aggregation. It classifies flows based on:

  • Protocol number
  • Source port number
  • Destination port number
  • ToS
  • Inbound interface index
  • Outbound interface index

-

source-prefix

Specifies the source-prefix aggregation. It classifies flows based on:

  • Source AS number
  • Source mask length
  • Source prefix
  • Inbound interface index

-

source-prefix-tos

Specifies the source-prefix-ToS aggregation. It classifies flows based on:

  • Source AS number
  • Source mask length
  • Source prefix
  • ToS
  • Inbound interface index

-

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

NetStream aggregation groups the original flows with the same attributes together. The aggregation flow statistics collection and original flow statistics collection are different. The original flow statistics collection is on the basis of sampled packets, while the aggregation flow statistics collection is on the basis of original flows. Therefore, the aggregation flow statistics collection generates less data.

Follow-up Procedure

Run the enable command in the aggregation view to enable the device to export flow statistics according to the configured aggregation method.

Example

# Configure the NetStream AS aggregation method.

<HUAWEI> system-view
[HUAWEI] ip netstream aggregation as
[HUAWEI-aggregation-as]

# Configure the NetStream destination-prefix aggregation method.

<HUAWEI> system-view
[HUAWEI] ip netstream aggregation destination-prefix
[HUAWEI-aggregation-dstpre]
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >