Configuring IP-AFT Prefix Filtering
In the OpenConfig Abstract Forwarding Table (OC-AFT) model, the Forwarding Information Base Telemetry Daemon (FIBTD) not only translates the FIB state to the external collector, but also enables you to configure prefix filtering on the target device (source). With prefix filtering, you control the flow of data from your device to the collector. Only interfaces with the required prefixes and their corresponding next-hop and next-hop group containers are exported to the OC-AFT collector.
Reducing the set of interfaces to only those with prefixes of interest decreases the overall CPU and resource usage on Routing Engines, FPCs, and MPCs.
To configure prefix filtering:
For Junos OS: Export data from your source (target) to a collector using the sensor /network-instances/network-instance/afts/. When using prefix-filter mode, we recommend you use streaming subscription mode at a sampling frequency of 5 minutes or more and that all collectors have the same sampling frequency. If you are using non-prefix-filter mode, we recommend you use ON_CHANGE subscription mode. You can also export data using User Datagram Protocol (UDP).
For Junos OS Evolved: The recommended usage is always ON_CHANGE subscription mode, for both prefix-filtering and non-prefix filtering mode.