当前位置:网站首页>BGP biplane architecture
BGP biplane architecture
2022-06-25 03:48:00 【m0_ fifty-three million sixty-five thousand four hundred and ni】

requirement :PC1,PC3,PC5 Route for the telecommunication plane ,PC2,PC4,PC6 Route for the connection surface . Under normal circumstances , The telecommunication route goes AS1, The Unicom route goes AS2, When R9 And R1 In case of line failure between , The route of telecommunication plane is changed R4 Then back AS1
Route analysis
Normal condition
【1】PC1,PC2 visit PC5 Route through R9 Came to AS1 Of R1 On , As a result of the full interconnection to build neighborhoods ,R1 Will receive two PC5 The routing , One is R5(IBGP) Given , The other is R2(EBGP) Given . stay BGP Under the default configuration of , because R2 to R1 Routing of AS-PATH The attribute is long , therefore R1 Will be preferred R5 The routing . therefore PC1,PC2 Of the traffic will pass through R1 Forwarding to R5,R5 In comparison R12 and R6 To arrive PC5 After routing, the priority is R12, Final PC1,PC2 The route of R9–R1–R5–R12 arrive PC5
【2】PC3,PC4 visit PC6 The flow routing principle is the same as above , The final course R10–R4–R8–R12 arrive PC6
【3】 Under default configuration ,R12 From R5 and R8 Received from PC1,2,3,4 The routing , according to BGP According to the route selection rules of R12 It is better to choose from R5 What we learned from routing . therefore PC5,6 Of traffic will only pass through AS1 arrive PC1,2,3,4R9 And R1 line fault
【1】 After line failure PC1,2,3,4 Of traffic can only pass through AS2 Came to PC5,6. according to AS2 The right way , The flow path is (R9)–R10–R4–R8–R12
【2】 Link failure ,AS1 adopt AS2 Learning to PC1,PC3 After routing, it will be transmitted to R12, because AS-PATH The attribute is long ,R12 Will be preferred R8 The routing , Lead to PC5,6 The traffic will only be R8 transit ,PC1,2,3,4 The traffic will only be R4 transit
Custom strategy
- Normal condition
After analysis, we get , Under normal circumstances PC2,PC3 To the flow and PC6 The return flow is not as expected , Route selection intervention is required . To prevent mutual interference between attributes , It is recommended to use PreVal Attribute intervention routing .
Modify the telecommunication interface (PC1,3,5) The routing community attribute is 100:*
Connecting surface (PC2,4,6) The routing community attribute is 200:*
The purpose of the community attribute is to match multiple routes at one time
R9 Grasp the route 
route-polocy Modify the community attribute 
In the neighborhood R10 The outgoing call of route-policy
R10,R12 Empathy
After the R10 Hold on to 100.* The routing , And in the neighborhood R9 Call the policy up 


R10 Empathy
R12 You need to put R8 The given community attribute is 200 The routing of PreVal enlarge 


test :
PC1,PC3 The flow to meet the expectations 
PC5 The return flow is as expected 
PC2,PC4 The flow to meet the expectations 
PC6 The return flow is as expected 
- R9 And R1 Link failure
After analysis, we get , When the link fails ,R12 Preferably from R8 Learned routes , Must let 100 The route continues R5 Will be in R5 And R12 Change the direction of entry PreVal


stay R5 And R12 After the policy is called in the direction of , It does R5 Yes 100 The right way , But because of R5 Will receive IBGP Neighbors and EBGP Neighbors' about 100 The routing . When the line is OK ,EBGP The routing of neighbors AS-PATH Long , therefore R5 Will choose IBGP The routing of neighbors , At this time, the line fails ,AS1 Only from AS2 Received information about 100 The routing , Route selection rules EBGP>IBGP, therefore R5 It is better to choose from EBGP Routes learned from neighbors , The problem is that the route will go through R5 arrive R6, Not in line with expectations .
To solve this problem, we need to AS1 Increase on 100 route PreVal Let the route go back to R3 On
AS1 All modified PreVal, The last configured router will really become the router through which the traffic passes ,R3 Finally, configure it
R1, The same goes for other routers
PC5 After the route intervention of the return route is successful, it still needs to intervene PC1,2 The route to . Go through as expected R4 go to R3, So you need to be in R4 Catch up 100 The routing , And in R3 And R4 The input increases upward PreVal, Give Way 100 The route of R4 To AS1

test :
PC1,PC3 The flow to meet the expectations
PC5 The return flow is as expected
PC2,4,6 Unaffected
- R9 And R1 Link returns to normal
After returning to normal 100 Will be routed by R9,R2,R3 Give them to R1, Because I was just AS1 Modified on 100 Of PreVal, therefore R1 Will choose R3 Route to , Will lead to PC5 The return flow will pass through R3 Round to R4 As a result, the route is not selected

Observe BGP You can see the route to let R1 Believe in R9 The routing , Only need R9 And R1 The input is modified upwards PreVal The value of and R3 The consistency of , According to the routing rules EBGP>IBGP,R1 It is better to choose from R9 Received at about 100 The routing 

test
PC5 The return flow returns to normal 
边栏推荐
- Is it safe to open an account with flush securities?
- Tensorflow, danger! Google itself is the one who abandoned it
- Is it safe to open an account on the compass? Is it reliable?
- Wechat development related
- C语言数组与结构体指针
- Is it safe to open an account on your mobile phone?
- Program. Launch (xxx) open file
- 威马招股书拆解:电动竞争已结束,智能排位赛刚开始
- 谷歌创始人布林二婚破裂:被曝1月已提出与华裔妻子离婚,目前身家6314亿美元...
- Tencent Open Source Project "Yinglong" est devenu un projet Apache de haut niveau: l'ancien Service à long terme Wechat payment, peut maintenir un million de milliards de niveaux de traitement de flux
猜你喜欢

香蕉为什么能做随机数生成器?因为,它是水果界的“辐射之王”

【Rust投稿】捋捋 Rust 中的 impl Trait 和 dyn Trait

EasyNVR使用Onvif探测设备失败,显示“无数据”是什么原因?

什么是SSL证书,拥有一个SSL证书有什么好处?

Seata四大模式之TCC模式详解及代码实现

How far is the memory computing integrated chip from popularization? Listen to what practitioners say | collision school x post friction intelligence

Xidian AI ranked higher than Qingbei in terms of AI majors, and Nantah ranked the first in China in 2022 in terms of soft science majors

Zuckerberg's latest VR prototype is coming. It is necessary to confuse virtual reality with reality

可能是拿反了的原因

Redis related-01
随机推荐
程序猿职业发展9项必备软技能
Easynvr fails to use onvif to detect the device. What is the reason why "no data" is displayed?
Maintenant, les oreilles vont entrer dans le métacosme.
Now, the ear is going into the metauniverse
Skywalking implements cross thread trace delivery
大咖说*计算讲谈社|如何提出关键问题?
站在风暴中心:如何给飞奔中的腾讯更换引擎
ASP.NET会议室预约小程序源码 预约小程序源码
Randla net: efficient semantic segmentation of large scale point clouds
SkyWalking 实现跨线程 Trace 传递
Rebeco: using machine learning to predict stock crash risk
Tai Chi graphics 60 lines of code to achieve classic papers, 0.7 seconds to get Poisson disk sampling, 100 times faster than numpy
协作+安全+存储,云盒子助力深圳爱德泰重构数据中心
居家办公之后才明白的时间管理 | 社区征文
香蕉为什么能做随机数生成器?因为,它是水果界的“辐射之王”
[FPGA] serial port controls temperature acquisition by command
后台页制作01《ivx低代码签到系统制作》
发布功能完成02《ivx低代码签到系统制作》
Is it safe to open an account online? How to open an account?
Amazon's other side in China