Hot Standby Router Protocol (HSRP) is a CISCO proprietary protocol used to provide redundancy in a network. Only one router is the active router while others will be in standby state i.e the standby router will be responsible for forwarding the traffic when the active router fails.
Virtual Router Redundancy Protocol (VRRP) is an open standard protocol used to provide redundancy in a network. VRRP is a network layer protocol. It uses the concept of Master and back up router i.e when the master router goes down, one of the backup routers will take up the responsibilities of the master router, that is the backup router will be responsible for forwarding the traffic until the master router comes again.
- Virtual IP address: Both protocol uses the concept of virtual IP address i.e one of the IP address from the subnet or the network is assigned as default gateway to the hosts of that network.
- preempt: Preempt is a state in which the selected (active in case of HSRP and master in case of VRRP) router takes back the responsibility of forwarding the traffic from the other (standby in case of HSRP and backup in case of VRRP) routers, when it comes up again. Both the protocols have the concept of preempt.
- object tracking: object tracking is a process that monitors the tracked objects such as the state of line protocol. The process periodically polls the tracked object and if any change is seen then the priority of backup or standby routers are increased therefore now one of these routers become active or master router.
- priority: The router with the highest priority will become active (in HSRP) or master (in VRRP) router. Only one of the routers will be head (active router in HSRP, Master router in VRRP) while others will work as backup (standby router in HSRP, backup router in VRRP). Now, take a look at some differences of HSRP and VRRP.
|HSRP is a Cisco proprietary protocol.||VRRP is an open standard protocol.|
|HSRP is an application layer protocol.||VRRP is a network layer protocol|
|HSRP version 1 uses UDP port number 1985 and multicast address 188.8.131.52 and version 2 uses UDP port 1985 and 184.108.40.206 as multicast address.||VRRP uses multicast address 220.127.116.11 and protocol number 112|
|preempt has to be enabled manually.||Preempt is by default enabled in VRRP.|
|The hello message time and the dead time in HSRP is 3 seconds and 10 seconds respectively.||In VRRP, instead of hello timer and dead timer, there is a concept of Master advertisement interval (1 second by default) and master down interval (3.069 by default).|
|The MAC address used in HSRP is 0000.00 07.ac0a
Where 0a(here group number assumed 10)represents the HSRP group number in hexadecimal.
|The MAC address used in VRRP is 0000.5e00.01xx. Here, xx represents the VRRP group number.|
|group number range allowed on version 1 is 0-255 and version 2 is 0-4095||range allowed is from 0-255|
Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.
- Hot Standby Router Protocol (HSRP)
- Introduction of Virtual Router Redundancy Protocol (VRRP) and its configuration
- Cyclic Redundancy Check in Python
- Vertical Redundancy Check (VRC) or Parity Check
- Longitudinal Redundancy Check (LRC)/2-D Parity Check
- Hot and Cold Migrations
- Hot Spot 2.0
- Difference between Virtual function and Pure virtual function in C++
- Difference between Virtual Private Network (VPN) and Multi-Protocol Label Switching (MPLS)
- Difference between Stop and Wait protocol and Sliding Window protocol
- Difference between File Transfer Protocol (FTP) and Secure File Transfer Protocol (SFTP)
- Difference between Serial Line Internet Protocol (SLIP) and Point-to-Point Protocol (PPP)
- Cisco Discovery Protocol (CDP) and Link Layer Discovery Protocol (LLDP) in Data Link Layer
- Difference between Border Gateway Protocol (BGP) and Routing Information Protocol (RIP)
- Open shortest path first (OSPF) router roles and configuration
- Difference between Modem and Router
- Difference between Router and Switch
- Difference between Bridge and Router
- Difference between Router and Layer-3 Switch
- Difference between Router and Firewall
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.