fbpx

HSRP, VRRP, GLBP: Understanding Key Protocols for Network Redundancy

Facebook
Twitter
LinkedIn
WhatsApp
Telegram

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).

HSRP, VRRP, GLBP: Understanding Key Protocols for Network Redundancy

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.

HSRP, VRRP, GLBP: Understanding Key Protocols for Network Redundancy

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.

HSRP, VRRP, GLBP: Understanding Key Protocols for Network Redundancy

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?

QUIZ - HSRP, VRRP, GLBP: Understanding Key Protocols for Network Redundancy

Recommended book for this article

Do you want to suggest a topic?

Every week we post new content. Do you want us to talk about something specific?
Topic for the next blog

Leave a comment

Your email address will not be published. Required fields are marked with *

DISCOUNT CODE

AN24-LIB

applies to MikroTik books and book packs

Days
Hours
Minutes
Seconds

Introduction to
OSPF - BGP - MPLS

Sign up for this Free course

MAE-RAV-ROS-240118
Days
Hours
Minutes
Seconds

Sign up for this Free course

MAS-ROS-240111

Promo for Three Kings Day!

KINGS24

15%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the Three Kings Day discount code!

* promotion valid until Sunday January 7, 2024
** the code (KINGS24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

New Year's Eve Promo!

NY24

20%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the New Year's Eve discount code!

* promotion valid until Monday, January 1, 2024
** the code (NY24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

Christmas discounts!

XMAS23

30%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the discount code for Christmas!!!

**codes are applied in the shopping cart
Promo valid until Monday December 25, 2023

CYBER WEEK DISCOUNTS

CW23-MK

17%

all MikroTik OnLine courses

CW23-AX

30%

all Academy courses

CW23-LIB

25%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Cyber ​​Week!!!

**codes are applied in the shopping cart
Promo valid until Sunday December 3, 2023

BLACK FRIDAY DISCOUNTS

BF23-MX

22%

all MikroTik OnLine courses

BF23-AX

35%

all Academy courses

BF23-LIB

30%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Black Friday!!!

**Codes are applied in the shopping cart

codes are applied in the shopping cart
valid until Sunday November 26, 2023

Days
Hours
Minutes
Seconds

Sign up for this Free course

MAE-VPN-SET-231115

Halloween promo

Take advantage of discount codes for Halloween.

Codes are applied in the shopping cart

HW23-MK

11% discount on all MikroTik OnLine courses

11%

HW23-AX

30% discount on all Academy courses

30%

HW23-LIB

25% discount on all MikroTik Books and Book Packs

25%

Register and participate in the free course Introduction to Advanced Routing with MikroTik (MAE-RAV-ROS)

Today (Wednesday) October 11, 2023
7pm to 11pm (Colombia, Ecuador, Peru)

MAE-RAV-ROS-231011