12-Network Management and Monitoring Configuration Guide

HomeSupportResource CenterRoutersH3C SR8800 Series RoutersH3C SR8800Technical DocumentsConfigureConfiguration GuideH3C SR8800 Configuration Guide-Release3347-6W10312-Network Management and Monitoring Configuration Guide
11-IPv6 NetStream Configuration
Title Size Download
11-IPv6 NetStream Configuration 192.32 KB

 

 

NOTE:

In this documentation, SPC cards refer to the cards prefixed with SPC, for example, SPC-GT48L. SPE cards refer to the cards prefixed with SPE, for example, SPE-1020-E-II. NAM cards refer to the cards prefixed with IM-NAM, for example, IM-NAM-II.

 

IPv6 NetStream overview

Conventional traffic statistics collection methods, like SNMP and port mirroring, cannot provide precise network management because of inflexible statistical methods or high cost (dedicated servers are required). This calls for a new technology to collect traffic statistics.

IPv6 NetStream provides statistics on network traffic flows and can be deployed on access, distribution, and core layers.

The IPv6 NetStream technology implements the following features:

·           Accounting and billingIPv6 NetStream provides fine-gained data about the network usage based on the resources such as lines, bandwidth, and time periods. The Internet service providers (ISPs) can use the data for billing based on time period, bandwidth usage, application usage, and quality of service (QoS). The enterprise customers can use this information for department chargeback or cost allocation.

·           Network planningIPv6 NetStream data provides key information, for example the autonomous system (AS) traffic information, for optimizing the network design and planning. This helps maximize the network performance and reliability when minimizing the network operation cost.

·           Network monitoringConfigured on the Internet interface, IPv6 NetStream allows for traffic and bandwidth utilization monitoring in real time. Based on this, administrators can understand how the network is used and where the bottleneck is, better planning the resource allocation.

·           User monitoring and analysisThe IPv6 NetStream data provides detailed information about network applications and resources. This information helps network administrators efficiently plan and allocate network resources, and guarantee network security.

IPv6 NetStream basic concepts

IPv6 flow

IPv6 NetStream is an accounting technology to provide statistics on a per-flow basis. An IPv6 flow is defined by the 7-tuple elements: destination address, source IP address, destination port number, source port number, protocol number, type of service (ToS), and inbound or outbound interface. The 7-tuple elements define a unique flow.

IPv6 NetStream operation

A typical IPv6 NetStream system comprises three parts: NetStream data exporter (NDE), NetStream collector (NSC), and NetStream data analyzer (NDA).

·           NDE

The NDE analyzes traffic flows that pass through it, collects necessary data from the target flows, and exports the data to the NSC. Before exporting data, the NDE may process the data like aggregation. A device with IPv6 NetStream configured typically acts as an NDE.

·           NSC

The NSC is usually a program running in UNIX or Windows. It parses the packets sent from the NDE, stores the statistics to the database for the NDA. The NSC gathers the data from multiple NDEs.

·           NDA

The NDA is a network traffic analysis tool. It collects statistics from the NSC, and performs further process, generates various types of reports for applications of traffic billing, network planning, and attack detection and monitoring. Typically, the NDA features a Web-based system for users to easily obtain, view, and gather the data.

Figure 1 IPv6 NetStream system

 

As shown in Figure 1, the following procedure of IPv6 NetStream data collection and analysis occurs:

1.       The NDE, that is the device configured with IPv6 NetStream, periodically delivers the collected statistics to the NSC.

2.       The NSC processes the statistics, and then sends the results to the NDA.

3.       The NDA analyzes the statistics for accounting, network planning, and the like.

 

 

NOTE:

·       This document focuses on the description and configuration of NDE.

·       NSC and NDA are usually integrated into a NetStream server.

 

IPv6 NetStream key technologies

Flow aging

The flow aging in IPv6 NetStream is a means used by the NDE to export IPv6 NetStream data to the NetStream server. IPv6 NetStream creates an IPv6 NetStream entry for each active flow in the cache of the NDE and each entry stores the flow statistics, which will be later exported to the NetStream server. When the timer of an entry expires, the NDE exports the summarized data to the NetStream server in a specific IPv6 NetStream version export format. For more information about flow aging types and configuration, see “Configuring IPv6 NetStream flow aging.”

IPv6 NetStream data export

IPv6 NetStream traditional data export

The IPv6 NetStream collects statistics of each flow and, when the entry timer expires, exports the data of each entry to the NetStream server.

Though the data includes statistics of each flow, this method consumes more bandwidth and CPU, and requires large cache size. In most cases, not the whole statistics are necessary for analysis.

IPv6 NetStream aggregation data export

The IPv6 NetStream aggregation merges the flow statistics according to the aggregation criteria of an aggregation mode, and sends the summarized data to the NetStream server. This process is the IPv6 NetStream aggregation data export, which decreases the bandwidth usage compared to traditional data export.

Six IPv6 NetStream aggregation modes are supported as listed in Table 1. In each mode, the system merges flows into one aggregation flow if the aggregation criteria are of the same value. The six aggregation modes work independently and can be configured on the same interface.

Table 1 IPv6 NetStream aggregation modes

Aggregation mode

Aggregation criteria

AS aggregation

·       Source AS number

·       Destination AS number

·       Inbound interface index

·       Outbound interface index

Protocol-port aggregation

·       Protocol number

·       Source port

·       Destination port

Source-prefix aggregation

·       Source AS number

·       Source address mask length

·       Source prefix

·       Inbound interface index

Destination-prefix aggregation

·       Destination AS number

·       Destination address mask length

·       Destination prefix

·       Outbound interface index

Prefix aggregation

·       Source AS number

·       Destination AS number

·       Source address mask length

·       Destination address mask length

·       Source prefix

·       Destination prefix

·       Inbound interface index

·       Outbound interface index

BGP-nexthop

·       BGP next hop

·       Outbound interface index

 

 

NOTE:

·       In an aggregation mode with AS, if the packets are not forwarded according to the BGP routing table, the statistics on the AS number cannot be obtained.

·       In the aggregation mode of BGP-nexthop, if the packets are not forwarded according to the BGP routing table, the statistics on the BGP next hop cannot be obtained.

 

IPv6 NetStream export format

IPv6 NetStream exports data in UDP datagrams in version 9 format.

Version 9 format is the most flexible format. Its template-based feature provides support of different statistics information, such as BGP next hop and MPLS information.

IPv6 NetStream configuration task list

Before configuring IPv6 NetStream, determine proper configurations as needed.

·           Make sure on which router you want to enable IPv6 NetStream, that is, the NDE.

·           If multiple service flows are passing the NDE, use an ACL or QoS policy to select the target data.

·           Determine which export format is used for IPv6 NetStream data export.

·           Configure the timer for IPv6 NetStream flow aging.

·           To reduce the bandwidth consumption used by IPv6 NetStream data export, configure IPv6 NetStream aggregation.

Complete these tasks to configure IPv6 NetStream:

 

Task

Remarks

Configuring IPv6 NetStream

Required

Configuring attributes of IPv6 NetStream data export

Optional

Configuring IPv6 NetStream flow aging

Optional

Configuring IPv6 NetStream data export

Configuring IPv6 NetStream traditional data export

Required

Use either approach

Configuring IPv6 NetStream aggregation data export

 

Configuring IPv6 NetStream

Configuring QoS-based IPv6 NetStream

 

 

NOTE:

NetStream-capable cards include NAM cards, SPC cards, and SPE cards. A QoS policy cannot be applied to the outgoing traffic of interfaces on SPC cards. For information about configuring NetStream on an SPC card, see Configuring IPv6 NetStream on an SPC card.

 

Before configuring IPv6 NetStream, configure QoS first to identify the traffic matching the classification criteria and configure a traffic behavior with the action of mirroring the identified traffic to a NetStream interface of a NetStream-capable card (SPC card, SPE card, or NAM card). For more information about class, traffic behavior, and QoS policy, see ACL and QoS Configuration Guide.

To configure QoS-based IPv6 NetStream:

 

Step

Command

Remarks

1.      Enter system view.

system-view

N/A

2.      Enable IPv6 NetStream.

ipv6 netstream

By default, IPv6 NetStream is disabled.

3.      Define a class and enter its view.

traffic classifier classifier-name [ operator { and | or } ]

N/A

4.      Define a match criterion.

if-match match-criteria

N/A

5.      Return to system view.

quit

N/A

6.      Create a traffic behavior and enter traffic behavior view.

traffic behavior behavior-name

N/A

7.      Configure the action of mirroring traffic to the NetStream interface.

mirror-to interface Net-Stream interface-number

By default, no action of traffic mirroring is configured.

8.      Return to system view.

quit

N/A

9.      Create a policy and enter its view.

qos policy policy-name

N/A

10.   Specify a behavior for a class in the policy.

classifier classifier-name behavior behavior-name

N/A

11.   Return to system view.

quit

N/A

12.   Enter interface view.

interface interface-type interface-number

N/A

13.   Apply a QoS policy.

qos apply policy policy-name { inbound | outbound }

N/A

 

Configuring IPv6 NetStream on an SPC card

 

 

NOTE:

·       This feature is supported by SPC cards only.

·       To enable IPv6 NetStream on an SPC card, NetStream sampling is required.

 

To configure NetStream on an SPC card:

 

Step

Command

Remarks

1.      Enter system view.

system-view

N/A

2.      Create a sampler.

sampler sampler-name mode fixed packet-interval rate

The rate argument specifies the sampling rate, that is, the number of packets in each sampling, which equals the 2 to the power of rate. For example, if the rate is 8, one packet out of 256 packets (2 to the power of 8) is sampled in each sampling; if the rate is 10, one packet out of 1024 packets (2 to the power of 10) is sampled.

3.      Enter interface view.

interface interface-type interface-number

N/A

4.      Enable NetStream sampling.

ip netstream sampler sampler-name { inbound | outbound }

By default, NetStream sampling is disabled.

5.      Mirror the sampled traffic to a NetStream interface for statistics collection.

ip netstream mirror-to interface Net-Stream interface-number [ backup-interface Net-Stream interface-number ] { inbound | outbound }

N/A

 

Configuring attributes of IPv6 NetStream data export

Configuring IPv6 NetStream export format

The IPv6 NetStream export format configures to export IPv6 NetStream data in version 9 formats, and the data fields can be expanded to contain more information, such as the following information:

·           Statistics about source AS, destination AS, and peer AS in version 9 format.

·           Statistics about BGP next hop in version 9 format.

To configure the IPv6 NetStream export format:

 

Step

Command

Remarks

1.      Enter system view.

system-view

N/A

2.      Configure the version for IPv6 NetStream export format, and specify whether to record AS and BGP next hop information.

ipv6 netstream export version 9 [ origin-as | peer-as ] [ bgp-nexthop ]

Optional.

By default, version 9 format is used to export IPv6 NetStream traditional data, IPv6 NetStream aggregation data, and MPLS flow data with IPv6 fields; the peer AS numbers are recorded; the BGP next hop is not recorded.

 

Configuring refresh rate for IPv6 NetStream version 9 templates

Version 9 is template-based and supports user-defined formats, so the NetStream-enabled router needs to resend the new template to the NetStream server for an update. If the version 9 format is changed on the router and not updated on the NetStream server, the server is unable to associate the received statistics with its proper fields. To avoid such situation, configure the refresh frequency and rate for version 9 templates so that the NetStream server can refresh the templates on time.

To configure the refresh rate for IPv6 NetStream version 9 templates:

 

Step

Command

Remarks

1.      Enter system view.

system-view

N/A

2.      Configure the refresh frequency for NetStream version 9 templates.

ipv6 netstream export v9-template refresh-rate packet packets

Optional.

By default, the version 9 templates are sent every 20 packets.

3.      Configure the refresh interval for NetStream version 9 templates.

ipv6 netstream export v9-template refresh-rate time minutes

Optional.

By default, the version 9 templates are sent every 30 minutes.

 

 

NOTE:

The refresh frequency and interval can be both configured, and the template is resent when either of the condition is reached.

 

Configuring MPLS-aware NetStream

Introduction to MPLS-aware NetStream

When you configure MPLS-aware NetStream, you can set whether to collect and export statistics about the three labels of MPLS packets. For MPLS packets that carry IP data, NetStream records statistics on labels (up to three) in the label stack, forwarding equivalent class (FEC) corresponding to the top label, and the traditional 7-tuple elements data.

Configuring MPLS-aware NetStream

To configure MPLS-aware NetStream:

 

Step

Command

Remarks

1.      Enter system view.

system-view

N/A

2.      Configure to count and export statistics on MPLS packets.

ip netstream mpls [ label-positions { label-position1 [ label-position2 ] [ label-position3 ] } ] [ no-ip-fields ]

By default, no statistics about MPLS packets are counted and exported.

 

 

NOTE:

·       Collection of NetStream MPLS packet statistics is supported only when NetStream is enabled.

·       To collect statistics about MPLS packets carrying IPv4 data, enable IPv4 NetStream.

·       To collect statistics about MPLS packets carrying IPv6 data, enable IPv6 NetStream.

·       To collect statistics about MPLS packets carrying neither IPv4 nor IPv6 data, enable IPv4 NetStream.

·       On a NAM card, to collect statistics about MPLS packets carrying non-IPv4 data, enable IPv4 NetStream. Only the statistics about labels are collected.

 

Configuring IPv6 NetStream flow aging

Flow aging approaches

Three types of IPv6 NetStream flow aging are available:

·           Periodical aging

·           Forced aging

·           TCP FIN- and RST-triggered aging (it is automatically triggered when a TCP connection is terminated)

Periodical aging

Periodical aging uses two approaches:

·           Inactive flow aging

A flow is considered inactive if its statistics have not been changed. No packet for this IPv6 NetStream entry arrives in the time specified by the ipv6 netstream timeout inactive command. The inactive flow entry remains in the cache until the inactive timer expires. Then the inactive flow is aged out and its statistics, which can no longer be displayed by the display ipv6 netstream cache command, are sent to the NetStream server. The inactive flow aging guarantees the cache is big enough for new flow entries.

·           Active flow aging

An active flow is aged out when the time specified by the ipv6 netstream timeout active command is reached, and its statistics are exported to the NetStream server. The device continues to count the active flow statistics, which can be displayed by the display ipv6 netstream cache command. The active flow aging exports the statistics of active flows to the NetStream server.

Forced aging

The reset ipv6 netstream statistics command ages out all IPv6 NetStream entries in the cache and clears the statistics. This is forced aging. Alternatively, use the ipv6 netstream max-entry command to configure aging out of entries in the cache when the maximum number of entries is reached.

TCP FIN- and RST-triggered aging

For a TCP connection, when a packet with a FIN or RST flag is sent out, it means that a session is finished. Therefore, when a packet with a FIN or RST flag is recorded for a flow with the IPv6 NetStream entry already created, the flow is aged out immediately. However, if the packet with a FIN or RST flag is the first packet of a flow, a new IPv6 NetStream entry is created instead of being aged out. This type of aging is enabled by default, and cannot be disabled.

Configuring IPv6 NetStream flow aging

To configure flow aging:

 

Step

Command

Remarks

1.      Enter system view.

system-view

N/A

2.      Configure periodical aging.

 

 

·       Set the aging timer for active flows:
ipv6 netstream timeout active minutes

·       Set the aging timer for inactive flows:
ipv6 netstream timeout inactive seconds

Optional.

By default:

·       The aging timer for active flows is 30 minutes.

·       The aging timer for inactive flows is 30 seconds.

3.      Configure forced aging of the IPv6 NetStream entries.

a.   Set the maximum number of entries that the cache can accommodate, and the processing method when the upper limit is reached:
ipv6 netstream max-entry { max-entries | aging | disable-caching }

b.   Exit to user view:
quit

c.    Configure forced aging:
reset ipv6 netstream statistics

Optional.

By default, the maximum number of entries are 409600.

The reset ipv6 netstream statistics command also clears the cache.

 

Configuring IPv6 NetStream data export

To allow the NDE to export collected statistics to the NetStream server, configure the source interface out of which the data is sent and the destination address to which the data is sent.

Configuring IPv6 NetStream traditional data export

Before configuring the IPv6 NetStream traditional data export, enable IPv6 NetStream first.

To configure IPv6 NetStream traditional data export:

 

Step

Command

Remarks

1.      Enter system view.

system-view

N/A

2.      Configure the destination address for the IPv6 NetStream traditional data export.

ipv6 netstream export host ip-address udp-port [ vpn-instance vpn-instance-name ]

By default, no destination address is configured, in which case, the IPv6 NetStream traditional data is not exported.

3.      Configure the source interface for IPv6 NetStream traditional data export.

ipv6 netstream export source interface interface-type interface-number

Optional.

·       By default, the interface connecting to the NetStream server is used as the source interface.

·       H3C recommends you connect the network management interface to the NetStream server and configure it as the source interface.

4.      Limit the data export rate.

ipv6 netstream export rate rate

Optional.

By default, the data export rate is not limited.

 

Configuring IPv6 NetStream aggregation data export

Before configuring the IPv6 NetStream traditional data export, enable IPv6 NetStream first.

To configure IPv6 NetStream aggregation data export:

 

Step

Command

Remarks

1.      Enter system view.

system-view

N/A

2.      Set an IPv6 NetStream aggregation mode and enter its view.

ipv6 netstream aggregation { as | destination-prefix | prefix | protocol-port | source-prefix | bgp-nexthop }

N/A

3.      Configure the destination address for the IPv6 NetStream aggregation data export.

ipv6 netstream export host ip-address udp-port [ vpn-instance vpn-instance-name ]

By default, no destination address is configured in IPv6 NetStream aggregation view. Its default destination address is that configured in system view, if any.

If you expect to export only IPv6 NetStream aggregation data, configure the destination address in related aggregation view only.

4.      Configure the source interface for IPv6 NetStream aggregation data export.

ipv6 netstream export source interface interface-type interface-number

Optional.

By default, the interface connecting to the NetStream server is used as the source interface.

·       Source interfaces in different aggregation views can be different.

·       If no source interface is configured in aggregation view, the source interface configured in system view, if any, is used.

·       H3C recommends you connect the network management interface to the NetStream server.

5.      Enable the current IPv6 NetStream aggregation configuration.

enable

By default, the current IPv6 NetStream aggregation configuration is disabled..

 

 

NOTE:

Configurations in IPv6 NetStream aggregation view apply to aggregation data export only, and those in system view apply to traditional data export. If configurations in IPv6 NetStream aggregation view are not provided, the configurations in system view apply to the aggregation data export.

 

Displaying and maintaining IPv6 NetStream

 

Task

Command

Remarks

Display the IPv6 NetStream entry information in the cache.

display ipv6 netstream cache [ verbose ] [ slot slot-number ] [ | { begin | exclude | include } regular-expression ]

Available in any view

Display information about IPv6 NetStream data export.

display ipv6 netstream export [ | { begin | exclude | include } regular-expression ]

Available in any view

Display the configuration and status of the NetStream flow record templates.

display ipv6 netstream export template [ slot slot-number ] [ | { begin | exclude | include } regular-expression ]

Available in any view

Clear the cache, and age out and export all IPv6 NetStream data.

reset ipv6 netstream statistics

Available in user view

 

IPv6 NetStream configuration examples

IPv6 NetStream traditional data export configuration example

Network requirements

As shown in Figure 2, configure IPv6 NetStream on Router A to collect statistics on packets passing through it. Configure IPv6 NetStream in the inbound direction on GigabitEthernet 1/1/1. Configure to export IPv6 NetStream traditional data to UDP port 5000 of the NetStream server at 1.1.1.2/16.

Figure 2 Network diagram

 

Configuration procedure

# Configure interface GigabitEthernet 1/1/2.

<RouterA> system-view

[RouterA] ipv6

[RouterA] interface GigabitEthernet1/1/2

[RouterA-GigabitEthernet1/1/2] ip address 1.1.1.1 255.255.0.0

[RouterA-GigabitEthernet1/1/2] quit

# Configure a QoS policy to mirror traffic entering GigabitEthernet 1/1/1 to NetStream interface 2/0/1.

[RouterA] acl ipv6 number 2000

[RouterA-acl6-basic-2000] rule 1 permit source  any

[RouterA-acl6-basic-2000] quit

[RouterA] traffic classifier ns_ipv6

[RouterA-classifier-ns_ipv6] if-match acl ipv6 2000

[RouterA-classifier-ns_ipv6] quit

[RouterA] traffic behavior ns_ipv6

[RouterA-behavior-ns_ipv6] mirror-to interface Net-Stream 2/0/1

[RouterA-behavior-ns_ipv6] quit

[RouterA] qos policy ns_ipv6

[RouterA-qospolicy-ns_ipv6] classifier ns_ipv6 behavior ns_ipv6

[RouterA-qospolicy-ns_ipv6] quit

# Configure interface GigabitEthernet 1/1/1, and apply the QoS policy to the inbound direction of GigabitEthernet 1/1/1.

[RouterA] int GigabitEthernet1/1/1

[RouterA-GigabitEthernet1/1/1] ipv6 address 10::1/64

[RouterA-GigabitEthernet1/1/1] qos apply policy ns_ipv6 inbound

[RouterA-GigabitEthernet1/1/1] qos apply policy ns_ipv6 outbound

[RouterA-GigabitEthernet1/1/1] quit

# Enable IPv6 NetStream on Router A. Specify to export NetStream data to IP address 1.1.1.2 and port 5000 (the NetStream server), leaving the default for source address.

[RouterA] ipv6 netstream

[RouterA] ipv6 netstream export host 1.1.1.2 5000

IPv6 NetStream aggregation data export configuration example

Network requirements

As shown in Figure 3, configure IPv6 NetStream on Router A so that:

·           Router A exports IPv6 NetStream traditional data in version 9 format to port 5000 of the NetStream server at 3.1.1.2/16.

·           Router A performs IPv6 NetStream aggregation in the modes of AS, protocol-port, source-prefix, destination-prefix and prefix. Send the aggregation data to the destination address with DUP port 2000, 3000, 4000, 6000, and 7000 for different modes.

 

 

NOTE:

All the routers in the network are running IPv6 EBGP. For more information about IPv6 BGP, see Layer 3IP Routing Configuration Guide.

 

Figure 3 Network diagram

 

Configuration procedure

# Configure interfaces GigabitEthernet 1/1/1 and GigabitEthernet 1/1/2.

<RouterA> system-view

[RouterA] ipv6

[RouterA] interface GigabitEthernet 1/1/1

[RouterA-GigabitEthernet1/1/1] ipv6 address 15::2 64

[RouterA-GigabitEthernet1/1/1] quit

[RouterA] interface GigabitEthernet 1/1/2

[RouterA-GigabitEthernet1/1/2] ipv6 address 20::1 64

[RouterA-GigabitEthernet1/1/2] quit

[RouterA] interface GigabitEthernet 1/1/3

[RouterA-GigabitEthernet1/1/2] ip address 3.1.1.1 255.255.0.0

[RouterA-GigabitEthernet1/1/2] quit

# Configure a QoS policy to mirror traffic entering GigabitEthernet 1/1/1 to NetStream interface 2/0/1.

[RouterA] acl ipv6 number 2000

[RouterA-acl6-basic-2000] rule 1 permit source  any

[RouterA-acl6-basic-2000] quit

[RouterA] traffic classifier ns_ipv6

[RouterA-classifier-ns_ipv6] if-match acl ipv6 2000

[RouterA-classifier-ns_ipv6] quit

[RouterA] traffic behavior ns_ipv6

[RouterA-behavior-ns_ipv6] mirror-to interface Net-Stream 2/0/1

[RouterA-behavior-ns_ipv6] quit

[RouterA] qos policy ns_ipv6

[RouterA-qospolicy-ns_ipv6] classifier ns_ipv6 behavior ns_ipv6

[RouterA-qospolicy-ns_ipv6] quit

# Apply the QoS policy to the inbound direction of GigabitEthernet 1/1/1.

[RouterA] int GigabitEthernet1/1/1

[RouterA-GigabitEthernet1/1/1] qos apply policy ns_ipv6 inbound

[RouterA-GigabitEthernet1/1/1] quit

# Enable IPv6 NetStream.

[RouterA] ipv6 netstream

# Configure to export IPv6 NetStream data in version 9 format and specify the data to include the source AS, destination AS, and the BGP next hop.

 [RouterA] ipv6 netstream export version 9 origin-as bgp-nexthop

# Configure the maximum entries that the cache can accommodate as 409600.

[RouterA] ipv6 netstream max-entry 409600

# In system view, configure the destination address for the IPv6 NetStream traditional data export with the IP address 3.1.1.2 and port 5000.

[RouterA] ipv6 netstream export host 3.1.1.2 5000

[RouterA] ipv6 netstream export source interface GigabitEthernet 1/1/2

# Configure the aggregation mode as AS, and in aggregation view configure the destination address for the IPv6 NetStream AS aggregation data export.

[RouterA] ipv6 netstream aggregation as

[RouterA-ns6-aggregation-as] enable

[RouterA-ns6-aggregation-as] ipv6 netstream export host 3.1.1.2 2000

[RouterA-ns6-aggregation-as] quit

# Configure the aggregation mode as protocol-port, and in aggregation view configure the destination address for the IPv6 NetStream protocol-port aggregation data export.

[RouterA] ipv6 netstream aggregation protocol-port

[RouterA-ns6-aggregation-protport] enable

[RouterA-ns6-aggregation-protport] ipv6 netstream export host 3.1.1.2 3000

[RouterA-ns6-aggregation-protport] quit

# Configure the aggregation mode as source-prefix, and in aggregation view configure the destination address for the IPv6 NetStream source-prefix aggregation data export.

[RouterA] ipv6 netstream aggregation source-prefix

[RouterA-ns6-aggregation-srcpre] enable

[RouterA-ns6-aggregation-srcpre] ipv6 netstream export host 3.1.1.2 4000

[RouterA-ns6-aggregation-srcpre] quit

# Configure the aggregation mode as destination-prefix, and in aggregation view configure the destination address for the IPv6 NetStream destination-prefix aggregation data export.

[RouterA] ipv6 netstream aggregation destination-prefix

[RouterA-ns6-aggregation-dstpre] enable

[RouterA-ns6-aggregation-dstpre] ipv6 netstream export host 3.1.1.2 6000

[Sysname-ns6-aggregation-dstpre] quit

# Configure the aggregation mode as prefix, and in aggregation view configure the destination address for the IPv6 NetStream prefix aggregation data export.

[RouterA] ipv6 netstream aggregation prefix

[RouterA-ns6-aggregation-prefix] enable

[RouterA-ns6-aggregation-prefix] ipv6 netstream export host 3.1.1.2 7000

[RouterA-ns6-aggregation-prefix] quit

Configuration example for IPv6 NetStream aggregation data export on an SPC card

Network requirements

As shown in Figure 4, configure IPv6 NetStream on Router A as follows:

·           Configure NetStream sampling to reduce the amount of packets to be counted, thus reducing the impact on the router forwarding perform.

·           Configure Router A to export IPv6 NetStream traditional data in version 9 format to port 5000 of the NetStream server at 3.1.1.2/16.

·           Configure Router A to perform IPv6 NetStream aggregation in the modes of AS, protocol-port, source-prefix, destination-prefix and prefix. Send the aggregation data to the destination address with DUP port 2000, 3000, 4000, 6000, and 7000 for different modes.

 

 

NOTE:

All the routers in the network are running IPv6 EBGP. For more information about IPv6 BGP, see Layer 3IP Routing Configuration Guide.

 

Figure 4 Network diagram

 

Configuration procedure

#  Configure interfaces GigabitEthernet 3/0/1 and GigabitEthernet 1/1/2.

<RouterA> system-view

[RouterA] ipv6

[RouterA] interface GigabitEthernet 3/0/1

[RouterA-GigabitEthernet3/0/1] ipv6 address 15::2 64

[RouterA-GigabitEthernet3/0/1] quit

[RouterA] interface GigabitEthernet 1/1/2

[RouterA-GigabitEthernet1/1/2] ipv6 address 20::1 64

[RouterA-GigabitEthernet1/1/2] quit

[RouterA] interface GigabitEthernet 1/1/3

[RouterA-GigabitEthernet1/1/3] ip address 3.1.1.1 255.255.0.0

[RouterA-GigabitEthernet1/1/3] quit

# Create a sampler named ns1 in fixed sampling mode. Set the sampling rate to 4, which means in each sampling, one packet out of 16 packets (2 to the power of 4) is sampled.

[RouterA]sampler ns1 mode fixed packet-interval 4

# Enable NetStream sampling in the outbound direction of GigabitEthernet 3/0/1 and mirror the sampled packets to the NetStream interface.

[RouterA] interface GigabitEthernet 3/0/1

[RouterA-GigabitEthernet3/0/1] ip netstream sampler ns1 outbound

[RouterA-GigabitEthernet3/0/1] ip netstream mirror-to interface Net-Stream 3/0/1 outbound

[RouterA-GigabitEthernet3/0/1] quit

# Enable IPv6 NetStream on Router A.

[RouterA] ipv6 netstream

# Configure to export NetStream data in version 9 format and specify the data to include the source AS, destination AS, and BGP next hop.

[RouterA] ipv6 netstream export version 9 origin-as bgp-nexthop

# Configure the maximum entries that the cache can accommodate as 409600.

[RouterA] ipv6 netstream max-entry 409600

# In system view, configure the destination address for the NetStream traditional data export and the source IP address.

[RouterA] ipv6 netstream export host 3.1.1.2 5000

[RouterA] ipv6 netstream export source interface GigabitEthernet 1/1/3

# Configure the aggregation mode as AS, and in aggregation view configure the destination address for the NetStream AS aggregation data export.

[RouterA] ipv6 netstream aggregation as

[RouterA-ns6-aggregation-as] enable

[RouterA-ns6-aggregation-as] ipv6 netstream export host 3.1.1.2 2000

[RouterA-ns6-aggregation-as] quit

# Configure the aggregation mode as protocol-port, and in aggregation view configure the destination address for the NetStream protocol-port aggregation data export.

[RouterA] ipv6 netstream aggregation protocol-port

[RouterA-ns6-aggregation-protport] enable

[RouterA-ns6-aggregation-protport] ipv6 netstream export host 3.1.1.2 3000

[RouterA-ns6-aggregation-protport] quit

# Configure the aggregation mode as source-prefix, and in aggregation view configure the destination address for the NetStream source-prefix aggregation data export.

[RouterA] ipv6 netstream aggregation source-prefix

[RouterA-ns6-aggregation-srcpre] enable

[RouterA-ns6-aggregation-srcpre] ipv6 netstream export host 3.1.1.2 4000

[RouterA-ns6-aggregation-srcpre] quit

# Configure the aggregation mode as destination-prefix, and in aggregation view configure the destination address for the NetStream destination-prefix aggregation data export.

[RouterA] ipv6 netstream aggregation destination-prefix

[RouterA-ns6-aggregation-dstpre] enable

[RouterA-ns6-aggregation-dstpre] ipv6 netstream export host 3.1.1.2 6000

[Sysname-ns6-aggregation-dstpre] quit

# Configure the aggregation mode as prefix, and in aggregation view configure the destination address for the NetStream prefix aggregation data export.

[RouterA] ipv6 netstream aggregation prefix

[RouterA-ns6-aggregation-prefix] enable

[RouterA-ns6-aggregation-prefix] ipv6 netstream export host 3.1.1.2 7000

[RouterA-ns6-aggregation-prefix] quit