SlideShare a Scribd company logo
BGP NEW ADVANCED FEATURES
Piotr Wojciechowski (CCIE #25543)
ABOUT ME
¢ Senior Network Engineer MSO at VeriFone Inc.
¢ Previously Network Solutions Architect at one of top polish IT
integrators
¢ CCIE #25543 (Routing & Switching)
¢ Administrator of CCIE.PL board
— The biggest Cisco community in Europe
— About 7800 users
— 3 admin, 3 moderators
— Over 60 polish CCIEs as members, 20 of them actively posting
— About 100 new topics per month
— About 800 posts per month
— English section available
AGENDA
¢ BGP Graceful Shutdown
¢ BGP Additional Paths
¢ BGP Support for Multiple Sourced Paths Per Redistributed Route
¢ BGP Accumulated IGP Metric
¢ BGP Monitoring Protocol
¢ BGP FlowSpec
BGP GRACEFUL SHUTDOWN
BGP GRACEFUL SHUTDOWN
¢ BGP convergence can take from few seconds to few minutes
¢ Maintenance periods may cause significant disruption in network
¢ For new applications customers are requesting tighter SLA
requirements (ie. for VoIP traffic, corporate mission critical
applications)
¢ BGP devices are temporarily unreachable during BGP convergence
¢ Historically RR’s have worsened the issue as they tend to hide the
alternate path as they only forward the best path
BGP GRACEFUL SHUTDOWN
¢ This feature is used primarily for maintenance in MPLS networks on a
link between:
— PE-PE,
— PE- Route Reflector (RR),
— PE-Customer Edge (CE) and CE
¢ It may be used between Internet BGP routers
BGP GRACEFUL SHUTDOWN
¢ The goal of gracefully shutting down one or more BGP sessions is to
minimize traffic loss during the planned shutdown and subsequent
reestablishment of the sessions.
¢ Goal achieved - routers always have a valid route available during the
convergence process
BGP GRACEFUL SHUTDOWN
¢ BGP Graceful Shutdown allows vendors to provide mechanism that
does not require any router reconfiguration at maintenance time
RFC 6198 Requirements for the Graceful Shutdown of
BGP Sessions
draft-ietf-grow-bgp-gshut-06 Graceful BGP session shutdown
BGP GRACEFUL SHUTDOWN
Source
Destination
R2
R1
1. Router is down
2. Packet drops
3. Alternate path announces
4. Packets flow resume
Router is unable to forward
to a destination if a
withdrawal arrives before
the advertisement of
alternate route
BGP GRACEFUL SHUTDOWN
1. Announce Lower
Preference
2. Packets continue to flow
3. Alternate path
announces
4. Packets reroute
5. Router restart
Source
Destination
R2
R1
BGP GRACEFUL SHUTDOWN
¢ GSHUT well-known community
¢ The GSHUT community is always sent by the GSHUT initiator
¢ The GSHUT community is specified in a community list, which is
referenced by a route map and then used to make policy routing
decisions
BGP GRACEFUL SHUTDOWN
Berlin(config-­‐router)#neighbor  10.0.128.2  shutdown  graceful  30  community  12345
*Sep    1  20:33:59.225:    Graceful  Shutdown  after  30  seconds  for  neighbor:  10.0.128.2
*Sep    1  20:34:29.529:  %BGP-­‐3-­‐NOTIFICATION:  sent  to  neighbor  10.0.128.2  6/2  (Administrative  Shutdown)  0  bytes  
*Sep    1  20:34:29.530:  %BGP-­‐5-­‐NBR_RESET:  Neighbor  10.0.128.2  reset  (Admin.  shutdown)
*Sep    1  20:34:29.535:  %BGP-­‐5-­‐ADJCHANGE:  neighbor  10.0.128.2  Down  Admin.  shutdown
*Sep    1  20:34:29.536:  %BGP_SESSION-­‐5-­‐ADJCHANGE:  neighbor  10.0.128.2  IPv4  Unicast  topology  base  removed  from  session    
Admin.  shutdown
BGP GRACEFUL SHUTDOWN
¢ Availability:
— Cisco IOS XE Release 3.6S
— IOS 15.2(4)M
— IOS XR 3.5.2
BGP ADDITIONAL PATHS
BGP ADDITIONAL PATHS
¢ BGP routers and route reflectors (RRs) propagate only their best path
over their sessions
¢ Path hiding can prevent efficient use of BGP multipath
— It may prevent hitless planned maintenance
— Sub-optimal routing
— During failure it negatively affect fast and local recovery because the network
has to wait for BGP control plane convergence to restore traffic
BGP ADDITIONAL PATHS
¢ Example of path hiding - prefix p with paths p1 and p2 advertised
from BR1 and BR4 to RR1. RR1 selects the best path of the two and
then advertises to PE only p1
BGP ADDITIONAL PATHS
¢ BGP routers and route reflectors (RR) propagate only their best path
over their sessions
¢ The advertisement of a prefix replaces the previous announcement of
that prefix (this in known as an implicit withdraw)
¢ The BGP Additional Paths feature is a BGP extension that allows the
advertisement of multiple paths for the same prefix without the new
paths implicitly replacing any previous paths
BGP ADDITIONAL PATHS
¢ BGP Additional Paths feature is implemented by adding a path
identifier to each path in the NLRI
— Path IDs are unique to a peering session and are generated for each network
— 4 octets length
¢ Additional Paths feature allows the advertisement of more paths, in
addition to the bestpath
¢ Additional Paths feature allows the advertisement of multiple paths
for the same prefix, without the new paths implicitly replacing any
previous paths
BGP ADDITIONAL PATHS
router  bgp 1
address-­‐family  ipv4  unicast
bgp additional-­‐paths  select  all
neighbor  192.168.1.2  additional-­‐paths  send  receive
neighbor  192.168.1.2  advertise  additional-­‐paths  all
Three path selection (path marking) policies, and they are not mutually exclusive
• best 2 or best 3 (best 2 means the bestpath and 2nd best path)
• group-best (calculates the group-best for prefixes during bestpath calculation)
• all (all paths with unique next hops are eligible for selection)
BGP ADDITIONAL PATHS
router  bgp 1
address-­‐family  ipv4  unicast
bgp additional-­‐paths  select  all
neighbor  192.168.1.2  additional-­‐paths  send  receive
neighbor  192.168.1.2  advertise  additional-­‐paths  all
Enables the neighbor to send or receive additional paths after negotiation is
completed.
BGP ADDITIONAL PATHS
router  bgp 1
address-­‐family  ipv4  unicast
bgp additional-­‐paths  select  all
neighbor  192.168.1.2  additional-­‐paths  send  receive
neighbor  192.168.1.2  advertise  additional-­‐paths  all
Specifies the selection methods that control which additional paths are advertised
for the neighbor.
BGP ADDITIONAL PATHS
¢ Configuration methods
— per Address Family
— per Neighbor
— via Peer Policy Template
¢ Additional filtering or attributes may be applied via route-maps
BGP ADDITIONAL PATHS
¢ Availability:
— Cisco IOS XE Release 3.7S
— Cisco IOS XE Release 3.6E
— IOS 15.3M
— NX-OS 6.2(8) [Nexus 7700]
— IOS XR 4.0 [CSR]
— Juniper JunOS 11.4 [SRX, M, MX, J, T Series]
BGP SUPPORT FOR MULTIPLE SOURCED PATHS PER
REDISTRIBUTED ROUTE
BGP SUPPORT FOR MULTIPLE SOURCED PATHS PER
REDISTRIBUTED ROUTE
¢ Prior to this feature:
— BGP accepted only one path from the Routing Information Base (RIB) to
create a single BGP-sourced path for a redistributed network
¢ Redistribution
¢ Network command
— If the RIB had more than one path for the same network only best one was
used
— Import of more than the default path into a VRF instance is already
supported in BGP, however, these multiple paths had to be from different
neighbors or sources and not from the same source
BGP SUPPORT FOR MULTIPLE SOURCED PATHS PER
REDISTRIBUTED ROUTE
BGP SUPPORT FOR MULTIPLE SOURCED PATHS PER
REDISTRIBUTED ROUTE
¢ With BGP Support for Multiple Sourced Paths Per Redistributed
Route:
— Multiple paths from the same source can be imported and exported across
virtual routing and forwarding (VRF) instances
— Customers can export Equal Cost Multipath (ECMP) sourced paths or next-
hops from one VRF into hundreds of VRFs on the same device using BGP
— Each of these paths are installed as multipaths into the RIB, and provides
ECMP paths in other VRFs also
BGP SUPPORT FOR MULTIPLE SOURCED PATHS PER
REDISTRIBUTED ROUTE
Device(config-­‐router)#  address-­‐family  ipv4  vrf blue
Device(config-­‐router-­‐af)#  bgp sourced-­‐paths  per-­‐net  static  all
Device(config-­‐router-­‐af)#  bgp sourced-­‐paths  per-­‐net  ospf all
Device(config-­‐router-­‐af)#  redistribute  static
Device(config-­‐router-­‐af)#  redistribute  ospf 2
Device(config-­‐router-­‐af)#  exit-­‐address-­‐family
Allows per network sourcing of all static paths in the RIB
BGP SUPPORT FOR MULTIPLE SOURCED PATHS PER
REDISTRIBUTED ROUTE
¢ Availability:
— Cisco IOS XE Release 3.15S
— IOS 15.5M
BGP ACCUMULATED IGP METRIC
BGP ACCUMULATED IGP METRIC
¢ BGP Accumulated IGP feature is an optional nontransitive Border
Gateway Protocol (BGP) path attribute
¢ It is required to simulate the current Open Shortest Path First (OSPF)
behavior of computing the distance associated with a path
BGP ACCUMULATED IGP METRIC
¢ Problem example
— ACME network is sub-divided into two BGP ASN’s, ASN 1 and ASN 2. They
are peering at ASBR’s and the link IGP costs are representing bandwidth.
The goal here is to have an end-to-end optimal path between PE1 and PE21
Example and diagrams from http://packetpushers.net/bgp-aigp
BGP ACCUMULATED IGP METRIC
¢ Solution #1 – MED attribute
— Set MED 40 for prefix 21.21.21.21 /32 on ASBR21 and MED 20 on ASBR 22
representing there IGP cost for the prefix
— Another problem – best path is via ASBR12 not ASBR11
Example and diagrams from http://packetpushers.net/bgp-aigp
BGP ACCUMULATED IGP METRIC
¢ Solution #2 – AIGP attribute
— ASBR21 and ASBR22 advertise the Prefix 21.21.21.21 /32 to their respective ASBR’s in
ASN1 with aigp-metric which contains the IGP-Cost to PE21
— PE1 adds the IGP cost to the ASBR11 and ASBR12 and chooses the BGP next hop which is
on end to end optimal path from an IGP cost perspective
— This create new problem – it can cause BGP route change if there is a change in the IGP
cost
Example and diagrams from http://packetpushers.net/bgp-aigp
BGP ACCUMULATED IGP METRIC
¢ AIGP modifies best-path selection algorithm
1. Highest Local-Preference
2. Shortest AS-Path
3. Lowest Origin Code
4. Lowest MED
5. …
1. Highest Local-Preference
2. Lowest AIGP Cost
3. Shortest AS-Path
4. Lowest Origin Code
5. Lowest MED
6. …
BGP ACCUMULATED IGP METRIC
¢ Configuration
— Configuring AIGP metric value
Device#  configure  terminal
Device(config)#  router  bgp 40000
Device(config-­‐router)#  address-­‐family  ipv4  unicast
Device(config-­‐router-­‐af)#  redistribute  bgp 100  route-­‐map  rtmap
Device(config-­‐router-­‐af)#  network  10.1.1.1  route-­‐map  rtmap
Device(config-­‐router-­‐af)#  exit
Device(config)#  route-­‐map  rtmap
Device(config-­‐route-­‐map)#  set  aigp-­‐metric  igp-­‐metric
Device(config-­‐route-­‐map)#  end
BGP ACCUMULATED IGP METRIC
¢ Configuration
— EnablingAIGP
Device#  configure  terminal
Device(config)#  router  bgp 40000
Device(config-­‐router)#  address-­‐family  ipv4  unicast
Device(config-­‐router-­‐af)#  neighbor  192.168.1.1  aigp
Device(config-­‐router-­‐af)#  exit
BGP ACCUMULATED IGP METRIC
¢ Availability:
— Cisco IOS XE Release 3.12S
— 15.4(2)S
— IOS XR 4.2
— Juniper JunOS 12.3 [M, MX, T Series]
BGP MONITORING PROTOCOL
BGP MONITORING PROTOCOL
¢ Several network tasks and services requires access to full routing table
— Paths analysis
— Prefix history during troubleshooting
— Traffic engineering planning
— Looking glass
— Network simulations
— Etc…
BGP MONITORING PROTOCOL
¢ BMP components:
— BMP Server – device that will collect information, talk to BMP Clients
¢ ExaBMP
¢ Ryu BMP Server
¢ OpenBMP
¢ bmpreceiver
— BMP Client – BGP neighbors configured to send data to specific BMP servers
for monitoring purposes
BGP MONITORING PROTOCOL
BGP MONITORING PROTOCOL
¢ BMP Server configuration on Cisco
Device(config)#  router  bgp 65000
Device(config-­‐router)#  bmp  server  1
Device(config-­‐router-­‐bmpsrvr)#  activate
Device(config-­‐router-­‐bmpsrvr)#  address  10.1.1.1  port-­‐number  8000
Device(config-­‐router-­‐bmpsrvr)#  description  LINE  SERVER1
Device(config-­‐router-­‐bmpsrvr)#  failure-­‐retry-­‐delay  40
Device(config-­‐router-­‐bmpsrvr)#  flapping-­‐delay  120
Device(config-­‐router-­‐bmpsrvr)#  initial-­‐delay  20
Device(config-­‐router-­‐bmpsrvr)#  set  ip dscp 5
Device(config-­‐router-­‐bmpsrvr)#  stats-­‐reporting-­‐period  30
Device(config-­‐router-­‐bmpsrvr)#  update-­‐source  ethernet 0/0
Device(config-­‐router-­‐bmpsrvr)#  exit-­‐bmp-­‐server-­‐mode
BGP MONITORING PROTOCOL
¢ Configuration activation per neighbor
Device(config)#  router  bgp 65000
Device(config-­‐router)#  neighbor  30.1.1.1  bmp-­‐activate  server  1  server  2
Device(config-­‐router)#  end
BGP MONITORING PROTOCOL
¢ Availability:
— Cisco IOS XE Release 3.11S
— 15.4(1)S
— IOS XR 5.2.2
— Juniper JunOS 13.2
BGP FLOWSPEC
BGP FLOWSPEC
The benefit of BGP Flow Spec is that it allows BGP speakers to use a
new BGP NLRI defining flow filter information which can then be
advertised to upstream neighbors via BGP
The primary and immediate motivation of this protocol is to provide intra and inter provider distribution of
traffic filtering rules to filter DoS and DDoS attacks, however it can be used for a wide variety of applications
in which filtering information must be dynamically distributed throughout a network
BGP FLOWSPEC
¢ BGP FlowSpec is defined within the RFC 5575: “Dissemination of Flow
Specification Rules”
¢ New NLRI that allows to convey flow specifications and traffic
Action/Rules associated
— FLOW specifications are encoded within the MP_REACH_NLRI and
MP_UNREACH_NLRI attributes.
— RULES (Actions associated) are encoded in Extended Community attribute.
¢ For IPv4 purposes, RFC defines the following AFI/SAFI value: AFI=1
SAFI=133
BGP FLOWSPEC
Internet
Web Server
IP:212.111.1.50
eBGP: 212.111.1.0/24
BGP FLOWSPEC
Internet
Web Server
IP:212.111.1.50
eBGP: 212.111.1.0/24
¢ DDoS Attack
DDoS Attack
BGP FLOWSPEC
Internet
Web Server
IP:212.111.1.50
eBGP: 212.111.1.0/24
¢ DDoS Attack Mittigation – BGP Blackholing
DDoS Attack
eBGP: 212.111.1.1/32
Community 12345:666
212.111.1.1/32 Discarded
212.111.1.1/32 Discarded
BGP FLOWSPEC
¢ DDoS Attack Mittigation – BGP Blackholing
— DDoS attack successfully blocked!
— … as well as all other traffic to web server
BGP FLOWSPEC
Internet
Web Server
IP:212.111.1.50
eBGP: 212.111.1.0/24
¢ DDoS Attack Mittigation – BGP FlowSpec
DDoS Attack
212.111.1.50/32
IP Protocol 17 (UDP)
Packet size <= 30KB
Rate-limit 5M
Legitimate Traffic
BGP FLOWSPEC
¢ In reality Service Provider does not trust Customer
¢ New AFI/SAFI combination need to be deployed between Customer
and Service Provider
¢ In real scenarios SP utilize central FlowSpec speaker
— Machine is tread as trusted
— BGP meshed with other routers
— Managed by service provider
BGP FLOWSPEC
Internet
Web Server
IP:212.111.1.50
eBGP: 212.111.1.0/24
¢ DDoS Attack Mittigation – BGP FlowSpec
DDoS Attack
212.111.1.1/32
IP Protocol 17 (UDP)
Packet size <= 30KB
Rate-limit 5M
Legitimate Traffic
FlowSpec Speaker
BGP FLOWSPEC
BGP FLOWSPEC
¢ Availability:
— Cisco IOS XE Release 3.15S
— IOS 15.5(1)S
— Cisco IOS-XR 5.2.0
— Juniper JunOS 7.3
QUESTIONS?
THANK YOU

More Related Content

PPTX
BGP Advanced topics
PDF
MPLS MPLS Inter-AS MPLS CSC
PPTX
IS-IS Protocol Introduction
PDF
VXLAN and FRRouting
PPT
PDF
Bidirectional Forwarding Detection (BFD)
PDF
Master Class : TCP/IP Mechanics from Scratch to Expert
PPTX
BGP (Border Gateway Protocol)
BGP Advanced topics
MPLS MPLS Inter-AS MPLS CSC
IS-IS Protocol Introduction
VXLAN and FRRouting
Bidirectional Forwarding Detection (BFD)
Master Class : TCP/IP Mechanics from Scratch to Expert
BGP (Border Gateway Protocol)

What's hot (20)

PDF
SRv6: DEPLOYMENT & USECASES by Aditya Kaul
PDF
Troubleshooting BGP Juniper Examples
PPTX
EIGRP Routing Protocols
PDF
Segment Routing
PDF
hpsr-2020-srv6-tutorial
PPT
bgp(border gateway protocol)
PPTX
Vxlan control plane and routing
PDF
Juniper Bgp
PPTX
Ccna ppt1
PPT
Basic network training1
PDF
PPT
PDF
MPLS L3 VPN Deployment
PPTX
Vxlan deep dive session rev0.5 final
PDF
Juniper Platform Overview
PDF
Bgp route reflector
PPT
Is Is Routing Protocol
PDF
PPT
CCNA TCP/IP
PDF
Policy Based Routing (PBR)
SRv6: DEPLOYMENT & USECASES by Aditya Kaul
Troubleshooting BGP Juniper Examples
EIGRP Routing Protocols
Segment Routing
hpsr-2020-srv6-tutorial
bgp(border gateway protocol)
Vxlan control plane and routing
Juniper Bgp
Ccna ppt1
Basic network training1
MPLS L3 VPN Deployment
Vxlan deep dive session rev0.5 final
Juniper Platform Overview
Bgp route reflector
Is Is Routing Protocol
CCNA TCP/IP
Policy Based Routing (PBR)
Ad

Viewers also liked (20)

PDF
PLNOG16: Automatyzacja kreaowania usług operatorskich w separacji od rodzaju ...
PDF
PLNOG14: Nowości w protokole BGP, optymalizacja routingu na brzegu sieci - Łu...
PDF
PLNOG15: Is there something less complicated than connecting two LAN networks...
PDF
PLNOG16: Ochrona AntiDDoS, lokalnie oraz w chmurze, Paweł Wachełka
PPTX
PLNOG16: Nowe założenia dla zbieranie logów, statystyk i alertów, Maciej Kałk...
PDF
PLNOG15: BGP Route Reflector from practical point of view
PDF
PLNOG16: DDOS SOLUTIONS – CUSTOMER POINT OF VIEW, Piotr Wojciechowski
PPTX
PLNOG16: EXTREME(alnie) przeciw DDoS’om, Krzysztof Surgut, Michał Gąszczyk
PDF
PLNOG16: Czy każdy administrator sieci zostanie programistą, Sławomir Januk...
PPTX
PLNOG16: Transport ruchu klientów - MPLS L2 i L3, Tomasz Jedynak
PDF
PLNOG16: Wielopunktowy VPN, Piotr Głaska
PDF
PLNOG16: Administratorzy umarli ? Paweł Stefański
PDF
PLNOG16: IP/MPLS for Fixed and Mobile Convergence, Kevin Wang
PDF
PLNOG15: Practical case studies of IPTV signal redundancy in Internet network...
PPTX
PLNOG16: VXLAN Gateway, efektywny sposób połączenia świata wirtualnego z fizy...
PDF
PLNOG16: Public IX is the tip of the Internet Iceberg. The 9:1 PNI rule, Mart...
PPT
PLNOG16: Milion użytkowników IPv6 na polskim rynku mobilnym, Tomasz Kossut
PPTX
PLNOG15 :DDOS Attacks & Collateral Damage. Can we avoid it? Asraf Ali
PDF
PLNOG16: Usługi w sieciach operatorskich, Marcin Aronowski
PPTX
PLNOG16: Mix 2-in-1: IPv6 troubleshooting for helpdesks - and – DANE/DNSSE...
PLNOG16: Automatyzacja kreaowania usług operatorskich w separacji od rodzaju ...
PLNOG14: Nowości w protokole BGP, optymalizacja routingu na brzegu sieci - Łu...
PLNOG15: Is there something less complicated than connecting two LAN networks...
PLNOG16: Ochrona AntiDDoS, lokalnie oraz w chmurze, Paweł Wachełka
PLNOG16: Nowe założenia dla zbieranie logów, statystyk i alertów, Maciej Kałk...
PLNOG15: BGP Route Reflector from practical point of view
PLNOG16: DDOS SOLUTIONS – CUSTOMER POINT OF VIEW, Piotr Wojciechowski
PLNOG16: EXTREME(alnie) przeciw DDoS’om, Krzysztof Surgut, Michał Gąszczyk
PLNOG16: Czy każdy administrator sieci zostanie programistą, Sławomir Januk...
PLNOG16: Transport ruchu klientów - MPLS L2 i L3, Tomasz Jedynak
PLNOG16: Wielopunktowy VPN, Piotr Głaska
PLNOG16: Administratorzy umarli ? Paweł Stefański
PLNOG16: IP/MPLS for Fixed and Mobile Convergence, Kevin Wang
PLNOG15: Practical case studies of IPTV signal redundancy in Internet network...
PLNOG16: VXLAN Gateway, efektywny sposób połączenia świata wirtualnego z fizy...
PLNOG16: Public IX is the tip of the Internet Iceberg. The 9:1 PNI rule, Mart...
PLNOG16: Milion użytkowników IPv6 na polskim rynku mobilnym, Tomasz Kossut
PLNOG15 :DDOS Attacks & Collateral Damage. Can we avoid it? Asraf Ali
PLNOG16: Usługi w sieciach operatorskich, Marcin Aronowski
PLNOG16: Mix 2-in-1: IPv6 troubleshooting for helpdesks - and – DANE/DNSSE...
Ad

Similar to PLNOG15: BGP New Advanced Features - Piotr Wojciechowski (20)

PPTX
Part8-ibgp.pptx
PDF
BGP (border gateway routing protocol)
PDF
PDF
Bgp Toc
PPT
PPT
PPT
BSCI30S06 border gateway protocol BG ppt
PPTX
11 bgp-ethernet
PDF
Computer network (14)
DOCX
Cisco BGP Exam 642-661 Review Notes
DOC
Study Notes BGP Exam
PPTX
Border Gateway Protocol (BGP)
DOCX
CCNP Route 642 902 BGP
PDF
Bgp attribute-case study
PPT
PPTX
PDF
Cisco ccnp 642-902 practice tests for quick preparation
PDF
SANOG23-BGP-Techniques.pdf
PPT
Part8-ibgp.pptx
BGP (border gateway routing protocol)
Bgp Toc
BSCI30S06 border gateway protocol BG ppt
11 bgp-ethernet
Computer network (14)
Cisco BGP Exam 642-661 Review Notes
Study Notes BGP Exam
Border Gateway Protocol (BGP)
CCNP Route 642 902 BGP
Bgp attribute-case study
Cisco ccnp 642-902 practice tests for quick preparation
SANOG23-BGP-Techniques.pdf

Recently uploaded (20)

PPTX
Introuction about WHO-FIC in ICD-10.pptx
PDF
Testing WebRTC applications at scale.pdf
PPTX
522797556-Unit-2-Temperature-measurement-1-1.pptx
PPTX
international classification of diseases ICD-10 review PPT.pptx
PPTX
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
PDF
WebRTC in SignalWire - troubleshooting media negotiation
PDF
“Google Algorithm Updates in 2025 Guide”
PDF
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
PDF
Sims 4 Historia para lo sims 4 para jugar
PDF
Unit-1 introduction to cyber security discuss about how to secure a system
PPTX
CSharp_Syntax_Basics.pptxxxxxxxxxxxxxxxxxxxxxxxxxxxx
PPTX
PptxGenJS_Demo_Chart_20250317130215833.pptx
PDF
Cloud-Scale Log Monitoring _ Datadog.pdf
PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PPTX
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
PDF
The Internet -By the Numbers, Sri Lanka Edition
PPTX
Module 1 - Cyber Law and Ethics 101.pptx
PDF
RPKI Status Update, presented by Makito Lay at IDNOG 10
PDF
Behind the Smile Unmasking Ken Childs and the Quiet Trail of Deceit Left in H...
PPTX
Introduction to Information and Communication Technology
Introuction about WHO-FIC in ICD-10.pptx
Testing WebRTC applications at scale.pdf
522797556-Unit-2-Temperature-measurement-1-1.pptx
international classification of diseases ICD-10 review PPT.pptx
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
WebRTC in SignalWire - troubleshooting media negotiation
“Google Algorithm Updates in 2025 Guide”
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
Sims 4 Historia para lo sims 4 para jugar
Unit-1 introduction to cyber security discuss about how to secure a system
CSharp_Syntax_Basics.pptxxxxxxxxxxxxxxxxxxxxxxxxxxxx
PptxGenJS_Demo_Chart_20250317130215833.pptx
Cloud-Scale Log Monitoring _ Datadog.pdf
Job_Card_System_Styled_lorem_ipsum_.pptx
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
The Internet -By the Numbers, Sri Lanka Edition
Module 1 - Cyber Law and Ethics 101.pptx
RPKI Status Update, presented by Makito Lay at IDNOG 10
Behind the Smile Unmasking Ken Childs and the Quiet Trail of Deceit Left in H...
Introduction to Information and Communication Technology

PLNOG15: BGP New Advanced Features - Piotr Wojciechowski

  • 1. BGP NEW ADVANCED FEATURES Piotr Wojciechowski (CCIE #25543)
  • 2. ABOUT ME ¢ Senior Network Engineer MSO at VeriFone Inc. ¢ Previously Network Solutions Architect at one of top polish IT integrators ¢ CCIE #25543 (Routing & Switching) ¢ Administrator of CCIE.PL board — The biggest Cisco community in Europe — About 7800 users — 3 admin, 3 moderators — Over 60 polish CCIEs as members, 20 of them actively posting — About 100 new topics per month — About 800 posts per month — English section available
  • 3. AGENDA ¢ BGP Graceful Shutdown ¢ BGP Additional Paths ¢ BGP Support for Multiple Sourced Paths Per Redistributed Route ¢ BGP Accumulated IGP Metric ¢ BGP Monitoring Protocol ¢ BGP FlowSpec
  • 5. BGP GRACEFUL SHUTDOWN ¢ BGP convergence can take from few seconds to few minutes ¢ Maintenance periods may cause significant disruption in network ¢ For new applications customers are requesting tighter SLA requirements (ie. for VoIP traffic, corporate mission critical applications) ¢ BGP devices are temporarily unreachable during BGP convergence ¢ Historically RR’s have worsened the issue as they tend to hide the alternate path as they only forward the best path
  • 6. BGP GRACEFUL SHUTDOWN ¢ This feature is used primarily for maintenance in MPLS networks on a link between: — PE-PE, — PE- Route Reflector (RR), — PE-Customer Edge (CE) and CE ¢ It may be used between Internet BGP routers
  • 7. BGP GRACEFUL SHUTDOWN ¢ The goal of gracefully shutting down one or more BGP sessions is to minimize traffic loss during the planned shutdown and subsequent reestablishment of the sessions. ¢ Goal achieved - routers always have a valid route available during the convergence process
  • 8. BGP GRACEFUL SHUTDOWN ¢ BGP Graceful Shutdown allows vendors to provide mechanism that does not require any router reconfiguration at maintenance time RFC 6198 Requirements for the Graceful Shutdown of BGP Sessions draft-ietf-grow-bgp-gshut-06 Graceful BGP session shutdown
  • 9. BGP GRACEFUL SHUTDOWN Source Destination R2 R1 1. Router is down 2. Packet drops 3. Alternate path announces 4. Packets flow resume Router is unable to forward to a destination if a withdrawal arrives before the advertisement of alternate route
  • 10. BGP GRACEFUL SHUTDOWN 1. Announce Lower Preference 2. Packets continue to flow 3. Alternate path announces 4. Packets reroute 5. Router restart Source Destination R2 R1
  • 11. BGP GRACEFUL SHUTDOWN ¢ GSHUT well-known community ¢ The GSHUT community is always sent by the GSHUT initiator ¢ The GSHUT community is specified in a community list, which is referenced by a route map and then used to make policy routing decisions
  • 12. BGP GRACEFUL SHUTDOWN Berlin(config-­‐router)#neighbor  10.0.128.2  shutdown  graceful  30  community  12345 *Sep    1  20:33:59.225:    Graceful  Shutdown  after  30  seconds  for  neighbor:  10.0.128.2 *Sep    1  20:34:29.529:  %BGP-­‐3-­‐NOTIFICATION:  sent  to  neighbor  10.0.128.2  6/2  (Administrative  Shutdown)  0  bytes   *Sep    1  20:34:29.530:  %BGP-­‐5-­‐NBR_RESET:  Neighbor  10.0.128.2  reset  (Admin.  shutdown) *Sep    1  20:34:29.535:  %BGP-­‐5-­‐ADJCHANGE:  neighbor  10.0.128.2  Down  Admin.  shutdown *Sep    1  20:34:29.536:  %BGP_SESSION-­‐5-­‐ADJCHANGE:  neighbor  10.0.128.2  IPv4  Unicast  topology  base  removed  from  session     Admin.  shutdown
  • 13. BGP GRACEFUL SHUTDOWN ¢ Availability: — Cisco IOS XE Release 3.6S — IOS 15.2(4)M — IOS XR 3.5.2
  • 15. BGP ADDITIONAL PATHS ¢ BGP routers and route reflectors (RRs) propagate only their best path over their sessions ¢ Path hiding can prevent efficient use of BGP multipath — It may prevent hitless planned maintenance — Sub-optimal routing — During failure it negatively affect fast and local recovery because the network has to wait for BGP control plane convergence to restore traffic
  • 16. BGP ADDITIONAL PATHS ¢ Example of path hiding - prefix p with paths p1 and p2 advertised from BR1 and BR4 to RR1. RR1 selects the best path of the two and then advertises to PE only p1
  • 17. BGP ADDITIONAL PATHS ¢ BGP routers and route reflectors (RR) propagate only their best path over their sessions ¢ The advertisement of a prefix replaces the previous announcement of that prefix (this in known as an implicit withdraw) ¢ The BGP Additional Paths feature is a BGP extension that allows the advertisement of multiple paths for the same prefix without the new paths implicitly replacing any previous paths
  • 18. BGP ADDITIONAL PATHS ¢ BGP Additional Paths feature is implemented by adding a path identifier to each path in the NLRI — Path IDs are unique to a peering session and are generated for each network — 4 octets length ¢ Additional Paths feature allows the advertisement of more paths, in addition to the bestpath ¢ Additional Paths feature allows the advertisement of multiple paths for the same prefix, without the new paths implicitly replacing any previous paths
  • 19. BGP ADDITIONAL PATHS router  bgp 1 address-­‐family  ipv4  unicast bgp additional-­‐paths  select  all neighbor  192.168.1.2  additional-­‐paths  send  receive neighbor  192.168.1.2  advertise  additional-­‐paths  all Three path selection (path marking) policies, and they are not mutually exclusive • best 2 or best 3 (best 2 means the bestpath and 2nd best path) • group-best (calculates the group-best for prefixes during bestpath calculation) • all (all paths with unique next hops are eligible for selection)
  • 20. BGP ADDITIONAL PATHS router  bgp 1 address-­‐family  ipv4  unicast bgp additional-­‐paths  select  all neighbor  192.168.1.2  additional-­‐paths  send  receive neighbor  192.168.1.2  advertise  additional-­‐paths  all Enables the neighbor to send or receive additional paths after negotiation is completed.
  • 21. BGP ADDITIONAL PATHS router  bgp 1 address-­‐family  ipv4  unicast bgp additional-­‐paths  select  all neighbor  192.168.1.2  additional-­‐paths  send  receive neighbor  192.168.1.2  advertise  additional-­‐paths  all Specifies the selection methods that control which additional paths are advertised for the neighbor.
  • 22. BGP ADDITIONAL PATHS ¢ Configuration methods — per Address Family — per Neighbor — via Peer Policy Template ¢ Additional filtering or attributes may be applied via route-maps
  • 23. BGP ADDITIONAL PATHS ¢ Availability: — Cisco IOS XE Release 3.7S — Cisco IOS XE Release 3.6E — IOS 15.3M — NX-OS 6.2(8) [Nexus 7700] — IOS XR 4.0 [CSR] — Juniper JunOS 11.4 [SRX, M, MX, J, T Series]
  • 24. BGP SUPPORT FOR MULTIPLE SOURCED PATHS PER REDISTRIBUTED ROUTE
  • 25. BGP SUPPORT FOR MULTIPLE SOURCED PATHS PER REDISTRIBUTED ROUTE ¢ Prior to this feature: — BGP accepted only one path from the Routing Information Base (RIB) to create a single BGP-sourced path for a redistributed network ¢ Redistribution ¢ Network command — If the RIB had more than one path for the same network only best one was used — Import of more than the default path into a VRF instance is already supported in BGP, however, these multiple paths had to be from different neighbors or sources and not from the same source
  • 26. BGP SUPPORT FOR MULTIPLE SOURCED PATHS PER REDISTRIBUTED ROUTE
  • 27. BGP SUPPORT FOR MULTIPLE SOURCED PATHS PER REDISTRIBUTED ROUTE ¢ With BGP Support for Multiple Sourced Paths Per Redistributed Route: — Multiple paths from the same source can be imported and exported across virtual routing and forwarding (VRF) instances — Customers can export Equal Cost Multipath (ECMP) sourced paths or next- hops from one VRF into hundreds of VRFs on the same device using BGP — Each of these paths are installed as multipaths into the RIB, and provides ECMP paths in other VRFs also
  • 28. BGP SUPPORT FOR MULTIPLE SOURCED PATHS PER REDISTRIBUTED ROUTE Device(config-­‐router)#  address-­‐family  ipv4  vrf blue Device(config-­‐router-­‐af)#  bgp sourced-­‐paths  per-­‐net  static  all Device(config-­‐router-­‐af)#  bgp sourced-­‐paths  per-­‐net  ospf all Device(config-­‐router-­‐af)#  redistribute  static Device(config-­‐router-­‐af)#  redistribute  ospf 2 Device(config-­‐router-­‐af)#  exit-­‐address-­‐family Allows per network sourcing of all static paths in the RIB
  • 29. BGP SUPPORT FOR MULTIPLE SOURCED PATHS PER REDISTRIBUTED ROUTE ¢ Availability: — Cisco IOS XE Release 3.15S — IOS 15.5M
  • 31. BGP ACCUMULATED IGP METRIC ¢ BGP Accumulated IGP feature is an optional nontransitive Border Gateway Protocol (BGP) path attribute ¢ It is required to simulate the current Open Shortest Path First (OSPF) behavior of computing the distance associated with a path
  • 32. BGP ACCUMULATED IGP METRIC ¢ Problem example — ACME network is sub-divided into two BGP ASN’s, ASN 1 and ASN 2. They are peering at ASBR’s and the link IGP costs are representing bandwidth. The goal here is to have an end-to-end optimal path between PE1 and PE21 Example and diagrams from http://packetpushers.net/bgp-aigp
  • 33. BGP ACCUMULATED IGP METRIC ¢ Solution #1 – MED attribute — Set MED 40 for prefix 21.21.21.21 /32 on ASBR21 and MED 20 on ASBR 22 representing there IGP cost for the prefix — Another problem – best path is via ASBR12 not ASBR11 Example and diagrams from http://packetpushers.net/bgp-aigp
  • 34. BGP ACCUMULATED IGP METRIC ¢ Solution #2 – AIGP attribute — ASBR21 and ASBR22 advertise the Prefix 21.21.21.21 /32 to their respective ASBR’s in ASN1 with aigp-metric which contains the IGP-Cost to PE21 — PE1 adds the IGP cost to the ASBR11 and ASBR12 and chooses the BGP next hop which is on end to end optimal path from an IGP cost perspective — This create new problem – it can cause BGP route change if there is a change in the IGP cost Example and diagrams from http://packetpushers.net/bgp-aigp
  • 35. BGP ACCUMULATED IGP METRIC ¢ AIGP modifies best-path selection algorithm 1. Highest Local-Preference 2. Shortest AS-Path 3. Lowest Origin Code 4. Lowest MED 5. … 1. Highest Local-Preference 2. Lowest AIGP Cost 3. Shortest AS-Path 4. Lowest Origin Code 5. Lowest MED 6. …
  • 36. BGP ACCUMULATED IGP METRIC ¢ Configuration — Configuring AIGP metric value Device#  configure  terminal Device(config)#  router  bgp 40000 Device(config-­‐router)#  address-­‐family  ipv4  unicast Device(config-­‐router-­‐af)#  redistribute  bgp 100  route-­‐map  rtmap Device(config-­‐router-­‐af)#  network  10.1.1.1  route-­‐map  rtmap Device(config-­‐router-­‐af)#  exit Device(config)#  route-­‐map  rtmap Device(config-­‐route-­‐map)#  set  aigp-­‐metric  igp-­‐metric Device(config-­‐route-­‐map)#  end
  • 37. BGP ACCUMULATED IGP METRIC ¢ Configuration — EnablingAIGP Device#  configure  terminal Device(config)#  router  bgp 40000 Device(config-­‐router)#  address-­‐family  ipv4  unicast Device(config-­‐router-­‐af)#  neighbor  192.168.1.1  aigp Device(config-­‐router-­‐af)#  exit
  • 38. BGP ACCUMULATED IGP METRIC ¢ Availability: — Cisco IOS XE Release 3.12S — 15.4(2)S — IOS XR 4.2 — Juniper JunOS 12.3 [M, MX, T Series]
  • 40. BGP MONITORING PROTOCOL ¢ Several network tasks and services requires access to full routing table — Paths analysis — Prefix history during troubleshooting — Traffic engineering planning — Looking glass — Network simulations — Etc…
  • 41. BGP MONITORING PROTOCOL ¢ BMP components: — BMP Server – device that will collect information, talk to BMP Clients ¢ ExaBMP ¢ Ryu BMP Server ¢ OpenBMP ¢ bmpreceiver — BMP Client – BGP neighbors configured to send data to specific BMP servers for monitoring purposes
  • 43. BGP MONITORING PROTOCOL ¢ BMP Server configuration on Cisco Device(config)#  router  bgp 65000 Device(config-­‐router)#  bmp  server  1 Device(config-­‐router-­‐bmpsrvr)#  activate Device(config-­‐router-­‐bmpsrvr)#  address  10.1.1.1  port-­‐number  8000 Device(config-­‐router-­‐bmpsrvr)#  description  LINE  SERVER1 Device(config-­‐router-­‐bmpsrvr)#  failure-­‐retry-­‐delay  40 Device(config-­‐router-­‐bmpsrvr)#  flapping-­‐delay  120 Device(config-­‐router-­‐bmpsrvr)#  initial-­‐delay  20 Device(config-­‐router-­‐bmpsrvr)#  set  ip dscp 5 Device(config-­‐router-­‐bmpsrvr)#  stats-­‐reporting-­‐period  30 Device(config-­‐router-­‐bmpsrvr)#  update-­‐source  ethernet 0/0 Device(config-­‐router-­‐bmpsrvr)#  exit-­‐bmp-­‐server-­‐mode
  • 44. BGP MONITORING PROTOCOL ¢ Configuration activation per neighbor Device(config)#  router  bgp 65000 Device(config-­‐router)#  neighbor  30.1.1.1  bmp-­‐activate  server  1  server  2 Device(config-­‐router)#  end
  • 45. BGP MONITORING PROTOCOL ¢ Availability: — Cisco IOS XE Release 3.11S — 15.4(1)S — IOS XR 5.2.2 — Juniper JunOS 13.2
  • 47. BGP FLOWSPEC The benefit of BGP Flow Spec is that it allows BGP speakers to use a new BGP NLRI defining flow filter information which can then be advertised to upstream neighbors via BGP The primary and immediate motivation of this protocol is to provide intra and inter provider distribution of traffic filtering rules to filter DoS and DDoS attacks, however it can be used for a wide variety of applications in which filtering information must be dynamically distributed throughout a network
  • 48. BGP FLOWSPEC ¢ BGP FlowSpec is defined within the RFC 5575: “Dissemination of Flow Specification Rules” ¢ New NLRI that allows to convey flow specifications and traffic Action/Rules associated — FLOW specifications are encoded within the MP_REACH_NLRI and MP_UNREACH_NLRI attributes. — RULES (Actions associated) are encoded in Extended Community attribute. ¢ For IPv4 purposes, RFC defines the following AFI/SAFI value: AFI=1 SAFI=133
  • 50. BGP FLOWSPEC Internet Web Server IP:212.111.1.50 eBGP: 212.111.1.0/24 ¢ DDoS Attack DDoS Attack
  • 51. BGP FLOWSPEC Internet Web Server IP:212.111.1.50 eBGP: 212.111.1.0/24 ¢ DDoS Attack Mittigation – BGP Blackholing DDoS Attack eBGP: 212.111.1.1/32 Community 12345:666 212.111.1.1/32 Discarded 212.111.1.1/32 Discarded
  • 52. BGP FLOWSPEC ¢ DDoS Attack Mittigation – BGP Blackholing — DDoS attack successfully blocked! — … as well as all other traffic to web server
  • 53. BGP FLOWSPEC Internet Web Server IP:212.111.1.50 eBGP: 212.111.1.0/24 ¢ DDoS Attack Mittigation – BGP FlowSpec DDoS Attack 212.111.1.50/32 IP Protocol 17 (UDP) Packet size <= 30KB Rate-limit 5M Legitimate Traffic
  • 54. BGP FLOWSPEC ¢ In reality Service Provider does not trust Customer ¢ New AFI/SAFI combination need to be deployed between Customer and Service Provider ¢ In real scenarios SP utilize central FlowSpec speaker — Machine is tread as trusted — BGP meshed with other routers — Managed by service provider
  • 55. BGP FLOWSPEC Internet Web Server IP:212.111.1.50 eBGP: 212.111.1.0/24 ¢ DDoS Attack Mittigation – BGP FlowSpec DDoS Attack 212.111.1.1/32 IP Protocol 17 (UDP) Packet size <= 30KB Rate-limit 5M Legitimate Traffic FlowSpec Speaker
  • 57. BGP FLOWSPEC ¢ Availability: — Cisco IOS XE Release 3.15S — IOS 15.5(1)S — Cisco IOS-XR 5.2.0 — Juniper JunOS 7.3