Re: DR & BDR Election

Yasuhiro Ohara <yasu@SFC.WIDE.AD.JP> Fri, 24 May 2002 02:23 UTC

Received: from cherry.ease.lsoft.com (cherry.ease.lsoft.com [209.119.0.109]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id WAA04076 for <ospf-archive@LISTS.IETF.ORG>; Thu, 23 May 2002 22:23:16 -0400 (EDT)
Received: from walnut (209.119.0.61) by cherry.ease.lsoft.com (LSMTP for Digital Unix v1.1b) with SMTP id <20.0061B0D0@cherry.ease.lsoft.com>; Thu, 23 May 2002 22:23:33 -0400
Received: from DISCUSS.MICROSOFT.COM by DISCUSS.MICROSOFT.COM (LISTSERV-TCP/IP release 1.8d) with spool id 893410 for OSPF@DISCUSS.MICROSOFT.COM; Thu, 23 May 2002 22:23:33 -0400
Received: from 203.178.142.130 by WALNUT.EASE.LSOFT.COM (SMTPL release 1.0d) with TCP; Thu, 23 May 2002 22:22:28 -0400
Received: from localhost (page.sfc.wide.ad.jp [203.178.143.89]) by shonan.sfc.wide.ad.jp (Postfix) with ESMTP id 561E15D091; Fri, 24 May 2002 11:22:27 +0900 (JST)
References: <F11r7FYpVZd5eH5mzpa0000abc9@hotmail.com>
X-Mailer: Mew version 2.1 on XEmacs 21.1.14 (Cuyahoga Valley)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <20020524.111607.113946449.yasu@sfc.wide.ad.jp>
Date: Fri, 24 May 2002 11:16:07 +0900
Reply-To: Mailing List <OSPF@DISCUSS.MICROSOFT.COM>
Sender: Mailing List <OSPF@DISCUSS.MICROSOFT.COM>
From: Yasuhiro Ohara <yasu@SFC.WIDE.AD.JP>
Subject: Re: DR & BDR Election
Comments: To: made_in__china@HOTMAIL.COM
To: OSPF@DISCUSS.MICROSOFT.COM
In-Reply-To: <F11r7FYpVZd5eH5mzpa0000abc9@hotmail.com>
Content-Transfer-Encoding: 7bit

> Lets say we have 4 routers, namely, S, T, U, and V with priority 2, 3, 4,
> and 5 respectively. Initially none of the routers had interact with one
> another yet. When all first broadcasted their respective Hello
> packets, they declared themselves individually as DR but let BDR = 0.0.0.0.
>
> At this stage, all routers have received this information and they start to
> calculate (since this information is new to them, it triggers
> NeighbourChange event, and thus the calculation) and found out that there is
> no BDR yet and V should be nominated as DR.
>
> V, the newly elected DR, repeats step (2) and (3), but its perception about
> DR & BDR stays the same (DR = V; BDR= 0.0.0.0).
>
> The next moment, all broadcast individual Hello packets again, each Hello
> packet, except from U, still contain DR = V and BDR = 0.0.0.0. Hello packet
> from U now contains DR = V and BDR = U. All routers see the change and begin
> calculating again. Now every router realizes that BDR = U and DR = V and the
> election process complete for all routers except router U.
>
> U, the newly elected BDR, repeats step (2) and (3), but its perception about
> DR & BDR stays the same (DR = V; BDR= U). Election process ends. Subsequent
> Hello packets from all routers will have DR = V and BDR = U.
>
> I believe some part is wrong, but please point out to me.

Why (and where) do you believe some part is wrong ? Practically It
will be more complexed depending when to receive the other's Hello
packets, but your understanding seems almost correct to me.

> Further question: Should a router immediately broadcast a Hello packet when
> its perception about DR/BDR changed? Or just wait for the Hello Timer to
> expire?

It's implementation dependent, but I believe latter. If all the router
on a segment behaves like former, the segment's Hello will be almost
synchronized.

regards.
yasu.