Home > Gateway Load Balancing Protocol GLBP Tutorial

Gateway Load Balancing Protocol GLBP Tutorial

May 4th, 2014 Go to comments

The main disadvantage of HSRP and VRRP is that only one gateway is elected to be the active gateway and used to forward traffic whilst the rest are unused until the active one fails. Gateway Load Balancing Protocol (GLBP) is a Cisco proprietary protocol and performs the similar function to HSRP and VRRP but it supports load balancing among members in a GLBP group. In this tutorial, we will learn how GLBP works.

Note: Although we can partially configure load balancing via HSRP or VRRP using multiple groups but we have to assign different default gateways on the hosts. If one group fails, we must reconfigure the default gateways on the hosts, which results in extra administrative burden.

GLBP Election

When the routers are configured to a GLBP group, they first elect one gateway to be the Active Virtual Gateway (AVG) for that group. The election is based on the priority of each gateway (highest priority wins). If all of them have the same priority then the gateway with the highest real IP address becomes the AVG. The AVG, in turn, assigns a virtual MAC address to each member of the GLBP group. Each gateway which is assigned a virtual MAC address is called Active Virtual Forwarder (AVF). A GLBP group only has a maximum of four AVFs. If there are more than 4 gateways in a GLBP group then the rest will become Standby Virtual Forwarder (SVF) which will take the place of a AVF in case of failure. The virtual MAC address in GLBP is 0007.b400.xxyy where xx is the GLBP group number and yy is the different number of each gateway (01, 02, 03…).

Note:
+ In this tutorial, the words “gateway” and “router” are use interchangeable. In fact, GLBP can run on both router and switch so the word “gateway”, which can represent for both router and switch, is better to describe GLBP.
+ For switch, GLBP is supported only on Cisco 4500 and 6500 series.

The gateway with the highest priority among the remaining ones is elected the Standby AVG (SVG) which will take the role of the AVG in the case it is down.

GLBP_topology.jpg

For example in the topology above suppose all of the gateways have the same priority and GLBP is turned on at the same time on all gateways (or they are configured with the preempt feature), R4 will be elected AVG because of its highest IP address 10.10.10.4. R3 will be elected SVG because of its second highest IP address (10.10.10.3). The AVFs are elected based on the weight so the four highest weight values would win for the four AVFs. In this case we only have four gateways so surely they are all elected AVFs. With GLBP, there is still one virtual IP address which is assigned by the administrator via the “glbp ip …” command (for example glbp 1 ip 10.10.10.100).

How GLBP works

GLBP_topology_works.jpg

After the election ends, R4 is both the AVG and AVF; R3 is SVG and AVF; R2 & R1 are pure AVFs. R4 assigned the MAC addresses of 0007.b4000101, 0007.b4000102, 0007.b4000103, 0007.b4000104 to R1, R2, R3, R4 respectively; we will abbreviate the MAC addresses as 01, 02, 03 and 04. Let’s see how GLBP works!

The default gateway of PC1, PC2 and PC3 were set to 10.10.10.100 so if they want to send traffic outside they have to send ARP Request first to their default gateway. They broadcast an ARP Request to ask “Hey, I need to know the MAC address of the guy 10.10.10.100!”. R4, which is the AVG, is responsible for answering the ARP Request. But the trick here is it does not always give the same answer to that question:

For PC1, R4 will answer “The MAC address of the guy 10.10.10.100 is 01!”.
For PC2, R4 will answer “The MAC address of the guy 10.10.10.100 is 02!”.
For PC3, R4 will answer “The MAC address of the guy 10.10.10.100 is 03!”.
For PC4, R4 will answer “The MAC address of the guy 10.10.10.100 is 04!”.

As the result of this, PC1 will send the traffic to R1; PC2 will send traffic to R2; PC3 will send traffic to R3 and PC4 will send traffic to R4! And load balancing is achieved!

When AVG fails

Everything is working smoothly then suddenly R4 (AVG) is down. What will happen now?

As we know R3 was chosen as SVG because of its second highest priority so when R4 is down, R3 becomes the new AVG and is responsible for forwarding traffic sent to the virtual MAC address of R4. In other words, R3 is now responsible for traffic from PC3 & PC4 with two MAC addresses 03, 04. Communication between R4 continues without disruption or change at the host side.

GLBP_topology_AVG_fails.jpg

Wait! Maybe you have a question to ask here. So how about the Switch? How can the switch forward the frames to the new SVG on another port? Remember that Switch saved the MAC 04 for the port connecting to R4. Well, the answer here is when the standby becomes the active it will send a gratuitous ARP reply to flush the CAM tables of the switches and the ARP cache of the hosts. So the switch will learn the new port for MAC 04.

Each AVF listens to others, if one AVF can no more forward traffic, all listening AVFs will compete to take the responsibility of the failed AVF vMAC along with its own (AVF with higher weighting wins).

To detect a gateway failure, GLBP members communicate between each other through hello messages sent every 3 seconds to the multicast address 224.0.0.102, User Datagram Protocol (UDP) port 3222.

GLBP supports up to 1024 virtual routers (GLBP groups) per physical interface of a router.

Load balancing algorithm

GLBP load sharing is done in one of three ways:

Round-robin load-balancing algorithm: Each router MAC is used sequentially to respond to ARP requests. This is the default load balancing mode in GLBP and is suitable for any number of end hosts.
Weighted load-balancing algorithm
: Traffic is balanced proportional to a configured weight. Each GLBP router in the group will advertise its weighting and assignment; the AVG will act based on that value. For example, if there are two routers in a group and R1 has double the forwarding capacity of router B, the weighting value of router A should be configured to be double the amount of R2.
Host-dependent load-balancing algorithm: A given host always uses the same router.

Interface Tracking

Like HSRP, GLBP can be configured to track interfaces. For example, if the WAN link from Router R4 is lost, GLBP detects the failure and decrements the router priority (when a tracked interface fails). The second router then becomes primary. This transition is transparent for the hosts.

GLBP_Interface_Tracking.jpg

GLBP Authentication

GLBP has three authentication types:
+ No authentication
+ MD5 authentication
+ Plain text authentication

MD5 is the most security method so far. With this method, the same keys are configured on both ends. One end will send the encrypted key (called hash, using MD5) to the other. At the other side, the same key is also encrypted and compared with the receiving encrypted key. If the two encrypted keys are the same then authentication is approved. The advantage of this method is only the encrypted key is sent through the link. The key for the MD5 hash can either be given directly in the configuration using a key string or supplied indirectly through a key chain.

Comments (39) Comments
Comment pages
1 2 3 4 2117
  1. yilmaz
    May 12th, 2018

    Hello, anyone have CCNA dump pls sent over to me {email not allowed}.

  2. yilmaz
    May 12th, 2018

    yilmaz.mlke@hotmail…..

  3. yasser
    May 20th, 2018

    please i need the latest dump files {email not allowed}

  4. Sheron
    May 22nd, 2018

    Here is instant Download / Purchase link. Cheapest Ever. 100% working Exam Real Questions:

    http://shrib.com/?v=nc#Pk9QTGCBeq92wwLTHKPk

  5. Anonymous
    May 22nd, 2018

    Please send me the latest dump at henleycaleb (at) yahoo.com

  6. Topper Harley
    May 23rd, 2018

    Stop asking for dumps and instead support the 9tut people for their work and effort

  7. Jeff
    May 31st, 2018

    I am about to do the exam can you pls send me the latest CCNA Dump pls Thanks ! {email not allowed}…

  8. Jeff
    May 31st, 2018

    dario-as99@hotmail. ….

  9. Pegao
    June 5th, 2018

    Just passed, this site is the shit!! If you want to pass just study every thing in here and you will pass. Also, digest the subjects; it will make easier if you know the gist of the questions and understand them. Good luck!!

  10. TestTaker
    June 6th, 2018

    Hi all,

    Can anybody tell me what is the last valid dump?

    Regards.

  11. Testvoice
    June 6th, 2018

    hello, anyone have ccna voice 200-060 dumps pls sent to me {email not allowed}

    i am goint to present the exam in trhee weeks.

  12. Testvoice
    June 6th, 2018

    r. landa .v94 @ gmail . com

  13. CyrusKain
    June 7th, 2018

    Took the CCNA R&S today. Passed with 9xx. 90% of questions from 9Tut. A few new ones including a drag and drop about something like p-preferred, o-preferred, I’m not sure really sure…it’s ppp-based, though. I think maybe multilink ppp behavior? Anywho, it was a match the “type” with a description. I read the entire Wendell Odom ICND 1 and 2, and I don’t “remember” seeing it in there, but it might have been.

    Got EIGRP GRE, OSPF Neigbor, Vlan troubleshooting, ACL 1 and 2. Mostly the same, with some IP address changes.

    Thanks 9tut!

  14. David
    June 13th, 2018

    please correcte that the supported platform for GLBP are note just 4500 and 6500.
    it all that, coped from cisco
    https://www.cisco.com/en/US/docs/ios/12_2t/12_2t15/feature/guide/ft_glbp.html#wp1027129
    Supported Platforms
    Cisco 1700 series, Cisco 2600 series, Cisco 3620, Cisco 3631, Cisco 3640, Cisco 3660, Cisco 3725, Cisco 3745, Cisco 7100 series, Cisco 7200 series, Cisco 7400 series, Cisco 7500 series

  15. Anonymous
    June 19th, 2018

    Hi Guys, can someone please help me with latest CCNA dumps. I am applying for masters and I need to clear the exam in another 15 days.It will be really helpful if you could mail me the dumps.
    ramsrungavarapu @ gm ail . com

  16. Anonymous
    June 19th, 2018

    Hi Guys, can someone please help me with latest CCNA dumps. I am applying for masters and I need to clear the exam in another 15 days.It will be really helpful if you could mail me the dumps. ramsrungavarapu @ gm ail . com

  17. Juniper
    June 28th, 2018

    Hello, Do we have similar Forum for Juniper? If so can anyone please help me with the Site. Thanks a Lot!

  18. Newton
    July 1st, 2018

    ALL LATEST VALID DUMPS AT BELOW LINK:
    CCNA
    CCNP
    CCIE
    PASS without any risk.

    http://docs.google.com/document/d/1GyGH0VZq6XcdRI7nHBLHiu_0gIb1Vjd3cxbyS64VEWc/edit

  19. meloman9
    July 17th, 2018

    Can someone please send me the latest dumps pleasseee…..
    thank you!!! 9meloman(at)gmail com

  20. Franko
    July 20th, 2018

    Good afternoon all. Do any of you know where the CCDA dumps can be acquired from ?

    This site has been invaluable in helping me achieve my CCNP, but the design track doesn’t appear to have such a quality site dedicated to it.

  21. mdk
    July 24th, 2018

    any1 have ccna security dumps pls. mdkanne at hotmail dot com thanku

  22. Kenny
    August 7th, 2018

    Hi guys looking for CCNA dumps urgently for my exam in 2 weeks pls help out: {email not allowed}

  23. Kenny
    August 7th, 2018

    Hi guys looking for CCNA dumps urgently for my exam in 2 weeks pls help out: revelation at yahoo dot com.

  24. Kenny
    August 7th, 2018

    revelationr at yahoo dot com

  25. EKL
    August 9th, 2018

    Anybody have new dumps for the 1 part test? Much appreciated

    hinsonm1442 @ gmail

  26. xiuo
    August 14th, 2018

    I will share with you a useful website where the questions are true and effective and updated quickly.

  27. Mike Kanne
    September 1st, 2018

    Does anyone have any dumps for ICND2?

  28. Mike Kanne
    September 1st, 2018

    Sorry pls if u do mdkanne at hotmail dot com

  29. Jasek
    September 4th, 2018

    Hello Guys,

    I am looking for practice questions specifically for the exam CISCO SISAS 300-208.

    Thanks,

    Jasek

  30. Seth
    September 4th, 2018

    I have a premium account let me know if anyone wants.
    Ping me on pr*ayag*shah22@*gmail*com remove the*

  31. cloin jonty
    September 19th, 2018

    My recommendation would be these 100% real exam questions 3V0-624 Dumps for Guaranteed Success. exact2pass.com/3V0-624-pass.html

  32. Even
    September 20th, 2018

    Hi, I m going to take the ccna 200-125 exam .!
    Can I get the latest dump .
    Plese,help me .!
    Thanks.

    ud9ytu @ gmail . c

  33. linq
    October 3rd, 2018

    Does anyone have VCE player that is free current version or one version behind?

  34. BG21121
    October 4th, 2018

    Hi guys! can please send the latest dump for ccna 200-125 i will take my exan this october 21st thank you!!! balongoffice123(at)gmail(dot)com

  35. Anonymous
    October 5th, 2018

    Hello, could I please get the latest dump for 200-125? Much appreciated!
    mendozaris(at)gmail

  36. Mi
    October 12th, 2018

    Hello, could I please get the latest dump for 200-125?
    please send it to my mail {email not allowed}

  37. Genuine
    October 14th, 2018

    Hi guys,
    Can anyone is having CCNA 200-125 dumps ?
    Thanks

  38. Krz
    October 15th, 2018

    Hi
    Can I please have latest dump to 300 135 ?
    szcz*ypio*rski*pio*tr at gmail com

  39. Blazen
    October 15th, 2018

    Hi, I m going to take the ccna 200-125 exam !
    Can I get the latest dump, please.
    Plese,help me.
    Thanks.

    blazen. peric 2 @ gmail.c o m

Comment pages
1 2 3 4 2117
Add a Comment