FHRP (First Hop Redundancy Protocol)
In order to protect their networks against complete breakdown, businesses use a number of different protocols. First Hop Redundancy Protocol (FHRP) is one such protocol, and it uses a virtual default gateway to provide nearly uninterrupted network availability for businesses. FHRP allows multiple routers to act as a backup for each other in case one of them fails or becomes unreachable. This way, the network can avoid losing connectivity to the default gateway and ensure uninterrupted traffic flow. In this blog, we will mainly focus on the basic meaning of the First Hop Redundancy Protocol (FHRP) and why it is important for network reliability and performance. We will also learn about the different types of FHRP, such as Hot Standby Router Protocol (HSRP), Virtual Router Redundancy Protocol (VRRP), and Gateway Load Balancing Protocol (GLBP). Before learning about FHRP (First Hop Redundancy Protocol), a network engineer must understand why redundancy is even required in networking. Redundancy plays a vital role in networking. Network redundancy assures business continuity by avoiding failure of the network. By keeping operations running all the time, it boosts productivity. To have a dependable network, we must build a redundant one. In local area networks (intranet), we use multiple switches for redundancy. But is it possible for multiple routers too? Yes, it is also possible to have redundant topology to connect different networks together. Every host connected to the organization’s network must use a router, which acts as the host’s default gateway to the Internet. But what happens if the gateway router is unavailable? Hosts can have only one default gateway configured at a time, so when that router fails, hosts will lose connectivity. We need to replace the gateway router and also need to configure default gateway on every host. This approach is ineffective because it will result in longer service interruptions for the organization’s users. That is where FHRP steps in. First Hop Redundancy Protocol (FHRP) is a hop redundancy protocol designed to provide redundancy to the gateway router within the organization’s network by using a virtual IP address and virtual MAC address. So, in case of a failure of the gateway, the backup router will become active, usually within a few seconds. If the default router goes offline, the backup router will take its place to be the gateway router for all the hosts without changing the default gateway address of every host. The below diagram is an example of a network topology without FHRP implementation: The below diagram is an example of network topology with FHRP implemented: FHRP is a protocol used in computer networks that acts as a backup for the default gateway on a subnetwork. The default gateway is the router that connects the subnetwork to other networks, such as the Internet. In case of the failure of the default gateway, the subnetwork will lose connectivity to other networks, which further causes interruption and network downtime. To avoid this, FHRP enables several routers to share a single virtual IP and virtual MAC address that acts as the default gateway for hosts inside a subnetwork. All traffic entering and leaving the subnetwork is routed via one of these routers, which is identified as the active router. The other routers are backups that keep an eye on the primary router to take over if necessary. There are three ways to implement FHRP. Examples of these protocols are: Let’s discuss each one of these, one by one. Let’s start with HSRP. Hot Standby Router Protocol or HSRP is a Cisco-proprietary router redundancy protocol that enables a group of routers to cooperate to have a redundant network. All the routers within the group will have the same virtual IP address and virtual mac address. The Two router states of Hot Standby Router Protocol (HSRP) are: Where, 0000.0c = Cisco ID 07.ac = HSRP ID xx= Group Number For Example – For HSRP group number 10, the virtual MAC address will be 0000.0c07.ac0A HSRP’s problem is that at any given time, only one router will be active. The other router is on standby until the active router fails. This plan of action is not particularly effective because all of the extra bandwidth offered by redundant uplinks connected to standby routers will not be utilised. VRRP stands for Virtual Router Redundancy Protocol. It is a vendor-neutral redundancy protocol that groups two or more routers to produce a new single virtual router. It allows for redundancy by assigning the same virtual gateway IP address and MAC address to all physical routers in the VRRP group. Currently, VRRP is at version 2. It’s almost the same idea as HSRP. The only difference is that on VRRP, preemption is enabled by default, whereas on HSRP, it must be configured manually. Note – If we want a specific router to always assume the role of an Active HSRP Router whenever it’s up and running, then we can use HSRP Preempt. Two states of Virtual Router Redundancy Protocol (VRRP) are: It is currently the organization’s default gateway for all hosts. It is constantly sending and receiving packets to and from the hosts. During a failover or when the master router goes offline, the backup router will take over as the master router. GLBP stands for Gateway Load Balancing Protocol. It prevents a single point of failure, like HSRP and VRRP. Still, it also allows load-sharing among a group of redundant routers so that all the routers will take an active part in packet forwarding, and no uplink will be unused. This is the additional feature of GLBP protocol with redundancy. Where, xx.xx = GLBP group Number and yy = virtual Forwarder number. For Example – GLBP group number 1 and forwarder 1 has virtual MAC address: 0007.b400.0101 There are several such technologies in the market, but today we focused on FHRP. If you are interested in learning more about network protocols, you can check out PyNet Labs’ blogs. It is a network protocol that allows a router to act as a backup for another router in case of failure. FHRP can also be used to improve the availability as well as reliability of network traffic. The three types of FHRP protocols are Hot Standby Router Protocol (HSRP), Virtual Router Redundancy Protocol (VRRP), and Gateway Load Balancing Protocol (GLBP). All of these protocols mentioned above are designed to provide redundancy and load balancing for the default gateway used on a subnetwork. It is done by allowing two or more routers to share a virtual IP address and a virtual MAC address. VRRP stands for Virtual Router Redundancy Protocol, and it is similar to HSRP, but it supports more than one virtual router per interface. Whereas, GLBP stands for Gateway Load Balancing Protocol, and it extends the functionality of HSRP and VRRP by allowing load balancing among multiple active routers in a group. There are many benefits of using FHRP. Some of these are: In this blog, we have explained First Hop Redundancy Protocol, its working, and the types of FHRP protocols. Apart from that, we have added some of the most asked questions for your clear understanding. We hope you have learned, and if you have any further questions or suggestions, feel free to comment below. If your goal is to master these protocols, you should enrol in our CCNA 200-301 training. This training course will not only introduce you to the networking world but also help you master most of the networking protocols. Check out by visiting the CCNA 200-301 training page to find out more.Introduction
Why Redundancy?
What is First Hop Redundancy Protocol (FHRP) in Networking?
Working of FHRP
Types of First Hop Redundancy Protocol (FHRP)
Hot Standby Router Protocol
HSRP features:
VRRP (Virtual Router Redundancy Protocol)
Master Router
Backup Router
GLBP Protocol
GLBP Operation
GLBP Features:
Frequently Asked Questions
Q1 – What is FHRP used for?
Q2 – What are the three types of FHRP protocols?
Q3 – What is VRRP and GLBP?
Q4 – What is the benefit of FHRP?
Conclusion