Jim, thanks for the reply! So do you agree that it's not just the "advskew" value, but the system with lowest "advbase"+"advskew" value will take the master role? And it seems that "advbase" is byte number 40 and "advskew" is byte number 37 in CARP advertisements. For example in this CARP advertisement "advbase" is 2(02) and "advskew" is 254(fe):
0x0020: 0012 2122 fe07 0002 f66a 97c4 8a3a 47f9 ..!".....j...:G. Last but not least, I still don't quite understand why both "advbase" and "advskew" are available.. One could determine the master/backup role solely with "advbase", couldn't he? thanks, Martin On 9/10/14, Jim Pingle <[email protected]> wrote: > On 9/10/2014 5:15 AM, Martin T wrote: >> 1) Why does the messages interval matter to CARP? Is CARP designed in >> a way that CARP preferres system which announces CARP messages with >> shortest interval? > > Yes, the fastest advertisement wins the election and becomes master. > >> 2) Why is "advskew" needed if one could determine the master/backup >> role solely with "advbase"? > > See above. advbase is a base time added to the skew. (+1 sec per base > value) > > On slower networks you need to use a higher advbase on both to account > for lag in local network equipment such as when the two nodes are in > different buildings or similar situations. > > Typically, base matches on both and you set the skew to give your > preferred primary node preference. > > Jim > _______________________________________________ > List mailing list > [email protected] > https://lists.pfsense.org/mailman/listinfo/list > _______________________________________________ List mailing list [email protected] https://lists.pfsense.org/mailman/listinfo/list
