Presentation is loading. Please wait.

Presentation is loading. Please wait.

Shishio Tsuchiya shtsuchi@cisco.com BGP談議 ~add-pathとdiverse-pathのお話~ 何か持っていると言われ続けてきました。今日何を持っているのか確信しました・・・それは BGPバックアップパス Shishio Tsuchiya shtsuchi@cisco.com.

Similar presentations


Presentation on theme: "Shishio Tsuchiya shtsuchi@cisco.com BGP談議 ~add-pathとdiverse-pathのお話~ 何か持っていると言われ続けてきました。今日何を持っているのか確信しました・・・それは BGPバックアップパス Shishio Tsuchiya shtsuchi@cisco.com."— Presentation transcript:

1 Shishio Tsuchiya shtsuchi@cisco.com
BGP談議 ~add-pathとdiverse-pathのお話~ 何か持っていると言われ続けてきました。今日何を持っているのか確信しました・・・それは BGPバックアップパス Shishio Tsuchiya

2 そもそもBGPって 1989年にY.レクターとK.ラフィードがカフェでナプキンに 書いたのが始まり
そのナプキンを元に最初の接続実験実施RFC1105 そのナプキンは額縁に入れてシスコに飾られてる ケチャップで、ものすごく汚れていた

3 そもそもBGPって RFC1771が1995年3月に発行 IBM:Y. Rekhter& Cisco Tony.Li draft-ietf-idr-bgp4-01~26まで改訂し、2006年1月に RFC4271を発行した。

4 どこで決めてるの? IETFでは主に2つ IDR(Inter Domain Routing Group)とGROW(Global Routing Operations) IDR Working Group GROW Routing Area Operation & Management BGP4のIPv4/IPv6でBGPv4のの利用のサポート 頑健性/拡張性の改善 目的 BGP4のIPv4/IPv6での利用の際の運用的問題の考慮 45個(Obsoleteも含む) Standardが中心 RFC 6個 BCPとInfo.

5 BGPの特徴 RFC4271の9.2. Update-Send Processでは他のBGPス ピーカーに伝えるルートは決定プロセスにより、選ばれ たものを伝えなければならない事を定義している。 全く同じアドレスPrefix/NLRIのものの複数パスの広告 は許されていない。 以前アドバタイズされたルートと同じNLRIをもつルート は暗黙のうちに取り換えられる。

6 バックアップパスがあればできる事 ファーストコンバージェンス マルチパスロードバランス 安定性と正確性の向上
バックアップパスがあれば重要障害時もローカルで切り替え可能 マルチパスロードバランス 安定性と正確性の向上 MED Churn によるルートグラつき(oscillation) RFC3345 IETFでは現在add-path や diverse-pathという ソリューションが議論され、標準化中

7 バックアップパスを伝える手法 BGP add-path BGP Best External + Fullmesh
BGP Diverse Path

8 add-pathって何だろう? 通常のBGP add-path
10/8,AS_PATH:64500,64501,NH: 10/8,AS_PATH:64510,64511,NH: add-path 10/8,ID=1,AS_PATH:64500,64501,NH: 10/8,ID=2,AS_PATH:64510,64511,NH:

9 add-path詳細 Capability Exchange
| Address Family Identifier (2 octets) | | Subsequent Address Family Identifier (1 octet) | | Send/Receive (1 octet) | BGPピアにてCapability Exchangeを行う(RFC3992) Capability Valueは69 Send/Receiveでマルチパスを Receive(=1),Send(=2),Both(=3)可能かを示す

10 add-path詳細 NLRI Encoding
Extended NLRI Encoding | Path Identifier (4 octets) | | Length (1 octet) | | Prefix (variable) | NLRI Encoding RFC4271,RFC4760 | Length (1 octet) | | Prefix (variable) | UPDATEメッセージの中に4オクテットのPATH IDを含む 為に、Path Identifierフィールドをつける RFC3107でも同様にLengthの前部につける

11 バックアップパスを伝える手法 BGP add-path BGP Best External + Fullmesh
BGP Diverse Path

12 BGP Best External MEDの値により、R2ではいつもiBGPが選択される R3では代替えパスを持たない
e 10/8 MED100 i 10/8 MED 200 R1 iBGP MED:100 10/8 R3 eBGP i 10/8 via R1 MED100 MED:200 i 10/8 MED100 e 10/8 MED 200 R2 MEDの値により、R2ではいつもiBGPが選択される R3では代替えパスを持たない R1障害時にはWITHDRAWN/UPDATE、書き換えが行わ れる

13 BGP Best External Best Externalを有効にする R2では全体でベストパスを選出する(MEDにより選出)
e 10/8 MED100 i 10/8 MED 200 R1 iBGP MED:100 10/8 R3 eBGP i 10/8 via R1 MED100 i 10/8 via R2 MED200 MED:200 i 10/8 MED100 e 10/8 MED 200 (Best External ) R2 Best Externalを有効にする R2では全体でベストパスを選出する(MEDにより選出) R2では外部経路の中のみでのベストパスを選出する(Best External) R3では代替パスを持つことが出来る

14 バックアップパスを伝える手法 BGP add-path BGP Best External + Fullmesh
BGP Diverse Path

15 diverse-pathって何だろう? R1はMED100,R2はMED200とする Best Externalを有効にする
iBGP R1 eBGP RR1 MED:100 10/8 10/8 via R1 via R2 R3 MED:200 RR2 R2 R1はMED100,R2はMED200とする Best Externalを有効にする RR1,RR2ではR1およびR2経由のパスを持つ つまりRRではパスダイバーシティ(diverse-path)を持つ。

16 diverse-pathって何だろう? RRではMEDの値よりR1経由がベストと判断する RRはベストパスをアドバタイズする
iBGP R1 eBGP RR1 MED:100 10/8 10/8 via R1 via R2 R3 MED:200 10/8 via R1 RR2 R2 RRではMEDの値よりR1経由がベストと判断する RRはベストパスをアドバタイズする R3はR2経由のパスを知ることが出来ない

17 diverse-pathって何だろう? diverse-pathを分配する為、新しいRRを追加
iBGP R1 eBGP RR1 MED:100 RR’1 10/8 R3 RR’2 MED:200 RR2 R2 diverse-pathを分配する為、新しいRRを追加 2nd Plane RR/Shadow RRという RRとShadow RRはiBGPピアを設定しない

18 diverse-pathって何だろう? RRとRR’はR1経由がベストと計算する。 RR’ではベストパスを排除、残りのパスで再計算する
iBGP R1 eBGP RR1 10/8 via R1 via R2 MED:100 RR’1 10/8 R3 RR’2 MED:200 10/8 via R1 via R2 10/8 via R1 via R2 RR2 R2 RRとRR’はR1経由がベストと計算する。 RR’ではベストパスを排除、残りのパスで再計算する RR’ではR2経由を見つけ、2nd Bestと認識する。 RR’ではR2経由をベストパスとしてアナウンスする R3ではdiverse-pathを持つ

19 バックアップパスを伝える手法 solution add-path BGP Best External +Full mesh
diverse-path internet-draft draft-ietf-idr-add-paths draft-ietf-idr-best-external draft-ietf-grow-diverse-bgp-path-dist Intend to Standard Informational Author Cisco,Juniper Cisco(was with Juniper) Cisco,Verisign,KDDI 概要 BGPプロトコル拡張 ASBRの機能拡張 RRの機能拡張 導入手法 全てのルータがサポート (ASBR,RR,ABR) ASBRがサポート iBGP フルメッシュが必要 RRがサポート ASBR/ABRでのShadow RRへのセッション追加

20 FIBの構造の違い-Prefix Independent Convergence-
BGP net oif BGP net BGP net oif BGP net BGP LDI IGP LDI oif BGP net oif BGP net IGP LDI oif 階層構造のFIB フラット構造のFIB Transcript: So this is just to compare and contrast what it means to be a non-optimal way of FIB organization or (inaudible) organization. Here BGP prefixes are really the curse of nature so that means BGP prefixes point to a next hop which is resolved by an IGP prefix which is resolved by an actual outgoing interface. If you were to take a simple way of programming the forwarding with respect to the actual result of (inaudible) then that means the BGP prefixes directly point to the interfaces and these interfaces are governed by how the IGP prefixes are resolved, or the BGP next hop is resolved. If you do it this way, then it is clearly non-optimal because when there is an IGP convergence that affects a BGP next hop, in addition to populating the IGP prefixes themselves, we now need to find out how the BGP prefixes have changed. And if it goes from oif1 to oif2 then all the BGP prefixes need to be repopulated all the way from the control plane to FIB to take advantage of the new interface that is going out and that is clearly prefix dependent and it is proportional to the number of BGP prefixes that are there in the network. And this is clearly a non-optimal way of handling the convergence. AUDIENCE QUESTION: You mentioned about that next hop for the BGP needs to be calculated first for the EGP, right? Am I understand right? That the convergence is done for that, for the next hop, which is somehow there is a relation between EGP and the BGP. So you do the converged calculation SPF for the next hop in the first place? PRADOSH MOHAPATRA: Uh-huh. So yes, I mean, the IGP convergence happened first, which basically means whenever there is a link failure you need to advertise the new set of LSPs or the LSAs, plug the new LSAs. So the ingress router gets to know about it, recomputes the SPF, whether it be an incremental SPF, and figures out that there is a change to either all the IGP prefixes or some set of IGP prefixes. Only those set of IGP prefixes get downloaded from the IGP to RIP to FIB. Author’s Original Notes: In classical flattened FIB with a realistic time of 10 usecs for one oif update on one network, this would mean 3.5 secs of dedicated CPU time just for the FIB update. フラット構造のFIBでは全てのコントロールプレーンはフラットに 扱われ、BGP FIBはそれぞれoifを持つ 障害が起こると1prefix毎にoifの書き換えが行われる 階層構造では即座にIGP収束後、即座に書き替えが行われる

21 FIBの構造だけでどれだけ違うのか? R1-R2,R3はiBGP,エミュレータより350Kルートを広告
eBGP R2 350k R1 R3 R1-R2,R3はiBGP,エミュレータより350Kルートを広告 R1-R2間のリンクに障害を発生させる 複数フローにて収束時間を測定 1,500,1K,3K,5K,10K,30K,50K,100K,200K,300K,350K番目

22 Convergence Time比較 フラット構造のFIB(SRB1) vs 階層構造のFIB(SRE2)
BGPテーブルの場所により 収束時間が増加 場所に依存せず収束

23 まとめ まだまだBGPは拡張し続けてる 高速コンバージェンスの為には代替パスを如何に伝え るかがポイント
add-pathではプロトコルを拡張 diverse-pathはRRの機能を拡張 Full meshであればBest Externalも使用可能 代替パスがあればPICで高速切り替え可能

24 参考 IETF Internet Draft Advertisement of Multiple Paths in BGP
Distribution of diverse BGP paths Advertisement of the best external route in BGP Cisco Document BGP ベストパス選択アルゴリズム BGP Best External BGP PIC Edge for IP and MPLS-VPN

25 参考資料 NANOG48 Add Paths Overview To Add-Paths or Not Add-Paths RIPE61
BGP Add-Paths BGP Diverse Paths

26


Download ppt "Shishio Tsuchiya shtsuchi@cisco.com BGP談議 ~add-pathとdiverse-pathのお話~ 何か持っていると言われ続けてきました。今日何を持っているのか確信しました・・・それは BGPバックアップパス Shishio Tsuchiya shtsuchi@cisco.com."

Similar presentations


Ads by Google