当前位置:网站首页>图解网络:什么是虚拟路由器冗余协议 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优点
边栏推荐
- Bypass AV with golang
- v8
- Shell 实现文件基本操作(切割、排序、去重)
- Where can I find foreign papers?
- About the practice topic of screen related to unity screen, unity moves around a certain point inside
- What website can you find English literature on?
- Nc17059 queue Q
- Nc50528 sliding window
- Luogu_ P1149 [noip2008 improvement group] matchstick equation_ Enumeration and tabulation
- Basic use of shell script
猜你喜欢
mm中的GAN模型架构
Rust字符串切片、结构体和枚举类
Shell implements basic file operations (cutting, sorting, and de duplication)
Introduction of UART, RS232, RS485, I2C and SPI
Basic 10 of C language: array and pointer
Install docker and use docker to install MySQL
多进程编程(一):基本概念
AttributeError: ‘tuple‘ object has no attribute ‘layer‘问题解决
Multiprocess programming (II): Pipeline
One of the reasons why setinterval timer does not take effect in ie: the callback is the arrow function
随机推荐
Bypass AV with golang
Shell脚本基本使用
NC50528 滑动窗口
CMake基本使用
Form form instantiation
Multiprocess programming (V): semaphores
Install docker and use docker to install MySQL
An excellent orm in dotnet circle -- FreeSQL
About the practice topic of screen related to unity screen, unity moves around a certain point inside
Shell implements basic file operations (cutting, sorting, and de duplication)
LeedCode1480. Dynamic sum of one-dimensional array
helm 基础学习
Where can I check the foreign literature of economics?
pod生命周期详解
NC24325 [USACO 2012 Mar S]Flowerpot
NC24840 [USACO 2009 Mar S]Look Up
Andorid gets the system title bar height
[MCU project training] eight way answering machine
Rust所有权(非常重要)
奥斯陆大学:Li Meng | 基于Swin-Transformer的深度强化学习