You are on page 1of 1
Understanding BGP Attributes & Decision Process BGP s2eg8, 3cSagp:qéo3 Network Prefix (BGP aocdledisaeg8,8q& NLRI: Network Layer Reachability Information <8,cogS:edI dloxS) 28,0070 Destination o28903e0p058,spaa0g05 noSové:efoqpE:ore$a90:005 / 6920052802008 052(§058 990305 29, gra008go5cor0} REropbeagrqoSqeo$ sasoheogs203b:ofiesr65%{go5dloo0Su FHIls02H saqfQdoyoyBteooorFqiahqScor HoSoRcSo3Egso:c0p58 sa0g AcoHeoseco:ss§$o2h: goscopdesarEapSarqdleB$ocSu H83E:025egsqoSo3sxe08e03 (Best Path Selection Process) 08 ecegcusa&yo safogbiq/b:s90s88 ,cfGpqooSa8q Si AHoSogrrqEoscsepr}oqpo5§, epsaego5 008900088 ,odcobiefospE:cog (Prefixes) Scg5ocSa8q 6 Brorrevrcobzc[osp&io8 aooSeB8Er09 52005 Borg poersanr{g§ o80So30:q803 Prefix o> 10.2.0.0/16 803018 1 358 Prefix 8 sepc58, epsa0g08 cobsefay&: 9 98 50S8qScor cooduno3frorr:ev:0008eg:qoScdedhu Cisco 4, Algorithm saqsacgoSefGrqeu$8q8 99§$se:{g¢ BGP Table 0503 338 Prefix maoc$ap$:cSmrargb:00 egeqoSG:8e55a005 7 onspdiaen1[g§ Install apScorr0D058803 loppsd:s0G $03 oz05 8: Bror:cor0d:{goSdloo0Su sa§§cocoSads Prefix c2co08uo$:or8608 30300 w§SsocoSab: Prefix ogo3uoBroncur8, so§$safoqna}:00 cooeBior:cuisaess ogiqoS aG:fgbdloo0Su 8 so05goScox03 Decision Process (sss) GogMvoS:or:08¢o ocovseadiaoess, afgdocso8oSp8R:Gc0r:quodssqoSeog (Prerequisites) §Pleoos0005u HdlsonMe0r- §dlo5 o - Next-hop IP Address 09 orgaS:ongabs8, (ofgd0es) cep iceprdS$EqdlooS: orgaS:aa03[9§ Reachable [gSqec$edh $105 J - RoSogrraSosagepo}pespo5§, spsacgos ag:qoSquepco8:efospEr03q 080$4,g00 AS Number dlesc$ oqdlog: (Slose029 BGP 4. sae[gd0q03 Loop ofgsosaé (Prevention) ox0gcScor03s0qo5d))u $0105 9 - s20205qj BGP Synchronization «8 Enable opScorrecSaq61 IGP Routing Table (Global RIB) o3q> Candidate Prefix or§e§§:a02:{gSqdleoSu IGP 390305 OSPF ofo8:00n2G e088 qEcorp a005go5caor0} Router ID o> OSPF §, BGP Process $5 7005:390203096gq0lo209 (BGP Synchronization 3 Enable cpSconocSa8q6 Internal BGP o> Learn op8cont03 Prefix o> o30$4, Global RIB o3¢> IGP megareoSqficon:om (Learn) apScor0ne§a&i 338 Prefix 03 3So%So3Ecopb:ea}:000$1 External BGP Neighbor o3copS: Advertise oapSdloy)1 dlo5 g - sp8apsehoobielop6:4, BGP Prefix o2 BGP Dampening c&con:f9S:0§.qdlapen (BGP Dampening «802026027 BGP Learn Prefix sogo> Underlay Network Stable afgc8, safaspE:on899efo39§ Prefix cozomamn Flapping (oongSoBB(Sbq6) GRE: Learn cpSgosss0p05efo=9$ BGP Process oman ofgcogEo3ao0go5efop& Protection Feature sacs, 3% Flap (g8ag0:03 Prefix cogo> Suppress CQ8RSx{§8d10208)n 4005 9 - BGP Inbound Soft Reset o Enable cpSoor:G00Sa8q8 338eg:o0$ Candidate Prefix o> BGP Outbound Policy Filter opScor(g&:e§qdlogen 338 &d8 o mes $dlo5 9 08 w8o[gSarqQo5eo3 (Prerequisite) osgo:cophofoSp8apehgicor og§co2503, BGP Best Path Selection sraoscogHocngenrobgr1 crgpbisani{9$ 338 Attribute GORG, 204) :s00r:6003s0200008 Bar8dlean:00051 BGP Attribute qo s080rg78@ J e§dloooSu 1. Well-known Attribute §. 2. Optional Attribute &G:§dloscS: Well-known Attribute o3 J 900$s0c$: Optional Attribute Bcogd: j poo8gdlosoSu 1. Well-known Attribute 1a. Mandatory Attribute (Well-known Mandatory Attribute) 1b. Discretionary Attribute (Well-known Discretionary Attribute) 2. Optional Attribute 2a. Transitive Attribute (Optional Transitive Attribute) 2b. Non-transitive Attribute (Optional Non- transitive Attribute) Well-known Attribute coj02e022 epSa09 BGP Implementation goes8 dlo&o3 Router 038 Neighbor 0386024, BGP Message 392 Well- known Attribute cogo8go:c0g58,cBa0c8 coo ddlo88 copS:c8sa8dlosSi §:c027 BGP Neighbor RExoopS: coBao$orbrqivo8,cGdlooeSu Mandatory Attribute eo202c07) BGP Process 4, Message RE:go efgdocsdlRdlqoo$ Attribute sog{gddlooeS (pveosee53, Mandatory Attribute g03026029 Origin, AS-Path §, Next-Hop Attribute 08 [gSdloo0S) Discretionary Attribute cog02c0x7 BGP Process 9. Message o3&:¢0 ofgSocsdlo&oep oc$coer$ 338 Attribute cogo3co09 sorcopScoSdevrqdlooS (gxe»s0e88, Discretionary Attribute co20¢02) Local Preference &, Atomic Aggregate 08 [gSdlos0S) Optional Attribute eoge2e027 or, Vendor e030 RSBEcB:00§ o§o3:coaSSco2:03 Attribute [gSB:coxp BGP Implementation 038: edlo&eog8:qoo8: combed EcopS:qdloooSu Transitive Attribute cog0>2c02) Router 00694, BGP Process <9 938 Attribute momcdhonesdog: Sleoec$cop8: Neighbor 03 comdac§ar8scopS:qa0081 cosan8eor8:evpS:qdlosoSu Non-transitive Attribute eo302c022 Router 02594, BGP Process 39 om Attribute Sorcph:ea8a0$ Neighbor ofcopS:conSso8emb:dlagen 338 Attribute e003 22080805 Best Path Selection mavbsrcséseananfajpbqesa06- # s0008 0 (WEIGHT) - BGP Attribute 4, Category sacs8,a$qEcor Optional (§88:cox Cisco 4, Administrative Attribute copS:fgédlooc$ Optional [gSo3se0g05e[o39§ BGP 4, Update Message od¢> edloSeogb:qan08: coodsedeEcopSeqoloooSu - 8 Parameter (Attribute) 702) Locally Significant Value [g8dlo00S (Locally Significant s80x006009 388 Parameter co34, Value o> Process 20203 sofgpr Router sog™, ogo5qo>geogqoogr saOfpoordeeprdge§ daa poeosarg$ Router §, Host Name c$ Parameter cogeq)) - Cisco Specific Parameter dfgédloo0Si - 20205 o8¢$eo Outbound Traffic sx0305 Uplink $599Sq 6 s38sSq0rpd:00 odpoaregeqdqScrSaho6 8 Parameter 0} Inbound Traffic ¢2 Apply/Set cSdloocSu - Outbound Traffic Decision 320305 Inbound ¢> Apply c9&G:a5:dlos0Su - Parameter Value [6§:022038: Prefer [g8dlooc5: (Higher/Heavier Value is Prefer) - Locally Originate Path 4, Weight o> 32768 [g8:c0291 on8{ep: Prefix cogss0705026097 0 (Zero) [gSdloo0Su - Weight Parameter s20305 Configure o98q9> Neighbor o089q8:8o98300c$ route-map § copdzag208 qdlooeSu - Weight 320305 Parameter Value o>c077 0 o§ 65535 odiooeS1 - Route-map §,<8q80> “set weight <0 - 65535>” BHF, O5:5lOD051 # s2a08 ) (LOCAL PREFERENCE) - BGP Attribute §, Category s9eg8,<8q&eo2) Well- known Discretionary (95: ofgSecsdlo&oep ec8coee$ 8 Attribute cozo3c029 sorcopSeoo8dcurqdlocSu - Local AS s0038:03,08 Significant {503 Attribute [g8G:cox9 Same AS 2003892803 Router co20> Local Preference Value [63:03 Router 3 Exit Router Begs ogrqoSdloocSu - Higher Value o> Prefer {g8:c0>7 Default Value m 100 [gSdloo0Su - Default Value 100 o3 BGP 4, Process o—> “bgp default local-preference <0-4294967295>” §,cop: Default Value AEER:a2008905c8 copdzqdleaa:09051 - agcop8: Outbound Traffic Decision s20305 Inbound ¢2 Apply 9S :a%:dlos0Si - Route-map §,s203:{5/8:eo0> “set local-preference <0-4294967295>" of:dloscSi - sx0005q] LOCAL_PREF o29005¢05c0:§:a02:0$q 8009 “set local-preference <0-4294967295>”" omasicd ogdlogen # 0008 9 (Originate/Locally Generated) - BGP Attribute §, Category s9e88,<8q&eo2) Well- known Discretionary [g8&: ofgSocsdlo&oep oc8evc0$ #8 Attribute cozo3c009 sorcopSeoo8dcvrqdlocSu - Prefix ob gss0g05 aapod8Eo03cobiefspE:0o andpoohGrGesdooSehqé External Route 005 Local Route o3f:orr:c0reg:qSdlooeSu - “network command”, “redistribute command” §, "aggregate-address command” 08,0509 00899, Prefix e030 Generate/Advertise o6c$ ,qdlooci - 8 command 9 90502025995, Prefix eo) Advertise cqScor:Gs 338 Prefix 005 BGP process 02500808 oo8{go: BGP Router 0 learn -y83c8, 88: o28[sp: BGP Router 903 Prefix 0} Best Path s26§$,eeg:dlopz1 - Local Path sees, Best Path BegroSa8q&cor “network command’ 8, Advertise «9803 Prefix GogO voowsren:e0:, “redistribute command” 3, Advertise «7803 Prefix coga> go8uos:or:eo:§, "aggregate-address command” 8, Advertise c9603 Prefix eo200 orc8anf:or:cu:s068§, saohao§Sron:cu:eg:dloo0S AS100 o Locally Generate 9803 3.3.3.3/32 prefix 3, External AS200 o Generate 9603 3.3.3.3/32 prefix oR fG$Edos051 - Redistribution Command 3, Inject 02803 Prefix 6024 Origin Code o “Unknown’” [9860231 Network Command 8, Inject «703 Prefix e024 Origin Code o> “IGP” [gSdloo08 powrsan:[gé- router bgp 100 network 3.3.3.3 mask 255.255.255.255 R1#sh ip bgp 3.3.3.3 BGP routing table entry for 3.3.3.3/32, version 36 Paths: (2 available, best #1, table Default-IP- Routing-Table) Flag: 0x820 Advertised to update-groups: 1234Local0.0.0.0 from 0.0.0.0 (10.1.1.1)Origin IGP, metric 0, localpref 100, weight 32768, valid, sourced, local, best 20010.1.12.2 from 10.1.12.2 (10.2.2.2)Origin IGP, metric 0, localpref 100, valid, external router bgp 100 redistribute static sh ip bgp 3.3.3.3 BGP routing table entry for 3.3.3.3/32, version 39 Paths: (3 available, best #1, table Default-IP- Routing-Table) Flag: 0x820 Advertised to update-groups: 1234 Local 0.0.0.0 from 0.0.0.0 (10.1.1.1) Origin incomplete, metric 0, localpref 100, weight 32768, valid, sourced, best 300 200 10.1.13.3 from 10.1.13.3 (10.3.3.3)Origin IGP, localpref 100, valid, external20010.1.12.2 from 10.1.12.2 (10.2.2.2)Origin IGP, metric 0, localpref 100, valid, external router bgp 100 aggregate-address 3.3.3.0 255.255.255.0 summary-only network 3.3.3.3 mask 255.255.255.255

You might also like