【正文】
告給新相鄰體 北航計(jì)算機(jī)網(wǎng)絡(luò)實(shí)驗(yàn) 10 BGP同步 EBGP EBGP RTB RTC IBGP RTA RTD RTE RTF S0:E0:S0:S1::AS100 AS200 AS300 目的地址 NEXTHOP 來源 RTB BGP RTD IGP 北航計(jì)算機(jī)網(wǎng)絡(luò)實(shí)驗(yàn) 11 成為 BGP路由的途徑 BGP的路由信息需要通過配置命令的方式注入到 BGP中 ? 純動(dòng)態(tài)注入 將 IGP發(fā)現(xiàn)的路由全部注入 ? 半動(dòng)態(tài)注入 有選擇的注入 IGP發(fā)現(xiàn)的路由 ? 靜態(tài)注入 注入靜態(tài)配置的路由 北航計(jì)算機(jī)網(wǎng)絡(luò)實(shí)驗(yàn) 12 成為 BGP路由的途徑之一:純動(dòng)態(tài)注入 OSPF RTB AS200 把 OSPF ( IGP )發(fā)現(xiàn)的路由 、 。 下面給出的是 BGP報(bào)文頭 : M a r k e r ( 1 6 b y t e )L e n g t h ( 2 b y t e ) T y p e ( 1 b y t e )北航計(jì)算機(jī)網(wǎng)絡(luò)實(shí)驗(yàn) 18 Open報(bào)文 V e r s i o n1 2 3 4 5 6 70 1 2 3 4 5 6 70 1 2 3 4 5 6 70 1 2 3 4 5 6 70M y A u t o n o m o u s S y s t e mH o l d T i m eB G P I d e n t i f i e rO p t i o n a l P a r a m e t e r s L e nO p t i o n a l P a r a m e t e r sOpen報(bào)文是由報(bào)文頭加如下結(jié)構(gòu)構(gòu)成的。 北航計(jì)算機(jī)網(wǎng)絡(luò)實(shí)驗(yàn) 20 Update報(bào)文 U n f e a s ib l e R o u t e s L e n g t h1 2 3 4 5 6 70 1 2 3 4 5 6 70 1 2 3 4 5 6 70 1 2 3 4 5 6 70W it h d r a w n R o u t e sP a t h A tt r i b u t e L e n g t hP a t h A tt r i b u t e sN e t w o r k L a y e r R e a c h a b il it y I n f o r m a t i o nUpdate報(bào)文由報(bào)文頭加如下結(jié)構(gòu)構(gòu)成。 北航計(jì)算機(jī)網(wǎng)絡(luò)實(shí)驗(yàn) 22 BGP協(xié)議的狀態(tài)機(jī) Active Opensent Openconfirm Established Idle Connect ConnectRetry timer expiry TCP connection fails ConnectRetry timer expiry Start Others TCP connection fails Error Error Error KeepAlive timer expiry KeepAlive packet received 1. KeepAlive timer expiry 2. Update received 3. KeepAlive received Correct OPEN packet received TCP connection setup TCP connection setup Others 北航計(jì)算機(jī)網(wǎng)絡(luò)實(shí)驗(yàn) 23 BGP協(xié)議中消息的應(yīng)用 ?通過 TCP建立 BGP連接時(shí),發(fā)送 open消息 ?連接建立后,如果有路由需要發(fā)送或路由變化時(shí),發(fā)送 UPDATE消息通告對(duì)端路由信息 ?穩(wěn)定后此時(shí)要定時(shí)發(fā)送 KEEPALIVE消息以保持 BGP連接的有效性 ?當(dāng)本地 BGP在運(yùn)行中發(fā)現(xiàn)錯(cuò)誤時(shí),要發(fā)送 NOTIFICATION消息通告 BGP對(duì)端 北航計(jì)算機(jī)網(wǎng)絡(luò)實(shí)驗(yàn) 24 主要內(nèi)容 ?實(shí)驗(yàn)原理 ?BGP協(xié)議概述 ?BGP報(bào)文種類 ?BGP路由屬性 ?BGP路由聚合 ?BGP路由策略和路由過濾 ?實(shí)驗(yàn)內(nèi)容 ?注意事項(xiàng) 北航計(jì)算機(jī)網(wǎng)絡(luò)實(shí)驗(yàn) 25 BGP的路由屬性 ?表達(dá)了路由的特征 ?過渡和非過渡的 ?必遵和可選的 ?便于擴(kuò)展 ?截至目前共 16種屬性 北航計(jì)算機(jī)網(wǎng)絡(luò)實(shí)驗(yàn) 26 常見 BGP路由屬性 Origin ASPath Next hop MED LocalPreference AtomicAggregate Aggregator Community OriginatorID ClusterList 1 Destination Pref (MCI) 1 Advertiser (Bay) 1 RcidPath (Bay) 1 MP_Reach_NLRI 1 MP_Unreach_NLRI 1 Extended_Communities 北航計(jì)算機(jī)網(wǎng)絡(luò)實(shí)驗(yàn) 27 起點(diǎn) (Origi