Consider an
active-active deployment consisting of NetScaler ADCs NS1, NS2, and NS3.
Virtual IP addresses VIP1, VIP2, VIP3 are configured on each of these ADCs.
Because of their priorities, VIP1 is active on NS1, VIP2 is active on NS2, and
VIP3 is active on NS3.
As shown in the
table below, the dead interval is set to the same value (2 seconds) on all the
three nodes.
The VRRP
communication intervals (hello interval and dead interval) of a node apply to
all the VRIDs configured on the node, and in turn apply to all VIP addresses
associated with the VRIDs on the node.
On each node,
the VIP addresses that are active (master) on that node use the hello interval,
and the dead interval is used by the VIP addresses that are inactive (backup)
on that node.
Preemption is
disabled for the VIP addresses in all the three nodes.
The following
table lists the settings used in this example.
|
Settings on NS1
|
Settings on NS2
|
Settings on NS3
|
VIP
addresses
|
VIP1 (for reference purposes only)
|
- IP address: 192.0.1.10
- VRID: 10
- Priority: 90
|
- IP address: 192.0.1.10
- VRID: 11
- Priority: 30
|
- IP address: 192.0.1.10
- VRID: 15
- Priority: 60
|
VIP2 (for reference purposes only)
|
- IP address: 192.0.1.20
- VRID: 20
- Priority: 100
|
- IP address: 192.0.1.20
- VRID: 21
- Priority: 300
|
- IP address: 192.0.1.20
- VRID: 25
- Priority: 200
|
VIP3 (for reference purposes only)
|
- IP address: 192.0.1.30
- VRID: 30
- Priority: 70
|
- IP address: 192.0.1.30
- VRID: 31
- Priority: 140
|
- IP address: 192.0.1.30
- VRID: 35
- Priority: 210
|
Communication Intervals
|
Hello Interval
|
400 milliseconds
|
400 milliseconds
|
400 milliseconds
|
Dead Interval
|
2
seconds
|
2
seconds
|
2
seconds
|
The execution
flow is as follows:
- NS1 sends hello messages
at a set hello interval of 200 ms to NS2 and NS3 for the VIP1 address, because
VIP1 is active (the master) on NS1. Similarly, NS2 sends hello messages at a
set interval (600 ms) for VIP2, and NS3 sends hello messages at a set interval
(800ms) for VIP3.
- On NS1, the set dead
interval applies to VIP2 and VIP3, because they are inactive (backups) on NS1.
Similarly, on NS2, the set dead interval applies to VIP1 and VIP3, and on NS3,
the set dead interval applies to VIP1 and VIP2.
- If NS1 goes down, NS2
and NS3 consider NS1 to be down if they receive no hello messages from NS1 for
2 seconds (the dead interval). VIP1 on NS3 takes over and becomes active
(master), because its VRID priority (60) is higher than that of VIP1 of NS2
(30).