In network environments, the availability and reliability of services are essential to ensure uninterrupted operation. Router redundancy protocols play a crucial role in providing mechanisms that enable service continuity in the event of network device failures.
At the end of the article you will find a small test that will allow you assess the knowledge acquired in this reading
Three of the most used protocols to achieve this redundancy are HSRP (Hot Standby Router Protocol), VRRP (Virtual Router Redundancy Protocol) and GLBP (Gateway Load Balancing Protocol).
HSRP (Hot Standby Router Protocol)
El Hot Standby Router Protocol (HSRP) is a router redundancy protocol developed by Cisco. Its primary purpose is to provide high availability and redundancy for IP networks, ensuring continuous operation in the event of a router failure.
HSRP allows multiple routers to work together as a group to provide a single virtual access point (gateway).
Key aspects about HSRP:
HSRP Group
- HSRP routers form a virtual group identified by a group number.
- Each group has a unique group identifier and a shared virtual IP address, known as the HSRP IP address or virtual gateway.
Router Roles
- In the HSRP group, one of the routers is designated as the “active router” and the others are “standby routers” or “backup routers.”
- The active router is responsible for routing traffic and responds to ARP requests for the virtual IP address.
Choosing the Active Router
- The choice of active router is based on the priority and IP address of the router.
- The router with the highest priority within the group becomes the active router.
- In case of a tie in priority, the IP address is used to break the tie.
State Monitoring
- HSRP routers continually monitor each other's status using Hello packets.
- If one router stops sending Hello packets, other routers can detect the failure and transition another router to assume the active role.
Basic Configuration
- Configuring HSRP involves assigning a group number, a virtual IP address, and configuring priority on each interface of the routers involved.
- A physical interface or subinterface can be assigned to an HSRP group.
HSRP is a commonly used solution to ensure redundancy at the network access layer, especially in enterprise environments where service continuity is critical.
VRRP (Virtual Router Redundancy Protocol)
Virtual Router Redundancy Protocol (VRRP) is another router redundancy protocol designed to provide high availability and reliability in IP networks. Like HSRP, VRRP allows multiple routers to work together as a group to form a virtual gateway.
However, VRRP is an IETF (Internet Engineering Task Force) standard, which means it is not limited to Cisco devices and is interoperable between different network equipment manufacturers.
Key points about VRRP:
VRRP Group
- As in HSRP, VRRP routers form a virtual group identified by a group number.
- Each group has a unique group identifier and a shared virtual IP address.
Router Roles
- In the VRRP group, one of the routers is designated as the “master router” and the others are “backup routers” or “standby routers.”
- The master router is responsible for routing traffic and responding to ARP requests for the virtual IP address.
Choosing the Master Router
- The choice of the master router is based on the priority and IP address of the router, similar to HSRP.
- The router with the highest priority within the group becomes the master router.
- In case of a tie in priority, the IP address is used to break the tie.
State Monitoring
- VRRP routers also use Hello packets to monitor the status of other routers in the group.
- If one router stops sending Hello packets, other routers can detect the failure and transition another router to assume the role of master.
Basic Configuration
- Configuring VRRP involves assigning a group number, a virtual IP address, and configuring priority on each interface of the routers involved.
- Like HSRP, a physical interface or subinterface can be assigned to a VRRP group.
VRRP is a common option to provide redundancy in heterogeneous environments where devices from different manufacturers are used.
GLBP (Gateway Load Balancing Protocol)
Gateway Load Balancing Protocol (GLBP) is another router redundancy protocol developed by Cisco, but unlike HSRP and VRRP, GLBP goes beyond simply providing redundancy by distributing the traffic load across multiple routers.
This protocol is designed to optimize network resource utilization and improve performance by effectively balancing load.
Important facts about GLBP:
GLBP Group
- GLBP routers form a virtual group identified by a group number.
- Each GLBP group has a unique group identifier and a series of shared virtual IP addresses.
Router Roles
- In GLBP, multiple routers can take on the role of active virtual forwarder (AVF), which is responsible for routing traffic for a specific virtual IP address.
- All routers in the GLBP group can be active simultaneously, and each responds to ARP requests for different virtual IP addresses.
Load Distribution
- GLBP uses a loading algorithm to evenly distribute traffic among routers in the group.
- The algorithm is based on setting priorities and assigning load ratios to each router.
AVF election
- Similar to HSRP and VRRP, GLBP uses priority to choose the active router for a specific virtual IP address.
- A router's IP address can also be used to break the tie in case of a priority tie.
State Monitoring
- GLBP routers also use Hello packets to monitor the status of other routers in the group and detect failures.
Basic Configuration
- Configuring GLBP involves assigning a group number, a virtual IP address, and configuring the priority and load ratio on each interface of the routers involved.
GLBP is especially useful in environments where you want to take full advantage of the capacity of multiple routers and distribute the load evenly to improve network performance.
Comparison chart
This table provides a general comparison of the key features of HSRP, VRRP, and GLBP. Choosing between these protocols will depend on your specific network requirements, interoperability with other network devices, and the need for additional features such as load balancing.
Feature | HSRP (Hot Standby Router Protocol) | VRRP (Virtual Router Redundancy Protocol) | GLBP (Gateway Load Balancing Protocol) |
Developer | Cisco | IETF (Open Standard) | Cisco |
Standard Protocol | Owners | IETF standard | Owners |
Cross-platform Compatibility | Limited (Mainly Cisco) | Broad (IETF Standard) | Limited (Mainly Cisco) |
Load Distribution | No | No | Yes |
Load balance | No | No | Yes |
Multiple Router Support | No | Yes | Yes |
Number of Groups | 16 | 255 | 1024 (per interface) |
Priority for Election | Yes | Yes | Yes |
Tiebreaker with IP Address | Yes | Yes | Yes |
Virtual Groups by Interface | Yes | Yes | Yes |
Routing Protocol | Does not depend on the routing protocol | Does not depend on the routing protocol | Does not depend on the routing protocol |
IPv6 support | Yes (depends on platform and software version) | Yes (depends on platform and software version) | Yes (depends on platform and software version) |
Active Simultaneous Connections | 1 (per group) | 1 (per group) | Multiple (load ratio) |
Load balancing | No | No | Yes (based on loading algorithm) |
Implementation Standard | RFC 2281 | RFC 5798 | Non-standard (proprietary implementation) |
Mainly used in | Cisco networks | Heterogeneous networks, mixed environments | Cisco networks |
Botton line
In the networking space, router redundancy protocols such as HSRP, VRRP, and GLBP play a crucial role in ensuring the availability and reliability of services. HSRP, developed by Cisco, lays the foundation by allowing multiple routers to work as a group, ensuring a smooth transition between active and standby devices in the event of failures.
VRRP, an IETF standard, shares similar goals but promotes interoperability between devices from different manufacturers. For its part, GLBP, also from Cisco, goes further by not only providing redundancy, but also balancing the traffic load between active routers, thus improving network efficiency.
The choice between these protocols will depend on the specific infrastructure and particular requirements of each network.
Brief knowledge quiz
What do you think of this article?
Do you dare to evaluate your learned knowledge?
Recommended book for this article
RouterOS v7 Advanced Routing Book
Study material for the MTCRE Certification Course, updated to RouterOS v7