SlideShare a Scribd company logo
1 of 13
Overview: <br />What is BGP, where/when are we gonna use it ?<br />A) BGP is the successor of EGP [Exterior Gateway Protocol], and currently its the only EGP deployed. BGP is an Enhanced Distance Vector Protocol used in routing between Autonomous Systems [AS] “aka Interdomain Routing”, where an AS is a collection of networks under single administration. We use BGP in several occasions as Service Providers networks, Multihomed customers and large enterprise networks, etc…<br />BGP Basics:<br />Only one BGP process per router. <br />There is two types of BGP, IBGP & EBGP, if the as-numbers of the peering routers are the same then its IBGP, if they are different then its EBGP. <br />BGP uses AS numbers [1-64511] as public and [64512-65535] as private. <br />BGP uses TCP as its reliable transport protocol and it runs over TCP port 179. <br />The router with the higher router-id establishes the BGP peering session. <br />BGP uses Keepalive messages to detect the presence of its neighbor, Keepalive interval value is 60 sec, and Holdtime is 180 sec by default [1:3 ratio], Holdtime value is exchanged in the Open Message, and you can only modify the Holdtime value, BGP peers use the lower Holdtime value configured on either of them. <br />BGP uses triggered updates, 5 sec interval for IBGP and 30 sec interval for EBGP. <br />Mandatory well known attributes must exist in each routing update. <br />If multiple paths exist for the same network, only one is selected as the best route and the remaining routes are stored in the memory, Router propagates best routes only to its neighbors. <br />If multi path load sharing is enabled, router can select multiple paths to a single destination and installs them in the routing table, multiple path load sharing in BGP supports up to 16 paths. <br />Before a route is installed in the routing table, the router checks if its learned from another routing protocol rather than BGP, if it was learned from another routing protocol the router compares the Administrative Distance [AD] and prefers the lower. <br />BGP Split Horizon Rule: When a router receives an update it never sends it back to the source which it received from. <br />IBGP Split Horizon Rule: Routes learned from an IBGP neighbor is never sent to other IBGP neighbors, thus all IBGP routers inside an AS needs full mesh for consistent routing decisions. <br />AS-Path loop prevention mechanism: When a router receives an update containing its own AS number; it silently ignores the update. <br />EBGP peers should be reachable for all BGP speaking routers inside an AS, this is achieved by either redistributing connected interfaces of the EBGP peers into IGP, or run IGP over the EBGP peers interface and make them passive so that they don’t exchange IGP information, or finally use the “neighbor ip-address next-hop-self” command so that the edge router announces it self as the next hop for the IBGP peers. <br />BGP sessions can be initiated using loopback interfaces, IGP or Static Routes are used for providing reachability between loopbacks, also the update source for the BGP session should be modified in order to successfully establish the session using the “neighbor ip-address update-source loopback number” command. For EBGP sessions to be established successfully using the loopback interfaces you will need to use the “neighbor ip-address ebgp-multihop value“ command. <br />IGP is used inside an AS to provide full reachability required for establishing IBGP sessions, fast convergence in case of physical failure in one of the multiple paths between IBGP routers, and next hop resolving “aka recursive look up” for appropriate packet forwarding. <br />BGP Path Attributes:<br />Mandatory Well Known Attributes: <br />Next-hop:ip address of the router sending the updates, by default it changes when a route is advertised to EBGP neighbor but not when its advertised to IBGP neighbor. <br />AS-Path:Sequence of ASs path a route has traveled through. <br />Origin: Indicates how BGP learned the route [IGP - EBGP - ?]. <br />Discretionary Well Known Attributes: <br />Local Preference:used for consistent routing policy inside an AS. <br />Atomic Aggregate: informs a neighbor router that the originating router aggregated the routes. <br />Transitive Optional Attributes: <br />Aggregator:Specify the ip address and the AS number of the router that performed the aggregation. <br />Community: Route tagging mechanism used in filtering or route selection process. <br />Non-Transitive Optional Attributes: <br />Multi-Exit Discriminator [MED]: Discriminate between multiple exit points within an AS. <br />Cost Community: Used to influence best-path selection for IBGP and confederations only. <br />Originator-id: Used as a loop prevention mechanism in case of multiple Route Reflectors. <br />BGP Session Establishment Process:<br />Single BGP process is started on the router using “router bgp as-number” command. <br />Neighbors must be configured manually on both sides using “neighbor ip-address remote-as as-number“ command. <br />It uses TCP port 179 and the session of the router with the higher Router-id is retained. <br />The first state of the BGP session is IDLE which indicates that the router is currently not attempting any session establishment, for a router to change its IDLE state; the configured neighbor ip address should be reachable. <br />When peers are correctly configured the state is changes to ACTIVE which indicates that the router is actively sending connections attempts to its neighbor. <br />When the TCP connection attempt succeed, the router sends an Open Message containing BGP session information and changes the state to be OpenSent.The Open Message contains [BGP version number - AS of local router - Holdtime - Router-ID - Optional parameters]. <br />If the neighbor router accepts the parameters in the Open Message; it replies with its own Open Message, the local router receives the Open Message and changes the state to OpenConfirm, and it verifies the parameters of the neighbor router, if accepted a keepalive message is sent as signal of acceptance and then the state is changed to Established.<br /> Route Selection Criteria:<br />Next-hop: If not reachable the route is not installed in the routing table. <br />Weight: Local to the router. <br />Local Preference: Local within an AS. <br />Originated Routes: Routes originated using the network or summary commands. <br />AS-Path: Prefers the shortest path. <br />Origin Code: IGP < EGP < ? <br />MED: Prefers the lowest value. <br />EBGP routes over IBGP routes. <br />For IBGP: Prefers path via closest IGP neighbor [Next-Hop with lowest IGP metric]. <br />For EBGP: Oldest path. <br />Lowest BGP Router-id. <br />Advertising Networks:<br />There are three ways to announce networks into BGP:<br />Network command, Redistribution and Aggregation. <br />when either of the three ways is used the AS-Path will appear empty indicating that the route is locally originated, when the route traverses through other ASes, the forwarding router prepends its own AS number to the AS-Path. <br />Network command operates differently in BGP; indicates which routes will be injected in the BGP table not which interface will BGP run over. <br />Using a Route-Map with the Network command allows you to alter Weight, Local Preference, MED and tagging the route. <br />When redistributing routes into BGP, they carry an origin of incomplete “?“. – Conditional Route Injection: is injecting a route into BGP with no matching route in the routing table, this is achieved by using the “bgp inject-map map-name exist-map map-name” command. <br />Summarization & Aggregation:<br />Automatic summarization is enabled by default. <br />For a router to install a classful network in the BGP table when Automatic summarization is enabled; A classful network statement with a classful mask and at least one subnet of this classful network should exist in the routing table. <br />When Automatic summarization is enabled; all redistributed subnets will be summarized to their classful network. <br />When summarization is disabled, an exact match must be found in the routing table. <br />Aggregation is summarization of routes when it is advertised to other neighbors, and its configured using “aggregate-address ip-address mask”command. <br />For an aggregate route to be advertised to other neighbors; a route within the range of the aggregate must exist in the BGP table in order to install the aggregate in the BGP table. <br />By default both the aggregate and the specific routes are advertised to the neighbors, to advertise the aggregate only you will have to use the “summary-only” keyword with the aggregate command. <br />Securing BGP Peers:<br />MD5 authentication between BGP peers by using the “neighbor ip-address password password” command. <br />TTL-Security: The router compares the TTL value received with the locally configured hop count value, this option is supported for both directly connected and multihop EBGP peers. the command for this option is “neighbor ip-address ebgp-multihop ttl“; where TTL is a numeric value. <br />Multihoming:<br />Multihoming is a customer being connected to a single ISP with multiple links or connected to multiple ISP’s. <br />Multihomed customers should run BGP with their ISPs using public AS and provider independent address space. <br />Multihomed customers should advertise their own address space only to their ISPs and do not advertise routes learned from their ISPs do avoid acting as a Transit-AS between their ISPs. <br />For influencing Upstream ISP selection, Weight and Local Preference can be used inside a Multihomed Customer AS. <br />For influencing Downstream ISP selection, MED can be used if the customer is multihomed to a single ISP as MED doesn’t traverse through ASes, and AS-path Prepending can be used if the customer is multihomed to multiple ISPs because AS-path attribute traverses through ASes. <br />AS-Path Filtering:<br />Used to announce or accept prefixes based on AS-Path Attribute. <br />It uses Regular Expressions. <br />Its implemented on per neighbor basis. <br />Use “ip as-path access-list number [permit/deny] as-regular-expression” & “neighbor ip-address filter-list access-list-number [in/out]” commands. <br />Regular Expressions:<br />| –> Logical OR. <br />[123] [1-4]–> matches any single character from those between braces. <br />dot (.)–> matches any character, even if it was a space. <br />^–> matches beginning of the string. <br />$–> matches end of the string. <br />Underscore (_)–> matches any delimiter [beginning, end, space, tab, comma] <br />Braces ( ) –> matches two or more AS numbers. <br />> removes the meaning of the special character following it so it could be matched if found in an AS-Path eg. as () in confederations. <br />*–> character is repeated zero times or more. <br />?–> character is repeated zero or one time. <br />+–> character is repeated one or more times. <br />Prefix-List filtering:<br />Used to filter announce and accept specific prefixes. <br />It has some advantages over IP Access Lists as: Provide flexibility in editing, inserting and deleting individual lines, Matches based on subnetmask, etc… <br />Its implemented on per neighbor basis. <br />An with no Le/Ge matches exactly the specified prefix. <br />An entry with Le/Ge matches any route within the range specified. <br />Configuration example: <br />“ip prefix-list name seq number [permit/deny] prefix/length ge value le value” “neighbor ip-address prefix-list name [in/out]” “redistribute-list prefix-list name out routing-process“. <br />Out Bound Route Filtering [ORF]:<br />Its implemented on per neighbor basis. <br />Its a BGP feature that allows a router to accept a prefix-list from a neighbor and apply it to locally configured ORF neighbor. <br />A router can install an inbound prefix-list to a peer as an outbound prefix-list. <br />Its used to minimize the number of updates sent between neighbors and reduce system resources. <br />Configuration example: <br />“neighbor prefix-list name [in/out]” “neighbor capability orf prefix-list [send/receive/both]” <br />ORF message contains:<br />Address Family Information [AFI]/ Subsequent AFI <br />ORF types <br />When to refresh <br />List of ORF entries <br />ORF Types:<br />type 1 –> Network Layer Reachability Information [NLRI] <br />type 2 –> Communities <br />type 3 –> Extended Communities <br />type 128 –> Prefix-List <br />Route-Map Filtering:<br />Route-Map matches: prefix-list/access-list/route originator/next-hop/origin/AS-path/community/IGP tag/IGP type[internal/external]. <br />Route-Map can set: origin/next-hop/weight/local preference/MED/community. <br />IP Policy List: is grouping of route-map match clauses then attaching to route-map. <br />Its implemented on per neighbor basis. <br />Route Map Continue Cause: its like the match and the set causes of the route-map, when a match in the route-map is successful continue clause -if configured- jumps to a pre-specified route-map entry, the continue clause takes place if a match is successful, if not then it is ignored. <br />If the route-map has no match clause, the continue clause takes place automatically, if a match is successful the continue clause takes place, if not then it is ignored. <br />Configuration example: <br />“ip policy-list name [permit/deny]match [as-path/metric/community]route-map name permit seq-number match policy-map namematch ip address prefix-list namematch ip next-hop prefix-list namematch ip route-source prefix-list name continue seq-number neighbor ip-address route-map name[in/out]” <br />AS-Path Prepending:<br />Used to influence other ASes to select a specific return path towards an AS. <br />Used to distribute the load of returning traffic for multihomed customers, however in this case you will have to monitor the traffic and prepend AS to path as needed to accomplish the traffic load. <br />To avoid BGP AS-Path loop prevention mechanism, use only the AS number of the sending AS. <br />Service Providers use AS-Path filter to allow routes that are originated from Customers AS only, if the Customer is going to use AS-Path prepending the Service Provider will have to change their filter to allow AS-Path containing more than one copy of Customer’s AS number. <br />AS-Path prepending is applied using Route-Maps on per neighbor basis. ”route-map route-map-name permit 10 set as-path prepend as-no as-no as-no neighbor ip-address route-map route-map-name out”. <br />BGP hide local AS:<br />The “neighbor ip-address local-as as-number [no-prepend [replace-as [dual-as]]]” <br />no-prepend: does not prepend local AS number to any learned EBGP routes. <br />replace-as: replaces the local AS number with the one set int the command to the AS-path attribute. <br />dual-as: allows the establishment of EBGP sessions using either the real AS number or using the AS number set in the command. <br />This usually happens while connecting two different BGP networks with different AS numbers to not disturb the established peerings [i.e. when an ISP buys another ISP and merging both networks into only one network]. <br />Its drawback : if you configured the above command with an AS number that already exists for one of the IBGP peers, when this IBGP receives the route it will detect its own AS number in the AS path and it will ignore this route considering it as a routing loop. <br />Multi-Exit Discriminator [MED]:<br />MED is used to discriminate between multiple exit points within an AS. <br />MED is used to influence path selection in neighbor AS. <br />MED doesn’t traverse outside the receiving AS. <br />Default value is Zero and in comparison the lower value the better, to change the default value use “default-metric number” command. <br />MED can be set in ways: <br />Using a Route-Map <br />Inherited from an IGP by either using the BGP Network command or redistributing into BGP. <br />MED is compared when different values are received from same AS, if “bgp always-compare-med” is used MED from different ASes will be also compared. <br />In intra-confederations MED is not compared and to compare it “bgp bestpath med confed” should be used. <br />BGP sets a missing MED value to infinite value, however Cisco IOS does set it to Zero, to change this behavior of Cisco IOS the “bgp bestpath med missing-med-worst” command should be used. <br />“bgp deterministic-med” allows BGP to compare the MED values after the AS-Path attribute directly. <br />Communities:<br />Its a mean of tagging routes and used in filtering or route selection. <br />By default its stripped in outgoing BGP updates, to enable sending communities the “neighbor ip-address send-community” should be used in per-neighbor basis. <br />There is no limitation on the number of communities specified for a route. <br />Route-Map is used for setting the community value, it can be applied with redistribution, network command, neighbor command and aggregate command. <br />In Route-Map configuration, the “additive” keyword prepends new Community value to the existing Community values, if not used it will override the existing Community values. “set community value [value ...][additive]” <br />The “ip bgp-community new-format” command is recommended when the Community value contains AS numbers. <br />Community list “ip community-list 1-99 permit|deny value [value ...]”: <br />Values in one line must match to be accepted, if no matches the list acts as an Access-List and denies the route. <br />Keyword “internet” acts as permit any. <br />Extended Community list “ip community-list 100-199 permit|deny regexp” <br />Matches are based on regular expressions. <br />To match any use “.*” value. <br />Named Community list “ip community-list standard|expanded name permit|deny value|regexp”. <br />Sequenced Extended Community List “ip extcommunity-list 100-199|standard list-name permit|deny regexp” or “ip extcommunity-list 0-99|expanded list-name permit|deny [rt extcom-value][soo extcom-value]” <br />Allow automatic sequencing or resequencing for BGP Extended Community List <br />Allow insertion and deletion of lines in the BGP Extended Community List. <br />Rt: Specifies the Route Target of Extended Community attribute. <br />Soo: Specifies the Site Of Origin Extended Community attribute. <br />BGP Cost community “set extcommunity cost [igp] community-id cost-value” <br />Its a non-transitive attribute. <br />Its used to influence best-path selection for IBGP and confederations only. <br />Default value is 2147483647 and in comparison the lower value the better. <br />The keyword “IGP”influences the best-path selection at the POI [point of insertion] which follows the IGP metric comparison in BGP route selection criteria. In case if the POI step is not valid the cost community is silently ignored. <br />BGP Link Bandwidth:<br />Used for load balancing over unequal bandwidth links. <br />Enabled by using “bgp dmzlink-bw”. <br />Routes learned from a directly connected external neighbor propagates through the IBGP network with the bandwidth of the external link. <br />The “neighbor ip-address dmzlink-bw” command is used to advertise the bandwidth of links used to exit an AS, its configured on the DMZ interface that connect single hop EBGP neighbor. <br />Route Reflectors:<br />Route Reflectors are router running BGP that are allowed to break the IBGP loop prevention rules and advertise routes that are received from IBGP pears. <br />Route Reflectors eliminates the need of full mesh IBGP. <br />Route Reflector advertises the best routes only. <br />When Route Reflector receives a route update from a Route Reflector Client; it sends the route to all other peers. <br />When Route Reflector receives a route update from a Non Route Reflector Client; it sends the route to all of its Clients and EBGP peers only. <br />When a Route Reflector Client receives an IBGP route update; it sends it to EBGP neighbors only. <br />When a Route Reflector Client receives an EBGP route update; it sends it to all of its neighbors. <br />In case of redundant Route Reflectors; Route Reflector Clusters is used to prevent routing loops, the Route Reflector adds Cluster-id and Originator-id to the advertised route updates. <br />Originator-id is a non-transitive optional attribute. <br />When a Route Reflector receives a route update with its own Cluster-id; it silently ignores the route update. <br />When a Route Reflector Client receives a route update with Originator-id same as its Router-id; it silently ignores the route update. <br />When a Route Reflector receives two IBGP route updates; the non reflected route update [the one with no Originator-id] is preferred. <br />When a Route Reflector receives two IBGP route updates ; the one with the shortest Cluster-list is preferred. <br />Route Reflector configuration: <br />“neighbor ip-address route-reflector-client” <br />“bgp cluster-id cluster-id” <br />Confederations:<br />Confederations splits the AS into smaller ASes to reduce the number of BGP sessions needed for full mesh IBGP. <br />Confederations eliminates the need of full mesh IBGP, however its needed inside each Confederation which can be achieved by setting a Route Reflector inside the Confederation. <br />When communicating to real EBGP neighbors, internal ASes are hidden and only one external AS is announced to all real EBGP neighbors. <br />Intra-Confederation EBGP sessions are used between Member-ASes, however it is slightly different from the Real EBGP sessions as is behaves like IBGP in passing BGP attributes as Local-Preference, MED, Next-Hop. <br />Entire Confederation should use same IGP as they all use same Next-Hop ip- addresses. <br />Intra-Confederation AS-Path appears between parentheses ( ). <br />To configure Confederations: <br />Start the BGP process with the Member-AS number. <br />Set the external “Real” AS number. <br />List all Member-ASes of the Confederation on each router with EBGP Session. <br />“router bgp member-as” “bgp confederation identifier external-as” “bgp confederation peers list-of-member-as” <br />Peer Groups:<br />Used to configure multiple neighbors with similar requirements, also used as a BGP performance enhancement tool since the router builds a single update for all Peer Group members which reduces the CPU load. <br />IBGP & EBGP neighbors cannot be mixed in one Peer Group. <br />Peer Group parameters can be overridden by per-neighbor configurations on incoming updates only. <br />Peer Group configuration: “neighbor group-name peer-group” “neighbor group-name bgp-parameters” “neighbor ip-address peer-group group-name” <br />Route Dampening:<br />Used to reduce processing load caused by flapping routes. <br />IBGP routes are not dampened. <br />When an EBGP route flaps it gets 1000 Penalty Points, when the Penalty Points exceeds the Suppress Limit the route is dampened. The Penalty Points decay through the use of a decay algorithm, when it drops below the reuse limit the route is re-advertised. <br />Flapping history of a route forgotten after the Penalty drops below than half of the Reuse Limit. <br />After enabling Route Dampening; routes in the BGP Table are never removed, the route is kept in the BGP Table and marked as history “h”. <br />To enable Route Dampening, the “bgp dampening [half-life reuse suppress max-suppress-time] [route-map route-map-name] command is used. <br />half-time -> time for penalty to decrease to half [default value is 15 minutes]. <br />suppress -> limit in which penalty of a route exceeds the route is suppressed [default value is 2000]. <br />reuse -> limit in which penalty of route drops below, the route is unsuppressed [default value is 750]. <br />max-suppress-time -> no route is suppressed longer than this duration [default value is 60 minutes & maximum us 255 minutes]. <br />Useful commands: <br />To clear the statistics of routes flaps “clear ip bgp flap-statistics”. <br />To release Dampened Routes “clear ip bgp dampening”. <br />“show ip bgp dampened-paths”. <br />“show ip bgp flap-statistics [ regexp regexp | filter-list access-list | ip-address mask [longer-prefix] ]”. <br />
Cisco BGP Exam 642-661 Review Notes
Cisco BGP Exam 642-661 Review Notes
Cisco BGP Exam 642-661 Review Notes
Cisco BGP Exam 642-661 Review Notes
Cisco BGP Exam 642-661 Review Notes
Cisco BGP Exam 642-661 Review Notes
Cisco BGP Exam 642-661 Review Notes
Cisco BGP Exam 642-661 Review Notes
Cisco BGP Exam 642-661 Review Notes
Cisco BGP Exam 642-661 Review Notes
Cisco BGP Exam 642-661 Review Notes
Cisco BGP Exam 642-661 Review Notes

More Related Content

What's hot

Enhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOL
Enhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOLEnhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOL
Enhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOLNutan Singh
 
Border gateway protocol
Border gateway protocolBorder gateway protocol
Border gateway protocolsahilnarvekar
 
3 ip routing part b
3 ip routing part b3 ip routing part b
3 ip routing part bSagarR24
 
Using BGP To Manage Dual Internet Connections
Using BGP To Manage Dual Internet ConnectionsUsing BGP To Manage Dual Internet Connections
Using BGP To Manage Dual Internet ConnectionsRowell Dionicio
 
3 ip routing bgp-updated
3 ip routing bgp-updated3 ip routing bgp-updated
3 ip routing bgp-updatedSagarR24
 
Border Gateway Protocol
Border Gateway ProtocolBorder Gateway Protocol
Border Gateway ProtocolKashif Latif
 
B G P O S P F Interaction Report
B G P  O S P F  Interaction  ReportB G P  O S P F  Interaction  Report
B G P O S P F Interaction Reportgobed
 
SGNOG2 - Using communities for multihoming ISP workshop
SGNOG2 - Using communities for multihoming ISP workshopSGNOG2 - Using communities for multihoming ISP workshop
SGNOG2 - Using communities for multihoming ISP workshopAPNIC
 
BGP (Border Gateway Protocol)
BGP (Border Gateway Protocol)BGP (Border Gateway Protocol)
BGP (Border Gateway Protocol)NetProtocol Xpert
 
PLNOG 13: Julian Lucek: Centralized Traffic Enginnering
PLNOG 13: Julian Lucek: Centralized Traffic EnginneringPLNOG 13: Julian Lucek: Centralized Traffic Enginnering
PLNOG 13: Julian Lucek: Centralized Traffic EnginneringPROIDEA
 
The benefit of BGP for every service provider
The benefit of BGP for every service providerThe benefit of BGP for every service provider
The benefit of BGP for every service providerThomas Mangin
 
BGP Protocol Makes the Internet Work
BGP Protocol Makes the Internet WorkBGP Protocol Makes the Internet Work
BGP Protocol Makes the Internet WorkIT Tech
 
BIGP- A New Single Protocol that can work as an IGP (Interior Gateway Protoco...
BIGP- A New Single Protocol that can work as an IGP (Interior Gateway Protoco...BIGP- A New Single Protocol that can work as an IGP (Interior Gateway Protoco...
BIGP- A New Single Protocol that can work as an IGP (Interior Gateway Protoco...IJORCS
 

What's hot (20)

Enhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOL
Enhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOLEnhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOL
Enhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOL
 
Border gateway protocol
Border gateway protocolBorder gateway protocol
Border gateway protocol
 
3 ip routing part b
3 ip routing part b3 ip routing part b
3 ip routing part b
 
Using BGP To Manage Dual Internet Connections
Using BGP To Manage Dual Internet ConnectionsUsing BGP To Manage Dual Internet Connections
Using BGP To Manage Dual Internet Connections
 
BGP protocol presentation
BGP protocol  presentationBGP protocol  presentation
BGP protocol presentation
 
Bgp (1)
Bgp (1)Bgp (1)
Bgp (1)
 
Border Gatway Protocol
Border Gatway ProtocolBorder Gatway Protocol
Border Gatway Protocol
 
3 ip routing bgp-updated
3 ip routing bgp-updated3 ip routing bgp-updated
3 ip routing bgp-updated
 
Bgp
BgpBgp
Bgp
 
Border Gateway Protocol
Border Gateway ProtocolBorder Gateway Protocol
Border Gateway Protocol
 
B G P O S P F Interaction Report
B G P  O S P F  Interaction  ReportB G P  O S P F  Interaction  Report
B G P O S P F Interaction Report
 
SGNOG2 - Using communities for multihoming ISP workshop
SGNOG2 - Using communities for multihoming ISP workshopSGNOG2 - Using communities for multihoming ISP workshop
SGNOG2 - Using communities for multihoming ISP workshop
 
Bgp in-large-networks
Bgp in-large-networksBgp in-large-networks
Bgp in-large-networks
 
BGP (Border Gateway Protocol)
BGP (Border Gateway Protocol)BGP (Border Gateway Protocol)
BGP (Border Gateway Protocol)
 
PLNOG 13: Julian Lucek: Centralized Traffic Enginnering
PLNOG 13: Julian Lucek: Centralized Traffic EnginneringPLNOG 13: Julian Lucek: Centralized Traffic Enginnering
PLNOG 13: Julian Lucek: Centralized Traffic Enginnering
 
bgp protocol
 bgp protocol bgp protocol
bgp protocol
 
The benefit of BGP for every service provider
The benefit of BGP for every service providerThe benefit of BGP for every service provider
The benefit of BGP for every service provider
 
BGP Protocol Makes the Internet Work
BGP Protocol Makes the Internet WorkBGP Protocol Makes the Internet Work
BGP Protocol Makes the Internet Work
 
Lec7
Lec7Lec7
Lec7
 
BIGP- A New Single Protocol that can work as an IGP (Interior Gateway Protoco...
BIGP- A New Single Protocol that can work as an IGP (Interior Gateway Protoco...BIGP- A New Single Protocol that can work as an IGP (Interior Gateway Protoco...
BIGP- A New Single Protocol that can work as an IGP (Interior Gateway Protoco...
 

Viewers also liked

Implementing Cisco IP Switched Networks
Implementing Cisco IP Switched NetworksImplementing Cisco IP Switched Networks
Implementing Cisco IP Switched NetworksArchana Parameshwari
 
Diet soda and weight loss: New study reignites debate
Diet soda and weight loss: New study reignites debateDiet soda and weight loss: New study reignites debate
Diet soda and weight loss: New study reignites debatebumpytechnique370
 
CISCO Exact Questions By: Konard
CISCO Exact Questions By: KonardCISCO Exact Questions By: Konard
CISCO Exact Questions By: KonardEng. Emad Al-Atoum
 
NAT- Network Address Translation
NAT- Network Address TranslationNAT- Network Address Translation
NAT- Network Address TranslationEng. Emad Al-Atoum
 
Regular Expression Patterns
Regular Expression PatternsRegular Expression Patterns
Regular Expression PatternsDuane Bodle
 
IPv4 Final /8 Delegation Report
IPv4 Final /8 Delegation ReportIPv4 Final /8 Delegation Report
IPv4 Final /8 Delegation ReportAPNIC
 
ISAM ALU 7360 5520_ihub_turn_up_procedure
ISAM ALU  7360 5520_ihub_turn_up_procedureISAM ALU  7360 5520_ihub_turn_up_procedure
ISAM ALU 7360 5520_ihub_turn_up_procedureWahyu Nasution
 
Encryption with DANE, NZNOG 2017
Encryption with DANE, NZNOG 2017Encryption with DANE, NZNOG 2017
Encryption with DANE, NZNOG 2017APNIC
 
BGP Techniques for Network Operators
BGP Techniques for Network OperatorsBGP Techniques for Network Operators
BGP Techniques for Network OperatorsAPNIC
 
APNIC Update - NZNOG 2017
APNIC Update - NZNOG 2017APNIC Update - NZNOG 2017
APNIC Update - NZNOG 2017APNIC
 

Viewers also liked (20)

Implementing Cisco IP Switched Networks
Implementing Cisco IP Switched NetworksImplementing Cisco IP Switched Networks
Implementing Cisco IP Switched Networks
 
Diet soda and weight loss: New study reignites debate
Diet soda and weight loss: New study reignites debateDiet soda and weight loss: New study reignites debate
Diet soda and weight loss: New study reignites debate
 
CCNA Dec, 2015 Questions
CCNA Dec, 2015 QuestionsCCNA Dec, 2015 Questions
CCNA Dec, 2015 Questions
 
CISCO Exact Questions By: Konard
CISCO Exact Questions By: KonardCISCO Exact Questions By: Konard
CISCO Exact Questions By: Konard
 
Fast and Easy Subnetting
Fast and Easy SubnettingFast and Easy Subnetting
Fast and Easy Subnetting
 
SIP PRIMER
SIP PRIMERSIP PRIMER
SIP PRIMER
 
NAT- Network Address Translation
NAT- Network Address TranslationNAT- Network Address Translation
NAT- Network Address Translation
 
NAT_Final
NAT_FinalNAT_Final
NAT_Final
 
Regular Expression Patterns
Regular Expression PatternsRegular Expression Patterns
Regular Expression Patterns
 
Vlan
VlanVlan
Vlan
 
IPv4 Final /8 Delegation Report
IPv4 Final /8 Delegation ReportIPv4 Final /8 Delegation Report
IPv4 Final /8 Delegation Report
 
ISAM ALU 7360 5520_ihub_turn_up_procedure
ISAM ALU  7360 5520_ihub_turn_up_procedureISAM ALU  7360 5520_ihub_turn_up_procedure
ISAM ALU 7360 5520_ihub_turn_up_procedure
 
Ams operations
Ams operationsAms operations
Ams operations
 
Encryption with DANE, NZNOG 2017
Encryption with DANE, NZNOG 2017Encryption with DANE, NZNOG 2017
Encryption with DANE, NZNOG 2017
 
BGP Techniques for Network Operators
BGP Techniques for Network OperatorsBGP Techniques for Network Operators
BGP Techniques for Network Operators
 
CCNA Quick Notes
CCNA Quick NotesCCNA Quick Notes
CCNA Quick Notes
 
APNIC Update - NZNOG 2017
APNIC Update - NZNOG 2017APNIC Update - NZNOG 2017
APNIC Update - NZNOG 2017
 
ASA CSC Module
ASA CSC Module ASA CSC Module
ASA CSC Module
 
CCNA 200-120 Exam Quick Notes
CCNA 200-120 Exam Quick NotesCCNA 200-120 Exam Quick Notes
CCNA 200-120 Exam Quick Notes
 
Ccna 200-120 Exam Dumps
Ccna 200-120 Exam DumpsCcna 200-120 Exam Dumps
Ccna 200-120 Exam Dumps
 

Similar to Cisco BGP Exam 642-661 Review Notes

Study Notes BGP Exam
Study Notes BGP ExamStudy Notes BGP Exam
Study Notes BGP ExamDuane Bodle
 
BGP Path Selection & Attributes BGP Weight & BGP AS-Path Prepending
BGP Path Selection & Attributes BGP Weight & BGP AS-Path PrependingBGP Path Selection & Attributes BGP Weight & BGP AS-Path Prepending
BGP Path Selection & Attributes BGP Weight & BGP AS-Path PrependingShawan Roy
 
Bgp For Presentation
Bgp For PresentationBgp For Presentation
Bgp For PresentationAlp isik
 
bgp features presentation routing protocle
bgp features presentation routing protoclebgp features presentation routing protocle
bgp features presentation routing protocleBadr Belhajja
 
SANOG23-BGP-Techniques.pdf
SANOG23-BGP-Techniques.pdfSANOG23-BGP-Techniques.pdf
SANOG23-BGP-Techniques.pdfGhulamIbneGhulam
 
IPv6 Routing.pdf
IPv6 Routing.pdfIPv6 Routing.pdf
IPv6 Routing.pdfniran10
 
Describe the different metrics that BGP can use in building a routing.docx
Describe the different metrics that BGP can use in building a routing.docxDescribe the different metrics that BGP can use in building a routing.docx
Describe the different metrics that BGP can use in building a routing.docxearleanp
 

Similar to Cisco BGP Exam 642-661 Review Notes (20)

Study Notes BGP Exam
Study Notes BGP ExamStudy Notes BGP Exam
Study Notes BGP Exam
 
BGP
BGP BGP
BGP
 
Bgp Toc
Bgp TocBgp Toc
Bgp Toc
 
Bgp training
Bgp trainingBgp training
Bgp training
 
Bgp attribute-case study
Bgp attribute-case studyBgp attribute-case study
Bgp attribute-case study
 
BGP.pdf
BGP.pdfBGP.pdf
BGP.pdf
 
BGP Path Selection & Attributes BGP Weight & BGP AS-Path Prepending
BGP Path Selection & Attributes BGP Weight & BGP AS-Path PrependingBGP Path Selection & Attributes BGP Weight & BGP AS-Path Prepending
BGP Path Selection & Attributes BGP Weight & BGP AS-Path Prepending
 
Bgp For Presentation
Bgp For PresentationBgp For Presentation
Bgp For Presentation
 
Week14 lec2
Week14 lec2Week14 lec2
Week14 lec2
 
Bgp
BgpBgp
Bgp
 
Bgp protocol
Bgp protocolBgp protocol
Bgp protocol
 
bgp features presentation routing protocle
bgp features presentation routing protoclebgp features presentation routing protocle
bgp features presentation routing protocle
 
SANOG23-BGP-Techniques.pdf
SANOG23-BGP-Techniques.pdfSANOG23-BGP-Techniques.pdf
SANOG23-BGP-Techniques.pdf
 
Part8-ibgp.pptx
Part8-ibgp.pptxPart8-ibgp.pptx
Part8-ibgp.pptx
 
B G P Part2
B G P  Part2B G P  Part2
B G P Part2
 
CCNP ROUTE V7 CH7
CCNP ROUTE V7 CH7CCNP ROUTE V7 CH7
CCNP ROUTE V7 CH7
 
07.bgp
07.bgp07.bgp
07.bgp
 
IPv6 Routing.pdf
IPv6 Routing.pdfIPv6 Routing.pdf
IPv6 Routing.pdf
 
Bigbgp
BigbgpBigbgp
Bigbgp
 
Describe the different metrics that BGP can use in building a routing.docx
Describe the different metrics that BGP can use in building a routing.docxDescribe the different metrics that BGP can use in building a routing.docx
Describe the different metrics that BGP can use in building a routing.docx
 

More from Duane Bodle

OSPF Beyond Stump-the-Chump_Interview_Questions - Part 01 -
OSPF Beyond Stump-the-Chump_Interview_Questions - Part 01 -OSPF Beyond Stump-the-Chump_Interview_Questions - Part 01 -
OSPF Beyond Stump-the-Chump_Interview_Questions - Part 01 -Duane Bodle
 
Cisco ASA Firewall Interview Question "aka Stump-the-Chump" Question # 01
Cisco ASA Firewall Interview Question "aka Stump-the-Chump" Question # 01Cisco ASA Firewall Interview Question "aka Stump-the-Chump" Question # 01
Cisco ASA Firewall Interview Question "aka Stump-the-Chump" Question # 01Duane Bodle
 
Project Business Case and Capital Justification for Implementation of Applica...
Project Business Case and Capital Justification for Implementation of Applica...Project Business Case and Capital Justification for Implementation of Applica...
Project Business Case and Capital Justification for Implementation of Applica...Duane Bodle
 
Surviving The Stump The Chump Interview Questions
Surviving The Stump The Chump Interview QuestionsSurviving The Stump The Chump Interview Questions
Surviving The Stump The Chump Interview QuestionsDuane Bodle
 
OSPF LSA Types Explained
OSPF LSA Types ExplainedOSPF LSA Types Explained
OSPF LSA Types ExplainedDuane Bodle
 
Troubleshooting BGP
Troubleshooting BGPTroubleshooting BGP
Troubleshooting BGPDuane Bodle
 
DBodle QoS Exam Study Notes
DBodle QoS Exam Study NotesDBodle QoS Exam Study Notes
DBodle QoS Exam Study NotesDuane Bodle
 
Basic BGP Trouble Shooting Candidate Screening
Basic BGP Trouble Shooting Candidate ScreeningBasic BGP Trouble Shooting Candidate Screening
Basic BGP Trouble Shooting Candidate ScreeningDuane Bodle
 
Cisco Exam # 642 611 Mpls Study Notes
Cisco Exam # 642 611 Mpls Study NotesCisco Exam # 642 611 Mpls Study Notes
Cisco Exam # 642 611 Mpls Study NotesDuane Bodle
 

More from Duane Bodle (9)

OSPF Beyond Stump-the-Chump_Interview_Questions - Part 01 -
OSPF Beyond Stump-the-Chump_Interview_Questions - Part 01 -OSPF Beyond Stump-the-Chump_Interview_Questions - Part 01 -
OSPF Beyond Stump-the-Chump_Interview_Questions - Part 01 -
 
Cisco ASA Firewall Interview Question "aka Stump-the-Chump" Question # 01
Cisco ASA Firewall Interview Question "aka Stump-the-Chump" Question # 01Cisco ASA Firewall Interview Question "aka Stump-the-Chump" Question # 01
Cisco ASA Firewall Interview Question "aka Stump-the-Chump" Question # 01
 
Project Business Case and Capital Justification for Implementation of Applica...
Project Business Case and Capital Justification for Implementation of Applica...Project Business Case and Capital Justification for Implementation of Applica...
Project Business Case and Capital Justification for Implementation of Applica...
 
Surviving The Stump The Chump Interview Questions
Surviving The Stump The Chump Interview QuestionsSurviving The Stump The Chump Interview Questions
Surviving The Stump The Chump Interview Questions
 
OSPF LSA Types Explained
OSPF LSA Types ExplainedOSPF LSA Types Explained
OSPF LSA Types Explained
 
Troubleshooting BGP
Troubleshooting BGPTroubleshooting BGP
Troubleshooting BGP
 
DBodle QoS Exam Study Notes
DBodle QoS Exam Study NotesDBodle QoS Exam Study Notes
DBodle QoS Exam Study Notes
 
Basic BGP Trouble Shooting Candidate Screening
Basic BGP Trouble Shooting Candidate ScreeningBasic BGP Trouble Shooting Candidate Screening
Basic BGP Trouble Shooting Candidate Screening
 
Cisco Exam # 642 611 Mpls Study Notes
Cisco Exam # 642 611 Mpls Study NotesCisco Exam # 642 611 Mpls Study Notes
Cisco Exam # 642 611 Mpls Study Notes
 

Cisco BGP Exam 642-661 Review Notes

  • 1. Overview: <br />What is BGP, where/when are we gonna use it ?<br />A) BGP is the successor of EGP [Exterior Gateway Protocol], and currently its the only EGP deployed. BGP is an Enhanced Distance Vector Protocol used in routing between Autonomous Systems [AS] “aka Interdomain Routing”, where an AS is a collection of networks under single administration. We use BGP in several occasions as Service Providers networks, Multihomed customers and large enterprise networks, etc…<br />BGP Basics:<br />Only one BGP process per router. <br />There is two types of BGP, IBGP & EBGP, if the as-numbers of the peering routers are the same then its IBGP, if they are different then its EBGP. <br />BGP uses AS numbers [1-64511] as public and [64512-65535] as private. <br />BGP uses TCP as its reliable transport protocol and it runs over TCP port 179. <br />The router with the higher router-id establishes the BGP peering session. <br />BGP uses Keepalive messages to detect the presence of its neighbor, Keepalive interval value is 60 sec, and Holdtime is 180 sec by default [1:3 ratio], Holdtime value is exchanged in the Open Message, and you can only modify the Holdtime value, BGP peers use the lower Holdtime value configured on either of them. <br />BGP uses triggered updates, 5 sec interval for IBGP and 30 sec interval for EBGP. <br />Mandatory well known attributes must exist in each routing update. <br />If multiple paths exist for the same network, only one is selected as the best route and the remaining routes are stored in the memory, Router propagates best routes only to its neighbors. <br />If multi path load sharing is enabled, router can select multiple paths to a single destination and installs them in the routing table, multiple path load sharing in BGP supports up to 16 paths. <br />Before a route is installed in the routing table, the router checks if its learned from another routing protocol rather than BGP, if it was learned from another routing protocol the router compares the Administrative Distance [AD] and prefers the lower. <br />BGP Split Horizon Rule: When a router receives an update it never sends it back to the source which it received from. <br />IBGP Split Horizon Rule: Routes learned from an IBGP neighbor is never sent to other IBGP neighbors, thus all IBGP routers inside an AS needs full mesh for consistent routing decisions. <br />AS-Path loop prevention mechanism: When a router receives an update containing its own AS number; it silently ignores the update. <br />EBGP peers should be reachable for all BGP speaking routers inside an AS, this is achieved by either redistributing connected interfaces of the EBGP peers into IGP, or run IGP over the EBGP peers interface and make them passive so that they don’t exchange IGP information, or finally use the “neighbor ip-address next-hop-self” command so that the edge router announces it self as the next hop for the IBGP peers. <br />BGP sessions can be initiated using loopback interfaces, IGP or Static Routes are used for providing reachability between loopbacks, also the update source for the BGP session should be modified in order to successfully establish the session using the “neighbor ip-address update-source loopback number” command. For EBGP sessions to be established successfully using the loopback interfaces you will need to use the “neighbor ip-address ebgp-multihop value“ command. <br />IGP is used inside an AS to provide full reachability required for establishing IBGP sessions, fast convergence in case of physical failure in one of the multiple paths between IBGP routers, and next hop resolving “aka recursive look up” for appropriate packet forwarding. <br />BGP Path Attributes:<br />Mandatory Well Known Attributes: <br />Next-hop:ip address of the router sending the updates, by default it changes when a route is advertised to EBGP neighbor but not when its advertised to IBGP neighbor. <br />AS-Path:Sequence of ASs path a route has traveled through. <br />Origin: Indicates how BGP learned the route [IGP - EBGP - ?]. <br />Discretionary Well Known Attributes: <br />Local Preference:used for consistent routing policy inside an AS. <br />Atomic Aggregate: informs a neighbor router that the originating router aggregated the routes. <br />Transitive Optional Attributes: <br />Aggregator:Specify the ip address and the AS number of the router that performed the aggregation. <br />Community: Route tagging mechanism used in filtering or route selection process. <br />Non-Transitive Optional Attributes: <br />Multi-Exit Discriminator [MED]: Discriminate between multiple exit points within an AS. <br />Cost Community: Used to influence best-path selection for IBGP and confederations only. <br />Originator-id: Used as a loop prevention mechanism in case of multiple Route Reflectors. <br />BGP Session Establishment Process:<br />Single BGP process is started on the router using “router bgp as-number” command. <br />Neighbors must be configured manually on both sides using “neighbor ip-address remote-as as-number“ command. <br />It uses TCP port 179 and the session of the router with the higher Router-id is retained. <br />The first state of the BGP session is IDLE which indicates that the router is currently not attempting any session establishment, for a router to change its IDLE state; the configured neighbor ip address should be reachable. <br />When peers are correctly configured the state is changes to ACTIVE which indicates that the router is actively sending connections attempts to its neighbor. <br />When the TCP connection attempt succeed, the router sends an Open Message containing BGP session information and changes the state to be OpenSent.The Open Message contains [BGP version number - AS of local router - Holdtime - Router-ID - Optional parameters]. <br />If the neighbor router accepts the parameters in the Open Message; it replies with its own Open Message, the local router receives the Open Message and changes the state to OpenConfirm, and it verifies the parameters of the neighbor router, if accepted a keepalive message is sent as signal of acceptance and then the state is changed to Established.<br /> Route Selection Criteria:<br />Next-hop: If not reachable the route is not installed in the routing table. <br />Weight: Local to the router. <br />Local Preference: Local within an AS. <br />Originated Routes: Routes originated using the network or summary commands. <br />AS-Path: Prefers the shortest path. <br />Origin Code: IGP < EGP < ? <br />MED: Prefers the lowest value. <br />EBGP routes over IBGP routes. <br />For IBGP: Prefers path via closest IGP neighbor [Next-Hop with lowest IGP metric]. <br />For EBGP: Oldest path. <br />Lowest BGP Router-id. <br />Advertising Networks:<br />There are three ways to announce networks into BGP:<br />Network command, Redistribution and Aggregation. <br />when either of the three ways is used the AS-Path will appear empty indicating that the route is locally originated, when the route traverses through other ASes, the forwarding router prepends its own AS number to the AS-Path. <br />Network command operates differently in BGP; indicates which routes will be injected in the BGP table not which interface will BGP run over. <br />Using a Route-Map with the Network command allows you to alter Weight, Local Preference, MED and tagging the route. <br />When redistributing routes into BGP, they carry an origin of incomplete “?“. – Conditional Route Injection: is injecting a route into BGP with no matching route in the routing table, this is achieved by using the “bgp inject-map map-name exist-map map-name” command. <br />Summarization & Aggregation:<br />Automatic summarization is enabled by default. <br />For a router to install a classful network in the BGP table when Automatic summarization is enabled; A classful network statement with a classful mask and at least one subnet of this classful network should exist in the routing table. <br />When Automatic summarization is enabled; all redistributed subnets will be summarized to their classful network. <br />When summarization is disabled, an exact match must be found in the routing table. <br />Aggregation is summarization of routes when it is advertised to other neighbors, and its configured using “aggregate-address ip-address mask”command. <br />For an aggregate route to be advertised to other neighbors; a route within the range of the aggregate must exist in the BGP table in order to install the aggregate in the BGP table. <br />By default both the aggregate and the specific routes are advertised to the neighbors, to advertise the aggregate only you will have to use the “summary-only” keyword with the aggregate command. <br />Securing BGP Peers:<br />MD5 authentication between BGP peers by using the “neighbor ip-address password password” command. <br />TTL-Security: The router compares the TTL value received with the locally configured hop count value, this option is supported for both directly connected and multihop EBGP peers. the command for this option is “neighbor ip-address ebgp-multihop ttl“; where TTL is a numeric value. <br />Multihoming:<br />Multihoming is a customer being connected to a single ISP with multiple links or connected to multiple ISP’s. <br />Multihomed customers should run BGP with their ISPs using public AS and provider independent address space. <br />Multihomed customers should advertise their own address space only to their ISPs and do not advertise routes learned from their ISPs do avoid acting as a Transit-AS between their ISPs. <br />For influencing Upstream ISP selection, Weight and Local Preference can be used inside a Multihomed Customer AS. <br />For influencing Downstream ISP selection, MED can be used if the customer is multihomed to a single ISP as MED doesn’t traverse through ASes, and AS-path Prepending can be used if the customer is multihomed to multiple ISPs because AS-path attribute traverses through ASes. <br />AS-Path Filtering:<br />Used to announce or accept prefixes based on AS-Path Attribute. <br />It uses Regular Expressions. <br />Its implemented on per neighbor basis. <br />Use “ip as-path access-list number [permit/deny] as-regular-expression” & “neighbor ip-address filter-list access-list-number [in/out]” commands. <br />Regular Expressions:<br />| –> Logical OR. <br />[123] [1-4]–> matches any single character from those between braces. <br />dot (.)–> matches any character, even if it was a space. <br />^–> matches beginning of the string. <br />$–> matches end of the string. <br />Underscore (_)–> matches any delimiter [beginning, end, space, tab, comma] <br />Braces ( ) –> matches two or more AS numbers. <br />> removes the meaning of the special character following it so it could be matched if found in an AS-Path eg. as () in confederations. <br />*–> character is repeated zero times or more. <br />?–> character is repeated zero or one time. <br />+–> character is repeated one or more times. <br />Prefix-List filtering:<br />Used to filter announce and accept specific prefixes. <br />It has some advantages over IP Access Lists as: Provide flexibility in editing, inserting and deleting individual lines, Matches based on subnetmask, etc… <br />Its implemented on per neighbor basis. <br />An with no Le/Ge matches exactly the specified prefix. <br />An entry with Le/Ge matches any route within the range specified. <br />Configuration example: <br />“ip prefix-list name seq number [permit/deny] prefix/length ge value le value” “neighbor ip-address prefix-list name [in/out]” “redistribute-list prefix-list name out routing-process“. <br />Out Bound Route Filtering [ORF]:<br />Its implemented on per neighbor basis. <br />Its a BGP feature that allows a router to accept a prefix-list from a neighbor and apply it to locally configured ORF neighbor. <br />A router can install an inbound prefix-list to a peer as an outbound prefix-list. <br />Its used to minimize the number of updates sent between neighbors and reduce system resources. <br />Configuration example: <br />“neighbor prefix-list name [in/out]” “neighbor capability orf prefix-list [send/receive/both]” <br />ORF message contains:<br />Address Family Information [AFI]/ Subsequent AFI <br />ORF types <br />When to refresh <br />List of ORF entries <br />ORF Types:<br />type 1 –> Network Layer Reachability Information [NLRI] <br />type 2 –> Communities <br />type 3 –> Extended Communities <br />type 128 –> Prefix-List <br />Route-Map Filtering:<br />Route-Map matches: prefix-list/access-list/route originator/next-hop/origin/AS-path/community/IGP tag/IGP type[internal/external]. <br />Route-Map can set: origin/next-hop/weight/local preference/MED/community. <br />IP Policy List: is grouping of route-map match clauses then attaching to route-map. <br />Its implemented on per neighbor basis. <br />Route Map Continue Cause: its like the match and the set causes of the route-map, when a match in the route-map is successful continue clause -if configured- jumps to a pre-specified route-map entry, the continue clause takes place if a match is successful, if not then it is ignored. <br />If the route-map has no match clause, the continue clause takes place automatically, if a match is successful the continue clause takes place, if not then it is ignored. <br />Configuration example: <br />“ip policy-list name [permit/deny]match [as-path/metric/community]route-map name permit seq-number match policy-map namematch ip address prefix-list namematch ip next-hop prefix-list namematch ip route-source prefix-list name continue seq-number neighbor ip-address route-map name[in/out]” <br />AS-Path Prepending:<br />Used to influence other ASes to select a specific return path towards an AS. <br />Used to distribute the load of returning traffic for multihomed customers, however in this case you will have to monitor the traffic and prepend AS to path as needed to accomplish the traffic load. <br />To avoid BGP AS-Path loop prevention mechanism, use only the AS number of the sending AS. <br />Service Providers use AS-Path filter to allow routes that are originated from Customers AS only, if the Customer is going to use AS-Path prepending the Service Provider will have to change their filter to allow AS-Path containing more than one copy of Customer’s AS number. <br />AS-Path prepending is applied using Route-Maps on per neighbor basis. ”route-map route-map-name permit 10 set as-path prepend as-no as-no as-no neighbor ip-address route-map route-map-name out”. <br />BGP hide local AS:<br />The “neighbor ip-address local-as as-number [no-prepend [replace-as [dual-as]]]” <br />no-prepend: does not prepend local AS number to any learned EBGP routes. <br />replace-as: replaces the local AS number with the one set int the command to the AS-path attribute. <br />dual-as: allows the establishment of EBGP sessions using either the real AS number or using the AS number set in the command. <br />This usually happens while connecting two different BGP networks with different AS numbers to not disturb the established peerings [i.e. when an ISP buys another ISP and merging both networks into only one network]. <br />Its drawback : if you configured the above command with an AS number that already exists for one of the IBGP peers, when this IBGP receives the route it will detect its own AS number in the AS path and it will ignore this route considering it as a routing loop. <br />Multi-Exit Discriminator [MED]:<br />MED is used to discriminate between multiple exit points within an AS. <br />MED is used to influence path selection in neighbor AS. <br />MED doesn’t traverse outside the receiving AS. <br />Default value is Zero and in comparison the lower value the better, to change the default value use “default-metric number” command. <br />MED can be set in ways: <br />Using a Route-Map <br />Inherited from an IGP by either using the BGP Network command or redistributing into BGP. <br />MED is compared when different values are received from same AS, if “bgp always-compare-med” is used MED from different ASes will be also compared. <br />In intra-confederations MED is not compared and to compare it “bgp bestpath med confed” should be used. <br />BGP sets a missing MED value to infinite value, however Cisco IOS does set it to Zero, to change this behavior of Cisco IOS the “bgp bestpath med missing-med-worst” command should be used. <br />“bgp deterministic-med” allows BGP to compare the MED values after the AS-Path attribute directly. <br />Communities:<br />Its a mean of tagging routes and used in filtering or route selection. <br />By default its stripped in outgoing BGP updates, to enable sending communities the “neighbor ip-address send-community” should be used in per-neighbor basis. <br />There is no limitation on the number of communities specified for a route. <br />Route-Map is used for setting the community value, it can be applied with redistribution, network command, neighbor command and aggregate command. <br />In Route-Map configuration, the “additive” keyword prepends new Community value to the existing Community values, if not used it will override the existing Community values. “set community value [value ...][additive]” <br />The “ip bgp-community new-format” command is recommended when the Community value contains AS numbers. <br />Community list “ip community-list 1-99 permit|deny value [value ...]”: <br />Values in one line must match to be accepted, if no matches the list acts as an Access-List and denies the route. <br />Keyword “internet” acts as permit any. <br />Extended Community list “ip community-list 100-199 permit|deny regexp” <br />Matches are based on regular expressions. <br />To match any use “.*” value. <br />Named Community list “ip community-list standard|expanded name permit|deny value|regexp”. <br />Sequenced Extended Community List “ip extcommunity-list 100-199|standard list-name permit|deny regexp” or “ip extcommunity-list 0-99|expanded list-name permit|deny [rt extcom-value][soo extcom-value]” <br />Allow automatic sequencing or resequencing for BGP Extended Community List <br />Allow insertion and deletion of lines in the BGP Extended Community List. <br />Rt: Specifies the Route Target of Extended Community attribute. <br />Soo: Specifies the Site Of Origin Extended Community attribute. <br />BGP Cost community “set extcommunity cost [igp] community-id cost-value” <br />Its a non-transitive attribute. <br />Its used to influence best-path selection for IBGP and confederations only. <br />Default value is 2147483647 and in comparison the lower value the better. <br />The keyword “IGP”influences the best-path selection at the POI [point of insertion] which follows the IGP metric comparison in BGP route selection criteria. In case if the POI step is not valid the cost community is silently ignored. <br />BGP Link Bandwidth:<br />Used for load balancing over unequal bandwidth links. <br />Enabled by using “bgp dmzlink-bw”. <br />Routes learned from a directly connected external neighbor propagates through the IBGP network with the bandwidth of the external link. <br />The “neighbor ip-address dmzlink-bw” command is used to advertise the bandwidth of links used to exit an AS, its configured on the DMZ interface that connect single hop EBGP neighbor. <br />Route Reflectors:<br />Route Reflectors are router running BGP that are allowed to break the IBGP loop prevention rules and advertise routes that are received from IBGP pears. <br />Route Reflectors eliminates the need of full mesh IBGP. <br />Route Reflector advertises the best routes only. <br />When Route Reflector receives a route update from a Route Reflector Client; it sends the route to all other peers. <br />When Route Reflector receives a route update from a Non Route Reflector Client; it sends the route to all of its Clients and EBGP peers only. <br />When a Route Reflector Client receives an IBGP route update; it sends it to EBGP neighbors only. <br />When a Route Reflector Client receives an EBGP route update; it sends it to all of its neighbors. <br />In case of redundant Route Reflectors; Route Reflector Clusters is used to prevent routing loops, the Route Reflector adds Cluster-id and Originator-id to the advertised route updates. <br />Originator-id is a non-transitive optional attribute. <br />When a Route Reflector receives a route update with its own Cluster-id; it silently ignores the route update. <br />When a Route Reflector Client receives a route update with Originator-id same as its Router-id; it silently ignores the route update. <br />When a Route Reflector receives two IBGP route updates; the non reflected route update [the one with no Originator-id] is preferred. <br />When a Route Reflector receives two IBGP route updates ; the one with the shortest Cluster-list is preferred. <br />Route Reflector configuration: <br />“neighbor ip-address route-reflector-client” <br />“bgp cluster-id cluster-id” <br />Confederations:<br />Confederations splits the AS into smaller ASes to reduce the number of BGP sessions needed for full mesh IBGP. <br />Confederations eliminates the need of full mesh IBGP, however its needed inside each Confederation which can be achieved by setting a Route Reflector inside the Confederation. <br />When communicating to real EBGP neighbors, internal ASes are hidden and only one external AS is announced to all real EBGP neighbors. <br />Intra-Confederation EBGP sessions are used between Member-ASes, however it is slightly different from the Real EBGP sessions as is behaves like IBGP in passing BGP attributes as Local-Preference, MED, Next-Hop. <br />Entire Confederation should use same IGP as they all use same Next-Hop ip- addresses. <br />Intra-Confederation AS-Path appears between parentheses ( ). <br />To configure Confederations: <br />Start the BGP process with the Member-AS number. <br />Set the external “Real” AS number. <br />List all Member-ASes of the Confederation on each router with EBGP Session. <br />“router bgp member-as” “bgp confederation identifier external-as” “bgp confederation peers list-of-member-as” <br />Peer Groups:<br />Used to configure multiple neighbors with similar requirements, also used as a BGP performance enhancement tool since the router builds a single update for all Peer Group members which reduces the CPU load. <br />IBGP & EBGP neighbors cannot be mixed in one Peer Group. <br />Peer Group parameters can be overridden by per-neighbor configurations on incoming updates only. <br />Peer Group configuration: “neighbor group-name peer-group” “neighbor group-name bgp-parameters” “neighbor ip-address peer-group group-name” <br />Route Dampening:<br />Used to reduce processing load caused by flapping routes. <br />IBGP routes are not dampened. <br />When an EBGP route flaps it gets 1000 Penalty Points, when the Penalty Points exceeds the Suppress Limit the route is dampened. The Penalty Points decay through the use of a decay algorithm, when it drops below the reuse limit the route is re-advertised. <br />Flapping history of a route forgotten after the Penalty drops below than half of the Reuse Limit. <br />After enabling Route Dampening; routes in the BGP Table are never removed, the route is kept in the BGP Table and marked as history “h”. <br />To enable Route Dampening, the “bgp dampening [half-life reuse suppress max-suppress-time] [route-map route-map-name] command is used. <br />half-time -> time for penalty to decrease to half [default value is 15 minutes]. <br />suppress -> limit in which penalty of a route exceeds the route is suppressed [default value is 2000]. <br />reuse -> limit in which penalty of route drops below, the route is unsuppressed [default value is 750]. <br />max-suppress-time -> no route is suppressed longer than this duration [default value is 60 minutes & maximum us 255 minutes]. <br />Useful commands: <br />To clear the statistics of routes flaps “clear ip bgp flap-statistics”. <br />To release Dampened Routes “clear ip bgp dampening”. <br />“show ip bgp dampened-paths”. <br />“show ip bgp flap-statistics [ regexp regexp | filter-list access-list | ip-address mask [longer-prefix] ]”. <br />