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|