当前位置:网站首页>[BGP] small scale experiment
[BGP] small scale experiment
2022-07-29 03:46:00 【Yunsheng】
Catalog
2. The experimental requirements :
(1) Network wide accessibility
(2) stay AS2 Zhongqi RIP( dynamic )
(3)R1,R2 Write static R3,R4 Write static
Static configuration : ( With R4,R5 For example )
RIP To configure ( Dynamic protocols are used for AS2 Inside )
R1 Loopback ping R4 Loopback :
R1 Loopback ping R5 Loopback :
1. The topology :

2. The experimental requirements :
(1) Network wide accessibility
(2) Use BGP
3. Experimental thinking :
(1) To configure IP Address
(2) stay AS2 Zhongqi RIP( dynamic )
(3)R1,R2 Write static R3,R4 Write static
(4) rise BGP
(5) test
4. Configuration command :
To configure IP:





Static configuration : ( With R4,R5 For example )


RIP To configure ( Dynamic protocols are used for AS2 Inside )



BGP To configure :





test :
R1 Loopback ping R4 Loopback :

R1 Loopback ping R5 Loopback :

Summary :
This small experiment : Use of the BGP The basic configuration of , The follow-up editorial meeting will release relevant BGP Detailed knowledge of .
Add :
BGP: Border gateway routing protocol Classless path vector EGP agreement ;
EGP Class of routing protocols , be used for AS And AS Share routing entries between ;
AS Number 0-65535 Standard No , among 1-64511 public 64512-65535 private
32 Bit binaries are built as extension numbers ;
Design features :
1、 reliability — A large number of routes are shared , Cancel periodic update TCP 179 Port operation
TCP Unicast communication only BGP The protocol requires unicast to establish a neighbor relationship ( Manually specify the neighbor's ip Address )
BGP You can build a neighbor through indirect connection (peer),BGP Carried on IGP above ;
2、 Controllability --- Jianlin 、 Route announcement 、 Routing control ( Interference in routing )-- It is extremely easy to
3、AS-BY-AS With a AS For a jump
BGP: Border gateway routing protocol
One 、 Working in AS And AS Between EGP Category agreement ;
AS— Autonomous systems standard AS The length of No. is 16 position —0-65535
among 1-64511 public 64512 -65535 private
Expand AS Number length 32 position about 42 Billion
BGP The agreement is different AS Shared routes between , Isolate two when working AS The internal network of , Form an independent interaction space ; At the same time, powerful strategies can be implemented to interfere with the route selection ;
IGP Pursuit : Fast convergence Choose a path ( acyclic ) Less occupied resources hop-by-hop
EGP Pursuit : Controllability reliability AS-BY-AS
Controllability —BGP The protocol is not the generator of the route , For the carrier only , And AS There should be a large number of links to ensure stability ; so BGP It is difficult for the routing items passed by the protocol to default to the best routing ;-- The administrator needs to carry out a large number of policies on routing to interfere with routing ;
reliability —BGP Like the distance vector protocol, the protocol only passes routing entries , But the amount of updates is still very large ;
In order to avoid the occupation of equipment resources, incremental update is selected --- Only trigger 、 No period
Therefore, it is necessary to ensure that all routes are delivered in place — reliable therefore BGP Based on the agreement TCP Work
TCP The triple handshake condition of makes TCP Can only work based on unicast , meanwhile BGP Non direct connection and neighbor building are required ;
BGP be based on IGP above , First IGP send BGP Equipment room IP Can be up to , then BGP Can be based on TCP Establish indirect neighbors ;
AS-BY-AS— With a AS For a jump , Will a AS As a whole ;
Two 、BGP characteristic :
Classless path vector ----- Upgraded version of distance vector ---AS--BY--AS
Use unicast updates to send all information ; be based on TCP 179 Port operation
Incremental updating -- Trigger only aperiodic
Have rich attributes to replace IGP Route selection based on measurement ---- Multiple parameter control protocol
You can implement a strong strategy for traffic in and out -- Controllability
The default is not used for load balancing ----- Only one optimal path is generated through various routing rules
BGP Support authentication and aggregation ( Summary )
3、 ... and 、BGP Data packets be based on TCP Of 179 Port operation ; so BGP All data packets in the protocol need to be in tcp After the session is established , be based on TCP To ensure the transmission and reliability ;
First, through TCP Three handshakes to find a neighbor ;
Open Only responsible for the establishment of neighborhood relations , Normal receiving and sending can be done once ; carry route-id,hold time Default 3min
Keeplive Keep alive cycle 1min Query whether the neighbor relationship exists ; Actually keep alive TCP conversation ;
Update Carry routing entries Target network number + Various attributes
Notification Send and receive error data ;
Four 、BGP Working process of
The administrator defines the neighbors ip Address , The premise is that the neighbors ip Can be up to ; --- IGP Can be up to
start-up BGP After the agreement , First, the target port is 179 Conduct TCP Three handshakes to establish TCP Conversation ;
After the session is established , Send and receive open Message to establish neighbor relationship , Generate neighbor table ;
After the neighbor relationship is established , Use between neighbors update Shared routing entries , After receiving and sending the routing information , Locally generated BGP surface ;
Bgp The table loads all routing entries sent and received locally ;
Then the router will BGP The best path in the table ( Not necessarily the best choice , Only for BGP The parameters are optimal ) Loaded in the routing table ;
Convergence complete ! only keeplive Keep the cycle alive ;
Structural mutation :
New network segment – BGP The update source device will use update To inform all the local neighbors
Disconnect the network segment – BGP The update source device will use update To inform all the local neighbors
Unable to communicate – 3min hold time When the time comes, disconnect the neighbors and TCP conversation , Then delete all the information learned from the neighbor ;
BGP Updating the source device does not necessarily directly connect to the disconnected or newly added network segment devices , Instead, the first one will publish the route to BGP Router in the protocol ;
5、 ... and 、 Professional terms :
EBGP External BGP Neighborhood , The two are in different positions AS Of BGP The neighbor relationship established between routers
IBGP Inside BGP Neighborhood , Two are in the same AS Internal BGP The established neighbor relationship between routers
It's not easy to create , Thank you for your support , I hope it can help everyone who works hard !!
边栏推荐
- Casbin入门
- How to judge stun protocol
- The difference between /g /m /i of JS regular expressions
- How to understand clock cycle and formula CPU execution time = number of CPU clock cycles / dominant frequency
- 《陌路曾相逢》夏陌沈疏晏_夏陌沈疏晏最新章节
- Exness: dove resolution helped gold rebound, and the focus turned to U.S. GDP
- Connection broken by 'readtimc rt-443): read timed out (read timeout=l5)“)‘: /pac
- Typescript from getting started to mastering (19) enumeration types
- String template of ES6 new features and methods to simplify objects and functions
- RHCE的at,crontab的基本操作,chrony服务和对称加密和非对称加密
猜你喜欢

1. Mx6u driver development-2-led driver

Vs code must know and know 20 shortcut keys!

(2022 Hangdian multi school III) 1002 boss rush (pressure dp+ dichotomy)

Batch production and upload sales NFT opensea eth polygon

实例搭建Flask服务(简易版)

容斥原理

KNN method predicts pregnancy, KNN principle simple code

Sunflower senior product director technology sharing: "how to apply national remote control" in AD domain environment

@Configuration (proxybeanmethods = false) what's the use of setting this to false

Typescript from getting started to mastering (XVI) configuration file - first knowledge of compileroptions configuration item
随机推荐
Why is continuous integration and deployment important in development?
最新二开版漫画小说听书三合一完整源码/整合免签接口/搭建教程/带采集接口
Why BGP server is used in sunflower remote control? Automatic optimal route and high-speed transmission across operators
容斥原理
MOS管 —— 快速复苏应用笔记(贰)[参数与应用]
What you see and think in Microsoft
1. Header file - Comment - namespace - standard input / output stream
(2022 Hangdian multi school III) 1002 boss rush (pressure dp+ dichotomy)
The latest second edition of comic novels, listening to books, three in one, complete source code / integrated visa free interface / building tutorials / with acquisition interface
Excel拼接数据库语句
How fast does it take to implement a super simple programming language?
Exness: dove resolution helped gold rebound, and the focus turned to U.S. GDP
Kotlin companion object vs global function
Remote desktop connection error
Several cases of word wrapping in div
Why do many programmers hate pair programming?
Flask framework operation database_ Add, delete, modify and query statements
Shutter start white screen
(2022杭电多校三)1002-Boss Rush(状压DP+二分)
Batch production and upload sales NFT opensea eth polygon