Re: [OSPF] LSA Data Base Exchange Between the Master and the Slave

Acee Lindem <acee.lindem@ericsson.com> Wed, 03 July 2013 15:48 UTC

Return-Path: <acee.lindem@ericsson.com>
X-Original-To: ospf@ietfa.amsl.com
Delivered-To: ospf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 80D5821F9D04 for <ospf@ietfa.amsl.com>; Wed, 3 Jul 2013 08:48:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.419
X-Spam-Level:
X-Spam-Status: No, score=-2.419 tagged_above=-999 required=5 tests=[AWL=0.179, BAYES_00=-2.599, HTML_MESSAGE=0.001]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Xnoolg5R9Cpn for <ospf@ietfa.amsl.com>; Wed, 3 Jul 2013 08:47:57 -0700 (PDT)
Received: from usevmg21.ericsson.net (usevmg21.ericsson.net [198.24.6.65]) by ietfa.amsl.com (Postfix) with ESMTP id C6CEE21F9D00 for <ospf@ietf.org>; Wed, 3 Jul 2013 08:47:56 -0700 (PDT)
X-AuditID: c6180641-b7f986d000007a82-f8-51d447ab81c6
Received: from EUSAAHC006.ericsson.se (Unknown_Domain [147.117.188.90]) by usevmg21.ericsson.net (Symantec Mail Security) with SMTP id A0.8D.31362.BA744D15; Wed, 3 Jul 2013 17:47:56 +0200 (CEST)
Received: from EUSAAMB101.ericsson.se ([147.117.188.118]) by EUSAAHC006.ericsson.se ([147.117.188.90]) with mapi id 14.02.0328.009; Wed, 3 Jul 2013 11:47:55 -0400
From: Acee Lindem <acee.lindem@ericsson.com>
To: Biswajit Sadhu <biswajit.sadhu@gmail.com>
Thread-Topic: [OSPF] LSA Data Base Exchange Between the Master and the Slave
Thread-Index: AQHOd9karRb6vRJcC0qJrnLf1haLMJlTNlAAgAAh5ACAAASCAA==
Date: Wed, 03 Jul 2013 15:47:54 +0000
Message-ID: <94A203EA12AECE4BA92D42DBFFE0AE47194BD6@eusaamb101.ericsson.se>
References: <CAH1_U14UD0Depphhk3h8SJSS6E-7dycUzhgD2YZ-TuGJefLk+w@mail.gmail.com> <94A203EA12AECE4BA92D42DBFFE0AE471945CE@eusaamb101.ericsson.se> <CAH1_U15tuH7z2mEdAmWhwSFKiDVN_e5b2jjS5NWSKAQhY+noWg@mail.gmail.com>
In-Reply-To: <CAH1_U15tuH7z2mEdAmWhwSFKiDVN_e5b2jjS5NWSKAQhY+noWg@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [147.117.188.135]
Content-Type: multipart/alternative; boundary="_000_94A203EA12AECE4BA92D42DBFFE0AE47194BD6eusaamb101ericsso_"
MIME-Version: 1.0
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrPLMWRmVeSWpSXmKPExsUyuXRPlO4a9yuBBu/esFq8uz6HzaLl3j12 ByaPnbPusnssWfKTKYApissmJTUnsyy1SN8ugStjZ8cZxoKHORXdGz4yNjD2R3QxcnJICJhI zF98hQXCFpO4cG89WxcjF4eQwFFGic0/LkM5yxgl3q3exwhSxSagI/H80T9mEFtEQFdi5+JH QN0cHMwCqhKPj7KBhIUFvCV+/t/KDBIWEfCR2LU4EKLaSaL10V4mEJtFQEVix/EuVhCbF6h8 55+fYK1CAjcZJVpfgU3nFAiUmLl0BthWRqDbvp9aA9bLLCAucevJfCaImwUkluw5zwxhi0q8 fPyPFcJWlvg+5xELRH2+xJSVPxghdglKnJz5hGUCo+gsJKNmISmbhaQMIq4jsWD3JzYIW1ti 2cLXzDD2mQOPgXpBnreW+PBPEVnJAkaOVYwcpcWpZbnpRoabGIGRdkyCzXEH44JPlocYpTlY lMR5N+idCRQSSE8sSc1OTS1ILYovKs1JLT7EyMTBKdXAaPLktBNPBefeE7+PP09VEFVQyYjX OaukwP4o+XiPcPYFN43XPJt55bjlbqj9y/gf81m+W1VV26LI7F9GFKPpjEcTq3kSXzD8Dvvh 6V38tGnmxusx+ektvTxbhBbe1HyZu+HDT4OdshyC5kYpEY1ufxg+BH7MF526yH8DU94JRp33 v5UjXbqVWIozEg21mIuKEwHoMzrLggIAAA==
Cc: "<ospf@ietf.org>" <ospf@ietf.org>
Subject: Re: [OSPF] LSA Data Base Exchange Between the Master and the Slave
X-BeenThere: ospf@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: The Official IETF OSPG WG Mailing List <ospf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ospf>, <mailto:ospf-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ospf>
List-Post: <mailto:ospf@ietf.org>
List-Help: <mailto:ospf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ospf>, <mailto:ospf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Jul 2013 15:48:02 -0000

It means that if the slave receives a database exchange packet indicating the master has sent everything and the slave has also sent everything to the master (or will have with the database exchange packet to be sent), the database exchange is complete.
Thanks,
Acee

On Jul 3, 2013, at 11:31 AM, Biswajit Sadhu wrote:

Hi Acee,

I would like to thank you for finding time to reply my mail.

I had gone through section 10.6 and 10.8 still i would like to know in section 10.6 what these below line means.



            The slave must send a Database Description Packet in reply.
            If the received packet has the more bit (M) set to 0, and
            the packet to be sent by the slave will also have the M-bit
            set to 0, the neighbor event ExchangeDone is generated.


 Best Regards,

Biswajit Sadhu


On Wed, Jul 3, 2013 at 7:00 PM, Acee Lindem <acee.lindem@ericsson.com<mailto:acee.lindem@ericsson.com>> wrote:
Hi Biswajit,

On Jul 3, 2013, at 6:35 AM, Biswajit Sadhu wrote:

Hi All,

I have a query in the OSPF Design of LSA Data Base Exchange.

In data base exchange process if the master has smaller database the the slave and the master sends the More bit as zero in its DB packet  then the slave should also set the M bit to 0 in reply to the master's DB packet with the same sequence number ?

No. The slave should continue to set the M bit until it has sent its entire database. The master should continue to poll the slave with increasing sequence numbers until the slave has completed exchanging its entire database and cleared the M bit. Excerpt from RFC 2328:

        This sending and receiving of Database Description packets is
        called the "Database Exchange Process".  During this process,
        the two routers form a master/slave relationship.  Each Database
        Description Packet has a sequence number.  Database Description
        Packets sent by the master (polls) are acknowledged by the slave
        through echoing of the sequence number.  Both polls and their
        responses contain summaries of link state data.  The master is
        the only one allowed to retransmit Database Description Packets.
        It does so only at fixed intervals, the length of which is the
        configured per-interface constant RxmtInterval.

Each Database Description contains an indication that there are
more packets to follow --- the M-bit. The Database Exchange
Process is over when a router has received and sent Database
Description Packets with the M-bit off.

Read RFC 2328 sections 10.6 and 10.8 and it should be clear. The actions of the database exchange master and slave are described in detail.

Hope this Helps,
Acee








 Should the data base exchange stop after that. what if the slave had more lsa's to send to the Master?

What about the vice-versa case where Master has a large Data base to exchange then the Slave  ?

   As per page 101 .rfc 2328 i am quoting few lines for the same RFC

    http://tools.ietf.org/html/rfc2328



        Master
            Increments the DD sequence number in the neighbor data
            structure.  If the router has already sent its entire
            sequence of Database Description Packets, and the just
            accepted packet has the more bit (M) set to 0, the neighbor
            event ExchangeDone is generated.  Otherwise, it should send
            a new Database Description to the slave.

        Slave
            Sets the DD sequence number in the neighbor data structure
            to the DD sequence number appearing in the received packet.
            The slave must send a Database Description Packet in reply.
            If the received packet has the more bit (M) set to 0, and
            the packet to be sent by the slave will also have the M-bit
            set to 0, the neighbor event ExchangeDone is generated.
            Note that the slave always generates this event before the
            master.


 Best Regards,

Biswajit Sadhu

_______________________________________________
OSPF mailing list
OSPF@ietf.org<mailto:OSPF@ietf.org>
https://www.ietf.org/mailman/listinfo/ospf