Hot Standby Router Protocol (HSRP)

Learn via video courses
Topics Covered

Overview

The Hot Standby Router Protocol (HSRP) makes sure that when access circuits or network edge devices have first-hop failures, user traffic is instantly and transparently restored. With HSRP, you can set up two or more routers as standby routers and just one router as active at once. The Hot Standby Router Protocol (HSRP) allows devices in the HSRP group to send and receive data. There are two variants of the protocol, version 1 and version 2.

Build an AI-First Career, Master the Complete Skillset

Choose from our industry-leading programs designed for career success

NSDC Certified

Modern Software and AI Engineering Program

Master full-stack development with AI integration

12 MonthsDuration
AI-LedCurriculum
Career SupportSupport
GoogleAmazonPaytm+1000 more
Go to Program
NSDC Certified

Modern Data Science and ML with specialisation in AI

Advanced data science techniques with AI specialization

12 MonthsDuration
AI-LedCurriculum
Career SupportSupport
GoogleAmazonPaytm+1000 more
Go to Program
NSDC Certified

Advanced AIML with Specialisation in Agentic AI

Deep dive into AIML with focus on Agentic systems

12 MonthsDuration
AI-LedCurriculum
Career SupportSupport
GoogleAmazonPaytm+1000 more
Go to Program
NSDC Certified

DevOps, Cloud & AI Platform Engineering

Build and manage AI-powered cloud infrastructure

12 MonthsDuration
AI-LedCurriculum
Career SupportSupport
GoogleAmazonPaytm+1000 more
Go to Program
NSDC Certified

AI Engineering Advanced Certification by IIT-Roorkee

Premier AI engineering certification from IIT-Roorkee

3 MonthsDuration
AI-LedCurriculum
Career SupportSupport
Program highlights
Go to Program
NSDC Certified

AI Forward Deployed Engineer Program

Full-stack engineering, production AI and client-facing consulting

12 MonthsDuration
AI-LedCurriculum
Career SupportSupport
GoogleAmazonPaytm+1000 more
Go to Program

Hot Standby Router Protocol (HSRP)

A local subnet (To know more about subnets, check out this article) has redundancy thanks to the CISCO proprietary Hot Standby Router Protocol (HSRP). In HSRP, the illusion of a virtual router is created by two or more routers. With HSRP, you can set up two or more routers as standby routers and just one router as active at once. It makes sure that when access circuits or network edge devices have first-hop failures, user traffic is instantly and transparently restored.

Working of HSRP

  1. Members of the same group are those who share the same group ID. One group member will be chosen to serve as the active router, with the rest acting as backup routers.
  2. All hosts in the local subnet have the virtual IP set as their default gateway, and the active router is in charge of routing local host traffic. The standby router waits until the hold-down timer time if the active router goes down.
  3. The standby router will switch over to become the active router as soon as the hold-down period is through and assume all of the duties of the active router.
Sharpen Your Fundamentals with Free Learning

HSRP Router Roles

HSRP Groups enable the Hot Standby Router Protocol. There are various routers, each with a distinct role, for each group. There are three roles:

How Scaler Transformed Careers in Different Fields

₹23L
AVG CTC
SCALER PLACEMENT PROOF

Scaler learners achieved 2.5x salary growth with average post-Scaler CTC reaching ₹23L.

11,000+placements
650+companies
Verified data
Hiring Partners:
GoogleGoogleAmazonAmazonMicrosoftMicrosoftFlipkartFlipkartAdobeAdobe1200+ more

Active Router

The router through which traffic flows is known as the Active Router. Active traffic flow is provided by the router.

Standby Router

The Standby Router serves as the Active Router's backup. This router becomes active and directs traffic through it when the main router fails.

Turn Learning into Career Growth

1200+Hiring Partners
89%Placement Rate
11,000+Placements
147%Avg Salary Increment
2.5XCareer Growth
₹23 LPAAvg Post-Scaler Salary
1200+Hiring Partners
89%Placement Rate
11,000+Placements
147%Avg Salary Increment
2.5XCareer Growth
₹23 LPAAvg Post-Scaler Salary

Listening Routers

The additional routers taking part in the HSRP group are known as Listening Routers.

HSRP States

Active: The device is actively forwarding traffic.

Init: A device in this condition is not yet prepared or capable of taking part in HSRP.

Learn: When neither the virtual IP address nor a hello message from an active device has been established, the device is in this state.

Listen: Whenever a device is receiving hello messages, it is in this state.

Speak: Whenever a device is sending and receiving hello messages, it is in this state.

Standby: A device in this condition is ready to take over traffic forwarding responsibilities from an active device.

HSRP Versions

There are two variants of the Hot Standby Router Protocol (HSRP):

  • Version 1: The messages use UDP port 1985 and are multicast to 224.0.0.2. The group number range in this version is 0 to 255.
  • Version 2: The messages use UDP port 1985 and are multicast to 224.0.0.102. The range of group numbers allowed in this version is 0 to 4095.

Conclusion

Let's conclude what we learned in this article:

  1. With Hot Standby Router Protocol or HSRP, you can set up two or more routers as standby routers and just one router as active at once.
  2. One group member will be chosen to serve as the active router, with the rest acting as backup routers.
  3. The Standby Router serves as the Active Router's backup.
  4. All hosts in the local subnet have the virtual IP set as their default gateway and the active router is in charge of routing local host traffic.
  5. There are two versions of the protocol, version 1 and version 2.