当前位置:网站首页>图解网络:什么是虚拟路由器冗余协议 VRRP?
图解网络:什么是虚拟路由器冗余协议 VRRP?
2022-07-02 23:39:00 【InfoQ】
什么是VRRP?
- 英文全称:Virtual Router Redundancy Protocol
- 中文名称:虚拟路由器冗余协议
- 协议:IETF – RFC 3768
- 组播地址:224.0.0.18
- 网络层协议
- 协议号:112
VRRP术语
- VRRP 路由器:运行 VRRP 的路由器,可能属于一个或多个虚拟路由器。
- 虚拟 IP 地址:IP 地址被分配为来自本地子网的虚拟 IP 地址。
- 虚拟MAC地址:以十六进制的最后8个字节作为VRRP组号,自动生成一个虚拟MAC地址。
- 主路由器:主路由器是根据优先级选出的,如果 VRRP 组的某个组成员的优先级高于其他组成员,则它将被选为主路由器。
- 备份路由器: VRRP 组成员中只有一个成为主路由器,其他成员将成为备份路由器,如果主路由器发生故障,则其中一个备用路由器将成为主路由器。
VRRP工作原理




VRRP三种状态

Initialize 初始状态
- Initialize状态代表VRRP 不可用,处于 Initialize 状态的设备无法处理 VRRP 通告报文。
- 当 VRRP 进程启动时或者设备处于主备状态并检测到故障时,进入初始化状态。
Master 活动状态
- 路由器获取到虚拟地址。
- 承担流量转发。
Backup 备份状态
- 路由器正在启动或准备好获取虚拟地址,以防主设备出现故障。
- 不会承担流量转发。
VRRP选举机制

案例



- 路由器和传入数据包的身份验证方案不同。
- 路由器和传入数据包的 MD5 摘要不同。
- 路由器和传入数据包上的验证字符不同。
VRRP其他小点
VRRP抢占
VRRP 版本
- VRRPv2:支持 IPv4
- VRRPv3:支持 IPv4 和 IPv6

VRRP认证


VRRP优点
- VRRP 在网络网关处提供故障转移/冗余。
- 没有单点故障,因为备用设备配置为在主设备发生故障时接管。
- 故障转移发生得很快(通常在几秒钟内)。
- VRRP 用于主动-被动(主-备份)配置,也可以配置为具有负载平衡的 Active-Active 配置。
- VRRP 是 IETF 开放标准协议,因此,多个供应商/多种类型的设备可以成为 VRRP 组的一部分。
- 主网关设备可以有多个备用设备。
总结
- 什么是VRRP?
- VRRP术语
- VRRP工作原理
- VRRP三种状态
- Initialize 初始状态
- Master 活动状态
- Backup 备份状态
- VRRP选举机制
- 案例
- VRRP其他小点
- VRRP抢占
- VRRP 版本
- VRRP认证
- VRRP优点
边栏推荐
- Rust字符串切片、结构体和枚举类
- Basic 10 of C language: array and pointer
- The "2022 China Digital Office Market Research Report" can be downloaded to explain the 176.8 billion yuan market in detail
- [MCU project training] eight way answering machine
- [shutter] image component (image component introduction | image constructor | image.network constructor | image.asset constructor)
- [IELTS reading] Wang Xiwei reading P2 (reading fill in the blank)
- NC50965 Largest Rectangle in a Histogram
- antv x6节点拖拽到画布上后的回调事件(踩大坑记录)
- 字符设备注册常用的两种方法和步骤
- Cmake basic use
猜你喜欢

Understanding and application of least square method

Markdown使用教程

详解用OpenCV的轮廓检测函数findContours()得到的轮廓拓扑结构(hiararchy)矩阵的意义、以及怎样用轮廓拓扑结构矩阵绘制轮廓拓扑结构图

字符设备注册常用的两种方法和步骤

Introduction and use of ftrace tool

UART、RS232、RS485、I2C和SPI的介绍
![[target detection] r-cnn, fast r-cnn, fast r-cnn learning](/img/f0/df285f01ffadff62eb3dcb92f2e04f.jpg)
[target detection] r-cnn, fast r-cnn, fast r-cnn learning

Maya fishing house modeling

setInterval定时器在ie不生效原因之一:回调的是箭头函数
![[shutter] image component (load network pictures | load static pictures | load local pictures | path | provider plug-in)](/img/7e/4f9d96edd04e9ffb26434baf34aa43.jpg)
[shutter] image component (load network pictures | load static pictures | load local pictures | path | provider plug-in)
随机推荐
Redis21 classic interview questions, extreme pull interviewer
【luogu P4320】道路相遇(圆方树)
About the practice topic of screen related to unity screen, unity moves around a certain point inside
TypeError: Cannot read properties of undefined (reading ***)
Seckill system design
Wechat applet obtains the information of an element (height, width, etc.) and converts PX to rpx.
Luogu_ P1149 [noip2008 improvement group] matchstick equation_ Enumeration and tabulation
Shell implements basic file operations (cutting, sorting, and de duplication)
NC24840 [USACO 2009 Mar S]Look Up
Pat 1030 travel plan (30 points) (unfinished)
可下载《2022年中国数字化办公市场研究报告》详解1768亿元市场
University of Toronto:Anthony Coache | 深度强化学习的条件可诱导动态风险度量
Solution to the problem of abnormal display of PDF exported Chinese documents of confluence
关于QByteArray存储十六进制 与十六进制互转
JSON转换工具类
[MCU project training] eight way answering machine
Graduation summary
ftrace工具的介绍及使用
What website can you find English literature on?
University of Oslo: Li Meng | deep reinforcement learning based on swing transformer