Module Objectives
Module Objective: Explain how FHRPs provide default gateway services in a redundant network.
First Hop Redundancy Protocols (FHRPs)
Purpose: First Hop Redundancy Protocols (FHRPs) are critical in providing alternative default gateways in switched networks where multiple routers are interconnected within the same VLANs. These protocols enhance network reliability by ensuring that if one router becomes unavailable, end devices can still access outside LAN resources via another router.
Issue Addressed: End devices are typically configured with a single default gateway, which poses a vulnerability; if this gateway fails, hosts lose connectivity to external networks even if redundant routers are present. FHRPs mitigate this risk by enabling seamless failover capabilities among routers.
Router Redundancy
Concept: The fundamental concept of router redundancy involves eliminating single points of failure at the default gateway. Through the use of a virtual router, multiple physical routers operate cohesively to create the appearance of a single router for all local area network (LAN) hosts.
Configuration: Each virtual router is assigned its unique IPv4 address, which serves as the default gateway for the workstations in the network. This configuration ensures that all hosts route their traffic through a consistent point, even as the underlying physical routers may change due to failures or maintenance.
Process:
Hosts utilize the Address Resolution Protocol (ARP) to resolve the MAC address associated with the default gateway IP address.
Traffic directed to the MAC address of the virtual router is managed by the currently active router, which is responsible for forwarding packets and maintaining connectivity.
Dynamic Recovery
First-Hop Redundancy: FHRPs enhance the network's capability for dynamic recovery from the failure of a device acting as the default gateway. This is achieved by employing redundancy protocols that actively monitor the status of routers and determine which router is currently active and which one is on standby.
Transparency: The transition process from one active router to another occurs without any noticeable detection or interruption for end devices. This transparent failover is essential for maintaining service continuity and user satisfaction.
Steps for Router Failover
Process when Active Router Fails: When the active router fails, specific steps ensure a seamless transition:
The standby router stops receiving Hello messages from the active router, indicating a failure.
The standby router takes over the role of the forwarding router, assuming the responsibilities of packet routing.
The transition is designed to occur without any visible disruption in service, as host devices continue to access the same virtual router's IP and MAC address.
FHRP Options
Hot Standby Router Protocol (HSRP)
A Cisco-proprietary FHRP that provides transparent failover for first-hop IPv4 devices. HSRP designates an active router responsible for routing packets and a standby router that takes over upon failure of the active router, ensuring minimal downtime.
HSRP for IPv6
Operates analogously to HSRP but is specifically designed for IPv6 environments. It uses virtual MAC and link-local addresses to maintain IPv6 traffic continuity.
Virtual Router Redundancy Protocol (VRRP)
A non-proprietary protocol that enables dynamic virtual router assignment within IPv4 LANs, where one router takes on the master role while others serve as backups, enhancing flexibility and fault tolerance.
VRRPv3
Extends VRRP capabilities by supporting both IPv4 and IPv6 addressing, offering multi-vendor compatibility and improved scalability compared to VRRPv2.
Gateway Load Balancing Protocol (GLBP)
A sophisticated FHRP that not only protects against router failures but also facilitates load balancing across different routers, enhancing overall network performance. GLBP is available for both IPv4 and IPv6 configurations.
ICMP Router Discovery Protocol (IRDP)
An older FHRP solution that permits IPv4 hosts to discover routers that provide IPv4 connectivity. While less commonly utilized in modern networks, it can still serve basic network redundancy purposes.
HSRP Overview
Goal: The primary objective of HSRP is to prevent the loss of network access if the default router becomes unavailable. This protocol is integral in maintaining reliable connectivity in network environments.
Processes:
HSRP assigns roles (active and standby) among routers grouped in a network configuration. The standby router consistently monitors the active router and is primed to take over routing responsibilities should it be necessary.
HSRP Priority and Preemption
Priority Elections:
The active router is determined by the highest HSRP priority, with a default priority value set at 100. In scenarios where routers have equal priorities, the router with the highest IPv4 address assumes the active role.
Preemption allows routers with higher priority values to reclaim the active status whenever they return online, thus ensuring optimized performance and fault tolerance.
HSRP States and Times
States:
Initial: Indicates a configuration change or interface availability exists.
Learn: The router awaits Hello messages from the active router to determine its role.
Listen: Recognizes the virtual IP address assigned but is not actively participating as either active or standby.
Speak: Engages in the election process and transmits Hello messages.
Standby: Functions as a candidate ready to assume the active router role.
Timers:
Hello messages are transmitted every 3 seconds; if a Hello message from the active router isn’t received after 10 seconds, the standby can switch to an active role. Careful timer adjustments are imperative to balance responsiveness and CPU load management.
New Terms and Commands
First Hop Redundancy Protocol (FHRP)
Router Redundancy
Virtual Router
Active Router
Standby Router
Hot Standby Routing Protocol (HSRP)
Virtual Router Redundancy Protocol (VRRP)
Gateway Load Balancing Protocol (GLBP)
ICMP Router Discovery Protocol (IRDP)
Virtual Router Master
Standby Priority
Standby Preempt
End of Module Summary: FHRPs ensure high network availability by creating alternate default gateways and facilitating seamless transitions during router failures, thereby maintaining consistent connectivity and network reliability under various operational conditions.