Re: [mpls-tp] Demultiplexing to BFD sessions

Greg Mirsky <gregimirsky@gmail.com> Thu, 01 July 2010 05:19 UTC

Return-Path: <gregimirsky@gmail.com>
X-Original-To: mpls-tp@core3.amsl.com
Delivered-To: mpls-tp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 6DF883A67CF; Wed, 30 Jun 2010 22:19:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.119
X-Spam-Level:
X-Spam-Status: No, score=-2.119 tagged_above=-999 required=5 tests=[AWL=0.480, BAYES_00=-2.599]
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 sRfbIUfk5lpw; Wed, 30 Jun 2010 22:19:13 -0700 (PDT)
Received: from mail-vw0-f44.google.com (mail-vw0-f44.google.com [209.85.212.44]) by core3.amsl.com (Postfix) with ESMTP id D6BDE3A67FE; Wed, 30 Jun 2010 22:19:10 -0700 (PDT)
Received: by vws14 with SMTP id 14so304487vws.31 for <multiple recipients>; Wed, 30 Jun 2010 22:19:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=HjLoQ5PTCkWhd7OCBkG9yvwvxOpRWmZ459p6eyE2JII=; b=w6qSgckDMAuiiEGa7Z3oAvbMnLI5AvLcVOtRD4IJtLfyms+NYzCfE/wQTsef6OvpGP awkHOIorYlhKk61o1lgpbfys3KkJsqCPH/Pu8xyRc1ysYLxwZPRs5Y8rhLUbXyWx2BTh MPT799uWovBrGqko+93jrdNQ5UTqQgbzEj+c0=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=fK0l3ao2o8z6gROsbzlInvYDamwl6MpWzcOKTOAauiAzYvU/c3OitS+2kY01Kvsh6a wAmVH5iu1U47DhVO9Em1d+tx9lmIVyoNJQk85RktVGyBHmnSdqXTz4sENADvHRLCgggb BaoeE7jrD7HcWu3XCEiv768b7BnN7PMuT+wTw=
MIME-Version: 1.0
Received: by 10.220.63.12 with SMTP id z12mr5400840vch.120.1277961557864; Wed, 30 Jun 2010 22:19:17 -0700 (PDT)
Received: by 10.220.96.210 with HTTP; Wed, 30 Jun 2010 22:19:17 -0700 (PDT)
In-Reply-To: <60C093A41B5E45409A19D42CF7786DFD51815EF4DD@EUSAACMS0703.eamcs.ericsson.se>
References: <AANLkTikZurkVBrPNBjL-v7zdZ9dTLUBDuBnNDPsCrnJf@mail.gmail.com> <OF7E03B6CE.B5C7073D-ON48257750.000D15FC-48257750.000D4123@zte.com.cn> <716209EC190CA740BA799AC4ACCBFB5D180C3C7126@IXCAEXCH07.ixiacom.com> <AANLkTikdY-qChtT8-po0L6eCjW6qWQ2LzqMhG1eysmvP@mail.gmail.com> <2C2F1EBA8050E74EA81502D5740B4BD6940E808F75@SJEXCHCCR02.corp.ad.broadcom.com> <60C093A41B5E45409A19D42CF7786DFD518156D6E3@EUSAACMS0703.eamcs.ericsson.se> <AANLkTinSalhepoG_AuvNLbVWHTgkF01etfLzRXWxpr5c@mail.gmail.com> <60C093A41B5E45409A19D42CF7786DFD518156D754@EUSAACMS0703.eamcs.ericsson.se> <AANLkTinzsvrfAbBrkLObJmXd4fNvk8CyOKokNE16UGpT@mail.gmail.com> <60C093A41B5E45409A19D42CF7786DFD51815EF047@EUSAACMS0703.eamcs.ericsson.se> <AANLkTil3WKCCWjKm_O05NGFa1uXDQKi8eTuYTe3y9822@mail.gmail.com> <60C093A41B5E45409A19D42CF7786DFD51815EF4DD@EUSAACMS0703.eamcs.ericsson.se>
Date: Wed, 30 Jun 2010 22:19:17 -0700
Message-ID: <AANLkTilHl_M9kfQxNU8f1rQrqTyB-gXp2KdRvGErsbhL@mail.gmail.com>
From: Greg Mirsky <gregimirsky@gmail.com>
To: David Allan I <david.i.allan@ericsson.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: "mpls-tp-bounces@ietf.org" <mpls-tp-bounces@ietf.org>, Mukund Mani <mukund.mani@gmail.com>, "mpls-tp@ietf.org" <mpls-tp@ietf.org>
Subject: Re: [mpls-tp] Demultiplexing to BFD sessions
X-BeenThere: mpls-tp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: MPLS-TP Mailing list <mpls-tp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/mpls-tp>, <mailto:mpls-tp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/mpls-tp>
List-Post: <mailto:mpls-tp@ietf.org>
List-Help: <mailto:mpls-tp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mpls-tp>, <mailto:mpls-tp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Jul 2010 05:19:17 -0000

Dear David,
I wouldn't argue with your point - it's practical and reasonable. But
I have noticed that MPLS-TP  Loss and Delay Measurement document
doesn't have discriminator in its control packets. Would LM/DM
sessions require demultiplexing? I think so. Then it'd be beneficial
to have consistency across all MPLS-TP OAM mechanism for the same
functionality. But on the other hand, Unique MEP ID might find its way
into LM/DM packet. Would we have duplication of functionality for
reasons of ease of implementation?

Regards,
Greg

On Wed, Jun 30, 2010 at 12:30 PM, David Allan I
<david.i.allan@ericsson.com> wrote:
>
> Resend after snipping, the thread has gotten too long...
> Hi Greg:
>
> IMO implementation does matter. Why would I postulate a standard that required me to do the same basic function two ways...?
>
> A piece of general purpose MPLS silicon would then need to do both, state indexing by discriminator, and state indexing from the ILM. Which IMO is more gates, more heat, more to go wrong, longer verification cycle. yadda yadda yadda....
>
> cheers
> D
> ________________________________
> From: Greg Mirsky [mailto:gregimirsky@gmail.com]
> Sent: Wednesday, June 30, 2010 3:19 PM
> To: David Allan I
> Cc: Shahram Davari; Mukund Mani; Apratim Mukherjee; xiao.min2@zte.com.cn; mpls-tp@ietf.org; mpls-tp-bounces@ietf.org
> Subject: Re: [mpls-tp] Demultiplexing to BFD sessions
>
> Dear Dave,
> thank you for the insight. Though I was under impression we're not talking about implementations here ;)
>
> In my view, the check whether MEP ID matches your Discriminator is redundant (well, the implementation has a bug otherwise). The real continuity check is whether context of a transport channel (label stack) and demultiplexor (MEP ID or Your Discriminator) match. Since the Unique MEP ID is required, the discriminator, or at least its role in CV can be optional.
>
> Regards,
> Greg
>
> 2010/6/30 David Allan I <david.i.allan@ericsson.com>
>>
>> Hi Greg:
>>
>> I've made this point before, the discriminator is simply a receiver administered "helper" for indexing state.
>>
>> Compare the two simplistic pseudo code examples below...how a recevier checks for a valid MEP ID and received label....
>>
>> if (bfd_message.mep_ID != recevier_bfd_state[bfd_message.your disciminator].expected_mep_ID]) error...
>> if (received_label != recevier_bfd_state[bfd_message.your discriminator].expected_label) error...
>>
>> vs.
>>
>> for (i=0;i<max_discriminators;i++) {
>>     if (bfd_message.mep_ID == recevier_bfd_state[i].expected_mep_ID) break;
>> }
>> If (i== max_discriminators) error....
>> if (received_label != receiver_bfd_state[i].expected_label) error...
>>
>> The these examples are the general case solution that works for all modes of operation of MPLS (including PHP). We can redesign it to index state based on received label but why have two distinct implementations? I thought the goal here was re-use where possible...
>>
>> I hope this makes it clear...
>>
>> D