GLBP is the abbreviation for “Gateway Load Balancing Protocol”.GLBP is a virtual gateway protocol similar to HSRP and VRRP. However, unlike others, GLBP has capability of using multiple physical gateways simultaneously. In case of HSRP or VRRP, only one physical gateway in a standby/redundancy group is responsible for packet forwarding, others remain inactive in standby/backup state. GLBP has a little different mechanism of traffic forwarding. It elects one AVG (Active Virtual Gateway) for each group. Other group members act as backup of AVG. This is monitored using hello and holdtime timers, which are 3 and 10 seconds by default. The elected AVG then assigns a virtual MAC address to each member of the GLBP group, thus enabling AVFs (Active Virtual Forwarders). Each AVF assumes responsibility for forwarding packets sent to its virtual MAC address.
By default, GLBP routers use the local multicast address 184.108.40.206 to send hello packets to their peers every 3 seconds over UDP 3222 (source and destination).
There are multiple methods for load balancing:
- Round-robin: the AVG will hand out the virtual MAC address of AVF1, then AVF2, AVF3 and gets back to AVF1 etc.
- Host-dependent: A host will be able to use the same virtual MAC address of an AVF as long as it is reachable.
- Weighted: If you want some AVFs to forward more traffic than others you can assign them a different weight.
Below key points can summarise GLBP protocol:
- GLBP allows all the Gateways to forward the traffic simultaneously and additionally act as backup for each toher.
- AVG redundancy is controlled by GLBP priority and AVF redundancy is implemented using AVF weight value and two additional timers.
- By default, GLBP routers use the local multicast address 220.127.116.11 to send hello packets to their peers every 3 seconds over UDP 3222 (source and destination).
- Cisco implemented IPv6 support for GLBP in IOS release 12.2(33).
- This is monitored using hello and holdtime timers, which are 3 and 10 seconds by default
- GLBP uses load balancing mechanisms like – Round robin, Hosts dependent and weighted.
- GLBP routers use the local multicast address 18.104.22.168 to send hello packets operates on UDP port 3222
Below scenario is help in understanding the concept of GLBP and its supporting terms –
Routers R1 and R2 LAN Interfaces run GLBP (Group 1) as per below Configuration – The following is the output from “show glbp brief” which displays primary and backup AVG Router including details on Active Virtual forwarders:
The following is the output from “show glbp brief” which displays primary and backup AVG Router including details on Active Virtual forwarders:
If required , below commands can also be issued to show more detail on GLBP AVG and AVF details incuding AVG priority and AVF weights.
PC-1 takes the path via R2 , which is the AVF for traffic from 192.168.0.1 towards 192.168.12.1.
As shown above , PC-2 takes the path via R1 , which is the AVF for traffic from 192.168.0.2 towards 192.168.12.1.
Hence , the above output shows that both the gateways ie R1 and R2 and are active and simultaneously forward the traffic based on the decision taken by AVG active Router.
Below table shows commonly used GLBP commands to configure basic GLBP and to alter GLBP’s behavior:
|1||Enter privileged EXEC mode||router>enable|
|2||Enter global configuration mode||router#configure terminal|
|3||Enter interface configuration mode||router(config)#interface interface|
|4||Configure an IP address on the interface||router(config-if)#ip address address netmask|
|5||Configure an GLBP virtual IP address
Note: Group values can be from 1 to 1023.
The address must be in the same subnet
as the interface IP address (primary or secondary).
|router(config-if)#glbp group-number ip [ip-address]|
|6||Configure the GLBP priority (optional)
Note: The valid values for the priority are from 1 through 255.
|router(config-if)#glbp group-number priority priority|
|7||Configure GLBP preemption (optional)
Note: GLBP preemption is disabled by default.
|router(config-if)#glbp group-number preempt|