HSRP

HSRP-topology

Hot Standby Router Protocol (HSRP)

HSRP(Hot Standby Router Protocol) is a Cisco proprietary First Hop Redundancy Protocol (FHRP). HSRP first hop redundancy mechanism provides alternative path as a proactive action for any failure on a device. In this lesson, we will learn the protocol and in the following lessons, we will also learn HSRP Configuration. You can also view related RFC 2281.


HSRP-topology
With Hot Standby Router Protocol mechanism, even if a failure occurs on one device in the HSRP Group, then the traffic goes through on another device in that Group, through an alternative path.


HSRP-standby-to-active
Hot Standby Router Protocol provides this by using a Virtual IP address and a MAC address as a Gateway of multiple path alternatives. The traffic is always go to the Virtual IP address, Virtual Gateway. So, the traffic flow is independant from a device. This avoids single point of failure on the networks.

 

By the way, HSRP Group numbers is mention at the beginning of the confiugration after “standby” keyword. There can be multiple groups of Hot Standby Router Protocol on an interface.

 


HSRP Router Roles

Hot Standby Router Protocol works with HSRP Groups. For each group, there are different routers that has different roles. These roles are:

  • Active Router
  • Standby Router
  • Listenning Routers

 

The Active Router is the router that the traffic flow goes through. It is the router that provides active traffic flow.

 

The Standby Router is the backup of Active Router. When the active router fails then this router becomes Active and the traffic goes through this router.

 

Lastly the Listening Routers are the other routers that are participating in the HSRP group.

 


Active/Standby Elections

The main two roles of HSRP are Active and Standby. For these roles, routers does an election between them. In this election two parameters are important. The elections are done according to two parameters. These are:

  • Priority Values
  • Interface IP Addresses

 

First of all, HSRP Priority values are used for Active/Standby election. The highest Priority wins and the router that has highest priority becomes Active Router. If the Priority values of HSRP Routers are equal, then the Interface IP addresses are used as tie breaker.The highest IP address wins and become Active Router. The router that has the second highest IP address, becomes Standby Router.

 

Priority values can be manually set to any value between 0 and 255. The default HSRP Priority is 100.

 


HSRP States

After the configuration of Hot Standby Router Protocol, some states are passed one by one. After these steps, Active and Standby routers are elected and the HSRP become active. So, what are these states?

 

These HSRP states are mentioned below respectively:

 

  • Init: Starting state, the protocol is not running yet. Interfaces are available.
  • Learn: Router doesn’t know anything yet. Waits for hellos, to learn Virtual IP.
  • Listen: Router knows Virtual IP, not elected as standby or active.
  • Speak: Router is actively participating in Active/Standby election by sending hellos.
  • Standby: Acting as backup. Monitors and send hellos.
  • Active: Accepting and forwarding user traffic.

 

Only in three states, hellos are sent. Speak, Standby and Active states. As you know standby and active routers already send hellos each other. In the last one, in speak state, hellos are sent to determine the active and standby routers.


HSRP-states


HSRP Versions

There are two HSRP versions. These Hot Standby Router Protocol versions are:

  • HSRPv1
  • HSRPv2

Lesson tags: Redundancy, hsrp
Back to: CCNP Enterprise 350-401 ENCOR > First Hop Redundancy

Leave a Reply

Your email address will not be published.

IPCisco is the Winner of 2019 “Best Certification Study Journey” Category! We are also Finalist of 2020 & 2021 in Cisco IT Blog Awards!

Cisco-ITBlogAwards-2019-Winner-IPCisco-k
ITBlogAwards_2020_Badge-Finalist-BestCertStudy-ipcisco
ITBlogAwars-2021-ipcisco

CCNP Enterprise 350-401 ENCOR

Collapse
Expand
IPCisco on Social Media!