Border Gateway Protocol

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

Using the Border Gateway Protocol for Interdomain Routing

Exterior Gateway Protocols (BGP)

APNIC elearning: BGP Attributes

BGP Router Startup Message Flow

Border Gateway Protocol BGP4 (2)

Border Gateway Protocol (BGP)

How To Understand Bg

Router and Routing Basics

BGP Best Path Selection Algorithm

BGP4 Case Studies/Tutorial

Introduction to Dynamic Routing Protocols

Distance Vector Routing Protocols. Routing Protocols and Concepts Ola Lundh

BGP overview BGP operations BGP messages BGP decision algorithm BGP states

Inter-domain Routing. Outline. Border Gateway Protocol

Routing in Small Networks. Internet Routing Overview. Agenda. Routing in Large Networks

Configuring BGP. Cisco s BGP Implementation

Configuring a Gateway of Last Resort Using IP Commands

CS551 External v.s. Internal BGP

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

OSPF Configuring Multi-Area OSPF

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

BGP Attributes and Path Selection

Understanding Route Aggregation in BGP

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

Chapter 4. Distance Vector Routing Protocols

Internet inter-as routing: BGP

Gateway of last resort is to network

Lecture 18: Border Gateway Protocol"

Multihomed BGP Configurations

Understanding Route Redistribution & Filtering

Routing Protocol - BGP

ITRI CCL. IP Routing Primer. Paul C. Huang, Ph.D. ITRI / CCL / N300. CCL/N300; Paul Huang 1999/6/2 1

Administrative Distance

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

Route Discovery Protocols

O /27 [110/129] via , 00:00:05, Serial0/0/1

Routing Protocols. Interconnected ASes. Hierarchical Routing. Hierarchical Routing

Dove siamo? Architecture of Dynamic Routing

Routing with OSPF. Introduction

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

Internet Firewall CSIS Packet Filtering. Internet Firewall. Examples. Spring 2011 CSIS net15 1. Routers can implement packet filtering

Objectives. Router as a Computer. Router components and their functions. Router components and their functions

Route Optimization. rek Petr Grygarek, VSB-TU Ostrava, Routed and Switched Networks 1

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

BGP. 1. Internet Routing

Introduction to TCP/IP

Can Forwarding Loops Appear when Activating ibgp Multipath Load Sharing?

Table of Contents. Cisco How Does Load Balancing Work?

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

IK2205 Inter-domain Routing

Internet inter-as routing: BGP

HP Networking BGP and MPLS technology training

- IGRP - IGRP v1.22 Aaron Balchunas

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

6.263 Data Communication Networks

Configuring Route Maps and Policy-Based Routing

Border Gateway Protocol, Route Manipulation, and IP Multicast

BGP1 Multihoming and Traffic Engineering

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

Border Gateway Protocol (BGP-4)

- Border Gateway Protocol -

Table of Contents. Cisco Configuring a Basic MPLS VPN

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

Layer 3 Routing User s Manual

APNIC elearning: BGP Basics. Contact: erou03_v1.0

basic BGP in Huawei CLI

IP Routing Configuring RIP, OSPF, BGP, and PBR

Internet Control Message Protocol (ICMP)

BGP: Frequently Asked Questions

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

E : Internet Routing

A Case Study Design of Border Gateway Routing Protocol Using Simulation Technologies

OSPF Version 2 (RFC 2328) Describes Autonomous Systems (AS) topology. Propagated by flooding: Link State Advertisements (LSAs).

- Route Redistribution -

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

CSC458 Lecture 6. Homework #1 Grades. Inter-domain Routing IP Addressing. Administrivia. Midterm will Cover Following Topics

Link-State Routing Protocols

Configuring RIP. Overview. Routing Update Process CHAPTER

Outline. Internet Routing. Alleviating the Problem. DV Algorithm. Routing Information Protocol (RIP) Link State Routing. Routing algorithms

- Classful vs. Classless Routing -

Routing Protocols (RIP, OSPF, BGP)

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

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

Interdomain Routing. Project Report

Advanced BGP Policy. Advanced Topics

The Internet. Internet Technologies and Applications

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

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

Notice the router names, as these are often used in MPLS terminology. The Customer Edge router a router that directly connects to a customer network.

A Study of the interaction of BGP/OSPF in Zebra/ZebOS/Quagga

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

GregSowell.com. Mikrotik Routing

Textbook Required: Cisco Networking Academy Program CCNP: Building Scalable Internetworks v5.0 Lab Manual.

VLSM and CIDR Malin Bornhager Halmstad University

Peering Planning Cooperation: Failover Matrices

Understanding Virtual Router and Virtual Systems

MPLS VPN Route Target Rewrite

How To Make A Full Autonomous System Work

Internet Protocol version 4 Part I

Transcription:

39 HPTER hapter Goals Understand the purpose of the. Explain GP attributes and their use in route selection. Examine the GP route selection process. Introduction The (GP) is an interautonomous system routing protocol. n autonomous system is a network or group of networks under a common administration and with common routing policies. GP is used to exchange routing information for the Internet and is the protocol used between Internet service providers (ISP). ustomer networks, such as universities and corporations, usually employ an Interior Gateway Protocol (IGP) such as RIP or OSPF for the exchange of routing information within their networks. ustomers connect to ISPs, and ISPs use GP to exchange customer and ISP routes. When GP is used between autonomous systems (S), the protocol is referred to as External GP (EGP). If a service provider is using GP to exchange routes within an S, then the protocol is referred to as Interior GP (IGP). Figure 39-1 illustrates this distinction. 39-1

GP ttributes hapter 39 Figure 39-1 External and Interior GP National ISP IGP S 3 Regional ISP S 1 Regional ISP S 2 ustomer 1 ustomer 2 ustomer 3 ustomer 4 GP is a very robust and scalable routing protocol, as evidenced by the fact that GP is the routing protocol employed on the Internet. t the time of this writing, the Internet GP routing tables number more than 90,000 routes. To achieve scalability at this level, GP uses many route parameters, called attributes, to define routing policies and maintain a stable routing environment. In addition to GP attributes, classless interdomain routing (IR) is used by GP to reduce the size of the Internet routing tables. For example, assume that an ISP owns the IP address block 195.10.x.x from the traditional lass address space. This block consists of 256 lass address blocks, 195.10.0.x through 195.10.255.x. ssume that the ISP assigns a lass block to each of its customers. Without IR, the ISP would advertise 256 lass address blocks to its GP peers. With IR, GP can supernet the address space and advertise one block, 195.10.x.x. This block is the same size as a traditional lass address block. The class distinctions are rendered obsolete by IR, allowing a significant reduction in the GP routing tables. GP neighbors exchange full routing information when the TP connection between neighbors is first established. When changes to the routing table are detected, the GP routers send to their neighbors only those routes that have changed. GP routers do not send periodic routing updates, and GP routing updates advertise only the optimal path to a destination network. GP ttributes Routes learned via GP have associated properties that are used to determine the best route to a destination when multiple paths exist to a particular destination. These properties are referred to as GP attributes, and an understanding of how GP attributes influence route selection is required for the design of robust networks. This section describes the attributes that GP uses in the route selection process: Weight Local preference Multi-exit discriminator Origin 39-2

hapter 39 GP ttributes S_path Next hop ommunity Weight ttribute Weight is a isco-defined attribute that is local to a router. The weight attribute is not advertised to neighboring routers. If the router learns about more than one route to the same destination, the route with the highest weight will be preferred. In Figure 39-2, Router is receiving an advertisement for network 172.16.1.0 from routers and. When Router receives the advertisement from Router, the associated weight is set to 50. When Router receives the advertisement from Router, the associated weight is set to 100. oth paths for network 172.16.1.0 will be in the GP routing table, with their respective weights. The route with the highest weight will be installed in the IP routing table. Figure 39-2 GP Weight ttribute S 200 Preferred route Set weight = 50 Set weight = 100 S 100 Local Preference ttribute The local preference attribute is used to prefer an exit point from the local autonomous system (S). Unlike the weight attribute, the local preference attribute is propagated throughout the local S. If there are multiple exit points from the S, the local preference attribute is used to select the exit point for a specific route. In Figure 39-3, S 100 is receiving two advertisements for network 172.16.1.0 from S 200. When Router receives the advertisement for network 172.16.1.0, the corresponding local preference is set to 50. When Router receives the advertisement for network 172.16.1.0, the corresponding local preference is set to 100. These local preference values will be exchanged between routers and. ecause Router has a higher local preference than Router, Router will be used as the exit point from S 100 to reach network 172.16.1.0 in S 200. 39-3

GP ttributes hapter 39 Figure 39-3 GP Local Preference ttribute S 200 Preferred route Set Local Pref = 50 S 100 Set Local Pref = 100 Multi-Exit iscriminator ttribute The multi-exit discriminator (ME) or metric attribute is used as a suggestion to an external S regarding the preferred route into the S that is advertising the metric. The term suggestion is used because the external S that is receiving the MEs may be using other GP attributes for route selection. We will cover the rules regarding route selection in the next section. In Figure 39-4, Router is advertising the route 172.16.1.0 with a metric of 10, while Route is advertising 172.16.1.0 with a metric of 5. The lower value of the metric is preferred, so S 100 will select the route to router for network 172.16.1.0 in S 200. MEs are advertised throughout the local S. Origin ttribute The origin attribute indicates how GP learned about a particular route. The origin attribute can have one of three possible values: IGP The route is interior to the originating S. This value is set when the network router configuration command is used to inject the route into GP. EGP The route is learned via the Exterior (EGP). Incomplete The origin of the route is unknown or learned in some other way. n origin of incomplete occurs when a route is redistributed into GP. The origin attribute is used for route selection and will be covered in the next section. 39-4

hapter 39 GP ttributes Figure 39-4 GP Multi-Exit iscriminator ttribute S 200 with ME = 10 Preferred route with ME = 5 Set Local Pref = 50 S 100 Set Local Pref = 100 S_path ttribute When a route advertisement passes through an autonomous system, the S number is added to an ordered list of S numbers that the route advertisement has traversed. Figure 39-5 shows the situation in which a route is passing through three autonomous systems. S1 originates the route to 172.16.1.0 and advertises this route to S 2 and S 3, with the S_path attribute equal to {1}. S 3 will advertise back to S 1 with S-path attribute {3,1}, and S 2 will advertise back to S 1 with S-path attribute {2,1}. S 1 will reject these routes when its own S number is detected in the route advertisement. This is the mechanism that GP uses to detect routing loops. S 2 and S 3 propagate the route to each other with their S numbers added to the S_path attribute. These routes will not be installed in the IP routing table because S 2 and S 3 are learning a route to 172.16.1.0 from S 1 with a shorter S_path list. Next-Hop ttribute The EGP next-hop attribute is the IP address that is used to reach the advertising router. For EGP peers, the next-hop address is the IP address of the connection between the peers. For IGP, the EGP next-hop address is carried into the local S, as illustrated in Figure 39-6. 39-5

GP ttributes hapter 39 Figure 39-5 GP S-path ttribute S_path 2,1 Reject the route S_path 1 S 1 S 2 Reject the route S_path 3,1 S_path 1 S_path 3,1 S_path 2,1 S 3 Figure 39-6 GP Next-Hop ttribute S 200 10.1.1.1 Next hop 10.1.1.1 10.1.1.2 Next hop 10.1.1.1 10.1.2.1 10.1.2.2 S 100 Router advertises network 172.16.1.0 with a next hop of 10.1.1.1. When Router propagates this route within its own S, the EGP next-hop information is preserved. If Router does not have routing information regarding the next hop, the route will be discarded. Therefore, it is important to have an IGP running in the S to propagate next-hop routing information. 39-6

hapter 39 GP ttributes ommunity ttribute The community attribute provides a way of grouping destinations, called communities, to which routing decisions (such as acceptance, preference, and redistribution) can be applied. Route maps are used to set the community attribute. Predefined community attributes are listed here: no-export o not advertise this route to EGP peers. no-advertise o not advertise this route to any peer. internet this route to the Internet community; all routers in the network belong to it. Figure 39-7 illustrates the no-export community. S 1 advertises 172.16.1.0 to S 2 with the community attribute no-export. S 2 will propagate the route throughout S 2 but will not send this route to S 3 or any other external S. Figure 39-7 GP no-export ommunity ttribute ommunity=no Export S 1 S 2 ommunity=no Export S 3 In Figure 39-8, S 1 advertises 172.16.1.0 to S 2 with the community attribute no-advertise. Router in S 2 will not advertise this route to any other router. 39-7

GP Path Selection hapter 39 Figure 39-8 GP no-advertise ommunity ttribute ommunity=no S 1 S 2 S 3 Figure 39-9 demonstrates the internet community attribute. There are no limitations to the scope of the route advertisement from S 1. Figure 39-9 GP internet ommunity ttribute ommunity=internet S 1 S 2 ommunity=internet ommunity=internet S 3 GP Path Selection GP could possibly receive multiple advertisements for the same route from multiple sources. GP selects only one path as the best path. When the path is selected, GP puts the selected path in the IP routing table and propagates the path to its neighbors. GP uses the following criteria, in the order presented, to select a path for a destination: If the path specifies a next hop that is inaccessible, drop the update. 39-8

hapter 39 Review Questions Prefer the path with the largest weight. If the weights are the same, prefer the path with the largest local preference. If the local preferences are the same, prefer the path that was originated by GP running on this router. If no route was originated, prefer the route that has the shortest S_path. If all paths have the same S_path length, prefer the path with the lowest origin type (where IGP is lower than EGP, and EGP is lower than incomplete). If the origin codes are the same, prefer the path with the lowest ME attribute. If the paths have the same ME, prefer the external path over the internal path. If the paths are still the same, prefer the path through the closest IGP neighbor. Prefer the path with the lowest IP address, as specified by the GP router I. Review Questions Q an IGP be used in place of an IGP (RIP, IGRP, EIGRP, OSPF, or ISIS)? Yes and no. Remember that the next-hop information from EGP is carried into IGP. If IGP does not have a route to reach the next hop, then the route will be discarded. Typically an IGP needs to be used to exchange routes to the next hop, but this can be achieved by using static routes on all the routers running IGP. So, the answer is yes if you want to use and maintain static routes. Otherwise, the answer is no. Q ssume that a GP router is learning the same route from two different EGP peers. The S_path information from peer 1 is {2345,86,51}, and the S_path information from peer 2 is {2346,51}. What GP attributes could be adjusted to force the router to prefer the route advertised by peer 1? Weight and local preference. oth have a higher preference than S_path length. Q an GP be used only by Internet service providers? No. GP can be used to scale large enterprise networks. large network can be divided into segments, with each segment running an IGP. Routing information between segments could then be exchanged using GP. Q If a directly connected interface is redistributed into GP, what value will the origin attribute have for this route? ny redistributed route will have an origin of incomplete. For More Information RF 1771, GP4 Halabi, assam. Internet Routing rchitectures. isco Press: Indianapolis, 1997. Parkhurst, William R., and avid R. Jackson. Practical GP for Internet Routing. isco Press: Indianapolis, in press. GP4 ase Studies/Tutorial Section 1, http://www.cisco.com/warp/customer/459/13.html GP4 ase Studies/Tutorial Section 2, http://www.cisco.com/warp/customer/459/14.html GP4 ase Studies/Tutorial Section 3, http://www.cisco.com/warp/customer/459/15.html 39-9

For More Information hapter 39 GP4 ase Studies/Tutorial Section 4, http://www.cisco.com/warp/customer/459/16.html GP4 ase Studies/Tutorial Section 5, http://www.cisco.com/warp/customer/459/17.html 39-10