After a controller dynamically delivers a BGP FlowSpec route and an SR-MPLS TE Policy to a forwarder, the forwarder needs to redirect the BGP FlowSpec route to the SR-MPLS TE Policy.
If a controller is deployed, the controller can be used to deliver a public IPv4 BGP FlowSpec route and an SR-MPLS TE Policy. The procedure involved in redirecting the public IPv4 BGP FlowSpec route to the SR-MPLS TE Policy is as follows:
Establish a BGP-LS peer relationship between the controller and forwarder, enabling the controller to collect network information, such as topology and label information, through BGP-LS.
Establish a BGP IPv4 SR-MPLS TE Policy peer relationship between the controller and forwarder, enabling the controller to deliver a dynamically computed SR-MPLS TE Policy path to the ingress through the peer relationship. After receiving the SR-MPLS TE Policy, the ingress generates corresponding entries.
The following procedure focuses on forwarder configurations.
Before redirecting a public IPv4 BGP FlowSpec route to an SR-MPLS TE Policy, complete the following tasks:
After configuring the redirection, verify the configuration.
Run the display bgp flow peer [ [ ipv4-address ] verbose ] command to check information about BGP FlowSpec peers.
Run the display bgp flow routing-table command to check BGP FlowSpec routing information.
Run the display flowspec statistics reindex command to check statistics about traffic transmitted over BGP FlowSpec routes.