当前位置:网站首页>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 .
边栏推荐
- Redis Key-Value数据库 【高级】
- Contest3147 - game 38 of 2021 Freshmen's personal training match_ G: Flower bed
- JWT工具类
- Let every developer use machine learning technology
- DRM display framework as I understand it
- No subject alternative DNS name matching updates. jenkins. IO found, the reason for the error and how to solve it
- 如何使用MITMPROXy
- LeetCode 47. 全排列 II
- Leverage Google cloud infrastructure and landing area to build enterprise level cloud native excellent operation capability
- Classic literature reading -- deformable Detr
猜你喜欢
ROS create workspace
Eco express micro engine system has supported one click deployment to cloud hosting
浏览器原理思维导图
Contest3147 - game 38 of 2021 Freshmen's personal training match_ 1: Maximum palindromes
ROS2----LifecycleNode生命周期节点总结
Redis key value database [primary]
DRM display framework as I understand it
Can't the dist packaged by vite be opened directly in the browser
Classic literature reading -- deformable Detr
Keepalived installation, use and quick start
随机推荐
MUI底部导航的样式修改
Zabbix Server trapper 命令注入漏洞 (CVE-2017-2824)
From design delivery to development, easy and efficient!
Lambda expressions and method references
ROS create workspace
51 single chip microcomputer - ADC explanation (a/d conversion, d/a conversion)
PHP gets CPU usage, hard disk usage, and memory usage
LeetCode 78. 子集
Cookie plugin and localforce offline storage plugin
Community theory | kotlin flow's principle and design philosophy
浏览器原理思维导图
495.提莫攻击
ZABBIX server trap command injection vulnerability (cve-2017-2824)
Some experience of exercise and fitness
使用sha256文件验证下载的文件
VRRP之监视上行链路
深度学习分类网络--VGGNet
keepalived安装使用与快速入门
Zhuanzhuanben - LAN construction - Notes
Current situation analysis of Devops and noops