Introduction to BGP. Cisco ISP Workshops. 2003, Cisco Systems, Inc. All rights reserved.

Size: px
Start display at page:

Download "Introduction to BGP. Cisco ISP Workshops. 2003, Cisco Systems, Inc. All rights reserved."

Transcription

1 Introduction to BGP Cisco ISP Workshops 1

2 Border Gateway Protocol Routing Protocol used to exchange routing information between networks exterior gateway protocol RFC1771 work in progress to update draft-ietf-idr-bgp4-18.txt Currently Version 4 Runs over TCP Cisco ISP Workshops 2

3 BGP Path Vector Protocol Incremental Updates Many options for policy enforcement Classless Inter Domain Routing (CIDR) Widely used for Internet backbone Autonomous systems Cisco ISP Workshops 3

4 Path Vector Protocol BGP is classified as a path vector routing protocol (see RFC 1322) A path vector protocol defines a route as a pairing between a destination and the attributes of the path to that destination / i AS Path Cisco ISP Workshops 4

5 Path Vector Protocol AS6337 AS11268 AS7018 AS500 AS6461 AS600 Cisco ISP Workshops 5

6 Definitions Transit carrying traffic across a network, usually for a fee Peering exchanging routing information and traffic Default where to send traffic when there is no explicit match in the routing table Cisco ISP Workshops 6

7 Default Free Zone The default free zone is made up of Internet routers which have explicit routing information about the rest of the Internet, and therefore do not need to use a default route. Cisco ISP Workshops 7

8 Peering and Transit example provider A IXP- West Backbone Provider D IXP-East provider B A and B can peer, but need transit arrangements with D to get packets to/from C provider C Cisco ISP Workshops 8

9 Autonomous System (AS) AS 100 Collection of networks with same routing policy Single routing protocol Usually under single ownership, trust and administrative control Cisco ISP Workshops 9

10 Demarcation Zone (DMZ) A DMZ Network AS 100 AS 101 C B D E AS 102 Shared network between ASes Cisco ISP Workshops 10

11 BGP Basics Peering A C AS 100 AS 101 B D BGP speakers are called peers E AS 102 Cisco ISP Workshops 11

12 BGP General Operation Learns multiple paths via internal and external BGP speakers Picks the best path and installs in the forwarding table Policies applied by influencing the best path selection Cisco ISP Workshops 12

13 Constructing the Forwarding Table BGP in process receives path information from peers results of BGP path selection placed in the BGP table best path flagged BGP out process announces best path information to peers Best paths installed in forwarding table if: prefix and prefix length are unique lowest protocol distance Cisco ISP Workshops 13

14 Constructing the Forwarding Table in everything BGP in process discarded accepted bgp peer BGP table forwarding table out best paths BGP out process Cisco ISP Workshops 14

15 External BGP Peering (ebgp) A AS 100 AS 101 C B Between BGP speakers in different AS Should be directly connected Do not run an IGP between ebgp peers Cisco ISP Workshops 15

16 Configuring External BGP Router A in AS100 interface ethernet 5/0 ip address router bgp 100 network mask neighbor remote-as 101 neighbor prefix-list RouterC-in in neighbor prefix-list RouterC-out out Router C in AS101 interface ethernet 1/0/0 ip address router bgp 101 network mask neighbor remote-as 100 neighbor prefix-list RouterA-in in neighbor prefix-list RouterA-out out Cisco ISP Workshops 16

17 Internal BGP (ibgp) BGP peer within the same AS Not required to be directly connected ibgp speakers need to be fully meshed they originate connected networks they do not pass on prefixes learned from other ibgp speakers Cisco ISP Workshops 17

18 Internal BGP Peering (ibgp) A AS 100 B D Topology independent Each ibgp speaker must peer with every other ibgp speaker in the AS E Cisco ISP Workshops 18

19 Peering to Loop-back Address AS 100 Peer with loop-back address Cisco ISP Workshops Loop-back interface does not go down ever! ibgp session is not dependent on state of a single interface ibgp session is not dependent on physical topology 19

20 Configuring Internal BGP Router A interface loopback 0 ip address router bgp 100 network neighbor remote-as 100 neighbor update-source loopback0 neighbor remote-as 100 neighbor update-source loopback0 Cisco ISP Workshops Router B interface loopback 0 ip address router bgp 100 network neighbor remote-as 100 neighbor update-source loopback0 neighbor remote-as 100 neighbor update-source loopback0 20

21 Inserting prefixes into BGP Two ways to insert prefixes into BGP redistribute static network command Cisco ISP Workshops 21

22 Inserting prefixes into BGP redistribute static Configuration Example: router bgp 100 redistribute static ip route serial0 Static route must exist before redistribute command will work Forces origin to be incomplete Care required! Cisco ISP Workshops 22

23 Inserting prefixes into BGP redistribute static Care required with redistribute! redistribute <routing-protocol> means everything in the <routing-protocol> will be transferred into the current routing protocol Will not scale if uncontrolled Best avoided if at all possible redistribute normally used with route-maps and under tight administrative control Cisco ISP Workshops 23

24 Inserting prefixes into BGP network command Configuration Example router bgp 100 network mask ip route serial0 A matching route must exist in the routing table before the network is announced Forces origin to be IGP Cisco ISP Workshops 24

25 Configuring Aggregation Three ways to configure route aggregation redistribute static aggregate-address network command Cisco ISP Workshops 25

26 Configuring Aggregation Configuration Example: router bgp 100 redistribute static ip route null0 250 static route to null0 is called a pull up route packets only sent here if there is no more specific match in the routing table distance of 250 ensures this is last resort static care required see previously! Cisco ISP Workshops 26

27 Configuring Aggregation Network Command Configuration Example router bgp 100 network mask ip route null0 250 A matching route must exist in the routing table before the network is announced Easiest and best way of generating an aggregate Cisco ISP Workshops 27

28 Configuring Aggregation aggregate-address command Configuration Example router bgp 100 network mask aggregate-address [ summary-only ] Requires more specific prefix in routing table before aggregate is announced {summary-only} keyword optional keyword which ensures that only the summary is announced if a more specific prefix exists in the routing table Cisco ISP Workshops 28

29 Historical Defaults Auto Summarisation Disable historical default 1 Automatically summarises subprefixes to the classful network when redistributing to BGP from another routing protocol Example: /22 fi /8 Must be turned off for any Internet connected site using BGP router bgp 100 no auto-summary Cisco ISP Workshops 29

30 Historical Defaults Synchronisation Disable historical default 2 In Cisco IOS, BGP does not advertise a route before all routers in the AS have learned it via an IGP Disable synchronisation if: AS doesn t pass traffic from one AS to another, or All transit routers in AS run BGP, or ibgp is used across backbone router bgp 100 no synchronization Cisco ISP Workshops 30

31 Summary BGP4 path vector protocol ibgp versus ebgp stable ibgp peer with loopbacks announcing prefixes & aggregates no synchronization & no auto-summary Cisco ISP Workshops 31

32 Introduction to BGP Cisco ISP Workshops 32

33 BGP Attributes and Policy Control Cisco ISP Workshops 1

34 Agenda BGP Attributes BGP Path Selection Applying Policy Cisco ISP Workshops 2

35 BGP Attributes The tools available for the job Cisco ISP Workshops 3

36 What Is an Attribute?... Next Hop AS Path MED Describes the characteristics of prefix Transitive or non-transitive Some are mandatory Cisco ISP Workshops 4

37 AS-Path Sequence of ASes a route has traversed Loop detection Apply policy AS 300 AS 200 AS / / / / AS /16 AS / / / Cisco ISP Workshops 5

38 AS-Path loop detection AS 200 AS / /16 AS / / / / AS / / /16 is not accepted by AS100 the network has AS100 in the AS-PATH this is loop detection in action Cisco ISP Workshops 6

39 Next Hop AS /16 A B AS / / AS /16 Next hop to reach a network Usually a local network is the next hop in ebgp session Cisco ISP Workshops 20 7

40 Next Hop AS /16 A ebgp B ibgp AS 300 C AS / / / Next hop not changed for ibgp Cisco ISP Workshops 8

41 ibgp Next Hop / /23 Loopback /32 B ibgp C Loopback /32 AS 300 D A Next hop is ibgp router loopback address Recursive route look-up Cisco ISP Workshops / /

42 Third Party Next Hop AS / A C B AS / ebgp between Router A and Router C ibgp between RouterA and RouterB /24 prefix has next hop address of this is passed on to RouterC instead of More efficient No extra config needed Cisco ISP Workshops 10

43 Next Hop (summary) IGP should carry route to next hops Recursive route look-up Unlinks BGP from actual physical topology Allows IGP to make intelligent forwarding decision Cisco ISP Workshops 11

44 Origin Conveys the origin of the prefix Influence best path selection Three values IGP, EGP, incomplete IGP generated from BGP network statement EGP generated from EGP incomplete generated by redistribute action Cisco ISP Workshops 12

45 Aggregator Useful for debugging purposes Conveys the IP address of the router/bgp speaker generating the aggregate route Does not influence path selection Cisco ISP Workshops 13

46 Local Preference AS /16 AS 200 AS 300 D E / > / A AS 400 C B Cisco ISP Workshops 14

47 Local Preference Local to an AS non-transitive local preference set to 100 when heard from neighbouring AS Used to influence BGP path selection determines best path for outbound traffic Path with highest local preference wins Cisco ISP Workshops 15

48 Local Preference Configuration of Router B: router bgp 400 neighbor remote-as 300 neighbor route-map local-pref in! route-map local-pref permit 10 match ip address prefix-list MATCH set local-preference 800! ip prefix-list MATCH permit /16 ip prefix-list MATCH deny /0 le 32 Cisco ISP Workshops 16

49 Multi-Exit Discriminator (MED) AS 200 C / / A B /24 AS 201 Cisco ISP Workshops 17

50 Multi-Exit Discriminator Inter-AS non-transitive metric attribute not announced to next AS Used to convey the relative preference of entry points determines best path for inbound traffic Comparable if paths are from same AS IGP metric can be conveyed as MED set metric-type internal in route-map Cisco ISP Workshops 18

51 MED & IGP Metric set metric-type internal enable BGP to advertise a MED which corresponds to the IGP metric values changes are monitored (and re-advertised if needed) every 600s bgp dynamic-med-interval <secs> Cisco ISP Workshops 19

52 Multi-Exit Discriminator Configuration of Router B: router bgp 400 neighbor remote-as 200 neighbor route-map set-med out! route-map set-med permit 10 match ip address prefix-list MATCH set metric 1000! ip prefix-list MATCH permit /24 ip prefix-list MATCH deny /0 le 32 Cisco ISP Workshops 20

53 Weight Not really an attribute local to router Highest weight wins Applied to all routes from a neighbour neighbor weight 100 Weight assigned to routes based on filter neighbor filter-list 3 weight 50 Cisco ISP Workshops 21

54 Weight Used to Deploy RPF AS4 Link to use for most traffic from AS1 AS4, LOCAL_PREF 200 Backup link, but RPF still needs to work AS1 AS4, LOCAL_PREF 100 Local to router on which it s configured Not really an attribute route-map: set weight Highest weight wins over all valid paths Weight customer ebgp on edge routers to allow RPF to work correctly Cisco ISP Workshops 22

55 Community Communities described in RFC bit integer Commonly represented as two 16 bit integers (RFC1998) Used to group destinations Each destination could be member of multiple communities Community attribute carried across AS s Very useful in applying policies Cisco ISP Workshops 23

56 Community ISP 2 X / /16 300: /16 300:1 E AS /16 300:9 D AS 300 ISP /16 300:1 C /16 300:1 AS 100 A /16 B AS /16 Cisco ISP Workshops 24

57 Well-Known Communities no-export do not advertise to ebgp peers no-advertise do not advertise to any peer local-as do not advertise outside local AS (only used with confederations) Cisco ISP Workshops 25

58 No-Export Community / X.X No-Export X.X A D /16 AS 100 AS 200 B E G C F Cisco ISP Workshops 26

59 No-Export Community AS100 announces aggregate and subprefixes aim is to improve loadsharing between AS100 and AS200 by leaking subprefixes Subprefixes marked with no-export community Router G in AS200 strips out all prefixes with no-export community set Cisco ISP Workshops 27

60 BGP Path Selection Algorithm Why is this the best path? Cisco ISP Workshops 28

61 BGP Path Selection Algorithm Do not consider path if no route to next hop Do not consider ibgp path if not synchronised Highest weight (local to router) Highest local preference (global within AS) Prefer locally originated route Shortest AS path Cisco ISP Workshops 29

62 BGP Path Selection Algorithm (continued) Lowest origin code IGP < EGP < incomplete Lowest Multi-Exit Discriminator (MED) If bgp deterministic-med, order the paths before comparing If bgp always-compare-med, then compare for all paths otherwise MED only considered if paths are from the same AS (default) Cisco ISP Workshops 30

63 BGP Path Selection Algorithm (continued) Prefer ebgp path over ibgp path Path with lowest IGP metric to next-hop For ebgp paths: If multipath is enabled, install N parallel paths in forwarding table If router-id is the same, go to next step If router-id is not the same, select the oldest path Cisco ISP Workshops 31

64 BGP Path Selection Algorithm (continued) Lowest router-id (originator-id for reflected routes) Shortest cluster-list Client must be aware of Route Reflector attributes! Lowest neighbour address Cisco ISP Workshops 32

65 Applying Policy with BGP How to use the tools Cisco ISP Workshops 33

66 Applying Policy with BGP Policy-based on AS path, community or the prefix Rejecting/accepting selected routes Set attributes to influence path selection Tools: Prefix-list (filters prefixes) Filter-list (filters ASes) Route-maps and communities Cisco ISP Workshops 34

67 Policy Control Prefix List Per neighbour prefix filter incremental configuration High performance access-list Inbound or Outbound Based upon network numbers (using familiar IPv4 address/mask format) Cisco ISP Workshops 35

68 Prefix-list Command [no] ip prefix-list <list-name> [seq <seq-value>] deny permit <network>/<len> [ge <ge-value>] [le <le-value>] <network>/<len>: The prefix and its length ge <ge-value>: "greater than or equal to" le <le-value>: "less than or equal to" Both "ge" and "le" are optional. Used to specify the range of the prefix length to be matched for prefixes that are more specific than <network>/<len> Cisco ISP Workshops 36

69 Prefix Lists Examples Deny default route ip prefix-list EG deny /0 Permit the prefix /8 ip prefix-list EG permit /8 Deny the prefix /12 ip prefix-list EG deny /12 In 192/8 allow up to /24 ip prefix-list EG permit /8 le 24 This allows all prefix sizes in the /8 address block, apart from /25, /26, /27, /28, /29, /30, /31 and /32. Cisco ISP Workshops 37

70 Prefix Lists Examples In 192/8 deny /25 and above ip prefix-list EG deny /8 ge 25 This denies all prefix sizes /25, /26, /27, /28, /29, /30, /31 and /32 in the address block /8. It has the same effect as the previous example In 193/8 permit prefixes between /12 and /20 ip prefix-list EG permit /8 ge 12 le 20 This denies all prefix sizes /8, /9, /10, /11, /21, /22, and higher in the address block /8. Permit all prefixes Cisco ISP Workshops ip prefix-list EG permit /0 le matches all possible addresses, 0 le 32 matches all possible prefix lengths 38

71 Policy Control Prefix List Example Configuration router bgp 200 network neighbor remote-as 210 neighbor prefix-list PEER-IN in neighbor prefix-list PEER-OUT out! ip prefix-list PEER-IN deny /16 ip prefix-list PEER-IN permit /0 le 32 ip prefix-list PEER-OUT permit /16 ip prefix-list PEER-OUT deny /0 le 32 Cisco ISP Workshops 39

72 Policy Control Filter List Filter routes based on AS path Inbound or Outbound Example Configuration: router bgp 100! network neighbor filter-list 5 out neighbor filter-list 6 in ip as-path access-list 5 permit ^200$ ip as-path access-list 6 permit ^150$ Cisco ISP Workshops 40

73 Policy Control Regular Expressions Like Unix regular expressions. Match one character * Match any number of preceding expression + Match at least one of preceding expression ^ Beginning of line $ End of line _ Beginning, end, white-space, brace Or () brackets to contain expression Cisco ISP Workshops 41

74 Policy Control Regular Expressions Simple Examples.* match anything.+ match at least one character ^$ match routes local to this AS _1800$ ^ _1800 (1800_)+ _\(65530\)_ originated by AS1800 received from AS1800 via AS1800 via AS1800 and AS790 multiple AS1800 in sequence (used to match AS-PATH prepends) via AS65530 (confederations) Cisco ISP Workshops 42

75 Policy Control Regular Expressions Not so simple Examples ^[0-9]+$ ^[0-9]+_[0-9]+$ ^[0-9]*_[0-9]+$ ^[0-9]*_[0-9]*$ ^[0-9]+_[0-9]+_[0-9]+$ _( ) 1849(_.+_)12163$ Match AS_PATH length of one Match AS_PATH length of two Match AS_PATH length of one or two Match AS_PATH length of one or two (will also match zero) Match AS_PATH length of three Match anything which has gone through AS701 or AS1800 Match anything of origin AS12163 and passed through AS1849 Cisco ISP Workshops 43

76 Policy Control Route Maps A route-map is like a programme for IOS Has line numbers, like programmes Each line is a separate condition/action Concept is basically: if match then do expression and exit else if match then do expression and exit else etc Cisco ISP Workshops 44

77 Route Maps Caveats Lines can have multiple set statements but only one match statement Line with only a set statement all prefixes are matched and set any following lines are ignored Line with a match/set statement and no following lines only prefixes matching go through the rest are dropped Cisco ISP Workshops 45

78 Route Maps Caveats Example omitting the third line below means that prefixes not matching list-one or list-two are dropped route-map sample permit 10 match ip address prefix-list list-one set local-preference 120! route-map sample permit 20 match ip address prefix-list list-two set local-preference 80! route-map sample permit 30! Don t forget this Cisco ISP Workshops 46

79 Policy Control Route Maps Example Configuration route map and prefix-lists router bgp 100 neighbor route-map infilter in! route-map infilter permit 10 match ip address prefix-list HIGH-PREF set local-preference 120! route-map infilter permit 20 match ip address prefix-list LOW-PREF set local-preference 80! ip prefix-list HIGH-PREF permit /8 ip prefix-list LOW-PREF permit /8 Cisco ISP Workshops 47

80 Policy Control Route Maps Example Configuration route map and filter lists router bgp 100! neighbor remote-as 200 neighbor route-map filter-on-as-path in route-map filter-on-as-path permit 10 match as-path 1 set local-preference 80! route-map filter-on-as-path permit 20 match as-path 2 set local-preference 200! ip as-path access-list 1 permit _150$ ip as-path access-list 2 permit _210_ Cisco ISP Workshops 48

81 Policy Control Route Maps Example configuration of AS-PATH prepend router bgp 300 network neighbor remote-as 100 neighbor route-map SETPATH out! route-map SETPATH permit 10 set as-path prepend Use your own AS number when prepending Otherwise BGP loop detection may cause disconnects Cisco ISP Workshops 49

82 Policy Control Route Maps Route Map MATCH Articles as-path clns address clns next-hop clns route-source community interface ip address ip next-hop ip route-source length metric nlri route-type tag Cisco ISP Workshops 50

83 Policy Control Route Maps Route map SET Articles as-path automatic-tag clns comm-list community dampening default interface interface ip default next-hop ip next-hop Cisco ISP Workshops 51

84 Policy Control Route Maps Route map SET Articles ip precedence ip qos-group ip tos level local preference metric metric-type next-hop nlri multicast nlri unicast origin tag traffic-index weight Cisco ISP Workshops 52

85 Policy Control Matching Communities Example Configuration router bgp 100 neighbor remote-as 200 neighbor route-map filter-on-community in! route-map filter-on-community permit 10 match community 1 set local-preference 50! route-map filter-on-community permit 20 match community 2 exact-match set local-preference 200! ip community-list 1 permit 150:3 200:5 ip community-list 2 permit 88:6 Cisco ISP Workshops 53

86 Policy Control Setting Communities Example Configuration router bgp 100 network ! neighbor remote-as 200 neighbor send-community neighbor route-map set-community out route-map set-community permit 10 match ip address prefix-list NO-ANNOUNCE! set community no-export route-map set-community permit 20 match ip address prefix-list EVERYTHING! ip prefix-list NO-ANNOUNCE permit /16 ge 17 ip prefix-list EVERYTHING permit /0 le 32 Cisco ISP Workshops 54

87 Aggregation Policies Suppress Map Used to suppress selected more-specific prefixes (e.g. defined through a route-map) in the absence of the summary-only keyword. Unsuppress Map Used to unsuppress selected morespecific prefixes per BGP peering when the summary-only keyword is in use. Cisco ISP Workshops 55

88 Aggregation Policies Suppress Map Example router bgp 100 network network network network network aggregate-address suppress-map block-net neighbor remote-as 200! route-map block-net permit 10 match ip address prefix-list SUPPRESS! ip prefix-list SUPPRESS permit /21 le 32 ip prefix-list SUPPRESS deny /0 le 32! Cisco ISP Workshops 56

89 Aggregation Policies Suppress Map show ip bgp on the local router router1#sh ip bgp BGP table version is 11, local router ID is Status codes: s suppressed, d damped, h history, * valid, > best, i - internal Origin codes: i - IGP, e - EGP,? - incomplete Network Next Hop Metric LocPrf Weight Path *> / i s> i s> i s> i *> i *> i Cisco ISP Workshops 57

90 Aggregation Policies Suppress Map show ip bgp on the remote router router2#sh ip bgp BGP table version is 90, local router ID is Status codes: s suppressed, d damped, h history, * valid, > best, i - internal Origin codes: i - IGP, e - EGP,? - incomplete Network Next Hop Metric LocPrf Weight Path *> / i *> i *> i Cisco ISP Workshops 58

91 Aggregation Policies Unsuppress Map Example router bgp 100! network network network network network aggregate-address summary-only neighbor remote-as 200 neighbor unsuppress-map leak-net route-map leak-net permit 10 match ip address prefix-list LEAK! ip prefix-list LEAK permit /21 le 32 ip prefix-list LEAK deny /0 le 32! Cisco ISP Workshops 59

92 Aggregation Policies Unsuppress Map show ip bgp on the local router router1#sh ip bgp BGP table version is 11, local router ID is Status codes: s suppressed, d damped, h history, * valid, > best, i -internal Origin codes: i - IGP, e - EGP,? - incomplete Network Next Hop Metric LocPrf Weight Path *> / i s> i s> i s> i s> i s> i Cisco ISP Workshops 60

93 Aggregation Policies Unsuppress Map show ip bgp on the remote router router2#sh ip bgp BGP table version is 90, local router ID is Status codes: s suppressed, d damped, h history, * valid, > best, i - internal Origin codes: i - IGP, e - EGP,? - incomplete Network Next Hop Metric LocPrf Weight Path *> / i *> i *> i *> i Cisco ISP Workshops 61

94 Aggregation Policies Aggregate Address Summary-only used all subprefixes suppressed unsuppress-map to selectively leak subprefixes bgp per neighbour configuration Absence of summaryonly no subprefixes suppressed suppress-map to selectively suppress subprefixes bgp global configuration Cisco ISP Workshops 62

95 BGP Attributes and Policy Control Cisco ISP Workshops 63

96 BGP Communities RST _05_2003_c1 1

97 Problem: Scale Routing Policy Solution: COMMUNITY NOT in decision algorithm BGP route can be a member of many communities Typical communities: Destinations learned from customers Destinations learned from ISPs or peers Destinations in VPN BGP community is fundamental to the operation of BGP VPNs RST _05_2003_c1 2

98 Problem: Scale Routing Policy Solution: COMMUNITY Communities: 1:100 Customer Routes 1:80 ISP Routes ISP 2 ISP 1 ISP 3 ISP Customer 1 (No Default, Wants Full Routes) RST _05_2003_c1 Customer 2 (Uses Default, Wants Your Routes) 3

99 Problem: Scale Routing Policy Solution: COMMUNITY Communities: 1:100 Customer Routes 1:80 ISP Routes Set Community 1:80 ISP 2 ISP 1 Match Community 1:100 Match Community 1:100 1:80 Match Community 1:100 ISP 3 Set Community 1: ISP 4 Customer 1 (No Default, Wants Full Routes) RST _05_2003_c1 Customer 2 (Uses Default, Wants Your Routes) 4

100 BGP Attributes: COMMUNITY Activated per neighbor/peer-group: neighbor {peer-address peer-group-name} send-community Carried across AS boundaries Common convention is string of four bytes: <AS>:[ ] RST _05_2003_c1 5

101 BGP Attributes: COMMUNITY (Cont.) Each destination can be a member of multiple communities Using a route-map: set community < > community number aa:nn community number in aa:nn format additive Add to the existing community none No community attribute local-as Do not send to EBGP peers (well-known community) no-advertise Do not advertise to any peer (well-known community) no-export Do not export outside AS/confed (well-known community) RST _05_2003_c1 6

102 Community Filters Filter based on Community Strings ip community-list <1-99> [permit deny] comm ip community-list < > [permit deny] regexp Per neighbor Inbound or outbound route-maps Match community <number> [exact-match] Exact match only for standard lists RST _05_2003_c1 7

103 Community Filters Example 1: Mark some prefixes as part of the 1:120 community (+remove existing community!) Configuration: router bgp 1 neighbor remote-as 2 RST _05_2003_c1 neighbor send-community neighbor route-map set_community out! route-map set_community 10 permit match ip address 1 set community 1:120! access-list 1 permit

104 Community Filters Example 2: Set LOCAL_PREF depending on the community that the prefix belongs to Configuration: router bgp 1 neighbor remote-as 2 neighbor route-map filter_on_community in! route-map filter_on_community 10 permit match community 1 set local-preference 150! ip community-list 1 permit 2:150 RST _05_2003_c1 9

105 RST _05_2003_c1 10

106 Deploying ibgp Cisco ISP Workshops 1

107 Guidelines for Stable IBGP Peer using loopback addresses neighbor { ip address peer-group} update-source loopback0 Independent of physical interface failure IGP performs any load-sharing Cisco ISP Workshops 2

108 Guidelines for Scaling IBGP Use peer groups and RRs Carry only next-hops in IGP Carry full routes in BGP only if necessary Do not redistribute BGP into IGP Cisco ISP Workshops 3

109 Using Peer Groups IBGP Peer Group AS1 router bgp 1 neighbor internal peer-group neighbor internal description ibgp peers neighbor internal remote-as 1 neighbor internal update-source Loopback0 neighbor internal next-hop-self neighbor internal send-community neighbor internal version 4 neighbor internal password A09 neighbor peer-group internal neighbor peer-group internal Cisco ISP Workshops 4

110 What Is a Peer Group? All peer-group members have a common outbound policy Updates generated once per peer group Simplifies configuration Members can have different inbound policy Cisco ISP Workshops 5

111 Why Route Reflectors? Avoid n(n-1)/2 IBGP mesh n=1000 => nearly half a million ibgp sessions! 13 Routers => 78 IBGP Sessions! Cisco ISP Workshops 6

112 Using Route Reflectors RR Backbone RR Golden Rule of RR Loop Avoidance: RR Topology Should Follow Physical Topology RRC RR Cluster A RR Cluster C RRC RR RRC Cluster B RR Cluster D RRC Cisco ISP Workshops 7

113 What Is a Route Reflector? Reflector receives path from clients and non clients If best path is from a client, reflect to clients and non-clients If best path is from a non-client, reflect to clients Cisco ISP Workshops 8

114 Configuration of RR Peer Groups router bgp 1 neighbor rr-client peer-group neighbor rr-client description RR clients neighbor rr-client remote-as 1 neighbor rr-client update-source Loopback0 neighbor rr-client route-reflector-client neighbor rr-client next-hop-self neighbor rr-client send-community group neighbor rr-client version 4 neighbor rr-client password A09 neighbor peer-group rr-client neighbor peer-group rr-client This line on RRs only RRCs use still use internal peer Cisco ISP Workshops 9

115 Deploying Route Reflectors Divide backbone into multiple clusters Each cluster contains at least one RR (multiple for redundancy), and multiple clients RRs are fully meshed via IBGP Still use single IGP next-hop unmodified by RR; unless via explicit inbound route-map Cisco ISP Workshops 10

116 Hierarchical Route Reflector Example: B RR A RouterB>sh ip bgp BGP routing table entry for / from ( ) Origin IGP, metric 0, localpref 100, valid, internal, best Originator: Cluster list: , Router id RRC Router id C Router id AS RR RRC D Cisco ISP Workshops 11

117 BGP Attributes: ORIGINATOR_ID ORIGINATOR_ID Router ID of IBGP speaker that reflects RR client routes to non-clients Overridden by: bgp cluster-id x.x.x.x Useful for troubleshooting and loop detection Cisco ISP Workshops 12

118 BGP Attributes: CLUSTER_LIST CLUSTER_LIST String of ORIGINATOR_IDs through which the route has passed Useful for troubleshooting and loop detection Cisco ISP Workshops 13

119 So Far Is IBGP peering Stable? Use loopbacks for peering Will it Scale? Use peer groups Use route reflectors Simple, hierarchical config? Cisco ISP Workshops 14

120 RST _05_2003_c1 15

121 Deploying ebgp Cisco ISP Workshops 1

122 Customer Issues Steps Configure BGP (use session passwords!) Generate a stable aggregate Set inbound policy Set output policy Configure loadsharing/multihoming Cisco ISP Workshops 2

123 Connecting to an ISP AS 100 is a customer of AS AS 2 Router B: router bgp 100 aggregate-address as-set summary-only neighbor external remote-as 2 neighbor external description ISP connection neighbor external remove-private-as neighbor external version 4 neighbor external prefix-list ispout out neighbor external route-map ispout out neighbor external route-map ispin in neighbor external password 7 020A0559 neighbor external maximum-prefix [warning-only] neighbor peer-group external /16 AS1 A B Cisco ISP Workshops 3

124 What Is Aggregation? Summarization based on specifics from the BGP routing table => Cisco ISP Workshops 4

125 How to Aggregate aggregate-address {asset} {summary-only} {route-map} Use as-set to include path and community info from specifics summary-only suppresses specifics route-map sets other attributes Cisco ISP Workshops 5

126 Why Aggregate? Reduce number of Internet prefixes Increase stability aggregate stays even specifics come and go Stable aggregate generation: router bgp 1 aggregate-address as-set summary-only network : ip route null0 254 Cisco ISP Workshops 6

127 BGP Attributes Atomic Aggregate Indicates loss of AS-PATH information Must not be removed once set Set by: aggregate-address x.x.x.x Not set if as-set keyword is used, however, AS-SET and COMMUNITY then carries information about specifics Cisco ISP Workshops 7

128 BGP Attributes: Aggregator AS number and IP address of router generating aggregate Useful for troubleshooting Cisco ISP Workshops 8

129 Aggregate Attributes NEXT_HOP = local ( ) WEIGHT = LOCAL_PREF = none (assume 100) AS_PATH = AS_SET or nothing ORIGIN = IGP MED = none Cisco ISP Workshops 9

130 Why Inbound Policy? Apply a recognizable community to use in outbound filters or other policy Possibly adjust local-preference to override default of 100 Multihoming loadsharing more later route-map ISPin permit 10 set local-preference 200 set community 1:2 ; routes from ISP Cisco ISP Workshops 10

131 Why Outbound Policy? Main filter based on communities Adding a prefix filter helps protect against mistakes (can apply as-path filters too) Send community based on agreements with ISP (remember to add sendcommunity line to config) Multihoming loadsharing policy Cisco ISP Workshops 11

132 Outgoing Policy Config ip prefix-list ISPout seq 5 permit : ip community-list 1 permit 1:1 ;all routes to send to ISP : route-map ISPout permit 10 match community 1 ; Internet transit community set community 1:3 [additive] ; something agreed with ISP Cisco ISP Workshops 12

133 Load-Sharing Single Path Router A: interface loopback 0 ip address ! router bgp 1 neighbor remote-as 2 neighbor update-source loopback0 neighbor ebgp-multi-hop 2 A AS1 AS2 Loopback Cisco ISP Workshops 13

134 Load-Sharing Multiple Paths from Same AS Router A: router bgp 1 neighbor remote-as 2 neighbor remote-as 2 maximum-paths 2 ; can configure up to 6 A AS 2 AS 1 Cisco ISP Workshops 14

135 What Is Multihoming? Connecting to two or more ISPs to increase: Reliability one ISP fails, still OK Performance better paths to common Internet destinations Cisco ISP Workshops 15

136 Types of Multihoming Three common cases: Default from all ISPs Customer+default routes from all ISPs Full routes from ISPs Cisco ISP Workshops 16

137 Default from All ISPs Low memory/cpu solution ISP sends BGP default => ISP decided by IGP metrics to reach default You send all your routes to ISP =>inbound path decided by Internet You can influence using AS-path prepend Cisco ISP Workshops 17

138 Default from All ISPs Customer AS /8 ISP ISP AS 2 AS 1 AS 3 D E A C B C Chooses Lowest IGP Metric to Default Cisco ISP Workshops 18

139 Customer+Default from All ISPs Medium memory and CPU Best path usually shortest AS-path Use local-preference to override based on prefix, as-path, or community IGP metric to default used for all other destinations Cisco ISP Workshops 19

140 Customer Routers from All ISPs Customer AS /8 ISP AS 2 ISP AS 3 D E C Chooses Shortest AS Path A AS 1 B C Cisco ISP Workshops 20

141 Customer Routes from All ISPs Customer AS /8 ISP AS 2 ISP AS 3 D 800 E C Chooses Highest Local-Preference A AS AS C B ip prefix-list AS4 permit /8 route-map AS3in permit 10 match ip address prefix-list AS4 set local-preference 800 Cisco ISP Workshops 21

142 Customer Routes from All ISPs Tier 1 ISP AS 4 Tier 1 ISP AS 5 AS 6 Tier 2 ISP AS 2 D E Tier 2 ISP AS3 A AS 1 B AS400 Takes Sub- Optimal AS Path C Cisco ISP Workshops 22

143 Full Routes from All ISPs Higher memory/cpu solution Reach all destinations by best path usually shortest AS path Can still manually tune using local-pref and as-path/community/prefix matches Cisco ISP Workshops 23

144 Full Routes from All ISPs Tier 1 ISP AS 4 Tier 1 ISP AS 5 AS 6 Tier 2 ISP AS 2 D E Tier 2 ISP AS3 A AS 1 B C Chooses Shortest AS Path C Cisco ISP Workshops 24

145 Controlling Inbound Traffic? Inbound is very difficult due to lack of transitive metric Can divide outgoing updates across providers, but what happens to redundancy? Cisco ISP Workshops 25

146 Controlling Inbound Traffic? (Cont.) Bad Internet citizen: Divide address space Set as-path prepend Good Internet citizen Divide address space Use advertise maps Cisco ISP Workshops 26

147 Using AS-PATH Prepend / to 10.1/16 Customer AS / (best) / (best) / ISP AS 2 ISP AS 3 D E A 10.1/16 AS 1 C B 10.2/16 router bgp 1 neighbor remote-as 3 neighbor route-map AS3out out ip prefix-list AS1 permit /16 route-map AS3out permit 10 match ip address prefix-list AS1 set as-path prepend 1 Cisco ISP Workshops 27

148 Using an Advertise-Map 1.10/ /24 auto-inject ISP1 R / /24 access-list 1 permit !Advertise when... access-list 2 permit ! this disappears neighbor <R1> advertise-map am non-exist-map bb route-map am permit 10 match ip address 1 route-map bb permit match ip address 2 ISP2 R / /24 R R /24 Cisco ISP Workshops 28

149 So Far Stability through: Aggregation Multihoming Inbound/outbound filtering Scalability of memory/cpu: Default, customer routes, full routes Simplicity using standard solutions Cisco ISP Workshops 29

150 Summary Scalability: Use attributes, especially community Use peer groups and route reflectors Stability: Use loopback addresses for IBGP Generate aggregates Apply passwords Always filter inbound and outbound Cisco ISP Workshops 30

151 Summary Simplicity standard solutions: Three multihoming options Group customers into communities Apply standard policy at the edge Avoid special configs Script your config generation Cisco ISP Workshops 31

152 RST _05_2003_c1 32

153 BGP Scaling Techniques Cisco ISP Workshops 1

154 BGP Scaling Techniques How to scale ibgp mesh beyond a few peers? How to implement new policy without causing flaps and route churning? How to reduce the overhead on the routers? Cisco ISP Workshops 2

155 BGP Scaling Techniques Dynamic reconfiguration Peer groups Route flap damping Route reflectors (Confederations) Cisco ISP Workshops 3

156 Dynamic Reconfiguration Route Refresh and Soft Reconfiguration Cisco ISP Workshops 4

157 Route Refresh Problem: Hard BGP peer reset required after every policy change because the router does not store prefixes that are rejected by policy Hard BGP peer reset: Consumes CPU Severely disrupts connectivity for all networks Solution: Route Refresh Cisco ISP Workshops 5

158 Route Refresh Capability Facilitates non-disruptive policy changes No configuration is needed No additional memory is used Requires peering routers to support route refresh capability RFC2918 clear ip bgp x.x.x.x in tells peer to resend full BGP announcement clear ip bgp x.x.x.x out resends full BGP announcement to peer Cisco ISP Workshops 6

159 Dynamic Reconfiguration Use Route Refresh capability if supported Find out from show ip bgp neighbor Non-disruptive, Good For the Internet Otherwise use Soft Reconfiguration IOS feature Only hard-reset a BGP peering as a last resort Consider the impact to be equivalent to a router reboot Cisco ISP Workshops 7

160 Soft Reconfiguration Router normally stores prefixes which have been received from peer after policy application Enabling soft-reconfiguration means router also stores prefixes/attributes received prior to any policy application New policies can be activated without tearing down and restarting the peering session Configured on a per-neighbour basis Uses more memory to keep prefixes whose attributes have been changed or have not been accepted Also advantageous when operator requires to know which prefixes have been sent to a router prior to the application of any inbound policy Cisco ISP Workshops 8

161 Soft Reconfiguration peer soft normal BGP in table received BGP in process received and used BGP table discarded accepted peer BGP out process Cisco ISP Workshops 9

162 Configuring Soft Reconfiguration router bgp 100 neighbor remote-as 101 neighbor route-map infilter in neighbor soft-reconfiguration inbound! Outbound does not need to be configured! Then when we change the policy, we issue an exec command clear ip bgp soft [in out] Cisco ISP Workshops 10

163 Managing Policy Changes Ability to clear the BGP sessions of groups of neighbours configured according to several criteria clear ip bgp <addr> [soft] [in out] <addr> may be any of the following x.x.x.x * all peers ASN external peer-group <name> IP address of a peer all peers in an AS all external peers all peers in a peer-group Cisco ISP Workshops 11

164 Peer Groups Cisco ISP Workshops 12

165 Peer Groups Problem how to scale ibgp Large ibgp mesh slow to build ibgp neighbours receive the same update Router CPU wasted on repeat calculations Solution peer-groups Group peers with the same outbound policy Updates are generated once per group Cisco ISP Workshops 13

166 Peer Groups Advantages Makes configuration easier Makes configuration less prone to error Makes configuration more readable Lower router CPU load ibgp mesh builds more quickly Members can have different inbound policy Can be used for ebgp neighbours too! Cisco ISP Workshops 14

167 Configuring a Peer Group router bgp 100 neighbor ibgp-peer peer-group neighbor ibgp-peer remote-as 100 neighbor ibgp-peer update-source loopback 0 neighbor ibgp-peer send-community neighbor ibgp-peer route-map outfilter out neighbor peer-group ibgp-peer neighbor peer-group ibgp-peer neighbor route-map infilter in neighbor peer-group ibgp-peer! note how has different inbound filter from peer-group! Cisco ISP Workshops 15

168 Configuring a Peer Group router bgp 100 neighbor external-peer peer-group neighbor external-peer send-community neighbor external-peer route-map set-metric out neighbor remote-as 200 neighbor peer-group external-peer neighbor remote-as 300 neighbor peer-group external-peer neighbor remote-as 400 neighbor peer-group external-peer neighbor filter-list infilter in Cisco ISP Workshops 16

169 Peer Groups Always configure peer-groups for ibgp Even if there are only a few ibgp peers Easier to scale network in the future Consider using peer-groups for ebgp Especially useful for multiple BGP customers using same AS (RFC2270) Also useful at Exchange Points where ISP policy is generally the same to each peer Cisco ISP Workshops 17

170 Route Flap Damping Stabilising the Network Cisco ISP Workshops 18

171 Route Flap Damping Route flap Going up and down of path or change in attribute BGP WITHDRAW followed by UPDATE = 1 flap ebgp neighbour going down/up is NOT a flap Ripples through the entire Internet Wastes CPU Damping aims to reduce scope of route flap propagation Cisco ISP Workshops 19

172 Route Flap Damping (continued) Requirements Fast convergence for normal route changes History predicts future behaviour Suppress oscillating routes Advertise stable routes Implementation described in RFC 2439 Cisco ISP Workshops 20

173 Operation Add penalty (1000) for each flap Change in attribute gets penalty of 500 Exponentially decay penalty half life determines decay rate Penalty above suppress-limit do not advertise route to BGP peers Penalty decayed below reuse-limit re-advertise route to BGP peers penalty reset to zero when it is half of reuse-limit Cisco ISP Workshops 21

174 Operation Suppress limit Penalty Reuse limit Time Network Announced Network Not Announced Network Re-announced Cisco ISP Workshops 22

175 Operation Only applied to inbound announcements from ebgp peers Alternate paths still usable Controlled by: Half-life (default 15 minutes) reuse-limit (default 750) suppress-limit (default 2000) maximum suppress time (default 60 minutes) Cisco ISP Workshops 23

176 Configuration Fixed damping router bgp 100 bgp dampening [<half-life> <reuse-value> <suppresspenalty> <maximum suppress time>] Selective and variable damping bgp dampening [route-map <name>] route-map <name> permit 10 match ip address prefix-list FLAP-LIST set dampening [<half-life> <reuse-value> <suppresspenalty> <maximum suppress time>] ip prefix-list FLAP-LIST permit /24 le 32 Cisco ISP Workshops 24

177 Operation Care required when setting parameters Penalty must be less than reuse-limit at the maximum suppress time Maximum suppress time and half life must allow penalty to be larger than suppress limit Cisco ISP Workshops 25

178 Configuration Examples bgp dampening reuse-limit of 750 means maximum possible penalty is 3000 no prefixes suppressed as penalty cannot exceed suppress-limit Examples bgp dampening reuse-limit of 2000 means maximum possible penalty is 8000 suppress limit is easily reached Cisco ISP Workshops 26

179 Configuration Examples bgp dampening reuse-limit of 500 means maximum possible penalty is 2000 no prefixes suppressed as penalty cannot exceed suppress-limit Examples bgp dampening reuse-limit of 750 means maximum possible penalty is 6000 suppress limit is easily reached Cisco ISP Workshops 27

180 Maths! Maximum value of penalty is Always make sure that suppress-limit is LESS than max-penalty otherwise there will be no route damping Cisco ISP Workshops 28

181 Enhancements Selective damping based on AS-path, Community, Prefix Variable damping recommendations for ISPs Flap statistics show ip bgp neighbor <x.x.x.x> [dampened-routes flap-statistics] Cisco ISP Workshops 29

182 Route Reflectors Scaling the ibgp mesh Cisco ISP Workshops 30

183 Scaling ibgp mesh Avoid ½ n(n-1) ibgp mesh n=1000 nearly half a million ibgp sessions! 13 Routers 78 ibgp Sessions! Two solutions Route reflector simpler to deploy and run Confederation more complex, has corner case advantages Cisco ISP Workshops 31

184 Route Reflector: Principle Route Reflector A AS 100 B C Cisco ISP Workshops 32

185 Route Reflector Reflector receives path from clients and non-clients Clients Selects best path If best path is from client, reflect to other clients and non-clients If best path is from non-client, reflect to clients only Non-meshed clients B A AS 100 Reflectors C Described in RFC2796 Cisco ISP Workshops 33

186 Route Reflector Topology Divide the backbone into multiple clusters At least one route reflector and few clients per cluster Route reflectors are fully meshed Clients in a cluster could be fully meshed Single IGP to carry next hop and local routes Cisco ISP Workshops 34

187 Route Reflectors: Loop Avoidance Originator_ID attribute Carries the RID of the originator of the route in the local AS (created by the RR) Cluster_list attribute The local cluster-id is added when the update is sent by the RR Cluster-id is router-id (address of loopback) Do NOT use bgp cluster-id x.x.x.x Cisco ISP Workshops 35

188 Route Reflectors: Redundancy Multiple RRs can be configured in the same cluster not advised! All RRs in the cluster must have the same cluster-id (otherwise it is a different cluster) A router may be a client of RRs in different clusters Common today in ISP networks to overlay two clusters redundancy achieved that way fi Each client has two RRs = redundancy Cisco ISP Workshops 36

189 Route Reflector: Benefits Solves ibgp mesh problem Packet forwarding is not affected Normal BGP speakers co-exist Multiple reflectors for redundancy Easy migration Multiple levels of route reflectors Cisco ISP Workshops 37

190 Route Reflectors: Migration Where to place the route reflectors? Follow the physical topology! This will guarantee that the packet forwarding won t be affected Configure one RR at a time Eliminate redundant ibgp sessions Place one RR per cluster Cisco ISP Workshops 38

191 Route Reflector: Migration A AS 300 B AS 100 D C AS 200 E F G Migrate small parts of the network, one part at a time. Cisco ISP Workshops 39

192 Configuring a Route Reflector router bgp 100 neighbor remote-as 100 neighbor route-reflector-client neighbor remote-as 100 neighbor route-reflector-client neighbor remote-as 100 neighbor route-reflector-client Cisco ISP Workshops 40

BGP Attributes and Path Selection

BGP Attributes and Path Selection BGP Attributes and Path Selection ISP Workshops Last updated 29 th March 2015 1 BGP Attributes BGP s policy tool kit 2 What Is an Attribute?... Next Hop AS Path MED...... p Part of a BGP Update p Describes

More information

Multihomed BGP Configurations

Multihomed BGP Configurations Multihomed BGP Configurations lvaro Retana Cisco IOS Deployment and Scalability 1 genda General Considerations Multihomed Networks Best Current Practices 2 The Basics General Considerations 3 General Considerations

More information

BGP for Internet Service Providers

BGP for Internet Service Providers BGP for Internet Service Providers Philip Smith , Toronto, Canada 1 Presentation Slides Will be available on www.cisco.com/public/cons/seminars/nanog25 Feel free to ask questions any time

More information

APNIC elearning: BGP Basics. Contact: training@apnic.net. erou03_v1.0

APNIC elearning: BGP Basics. Contact: training@apnic.net. erou03_v1.0 erou03_v1.0 APNIC elearning: BGP Basics Contact: training@apnic.net Overview What is BGP? BGP Features Path Vector Routing Protocol Peering and Transit BGP General Operation BGP Terminology BGP Attributes

More information

Gateway of last resort is 192.208.10.5 to network 192.208.10.0

Gateway of last resort is 192.208.10.5 to network 192.208.10.0 RTB#sh ip bgp BGP table version is 14, local router ID is 203.250.15.10 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal Origin codes: i - IGP, e - EGP,? - incomplete Network

More information

BGP for Internet Service Providers

BGP for Internet Service Providers BGP for Internet Service Providers Philip Smith , Kathmandu,, Nepal January 2003 1 Presentation Slides Will be available on ftp://ftp-eng.cisco.com/pfs/seminars Feel free to ask questions

More information

Using the Border Gateway Protocol for Interdomain Routing

Using the Border Gateway Protocol for Interdomain Routing CHAPTER 12 Using the Border Gateway Protocol for Interdomain Routing The Border Gateway Protocol (BGP), defined in RFC 1771, provides loop-free interdomain routing between autonomous systems. (An autonomous

More information

BGP4 Case Studies/Tutorial

BGP4 Case Studies/Tutorial BGP4 Case Studies/Tutorial Sam Halabi-cisco Systems The purpose of this paper is to introduce the reader to the latest in BGP4 terminology and design issues. It is targeted to the novice as well as the

More information

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

no aggregate-address address mask [as-set] [summary-only] [suppress-map map-name] [advertise-map map-name] [attribute-map map-name] BGP Commands Use the commands in this chapter to configure and monitor Border Gateway Protocol (BGP). For BGP configuration information and examples, refer to the Configuring BGP chapter of the Network

More information

Configuring BGP. Cisco s BGP Implementation

Configuring BGP. Cisco s BGP Implementation Configuring BGP This chapter describes how to configure Border Gateway Protocol (BGP). For a complete description of the BGP commands in this chapter, refer to the BGP s chapter of the Network Protocols

More information

- Border Gateway Protocol -

- Border Gateway Protocol - 1 Border Gateway Protocol (BGP) - Border Gateway Protocol - BGP is a standardized exterior gateway protocol (EGP), as opposed to RIP, OSPF, and EIGRP which are interior gateway protocols (IGP s). BGP Version

More information

How To Understand Bg

How To Understand Bg Table of Contents BGP Case Studies...1 BGP4 Case Studies Section 1...3 Contents...3 Introduction...3 How Does BGP Work?...3 ebgp and ibgp...3 Enabling BGP Routing...4 Forming BGP Neighbors...4 BGP and

More information

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

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 61200860L1-29.4E March 2012 Configuration Guide Configuring Border Gateway Protocol in AOS for Releases Prior to 18.03.00/R10.1.0 This guide only addresses BGP in AOS data products using AOS firmware prior

More information

Internet inter-as routing: BGP

Internet inter-as routing: BGP Internet inter-as routing: BGP BGP (Border Gateway Protocol): the de facto standard BGP provides each AS a means to: 1. Obtain subnet reachability information from neighboring ASs. 2. Propagate the reachability

More information

Routing Protocol - BGP

Routing Protocol - BGP Routing Protocol - BGP BGP Enterprise Network BGP ISP AS 3000 AS 2000 BGP is using between Autonomous Systems BGP(cont.) RFC 1771(BGPv4) Support CIDR Transfer the AS information to reach destination Using

More information

APNIC elearning: BGP Attributes

APNIC elearning: BGP Attributes 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

More information

Module 12 Multihoming to the Same ISP

Module 12 Multihoming to the Same ISP Module 12 Multihoming to the Same ISP Objective: To investigate various methods for multihoming onto the same upstream s backbone Prerequisites: Module 11 and Multihoming Presentation The following will

More information

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

BGP Basics. BGP Uses TCP 179 ibgp - BGP Peers in the same AS ebgp - BGP Peers in different AS's. 64512-65535 Private BGP ASN. BGP Router Processes BGP Basics BGPv4 - RFC 4271 - IPv6 support Path vector routing protocol EGP Routing between AS'es Classless Transit Area - Area used to reach other areas. Requires full routing table (no default routes).

More information

Border Gateway Protocol (BGP)

Border Gateway Protocol (BGP) Border Gateway Protocol (BGP) Petr Grygárek rek 1 Role of Autonomous Systems on the Internet 2 Autonomous systems Not possible to maintain complete Internet topology information on all routers big database,

More information

Exterior Gateway Protocols (BGP)

Exterior Gateway Protocols (BGP) Exterior Gateway Protocols (BGP) Internet Structure Large ISP Large ISP Stub Dial-Up ISP Small ISP Stub Stub Stub Autonomous Systems (AS) Internet is not a single network! The Internet is a collection

More information

Configuring BGP. The Cisco BGP Implementation

Configuring BGP. The Cisco BGP Implementation Configuring BGP This chapter describes how to configure Border Gateway Protocol (BGP). For a complete description of the BGP commands in this chapter, refer to the BGP s chapter of the Cisco IOS IP Reference,

More information

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

BSCI Module 6 BGP. Configuring Basic BGP. BSCI Module 6 Configuring Basic BGP BSCI Module 6 BSCI Module 6 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 1 BSCI Module 6 BGP An AS is a collection of networks under a single technical administration.

More information

BGP-4 Case Studies. Nenad Krajnovic. e-mail: krajko@etf.bg.ac.yu

BGP-4 Case Studies. Nenad Krajnovic. e-mail: krajko@etf.bg.ac.yu BGP-4 Case Studies Nenad Krajnovic e-mail: krajko@etf.bg.ac.yu Today topics load balancing over multiple links multihoming to a single provider multihoming to different providers following defaults inside

More information

Simple Multihoming. ISP/IXP Workshops

Simple Multihoming. ISP/IXP Workshops Simple Multihoming ISP/IXP Workshops 1 Why Multihome? Redundancy One connection to internet means the network is dependent on: Local router (configuration, software, hardware) WAN media (physical failure,

More information

Exam Name: BGP + MPLS Exam Exam Type Cisco Case Studies: 3 Exam Code: 642-691 Total Questions: 401

Exam Name: BGP + MPLS Exam Exam Type Cisco Case Studies: 3 Exam Code: 642-691 Total Questions: 401 Question: 1 Every time a flap occurs on a route, the route receives A. 750 per-flap penalty points which are user configurable B. 1500 per-flap penalty points which are user configurable C. 200 per-flap

More information

Configuring Route Maps and Policy-Based Routing

Configuring Route Maps and Policy-Based Routing C H A P T E R 2 Configuring Route Maps and Policy-Based Routing Perhaps one of the most colorful descriptions for route maps is that route maps are like duct tape for the network not necessarily because

More information

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

netkit lab bgp: prefix-filtering Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group netkit lab bgp: prefix-filtering Version Author(s) E-mail Web Description 2.1 G. Di Battista,

More information

Internet inter-as routing: BGP

Internet inter-as routing: BGP Internet inter-as routing: BGP BGP (Border Gateway Protocol): the de facto standard BGP provides each AS a means to: 1. Obtain subnet reachability information from neighboring ASs. 2. Propagate the reachability

More information

Understanding Route Aggregation in BGP

Understanding Route Aggregation in BGP Understanding Route Aggregation in BGP Document ID: 5441 Contents Introduction Prerequisites Requirements Components Used Conventions Network Diagram Aggregate Without the as set Argument Aggregate with

More information

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

Simple Multihoming. ISP Workshops. Last updated 30 th March 2015 Simple Multihoming ISP Workshops Last updated 30 th March 2015 1 Why Multihome? p Redundancy n One connection to internet means the network is dependent on: p Local router (configuration, software, hardware)

More information

MPLS VPN Route Target Rewrite

MPLS VPN Route Target Rewrite The feature allows the replacement of route targets on incoming and outgoing Border Gateway Protocol (BGP) updates Typically, Autonomous System Border Routers (ASBRs) perform the replacement of route targets

More information

BGP Best Path Selection Algorithm

BGP Best Path Selection Algorithm BGP Best Path Selection Algorithm Document ID: 13753 Contents Introduction Prerequisites Requirements Components Used Conventions Why Routers Ignore Paths How the Best Path Algorithm Works Example: BGP

More information

BGP Advanced Features and Enhancements

BGP Advanced Features and Enhancements BGP Advanced Features and Enhancements George Wu TCOM610 Conditional Route Injection Network: originate route into BGP if there is corresponding routes in IP routing table Aggregate-address: inject route

More information

Advanced BGP Policy. Advanced Topics

Advanced BGP Policy. Advanced Topics Advanced BGP Policy George Wu TCOM690 Advanced Topics Route redundancy Load balancing Routing Symmetry 1 Route Optimization Issues Redundancy provide multiple alternate paths usually multiple connections

More information

Border Gateway Protocol BGP4 (2)

Border Gateway Protocol BGP4 (2) Border Gateway Protocol BGP4 (2) Professor Richard Harris School of Engineering and Advanced Technology (SEAT) Presentation Outline Border Gateway Protocol - Continued Computer Networks - 1/2 Learning

More information

BGP Advanced Routing in SonicOS

BGP Advanced Routing in SonicOS BGP Advanced Routing in SonicOS Document Scope This document provides an overview of SonicWALL s implmenetation of Border Gateway protocol (BGP), how BGP operates, and how to configure BGP for your network.

More information

Fireware How To Dynamic Routing

Fireware How To Dynamic Routing Fireware How To Dynamic Routing How do I configure my Firebox to use BGP? Introduction A routing protocol is the language a router speaks with other routers to share information about the status of network

More information

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

Chapter 49 Border Gateway Protocol version 4 (BGP-4) Chapter 49 Border Gateway Protocol version 4 (BGP-4) Introduction... 1-3 Overview of BGP-4... 1-3 BGP Operation... 1-5 BGP Attributes... 1-6 BGP Route Selection... 1-8 Classless Inter-domain Routing (CIDR)

More information

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

Module 7. Routing and Congestion Control. Version 2 CSE IIT, Kharagpur Module 7 Routing and Congestion Control Lesson 4 Border Gateway Protocol (BGP) Specific Instructional Objectives On completion of this lesson, the students will be able to: Explain the operation of the

More information

MPLS. Cisco MPLS. Cisco Router Challenge 227. MPLS Introduction. The most up-to-date version of this test is at: http://networksims.com/i01.

MPLS. Cisco MPLS. Cisco Router Challenge 227. MPLS Introduction. The most up-to-date version of this test is at: http://networksims.com/i01. MPLS Cisco MPLS MPLS Introduction The most up-to-date version of this test is at: http://networksims.com/i01.html Cisco Router Challenge 227 Outline This challenge involves basic frame-mode MPLS configuration.

More information

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

BGP Terminology, Concepts, and Operation. Chapter 6 2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public BGP Terminology, Concepts, and Operation 1 IGP versus EGP Interior gateway protocol (IGP) A routing protocol operating within an Autonomous System (AS). RIP, OSPF, and EIGRP are IGPs. Exterior gateway

More information

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

Transitioning to BGP. ISP Workshops. Last updated 24 April 2013 Transitioning to BGP ISP Workshops Last updated 24 April 2013 1 Scaling the network How to get out of carrying all prefixes in IGP 2 Why use BGP rather than IGP? p IGP has Limitations: n The more routing

More information

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

> Border Gateway Protocol (BGP-4) Technical Configuration Guide. Ethernet Routing Switch. Engineering Ethernet Routing Switch 8600 Engineering > Border Gateway Protocol (BGP-4) Technical Configuration Guide Enterprise Solution Engineering Document Date: November, 2007 Document Number: NN48500-538 Document

More information

BGP Multihoming Techniques

BGP Multihoming Techniques BGP Multihoming Techniques Philip Smith SANOG 12 6th-14th August 2008 Kathmandu 1 Presentation Slides Available on ftp://ftp-eng.cisco.com /pfs/seminars/sanog12-multihoming.pdf And on the

More information

Border Gateway Protocol Best Practices

Border Gateway Protocol Best Practices Border Gateway Protocol Best Practices By Clifton Funakura The Internet has grown into a worldwide network supporting a wide range of business applications. Many companies depend on the Internet for day-to-day

More information

BGP1 Multihoming and Traffic Engineering

BGP1 Multihoming and Traffic Engineering 83950 Telecommunications Laboratory Course BGP1 BGP1 Multihoming and Traffic Engineering date & time student # name 1 2 bgp-tyo.tex,v 1.11 2005/04/18 14:09:14 ams Exp 1/17 Part I Home Assignment 1 General

More information

BGP Techniques for Internet Service Providers

BGP Techniques for Internet Service Providers BGP Techniques for Internet Service Providers Philip Smith MENOG 2 19-21 November 2007 Doha, Qatar 1 Presentation Slides Will be available on ftp://ftp-eng.cisco.com /pfs/seminars/menog2-bgp-techniques.pdf

More information

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

Chapter 6: Implementing a Border Gateway Protocol Solution for ISP Connectivity : Implementing a Border Gateway Protocol Solution for ISP Connectivity CCNP ROUTE: Implementing IP Routing ROUTE v6 1 Objectives Describe basic BGP terminology and operation, including EBGP and IBGP. Configure

More information

BGP Multihoming Techniques

BGP Multihoming Techniques BGP Multihoming Techniques Philip Smith 26th July - 4th August 2006 Karachi 1 Presentation Slides Available on ftp://ftp-eng.cisco.com /pfs/seminars/sanog8-multihoming.pdf And on the SANOG8

More information

BGP Link Bandwidth. Finding Feature Information. Contents

BGP Link Bandwidth. Finding Feature Information. Contents The BGP (Border Gateway Protocol) Link Bandwidth feature is used to advertise the bandwidth of an autonomous system exit link as an extended community. This feature is configured for links between directly

More information

BGP Operations and Security. Training Course

BGP Operations and Security. Training Course BGP Operations and Security Training Course Training Services RIPE NCC April 2016 Schedule 09:00-09:30 11:00-11:15 13:00-14:00 15:30-15:45 17:30 Coffee, Tea Break Lunch Break End BGP Operations and Security

More information

BGP Multihoming Techniques

BGP Multihoming Techniques BGP Multihoming Techniques Philip Smith , Oakland 2001, Cisco Systems, Inc. All rights reserved. 1 Presentation Slides Available on NANOG Web site www.nanog.org/mtg-0110/smith.html Available

More information

BGP Multihoming Techniques

BGP Multihoming Techniques BGP Multihoming Techniques Philip Smith , Seoul, South Korea August 2003 1 Presentation Slides Available on ftp://ftp-eng.cisco.com/pfs/seminars/ 2 Preliminaries Presentation has many configuration

More information

basic BGP in Huawei CLI

basic BGP in Huawei CLI basic BGP in Huawei CLI BGP stands for Border Gateway Protocol. It is widely used among Internet Service Providers to make core routing decisions on the Internet. The current BGP version is BGP-4 defined

More information

Introduction to Routing

Introduction to Routing Introduction to Routing How traffic flows on the Internet Philip Smith pfs@cisco.com RIPE NCC Regional Meeting, Moscow, 16-18 18 June 2004 1 Abstract Presentation introduces some of the terminologies used,

More information

BGP: Frequently Asked Questions

BGP: Frequently Asked Questions BGP: Frequently Asked Questions Document ID: 5816 Contents Introduction How do I configure BGP? How do I configure BGP with the use of a loopback address? What is the order of preference of attributes

More information

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

BGP Link Bandwidth. Finding Feature Information. Prerequisites for BGP Link Bandwidth The Border Gateway Protocol (BGP) Link Bandwidth feature is used to advertise the bandwidth of an autonomous system exit link as an extended community. This feature is configured for links between directly

More information

BGP Techniques for Internet Service Providers

BGP Techniques for Internet Service Providers BGP Techniques for Internet Service Providers Philip Smith NANOG 50 3-6 October 2010 Atlanta, GA 1 Presentation Slides Will be available on ftp://ftp-eng.cisco.com /pfs/seminars/nanog50-bgp-techniques.pdf

More information

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

Inter-domain Routing Basics. Border Gateway Protocol. Inter-domain Routing Basics. Inter-domain Routing Basics. Exterior routing protocols created to: Border Gateway Protocol Exterior routing protocols created to: control the expansion of routing tables provide a structured view of the Internet by segregating routing domains into separate administrations

More information

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

BGP Multihoming. Why Multihome? Why Multihome? Why Multihome? Why Multihome? Why Multihome? Redundancy. Reliability Why Multihome? BGP Multihoming ISP/IXP Redundancy One connection to internet means the network is dependent on: Local router (configuration, software, hardware) WN media (physical failure, carrier failure)

More information

Application Note. Failover through BGP route health injection

Application Note. Failover through BGP route health injection Application Note Document version: v1.2 Last update: 8th November 2013 Purpose This application note aims to describe how to build a high available platform using BGP routing protocol to choose the best

More information

BGP overview BGP operations BGP messages BGP decision algorithm BGP states

BGP overview BGP operations BGP messages BGP decision algorithm BGP states BGP overview BGP operations BGP messages BGP decision algorithm BGP states 1 BGP overview Currently in version 4. InterAS (or Interdomain) routing protocol for exchanging network reachability information

More information

BGP Multihoming Techniques. Philip Smith <philip@apnic.net> APRICOT 2012 21 st February 2 nd March 2012 New Delhi

BGP Multihoming Techniques. Philip Smith <philip@apnic.net> APRICOT 2012 21 st February 2 nd March 2012 New Delhi BGP Multihoming Techniques Philip Smith APRICOT 2012 21 st February 2 nd March 2012 New Delhi Presentation Slides p Available on n http://thyme.apnic.net/ftp/seminars/ APRICOT2012-BGP-Multihoming.pdf

More information

Interdomain Routing. Outline

Interdomain Routing. Outline Interdomain Routing David Andersen 15-744 Spring 2007 Carnegie Mellon University Outline What does the Internet look like? Relationships between providers Enforced by: Export filters and import ranking

More information

BGP Router Startup Message Flow

BGP Router Startup Message Flow LEG: Brief BGP Router Startup Message Flow This sequence diagram was generated with EventStudio System Designer (http://www.eventhelix.com/eventstudio). The Border Gateway Protocol (BGP) is an inter-autonomous

More information

BGP Support for Next-Hop Address Tracking

BGP Support for Next-Hop Address Tracking The feature is enabled by default when a supporting Cisco software image is installed. BGP next-hop address tracking is event driven. BGP prefixes are automatically tracked as peering sessions are established.

More information

BGP Multihoming Techniques. Philip Smith <philip@apnic.net> APRICOT 2013 Singapore 19 th February 1 st March 2013

BGP Multihoming Techniques. Philip Smith <philip@apnic.net> APRICOT 2013 Singapore 19 th February 1 st March 2013 BGP Multihoming Techniques Philip Smith APRICOT 2013 Singapore 19 th February 1 st March 2013 Presentation Slides p Will be available on n http://thyme.apnic.net/ftp/seminars/ APRICOT2013-Multihoming.pdf

More information

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

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 Today s Agenda BGP Overview Note: it takes years to really master BGP Many slides stolen from Prof. Zhi-Li Zhang at Minnesota and from Avi Freedman s slides AS Relationship Inference There ll be some openresearch

More information

JUNOS Secure BGP Template

JUNOS Secure BGP Template JUNOS Secure BGP Template Version 1.92, 03/30/2005 Stephen Gill E-mail: gillsr@cymru.com Published: 04/25/2001 Contents Credits... 2 Introduction... 2 Template... 4 References... 10 Credits Rob Thomas

More information

The ISP Column. An Introduction to BGP the Protocol

The ISP Column. An Introduction to BGP the Protocol The ISP Column An occasional column on things Internet May 2006 Geoff Huston An Introduction to BGP the Protocol Routing in the Internet is divided into two parts fine-grained topological detail of connected

More information

Presentation_ID. 2001, Cisco Systems, Inc. All rights reserved.

Presentation_ID. 2001, Cisco Systems, Inc. All rights reserved. 1 Session Number BGP Feature Update 12.0S July 2003 Mike Pennington mpenning@cisco.com Cisco Systems - Denver, CO 2 Overview Overview Definition of Terms BGP Convergence optimization Issues w/ Static peer-groups

More information

BGP Multihoming Techniques

BGP Multihoming Techniques BGP Multihoming Techniques Philip Smith PacNOG 2 Workshop Apia, Samoa 18-24 June 2006 PacNOG 2 Workshops 1 BGP Multihoming Techniques Why Multihome? Definition & Options Preparing the Network

More information

ETHEL THE AARDVARK GOES BGP ROUTING

ETHEL THE AARDVARK GOES BGP ROUTING Fable Of Contents ISP TECH TALK by Avi Freedman ETHEL THE AARDVARK GOES BGP ROUTING In this exciting column we'll actually walk through configuring a Cisco router for BGP. It's very important, however,

More information

HP Networking BGP and MPLS technology training

HP Networking BGP and MPLS technology training Course overview HP Networking BGP and MPLS technology training (HL046_00429577) The HP Networking BGP and MPLS technology training provides networking professionals the knowledge necessary for designing,

More information

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

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 BGP Support for IP Prefix Import from Global Table into a VRF Table The BGP Support for IP Prefix Import from Global Table into a VRF Table feature introduces the capability to import IPv4 unicast prefixes

More information

MPLS VPN over mgre. Finding Feature Information. Prerequisites for MPLS VPN over mgre

MPLS VPN over mgre. Finding Feature Information. Prerequisites for MPLS VPN over mgre The feature overcomes the requirement that a carrier support multiprotocol label switching (MPLS) by allowing you to provide MPLS connectivity between networks that are connected by IP-only networks. This

More information

E6998-02: Internet Routing

E6998-02: Internet Routing E6998-02: Internet Routing Lecture 13 Border Gateway Protocol, Part II John Ioannidis AT&T Labs Research ji+ir@cs.columbia.edu Copyright 2002 by John Ioannidis. All Rights Reserved. Announcements Lectures

More information

Understanding Virtual Router and Virtual Systems

Understanding Virtual Router and Virtual Systems Understanding Virtual Router and Virtual Systems PAN- OS 6.0 Humair Ali Professional Services Content Table of Contents VIRTUAL ROUTER... 5 CONNECTED... 8 STATIC ROUTING... 9 OSPF... 11 BGP... 17 IMPORT

More information

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

Bell Aliant. Business Internet Border Gateway Protocol Policy and Features Guidelines Bell Aliant Business Internet Border Gateway Protocol Policy and Features Guidelines Effective 05/30/2006, Updated 1/30/2015 BGP Policy and Features Guidelines 1 Bell Aliant BGP Features Bell Aliant offers

More information

BGP Multipath Load Sharing for Both ebgp and ibgp in an MPLS-VPN

BGP Multipath Load Sharing for Both ebgp and ibgp in an MPLS-VPN BGP Multipath Load Sharing for Both ebgp and ibgp in an MPLS-VPN The BGP Multipath Load Sharing for ebgp and ibgp feature allows you to configure multipath load balancing with both external BGP (ebgp)

More information

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

--BGP 4 White Paper Ver.1.0-- BGP-4 in Vanguard Routers BGP-4 in Vanguard Routers 1 Table of Contents Introduction to BGP... 6 BGP terminology... 6 AS (Autonomous system):... 6 AS connection:... 6 BGP Speaker:... 6 BGP Neighbor/Peer:... 7 BGP Session:... 7

More information

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

Administra0via. STP lab due Wednesday (in BE 301a!), 5/15 BGP quiz Thursday (remember required reading), 5/16 BGP Brad Smith Administra0via How are the labs going? This week STP quiz Thursday, 5/9 Next week STP lab due Wednesday (in BE 301a!), 5/15 BGP quiz Thursday (remember required reading), 5/16 Following

More information

Tutorial: Options for Blackhole and Discard Routing. Joseph M. Soricelli Wayne Gustavus NANOG 32, Reston, Virginia

Tutorial: Options for Blackhole and Discard Routing. Joseph M. Soricelli Wayne Gustavus NANOG 32, Reston, Virginia Tutorial: Options for Blackhole and Discard Routing Joseph M. Soricelli Wayne Gustavus NANOG 32, Reston, Virginia Caveats and Assumptions The views presented here are those of the authors and they do not

More information

IK2205 Inter-domain Routing

IK2205 Inter-domain Routing IK2205 Inter-domain Routing Lecture 5 Voravit Tanyingyong, voravit@kth.se Outline Redundancy, Symmetry, and Load Balancing Redundancy Symmetry Load balancing Scenarios Controlling Routing Inside the AS

More information

BGP Multihoming Techniques

BGP Multihoming Techniques BGP Multihoming Techniques Philip Smith NANOG 41 14th - 16th October 2007 Albuquerque, New Mexico 1 Presentation Slides Available on ftp://ftp-eng.cisco.com /pfs/seminars/nanog41-multihoming.pdf

More information

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

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

More information

MPLS VPN - Route Target Rewrite

MPLS VPN - Route Target Rewrite MPLS VPN - Route Target Rewrite The MPLS VPN - Route Target Rewrite feature allows the replacement of route targets on incoming and outgoing Border Gateway Protocol (BGP) updates. Typically, autonomous

More information

Lecture 18: Border Gateway Protocol"

Lecture 18: Border Gateway Protocol Lecture 18: Border Gateway Protocol" CSE 123: Computer Networks Alex C. Snoeren HW 3 due Wednesday! Some figures courtesy Mike Freedman Lecture 18 Overview" Path-vector Routing Allows scalable, informed

More information

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

This feature was introduced. This feature was integrated in Cisco IOS Release 12.2(11)T. BGP Link Bandwidth The Border Gateway Protocol (BGP) Link Bandwidth feature is used to advertise the bandwidth of an autonomous system exit link as an extended community. This feature is configured for

More information

Border Gateway Protocol (BGP-4)

Border Gateway Protocol (BGP-4) Vanguard Applications Ware IP and LAN Feature Protocols Border Gateway Protocol (BGP-4) Notice 2008 Vanguard Networks 25 Forbes Blvd Foxboro, MA 02035 Phone: (508) 964 6200 Fax: (508) 543 0237 All rights

More information

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

Internet Firewall CSIS 4222. Packet Filtering. Internet Firewall. Examples. Spring 2011 CSIS 4222. net15 1. Routers can implement packet filtering Internet Firewall CSIS 4222 A combination of hardware and software that isolates an organization s internal network from the Internet at large Ch 27: Internet Routing Ch 30: Packet filtering & firewalls

More information

CS551 External v.s. Internal BGP

CS551 External v.s. Internal BGP CS551 External v.s. Internal BGP Bill Cheng http://merlot.usc.edu/cs551-f12 1 Exterior vs. Interior World vs. me EGP vs. IGP Little control vs. complete administrative control BGP (and GGP, Hello, EGP)

More information

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

ITRI CCL. IP Routing Primer. Paul C. Huang, Ph.D. ITRI / CCL / N300. CCL/N300; Paul Huang 1999/6/2 1 IP Routing Primer Paul C. Huang, Ph.D. ITRI / / N300 /N300; Paul Huang 1999/6/2 1 Basic Addressing / Subnetting Class A 0 Network Host Host Host 127 networks / 16,777,216 hosts Class A natural mask 255.0.0.0

More information

Task 20.1: Configure ASBR1 Serial 0/2 to prevent DoS attacks to ASBR1 from SP1.

Task 20.1: Configure ASBR1 Serial 0/2 to prevent DoS attacks to ASBR1 from SP1. Task 20.1: Configure ASBR1 Serial 0/2 to prevent DoS attacks to ASBR1 from SP1. Task 20.2: Configure an access-list to block all networks addresses that is commonly used to hack SP networks. Task 20.3:

More information

Load balancing and traffic control in BGP

Load balancing and traffic control in BGP DD2491 p2 2011 Load balancing and traffic control in BGP Olof Hagsand KTH CSC 1 Issues in load balancing Load balancing: spread traffic on several paths instead of a single. Why? Use resources better Can

More information

Multihoming and Multi-path Routing. CS 7260 Nick Feamster January 29. 2007

Multihoming and Multi-path Routing. CS 7260 Nick Feamster January 29. 2007 Multihoming and Multi-path Routing CS 7260 Nick Feamster January 29. 2007 Today s Topic IP-Based Multihoming What is it? What problem is it solving? (Why multihome?) How is it implemented today (in IP)?

More information

IP Routing Configuring RIP, OSPF, BGP, and PBR

IP Routing Configuring RIP, OSPF, BGP, and PBR 13 IP Routing Configuring RIP, OSPF, BGP, and PBR Contents Overview..................................................... 13-6 Routing Protocols.......................................... 13-6 Dynamic Routing

More information

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

IPv6 over MPLS VPN. Contents. Prerequisites. Document ID: 112085. Requirements IPv6 over MPLS VPN Document ID: 112085 Contents Introduction Prerequisites Requirements Components Used Conventions Configure Network Diagram VRF Configuration Multiprotocol BGP (MP BGP) Configuration

More information

Inter-domain Routing. Outline. Border Gateway Protocol

Inter-domain Routing. Outline. Border Gateway Protocol Inter-domain Routing Outline Border Gateway Protocol Internet Structure Original idea Backbone service provider Consumer ISP Large corporation Consumer ISP Small corporation Consumer ISP Consumer ISP Small

More information

BGP Best Practices for ISPs Prefix List, AS PATH filters, Bogon Filters, Anycast, Mailing Lists, INOC DBA

BGP Best Practices for ISPs Prefix List, AS PATH filters, Bogon Filters, Anycast, Mailing Lists, INOC DBA BGP Best Practices for ISPs Prefix List, AS PATH filters, Bogon Filters, Anycast, Mailing Lists, INOC DBA. Gaurab Raj Upadhaya gaurab@pch.net Packet Clearing House What are Best Practices Established or

More information