HSRP Packet Structure
Keep in mind that, after the initial election of Active and Standby routers, only the Active and Standby routers still send HSRP messages.
There are three main components to an HSRP. Those are:
Active router: | Actively forwarding packets and transmits hello packets. |
Backup router: | Ready to take over for active router should the active fail. Also transmits hello packets. |
Virtual/Phantom router: | A nonexistant router that represents a consistently reachable ip and mac address. |
State | Description | |
Initial | The initial state is before any HSRP activities begin. This state is typically entered due to a configuration change, or when an interface first comes up. | |
Learn | The learning state is when the router has not yet determined the virtual IP address or seen an authenticated hello message from the active router. At this point, the router is still waiting for a message from the active router. | |
Listen | The listening states indicates that the router has learned the virtual IP address, but it neither the active nor the standby router. It only listens to hello messages from these routers. Any routers that are not the active or standby routers remain in this state. | |
Speak | The speak state enables a router to send periodic hello messages and actively participate in the election of active and standby routers. A router must know the virtual IP address before it can enter this state. | |
Standby | The standby state is only held by one router, which is ready to take over the role of active router should that router fail. It listens to hello messages from the active router and also sends its own hello messages. | |
Active | The active state is held by only one router which takes care of all forwarding of packets sent to the virtual mac address. This router broadcasts periodic hello messages. |
Active: | A router in the active state is actively forwarding packets sent to the virtual router. There can be only one active router. Active routers transmit hello packets. |
Standby: | A router in the standby state is waiting for the active router to fail so it can take over. There can be only one standby router. Standby routers transmit hello packets. |
Init: | A router in the init state is watching hello packets for either active or standby routers to fail so that it can take over the specified slot. There can be any number of init routers. Routers in the init state do not transmit hello packets. |