Presentation is loading. Please wait.

Presentation is loading. Please wait.

Routing Between Peers (BGP) Chapter 14. Routing Update Protocol Scope Routing update protocol was used when Internet had single backbone Worked ok for.

Similar presentations


Presentation on theme: "Routing Between Peers (BGP) Chapter 14. Routing Update Protocol Scope Routing update protocol was used when Internet had single backbone Worked ok for."— Presentation transcript:

1 Routing Between Peers (BGP) Chapter 14

2 Routing Update Protocol Scope Routing update protocol was used when Internet had single backbone Worked ok for that Worked ok for that Scheme does not scale Additional router traffic as number of sites grows Additional router traffic as number of sites grows Internet routers cannot communicate directly Internet routers cannot communicate directly Do not share a common network Networks owned & managed by independent groups Networks owned & managed by independent groups

3 Summary: Although it is desirable for routers to exchange routing information, it is impractical for all routers in an arbitrarily large internet to participate in a single routing update protocol. Although it is desirable for routers to exchange routing information, it is impractical for all routers in an arbitrarily large internet to participate in a single routing update protocol.

4 Practical Limit on Group Size How large is “too large”? Answer depends on: Answer depends on: Algorithm being used to exchange information Capacity of the network Details of routing protocol Two issues: Two issues:DelayOverhead

5 Delay Look at Distance-Vector protocol Look at Distance-Vector protocol To inform about a change Router receives new information Router receives new information Updates routing table Updates routing table Forwards information to neighbors Forwards information to neighbors In an internet with N routers in a linear topology N steps are required N steps are required N must be limited for rapid distribution of info Overhead More routers means more traffic More routers means more traffic Size of messages can grow as routers and networks increase Size of messages can grow as routers and networks increase Size of messages must be limited Otherwise, routing traffic not small % of total traffic

6 Most managers follow simple heuristic For WAN For WAN Allow a dozen routers to participate in single routing information protocol For LAN For LAN Approximately five times as many can participate General rule; many exceptions Internet is not static Internet is not static May implement traffic monitoring scheme May implement traffic monitoring scheme Listens to network and records statistics Network utilization; packets carrying routing messages Network utilization; packets carrying routing messages

7 Extra Hops Must limit routers that participate in a single routing protocol Has consequences Has consequences Some routers will be outside the group Outsider could make a member a default Like core/noncore router scheme Routing will be suboptimal Routing will be suboptimal Do not even need a large number of routers for this Do not even need a large number of routers for this

8 Suppose default for R 3 is R 1 Suppose default for R 3 is R 1 Will have non-optimal route to R 2 Cannot use ICMP redirect (only goes to source) Extra hop problem Extra hop problem Works correctly but is inefficient Non-participating routers must learn from participating routers Non-participating routers must learn from participating routers Figure 14.1

9 Autonomous System Concept Just looking at mechanics of routing What are the administrative issues? What are the administrative issues? Take a different viewpoint Take a different viewpoint Do not think of as multiple independent networks There is a single administrative authority for all Keep internal routes consistent and viable Keep internal routes consistent and viable Pick machine to tell outside about networks inside Pick machine to tell outside about networks inside

10 Autonomous System Group of networks and routers controlled by a single administrative authority Group of networks and routers controlled by a single administrative authority Inside AS, routers have freedom Choose own methods of propagating, discovering, validating, and checking consistency or routes Each assigned an autonomous system number Each assigned an autonomous system number When routers in two ASs exchange routing information, they learn each other’s number Each large ISP is considered an AS Each large ISP is considered an AS Routing between major ISPs is really routing among autonomous systems

11 Exterior Gateway Protocol EGP Any protocol passing reachability info between autonomous systems Any protocol passing reachability info between autonomous systems Currently most TCP/IP internets use BGP Currently most TCP/IP internets use BGP Border Gateway Protocol Four versions; current is BGP-4 (what we will use) Each AS designates a router to speak BGP Usually select router near “edge” of the AS Usually select router near “edge” of the AS Hence term border gateway or border router Hence term border gateway or border router

12 Figure 14.2

13 BGP Characteristics BGP is unusual Neither pure distance-vector or pure link state Neither pure distance-vector or pure link stateCharacteristics Inter-Autonomous System Communication Inter-Autonomous System Communication Designed for one AS to talk to another Coordination Among Multiple BGP Speakers Coordination Among Multiple BGP Speakers AS may have multiple routers talking to outside AS BGP can coordinate among the routers Ensures consistent information propagated

14 Propagation of Reachability Information Propagation of Reachability Information Allows AS to advertise destination reachable in it or through it AS learns such information from other AS Next-hop Paradigm Next-hop Paradigm Supply next hop info for each destination (like DV) Policy Support Policy Support DV protocols advertise exactly the routing table info BGP can implement policies from local administrator Distinguish between destinations reachable by systems in its AS versus those advertised to other ASs

15 Reliable Transport Reliable Transport Unusual: assumes reliable transport Thus, uses TCP for all communication Path Information Path Information Does more than specify destinations and next hop Includes path information Allows receiver to learn a series of ASs along a path Incremental Updates Incremental Updates Conserves bandwidth Not pass all information in each update message Exchange full information once Successive messages carry incremental changes

16 Support for Classless Addressing Support for Classless Addressing Supports CIDR addressing Non-self identifying addresses; passes mask, too Route Aggregation Route Aggregation Conserves bandwidth Send single entry to represent multiple, related destinations Authentication Authentication Receiver can authenticate messages Allows verification of a sender

17 BGP Functionality and Message Types BGP performs 3 basic functions Initial peer acquisition and authentication Initial peer acquisition and authentication Peers establish TCP connection Each side sends pos/neg reachability info Each side sends pos/neg reachability info Advertise reachable: send next hop info Declare one or more previous destinations unreachable Ongoing verification that connections functioning correctly Ongoing verification that connections functioning correctly

18 Figure 14.3 The five basic message types in BGP

19 16-octet MARKER field marks beginning of msgs 2-octet LENGTH field is total msg length in octets Min size: 19 octets (no data); max size: 4096 octets Min size: 19 octets (no data); max size: 4096 octets 1-octet TYPE field is one of the five types Figure 14.4

20 BGP OPEN Message Sent when peers establish TCP connection Declare autonomous system number Declare autonomous system number Establish other operating parameters Establish other operating parameters Contains header plus: Contains header plus: Value for hold timer Max # seconds between receipt of 2 successive messages Max # seconds between receipt of 2 successive messages

21 VERSION is protocol version (4) HOLD TIME is time to wait for a message from sender Receiver has timer; if expires, assumes sender no longer available Receiver has timer; if expires, assumes sender no longer available IDENTIFER is IP address (must pick one if have multiple) Last field optional Authentication, capability negotiation, future: larger AS #’s Authentication, capability negotiation, future: larger AS #’s Get OPEN, send KEEPALIVE, then exchange info Figure 14.5

22 BGP UPDATE Message OPEN and ACK, then exchange info After peers create TCP connection After peers create TCP connection Use UPDATE to advertise New destinations that are reachable New destinations that are reachable Withdraw previous advertisements Withdraw previous advertisements

23 Two parts: withdrawn destinations and new destinations Length fields specify size of fields that follow If no destinations for that part, length is zero If no destinations for that part, length is zero Discuss path attributes soon…. Figure 14.6 Figure 14.6

24 Compressed Mask-Address Pairs New and withdrawn destination fields contain a list of IP addresses Have to accommodate classless addressing Need address mask as well Need address mask as well BGP uses compressed representation Does not actually send a bit mask Does not actually send a bit mask Reduces message size Reduces message size

25 Mask info encoded in single octet preceding address Contains integer; specifies number of bits in the mask Contains integer; specifies number of bits in the mask Mask bits are assumed to be contiguous Mask bits are assumed to be contiguous Address only contains octets covered by the mask LEN 8 or less: one address octet follows LEN 8 or less: one address octet follows 9 to 16: two; 17 to 24: three; 25 to 32: four 9 to 16: two; 17 to 24: three; 25 to 32: four LEN can be zero LEN can be zero No address octet follows – corresponds to default route Figure 14.7 Figure 14.7

26 BGP Path Attributes BGP not pure distance-vector protocol Advertises more than next hop Advertises more than next hop Additional info is in the path attributes field Can specify: Can specify: Next hop for advertised destinations List of autonomous systems along the destination path Whether path info learned from other AS or derived from within sender’s AS

27 Path attributes apply to all destinations in msg If need different attributes for some destinations, must send separate update message If need different attributes for some destinations, must send separate update message Path attributes important for 3 reasons Allows receiver to check for routing loops Allows receiver to check for routing loops Sender can specify exact path thru ASs to destination If any AS appears twice, there is a loop Allows receiver to implement policy constraints Allows receiver to implement policy constraints Ex: not want to send thru untrusted AS Allows receiver to know source of all routes Allows receiver to know source of all routes Info from inside AS or another AS Collected by exterior, or interior, gateway protocol

28 Path attributes field contains list of items Each item consists of triple: Each item consists of triple: (type, length, value) Type is 2 octets Length field 1 or 2 octets Type field used to get size of length field; length field used to get size of value field Variable field sizes minimize space needed Variable field sizes minimize space needed

29 Figure 14.8 (a) The two-octet type field that appears before each BGP attribute path item, and (b) the meaning of each flag bit. Figure 14.9 The BGP attribute type codes and the meaning of each.

30 BGP KEEPALIVE Message Peers periodically exchange KEEPALIVE msgs Test network connectivity Test network connectivity Verify both peers still functioning Verify both peers still functioning Message is only header; no data Total size is 19 octets Total size is 19 octets

31 Reasons for KEEPALIVE messages Using TCP Using TCP TCP does not continually test endpoints TCP will report if cannot deliver message Conserve bandwidth Conserve bandwidth Used to exchange routing info for connectivity test Large routing messages wasted bandwidth Recall hold timer Maximum time to wait without receiving a msg Maximum time to wait without receiving a msg Hold timer can be zero Hold timer can be zero Means no KEEPALIVE messages used If greater than zero If greater than zero KEEPALIVE interval should be 1/3 of hold timer KEEPALIVE interval will never be less than 1 second Nonzero hold timer cannot be less than three seconds Nonzero hold timer cannot be less than three seconds

32 Information from the Receiver’s Perspective An Exterior Gateway Protocol must do more than propagate routing information Must make sure info is correct from outside view Must make sure info is correct from outside view Two issues Two issuesPolicy Router inside AS may be able to reach destinations that outside routers are prohibited from reaching Router inside AS may be able to reach destinations that outside routers are prohibited from reaching Optimal routes Router must advertise next hop that is optimal from the outsider’s perspective Router must advertise next hop that is optimal from the outsider’s perspective

33 R 2 must report reachability to networks 1 through 4 Next hop: Net 1 thru R 1 ; Net 3 & 4 thru R 3 ; Net 2 thru R 2 Figure 14.10Example of an autonomous system. Router R 2 runs BGP and reports information from the outsider’s perspective, not from its own routing table.

34 Key Restriction of EGPs Seen that exterior protocols may advertise a subset of the networks they can reach More fundamental limitation imposed on exterior routing: They cannot communicate or interpret distance They cannot communicate or interpret distance Even if the distance metrics are available Even if the distance metrics are available

35 Cannot transmit or compare route costs Unless the routes come from within same AS Unless the routes come from within same AS See why BGP labels origin of routing info See why BGP labels origin of routing info Get advertisement from two different ASs Have no way to compare the costs of the two Advertisement only says that an AS provides a path BGP cannot be used as a routing algorithm Router may learn of two paths to same network Router may learn of two paths to same network Cannot know which is shorter Cannot know which is shorter No info about cost of routes across intermediate ASs BGP is reachability protocol, not routing protocol BGP is reachability protocol, not routing protocol

36 AS does not include distance metric in info Must only advertise routes traffic should follow Must only advertise routes traffic should follow Receiver can implement policy constraints Receiver can implement policy constraints But cannot choose a least cost route Restriction has surprising consequences

37 1. BGP does not provide for simultaneous use of multiple paths Can advertise multiple paths to a given network But all traffic from one AS to another takes one path But all traffic from one AS to another takes one path Outside AS use only one return path even if source divides traffic among two or more paths Delay and throughput between pair is asymetric Delay and throughput between pair is asymetric 2. BGP does not support load sharing on routers between arbitrary autonomous systems Two ASs may have multiple routers connecting them Would like to balance traffic among the routers BGP only allows dividing the load by network ASs can partition themselves into multiple subsets ASs can partition themselves into multiple subsets Does not support more general load sharing

38 3.If two or more WANs are interconnected at multiple points, BGP alone is inadequate for optimal routing –Special case of #2 –Managers must manually configure which networks are advertised by each exterior router 4.Must have agreement on consistent scheme for advertising reachability –All autonomous systems must agree –BGP alone will not guarantee global consistency

39 Internet Routing Architecture Routing information must be globally consistent Individual protocols may not guarantee Individual protocols may not guarantee Such as BGP Only handles exchange between pairs of routers Originally, core systems guaranteed consistency Originally, core systems guaranteed consistency At any time, had exactly one path to each destination Cores went away Cores went away No single mechanism available as a replacement No central mechanism to validate routes and guarantee global consistency

40 Current routing architecture Major ISPs connect to the Internet at Network Access Points (NAP) Major ISPs connect to the Internet at Network Access Points (NAP) Also known as Internet Exchange Points (IXPs) Engage in private peering Relationship is upstream, downstream, or transit Relationship is upstream, downstream, or transit Use Routing Registries Helps assure routes are valid Helps assure routes are valid Holds info about which ISPs own which blocks of addresses Holds info about which ISPs own which blocks of addresses But, many exist; no way to validate the registries But, many exist; no way to validate the registries Black holes happen Given address is not reachable from all parts of Internet Given address is not reachable from all parts of Internet Routing cannot be flawless without a centralized, authoritative registry

41 BGP Notification Message NOTIFICATION messages are used for control or when errors occur Errors are permanent Errors are permanent Sends NOTIFICATION message, closes TCP connection Sends NOTIFICATION message, closes TCP connection

42 Figure Figure Figure Figure 14.12

43 Figure Figure 14.13

44 Summary Routers must be partitioned into groups Else volume of routing traffic intolerable Else volume of routing traffic intolerable Connected Internet composed of ASs Connected Internet composed of ASs Each AS has single administrative authority AS must advertise reachability information Border Gateway Protocol (BGP) Most widely used EGP Most widely used EGP 5 message types (open, update, notification, keepalive, refresh) 5 message types (open, update, notification, keepalive, refresh) Uses TCP, but has keepalive mechanism Uses TCP, but has keepalive mechanism

45 Each ISP assigned to separate AS Main boundary among ASs occur at IXP Main boundary among ASs occur at IXP Peering occurs at these points ISP uses BGP to communicate with peers ISP uses BGP to communicate with peers Advertise reachability of networks that can be reached through it Learn about networks in other ISPs Routing registries exist Routing registries exist Aid in validating advertisements Problems can still occur because of no centralized, authoritative control


Download ppt "Routing Between Peers (BGP) Chapter 14. Routing Update Protocol Scope Routing update protocol was used when Internet had single backbone Worked ok for."

Similar presentations


Ads by Google