BGP FlowSpec Route-Reflector Support
BGP FlowSpec Route-Reflector Support
BGP FlowSpec Route-Reflector Support
The BGP (Border Gateway Protocol) Flowspec (Flow Specification) Route Reflector feature enables service
providers to control traffic flows in their network. This helps in filtering traffic and helps in taking action
against distributed denial of service (DDoS) mitigation by dropping the DDoS traffic or diverting it to an
analyzer.
BGP flow specification provides a mechanism to encode flow specification rules for traffic flows that can
be distributed as BGP Network Layer Reachability Information (NLRI).
Matching Criteria
The following table lists the various Flowspec tuples that are supported for BGP.
BGP Flowspec NLRI Type QoS Matching Field (IPv6) QoS Matching Field (IPv4) Input Value
Type 1 IPv6 destination address IPv4 destination address Prefix length
Type 9 IPv6 TCP flags IPv4 TCP flags (2 bytes Bit mask
include reserved bits)
BGP Flowspec NLRI Type QoS Matching Field (IPv6) QoS Matching Field (IPv4) Input Value
Type 10 IPv6 packet length IPv4 packet length Multi-value range
SUMMARY STEPS
1. enable
2. configure terminal
3. router bgp autonomous-system-number
4. neighbor ip-address remote-as autonomous-system-number
5. address-family {ipv4 | ipv6 | vpnv4 | vpnv6} flowspec
6. neighbor ip-address activate
7. neighbor ip-address route-reflector-client
8. end
DETAILED STEPS
Example:
Device# configure terminal
Step 4 neighbor ip-address remote-as Adds an entry to the BGP or multiprotocol BGP neighbor
autonomous-system-number table.
Example:
Device(config-router)# neighbor 10.1.1.1
remote-as 1
Step 5 address-family {ipv4 | ipv6 | vpnv4 | vpnv6} flowspec Specifies the address family and enters address family
configuration mode.
Example: • Flowspec is supported on IPv4, IPv6, VPNv4 and
Device(config-router)# address-family ipv4
flowspec VPNv6 address families.
Step 6 neighbor ip-address activate Enables the exchange of information with a BGP neighbor.
Example:
Device(config-router-af)# neighbor 10.1.1.1
activate
Step 7 neighbor ip-address route-reflector-client Configures the router as a BGP route reflector and
configures the specified neighbor as its client.
Example:
Device(config-router-af)# neighbor 10.1.1.1
route-reflector-client
SUMMARY STEPS
1. enable
2. configure terminal
3. router bgp autonomous-system-number
4. address-family {ipv4 | ipv6 | vpnv4 | vpnv6} flowspec
5. neighbor ip-address validation off
DETAILED STEPS
Example:
Device# configure terminal
Step 3 router bgp autonomous-system-number Enters router configuration mode for the BGP routing
process.
Example:
Device(config)# router bgp 1
Step 4 address-family {ipv4 | ipv6 | vpnv4 | vpnv6} flowspec Specifies the address family and enters address family
configuration mode.
Example: • Flowspec is supported on IPv4, IPv6, VPNv4 and
Device(config-router)# address-family ipv4
flowspec VPNv6 address families.
Step 5 neighbor ip-address validation off Disables validation of flow specification for eBGP peers.
Example:
Device(config-router-af)# neighbor 10.1.1.1
validation off
SUMMARY STEPS
DETAILED STEPS
Example:
Device# show bgp ipv4 flowspec
BGP table version is 3, local router ID is 10.10.10.2 Status codes: s suppressed, d damped, h history,
Example:
Device# show bgp ipv4 flowspec detail
Example:
Device# show bgp ipv4 flowspec summary
BGP router identifier 10.10.10.2, local AS number 239 BGP table version is 3, main routing table
version 3
2 network entries using 16608 bytes of memory
2 path entries using 152 bytes of memory
2/2 BGP path/bestpath attribute entries using 304 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
2 BGP extended community entries using 48 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory BGP using 17136 total bytes of memory BGP
activity 18/0
prefixes, 18/0 paths, scan interval 15 secs
Example:
Device# show bgp ipv6 flowspec
BGP table version is 2, local router ID is 10.10.10.2 Status codes: s suppressed, d damped, h history,
Example:
Device# show bgp ipv6 flowspec detail
Example:
Device# show bgp ipv6 flowspec summary
BGP router identifier 10.10.10.2, local AS number 239 BGP table version is 3, main routing table
version 3
2 network entries using 16608 bytes of memory
2 path entries using 152 bytes of memory
2/2 BGP path/bestpath attribute entries using 304 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
2 BGP extended community entries using 48 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory BGP using 17136 total bytes of memory BGP
activity 18/0
prefixes, 18/0 paths, scan interval 15 secs
Example:
Device# show bgp vpnv4 flowspec
BGP table version is 2, local router ID is 10.10.10.2 Status codes: s suppressed, d damped, h history,
Example:
Device# show bgp vpnv4 flowspec all detail
Example:
Device# show bgp vpnv6 flowspec
BGP table version is 2, local router ID is 10.10.10.2 Status codes: s suppressed, d damped, h history,
* valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed, Origin codes: i - IGP, e - EGP,
? - incomplete RPKI validation codes: V valid, I invalid, N Not found
Example:
Device# show bgp vpnv6 flowspec all detail
RR> enable
RR# configure terminal
RR(config)# interface E0/0
RR(config-if)# ip address 10.0.0.1 255.224.0.0
RR(config-if)# no shutdown
RR(config-if)# exit
RR(config)# interface S2/0
RR(config-if)# ip address 10.32.0.1 255.224.0.0
RR(config-if)# no shutdown
RR(config-if)# exit
RR(config)# interface S3/0
RR(config-if)# ip address 10.64.0.1 255.224.0.0
RR(config-if)# no shutdown
!Configure RR as the route reflector with S2/0(R1) and S2/0 (R2) as the neighbors
Standard/RFC Title
RFC 5575 Dissemination of Flow Specification Rules
Technical Assistance
Description Link
The Cisco Support website provides extensive online http://www.cisco.com/cisco/web/support/index.html
resources, including documentation and tools for
troubleshooting and resolving technical issues with
Cisco products and technologies.
To receive security and technical information about
your products, you can subscribe to various services,
such as the Product Alert Tool (accessed from Field
Notices), the Cisco Technical Services Newsletter,
and Really Simple Syndication (RSS) Feeds.
Access to most tools on the Cisco Support website
requires a Cisco.com user ID and password.
BGP FlowSpec Route-reflector Cisco IOS XE Release 3.14 The BGP FlowSpec Route-reflector
Support Support feature enables services
providers to control traffic flows
in their network and mitigate DDoS
attack.
This feature was introduced on the
Cisco ASR 1000 Series Routers.
The following command was
introduced by this feature:
address-family {ipv4 | ipv6 |
vpnv4 | vpnv6} flowspec.