Beruflich Dokumente
Kultur Dokumente
Pietro Nicoletti
piero[at]studioreti.it
Copyright note
These slides are protected by copyright and international treaties. The title and the
copyrights concerning the slides (inclusive, but non only, every image, photograph,
animation, video, audio, music and text) are the author’s (see Page 1) property.
The slides can be copied and used by research institutes, schools and universities
affiliated to the Ministry of Public Instruction and the Ministry of University and
Scientific Research and Technology, for institutional purpose, not for profit. In this
case there is not requested any authorization.
Any other complete or partial use or reproduction (inclusive, but not only,
reproduction on discs, networks and printers) is forbidden without written
authorization of the author in advance.
The information contained in these slides are believed correct at the moment of
publication. They are supplied only for didactic purpose and not to be used for
installation-projects, products, networks etc. However, there might be changes
without notice. The authors are not responsible for the content of the slides.
In any case there can not be declared conformity with the information contained in
these slides.
In any case this note of copyright may never be removed and must be written also
in case of partial use.
WAN
(Mesh network dynamic routing ex. OSPF )
Router X Router Y
Group = 1 Group = 2
Active 1 Active 2
IP A IP B
Standby 2 Standby 1
HSRP functions
A single router elected from the group is responsible for
forwarding the packets that hosts send to the virtual
router
The Active router interface has the followings assigned
addresses:
Primary IP address (inserted in the source IP header field)
Virtual IP address (used by hosts as default gateway)
Well-Known MAC address allocated to the HRSP Group
The Standby router interface has the followings
assigned addresses:
Primary IP address (inserted in the source IP header field)
Physical MAC address assigned by the producer (unique
in the world)
Both interfaces: Active and Standby send hello
messages containing different information
HSRP-VRRP_E - 6 © P. Nicoletti: see note pag. 2
September 2006
MAC UDP
IP
HEADER HEADER HSRP header FCS
HEADER
Authentication Data
Authentication Data
Virtual IP Address
Preemption capability
If a router has higher priority than the active router and
preemption is configured, it MAY take over as the active
router using a Coup message
Without preemption function configured the higher
priority can’t force the router to become Active
WAN
(Mesh network dynamic routing)
Example 1
Router X Router Y
Active Standby
10.1.1.1 HSRP Group 24 10.1.1.2
Router Z
Active
Example 2
S0=10.6.2.5 S0=10.6.7.6
Router X Router Y
Active 1 Active 2
Standby 2 Standby 1
10.1.1.5 HSRP Group 1 10.1.1.6
10.1.1.10 HSRP Group 2 10.1.1.20
R-X>interface ethernet 0
R-X-if>Ip address 10.1.1.5 255.255.255.0
R-X-if>standby 1 preempt
R-Y>interface ethernet 0
R-X-if>standby 1 ip 10.1.1.10 R-Y-if>Ip address 10.1.1.6 255.255.255.0
R-X-if>standby 1 track Serial 0
R-Y-if>standby 1 preempt
R-X-if>standby 2 preempt R-Y-if>standby 1 ip 10.1.1.10
R-X-if>standby 2 ip 10.1.1.20 R-Y-if>standby 1 track Serial 0
R-X-if>standby 2 track serial 0 R-Y-if>standby 1 priority 95
R-X-if>standby 2 priority 95 R-Y-if>standby 2 preempt
R-Y-if>standby 2 ip 10.1.1.20
R-Y-if>standby 2 track serial 0
HSRP-VRRP_E - 18 © P. Nicoletti: see note pag. 2
September 2006
WAN
(Mesh network dynamic routing ex. OSPF )
Router X Router Y
VRID = 1 Master 1 Master 2 VRID = 2
IP A Backup 2 Backup 1 IP B
VRRP: functions
The VRRP router controlling the IP address(es)
associated with a virtual router is called the Master, and
forwards packets sent to these IP addresses
The Master router has the followings assigned
addresses:
Primary IP address (inserted in the source IP header field)
One or more Virtual IP addresses (used by hosts as
default gateway)
Well-Known MAC address allocated to VRID
The Backup router has the followings assigned
addresses:
Primary IP address (inserted in the source IP header field)
Physical MAC address assigned by the producer (unique
in the world)
Only the Master router send Advertisement packets
HSRP-VRRP_E - 23 © P. Nicoletti: see note pag. 2
September 2006
Virtual IP Address 1
..
.
Virtual IP Address n
Authentication Data (1)
VRRP Timer
Advertisement Interval
The Advertisement interval indicates the time interval (in
seconds) between Advertisements
default value = 1 s
Skew_Time
(256 - Priority) / 256
Master_Down_Interval
(3 * Advertisement_Interval) + Skew_time
Time interval for Backup to declare Master down
(seconds)
WAN
(Mesh network dynamic routing ex. OSPF )
Router X Router Y
Master or Backup or
Active Standby
WAN
(Mesh network dynamic routing ex. OSPF )
Router Y
Router X
Master or
Init
Active
fault
WAN
(Mesh network dynamic routing ex. OSPF )
Router X
Router Y
Master or
Init
Active
fault
Router X Router Y
Master or Master or
Active Active
fault
WAN
(routing dinamico su rete magliata, es. OSPF )
Router X Router Y
Master o Backup o
Active Standby
RSTP/STP o
Resiliency