- play_arrow Flow Monitoring and Flow Collection Services
- play_arrow Understanding Flow Monitoring
- play_arrow Monitoring Traffic Using Active Flow Monitoring
- Configuring Active Flow Monitoring
- Active Flow Monitoring System Requirements
- Active Flow Monitoring Applications
- Active Flow Monitoring PIC Specifications
- Active Flow Monitoring Overview
- Active Flow Monitoring Overview
- Example: Configuring Active Monitoring on an M, MX or T Series Router’s Logical System
- Example: Configuring Flow Monitoring on an MX Series Router with MS-MIC and MS-MPC
- Configuring Services Interface Redundancy with Flow Monitoring
- Configuring Inline Active Flow Monitoring Using Routers, Switches or NFX250
- Configuring Flow Offloading on MX Series Routers
- Configuring Active Flow Monitoring on PTX Series Packet Transport Routers
- Configuring Actively Monitored Interfaces on M, MX and T Series Routers
- Collecting Flow Records
- Configuring M, MX and T Series Routers for Discard Accounting with an Accounting Group
- Configuring M, MX and T Series Routers for Discard Accounting with a Sampling Group
- Configuring M, MX and T Series Routers for Discard Accounting with a Template
- Defining a Firewall Filter on M, MX and T Series Routers to Select Traffic for Active Flow Monitoring
- Processing IPv4 traffic on an M, MX or T Series Router Using Monitoring services, Adaptive services or Multiservices Interfaces
- Replicating M, MX and T Series Routing Engine-Based Sampling to Multiple Flow Servers
- Replicating Version 9 Flow Aggregation From M, MX and T Series Routers to Multiple Flow Servers
- Configuring Routing Engine-Based Sampling on M, MX and T Series Routers for Export to Multiple Flow Servers
- Example: Copying Traffic to a PIC While an M, MX or T Series Router Forwards the Packet to the Original Destination
- Configuring an Aggregate Export Timer on M, MX and T Series Routers for Version 8 Records
- Example: Sampling Configuration for M, MX and T Series Routers
- Associating Sampling Instances for Active Flow Monitoring with a Specific FPC, MPC, or DPC
- Example: Sampling Instance Configuration
- Example: Sampling and Discard Accounting Configuration on M, MX and T Series Routers
- play_arrow Monitoring Traffic Using Passive Flow Monitoring
- Passive Flow Monitoring Overview
- Passive Flow Monitoring System Requirements for T Series, M Series and MX Series Routers
- Passive Flow Monitoring Router and Software Considerations for T Series, M Series and MX Series Routers
- Understanding Passive Flow Monitoring on T Series, M Series and MX Series Routers
- Enabling Passive Flow Monitoring on M Series, MX Series or T Series Routers
- Configuring Passive Flow Monitoring
- Example: Passive Flow Monitoring Configuration on M, MX and T Series Routers
- Configuring a Routing Table Group on an M, MX or T Series Router to Add Interface Routes into the Forwarding Instance
- Using IPSec and an ES PIC on an M, MX or T Series Router to Send Encrypted Traffic to a Packet Analyzer
- Applying a Firewall Filter Output Interface on an M, MX or T Series Router to Port-mirror Traffic to PICs or Flow Collection Services
- Monitoring Traffic on a Router with a VRF Instance and a Monitoring Group
- Specifying a Firewall Filter on an M, MX or T Series Router to Select Traffic to Monitor
- Configuring Input Interfaces, Monitoring Services Interfaces and Export Interfaces on M, MX or T Series Routers
- Establishing a VRF Instance on an M, MX or T Series Router for Monitored Traffic
- Configuring a Monitoring Group on an M, MX or T Series Router to Send Traffic to the Flow Server
- Configuring Policy Options on M, MX or T Series Routers
- Stripping MPLS Labels on ATM, Ethernet-Based and SONET/SDH Router Interfaces
- Using an M, MX or T Series Router Flow Collector Interface to Process and Export Multiple Flow Records
- Example: Configuring a Flow Collector Interface on an M, MX or T Series Router
- play_arrow Processing and Exporting Multiple Records Using Flow Collection
- play_arrow Logging Flow Monitoring Records with Version 9 and IPFIX Templates for NAT Events
- Understanding NAT Event Logging in Flow Monitoring Format on an MX Series Router or NFX250
- Configure Active Flow Monitoring Logs for NAT44/NAT64
- Configuring Log Generation of NAT Events in Flow Monitoring Record Format on an MX Series Router or NFX250
- Exporting Syslog Messages to an External Host Without Flow Monitoring Formats Using an MX Series Router or NFX250
- Exporting Version 9 Flow Data Records to a Log Collector Overview Using an MX Series Router or NFX250
- Understanding Exporting IPFIX Flow Data Records to a Log Collector Using an MX Series Router or NFX250
- Mapping Between Field Values for Version 9 Flow Templates and Logs Exported From an MX-Series Router or NFX250
- Mapping Between Field Values for IPFIX Flow Templates and Logs Exported From an MX Series Router or NFX250
- Monitoring NAT Events on MX Series Routers by Logging NAT Operations in Flow Template Formats
- Example: Configuring Logs in Flow Monitoring Format for NAT Events on MX Series Routers for Troubleshooting
-
- play_arrow Flow Capture Services
- play_arrow Dynamically Capturing Packet Flows Using Junos Capture Vision
- play_arrow Detecting Threats and Intercepting Flows Using Junos Flow-Tap and FlowTapLite Services
- Understanding the FlowTap and FlowTapLite Services
- Understanding FlowTap and FlowTapLite Architecture
- Configuring the FlowTap Service on MX Series Routers
- Configuring a FlowTap Interface on MX Series Routers
- Configuring FlowTap and FlowTapLite Security Properties
- FlowTap and FlowTapLite Application Restrictions
- Examples: Configuring the FlowTapLite Application on MX Series and ACX Series Routers
- Configuring FlowTapLite on MX Series Routers and M320 Routers with FPCs
-
- play_arrow Inline Monitoring Services and Inband Network Telemetry
- play_arrow Inline Monitoring Services
- play_arrow Flow-Based Telemetry
- play_arrow Inband Flow Analyzer 2.0
- play_arrow Juniper Resiliency Interface
-
- play_arrow Sampling and Discard Accounting Services
- play_arrow Sampling Data Using Traffic Sampling and Discard Accounting
- play_arrow Sampling Data Using Inline Sampling
- Understand Inline Active Flow Monitoring
- Configuring Inline Active Flow Monitoring Using Routers, Switches or NFX250
- Configuring Inline Active Flow Monitoring on MX80 and MX104 Routers
- Configuring Inline Active Flow Monitoring on PTX Series Routers
- Inline Active Flow Monitoring of MPLS-over-UDP Flows on PTX Series Routers
- Inline Active Flow Monitoring on IRB Interfaces
- Example: Configuring Inline Active Flow Monitoring on MX Series and T4000 Routers
- play_arrow Sampling Data Using Flow Aggregation
- Understanding Flow Aggregation
- Enabling Flow Aggregation
- Configuring Flow Aggregation on MX, M and T Series Routers and NFX250 to Use Version 5 or Version 8 cflowd
- Configuring Flow Aggregation on MX, M, vMX and T Series Routers and NFX250 to Use Version 9 Flow Templates
- Configuring Flow Aggregation on PTX Series Routers to Use Version 9 Flow Templates
- Configuring Inline Active Flow Monitoring to Use IPFIX Flow Templates on MX, vMX and T Series Routers, EX Series Switches, NFX Series Devices, and SRX Series Firewalls
- Configuring Flow Aggregation to Use IPFIX Flow Templates on PTX Series Routers
- Configuring Observation Domain ID and Source ID for Version 9 and IPFIX Flows
- Configuring Template ID and Options Template ID for Version 9 and IPFIX Flows
- Including Fragmentation Identifier and IPv6 Extension Header Elements in IPFIX Templates on MX Series Routers
- Directing Replicated Flows from M and T Series Routers to Multiple Flow Servers
- Logging cflowd Flows on M and T Series Routers Before Export
- Configuring Next-Hop Address Learning on MX Series and PTX Series Routers for Destinations Accessible Over Multiple Paths
-
- play_arrow Configuration Statements and Operational Commands
Example: Configure an RFC 2544-Based Benchmarking Test for Layer 3 IPv4 Services
This example shows how to configure the benchmarking test for a Layer 3 IPv4 service.
This example is not applicable for ACX5448, ACX5048, and ACX5096 routers.
Requirements
This example uses the following hardware and software components:
An ACX Series router
Junos OS Release 12.3X53 or later
Overview
Consider a sample topology in which a router, Router A, functions as an initiator and terminator of the test frames for an RFC 2544-based benchmarking test. Router A is connected over a Layer 3 network to another router, Router B, which functions as a reflector to reflect back the test frames it receives from Router A. IPv4 is used for transmission of test frames over the Layer 3 network. This benchmarking test is used to compute the IPv4 service parameters between Router A and Router B. Logical interfaces on both the routers are configured with IPv4 addresses to measure the performance attributes, such as throughput, latency, frame loss, and bursty frames, of network devices for the IPv4 service.
Figure 1 shows the sample topology to perform an RFC 2544 test for a Layer 3 IPv4 service.

Configuration
In this example, you configure the benchmarking test for a Layer 3 IPv4 service that is between interface ge-0/0/0 on Router A and interface ge-0/0/4 on Router B to detect and analyze the performance of the interconnecting routers. You do not configure a test profile on Router B, because it operates as a reflector. You must configure the reflector (Router B) before you configure the initiator (Router A), because the reflector needs to be already configured and the tests running before you start tests on the initiator. If you start the tests on the initiator first, then all the packets sent are lost until you start the tests on the reflector.
- CLI Quick Configuration
- Configure Benchmarking Test Parameters on Router B
- Configure Benchmarking Test Parameters on Router A
- Results
CLI Quick Configuration
To quickly configure this example, copy the following commands, paste them in a
text file, remove any line breaks, change any details necessary to match your
network configuration, and then copy and paste the commands into the CLI at the
[edit
] hierarchy level:
Configure Benchmarking Test Parameters on Router B
set interfaces ge-0/0/4 unit 0 family inet address 192.0.2.2/24 set services rpm rfc2544-benchmarking tests test-name test1 test-interface ge-0/0/4.0 set services rpm rfc2544-benchmarking tests test-name test1 mode reflect set services rpm rfc2544-benchmarking tests test-name test1 family inet set services rpm rfc2544-benchmarking tests test-name test1 destination-ipv4-address 192.0.2.2 set services rpm rfc2544-benchmarking tests test-name test1 destination-udp-port 4001 set rfc2544-benchmarking tests test-name test1 source-ipv4-address 192.0.2.1
Configure Benchmarking Test Parameters on Router A
set interfaces ge-0/0/0 unit 0 family inet address 192.0.2.1/24 set rfc2544-benchmarking profiles test-profile throughput test-type throughput set rfc2544-benchmarking profiles test-profile throughput packet-size 64 set rfc2544-benchmarking profiles test-profile throughput bandwidth-kbps 1000 set rfc2544-benchmarking tests test-name test1 test-profile throughput set rfc2544-benchmarking tests test-name test1 test-interface ge-0/0/0.0 set rfc2544-benchmarking tests test-name test1 mode initiate-and-terminate set rfc2544-benchmarking tests test-name test1 family inet set rfc2544-benchmarking tests test-name test1 destination-ipv4-address 192.0.2.2 set rfc2544-benchmarking tests test-name test1 destination-udp-port 4001 set rfc2544-benchmarking tests test-name test1 source-ipv4-address 192.0.2.1
Configure Benchmarking Test Parameters on Router B
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For information about navigating the CLI, see Using the CLI Editor in Configuration Mode.
To configure the test parameters on Router B:
In configuration mode, go to the
[edit interfaces]
hierarchy level:content_copy zoom_out_map[edit] user@RouterB# edit interfaces
Configure the interface on which the test must be run.
content_copy zoom_out_map[edit interfaces] user@RouterB# edit ge-0/0/4
Configure a logical unit and specify the protocol family as
inet
.content_copy zoom_out_map[edit interfaces ge-0/0/4] user@RouterB# edit unit 0 family inet
Specify the address for the logical interface.
content_copy zoom_out_map[edit interfaces ge-0/0/4 unit 0 family inet] user@RouterB# set address 192.0.2.2/24
Enter the
up
command to go the previous level in the configuration hierarchy.content_copy zoom_out_map[edit interfaces ge-0/0/4 unit 0 family inet] user@RouterB# up
Go to the top level of the configuration mode.
content_copy zoom_out_map[edit interfaces ge-0/0/4 unit 0] user@RouterB# top
In configuration mode, go to the
[edit services]
hierarchy level.content_copy zoom_out_map[edit] user@RouterB# edit services
Configure a real-time performance monitoring service (RPM) instance.
content_copy zoom_out_map[edit services] user@RouterB# edit rpm
Configure an RFC 2544-based benchmarking test for the RPM instance.
content_copy zoom_out_map[edit services rpm] user@RouterB# edit rfc2544-benchmarking
Define a name for the test—for example, test1. The test name identifier can be up to 32 characters in length.
content_copy zoom_out_map[edit services rpm rfc2544-benchmarking] user@RouterB# edit tests test-name test1
Specify the logical interface, ge-0/0/4.0, on which the RFC 2544-based benchmarking test is run.
content_copy zoom_out_map[edit services rpm rfc2544-benchmarking tests test-name test1] user@RouterB# set test-interface ge-0/0/4.0
Specify
reflect
as the test mode for the packets that are sent during the benchmarking test.content_copy zoom_out_map[edit services rpm rfc2544-benchmarking tests test-name test1] user@RouterB# set mode reflect
Configure the address type family,
inet
, for the benchmarking test.content_copy zoom_out_map[edit services rpm rfc2544-benchmarking tests test-name test1] user@RouterB# set family inet
Configure the destination IPv4 address for the test packets as 192.0.2.2. The destination IPv4 address configured on the reflector must match the destination IPv4 address configured on the initiator. If you configure 192.0.2.1 instead, you get this error message:
error: test test1 - Could not determine local interface for address 192.0.2.1
.content_copy zoom_out_map[edit services rpm rfc2544-benchmarking tests test-name test1] user@RouterB# set destination-ipv4-address 192.0.2.2
Specify the UDP port of the destination to be used in the UDP header for the generated frames as 4001.
content_copy zoom_out_map[edit services rpm rfc2544-benchmarking tests test-name test1] user@RouterB# set destination-udp-port 4001
Configure the source IPv4 address for the test packets.
content_copy zoom_out_map[edit services rpm rfc2544-benchmarking tests test-name test1] user@RouterB# set source-ipv4-address 192.0.2.1
Go to the top level of the configuration mode.
content_copy zoom_out_map[edit services rpm rfc2544-benchmarking tests test-name test1] user@RouterB# top
Commit the configuration.
content_copy zoom_out_map[edit] user@RouterB# commit
Confirm the configuration. If the output does not contain the configuration below, repeat the configuration instructions in this example to correct it.
content_copy zoom_out_map[edit interfaces] ge-0/0/4 { unit 0 { family inet { address 192.0.2.2/24; } } } [edit services rpm] rfc2544-benchmarking { # Note, When in reflector mode, test profile is not needed tests { test-name test1 { test-interface ge-0/0/4.0; mode reflect; family inet; destination-ipv4-address 192.0.2.2; destination-udp-port 4001; source-ipv4-address 192.0.2.1 } } }
Exit to operational mode.
content_copy zoom_out_map[edit] user@RouterB# exit user@RouterB>
Start the benchmarking test on the reflector.
content_copy zoom_out_mapuser@RouterB> test services rpm rfc2544-benchmarking test test1 start
Once you configure the initiator (Router A), you can start the test on the initiator, and the initiator starts sending packets to the reflector. Once the test is successfully completed at the initiator, you can stop the test at the reflector by entering the
test services rpm rfc2544-benchmarking test test1 stop
command in operational mode.
Configure Benchmarking Test Parameters on Router A
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For information about navigating the CLI, see Using the CLI Editor in Configuration Mode.
To configure the test parameters on Router A:
In configuration mode, go to the
[edit interfaces]
hierarchy level:content_copy zoom_out_map[edit] user@RouterA# edit interfaces
Configure the interface on which the test must be run.
content_copy zoom_out_map[edit interfaces] user@RouterA# edit ge-0/0/0
Configure a logical unit and specify the protocol family.
content_copy zoom_out_map[edit interfaces ge-0/0/0] user@RouterA# edit unit 0 family inet
Specify the address for the logical interface.
content_copy zoom_out_map[edit interfaces ge-0/0/0 unit 0 family inet] user@RouterA# set address 192.0.2.1/24
Enter the
up
command to go the previous level in the configuration hierarchy.content_copy zoom_out_map[edit interfaces ge-0/0/0 unit 0 family inet] user@RouterA# up
Go to the top level of the configuration command mode.
content_copy zoom_out_map[edit interfaces ge-0/0/0 unit 0] user@RouterA# top
In configuration mode, go to the
[edit services]
hierarchy level.content_copy zoom_out_map[edit] user@RouterA# edit services
Configure a real-time performance monitoring service (RPM) instance.
content_copy zoom_out_map[edit services] user@RouterA# edit rpm
Configure an RFC 2544-based benchmarking test for the RPM instance.
content_copy zoom_out_map[edit services rpm] user@RouterA# edit rfc2544-benchmarking
Define a name for a test profile—for example, throughput.
content_copy zoom_out_map[edit services rpm rfc2544-benchmarking] user@RouterA# edit profiles test-profile throughput
Configure the type of test to be performed as throughput.
content_copy zoom_out_map[edit services rpm rfc2544-benchmarking profiles test-profile throughput] user@RouterA# set test-type throughput
Specify the size of the test packet as 64 bytes.
content_copy zoom_out_map[edit services rpm rfc2544-benchmarking profiles test-profile throughput] user@RouterA# set test-type packet-size 64
Define the theoretical maximum bandwidth for the test in kilobits per second, with a value from 1,000 Kbps through 1,000,000 Kbps.
content_copy zoom_out_map[edit services rpm rfc2544-benchmarking profiles test-profile throughput] user@RouterA# set test-type bandwidth-kbps 1000
Enter the
up
command to go the previous level in the configuration hierarchy.content_copy zoom_out_map[edit services rpm rfc2544-benchmarking profiles test-profile throughput] user@RouterA# up
Enter the
up
command to go the previous level in the configuration hierarchy.content_copy zoom_out_map[edit services rpm rfc2544-benchmarking profiles] user@RouterA# up
Define a name for the test—for example, test1. The test name identifier can be up to 32 characters in length.
content_copy zoom_out_map[edit services rpm rfc2544-benchmarking] user@RouterA# edit tests test-name test1
Specify the name of the test profile—for example, throughput—to be associated with a particular test name.
content_copy zoom_out_map[edit services rpm rfc2544-benchmarking tests test-name test1] user@RouterA# set test-profile throughput
Specify the logical interface, ge-0/0/0.0, on which the RFC 2544-based benchmarking test is run.
content_copy zoom_out_map[edit services rpm rfc2544-benchmarking tests test-name test1] user@RouterA# set test-interface ge-0/0/0.0
Specify the test mode for the packets that are sent during the benchmarking test as initiate and terminate.
content_copy zoom_out_map[edit services rpm rfc2544-benchmarking tests test-name test1] user@RouterA# set mode initiate-and-terminate
Configure the address type family,
inet
, for the benchmarking test.content_copy zoom_out_map[edit services rpm rfc2544-benchmarking tests test-name test1] user@RouterA# set family inet
Configure the destination IPv4 address for the test packets.
content_copy zoom_out_map[edit services rpm rfc2544-benchmarking tests test-name test1] user@RouterA# set destination-ipv4-address 192.0.2.2
Specify the UDP port of the destination to be used in the UDP header for the generated frames as 4001.
content_copy zoom_out_map[edit services rpm rfc2544-benchmarking tests test-name test1] user@RouterA# set destination-udp-port 4001
Configure the source IPv4 address for the test packets.
content_copy zoom_out_map[edit services rpm rfc2544-benchmarking tests test-name test1] user@RouterA# set source-ipv4-address 192.0.2.1
Go to the top level of the configuration mode.
content_copy zoom_out_map[edit services rpm rfc2544-benchmarking tests test-name test1] user@RouterA# top
Commit the configuration.
content_copy zoom_out_map[edit] user@RouterA# commit
Confirm the configuration. If the output does not contain the configuration below, repeat the configuration instructions in this example to correct it.
content_copy zoom_out_map[edit] user@RouterA# show [edit interfaces] ge-0/0/0 { unit 0 { family inet { address 192.0.2.1/24; } } } [edit services rpm] rfc2544-benchmarking { profiles { test-profile throughput { test-type throughput packet-size 64; bandwidth-kbps 1000; } } tests { test-name test1 { test-profile throughput; interface ge-0/0/0.0; mode initiate-and-terminate; family inet; destination-ipv4-address 192.0.2.2 destination-udp-port 4001; source-ipv4-address 192.0.2.1 } } }
Exit to operational mode.
content_copy zoom_out_map[edit] user@RouterA# exit user@RouterA>
Start the benchmarking test on the initiator.
content_copy zoom_out_mapuser@RouterA> test services rpm rfc2544-benchmarking test test1 start
After the test successfully completes, it automatically stops at the initiator. Once the test is successfully completed at the initiator, you can stop the test at the reflector by entering the
test services rpm rfc2544-benchmarking test test1 stop
command on Router B in operational mode.
Results
If you have not done so already, confirm your configuration on Router A and
Router B by entering the show
command in configuration mode at
the [edit interfaces] and [edit services rpm] hierarchy levels. If the output
does not display the intended configuration, repeat the configuration
instructions in this example to correct it.
Configuration for Benchmarking Test Parameters on Router A:
[edit interfaces] ge-0/0/0 { unit 0 { family inet { address 192.0.2.1/24; } } } [edit services rpm] rfc2544-benchmarking { profiles { test-profile throughput { test-type throughput packet-size 64; bandwidth-kbps 1000; } } tests { test-name test1 { test-profile throughput; interface ge-0/0/0.0; mode initiate-and-terminate; family inet; destination-ipv4-address 192.0.2.2 destination-udp-port 4001; source-ipv4-address 192.0.2.1 } } }
Configuration for Benchmarking Test Parameters on Router B:
[edit interfaces] ge-0/0/4 { unit 0 { family inet { address 192.0.2.2/24; } } } [edit services rpm] rfc2544-benchmarking { # Note, When in reflector mode, test profile is not needed tests { test-name test1 { test-interface ge-0/0/4.0; mode reflect; family inet; destination-ipv4-address 192.0.2.2; destination-udp-port 4001; source-ipv4-address 192.0.2.1 } } }
Verify the Results of the Benchmarking Test for Layer 3 IPv4 Services
Examine the results of the benchmarking test performed on the configured service between Router A and Router B.
Verify the Benchmarking Test Results
Purpose
Verify that the necessary and desired statistical values are displayed for the benchmarking test that is run on the configured service between Router A and Router B.
Action
In operational mode, enter the show services rpm rfc2544-benchmarking
(aborted-tests | active-tests | completed-tests | summary)
command, on either the initiator or the reflector, to display information
about the results of each category or state of the RFC 2544-based
benchmarking test, such as terminated tests, active tests, and completed
tests, for each real-time performance monitoring (RPM) instance.
Meaning
The output displays the details of the benchmarking test that was performed.