当前位置:网站首页>Solve the horizontal segmentation of iBGP and BGP routing principles
Solve the horizontal segmentation of iBGP and BGP routing principles
2022-07-26 20:33:00 【Guan Bolan,】
solve IBGP Horizontal segmentation problem of
IBGP Horizontal segmentation : To prevent the generation of loops
Method 1: Routing reflectors (RR)

Cluster_list( Cluster list ) If in a AS among , There are multiple reflections , Then there must be multiple reflection clusters , Then each RR When reflecting the routing information, local clusters will be added to the cluster list attribute ID. When a device receives a reflected routing message , The cluster list attribute contains local clusters ID, You will no longer learn this route , To prevent the generation of loops .
[r3-bgp]peer 2.2.2.2 reflect-client --- Appoint R2 As a reflective customer , At the same time R3 Automatically become RR

Method 2: The federal
The federal approach is also equivalent to breaking IBGP The horizontal division of , Then there may also be loop questions topic , You need to consider anti ring . The anti ring method can be directly used for reference EBGP Horizontal segmentation , stay AS_PATH Add members to the attribute AS No. to prevent backtransmission . Be careful , To distinguish members AS And normal AS, member AS The number will be enclosed in parentheses .

Configuration of federation :
BGP The principle of road selection

1. optimization PV Routes with large attribute values
hypothesis R1 Publish two routing entries on 1.0.0.0 10.0.0.0 ,R4 adopt BGP Peer relationship , It can be downloaded from R2 and R3 I learned two ways to go 1.0.0.0 10.0.0.0 The routing entry for . When adding a table to a route, only the best one will be selected , Therefore, the routing can be affected by configuration .
Method 1 : Global modification
[r4-bgp]peer 3.3.3.3 preferred-value 100
This 100, It's modified PV value . The meaning of this order is : As long as it is 3.3.3.3 Inform to R4 The routing , These routes PV The fields are all changed to 100.
Method 2 : Fine control
1. Grab traffic
[r4]ip ip-prefix PV permit 10.0.0.0 24
2. Routing strategy
3.BGP Call policy
2. optimization LP Routes with large attribute values
3. According to the priority of the route entry publishing method
The priority of self initiated routes is higher than that learned from peers , The priority relationship of the route originated by itself is manual aggregation > Automatic aggregation > network > import
4. optimization AS_PATH Attribute the shortest route
AS_PATH Attribute when selecting a route , Be careful :1. When performing route aggregation , If activated AS_SET After keyword , Will be different AS Aggregate detailed routes , Will be in AS_PATH Attribute carries all details AS Of AS Number , And enclose it with braces . When comparing routes , The contents of braces are treated as a AS No . 2, In the union , We also need to make AS_path To protect the environment , We will use parentheses to put AS Put the numbers around , When comparing routes , Don't count the contents in parentheses .
5. Choose the route with the best origin code attribute . Priority of origin code ---I > E > ?
OGN Origin code : Used to identify the origin of routing entries
I --- Represents that the routing information originates from IGP agreement ( Not limited to IGP agreement , Including static , Direct connection ), Represents that the route entry originated from AS Inside --- adopt network The origin code of the published routing information is I
E --- Represents that the routing information originates from EGP agreement ---EGP refer to BGP The external gateway protocol used before
6. optimization MED Routes with small attribute values
边栏推荐
- Gartner发布最新《中国AI初创企业市场指南》,弘玑Cyclone再次被评为代表性企业
- Chat software project development 2
- App uploader download and installation
- Introduction to component functions of blueprism process business object Chapter 3 of RPA
- EasyCVR设备管理列表页面,分页数据不显示的问题修复
- Cookie和Session
- BUU刷题记3
- A little cool, explore space with.Net Maui
- What functions does the medical live broadcast platform need
- this指向-超经典面试题
猜你喜欢

YGG cooperates with my pet hooligan, AMGI's flagship NFT project, to enter the rabbit hole

The Sandbox 和艺术家 Alec Monopoly 达成合作

BGP--边界网关协议

Chat software project development 2

BUU刷题记-网鼎杯专栏2

MySQL之InnoDB引擎(五)

Software testing - development test content specification (project test template)

QT驾校科目考试系统——从实现到发布

Summary of message queue knowledge points

BGP的路由黑洞和防环
随机推荐
Do employees have to compensate the company for losses when they resign? The 34 year old captain resigned and was claimed 10.66 million yuan by the company
Leetcode-300 最长递增子序列
一维数组定义与使用
Typescript asynchronous function promise use
内网渗透学习(二)信息收集
小公司小而美的产品,如何突围?
Nmap installation and use
Shell script basic programming commands
深度可分离卷积(DepthwiseSeparableConvolution):Depthwise卷积与Pointwise卷积
员工辞职还得赔偿公司损失?34岁机长辞职被公司索赔1066万
20220726
Bean注入和生命周期
实验5 OSPF综合实验
从零开始搭建etcd分布式存储系统+Web管理界面
Servlet
第二章:遇到阻难!绕过WAF过滤!【SQL注入攻击】
tf.GraphKeys
884. 两句话中的不常见单词-哈希表
一文读懂 Kubernetes的四种服务类型!
谷歌的新编程语言被称为 Carbon