当前位置:网站首页>State machine in BGP
State machine in BGP
2022-07-02 06:09:00 【Hot pot means red pot】
BGP State machine

Idle The initial state
BGP The agreement was initially in Idle state , Start to prepare TCP Connect to and monitor remote peers . In this state , The system does not allocate any resources , And refuse all those who enter BGP Connect . Only received Start Event when , Only then allocates BGP resources , start-up ConnectRetry timer , Start on other BGP Transport layer connection of peers , It also listens for connection requests from other peers .Connect Retry The timer will increase in series
Connect Connection status
In this state BGP wait for TCP Complete the connection , Then decide the follow-up action :
- If the connection is successful , Local emptying ConnectRetry timer , And send OPEN message , And then the state changes to OpenSent state ;
- The connection fails ,BGP Will continue to listen for connections from neighbors , Reset Connect Retry Timer and transfer your state to Active state
- Connect Retry Time out , Reset ConnectRetry timer , Try to establish with your neighbors again TCP Connect ,BGP keep Connect state , When other events occur, turn Enter into Idle state .
Active active
Underway TCP Connect , Waiting for completion , authentication It's all in TCP Completed during establishment .
- If TCP Successful connection ,BGP take Connect Retry The timer is cleared , Initialization complete , Send to neighbors Open Message and set the status to Open,hold Time is set to 4mins .
- If in Active state ,Connect Retry The timer times out and returns Connect Status and reset Connect Retry timer .
- If you try with an unknown IP establish TCP conversation , meanwhile Connect Retry Timer reset , Reject the connection and keep Active state .
- Any event will lead to a return Idle
OpenSent Parameter negotiation status
In this state ,TCP The connection has been established successfully , Start sending to neighbors Open Message packet , meanwhile BGP Waiting for the neighbor to send open Message packet ;Open The packet carries parameters to negotiate the establishment of peers .
- received open news , If something goes wrong , Will send a notification Message and set the status to Idle .
- If you receive open The package message is right , Will send keeplive Give it to your neighbor , And establish IBGP perhaps EBGP The state is set to Open confire state .
- If you receive TCP Disconnect the message and disconnect BGP Connection reset Connect Retry timer , The state is set to Active .
OpenConfirm Parameter validation status
In this state , Parameters 、 Negotiation of capability characteristics succeeded , Send it yourself Keepalive package ,BGP wait for KEEPALIVE or NOTIFICATION message . If you receive KEEPALIVE message , entering Established state , If you receive NOTIFICATION message , It becomes Idle state .
- If you receive one keeplive Message packet , Will set the status to Establish .
- If you receive notification Message packet , Will set the status to Idle And disconnect TCP Connect .
- If hold The timer timed out , An error is detected or stop events ,BGP Will send a notification And disconnect , Then the state is set to Idle .
Established Build success
In this state , ** Have received the other party's Keepalive package , The capability characteristics of both parties are found to be consistent through negotiation ,**BGP You can exchange with other peers UPDATE,NOTIFICATION,KEEPALIVE message .
- If you receive the correct UPDATE or KEEPALIVE message , It is considered that the opposite end is in normal operation , Local reset Hold Timer.
- If you receive NOTIFICATION message , Go locally to Idle state .
- If you receive the wrong UPDATE message , Local delivery NOTIFICATION Message notification to peer , And change the local state to Idle.
- If received TCP Chain removal notice , Local shutdown BGP Connect , And back to Idle state .
边栏推荐
- Verifying downloaded files using sha256 files
- I/o impressions from readers | prize collection winners list
- On Web server
- 神机百炼3.52-Prim
- 深度学习分类网络--VGGNet
- Database learning summary 5
- Lambda 表达式 和 方法引用
- [C language] screening method for prime numbers
- Some experience of exercise and fitness
- Introduce uview into uni app
猜你喜欢

借力 Google Cloud 基础设施和着陆区,构建企业级云原生卓越运营能力

keepalived安装使用与快速入门

Frequently asked questions about jetpack compose and material you

Google Play Academy 组队 PK 赛,正式开赛!

The official zero foundation introduction jetpack compose Chinese course is coming!

Contest3147 - game 38 of 2021 Freshmen's personal training match_ A: chicken

VRRP之监视上行链路

Compte à rebours de 3 jours pour l'inscription à l'accélérateur de démarrage Google Sea, Guide de démarrage collecté à l'avance!

Contest3145 - the 37th game of 2021 freshman individual training match_ H: Eat fish

From design delivery to development, easy and efficient!
随机推荐
cookie插件和localForage离线储存插件
CNN可视化技术 -- CAM & Grad-CAM详解及pytorch简洁实现
Flutter hybrid development: develop a simple quick start framework | developers say · dtalk
步骤详解 | 助您轻松提交 Google Play 数据安全表单
Can't the dist packaged by vite be opened directly in the browser
Current situation analysis of Devops and noops
Web页面用户分步操作引导插件driver.js
BGP 路由优选规则和通告原则
Mock simulate the background return data with mockjs
Addchild() and addattribute() functions in PHP
在uni-app中引入uView
STC8H8K系列汇编和C51实战——串口发送菜单界面选择不同功能
如何使用MITMPROXy
Data playback partner rviz+plotjuggler
Stc8h8k series assembly and C51 actual combat - serial port sending menu interface to select different functions
Happy Lantern Festival | Qiming cloud invites you to guess lantern riddles
Deep learning classification network -- alexnet
Servlet web XML configuration details (3.0)
Nacos 启动报错 Error creating bean with name ‘instanceOperatorClientImpl‘ defined in URL
500. 键盘行