www.howtonetwork.org

CCNA & CCNP Certifcation Training

  • About
  • Contact
  • FAQ
  • Join
  • Home
  • CCNA
    • ICND1
    • ICND2
    • 101 CCNA LABS
  • CCNP
    • ROUTE
    • SWITCH
    • TSHOOT
    • 101 CCNP LABS
  • CompTIA
    • Security+
    • Network+
  • Design
    • CCDA
    • CCDP
You are here: Home / TSHOOT / Module 4 / Understanding and Troubleshooting GLBP

Understanding and Troubleshooting GLBP

As is the case with the two previously described FHRPs, it is important to have a fundamental understanding of GLBP in order to effectively troubleshoot any protocol failures or abnormal behavior. Following the same logic used in the previous two sections, this section will first delve into GLBP operation and then conclude with a brief section on how to troubleshoot GLBP.

Understanding Gateway Load Balancing Protocol

Gateway Load Balancing Protocol is a Cisco-proprietary FHRP (First Hop Redundancy Protocol), like HSRP. However, unlike HSRP and VRRP which allow for multiple active gateways via the use or configuration of multiple groups, GLBP allows multiple gateways to actively forward packets using a single GLBP group. GLBP gateways communicate through Hello messages that are sent every 3 seconds to the Multicast address 224.0.0.102, using UDP port 3222.

When Global Load Balancing Protocol is enabled, the GLBP group members elect one gateway to be the active virtual gateway (AVG) for that group. The AVG is the gateway that has the highest priority value. In the event that the priority values are equal, the AVG will be elected as the gateway with the highest IP address in the group. The other gateways in the GLBP group provide backup for the AVG in the event that the AVG becomes unavailable.

The AVG answers all ARP requests for the virtual router address. In addition to this, the AVG assigns a virtual MAC address to each member of the GLBP group. Each gateway is therefore responsible for forwarding packets that are sent to the virtual MAC address it has been assigned by the AVG. These gateways are referred to as active virtual forwarders (AVFs) for their assigned MAC addresses. GLBP operation is illustrated in Figure 3-3:

img3 (3)

Fig. 3-3. Gateway Load Balancing Protocol Operation

Referencing Figure 3-3, gateway GLBP-1 is configured with a priority of 110, gateway GLBP-2 is configured with a priority of 105, and gateway GLBP-3 is using the default priority of 100. GLBP-1 is elected AVG, and GLBP-2 and GLBP-3 are assigned virtual MAC addresses bbbb.bbbb.bbbb and cccc.cccc.cccc, respectively, and become AVFs for those virtual MAC addresses. GLBP-1 is also the AVF for its own virtual MAC address, which is aaaa.aaaa.aaaa.

Hosts 1, 2 and 3 are all configured with the default gateway address 192.168.1.254, which is the virtual IP address assigned to the GLBP group. Host 1 sends out an ARP Broadcast for its gateway IP address. This is received by the AVG (GLBP-1) which responds with its own virtual MAC address aaaa.aaaa.aaaa. Host 1 forwards traffic to 192.168.1.254 to this MAC address.

Host 2 sends out an ARP Broadcast for its gateway IP address. This is received by the AVG (GLBP-1) which responds with the virtual MAC address of bbbb.bbbb.bbbb (GLBP-2). Host 2 forwards traffic to 192.168.1.254 to this MAC address and GLBP-2 forwards this traffic.

Host 3 sends out an ARP Broadcast for its gateway IP address. This is received by the AVG (GLBP-1) which responds with the virtual MAC address of cccc.cccc.cccc (GLBP-3). Host 3 forwards traffic to 192.168.1.254 to this MAC address and GLBP-3 forwards this traffic.

A GLBP group allows up to four virtual MAC addresses per group. The AVG is responsible for assigning the virtual MAC addresses to each member of the group. Other group members request a virtual MAC address after they discover the AVG through Hello messages. Gateways are assigned the next virtual MAC address in sequence. A gateway that is assigned a virtual MAC address by the AVG is known as a primary virtual forwarder while a gateway that has learned the virtual MAC address is referred to as a secondary virtual forwarder. The allocated virtual MAC addresses for the AVFs can be seen using the show glbp command:

R3#show glbp fastethernet 0/0
FastEthernet0/0 – Group 1
State is Active
    5 state changes, last state change 00:01:21
  Virtual IP address is 10.0.0.254
  Hello time 3 sec, hold time 10 sec
    Next hello sent in 0.000 secs
  Redirect time 600 sec, forwarder time-out 14400 sec
  Preemption disabled
  Active is local
  Standby is 10.0.0.2, priority 105 (expires in 8.996 sec)
Priority 110 (configured)
Weighting 100 (default 100), thresholds: lower 1, upper 100
Load balancing: round-robin
Group members:
000d.289e.f940 (10.0.0.1)
000f.235e.f120 (10.0.0.3) local
0013.7faf.3e00 (10.0.0.2)
  There are 3 forwarders (1 active)
Forwarder 1
State is Listen
4 state changes, last state change 00:01:00
MAC address is 0007.b400.0101 (learnt)
Owner ID is 000d.289e.f940
Redirection enabled, 599.188 sec remaining (maximum 600 sec)
Time to live: 14399.188 sec (maximum 14400 sec)
Preemption enabled, min delay 30 sec
Active is 10.0.0.1 (primary), weighting 100 (expires in 9.188 sec)
Forwarder 2
State is Listen
2 state changes, last state change 00:01:01
MAC address is 0007.b400.0102 (learnt)
Owner ID is 0013.7faf.3e00
Redirection enabled, 597.144 sec remaining (maximum 600 sec)
Time to live: 14397.144 sec (maximum 14400 sec)
Preemption enabled, min delay 30 sec
Active is 10.0.0.2 (primary), weighting 100 (expires in 7.144 sec)
Forwarder 3
State is Active
3 state changes, last state change 00:01:32
MAC address is 0007.b400.0103 (default)
Owner ID is 000f.235e.f120
Redirection enabled
Preemption enabled, min delay 30 sec
Active is local, weighting 100

Within the GLBP group, a single gateway is elected as the AVG, and another gateway is elected as the standby virtual gateway. All other remaining gateways in the group are placed in a listen state. If an AVG fails, the standby virtual gateway will assume responsibility for the virtual IP address. At the same time, an election is held and a new standby virtual gateway is then elected from the gateways currently in the listen state.

In the event the AVF fails, one of the secondary virtual forwarders in the listen state assumes responsibility for the virtual MAC address. However, because the new AVF is already a forwarder using another virtual MAC address, GLBP needs to ensure that the old forwarder MAC address ceases being used and hosts are migrated away from this address. This is achieved using two timers:

  1. The redirect timer
  2. The timeout timer

The redirect time is the interval during which the AVG continues to redirect hosts to the old virtual forwarder MAC address. When this timer expires, the AVG stops using the old virtual forwarder MAC address in ARP replies, although the virtual forwarder will continue to forward packets that were sent to the old virtual forwarder MAC address.

When the timeout timer expires, the virtual forwarder is removed from all gateways in the GLBP group. Any clients still using the old MAC address in their ARP caches must refresh the entry to obtain the new virtual MAC address. GLBP uses the hello messages to communicate the current state of these two timers.

By default, the GLBP gateway preemptive scheme is disabled. A backup virtual gateway can become the AVG only if the current AVG fails, regardless of the priorities assigned to the virtual gateways. This default behavior is the same as that which is employed by HSRP. GLBP uses a weighting scheme to determine the forwarding capacity of each gateway that is in the GLBP group. The weighting assigned to a gateway in the GLBP group can be used to determine whether it will forward packets and, if so, the proportion of hosts residing on the LAN for which it will forward packets.

By default, each gateway is assigned a weight of 100. Administrators can additionally configure the gateways to make dynamic weighting adjustments by configuring object tracking, such as for interfaces and IP prefixes, in conjunction with GLBP. If an interface fails, the weighting is dynamically decreased by the specified value, allowing gateways with higher weighting values to be used to forward more traffic than those with lower weighting values.

Troubleshooting Gateway Load Balancing Protocol

GLBP troubleshooting follows the same logic as the other FHRPs described in previous sections. In order to effectively troubleshoot, you need to intimately understand how the protocol is configured and operates. Real-time troubleshooting for GLBP can be performed by issuing thedebug glbp command. However, as is the case with any debug command, keep in mind that this action increases processor utilization on the gateway, which may degrade performance.

Prev

Next

About Us

This is a free bonus site for members of www.howtonetwork.com

Copyright

The content on this copyright Reality Press Ltd.
Copyright Reality Press Ltd.