Course contents

Chapter 9: First-Hop RedundancyLesson 4 of 5

HSRP vs VRRP vs GLBP: comparison

The three protocols side by side: standards, roles, virtual MACs, ports, timers, preempt defaults, failover and how to choose.

Intermediate · 8 min read

Technical definition

FHRP (First-Hop Redundancy Protocol) is a protocol that lets two or more routers share a virtual IP address and virtual MAC address as a default gateway, so a router failure does not change the gateway hosts use. HSRP, VRRP and GLBP are the three common FHRPs.

The one-sentence difference

Each protocol gives hosts one gateway that survives a router failure. HSRP is the Cisco original with one active router, VRRP is the open standard with one master, and GLBP is Cisco's variant in which every router forwards for part of the hosts. The rest is detail, and the detail is what the exam and real designs test.

Where the traffic goes

Diagram
Where one VLAN's traffic goes in a single group
Where one VLAN's traffic goes in a single group
Where one VLAN's traffic goes in a single groupWith one HSRP group or one VRRP group, all three hosts send through the active or master router, and the other router carries nothing until a failure. With one GLBP group, the three hosts are spread across the routers, so each carries part of the traffic.HSRPR1activeR2standbyActive forwards; standby idleVRRPR1masterR2backupMaster forwards; backup idleGLBPR1AVF 1R2AVF 2Every forwarder carries a share
Idle capacity is the cost of HSRP and VRRP. They can still share load with two groups and opposite priorities; GLBP does it inside one group.

In HSRP and VRRP, the idle router is spare capacity you pay for. GLBP is the only one of the three that uses it inside a single group.

Side by side

Diagram
HSRP, VRRP and GLBP compared
HSRP, VRRP and GLBP compared
HSRPVRRPGLBP
StandardCisco proprietaryOpen: RFC 3768 (v2), RFC 5798 (v3)Cisco proprietary
RolesActive, standby (listen for others)Master, backupAVG, AVF (up to 4 active)
Who forwardsActive router onlyMaster router onlyEvery AVF, each for its own hosts
Load balancing in one groupNoNoYes: round robin, weighted, host-dependent
Virtual MAC0000.0c07.acXX (v1); 0000.0c9f.fXXX (v2)0000.5e00.01XX0007.b400.XXYY, one per AVF
Hellos go to224.0.0.2 (v1); 224.0.0.102 (v2)224.0.0.18224.0.0.102
TransportUDP 1985IP protocol 112UDP 3222
Default timersHello 3 s, hold 10 sAdvertisement 1 s, master-down about 3.6 sHello 3 s, hold 10 s
Priority range, default0–255, default 1001–254 (255 = owner), default 1001–255, default 100
Preempt by defaultNoYesAVG: no. Forwarder: yes
Virtual IP can be a real interface IPNoYes (that router is the owner)No
IPv6HSRP version 2VRRPv3Supported on many platforms
AuthenticationPlain text or MD5None in the RFC; vendor-specificPlain text or MD5
Rows to memorise for the exam: standard, roles, virtual MAC, multicast and port, preempt default and load balancing.

Failover, step by step

Diagram
What happens when the forwarding router fails
What happens when the forwarding router fails
HSRPVRRPGLBP
What the others noticeHellos stop from the active routerAdvertisements stop from the masterHellos stop from an AVF or the AVG
How long they waitHold time, 10 s3 × interval + skew, about 3.6 sHold time, 10 s
Who takes overStandby becomes activeBest-priority backup becomes masterAnother AVF takes the MAC; standby AVG takes the AVG role
What hosts seeNothing changes: same IP and MACNothing changes: same IP and MACHosts of the failed router keep the same MAC; it is now served by another router
Gratuitous ARPYes, from the virtual MACYes, for the virtual IPYes, for the taken-over MAC
In all three the hosts keep their ARP entries, so nothing on the hosts changes.

Choosing one

Diagram
Choosing a first-hop redundancy protocol
Choosing a first-hop redundancy protocol
Choosing a first-hop redundancy protocolStart with whether other vendors' routers must share the gateway or an open standard is required: if yes, use VRRP. If not, ask whether every router should forward for the same subnet: if yes and the platform supports it, use GLBP; if not, HSRP is the usual Cisco choice. Two groups with opposite priorities are an alternative to GLBP.Must the gateway be sharedwith non-Cisco routers?yesVRRPopen standardnoShould every router forwardfor the same subnet?yesGLBPCisco onlynoHSRPusual Cisco defaultAlso considerTwo groups with oppositepriorities, in HSRP orVRRP, share loadwithout GLBP.If every router in the network is Cisco and nothing else matters, HSRP is the usual answer:it is the most widely supported and the one the CCNA labs use.
Platform support matters: check that your router or Layer 3 switch supports the protocol and the IPv6 or VRRPv3 variants you need before designing around it.
  • All-Cisco network, simple needs: HSRP. It is the most widely supported and the one the CCNA labs use.
  • Mixed vendors, or a standard is required: VRRP.
  • Want every uplink in use for one subnet, on supported Cisco routers: GLBP, or two HSRP or VRRP groups with swapped priorities if the platform lacks GLBP.
  • Stateful firewalls or NAT behind the gateways: be careful with GLBP; host-dependent balancing or an active/standby protocol keeps both directions on one path.

Mistakes people make when comparing them

  • Assuming preempt is on everywhere: it is only a default in VRRP.
  • Quoting one failover time for all three: 10 s for HSRP and GLBP, about 3.6 s for VRRP at defaults.
  • Mixing up the multicast addresses: HSRPv2 and GLBP share 224.0.0.102, while VRRP uses 224.0.0.18.
  • Thinking GLBP balances per packet: it balances per host, through ARP.

Exam tip: if a question mentions load balancing inside one group, the answer is GLBP. If it mentions an open standard or another vendor, the answer is VRRP. If it mentions active and standby, or a Cisco-only protocol with priority 100 and preempt that must be enabled, it is HSRP.

Comparison facts for the exam

  • HSRP and GLBP are Cisco proprietary; VRRP is an open standard.
  • Roles: active/standby, master/backup, AVG/AVF.
  • Virtual MACs: 0000.0c07.acXX (HSRPv1), 0000.5e00.01XX (VRRP), 0007.b400.XXYY (GLBP).
  • Transport: UDP 1985 (HSRP), IP 112 (VRRP), UDP 3222 (GLBP).
  • Only GLBP load balances within one group; only VRRP preempts by default.

Test yourself on the comparison

Predict · scenario 1

Which FHRP is an open standard defined in an RFC?

Predict · scenario 2

Which protocol uses IP protocol number 112 instead of UDP?

Predict · scenario 3

Which FHRP has preempt enabled by default?

Predict · scenario 4

Hosts must be spread across three routers with a single virtual IP. Which protocol?

Predict · scenario 5

Which multicast address do both HSRP version 2 and GLBP use?

FAQ

Which FHRP is on the CCNA exam?
The exam asks you to describe the purpose of first-hop redundancy protocols and tell them apart. Know the comparison table on this page; configuration is most often HSRP.
Can HSRP and VRRP run on the same interface?
Technically different groups can coexist on supported platforms, but it is rarely a good idea. Pick one FHRP per segment so everybody can predict which router answers for the gateway.
Which one fails over fastest?
With defaults, VRRP is about 3.6 seconds, HSRP 10 seconds and GLBP 10 seconds. All three can be tuned shorter, or paired with Bidirectional Forwarding Detection on platforms that support it.