VRRP
VRRP
VRRP
1. Introduction
There are a number of methods that an end-host
can use to determine its first hop router towards
a particular IP destination. such as Routing
Information Protocol [RIP] or OSPF version 2
[OSPF] or using a statically configured default
route. Running a dynamic routing protocol on
every end-host may be infeasible for a number
of reasons, including administrative overhead,
processing overhead, security issues, or lack of
a protocol implementation for some platforms.
The use of a statically configured default route is
quite popular;
WAN
IP Addr 10.10.10.3/24
IP Addr 10.10.10.4/24
PC-2
PC-1
Ip addr 10.10.10.11/24
Ip Addr 10.10.10.12/24
Def GW 10.10.10.3
Def GW 10.10.10.4
WAN
IP Addr 10.10.10.3/24
IP Addr 10.10.10.4/24
Vrrp ip 10.10.10.1
Vrrp ip 10.10.10.1
VRRP master
router
VRRP Master
backup
Router
PC-2
PC-1
Ip addr 10.10.10.11/24
Ip Addr 10.10.10.12/24
Definitions
VRRP Router : A router running the Virtual Router
Redundancy Protocol.
Virtual Router : An abstract object managed by
VRRP that acts as a default router for hosts on a
shared LAN. It consists of a Virtual Router
Identifier and a set of associated IP address(es)
across a common LAN. A VRRP Router may
backup one or more virtual routers.
IP Address Owner : The VRRP router that has the
virtual routers IP address(es) as real interface
address(es). This is the router that, when up, will
respond to packets addressed to one of these IP
addresses for ICMP pings, TCP connections, etc.
VRRP Overview
The virtual router MAC address is used as the
source in all periodic VRRP messages sent by
the Master router. A virtual router is defined by
its virtual router identifier (VRID) and a set of IP
addresses. To minimize network traffic, only the
Master for each virtual router sends periodic
VRRP Advertisement messages. A Backup
router will not attempt to preempt the Master
unless it has higher priority. This eliminates
service disruption unless a more preferred path
becomes available. VRRP packets are sent
encapsulated in IP packets. They are sent to the
IPv4 multicast address assigned to VRRP.
VRRP states
Initialize
Wait to be enabled.
Backup
Responsibilities:
MUST NOT respond to ARP requests for the IP address
associated with the virtual router.
MUST discard packets with a destination MAC address
equal to the virtual router MAC address.
MUST NOT accept packets addressed to the IP address
associated with the virtual router.
Transition to the Master state.
Master
Responsibilities:
MUST respond to ARP requests for the IP address
associated with the virtual router.
MUST forward packets with a destination MAC address
equal to the virtual router MAC address.
MUST NOT accept packets addressed to the IP address
associated with the virtual router if it is not the IP address
owner. (included at the RFC, not seen at the Nortel)
MUST accept packets addressed to the IP address
associated with the virtual router if it is the IP address
owner.
Determining Master
Upon receipt of a VRRP packet a VRRP router
should:
Compare VRID in packet to internal VRIDs.
Dont match: discard packet.
Do match: compare priorities.
PC-2
PC-3
Layer 2 Switch
Layer 2 Switch
SMLT
VRRP-master
(both VLANs)
IST
VRRP-backup
(both VLANs)
Q01737679 problem
Packet fro PC1 to PC2 (dest MAC = VRRP MAC)
PC-1
PC-2
PC-3
Layer 2 Switch
due to CR Q01737679
(5x00 hardware limitation)
packet is dropped when coming
from IST to SMLT
(when SMLT is in state SMLT)
VRRP-master
(both VLANs)
VRRP-backup
(both VLANs)
PC-1
PC-2
PC-3
VRRP-master
(both VLANs)
Layer 2 Switch
VRRP-backup -master
(both VLANs)
Link down
PC-2
PC-3
Layer 2 Switch
VRRP-master
VRRP-backup-master
PC-2
Layer 2 Switch
PC-3
VRRP hello
not forwarded due to
CR Q01990799
VRRP-backup-master
VRRP-master
VRRP hello
PC-2
PC-3
VRRP hello
all 10 sec from backup master
CR Q01990790
VRRP-backup-master
VRRP-master
VRRP hello
Initial Setup
NetApp
PC-1
Layer 2 Switch
SMLT
VRRP-master
(both VLANs)
Layer 2 Switch
IST
VRRP-backup
(both VLANs)
5x00 D1 .
5x00 D2 .
8300
8300
NetApp
PC-1
Layer 2 Switch
Layer 2 Switch
5x00 D2 .
8300
8300
NetApp
PC-1
Layer 2 Switch
Layer 2 Switch
5x00 D2 .
8300
8300
NetApp
PC-1
Layer 2 Switch
Layer 2 Switch
5x00 D2 .
8300
8300
NetApp
PC-1
Layer 2 Switch
Layer 2 Switch
5x00 D2 .
8300
8300
Conclusion:
Due to the hardware limitation in the 5x00
(Q01737679) the VRRP backup-master function
must be used in an IST/SMLT design with
5x00s.
Another limitation prevents VRRP hellos to be
forwarded by the VRRP backup-master
(Q01990799). To overcome this limitation the
backup-master will generate VRRP hellos all 10
sec itself (Q01990790).
Therefore the 5x00 must not be used in a nonSMLT design with the VRRP backup masterfunction enabled
Transition Cause:
1 - None
2 - Higher priority advertisement received
3 - Shutdown received
4 - VRRP Address and Physical Address match
5 - Master Down interval
6 - Preemption
7 - Critical IP goes down
8 - User Disabling VRRP
9 - VRRP status synced from primary
10 - IP interface on which VRRP is configured goes down.
11 - Lower Priority Advertisement received
12 - Advertisement received from Higher interface IP address with
Equal priority
13 - Advertisement received from Lower interface IP address with
Equal priority
14 - User enabled VRRP
15 - Transition because of any other cause
Troubleshooting suggestions
Begin by determining which interfaces are running
VRRP.
Make note of the state of each interface (ie. Master or
Backup).
Look at the configured parameters, such as VRIDs and
IP addresses, for each interface and be sure they match
on all VRRP routers. Same vrid should not use at the
different vlans.
Capture the VRRP packets and be sure they are coming
from the expected router at the expected time interval.
Note : ERS5500 series must have advance licence to
configure vrrp.
Sniffer considerations
ARP replies from the VRRP IP address will have
a source MAC of the Passport interface (the
packet will contain the VRRP MAC).
ICMP echo replies from the VRRP IP address
will use the VRRP MAC as the source.**
Packets being routed back through a VRRP
interface will use the Passport MAC address as
the source MAC.
Thanks
References
RFC 3768
Dan Duisenberg
J_-_Passport_8600_Class_-_VRRP.ppt
Juergen Arlt VRRP_5x00.ppt,
DAW_5x00.ppt
PP8600_TCG_for_VRRP