- 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 Real-Time Performance Monitoring and Video Monitoring Services
- play_arrow Monitoring Traffic Using Real-Time Performance Monitoring and Two-Way Active Monitoring Protocol (TWAMP)
- Understanding Using Probes for Real-Time Performance Monitoring on M, T, ACX, MX, and PTX Series Routers, EX and QFX Switches
- Configuring RPM Probes on M, MX and T Series Routers and EX Series Switches
- Understanding Real-Time Performance Monitoring on EX and QFX Switches
- Real-Time Performance Monitoring for SRX Devices
- Configuring RPM Receiver Servers
- Limiting the Number of Concurrent RPM Probes on M, MX, T and PTX Routers and EX Series Switches
- Configuring RPM Timestamping on MX, M, T, and PTX Series Routers and EX Series Switches
- Configuring the Interface for RPM Timestamping for Client/Server on a Switch (EX Series)
- Analyzing Network Efficiency in IPv6 Networks on MX Series Routers Using RPM Probes
- Configuring BGP Neighbor Discovery Through RPM
- Examples: Configuring BGP Neighbor Discovery on SRX Series Firewalls and MX, M, T and PTX Series Routers With RPM
- Trace RPM Operations
- Examples: Configuring Real-Time Performance Monitoring on MX, M, T and PTX Series Routers
- Enabling RPM on MX, M and T Series Routers and SRX Firewalls for the Services SDK
- Understand Two-Way Active Measurement Protocol
- Configure TWAMP on ACX, MX, M, T, and PTX Series Routers, EX Series and QFX10000 Series Switches
- Example: Configuring TWAMP Client and Server on MX Series Routers
- Example: Configuring TWAMP Client and Server for SRX Series Firewalls
- Understanding TWAMP Auto-Restart
- Configuring TWAMP Client and TWAMP Server to Reconnect Automatically After TWAMP Server Unavailability
- play_arrow Managing License Server for Throughput Data Export
- play_arrow Testing the Performance of Network Devices Using RFC 2544-Based Benchmarking
- Understanding RFC 2544-Based Benchmarking Tests on MX Series Routers and SRX Series Firewalls
- Understanding RFC2544-Based Benchmarking Tests for E-LAN and E-Line Services on MX Series Routers
- Supported RFC 2544-Based Benchmarking Statements on MX Series Routers
- Configuring an RFC 2544-Based Benchmarking Test
- Enabling Support for RFC 2544-Based Benchmarking Tests on MX Series Routers
- Example: Configure an RFC 2544-Based Benchmarking Test on an MX104 Router for Layer 3 IPv4 Services
- Example: Configuring an RFC 2544-Based Benchmarking Test on an MX104 Router for UNI Direction of Ethernet Pseudowires
- Example: Configuring an RFC 2544-Based Benchmarking Test on an MX104 Router for NNI Direction of Ethernet Pseudowires
- Example: Configuring RFC2544-Based Benchmarking Tests on an MX104 Router for Layer 2 E-LAN Services in Bridge Domains
- Example: Configuring Benchmarking Tests to Measure SLA Parameters for E-LAN Services on an MX104 Router Using VPLS
- play_arrow Configuring RFC 2544-Based Benchmarking Tests on ACX Series
- RFC 2544-Based Benchmarking Tests for ACX Routers Overview
- Layer 2 and Layer 3 RFC 2544-Based Benchmarking Test Overview
- Configuring RFC 2544-Based Benchmarking Tests
- Configuring Ethernet Loopback for RFC 2544-Based Benchmarking Tests
- RFC 2544-Based Benchmarking Test States
- Example: Configure an RFC 2544-Based Benchmarking Test for Layer 3 IPv4 Services
- Example: Configuring an RFC 2544-Based Benchmarking Test for NNI Direction of Ethernet Pseudowires
- Example: Configuring an RFC 2544-Based Benchmarking Test for UNI Direction of Ethernet Pseudowires
- Configuring a Service Package to be Used in Conjunction with PTP
- play_arrow Tracking Streaming Media Traffic Using Inline Video Monitoring
- Understanding Inline Video Monitoring on MX Series Routers
- Configuring Inline Video Monitoring on MX Series Routers
- Inline Video Monitoring Syslog Messages on MX Series Routers
- Generation of SNMP Traps and Alarms for Inline Video Monitoring on MX Series Routers
- SNMP Traps for Inline Video Monitoring Statistics on MX Series Routers
- Processing SNMP GET Requests for MDI Metrics on MX Series Routers
-
- play_arrow Configuration Statements and Operational Commands
Flow Monitoring Version 9 Format Output Fields
A detailed explanation of active flow monitoring version 9 packet formats and fields is shown as follows:
The Junos OS supports the version 9 template formats:
Template | Fields |
---|---|
IPv4 | Flow selectors:
Flow nonselectors:
|
MPLS | Flow selectors:
Flow nonselectors:
|
MPLS_IPv4 | Flow selectors:
Flow nonselectors:
|
IPv6 | Flow selectors:
Flow nonselectors:
|
Peer AS billing | Flow selectors:
Flow nonselectors
Note: Peer AS billing traffic is not supported for active flow monitoring version 9 configuration on PTX5000 routers tethered to CSE2000. |

Field | Description |
---|---|
Version | 9 |
Count | Total number of records in the protocol data unit (PDU) or packet. This number includes all of the options FlowSet records, template FlowSet records, and data FlowSet records. |
sysUptime | Current time elapsed, in milliseconds, since the router started. |
UNIX seconds | Current seconds since 0000 UTC 1970. |
Flow sequence number | Sequence counter of total flows received. |
Source ID | 32-bit value that identifies the data exporter. Version 9 uses the integrated field diagnostics (IFD) SNMP index of the PIC or device that is exporting the data flow. This field is equivalent to engine type and engine ID fields found in versions 5 and 8. |

Field | Description |
---|---|
FlowSet ID | FlowSet type. FlowSet ID 0 is reserved for the Template FlowSet. |
Length | FlowSet length. Individual template FlowSets might contain multiple template records, which means that the length of template FlowSets varies. |
Template ID | Unique template ID assigned to each newly generated template. Templates numbered 256 and higher define data formats. Templates numbered 0 through 255 define FlowSet IDs. |
Field Count | Fields in the template record. This field allows the collector to determine the end of the current template record and the start of the next. |
Field Type | Field type. These are defined in Table 4. |
Field Length | Length, in bytes, of the corresponding field type. |
Field Type | Description |
---|---|
1 | IN_BYTES: The number of bytes associated with an IP flow. By default, the length is 4 bytes. |
2 | IN_PKTS: The number of packets associated with an IP flow. By default, the length is 4 packets. |
4 | PROTOCOL: The IP protocol byte. |
5 | TOS: The type-of-service byte setting of an incoming packet. |
6 | TCP_FLAGS: The cumulative TCP flags associated with a flow. |
7 | L4_SRC_PORT: The TCP/UDP source port. |
8 | IPv4_SRC_ADDR: The IPv4 source address. |
9 | SRC_MASK: The number of contiguous bits in the source subnet mask. |
10 | INPUT_SNMP: The IFD SNMP input interface index. By default, the length is 2. |
11 | L4_DST_PORT: The TCP/UDP destination port number. |
12 | IPV4_DST_ADDR: The IPv4 destination address. |
13 | DST_MASK: The number of contiguous bits in the destination subnet mask. |
14 | OUTPUT_SNMP: The IFD SNMP output interface index. By default, the length is 2. |
16 | SRC_AS: The source autonomous system number. This is always set to zero. |
17 | DST_AS: The destination autonomous system number. This is always set to zero. |
18 | BGP_IPV4_NEXT_HOP: The BGP IPV4 next-hop address. |
21 | LAST_SWITCHED: The uptime of the device (in milliseconds) at which the last packet of the flow was switched. |
22 | FIRST_SWITCHED: The uptime of the device (in milliseconds) at which the first packet of the flow was switched. |
29 | IPV6_SRC_MASK: The length of the IPv6 source mask, in contiguous bits. |
30 | IPV6_DST_MASK: The length of the IPv6 destination mask, in contiguous bits. |
32 | ICMP_TYPE: The ICMP type. |
34 | SAMPLING_INTERVAL: The rate at which packets are sampled. As an example, a rate of 100 means that one packet is sampled for every 100 packets in the data flow. |
35 | SAMPLING_ALGORITHM: The type of algorithm being used. Ox01 indicates deterministic sampling and 0x02 indicates random sampling. |
47 | MPLS_TOP_LABEL_IP_ADDRESS: The MPLS top- label address. |
60 | IP_PROTOCOL_VERSION: The IP protocol version being used. |
62 | IPV6_NEXT_HOP: The IPv6 address of the next-hop router. |
70 | MPLS_LABEL_1: The first MPLS label in the stack. |
71 | MPLS_LABEL_2: The second MPLS label in the stack. |
72 | MPLS_LABEL_3: The third MPLS label in the stack. |
128 | DST_PEER_AS: The destination of the BGP peer AS. |

Field | Description |
---|---|
FlowSet ID = Template ID | Data FlowSet that associated with a FlowSet ID. The FlowSet ID maps to a previously generated template ID. The flow collector must use the FlowSet ID to find the corresponding template record and decode the flow records from the FlowSet. |
Length | FlowSet length. Data FlowSets are fixed in length. |
Record Number - Field Value Number | Flow data records, each containing a set of field values. The template record identified by the FlowSet ID dictates the type and length of the field values. |
Padding | Bytes (in zeros) that the exporter inserts so that the subsequent FlowSet starts at a 4-byte aligned boundary. |

Field | Description |
---|---|
FlowSet ID | FlowSet type. FlowSet ID 1 is reserved for the options template. |
Length | FlowSet length. Option template FlowSets are fixed in length. |
Template ID | Template ID of the options template. Options template values are greater than 255. |
Option Scope Length | Length, in bytes, of any scope field definition that is part of the options template record. |
Scope 1 Field Type | Relevant process. The Junos OS supports the system process (1). |
Scope 1 Field Length | Length, in bytes, of the option field. |
Padding | Bytes the exporter inserts so that the subsequent FlowSet starts at a 4-byte aligned boundary. |

Field | Description |
---|---|
FlowSet ID = Template ID | ID that precedes each options data flow record. The FlowSet ID maps to a previously generated template ID. The collector must use the FlowSet ID to find the corresponding template record and decode the options data flow records from the FlowSet. |
Length | FlowSet length. Option FlowSets are fixed in length. |
Number of Flow Data Records | Remainder of the options data FlowSet is a collection of flow data records, each containing a set of field values. The template record identified by the FlowSet ID dictates the type and length of the field values. |
Padding | Bytes (in zeros) the exporter inserts so that the subsequent FlowSet starts at a 4-byte aligned boundary. |
IPFIX (Version 10) IPv4 Fields
Field Name | Flow Key | Element ID | Length in Bytes |
---|---|---|---|
IPV4_SADDR | Y | 8 | 4 |
IPV4_DADDR | Y | 12 | 4 |
IPV4_TOS | Y | 5 | 1 |
IPV4_PROTO | Y | 4 | 1 |
TCP_UDP_SPORT | Y | 7 | 2 |
TCP_UDP_DPORT | Y | 11 | 2 |
IMCP_TYPE_CODE_IPV4 | Y | 32 | 2 |
IIF | Y | 10 | 4 |
VLAN_ID | Configurable | 58 | 2 |
IPV4_SMASK | N | 9 | 1 |
IPV4_DMASK | N | 13 | 1 |
SRC_AS | N | 16 | 4 |
DST_AS | N | 17 | 4 |
IPV4_NEXTHOP | N | 15 | 4 |
TCP_FLAGS | N | 6 | 1 |
OIF | N | 14 | 4 |
FLOW_BYTES | N | 1 | 8 |
FLOW_PACKETS | N | 2 | 8 |
MIN_TTL | N | 52 | 1 |
MAX_TTL | N | 53 | 1 |
START_TIME | N | 152 | 8 |
END_TIME | N | 153 | 8 |
FIRST_SWITCHED | N | 22 | 4 |
LAST_SWITCHED | N | 21 | 4 |
FLOW_END_REASON | N | 136 | 1 |
IP_PROTOCOL_VERSION | N | 60 | 1 |
BGP_NEXTHOP_ID | N | 18 | 4 |
FLOW_DIRECTION | Configurable | 61 | 1 |
DOT_1Q_VLAN_ID | N | 243 | 2 |
DOt_1Q_CUSTOMER_VLAN_ID | N | 245 | 2 |
IP IDENTIFIER | N | 54 | 4 |