The ip netstream aggregation command displays the NetStream IPv4 aggregation mode.
The ipv6 netstream aggregation command displays the NetStream IPv6 aggregation mode.
By default, no aggregation mode is set.
ipv6 netstream aggregation { as | as-tos | destination-prefix | destination-prefix-tos | prefix | prefix-tos | protocol-port | protocol-port-tos | source-prefix | source-prefix-tos | mpls-label | index-tos | vlan-id | bgp-nexthop-tos }
ip netstream aggregation { as | as-tos | destination-prefix | destination-prefix-tos | prefix | prefix-tos | protocol-port | protocol-port-tos | source-prefix | source-prefix-tos | mpls-label | index-tos | vlan-id | bgp-nexthop-tos | source-index-tos }
ip netstream aggregation bgp-community
ip netstream aggregation { as | as-tos | destination-prefix | destination-prefix-tos | prefix | prefix-tos | protocol-port | protocol-port-tos | source-prefix | source-prefix-tos | mpls-label | index-tos | vlan-id | bgp-nexthop-tos | source-index-tos | vni-sip-dip }
undo ipv6 netstream aggregation { as | as-tos | destination-prefix | destination-prefix-tos | prefix | prefix-tos | protocol-port | protocol-port-tos | source-prefix | source-prefix-tos | mpls-label | index-tos | vlan-id | bgp-nexthop-tos }
undo ip netstream aggregation { as | as-tos | destination-prefix | destination-prefix-tos | prefix | prefix-tos | protocol-port | protocol-port-tos | source-prefix | source-prefix-tos | mpls-label | index-tos | vlan-id | bgp-nexthop-tos | source-index-tos }
undo ip netstream aggregation bgp-community
undo ip netstream aggregation { as | as-tos | destination-prefix | destination-prefix-tos | prefix | prefix-tos | protocol-port | protocol-port-tos | source-prefix | source-prefix-tos | mpls-label | index-tos | vlan-id | bgp-nexthop-tos | source-index-tos | vni-sip-dip }
Parameter | Description | Value |
---|---|---|
as |
Indicates the autonomous system (AS) aggregation, which aggregates flows with the same source AS number, destination AS number, inbound interface index, and outbound interface index. |
- |
as-tos |
Indicates the AS-ToS aggregation, which aggregates flows with the same source AS number, destination AS number, inbound interface index, outbound interface index, and type of service (ToS). |
- |
destination-prefix |
Indicates the destination-prefix aggregation, which aggregates flows with the same destination AS number, destination mask length, destination prefix, and outbound interface index. |
- |
destination-prefix-tos |
Indicates the destination-prefix-ToS aggregation, which aggregates flows with the same destination AS number, destination mask length, destination prefix, outbound interface index and ToS. |
- |
prefix |
Indicates the prefix aggregation, which aggregates flows with the same source AS number, destination AS number, source mask length, destination mask length, source prefix, destination prefix, inbound interface index, and outbound interface index. |
- |
prefix-tos |
Indicates the prefix-ToS aggregation, which aggregates flows with the same source AS number, destination AS number, source mask length, destination mask length, source prefix, destination prefix, inbound interface index, outbound interface index, and ToS. |
- |
protocol-port |
Indicates the protocol-port aggregation, which aggregates flows with the same protocol number, source port, and destination port. |
- |
protocol-port-tos |
Indicates the protocol-port-ToS aggregation, which aggregates flows with the same protocol number, source port, destination port, ToS, inbound interface index, and outbound interface index. |
- |
source-prefix |
Indicates the source-prefix aggregation, which aggregates flows with the same source AS number, source mask length, source prefix, and inbound interface index. |
- |
source-prefix-tos |
Indicates the source-prefix-ToS aggregation, which aggregates flows with the same source AS number, source mask length, source prefix, ToS, and inbound interface index. |
- |
mpls-label |
Indicates the MPLS label aggregation, which aggregates flows with the same first layer label, second layer label, third layer label, TopLabelIpAddress, stack bottom symbol of the first layer label, and the EXP value of the first layer label. |
- |
index-tos |
Indicates the index-ToS aggregation, which aggregates flows with the same inbound interface index, outbound interface index, and ToS. |
- |
vlan-id |
Indicates the VNI aggregation, which aggregates flows with the same VNI ID and the same source and destination IP addresses of tenants. |
- |
bgp-nexthop-tos |
Indicates the BGP-nexthop-ToS aggregation, which aggregates flows with the same Border Gateway Protocol (BGP) next hop, source AS number, destination AS number, inbound interface index, and outbound interface index. |
- |
ip |
Displays the IPv4 netstream feature. |
- |
source-index-tos |
Indicates the source interface index-ToS aggregation, which aggregates flows with the same source interface index, ToS and BGP next hop. |
- |
bgp-community |
Indicates the BGP community aggregation, which aggregates flows with the same inbound and outbound interface indexes and BGP community. |
- |
vni-sip-dip |
Indicates the VNI aggregation, which aggregates flows with the same VNI ID and the same source and destination IP addresses of tenants. |
- |
ipv6 |
Displays the IPv6 netstream feature. |
- |
Usage Scenario
NetStream aggregation indicates that the original flows with the same attributes are considered as a single flow. The aggregated flow statistics function and original flow statistics function use the same statistics collection process but collect statistics about different packets. The original flow statistics function collects statistics about the sampled packets, whereas the aggregated flow statistics function collects statistics about original flows and generates less data.
The advantages of netstream aggregation are as follows:Follow-up Procedure
After entering the NetStream aggregation view, to enable the NetStream aggregation mode, run the enable (Aggregation view) command in the NetStream aggregation view.
When configuring the MPLS-label aggregation mode, run the ip netstream mpls-aware command or ipv6 netstream mpls-aware command to set the sampling mode of MPLS packets to label-and-ip or label-only.