The ip netstream aggregation command configures the aggregation method and displays the aggregation view.
ip netstream aggregation { as | as-tos | destination-prefix | destination-prefix-tos | prefix | prefix-tos | protocol-port | protocol-port-tos | source-prefix | source-prefix-tos }
Parameter |
Description |
Value |
---|---|---|
as |
Specifies the AS aggregation. It classifies flows based on:
|
- |
as-tos |
Specifies the AS-ToS aggregation. It classifies flows based on:
|
- |
destination-prefix |
Specifies the destination-prefix aggregation. It classifies flows based on:
|
- |
destination-prefix-tos |
Specifies the destination-prefix-ToS aggregation. It classifies flows based on:
|
- |
prefix |
Specifies the prefix aggregation. It classifies flows based on:
|
- |
prefix-tos |
Specifies the prefix-ToS aggregation. It classifies flows based on:
|
- |
protocol-port |
Specifies the protocol-port aggregation. It classifies flows based on:
|
- |
protocol-port-tos |
Specifies the protocol-port-ToS aggregation. It classifies flows based on:
|
- |
source-prefix |
Specifies the source-prefix aggregation. It classifies flows based on:
|
- |
source-prefix-tos |
Specifies the source-prefix-ToS aggregation. It classifies flows based on:
|
- |
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.
# 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]