01-05-2013 09:56 AM - edited 03-07-2019 10:55 AM
Can somone please explain how the AVF are elected in GLBP? I mean if we have 5 routers in the network then which router will be in backup mode and how the active forwarders are elected?
01-05-2013 10:19 AM
GLBP is different from HSRP and VRRP. There is no active and stand-by.
The routers that receive this MAC address assignment are known as Active Virtual Forwarders (AVF).
more info here:
HTH
01-05-2013 12:44 PM
Thanks for your input. I was reading few documents about the GLBP but none of them explains how the selection of AVF happens.
Lets say we configure glbp on five routers connected to one switch. As we know we can have only 4 forwarders but which four will forward the traffic and on what basis they will get selected.
I hope now I am clear about the question.
01-05-2013 02:23 PM
what basis they will get selected.
It is per host in a round-robin scheme
HTH
01-06-2013 12:59 AM
Can you please exlpain more abut how out of five router which four will be slected as forwarder?
01-06-2013 01:38 AM
Hi,
GLBP group members elect one Active Virtual Gateway (AVG). Other members will be backup to AVG(known as AVF, active virtual forwarder). Then AVG assign one virtual MAC address to each GLBP member. Also AVG is responsible to answering to ARP requests. By default load balancing method is Round-Robin. With this method when ARP request comes asking MAC address of default gateway AVG answers with MAC address one of AVFs. On Second request it answers with next AVFs MAC address and so on.
More info you can find here
http://www.cisco.com/en/US/prod/collateral/iosswrel/ps6537/ps6554/ps6600/product_data_sheet0900aecd803a546c.html
Sent from Cisco Technical Support iPhone App
01-06-2013 02:15 AM
Hello Hemant, Reza and Abzal,
What Hemant is asking about is how exactly out of 5 or more routers on a common segment, exactly 4 are chosen to be AVFs. And this is indeed a very good question for which I have no answer currently. The debug glbp event and debug glbp packet shows that AVFs get assigned some kind of priority that does not seem to correspond either to the configurable GLBP priority (used to elect the AVG) or the weight (used in load balancing and optionally in AVF preemption), and is thus not to be directly influenced. This priority appears to be either 167 for primary AVFs (the AVFs that have originally been assigned their vMAC by the AVG) or 135 for secondary AVFs (the AVFs that have taken on additional vMAC for a former AVF that has since failed). However, why these numbers are 167 and 135, whether they can be influenced by configuration and how these numbers are originally assigned is a mystery to me.
I wish that a GLBP developer read this thread and provided his/her valuable insight!
Best regards,
Peter
01-06-2013 11:10 PM
Thanks Peter. I hope I will get my answer soon.
04-11-2018 01:05 PM
Hi Hemant Kumar,
I've tried it with a simulation and used a sniffer to verify.
Enable preemption and set priorities like
If you don't assign priority then the highest IP for the segment wins the AVG election. In this case R1 wins AVG election. However, enable preemption to have it deterministic instead of who comes online first, dies first, last .......
When it comes to AVF - it follows these same priorities i.e.
R1 will become active forwarder 1 (the first virtual MAC-address) - also the AVG
R2 will become active forwarder 2 (the second virtual MAC-address)
R3 will become active forwarder 3 (the third virtual MAC-address)
R4 will become active forwarder 4 (the fourth virtual MAC-address)
The sniffer told me that the AVG priorities are exactly as I've set them via CLI - AVF priority in the hello from R1 through R4 is 167 - except for R5 since is listening only for all 4 virtual forwarder addresses - wherever that comes from? I haven't found a way to change the AVF priority.
Although there is a command glbp 1 forwarder preempt which supposingly enables preemption i.e. overthrow the current forwarder, I hadn't configured it - yet - the forwarder gets overthrown anyway after 30 seconds?
Kind Regards
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide