15-Network Management and Monitoring Configuration Guide

HomeSupportRoutersMSR5600 Series(Comware V7)Configure & DeployConfiguration GuidesH3C MSR 5600 Routers Configuration Guides(V7)-R6749-6W10115-Network Management and Monitoring Configuration Guide
04-iFIT configuration
Title Size Download
04-iFIT configuration 578.01 KB

Contents

Configuring iFIT· 1

About iFIT· 1

iFIT technical standards· 1

iFIT application-level measurement 1

Application scenarios· 1

iFIT architecture· 3

Operating mechanism·· 4

iFIT tunnel-level measurement 6

Application scenarios· 6

iFIT architecture· 8

SBFD-based iFIT measurement 9

iFIT measurement based on BFD in echo packet mode· 10

Configuring iFIT application-level measurement 1

Restrictions and guidelines for iFIT application-level measurements· 1

Prerequisites for iFIT application-level measurement 2

iFIT application-level measurement tasks at a glance· 2

Configuring the ingress node· 2

Tasks at a glance· 2

Configuring iFIT· 2

Creating an iFIT instance· 3

Configuring a static flow· 3

Configuring a detection point 5

Configuring a measurement mode· 5

Configuring a measurement period· 6

Enabling iFIT measurement 6

Configuring a transit node and the egress node· 6

Tasks at a glance· 6

Configuring iFIT· 6

Managing a dynamic flow· 7

Verifying and maintaining iFIT application-level measurement 7

Displaying iFIT target flows· 7

Displaying iFIT instances· 7

Displaying and clearing iFIT measurement information· 8

iFIT application-level measurement configuration examples· 8

Example: Configuring iFIT on an IPv4 L3VPN over SRv6 network· 8

Example: Configuring iFIT on an IPv6 EVPN L3VPN over SRv6 network· 10

Example: Configuring iFIT on an EVPN VPWS over SRv6 network· 12

Example: Configuring iFIT on an EVPN VPLS over SRv6 network· 14

Configuring iFIT tunnel-level measurement 1

Prerequisites for iFIT tunnel-level measurement 1

Restrictions and guidelines for iFIT tunnel-level measurement 1

Configuring the ingress node· 1

Configuring the egress node· 2

Verifying and maintaining iFIT tunnel-level measurement 3

 


Configuring iFIT

About iFIT

In-situ Flow Information Telemetry (iFIT) determines network performance by measuring the packet loss and packet delay of service packets transmitted on an SRv6 or G-SRv6 network. iFIT is easy to deploy and provides an accurate assessment of network performance.

iFIT can be used for the following purposes:

·     iFIT application-level measurement—Measures the metrics such as the packet loss rate and delay when service traffic passes through the transmission network. The measurement result can be used to assess the network transmission quality for the service traffic.

·     iFIT tunnel-level measurement—Measures the metrics such as the packet loss rate and delay when packets pass through SRv6 tunnels. The measurement results can be used for intelligent route selection of the SRv6 TE policy module.

iFIT technical standards

iFIT complies with technical standards of CMCC, China Telecom, and China Unicom. These sets of technical standards have differences. For example, these sets of technical standards differ in encapsulation position requirements for iFIT headers in IPv6 packets. Choose one set of standards as needed.

Devices included in iFIT measurement on the same SRv6 link must be configured with the same technical standards. If you fail to do so, iFIT packet parsing might fail, leading to inaccurate iFIT measurement results.

iFIT application-level measurement

Application scenarios

End-to-end measurement

To measure the packet loss and packet delay on the entire network, use end-to-end measurement. As shown in Figure 1, iFIT measures whether packet loss or packet delay occurs between the ingress node (where the target flow enters the IP network) and the egress node (where the flow leaves the network).

Figure 1 End-to-end measurement

Hop-by-hop measurement

To accurately locate the packet loss and packet delay of each network node, use hop-by-hop measurement. To locate the faulty node, you can divide an end-to-end network into smaller measurement spans. As shown in Figure 2, iFIT measures whether the packet loss and packet delay occurs between the ingress node and egress node, ingress node and transit node, transit node and egress node.

Figure 2 Hop-by-hop measurement

 

NOTE:

When the egress device does not support iFIT, end-to-end measurement cannot be performed. In this case, you can configure iFIT on the ingress device and other devices that support iFIT to perform hop-by-hop measurement. This can measure performance of a specific link.

iFIT architecture

Figure 1 and Figure 2 show the important iFIT concepts including target flow, transit network, and measurement system.

Target flow

iFIT provides statistics on a per-flow basis. The target flows can be divided into the following types:

·     Static flow—A static flow is a service flow that matches a set of criteria configured on the ingress node. The ingress node generates a static flow after you enable iFIT measurement and execute the flow command to configure the flow match criteria on the ingress node. The static flow is uniquely identified by a device ID and a flow ID. The device ID is configured by the device-id command and the flow ID is a number randomly generated on the ingress node in the range of 1 to 1048575. The device ID and flow ID are encapsulated in the iFIT header and passed to the transit nodes and egress node.

To view the device ID and flow ID of a static flow on the ingress node, execute the display ifit flow static command.

An iFIT header contains fields to carry device ID, flow ID, measurement period, measurement mode, status of packet delay measurement, and status of packet loss measurement.

¡     A device ID uniquely identifies a device in an iFIT measurement network.

¡     A flow ID is automatically generated on the ingress node and passed to the transit nodes and egress node. A flow ID and a device ID uniquely identify a flow together.

¡     Within a measurement period, the device starts iFIT measurement, collects and reports the measurement data.

¡     The available measurement mode includes end-to-end measurement and hop-by-hop measurement.

·     Dynamic flow—A dynamic flow is learnt by the transit nodes and egress node after they parse the received packets.

The device uses the device ID and flow ID in the iFIT header to identify the flow. If the device does not receive the packets using the same device ID and the same flow ID for a period of time, the device will delete the dynamic flow entry.

Detection point

A detection point is an interface where iFIT measurement is performed. You can specify detection points as required.

Transit network

The transit network only bears target flows. The target flows are not generated or terminated on the transit network. The transit network can only be a Layer 3 network. Each node on the transit network must be reachable.

Measurement system

The measurement system includes the following device role:

·     The ingress node refers to the node that the flow enters the transit network. It filters the target flow, adds iFIT headers to the packets of the flow, collects packet statistics and reports packet statistics to the analyzer.

·     A transit node resides between the egress node and the ingress node. A transit node identifies the target flow by the iFIT header and reports the measurement statistics to the analyzer according to the measurement mode in the iFIT header.

On an SRv6 network, the source and endpoint nodes of an SRv6 tunnel act as the ingress and egress nodes for iFIT measurement, respectively, with the nodes in between named as transit nodes. Transit nodes are divided into two types: Those in the SID list and those not in the SID list. Only transit nodes in the SID list can perform iFIT measurement. Those not in the SID list are not included in SRv6 processing and can only perform regular IPv6 packet forwarding, which even with iFIT measurement enabled, do not parse iFIT headers for iFIT measurement.

On an SRv6 network, the source and endpoint nodes of an SRv6 tunnel act as the ingress and egress nodes for iFIT measurement, respectively, with the nodes in between named as transit nodes. Transit nodes are divided into two types: Those in the SID list and those not in the SID list. By default, only transit nodes in the SID list can perform iFIT measurement. Those not in the SID list are not included in SRv6 processing and can only perform regular IPv6 packet forwarding, which even with iFIT measurement enabled, do not parse iFIT headers for iFIT measurement. To configure transit nodes not in the SID list to perform iFIT measurement, configure the settings depending on the network as follows:

¡     On an SRv6 TE policy or Rv6 BE network of CMCC, perform the following operations:

-     Specify CMCC technical standards for iFIT.

-     Specify hop-by-hop measurement for iFIT.

-     Execute the ifit enable and trace-measure per-hop commands on the transit node.

¡     On an SRv6 BE network of China Telecom or Unicom, perform the following operations:

-     Specify China Telecom or Unicom technical standards for iFIT, respectively.

-     Specify hop-by-hop measurement for iFIT.

-     Execute the ifit enable and trace-measure per-hop commands on the transit node.

¡     On an SRv6 TE policy network of China Telecom or Unicom, transit nodes that use China Telecom or Unicom technical standards do not support iFIT measurement based on the requirements of these technical standards.

·     The egress node identifies the target flow by the iFIT header, reports the measurement statistics to the analyzer, and removes the iFIT header from the packet.

·     The analyzer collects the statistics reported by the ingress node, transit nodes, and egress node for data summarization and calculation.

Operating mechanism

Time synchronization mechanism

Before starting the iFIT measurement, make sure all devices are time synchronized. Therefore, all iFIT-enabled devices can use the same measurement period to report the packet statistics to the analyzer. As a best practice, the analyzer and all iFIT-enabled devices are time synchronized to facilitate management and maintenance.

You can use NTP to synchronize time between devices. Time synchronized through NTP is accurate to milliseconds. For more information about NTP, see NTP configuration in Network Management and Monitoring Configuration Guide.

Packet loss measurement mechanism

The number of incoming packets and that of outgoing packets in a network should be equal within a measurement period. If they are not equal, packet loss occurs in the transit network.

Measurement data reporting mechanism

iFIT-enabled devices push the measurement data to the analyzer by using the gRPC protocol.

Currently, only gRPC dial-out mode is supported. In this mode, iFIT-enabled devices act as gRPC clients and the analyzer acts as a gRPC server (also called a gRPC collector in the gRPC protocol), The iFIT-enabled devices will initiates gRPC connections to the analyzer and push iFIT data to the analyzer.

Working mechanism

The following illustrates the working mechanism of hop-by-hop measurement. No transit nodes exist in end-to-end measurement but end-to-end measurement works similarly as hop-by-hop measurement.

As shown in Figure 3, the flow passes through four devices. Three devices are enabled with iFIT. The iFIT measurement works as follows:

1.     The analyzer synchronizes the time with all iFIT-enabled devices through the NTP protocol.

2.     The iFIT-enabled devices takes the following actions:

a.     The ingress node parses the packets to identify the target flow. It encapsulates iFIT headers to the packets, counts the number of packets, and reports the packet quantity and timestamp to the analyzer through gRPC periodically.

The ingress node is the interface bound to the target flow.

b.     A transit node counts the number of packets containing iFIT headers and reports the packet quantity and timestamp to the analyzer through gRPC periodically.

When the target flow passes through an iFIT-enabled device, the interfaces where the target flow enters the iFIT-enabled device and leaves the iFIT-enabled device are transit nodes.

c.     The egress node parses the packets to identify the target flow. It counts the number of packets containing iFIT headers, reports the packet quantity and timestamp to the analyzer through gRPC periodically, removes iFIT headers from the packets and forwards the packets.

When the target flow leaves the transit network, the interface where the target flow leaves the iFIT-enabled device is the egress point.

3.     The analyzer calculates the packet delay for the target flow of the same period and same instance.

Figure 3 Network diagram

iFIT tunnel-level measurement

iFIT tunnel-level measurement is used to measure the end-to-end quality of the SRv6 tunnel of the SRv6 TE policy. The measurement result can be used for intelligent route selection of the SRv6 TE policy module.

Application scenarios

iFIT supports end-to-end measurement and hop-by-hop measurement for different application scenarios.

End-to-end measurement

Application scenarios

When the egress node in an SRv6 tunnel supports iFIT measurement, use end-to-end measurement. Figure 4 shows a typical application scenario for iFIT tunnel-level measurement.

Operating mechanism

iFIT tunnel-level end-to-end measurement operates as follows:

1.     After iFIT is enabled on the ingress node and egress node of an SRv6 TE policy, the ingress node and egress node will measure the transmitted packet count, delay, and jitter of the SRv6 tunnel periodically based on the iFIT operating mechanism.

2.     The ingress node collects and calculates the packet loss rate, delay, and jitter for each SRv6 TE policy path and provides the measurement results to the SRv6 TE policy module on the same node.

3.     The SRv6 TE policy module on the ingress node will select the optimal forwarding path for the service traffic intelligently based on the iFIT measurement results.

Figure 4 iFIT support for SRv6 TE policy intelligent route selection

 

Hop-by-hop measurement

Application scenarios

When the egress node in an SRv6 tunnel does not support iFIT measurement, use hop-by-hop measurement. Deploy iFIT measurement on the node closest to the egress node of an SRv6 tunnel in the SID list that supports iFIT. Then, iFIT identify this node as "the egress node" of an SRv6 link such as Device E, Device B, and Device F as shown in Figure 5, iFIT will use the measurement results from the ingress node to the egress node as the overall iFIT measurement results for the entire SRv6 link, which will be used for intelligent route selection in the SRv6 TE policy.

If multiple nodes in an SRv6 link are enabled with iFIT measurement, such as Device B and Device C, as shown in Figure 4. iFIT will calculate the overall iFIT measurement results for the entire SRv6 link based on the node closest to the egress node of the SRv6 tunnel (Device C).

Operating mechanism

iFIT tunnel-level hop-by-hop measurement operates as follows:

1.     Enable iFIT on the ingress node and "the egress node" in an SRv6 TE policy.

2.     The ingress node and "the egress node" will measure the transmitted packet count, latency, and jitter of the SRv6 tunnel periodically based on the iFIT operating mechanism.

3.     The ingress node collects and calculates the packet loss rate, latency, and jitter for each SRv6 TE policy and provides the measurement results to the SRv6 TE policy module on the same node.

4.     The SRv6 TE policy module on the ingress node will select the optimal forwarding path for the service traffic intelligently based on the iFIT measurement results.

Restrictions and guidelines

The nodes not in the SID list are not included in SRv6 processing and can only perform regular IPv6 packet forwarding. These nodes are referred to as transit nodes in SRv6. They do not parse iFIT headers for iFIT measurement, even if iFIT measurement is enabled. For transit nodes in SRv6 to perform iFIT measurement, use one of the following methods depending on the network:

·     Add the device to the SID list through SRv6 configuration, and then enable iFIT measurement on the device.

·     Execute the trace-measure per-hop command for transit nodes to perform iFIT measurement. Support for the trace-measure per-hop command varies by device model.

¡     On an SRv6 TE policy or SRv6 BE network of CMCC, for transit nodes to support iFIT, perform the following operations:

-     Specify CMCC technical standards for iFIT.

-     Specify hop-by-hop measurement for iFIT.

-     Execute the ifit enable and trace-measure per-hop commands on the transit node.

¡     On an SRv6 BE network of China Telecom or Unicom, for transit nodes to support iFIT, perform the following operations:

-     Specify China Telecom or Unicom technical standards for iFIT.

-     Specify hop-by-hop measurement for iFIT.

-     Execute the ifit enable and trace-measure per-hop commands on the transit node.

¡     On an SRv6 TE policy network of China Telecom or Unicom, transit nodes that use China Telecom or Unicom technical standards do not support iFIT measurement based on the requirements of these technical standards.

Figure 5 iFIT support for SRv6 TE policy intelligent route selection (hop-by-hop measurement)

 

For more information about the SRv6 TE policies and BFD for the SRv6 TE policies, see SRv6 TE policies configuration in Segment Routing Configuration Guide.

iFIT architecture

In iFIT application-level measurement, iFIT reports measurement results to a collector via Telemetry, which then performs aggregation and calculations. For intelligent router selection of the SRv6 TE policy module, iFIT reports measurement results from both the ingress and egress nodes of the SRv6 TE policies to the ingress node, where the results are aggregated and calculated. The iFIT tunnel-level measurement architecture mainly includes three components: target flow, Collector, and Analyzer.

Target flow

iFIT reuses BFD sessions of the SRv6 TE policy and use them as the target flow to encapsulate iFIT headers to the matched BFD packets for iFIT measurement. This provides the following benefits:

·     Use BFD to detect SRv6 TE policy connectivity, providing millisecond-level fault detection speed and enabling fast fault switchover.

·     iFIT reuses BFD packets as the target flow for link iFIT measurement, simplifying network configuration and software complexity.

An SRv6 TE policy supports both seamless BFD (SBFD) and BFD in echo packet mode for iFIT measurement in different application scenarios, as shown in Table 1.

Table 1 Application scenarios of iFIT based on BFD types

iFIT network

Application scenarios

Measurement requirements

iFIT measurement based on SBFD

Packet loss measurement

Requirements on this type of measurement are the same as the common iFIT measurement as follows:

·     Clock synchronization is performed between the ingress and egress nodes.

·     The one-way network delay between the ingress and egress nodes is equal to or smaller than 1/3 measurement period.

Two-way delay measurement

Synchronize the clock between the ingress and egress nodes and require high precision time synchronization.

As a best practice, use high-precision PTP time synchronization to ensure accurate delay measurement results.

iFIT measurement based on BFD in echo packet mode

Packet loss measurement

Requirements on this type of measurement are the same as the common iFIT measurement.

Two-way delay measurement

No requirements on clock synchronization.

Collector

Collector is deployed on the egress node of the SRv6 TE policy.

The egress node that operates in Collector mode sends the local iFIT measurement results for SRv6 paths to the ingress node (Analyzer) of the SRv6 TE policy via UDP packets.

Analyzer

Analyzer is deployed on the ingress node of the SRv6 TE policy.

A node performs the following tasks when operating in Analyzer mode:

·     Forwards the local iFIT measurement results to Analyzer on the same node.

·     Analyzer aggregates and calculates the iFIT measurement results received from both the ingress and egress nodes, deriving metrics such as packet loss, delay, and jitter for the SRv6 tunnels.

SBFD-based iFIT measurement

As shown in Figure 6, iFIT based on SBFD operates as follows:

1.     Synchronize time between the ingress and egress nodes.

2.     Use iFIT for the SRv6 TE policy on the ingress node and issue measurement parameters to iFIT, such as the segment list ID of the SRv6 tunnel, iFIT measurement period, whether to measure packet loss, whether to measure one-way or two-way delay, packet loss rate criteria, delay criteria, and jitter criteria.

3.     The ingress node automatically creates an iFIT instance and assigns a FlowID to it.

4.     The BFD service module on the ingress node generates SBFD packets for the SRv6 tunnel, adds SRv6 encapsulation to these packets with segment list ID of the SRv6 tunnel encapsulated. Then, the BFD service module notifies the iFIT service module to initiate iFIT measurement.

5.     The iFIT instance on the ingress node matches the segment list ID in SBFD packets by the segment list ID in the SRv6 TE policy:

¡     For the matched SBFD packets, iFIT performs packet loss and delay measurements and sends the results to the local Analyzer module. iFIT considers SBFD packets as service packets, and packet loss and delay measurements based on SBFD are the same as the iFIT application-level measurement.

¡     For the unmatched SBFD packets, iFIT does not perform a measurement.

6.     The egress node parses the iFIT headers in the packets and performs iFIT packet loss and delay measurements.

7.     Collector (egress node) establishes a UDP session with the ingress node based on the source address of the received packets and sends the counted packet statistics and packet timestamps to the ingress node over the UDP session, according to the iFIT measurement period defined in the SRv6 TE policy.

8.     Analyzer (ingress node) calculates the packet loss rate by comparing the number of SBFD packets received on the ingress and egress nodes and computes one-way delay and one-way jitter based on the timestamp when an SBFD packet was sent from the ingress node and timestamp when the same packet was received on the egress node. If the calculated results exceed the packet loss rate, delay, or jitter thresholds defined in the SRv6 TE policy, Analyzer reports the exceeding metrics to the local SRv6 TE policy module on the same node. iFIT will then immediately notify the SRv6 TE policy to initiate a link switch. These results will be used for intelligent route selection through the SRv6 TE policy.

Figure 6 SBFD-based iFIT measurement

iFIT measurement based on BFD in echo packet mode

As shown in Figure 7, iFIT based on BFD in echo packet mode operates as follows:

1.     Synchronize time between the ingress and egress nodes.

2.     Use iFIT for the SRv6 TE policy on the ingress node and issue measurement parameters to iFIT, such as the segment list ID of the SRv6 tunnel, iFIT measurement period, whether to measure packet loss, and whether to measure one-way or two-way delay.

3.     The ingress node automatically creates an iFIT instance and assigns a FlowID to it.

4.     The BFD service module on the ingress node generates BFD echo packets for the SRv6 tunnel, adds SRv6 encapsulation to these packets with segment list ID of the SRv6 tunnel encapsulated. Then, the BFD service module notifies the iFIT service module to initiate iFIT measurement.

5.     The iFIT instance on the ingress node matches the segment list ID in BFD echo packets by the segment list ID in the SRv6 TE policy:

¡     For the matched BFD echo packets, iFIT performs packet loss and delay measurements and sends the results to the local Analyzer module. iFIT considers BFD echo packets as service packets, and packet loss and delay measurements based on BFD in echo packet mode are the same as iFIT application-level measurement.

¡     For the unmatched BFD echo packets, iFIT does not perform a measurement.

6.     The egress node parses the iFIT headers in the packets and performs iFIT packet loss and delay measurements.

7.     Collector (egress node) establishes a UDP session with the ingress node based on the source address of the received packets and sends the counted packet statistics to the ingress node over the UDP session, according to the iFIT measurement period defined in the SRv6 TE policy.

8.     The egress node forwards the received BFD echo packets back to the ingress node along the original path.

9.     The ingress node performs iFIT measurement on the returned BFD echo packets and sends the measurement results to the local Analyzer service module.

10.     Analyzer (ingress node) calculates the packet loss rate by comparing the number of BFD echo packets received on the ingress and egress nodes and computes two-way delay and two-way jitter based on the timestamp when a BFD echo packet was sent from the ingress node and timestamp when the same packet was received on the egress node. If the calculated results exceed the packet loss rate, delay, or jitter thresholds defined in the SRv6 TE policy, Analyzer reports the exceeding metrics to the local SRv6 TE policy module on the same node. iFIT will then immediately notify the SRv6 TE policy to initiate a link switch. These results will be used for intelligent route selection through the SRv6 TE policy.

Figure 7 iFIT measurement based on BFD in echo packet mode


Configuring iFIT application-level measurement

iFIT application-level measurement measures the metrics such as the packet loss rate and delay when service traffic passes through the transmission network. The measurement result can be used to assess the network transmission quality for the service traffic.

Restrictions and guidelines for iFIT application-level measurements

You can configure only one static flow for an iFIT instance. If you configure static flows multiple times for an iFIT instance, the most recent configuration takes effect.

For the static flows to be monitored by different instances, the flow attributes must not be identical and cannot conflict to avoid inaccurate measurement result.

As a best practice, configure iFIT first on the transit nodes and the egress node and then the ingress node. Thus, the measurement results of the previous measurement periods will not affected if iFIT measurement starts on the ingress node but not on the transit nodes and the egress node.

Modifying the iFIT instance or restarting the ingress node will cause flow ID change, which might cause inaccurate measurement data or no data in several measurement periods.

SRv6/G-SRv6 includes SRv6/G-SRv6 TE and SRv6/G-SRv6 BE networks. iFIT configuration varies by network type as follows:

·     In an SRv6/G-SRv6 TE network, configure iFIT on nodes in a SID list. If a transit node is not in a SID list, iFIT measurement cannot be performed even after you configure iFIT on the transit node.

·     In an SRv6/G-SRv6 BE network, if you specify hop-by-hop measurement as the measurement mode, iFIT generates iFIT data only on the ingress and egress nodes during SRv6/G-SRv6 forwarding. The transit nodes only forward IPv6 packets and do not participate in SRv6/G-SRv6 processing, so no iFIT data is generated on the transit nodes.

SRv6/G-SRv6 includes SRv6/G-SRv6 TE and SRv6/G-SRv6 BE networks. The iFIT configuration varies by network type as follows:

·     On an SRv6/G-SRv6 TE network, after iFIT on a device in a SID list is enabled, the device can perform iFIT measurement. For a transit node not in a SID list, even with iFIT measurement enabled, this transit node does not parse iFIT headers for iFIT measurement. Such transit nodes can parse iFIT headers for iFIT measurement only when CCMC technical standards are used on the ingress node and ifit enable and trace-measure per-hop are executed on these transit nodes. The transit nodes on an SRv6/G-SRv6 TE network with China Telecom or Unicom standards do not support iFIT measurement.

·     On an SRv6/G-SRv6 BE network, if you specify hop-by-hop measurement as the measurement mode, iFIT generates iFIT data only on the ingress and egress nodes during SRv6/G-SRv6 forwarding. By default, the transit nodes only forward IPv6 packets and do not participate in SRv6/G-SRv6 processing, so no iFIT data is generated on the transit nodes. For transit nodes to perform iFIT measurement, execute the ifit enable and trace-measure per-hop commands on the transit nodes.

Prerequisites for iFIT application-level measurement

Before configuring iFIT, make sure the analyzer and iFIT-enabled devices are time synchronized through NTP. For more information about NTP, see "Configuring NTP."

To enable the iFIT-enabled devices to report the measurement results to the analyzer, configure gRPC on the analyzer and iFIT-enabled devices. For more information about gRPC, see gRPC configuration in Telemetry Configuration Guide.

 

 

 

iFIT application-level measurement tasks at a glance

To configure iFIT application-level measurement, perform the following tasks:

1.     Configuring the ingress node

2.     Configuring a transit node and the egress node

3.     Verifying and maintaining iFIT application-level measurement

Configuring the ingress node

Tasks at a glance

To configure the ingress node, perform the following tasks:

·     Configuring iFIT

·     Creating an iFIT instance

·     Configuring a static flow

·     Configuring a detection point

·     Configuring a measurement mode

·     Configuring a measurement period

·     Enabling iFIT measurement

Configuring iFIT

1.     Enter system view.

system-view

2.     Enable the iFIT functionality globally and enter its view, or enter the existing iFIT view.

ifit enable

By default, the iFIT functionality is disabled.

3.     Specify the standards used by iFIT.

technical-standard { cmcc | telecom | unicom }

By default, iFIT uses the CMCC technical standards.

This command is not required for end-to-end measurement and will not impact the measurement results of end-to-end measurement.

To ensure correct measurement results of hop-by-hop measurement, you must execute this command and make sure the devices included in iFIT measurement are configured with the same technical standards.

4.     Specify a device ID.

device-id device-id

By default, no device ID is specified.

A device ID is required and uniquely identifies a device in an iFIT measurement network.

Creating an iFIT instance

1.     Enter system view.

system-view

2.     Enter iFIT view.

ifit enable

3.     Create an iFIT instance and enter its view.

instance instance-name

Configuring a static flow

About this task

Static flows are key elements for iFIT measurement. Before starting an iFIT measurement, you must configure a static flow to be measured on the ingress node. You do not need to configure a static flow on the transit nodes and egress node because the device can automatically learn the static flow through the iFIT header of the packets.

The device can perform iFIT measurement based on the following granularities in different scenarios:

·     5-tuple granularity—Used for measuring communication quality of service flows. You can use 5-tuple elements to match service flows.

·     PeerLocator granularity—Used for measuring end-to-end communication quality on the entire network. On an IPv6 network, the peer-locator keyword can specify a tunnel. The device performs iFIT measurement on all service flows through the tunnel.

·     APN ID granularity—Measures the communication quality of an application. This granularity is available only for L3VPN over SRv6/G-SRv6 networks.

Procedure

1.     Enter system view.

system-view

2.     Enter iFIT view.

ifit enable

3.     Create an iFIT instance and enter its view.

instance instance-name

4.     On an IPv4 over SRv6/G-SRv6 public network, configure a static flow to be monitored by the instance.

¡     iFIT measurement based on 5-tuple granularity:

-     IPv4:

flow unidirection source-ip { src-ip-address [ src-mask-length ] | any } destination-ip dest-ip-address [ dest-mask-length ] | any } [ protocol { { sctp | tcp | udp } [ source-port src-port-number ] [ destination-port dest-port-number ] | protocol-number } ] [ dscp dscp-value ]

-     IPv6:

flow unidirection source-ipv6 { src-ipv6-address [ src-prefix-length ] | any } destination-ipv6 dest-ipv6-address [ dest-prefix-length ] | any } [ protocol { { sctp | tcp | udp } [ source-port src-port-number ] [ destination-port dest-port-number ] | protocol-number } ] [ dscp dscp-value ]

¡     iFIT measurement based on PeerLocator granularity:

-     IPv4:

flow unidirection [ source-ip any destination-ip any ] peer-locator ipv6-address prefix-length

IPv6:

flow unidirection [ source-ipv6 any destination-ipv6 any ] peer-locator ipv6-address prefix-length

By default, no static flow is configured for an iFIT instance.

5.     On an L3VPN/EVPN L3VPN over SRv6/G-SRv6 network, configure a static flow to be monitored by the instance.

¡     iFIT measurement based on 5-tuple granularity:

-     IPv4:

flow unidirection source-ip { src-ip-address [ src-mask-length ] | any } destination-ip dest-ip-address [ dest-mask-length ] | any } [ protocol { { sctp | tcp | udp } [ source-port src-port-number ] [ destination-port dest-port-number ] | protocol-number } ] [ dscp dscp-value ] vpn-instance vpn-instance-name

IPv6:

flow unidirection source-ipv6 { src-ipv6-address [ src-prefix-length ] | any } destination-ipv6 dest-ipv6-address [ dest-prefix-length ] | any } [ protocol { { sctp | tcp | udp } [ source-port src-port-number ] [ destination-port dest-port-number ] | protocol-number } ] [ dscp dscp-value ] vpn-instance vpn-instance-name

¡     iFIT measurement based on PeerLocator granularity:

-     IPv4:

flow unidirection [ source-ip any destination-ip any ] [ vpn-instance vpn-instance-name ] peer-locator ipv6-address prefix-length

-     IPv6:

flow unidirection [ source-ipv6 any destination-ipv6 any ] [ vpn-instance vpn-instance-name ] peer-locator ipv6-address prefix-length

¡     iFIT measurement based on APN ID granularity for both IPv4 and IPv6 service flows:

flow unidirection apn-id-ipv6 instance instname

By default, no static flow is specified for an iFIT instance.

6.     On an EVPN VPLS over SRv6/G-SRv6 network, configure a static flow to be monitored by the instance.

¡     iFIT measurement based on PeerLocator granularity:

flow unidirection vsi vsi-name peer-locator ipv6-address prefix-length

By default, no static flow is configured for an iFIT instance.

7.     On an EVPN VPWS over SRv6/G-SRv6 network, configure a static flow to be monitored by the instance.

¡     iFIT measurement based on PeerLocator granularity:

flow unidirection xconnect-group group-name connection connection-name peer-locator ipv6-address prefix-length

By default, no static flow is configured for an iFIT instance.

Configuring a detection point

About this task

Before enabling iFIT measurement on the ingress node of an instance, you must perform this task to bind an interface to the instance. After you bind an interface to an instance, iFIT parses the packets passing through the interface to identify the target packets and add an iFIT header to each target packets. Meanwhile, iFIT will count the number of target packets, and send the packet count and timestamp to the analyzer at intervals through gRPC.

You can configure only one set of flow match criteria for an instance. An instance can be bound to multiple interfaces. Each bound interface matches target flows based on the same set of criteria and assigns different flow IDs to target flows. iFIT measures the delay and packet loss of target flows on a per-interface basis.

Procedure

1.     Enter system view.

system-view

2.     Enter iFIT view.

ifit enable

3.     Create an iFIT instance and enter its view.

instance instance-name

4.     Bind an interface to the instance.

bind interface interface-type interface-number

By default, an instance is not bound to any interface.

Before enabling iFIT measurement on the ingress node of an instance, execute this command to bind an interface to the instance.

Configuring a measurement mode

1.     Enter system view.

system-view

2.     Enter iFIT view.

ifit enable

3.     Create an iFIT instance and enter its view.

instance instance-name

4.     Specify an iFIT measurement mode.

measure mode { e2e | trace }

By default, end-to-end measurement is used.

 

Configuring a measurement period

1.     Enter system view.

system-view

2.     Enter iFIT view.

ifit enable

3.     Create an iFIT instance and enter its view.

instance instance-name

4.     Specify the measurement period for the iFIT instance.

period period

By default, the measurement period for an iFIT instance is 30 seconds.

 

Enabling iFIT measurement

1.     Enter system view.

system-view

2.     Enter iFIT view.

ifit enable

3.     Create an iFIT instance and enter its view.

instance instance-name

4.     Enable iFIT measurement for the iFIT instance.

measure enable

By default, iFIT measurement for an iFIT instance is disabled.

 

Configuring a transit node and the egress node

Tasks at a glance

Transmit nodes are required only for hop-by-hop measurement. For end-to-end measurement, do not configure transit nodes.

To configure a transit node or the ingress node, perform the following tasks:

·     Creating an iFIT instance

·     (Optional.) Managing a dynamic flow

Configuring iFIT

1.     Enter system view.

system-view

2.     Enable the iFIT functionality globally and enter its view.

ifit enable

By default, the iFIT functionality is disabled.

3.     Specify the standards used by iFIT.

technical-standard { cmcc | telecom | unicom }

By default, iFIT uses the CMCC technical standards.

This command is not required for end-to-end measurement and will not impact the measurement results of end-to-end measurement.

To ensure correct measurement results of hop-by-hop measurement, you must execute this command and make sure the devices included in iFIT measurement are configured with the same technical standards.

4.     (Optional.) Enable iFIT measurement on transit nodes in an SRv6 tunnel.

trace-measure per-hop [ be | te ]

By default, iFIT measurement is disabled on transit nodes in an SRv6 tunnel.

Execute this command only when a device not in an SID list uses CMCC technical standards and must participate in iFIT measurement. This command does not take effect if other technical standards are used.

Managing a dynamic flow

1.     Enter system view.

system-view

2.     Enable the iFIT functionality globally and enter its view.

ifit enable

3.     Specify the aging time for dynamic flows.

dynamic-flow aging-time multi-value

By default, the aging time for dynamic flows is 10 times the measurement period and it cannot be less than 5 minutes.

4.     Delete iFIT dynamic flows.

delete dynamic-flow { device-id device-id flow-id flow-id | all }

Verifying and maintaining iFIT application-level measurement

Displaying iFIT target flows

Perform display tasks in any view.

·     Display static flow information.

display ifit flow static [ flow-id flow-id ]

·     Display dynamic flow information.

display ifit flow dynamic [ device-id device-id flow-id flow-id ]

·     Display global information about iFIT target flows.

display ifit global-information

Displaying iFIT instances

To display iFIT instance information, execute the following command in any view:

display ifit instance [ instance-name ]

Displaying and clearing iFIT measurement information

To display iFIT measurement statistics in the most recent 10 measurement periods, execute the following command in any view:

display ifit statistic device-id device-id flow-id flow-id [ verbose ]

To clear iFIT measurement statistics in the most recent 10 measurement periods, execute the following command in user view:

reset ifit statistic [ device-id device-id flow-id flow-id | instance instance-name]

iFIT application-level measurement configuration examples

Example: Configuring iFIT on an IPv4 L3VPN over SRv6 network

Network configuration

As shown in Figure 8, the backbone network is an IPv6 network, and VPN 1 is an IPv4 network. Deploy MPLS L3VPN over SRv6 between PE 1 and PE 2 and use an SRv6 tunnel to transmit VPNv4 traffic between the PEs.

·     Configure EBGP to exchange VPN routing information between the CEs and PEs.

·     Configure IPv6 IS-IS on the PEs in the same AS to realize IPv6 network connectivity.

·     Configure MP-IBGP to exchange VPNv4 routing information between the PEs.

·     Configure iFIT to monitor the occurrence of packet loss and packet delay value when the flow passes through the VPN 1 tunnel.

Figure 8 Network diagram

Prerequisites

1.     Configure IPv4 L3VPN over SRv6. (Details not shown.)

For information about configuring MPLS L3VPN over SRv6, see IP L3VPN over SRv6 configuration in Segment Routing Configuration Guide.

2.     Configure NTP on PE 1 and PE 2 for clock synchronization. (Details not shown.)

For information about configuring NTP, see "Configuring NTP."

Procedure

1.     Configure gRPC:

# Enable the gRPC service.

<PE1> system-view

[PE1] grpc enable

# Create a sensor group named test, and add sensor path ifit/flowstatistics/flowstatistic.

[PE1] telemetry

[PE1-telemetry] sensor-group test

[PE1-telemetry-sensor-group-test] sensor path ifit/flowstatistics/flowstatistic depth 3

[PE1-telemetry-sensor-group-test] quit

# Create a destination group named collector1. Specify a collector that uses IPv6 address 10::10 and port number 50050.

[PE1-telemetry] destination-group collector1

[PE1-telemetry-destination-group-collector1] ipv6-address 10::10 port 50050

[PE1-telemetry-destination-group-collector1] quit

# Configure a subscription named A to bind sensor group test with destination group collector1. Set the sampling interval to 5 seconds.

[PE1-telemetry] subscription A

[PE1-telemetry-subscription-A] sensor-group test sample-interval 5

[PE1-telemetry-subscription-A] destination-group collector1

[PE1-telemetry-subscription-A] quit

[PE1-telemetry] quit

2.     Configure iFIT:

# Enable the iFIT functionality.

[PE1] ifit enable

[PE1-ifit] device-id 1

# Configure instance a to monitor the unidirectional flow from source IP 1.1.1.1/24 to destination IP 1.1.3.1/24 with the PE at 3.3.3.9 as the next hop in VPN instance vpn1.

[PE1-ifit] instance a

[PE1-ifit-instance-a] flow unidirection source-ip 1.1.1.1 24 destination-ip 1.1.2.1 24 vpn-instance vpn1

# Bind interface GigabitEthernet1/0/1 to instance a.

[PE1-ifit-instance-a] bind interface gigabitethernet 1/0/1

# Specify 10 seconds as the measurement period.

[PE1-ifit-instance-a] period 10

# Enable iFIT measurement.

[PE1-ifit-instance-a] measure enable

[PE1-ifit-instance-a] quit

[PE1-ifit] quit

3.     Configure PE 2:

# Configure gRPC.

Use the same procedure to configure gRPC on PE 2 as you configure gRPC on PE 1.

# Enable the iFIT functionality.

<PE2> system-view

[PE2] ifit enable

Verifying the configuration

1.     View iFIT statistics on PE 1.

[PE1-ifit-instance-a] display ifit statistic device-id 1 flow-id 2

Period ID     Direction       PktCount        Timestamp(sec, nsec)   Interface

163059918     Ingress         4124            1630599180, 1889782    GE1/0/1

163059919     Ingress         4124            1630599190, 1901494    GE1/0/1

163059920     Ingress         4124            1630599200, 1912118    GE1/0/1

2.     View iFIT statistics on PE 2.

[PE2] display ifit statistic device-id 1 flow-id 2

Period ID     Direction       PktCount        Timestamp(sec, nsec)   Interface

163059918     Egress          4124            1630599180, 1948185    GE1/0/1

163059919     Egress          4124            1630599190, 1959405    GE1/0/1

163059920     Egress          4120            1630599200, 1968503    GE1/0/1

3.     Packet loss occurs in period 163059920 by viewing iFIT statistics on the analyzer.

Example: Configuring iFIT on an IPv6 EVPN L3VPN over SRv6 network

Network configuration

As shown in Figure 9, the backbone network is an IPv6 network. Deploy EVPN L3VPN over SRv6 in SRv6-BE mode between PE 1 and PE 2 and use an SRv6 tunnel to transmit EVPN traffic between the PEs.

·     Configure EBGP to exchange VPN routing information between the CEs and PEs.

·     Configure IPv6 IS-IS on the PEs in the same AS to realize IPv6 network connectivity.

·     Configure MP-IBGP to exchange EVPN routing information between the PEs.

·     Configure iFIT to monitor the occurrence of packet loss and packet delay value when the flow passes through the VPN 1 tunnel.

Figure 9 Network diagram

 

Prerequisites

1.     Configure IPv6 EVPN L3VPN over SRv6. (Details not shown.)

For information about configuring IPv6 EVPN L3VPN over SRv6, see EVPN L3VPN over SRv6 configuration in Segment Routing Configuration Guide.

2.     Configure NTP on PE 1 and PE 2 for clock synchronization. (Details not shown.)

For information about configuring NTP, see "Configuring NTP."

Procedure

1.     Configure gRPC:

# Enable the gRPC service.

<PE1> system-view

[PE1] grpc enable

# Create a sensor group named test, and add sensor path ifit/flowstatistics/flowstatistic.

[PE1] telemetry

[PE1-telemetry] sensor-group test

[PE1-telemetry-sensor-group-test] sensor path ifit/flowstatistics/flowstatistic depth 3

[PE1-telemetry-sensor-group-test] quit

# Create a destination group named collector1. Specify a collector that uses IPv6 address 10::10 and port number 50050.

[PE1-telemetry] destination-group collector1

[PE1-telemetry-destination-group-collector1] ipv6-address 10::10 port 50050

[PE1-telemetry-destination-group-collector1] quit

# Configure a subscription named A to bind sensor group test with destination group collector1. Set the sampling interval to 5 seconds.

[PE1-telemetry] subscription A

[PE1-telemetry-subscription-A] sensor-group test sample-interval 5

[PE1-telemetry-subscription-A] destination-group collector1

[PE1-telemetry-subscription-A] quit

[PE1-telemetry] quit

2.     Configure iFIT:

# Enable the iFIT functionality.

[PE1] ifit enable

[PE1-ifit] device-id 1

# Configure instance a to monitor the performance parameters of the service flow transmitting in VPN instance vpn1 from source end 2001::1 to destination end 2002::1.

[PE1-ifit] instance a

[PE1-ifit-instance-a] flow unidirection source-ipv6 2001::1 destination-ipv6 2002::1 vpn-instance vpn1

# Bind interface GigabitEthernet1/0/1 to instance a.

[PE1-ifit-instance-a] bind interface gigabitethernet 1/0/1

# Specify 10 seconds as the measurement period.

[PE1-ifit-instance-a] period 10

# Enable iFIT measurement.

[PE1-ifit-instance-a] measure enable

[PE1-ifit-instance-a] quit

[PE1-ifit] quit

3.     Configure PE 2:

# Configure gRPC.

Use the same procedure to configure gRPC on PE 2 as you configure gRPC on PE 1.

# Enable the iFIT functionality.

<PE2> system-view

[PE2] ifit enable

Verifying the configuration

1.     View iFIT statistics on PE 1.

[PE1-ifit-instance-a] display ifit statistic device-id 1 flow-id 2

Period ID     Direction       PktCount        Timestamp(sec, nsec)   Interface

163059918     Ingress         4124            1630599180, 1889782    GE1/0/1

163059919     Ingress         4124            1630599190, 1901494    GE1/0/1

163059920     Ingress         4124            1630599200, 1912118    GE1/0/1

2.     View iFIT statistics on PE 2.

[PE2] display ifit statistic device-id 1 flow-id 2

Period ID     Direction       PktCount        Timestamp(sec, nsec)   Interface

163059918     Egress          4124            1630599180, 1948185    GE1/0/1

163059919     Egress          4124            1630599190, 1959405    GE1/0/1

163059920     Egress          4120            1630599200, 1968503    GE1/0/1

3.     Packet loss occurs in period 163059920 by viewing iFIT statistics on the analyzer.

Example: Configuring iFIT on an EVPN VPWS over SRv6 network

Network configuration

As shown in Figure 10, user sites CE 1 and CE 2 connect to PE1 and PE 2, respectively through Ethernet interfaces. Configure CE 1 and CE 2 to communicate through an SRv6 tunnel over the IPv6 backbone network.

The two PEs set up an SRv6 tunnel after assigning End.DX2 SIDs to the cross-connect. On a PE, this SRv6 tunnel is used as an SRv6 PW to encapsulate and forward Layer 2 data packets received from the local site and destined for a remote site.

Configure iFIT to monitor the occurrence of packet loss and packet delay value when the flow passes through the SRv6 tunnel.

Figure 10 Network diagram

Prerequisites

1.     Configure EVPN VPWS over SRv6. (Details not shown.)

For information about configuring EVPN VPWS over SRv6, see EVPN VPWS over SRv6 configuration in Segment Routing Configuration Guide.

2.     Configure PTP on PE 1 and PE 2 for clock synchronization. (Details not shown.)

For information about configuring PTP, see "Configuring PTP."

Procedure

1.     Configure PE 1:

a.     Configure gRPC:

# Enable the gRPC service.

<PE1> system-view

[PE1] grpc enable

# Create a sensor group named test, and add sensor path ifit/flowstatistics/flowstatis.

[PE1] telemetry

[PE1-telemetry] sensor-group test

[PE1-telemetry-sensor-group-test] sensor path ifit/flowstatistics/flowstatistic depth 3

[PE1-telemetry-sensor-group-test] quit

# Create a destination group named collector1. Specify a collector that uses IPv6 address 10::10 and port number 50050.

[PE1-telemetry] destination-group collector1

[PE1-telemetry-destination-group-collector1] ipv6-address 10::10 port 50050

[PE1-telemetry-destination-group-collector1] quit

# Configure a subscription named A to bind sensor group test with destination group collector1. Set the sampling interval to 5 seconds.

[PE1-telemetry] subscription A

[PE1-telemetry-subscription-A] sensor-group test sample-interval 5

[PE1-telemetry-subscription-A] destination-group collector1

[PE1-telemetry-subscription-A] quit

[PE1-telemetry] quit

b.     Configure iFIT:

# Enable the iFIT functionality.

[PE1] ifit enable

[PE1-ifit] device-id 1

# Configure instance a to monitor the service flow with cross-connect con1 of cross-connect group xca. The PeerlLocator for the service flow is 6:5::.

[PE1-ifit] instance a

[PE1-ifit-instance-a] flow unidirection xconnect-group xca connection con1 peer-locator 6:5:: 96

# Bind interface GigabitEthernet 1/0/1 to instance a.

[PE1-ifit-instance-a] bind interface gigabitethernet 1/0/1

# Specify 10 seconds as the measurement period.

[PE1-ifit-instance-a] period 10

# Enable the iFIT functionality.

[PE1-ifit-instance-a] measure enable

[PE1-ifit-instance-a] quit

[PE1-ifit] quit

2.     Configure PE 2:

a.     Configure gRPC.

Use the same procedure to configure gRPC on PE 2 as you configure gRPC on PE 1.

b.     Enable the iFIT functionality.

<PE2> system-view

[PE2] ifit enable

Verifying the configuration

1.     View iFIT statistics on PE 1.

[PE1] display ifit statistic device-id 1 flow-id 2

Period ID     Direction       PktCount        Timestamp(sec, nsec)   Interface

163059918     Ingress         4124            1630599180, 1889782    GE1/0/1

163059919     Ingress         4124            1630599190, 1901494    GE1/0/1

163059920     Ingress         4124            1630599200, 1912118    GE1/0/1

2.     View iFIT statistics on PE 2.

[PE2] display ifit statistic device-id 1 flow-id 2

Period ID     Direction       PktCount        Timestamp(sec, nsec)   Interface

163059918     Egress          4124            1630599180, 1948185    GE1/0/1

163059919     Egress          4124            1630599190, 1959405    GE1/0/1

163059920     Egress          4120            1630599200, 1968503    GE1/0/1

3.     Packet loss occurs in period 163059920 by viewing iFIT statistics on the analyzer.

Example: Configuring iFIT on an EVPN VPLS over SRv6 network

Network configuration

As shown in Figure 11, user sites CE 1 and CE 2 connect to PE1 and PE 2, respectively through Ethernet interfaces. Configure CE 1 and CE 2 to achieve communicate through EVPN VPLS over SRv6 over the IPv6 backbone network.

PEs set up an SRv6 tunnel by advertising End.DT2M SIDs, End.DT2U SIDs, and End.DX2 SIDs to each other through BGP EVPN routes. On a PE, this SRv6 tunnel is used as a PW to encapsulate and forward Layer 2 data packets received from the local site and destined for a remote site.

Configure iFIT to monitor the occurrence of packet loss and packet delay value when the flow passes through the SRv6 tunnel.

Figure 11 Network diagram

Prerequisites

1.     Configure EVPN VPLS over SRv6. (Details not shown.)

For information about configuring EVPN VPLS over SRv6, see EVPN VPLS over SRv6 configuration in EVPN Configuration Guide.

2.     Configure PTP on PE 1 and PE 2 for clock synchronization. (Details not shown.)

For information about configuring PTP, see "Configuring PTP."

Procedure

1.     Configure PE 1:

a.     Configure gRPC:

# Enable the gRPC service.

<PE1> system-view

[PE1] grpc enable

# Create a sensor group named test, and add sensor path ifit/flowstatistics/flowstatis.

[PE1] telemetry

[PE1-telemetry] sensor-group test

[PE1-telemetry-sensor-group-test] sensor path ifit/flowstatistics/flowstatistic depth 3

[PE1-telemetry-sensor-group-test] quit

# Create a destination group named collector1. Specify a collector that uses IPv6 address 10::10 and port number 50050.

[PE1-telemetry] destination-group collector1

[PE1-telemetry-destination-group-collector1] ipv6-address 10::10 port 50050

[PE1-telemetry-destination-group-collector1] quit

# Configure a subscription named A to bind sensor group test with destination group collector1. Set the sampling interval to 5 seconds.

[PE1-telemetry] subscription A

[PE1-telemetry-subscription-A] sensor-group test sample-interval 5

[PE1-telemetry-subscription-A] destination-group collector1

[PE1-telemetry-subscription-A] quit

[PE1-telemetry] quit

b.     Configure iFIT:

# Enable the iFIT functionality.

[PE1] ifit enable

[PE1-ifit] device-id 1

# Configure instance a to monitor the service flow with VSI vsi and PeerLocator 6:5::.

[PE1-ifit] instance a

[PE1-ifit-instance-a] flow unidirection vsi vsi1 peer-locator 6:5:: 96

# Bind interface GigabitEthernet 1/0/1 to instance a.

[PE1-ifit-instance-a] bind interface gigabitethernet 1/0/1

# Specify 10 seconds as the measurement period.

[PE1-ifit-instance-a] period 10

# Enable the iFIT functionality.

[PE1-ifit-instance-a] measure enable

[PE1-ifit-instance-a] quit

[PE1-ifit] quit

2.     Configure PE 2:

a.     Configure gRPC:

Use the same procedure to configure gRPC on PE 2 as you configure gRPC on PE 1.

b.     Enable the iFIT functionality.

<PE2> system-view

[PE2] ifit enable

Verifying the configuration

1.     View iFIT statistics on PE 1.

[PE1] display ifit statistic device-id 1 flow-id 2

Period ID     Direction       PktCount        Timestamp(sec, nsec)   Interface

163059918     Ingress         4124            1630599180, 1889782    GE1/0/1

163059919     Ingress         4124            1630599190, 1901494    GE1/0/1

163059920     Ingress         4124            1630599200, 1912118    GE1/0/1

2.     View iFIT statistics on PE 2.

[PE2] display ifit statistic device-id 1 flow-id 2

Period ID     Direction       PktCount        Timestamp(sec, nsec)   Interface

163059918     Egress          4124            1630599180, 1948185    GE1/0/1

163059919     Egress          4124            1630599190, 1959405    GE1/0/1

163059920     Egress          4120            1630599200, 1968503    GE1/0/1

3.     Packet loss occurs in period 163059920 by viewing iFIT statistics on the analyzer.


Configuring iFIT tunnel-level measurement

Prerequisites for iFIT tunnel-level measurement

For information about configuring SRv6 TE policies, see SRv6 TE policies configuration in Segment Routing Configuration Guide.

Before configuring iFIT, make sure the ingress node and egress node are time synchronized through PTP. For more information about PTP, see PTP configuration in Network Management and Monitoring Configuration Guide.

Restrictions and guidelines for iFIT tunnel-level measurement

To meet various customer networking requirements, iFIT supports measuring SRv6 tunnel quality in the following networking types:

·     The egress node of an SRv6 tunnel supports iFIT measurement.

On such a network, set the SRv6 tunnel's egress node as the iFIT measurement egress node. Configure end-to-end measurement on the ingress node, measuring the quality of the entire SRv6 tunnel.

·     The egress node of an SRv6 tunnel does not support iFIT measurement, but the penultimate hop is included in the SID list.

On such a network, use the iFIT-capable node closest to the original egress node of the SRv6 tunnel in the SID list as the new egress node of the SRv6 link. Use the quality of the link between the ingress node and this new egress node to represent the quality of the entire SRv6 tunnel. On this network, configure hop-by-hop measurement on the ingress node.

·     To meet China Mobile's networking requirements, you can specify the node that is not in the SID list but closest to the egress node of an SRv6 tunnel and supports iFIT as the new egress node of the SRv6 link. Use the quality of the link between the ingress node and this new egress node to represent the quality of the entire SRv6 tunnel. On this network, configure hop-by-hop measurement on the ingress node of iFIT measurement and execute the trace-measure per-hop command on the egress node of iFIT measurement. In addition, make sure both the ingress and egress nodes are configured with the CMCC technical standards.

Configuring the ingress node

1.     Enter system view.

system-view

2.     Enable iFIT and enter iFIT view.

ifit enable

By default, iFIT is disabled.

3.     Specify the iFIT measurement mode by executing the following commands:

¡     instance instance-name

¡     measure mode { e2e | trace }

¡     quit

By default, end-to-end measurement is used.

If the egress node of the SRv6 tunnel supports iFIT, specify e2e as the measurement mode. If the egress node of the SRv6 tunnel does not support iFIT, specify trace as the measurement mode.

The measurement mode can be also specified by the SRv6 TE policy module. If the measurement mode specified by the SRv6 TE policy module is different from that by the measure mode command, the measurement mode specified by the SRv6 TE policy module takes effect. For more information, see SRv6 TE policy commands in Segment Routing Command Reference.

4.     Specify the standards used by iFIT.

technical-standard { cmcc | telecom | unicom }

By default, iFIT uses the CMCC technical standards.

This command is not required for end-to-end measurement and will not impact the measurement results of end-to-end measurement.

To ensure correct measurement results of hop-by-hop measurement, you must execute this command and make sure the devices included in iFIT measurement are configured with the same technical standards.

5.     Configure the device to act as iFIT Analyzer and enter iFIT Analyzer view.

work-mode analyzer

By default, the device does not act as iFIT Analyzer.

6.     Configure iFIT to collaborate with SRv6 TE policies.

service-type srv6-segment-list

By default, the collaboration between iFIT and SRv6 TE policies is disabled.

The iFIT module on the ingress node responds to SRv6 TE policy requests to perform iFIT measurement on the SRv6 TE policy link only when you execute this command.

Configuring the egress node

1.     Enter system view.

system-view

2.     Enable iFIT and enter iFIT view.

ifit enable

By default, iFIT is disabled.

3.     Specify the standards used by iFIT.

technical-standard { cmcc | telecom | unicom }

By default, iFIT uses the CMCC technical standards

This command is required only for hop-by-hop measurement.

To ensure correct measurement results of hop-by-hop measurement, you must execute this command and make sure the ingress node and the egress node are configured with the same technical standards.

4.     (Optional.) Enable iFIT measurement on transit nodes in SRv6 runnels.

trace-measure per-hop [ te ]

By default, iFIT measurement is disabled on transit nodes in SRv6 tunnels.

Execute this command only when a device not in an SID list uses CMCC technical standards and must participate in iFIT measurement. This command does not take effect if other technical standards are used.

5.     Configure the device to act as iFIT Collector and enter iFIT Collector view.

work-mode collector

By default, the device does not act as iFIT Collector.

6.     Configure iFIT to collaborate with SRv6 TE policies.

service-type srv6-segment-list

By default, the collaboration between iFIT and SRv6 TE policies is disabled.

Verifying and maintaining iFIT tunnel-level measurement

Perform display tasks in any view.

·     Display global information of iFIT target flows.

display ifit global-information

·     Display information about the iFIT flow for the SRv6 TE policy.

display ifit srv6-segment-list [ global-segment-list-id ]

·     Display the iFIT measurement result from iFIT Analyzer.

display ifit statistic-type { one-way-delay | two-way-delay | one-way-loss } { srv6-segment-list global-segment-list-id | device-id device-id flow-id flow-id }

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网