Skip to content

Flow Monitor Map

Configure NetFlow/IPFIX flow monitor maps for traffic monitoring and analysis. Flow monitor maps define how flow data is collected, including the record format, exporter destination, and cache parameters.

Diagram
NameTypeConstraintMandatoryDefault Value
flow_monitor_mapsList[flow_monitor_maps]No

flow_monitor_maps (iosxr.devices.configuration)

Section titled “flow_monitor_maps (iosxr.devices.configuration)”
NameTypeConstraintMandatoryDefault Value
nameStringYes
cache_entriesIntegermin: 4096, max: 1000000No
cache_immediateBooleantrue, falseNo
cache_permanentBooleantrue, falseNo
cache_timeout_activeIntegermin: 1, max: 604800No
cache_timeout_inactiveIntegermin: 0, max: 604800No
cache_timeout_rate_limitIntegermin: 1, max: 1000000No
cache_timeout_updateIntegermin: 1, max: 604800No
exportersList[exporters]No
hw_cache_timeout_inactiveIntegermin: 50, max: 1800No
option_bgpattrBooleantrue, falseNo
option_filteredBooleantrue, falseNo
option_outbundlememberBooleantrue, falseNo
option_outphysintBooleantrue, falseNo
record_datalink_recordBooleantrue, falseNo
record_default_mdiBooleantrue, falseNo
record_default_rtpBooleantrue, falseNo
record_ipv4Booleantrue, falseNo
record_ipv4_asBooleantrue, falseNo
record_ipv4_as_tosBooleantrue, falseNo
record_ipv4_bgp_nexthop_tosBooleantrue, falseNo
record_ipv4_destinationBooleantrue, falseNo
record_ipv4_destination_prefixBooleantrue, falseNo
record_ipv4_destination_prefix_tosBooleantrue, falseNo
record_ipv4_destination_tosBooleantrue, falseNo
record_ipv4_extendedBooleantrue, falseNo
record_ipv4_gtpBooleantrue, falseNo
record_ipv4_l2_l3Booleantrue, falseNo
record_ipv4_peer_asBooleantrue, falseNo
record_ipv4_prefixBooleantrue, falseNo
record_ipv4_prefix_portBooleantrue, falseNo
record_ipv4_prefix_tosBooleantrue, falseNo
record_ipv4_protocol_portBooleantrue, falseNo
record_ipv4_protocol_port_tosBooleantrue, falseNo
record_ipv4_source_prefixBooleantrue, falseNo
record_ipv4_source_prefix_tosBooleantrue, falseNo
record_ipv6Booleantrue, falseNo
record_ipv6_destinationBooleantrue, falseNo
record_ipv6_extendedBooleantrue, falseNo
record_ipv6_gtpBooleantrue, falseNo
record_ipv6_l2_l3Booleantrue, falseNo
record_ipv6_peer_asBooleantrue, falseNo
record_ipv6_srv6Booleantrue, falseNo
record_map_tBooleantrue, falseNo
record_mplsBooleantrue, falseNo
record_mpls_ipv4_fieldsBooleantrue, falseNo
record_mpls_ipv4_ipv6_fieldsBooleantrue, falseNo
record_mpls_ipv6_fieldsBooleantrue, falseNo
record_mpls_labelsIntegermin: 1, max: 6No
record_sflowBooleantrue, falseNo
sflow_optionsBooleantrue, falseNo
sflow_options_extended_gatewayBooleantrue, falseNo
sflow_options_extended_ipv4_tunnel_egressBooleantrue, falseNo
sflow_options_extended_ipv6_tunnel_egressBooleantrue, falseNo
sflow_options_extended_routerBooleantrue, falseNo
sflow_options_if_counters_polling_intervalIntegermin: 5, max: 1800No
sflow_options_input_ifindexChoicephysicalNo
sflow_options_output_ifindexChoicephysicalNo
sflow_options_sample_header_sizeIntegermin: 128, max: 343No

exporters (iosxr.devices.configuration.flow_monitor_maps)

Section titled “exporters (iosxr.devices.configuration.flow_monitor_maps)”
NameTypeConstraintMandatoryDefault Value
nameStringYes

Example-1: Configure a basic IPv4 flow monitor with exporter.

iosxr:
devices:
- name: router-1
host: 10.10.10.1:57400
configuration:
flow_monitor_maps:
- name: "FLOW_MONITOR_IPV4"
record_ipv4: true
exporters:
- name: "EXPORTER1"
cache_entries: 10000
cache_timeout_active: 60
cache_timeout_inactive: 15

Example-2: Configure IPv4 flow monitoring with extended options.

iosxr:
devices:
- name: router-1
host: 10.10.10.1:57400
configuration:
flow_monitor_maps:
- name: "FLOW_IPV4_EXTENDED"
record_ipv4_extended: true
exporters:
- name: "EXPORTER1"
cache_entries: 50000
cache_timeout_active: 120
cache_timeout_inactive: 30
cache_timeout_update: 60
option_outphysint: true
option_filtered: true

Example-3: Configure IPv6 flow monitoring with SRv6 support.

iosxr:
devices:
- name: router-1
host: 10.10.10.1:57400
configuration:
flow_monitor_maps:
- name: "FLOW_IPV6_MONITOR"
record_ipv6: true
record_ipv6_srv6: true
exporters:
- name: "EXPORTER1"
cache_entries: 25000
cache_timeout_active: 90
cache_timeout_inactive: 20

Example-4: Configure MPLS flow monitoring.

iosxr:
devices:
- name: router-1
host: 10.10.10.1:57400
configuration:
flow_monitor_maps:
- name: "FLOW_MPLS_MONITOR"
record_mpls: true
record_mpls_ipv4_fields: true
record_mpls_labels: 6
exporters:
- name: "EXPORTER1"
cache_entries: 15000
cache_timeout_active: 60
cache_timeout_inactive: 10

Example-5: Configure sFlow monitoring with all options.

iosxr:
devices:
- name: router-1
host: 10.10.10.1:57400
configuration:
flow_monitor_maps:
- name: "SFLOW_MONITOR"
record_sflow: true
sflow_options: true
sflow_options_extended_router: true
sflow_options_extended_gateway: true
sflow_options_extended_ipv4_tunnel_egress: true
sflow_options_extended_ipv6_tunnel_egress: true
sflow_options_if_counters_polling_interval: 300
sflow_options_sample_header_size: 256
sflow_options_input_ifindex: "physical"
sflow_options_output_ifindex: "physical"
exporters:
- name: "SFLOW_EXPORTER"
cache_entries: 100000
cache_timeout_inactive: 60

Example-6: Configure hardware cache with advanced settings.

iosxr:
devices:
- name: router-1
host: 10.10.10.1:57400
configuration:
flow_monitor_maps:
- name: "HW_FLOW_MONITOR"
record_ipv4: true
exporters:
- name: "EXPORTER1"
cache_entries: 500000
cache_timeout_active: 300
cache_timeout_inactive: 60
cache_timeout_rate_limit: 5000
cache_permanent: false
cache_immediate: true
hw_cache_timeout_inactive: 300
option_bgpattr: true
option_outbundlemember: true

Example-7: Configure multiple monitor maps for different traffic types.

iosxr:
devices:
- name: router-1
host: 10.10.10.1:57400
configuration:
flow_monitor_maps:
- name: "FLOW_IPV4_GTP"
record_ipv4_gtp: true
exporters:
- name: "GTP_EXPORTER"
cache_entries: 100000
cache_timeout_active: 180
- name: "FLOW_MAP_T"
record_map_t: true
exporters:
- name: "MAP_T_EXPORTER"
cache_entries: 50000
- name: "FLOW_DATALINK"
record_datalink_record: true
exporters:
- name: "DATALINK_EXPORTER"
cache_entries: 25000
- name: "FLOW_RTP"
record_default_rtp: true
exporters:
- name: "RTP_EXPORTER"
cache_entries: 10000
- name: "FLOW_MDI"
record_default_mdi: true
exporters:
- name: "MDI_EXPORTER"
cache_entries: 10000