APNIC elearning: BGP Attributes



Similar documents
APNIC elearning: BGP Basics. Contact: erou03_v1.0

BGP Attributes and Path Selection

BGP Basics. BGP Uses TCP 179 ibgp - BGP Peers in the same AS ebgp - BGP Peers in different AS's Private BGP ASN. BGP Router Processes

Border Gateway Protocol BGP4 (2)

Understanding Route Aggregation in BGP

basic BGP in Huawei CLI

BGP Router Startup Message Flow

Routing Protocol - BGP

BGP Best Path Selection Algorithm

BGP overview BGP operations BGP messages BGP decision algorithm BGP states

BGP Terminology, Concepts, and Operation. Chapter , Cisco Systems, Inc. All rights reserved. Cisco Public

Border Gateway Protocol (BGP)

E : Internet Routing

How To Understand Bg

netkit lab bgp: prefix-filtering Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group

Using the Border Gateway Protocol for Interdomain Routing

DD2491 p Inter-domain routing and BGP part I Olof Hagsand KTH/CSC

Advanced BGP Policy. Advanced Topics

Transitioning to BGP. ISP Workshops. Last updated 24 April 2013

Lecture 18: Border Gateway Protocol"

Multihomed BGP Configurations

Module 7. Routing and Congestion Control. Version 2 CSE IIT, Kharagpur

- Border Gateway Protocol -

BSCI Module 6 BGP. Configuring Basic BGP. BSCI Module 6

Exterior Gateway Protocols (BGP)

Internet inter-as routing: BGP

--BGP 4 White Paper Ver BGP-4 in Vanguard Routers

Chapter 6: Implementing a Border Gateway Protocol Solution for ISP Connectivity

BGP4 Case Studies/Tutorial

How To Set Up Bgg On A Network With A Network On A Pb Or Pb On A Pc Or Ipa On A Bg On Pc Or Pv On A Ipa (Netb) On A Router On A 2

Border Gateway Protocol Best Practices

IPv6 over MPLS VPN. Contents. Prerequisites. Document ID: Requirements

Inter-domain Routing Basics. Border Gateway Protocol. Inter-domain Routing Basics. Inter-domain Routing Basics. Exterior routing protocols created to:

BGP1 Multihoming and Traffic Engineering

Simple Multihoming. ISP/IXP Workshops

Understanding Virtual Router and Virtual Systems

Configuring and Testing Border Gateway Protocol (BGP) on Basis of Cisco Hardware and Linux Gentoo with Quagga Package (Zebra)

Internet inter-as routing: BGP

Module 12 Multihoming to the Same ISP

BGP Link Bandwidth. Finding Feature Information. Prerequisites for BGP Link Bandwidth

CS551 External v.s. Internal BGP

BGP Link Bandwidth. Finding Feature Information. Contents

Configuring BGP. Cisco s BGP Implementation

Load balancing and traffic control in BGP

Understanding Route Redistribution & Filtering

The ISP Column. An Introduction to BGP the Protocol

Internet Routing Protocols Lecture 04 BGP Continued

Bell Aliant. Business Internet Border Gateway Protocol Policy and Features Guidelines

Edge-1#show ip route Routing entry for /24. Known via "bgp 65001", distance 200, metric 0. Tag 65300, type internal

BGP: Frequently Asked Questions

netkit lab bgp: multi-homed Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group

Analyzing Capabilities of Commercial and Open-Source Routers to Implement Atomic BGP

IPv6 Address Planning

BGP Support for Next-Hop Address Tracking

Chapter 49 Border Gateway Protocol version 4 (BGP-4)

Gateway of last resort is to network

BGP-4 Case Studies. Nenad Krajnovic.

Simple Multihoming. ISP Workshops. Last updated 30 th March 2015

Border Gateway Protocol, Route Manipulation, and IP Multicast

IP Routing Tecnologie e Protocolli per Internet II rev 1

6.263 Data Communication Networks

Administra0via. STP lab due Wednesday (in BE 301a!), 5/15 BGP quiz Thursday (remember required reading), 5/16

BGP Multihoming Techniques

JUNOS Secure BGP Template

HP Networking BGP and MPLS technology training

UPDATE = [Withdrawn prefixes (Optional)] + [Path Attributes] + [NLRIs].

DD2491 p Load balancing BGP. Johan Nicklasson KTHNOC/NADA

> Border Gateway Protocol (BGP-4) Technical Configuration Guide. Ethernet Routing Switch. Engineering

Application Note. Failover through BGP route health injection

ECSE-6600: Internet Protocols Exam 2

GregSowell.com. Mikrotik Routing

Based on Computer Networking, 4 th Edition by Kurose and Ross

CS 457 Lecture 19 Global Internet - BGP. Fall 2011

BGP Advanced Routing in SonicOS

Example: Advertised Distance (AD) Example: Feasible Distance (FD) Example: Successor and Feasible Successor Example: Successor and Feasible Successor

BGP Multihoming. Why Multihome? Why Multihome? Why Multihome? Why Multihome? Why Multihome? Redundancy. Reliability

JNCIA Juniper Networks Certified Internet Associate

This feature was introduced. This feature was integrated in Cisco IOS Release 12.2(11)T.

MPLS VPN. Agenda. MP-BGP VPN Overview MPLS VPN Architecture MPLS VPN Basic VPNs MPLS VPN Complex VPNs MPLS VPN Configuration (Cisco) L86 - MPLS VPN

no aggregate-address address mask [as-set] [summary-only] [suppress-map map-name] [advertise-map map-name] [attribute-map map-name]

How To Import Ipv4 From Global To Global On Cisco Vrf.Net (Vf) On A Vf-Net (Virtual Private Network) On Ipv2 (Vfs) On An Ipv3 (Vv

Monitoring and Troubleshooting BGP Neighbor Sessions

Supporting Document PPP

Load balancing and traffic control in BGP

BGP Multihoming Techniques

Active measurements: networks. Prof. Anja Feldmann, Ph.D. Dr. Nikolaos Chatzis Georgios Smaragdakis, Ph.D.

Can Forwarding Loops Appear when Activating ibgp Multipath Load Sharing?

Introduction Inter-AS L3VPN

Examination. IP routning på Internet och andra sammansatta nät, DD2491 IP routing in the Internet and other complex networks, DD2491

Today s Agenda. Note: it takes years to really master BGP Many slides stolen from Prof. Zhi-Li Zhang at Minnesota and from Avi Freedman s slides

Border Gateway Protocol (BGP-4)

Configuring BGP. The Cisco BGP Implementation

MPLS VPN Route Target Rewrite

Doing Don ts: Modifying BGP Attributes within an Autonomous System

Interdomain Routing. Outline

Effective BGP Load Balancing Using "The Metric System" A real-world guide to BGP traffic engineering

Configuring Route Maps and Policy-Based Routing

Transcription:

APNIC elearning: BGP Attributes Contact: training@apnic.net erou04_v1.0

Overview BGP Attributes Well-known and Optional Attributes AS Path AS Loop Detection ibgp and ebgp Next Hop Next Hop Best Practice BGP Origin, Local Preference, MED, and Community Attributes BGP Route Selection Process

BGP Attributes Well-known attributes must be supported by every BGP implementation Mandatory attributes must be included with every route entry. If one attribute is missing, it will result in an error message Ex: ORIGIN, AS_PATH, NEXT_HOP, LOCAL_PREF Discretionary attributes every BGP router must recognize, but they don t have to be present with every route entry Ex. ATOMIC_AGGREGATE Optional attributes not necessarily supported by all BGP implementations. It can be either transitive or non-transitive. AGGREGATOR, COMMUNITY, MULTI_EXIT_DISC

BGP Attributes BGP metrics are called path attributes. Here is the classifications BGP attributes: Well-known mandatory AS-Path Next-hop Origin Optional transitive - Community - Aggregator Well-known discretionary Local preference Atomic aggregate Optional non-transitive - Multi-exit-discriminator (MED)

Well-Known Attributes Must be recognized by all compliant BGP implementations Are propagated to other neighbors Well-Known Mandatory Attributes - Must be present in all update messages - AS Path - Next-hop - Origin Well-Known Discretionary Attributes - May be present in update messages - Local preference - Atomic aggregate

Optional Attributes Recognized by some implementations (could be private) expected not to be recognized by everyone Recognized optional attributes are propagated to other neighbors based on their meaning Optional Transitive Attributes - If not recognized, are marked as partial and propagated to other neighbors - Community - Aggregator Optional Non Transitive attributes - Discarded if not recognized - Multi Exit Discriminator (MED)

AS Path Attribute Sequence of ASes a route has traversed Used for Loop detection Path metrics where the length of the AS Path is used as in path selection

AS Path Loop Detection 180.10.0.0/16 is not accepted by AS100 as the prefix has AS100 in its AS-PATH This is loop detection in action

AS Path Attribute (2 byte and 4 byte) Internet with 16-bit and 32-bit ASNs 32-bit ASNs are 65536 and above AS-PATH length maintained

AS Path and AS4 Path Example Router5: Network Next Hop Metric LocPrf Weight Path *> 2001::/32 2406:6400:F:41::1 0 23456 38610 6939 I * i 2406:6400:D::5 0 100 0 45192 4608 4826 6939 i *> 2001:200::/32 2406:6400:F:41::1 0 23456 38610 6939 2500 i * i 2406:6400:D::5 0 100 0 45192 4608 4826 6939 2500 i

ebgp Next Hop The IP address to reach the next AS Router A advertise 150.10.0.0/16 and 160.10.0.0/16 to router B in ebgp with next hop 150.10.1.1 (Change it to own IP) Router B will update Router C in ibgp keeping the next hop unchanged Well known mandatory attribute

ibgp Next Hop Next hop is ibgp router loopback address Recursive route look-up Loopback address need to announce through IGP (OSPF) ibgp send update next-hop unchanged

Next Hop Best Practice IOS default is for external next-hop to be propagated unchanged to ibgp peers This means that IGP has to carry external next-hops Forgetting means external network is invisible With many ebgp peers, it is unnecessary extra load on IGP ISP Best Practice is to change external next-hop to be that of the local router neighbor x.x.x.x next-hop-self

Next Hop Self Configuration Next hop default behavior can be changed by using nexthop-self command Forces all updates for this neighbor to be advertised with this router as the next hop The IP address used for next-hop-self will be the same as the source IP address of the BGP packet

BGP Origin Attribute The origin attribute informs all autonomous systems how the prefix introduced into BGP Well known mandatory attribute Three values: IGP, EGP, incomplete IGP generated by BGP network statement EGP generated by EGP Incomplete redistributed from another routing protocol

BGP Origin Attribute Example Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP,? incomplete Network Next Hop Metric LocPrf Weight Path *> 2001::/32 2406:6400:F:41::1 0 23456 38610 6939 i * i 2406:6400:D::5 0 100 0 45192 4608 4826 6939 i

BGP Local Preference Attribute Local preference is used to advertise to IBGP neighbors only about how to leave their AS (Outbound Traffic). Paths with highest preference value are most desirable Local preference attribute is well-known and discretionary and is passed only within the AS Cisco Default Local Pref is 100

BGP Local Preference Attribute For destination 160.10.0.0/16 Router A advertise local pref 500 and Router B advertise local pref 800 in ibgp 800 will win best path (Router B)

BGP Local Pref Attribute Example Network Next Hop Metric LocPrf Weight Path *> 2001::/32 2406:6400:F:41::1 0 23456 38610 6939 i * i 2406:6400:D::5 0 100 0 45192 4608 4826 6939 i *> 2001:200::/32 2406:6400:F:41::1 0 23456 38610 6939 2500 i * i 2406:6400:D::5 0 100 0 45192 4608 4826 6939 2500 i

BGP MED Attribute MED is used to advertise to EBGP neighbors about how to exit their AS to reach networks owned by this AS (Incoming traffic). MED is sent to EBGP neighbors only. The paths with the lowest MED value are the most desirable The MED attribute is optional and non transitive

BGP MED Attribute For prefix 120.68.1.0/24 Router B send MED 1000 and router A send MED 2000 to ebgp neighbor Incoming traffic from AS200 will choose Router B since lowest MED will win

BGP MED Example Network Next Hop Metric LocPrf Weight Path *> 2001::/32 2406:6400:F:41::1 0 23456 38610 6939 i * i 2406:6400:D::5 0 100 0 45192 4608 4826 6939 i *> 2001:200::/32 2406:6400:F:41::1 0 23456 38610 6939 2500 i * i 2406:6400:D::5 0 100 0 45192 4608 4826 6939 2500 i

BGP Community Attribute Community is a tagging technique to mark a set of routes Upstream service provider routers can then use these flags to apply specific routing polices (i.e local preference etc) within their network Represented as two 16 bit integers (RFC1998) Common format is <local-asn>:xx I.e 0:0 to 0:65535 and 65535:0 to 65535:65535 are reserved Very useful in applying policies within and between ASes Optional & transitive attribute

BGP Route Selection Process Step 1: Prefer highest weight (local to router) Step 2: Prefer highest local preference (global within AS) Step 3: Prefer route originated by the local router Step 4: Prefer shortest AS path Step 5: Prefer lowest origin code (IGP < EGP < incomplete) Step 6: Prefer lowest MED (from other AS) Step 7: Prefer EBGP path over IBGP path Step 8: Prefer the path through the closest IGP neighbor Step 9: Prefer oldest route for EBGP paths Step 10: Prefer the path with the lowest neighbor BGP router ID

Questions Please remember to fill out the feedback form <survey-link> Slide handouts will be available after completing the survey

APNIC Helpdesk Chat

Thank you! End of Session