Technical Aspects of Peering Session 4. Overview Peering checklist/requirements Peering step by step Peering arrangements and options Exercises.

Slides:



Advertisements
Similar presentations
BGP Overview Processing BGP Routes.
Advertisements

© 2006 Cisco Systems, Inc. All rights reserved. MPLS v2.2—5-1 MPLS VPN Implementation Configuring BGP as the Routing Protocol Between PE and CE Routers.
Multi-Area OSPF Multi-area OSPF networks can be difficult to design, and typically demand more administrative attention than any other popular interior.
CCNP Network Route BGP Part -I BGP : Border Gateway Protocol. It is a distance vector protocol It is an External Gateway Protocol and basically used for.
Chapter 7 RIP Version 2 (RIPv2).
Border Gateway Protocol Ankit Agarwal Dashang Trivedi Kirti Tiwari.
© J. Liebeherr, All rights reserved 1 Border Gateway Protocol This lecture is largely based on a BGP tutorial by T. Griffin from AT&T Research.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—2-1 BGP Transit Autonomous Systems Monitoring and Troubleshooting IBGP in a Transit AS.
1 Interdomain Routing Protocols. 2 Autonomous Systems An autonomous system (AS) is a region of the Internet that is administered by a single entity and.
The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts – Chapter.
Best Practices for ISPs
CS Summer 2003 Lecture 4. CS Summer 2003 Route Aggregation The process of representing a group of prefixes with a single prefix is known as.
Presented By: Hanping Feng Configuring BGP With Cisco IOS Software (Part 1)
Routing and Routing Protocols
© 2009 Cisco Systems, Inc. All rights reserved.ROUTE v1.0—6-1 Connecting an Enterprise Network to an ISP Network Configuring and Verifying Basic BGP Operations.
MPLS L3 and L2 VPNs Virtual Private Network –Connect sites of a customer over a public infrastructure Requires: –Isolation of traffic Terminology –PE,
Lecture Week 3 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts.
WebReport/400 TCP/IP Configuration Presented by Kisco Information Systems.
Introduction to BGP 1. Border Gateway Protocol A Routing Protocol used to exchange routing information between different networks – Exterior gateway protocol.
CISCO NETWORKING ACADEMY Chabot College ELEC IP Routing Protocol Highlights.
– Chapter 4 – Secure Routing
© 2009 Cisco Systems, Inc. All rights reserved. ROUTE v1.0—6-1 Connecting an Enterprise Network to an ISP Network BGP Attributes and Path Selection Process.
Introduction to Dynamic Routing Protocol
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 6: Static Routing Routing Protocols.
BGP Border Gateway Protocol By Amir and David. What Is BGP ? Exterior gateway protocols are designed to route between autonomous systems. AS’s : A set.
Chapter 9. Implementing Scalability Features in Your Internetwork.
© Synergon Informatika Rt., 1999 Chapter 12 Connecting Enterprises to an Internet Service Provider.
© 2001, Cisco Systems, Inc. A_BGP_Confed BGP Confederations.
Copyright 2012 Kenneth M. Chipps Ph.D. Cisco CCNA Exploration CCNA 2 Routing Protocols and Concepts BGP Last Update
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 2 Single-Area OSPF.
BGP4 - Border Gateway Protocol. Autonomous Systems Routers under a single administrative control are grouped into autonomous systems Identified by a 16.
Border Gateway Protocol (BGP) W.lilakiatsakun. BGP Basics (1) BGP is the protocol which is used to make core routing decisions on the Internet It involves.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 6: Static Routing Routing and Switching Essentials.
Network Security1 Secure Routing Source: Ch. 4 of Malik. Network Security Principles and Practices (CCIE Professional Development). Pearson Education.
CCNA 2 Week 6 Routing Protocols. Copyright © 2005 University of Bolton Topics Static Routing Dynamic Routing Routing Protocols Overview.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—6-1 Scaling Service Provider Networks Scaling IGP and BGP in Service Provider Networks.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—3-1 Route Selection Using Policy Controls Filtering with Prefix-Lists.
Route Selection Using Policy Controls
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—5-1 Customer-to-Provider Connectivity with BGP Connecting a Multihomed Customer to a Single Service.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 6: Static Routing Routing Protocols.
© 2009 Cisco Systems, Inc. All rights reserved. ROUTE v1.0—6-1 Connecting an Enterprise Network to an ISP Network Lab 6-2 Debrief.
BGP Transit Autonomous System
Text BGP Basics. Document Name CONFIDENTIAL Border Gateway Protocol (BGP) Introduction to BGP BGP Neighbor Establishment Process BGP Message Types BGP.
CHAPTER 6: STATIC ROUTING Static Routing 2 nd semester
Static Routing CCNA Routing and Switching Semester 2 Chapter 6
BGP Deployment & Scalability
Instructor Materials Chapter 7: EIGRP Tuning and Troubleshooting
Connecting an Enterprise Network to an ISP Network
Scaling Service Provider Networks
Connecting an Enterprise Network to an ISP Network
BGP 1. BGP Overview 2. Multihoming 3. Configuring BGP.
Border Gateway Protocol
BGP (cont) 1. BGP Peering 2. BGP Attributes
Explaining BGP Concepts and Terminology
BGP supplement Abhigyan Sharma.
CCNA 2 v3.1 Module 6 Routing and Routing Protocols
Module Summary BGP is a path-vector routing protocol that allows routing policy decisions at the AS level to be enforced. BGP is a policy-based routing.
Chapter 3: Dynamic Routing
BGP Overview BGP concepts and operation.
Cours BGP-MPLS-IPV6-QOS
Chapter 2: Static Routing
Static Routing 1st semester
Working Principle of BGP
Scaling Service Provider Networks
CIT 384: Network Administration
Chapter 2: Scaling VLANs
Static Routing 2nd semester
Presentation transcript:

Technical Aspects of Peering Session 4

Overview Peering checklist/requirements Peering step by step Peering arrangements and options Exercises

Peering requirements BGP V4 router with enough memory to receive all routes: 256MB minimum for the global routing table 32MB for all African routes Less for just your country Portable address space (ie not received from your upstream ISPS; this space is already being advertised to peers upstream) AS Number Both obtainable from AfriNIC

Additional requirements List of prefixes that will be advertised and received from peers IP Address of each peer (including your own border router) Maximum number of hops between the BGP routers if they are not adjacent to each other eBGP multihop is not recommended, and not included in the handout

Peering step by step: Step 1 John Doe Communications wants to peer with Expert Networks. Step 1: Write down all the necessary information for each party: A: Company Name:John Doe Communications AS number:AS100 Address space: /24, /16 Border router:Cisco 2621 BGP peer address: B: Company Name:Expert Networks AS number:AS200 Address space: /23 Border router:Linux PC running Quagga BGP peer address: A:

Step 2.1 Configure a loopback interface on the router. This is necessary in order to have an BGP peer with an interface that will always be up even if some of the physical interfaces on the router go down. (Especially useful with iBGP.) interface Loopback0 ip address

Step 2.3 Define filters to advertise and receive only the routes we know about. This is very important. If this is omitted any peer can flood your routing table with bogus entries. It can also cause your router to crash if too many prefixes are accepted by your router. ! accept all prefixes smaller or equal to /24, ! but only from the address space that we know ! belongs to each AS. AS 100 is our own AS. ip prefix-list AS100 seq 5 permit /24 ip prefix-list AS100 seq 10 permit /16 le 24 ! AS200 is our peer ip prefix-list AS200 seq 5 permit /23 le 24

Step 2.4 The rest of the settings all reside in the BGP section of the configuration. Specify your AS number here. ! configure BGP sessions router BGP 100 By default BGP does not advertise a route until all routes within the AS have learned of the route through the IGP. This command enables BGP to advertise routes to peers without synchronizing the route to the IGP. no synchronization

Step 2.5 Log all changes such as BGP connections going down. These changes can be monitored by exporting the router logs to a syslog server. Most ISPs have a central log server and have technicians monitoring all events. bgp log-neighbour-changes Do not use “redistribute” commands to get routes into BGP. They make it too easy for unwanted routes to appear in your BGP tables.

Step 2.5 Add a network statement for each route that you will announce. Also add a null route for aggregates that might not already be in your IGP routing table. Without these commands no routes in our routing table would be advertised to any peers. ! ensure that the aggregate route is always present ip route null0 254 ! add your own networks to BGP router bgp 100 network mask network mask Do the above on only one router, or only a few routers in your AS, not on every router.

Step 2.6 Do not attempt to summarize routes. This command is necessary if we want to exchange classless routes (i.e. routes other than Class A, B, or C routes). no auto-summary We now set up a peering session with Expert Networks (AS 200). If there was more than one peer we would have entered similar commands for each peer. The first command specifies the AS number of the peer (also known as a neighbour). neighbour remote-as 200

Step 2.6 Add a description. If there are many neighbours defined, it is useful to find the appropriate neighbour when configuration changes have to be made by looking at these descriptions. neighbour description Expert Networks

Step 2.7 This command instructs the router to set the gateways for all routes added to the routing table to itself. Always enable this when peering with other autonomous systems. neighbour next-hop-self

Step 2.8 Instruct the router to store received updates. This allows us to update a BGP session without having to restart the session. neighbour soft-reconfiguration inbound This uses extra memory. In IOS 12 or later, you can get the same benefits using the BGP route refresh capability instead of using memory. Use “show ip bgp neighbor x.x.x.x”

Step 2.8 Only advertise and accept routes allowed by our filters to prevent flooding of our routing table. neighbour prefix-list AS100 out neighbour prefix-list AS200 in

Step 3: Verify The following commands can be used to diagnose problems with your BGP configuration: ! show a summary of peering sessions show ip bgp summary ! show neighbour details show ip bgp neighbours ! show routes received from neighbours show ip bgp ! show routes received from neighbour show ip bgp neighbours received-routes show ip bgp neighbours routes ! show routes advertised to neighbour show ip bgp neighbours advertised-routes ! show all routes known via all protocols show ip route

Option 1: Mandatory multi-lateral peering All IXP participants peer with a central route server. This forces all to peer with all and reduces the number of peering sessions that has to be maintained by each peer. A central route server != a route reflector!! Route reflectors used within iBGP to eliminate the need for a fully meshed network.

Option 1: Mandatory multi-lateral peering Advantages Automatic peering with all - easy Complexity is centralised – easy for ISPs Easy to connect – only one BGP session Disadvantages Forced peering with all - inflexible Complexity is centralised – hard for IXP operator Complex policies are impossible

Option 2: Bilateral peering Option 1 doesn’t scale well: Some IXPs let all participants negotiate their own arrangements. This mesh network scales well, but it takes a lot more work by each ISP. If some participants choose not to peer with each other, then there will be a partial mesh instead of a full mesh.

Option 2: Bilateral peering Advantages Choose who to peer with or not All routers are managed by ISPs, not by IXP operator Complex policies are possible Disadvantages Non-peering may cause inefficient routing ISP router config becomes complex Difficult for new participant to connect

Option 3: Hybrid It is possible to have both models operating simultaneously at an IXP, with some ISPs peering with the central route server and the others manually configuring their routers for bilateral peering with selected peers. Not the most desirable! But can develop eg. if very large and very small ISPs are part of the same IXP – gives control over business relationships. One option is to start with a single central route server and multi-lateral peering, and allow bi-lateral peering to be added later.

Exercise 1 Several ISPs Each ISP has a router at HQ, linked to upstream provider Each ISP adds a new router at exchange point (XP), connected to HQ router Start using iBGP between HQ and XP Not yet peering with other ISPs

Exercise 2 Follows on from exercise 1 Each ISP starts BGP peering with all others (bi-lateral peering)

Exercise 3 Follows on from exercise 1 Undo part of exercise 2 first Each ISP starts BGP peering with a route server (multilateral peering)