Re: [mpls] BFD Packet Flow

Lavanya Srivatsa <lavanya.srivatsa@aricent.com> Sat, 21 August 2010 10:47 UTC

Return-Path: <lavanya.srivatsa@aricent.com>
X-Original-To: mpls@core3.amsl.com
Delivered-To: mpls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id E960E3A6863 for <mpls@core3.amsl.com>; Sat, 21 Aug 2010 03:47:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.745
X-Spam-Level:
X-Spam-Status: No, score=-0.745 tagged_above=-999 required=5 tests=[AWL=-0.835, BAYES_05=-1.11, J_CHICKENPOX_52=0.6, J_CHICKENPOX_54=0.6]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9gjpuO9K2am7 for <mpls@core3.amsl.com>; Sat, 21 Aug 2010 03:47:45 -0700 (PDT)
Received: from jaguar.aricent.com (jaguar.aricent.com [121.241.96.11]) by core3.amsl.com (Postfix) with ESMTP id 4DADC3A67E1 for <mpls@ietf.org>; Sat, 21 Aug 2010 03:47:45 -0700 (PDT)
Received: from jaguar.aricent.com (localhost [127.0.0.1]) by postfix.imss71 (Postfix) with ESMTP id 5307736B37; Sat, 21 Aug 2010 16:17:22 +0530 (IST)
Received: from GUREXHT01.ASIAN.AD.ARICENT.COM (gurexht01.asian.ad.aricent.com [10.203.171.136]) by jaguar.aricent.com (Postfix) with ESMTP id 3C9D036B33; Sat, 21 Aug 2010 16:17:22 +0530 (IST)
Received: from GUREXMB02.ASIAN.AD.ARICENT.COM ([10.203.171.134]) by GUREXHT01.ASIAN.AD.ARICENT.COM ([10.203.171.137]) with mapi; Sat, 21 Aug 2010 16:18:16 +0530
From: Lavanya Srivatsa <lavanya.srivatsa@aricent.com>
To: rtg-bfd <rtg-bfd@ietf.org>, "gregimirsky@gmail.com" <gregimirsky@gmail.com>, "yaacov.weingarten@nsn.com" <yaacov.weingarten@nsn.com>
Date: Sat, 21 Aug 2010 16:18:15 +0530
Thread-Topic: [mpls] BFD Packet Flow
Thread-Index: AQHLQR5cJtHYB/DNZUWc5isipg2+Lg==
Message-ID: <E13C8C03049AFA4E9CEE5A21D3E7F85D146398@GUREXMB02.ASIAN.AD.ARICENT.COM>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "mpls@ietf.org" <mpls@ietf.org>, "gupta_rakesh62@yahoo.co.in" <gupta_rakesh62@yahoo.co.in>
Subject: Re: [mpls] BFD Packet Flow
X-BeenThere: mpls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Multi-Protocol Label Switching WG <mpls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/mpls>, <mailto:mpls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/mpls>
List-Post: <mailto:mpls@ietf.org>
List-Help: <mailto:mpls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mpls>, <mailto:mpls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 21 Aug 2010 10:47:47 -0000

Hi Yaacov, Greg and others,

Does not the below sequence cause BFD to become a "4-way handshake" as opposed to a "3-way handshake" as it is intended to be?

Should not the LSP Ping request packet be considered in lieu of the first BFD control packet that would have been sent in the case of "single-hop" neighbour monitoring BFD scenarios (as defined by the base BFD draft)?
Is not the LSP Ping request packet bootstrapping the BFD discriminator being sent solely for the express purpose of "initiating" a BFD session establishment?

If so, should not the receipt of an LSP Ping echo request packet carrying a BFD discriminator, cause the BFD state machine to move to INIT state (from DOWN)? Agreed, the LSP ping packet is _not_ a BFD packet and under any other circumstances, is not expected to affect/influence the BFD state machine, but for reasons mentioned above, would this not be a correct behaviour?

If so, step 3 below, would become -
3. LSR-Z receives the LSP-Ping, and (assuming that LSR-Z is in Active
mode) sends a BFD Control Packet with its own Discriminator, the
Discriminator received from the LSP-Ping, and State=Init to LSR-A, whose
session still in Down State.

This would cause the remaining steps to collapse to:
4. LSR-A receives the BFD Control and switches to Up state (as per
RFC5880 receving an Init state when in Down state), and sends a BFD
Control Packet with State=Up to LSR-Z

5. LSR-Z receives the BFD Control and switches to UP state

The above would ensure that the BFD handshake is still "3-way: -
1. Ping from LSR-A to LSR-Z
2. BFD-Init from LSR-Z to LSR-A
3. BFD-Up from LSR-A to LSR-Z

Please let me know if I am missing something here.

- Lavanya



Date: Thu, 19 Aug 2010 11:08:30 +0200
From: "Weingarten, Yaacov (NSN - IL/Hod HaSharon)"
        <yaacov.weingarten@nsn.com>
Subject: RE: [mpls] BFD Packet Flow
To: "ext Dave Katz" <dkatz@juniper.net>,        "RAKESH GUPTA"
        <gupta_rakesh62@yahoo.co.in>
Cc: mpls@ietf.org, rtg-bfd@ietf.org

Hi,



Just to verify that I understand the flow of messages and the state of
the BFD Session - is the following flow correct -



Assume a LSP between LSR-A and LSR-Z -

1. Both LSRs initialize the BFD Session and set the state to Down

2. LSR-A (the ingress LSR) sends a LSP-Ping (with the Discriminator TLV)
to LSR-Z - both sessions still in Down state.

3. LSR-Z receives the LSP-Ping, and (assuming that LSR-Z is in Active
mode) sends a BFD Control Packet with its own Discriminator, the
Discriminator received from the LSP-Ping, and State=Down to LSR-A, both
session still in Down State.

4. LSR-A receives the BFD Control and switches to Init state (as per
RFC5880), and sends a BFD Control Packet with State=Init to LSR-Z

5. LSR-Z receives the BFD Control and switches to Up state, and sends a
BFD Control Packet with State=Up to LSR-A

6. LSR-A receives the BFD Control and switches to UP state

[LS] Does this not make the entire BFD session establishment as a 4-way handshake rather than a 3-way handshake?

Additional question - regarding step 3 above - must LSR-Z be in Active
mode? What happens if LSR-Z is in Passive mode and LSR-A is in Active
mode?



Thanx and BR,

Yaacov Weingarten

Nokia Siemens Networks



________________________________

From: rtg-bfd-bounces@ietf.org [mailto:rtg-bfd-bounces@ietf.org] On
Behalf Of ext Dave Katz
Sent: Saturday, August 14, 2010 00:39
To: RAKESH GUPTA
Cc: mpls@ietf.org; rtg-bfd@ietf.org WG
Subject: Re: [mpls] BFD Packet Flow



I suppose the source of confusion might be RFC 5884's choice of
verbiage:



   On receipt of the LSP Ping Echo request message, the egress LSR MUST
   send a BFD Control packet to the ingress LSR...

This might give the impression that LSP Ping is just transmitting BFD
control packets willy-nilly without any BFD context.  But it also says:

  A BFD session is bootstrapped using LSP Ping.

and

   A BFD session may be established for a FEC associated with an MPLS
LSP.

This seems unambiguous that a BFD session is being established, and the
procedure for doing so is spelled out clearly in RFC 5880.  I believe
the following to be unambiguous:

   State (Sta)
      Set to the value indicated by bfd.SessionState.

and

   bfd.SessionState
      ...This variable MUST be initialized to Down.

One might be tempted to start in Init state in order to save one packet
during session establishment, but in doing so one would be breaking the
semantics of the protocol, in particular the three-way handshake through
session failure.

--Dave


On Aug 12, 2010, at 4:20 AM, RAKESH GUPTA wrote:
hi,

I have query regarding BFD packet flow when LSP Ping is used for
bootstrapping.

As per my understanding from the RFC 5880 and RFC 5884 when LSP Ping is
used for bootstrapping the remote end MUST reply with BFD control in
response to the LSPPing.

The specification does not clearly specify about the Stat parameter
value that should be returned in the response of LSPPing. Should it have
the value Init or Down? Or it might be possible to return no stat
information.

Can someone please share the exact packet flow that happens during BFD
session set up with LSPPing in Bootstrap till the session comes into UP
state?

thanks a lot in advance for ur help,
rakesh

"DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus."