Re: [pcp] Comparison of PCP authentication

"Dan Wing" <dwing@cisco.com> Wed, 08 August 2012 17:57 UTC

Return-Path: <dwing@cisco.com>
X-Original-To: pcp@ietfa.amsl.com
Delivered-To: pcp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B6C9211E80BA for <pcp@ietfa.amsl.com>; Wed, 8 Aug 2012 10:57:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -110.5
X-Spam-Level:
X-Spam-Status: No, score=-110.5 tagged_above=-999 required=5 tests=[AWL=0.099, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, USER_IN_WHITELIST=-100]
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 CZWOuABxzcWK for <pcp@ietfa.amsl.com>; Wed, 8 Aug 2012 10:57:18 -0700 (PDT)
Received: from mtv-iport-3.cisco.com (mtv-iport-3.cisco.com [173.36.130.14]) by ietfa.amsl.com (Postfix) with ESMTP id 38AB521F86D3 for <pcp@ietf.org>; Wed, 8 Aug 2012 10:57:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=dwing@cisco.com; l=2622; q=dns/txt; s=iport; t=1344448638; x=1345658238; h=from:to:cc:references:in-reply-to:subject:date: message-id:mime-version:content-transfer-encoding; bh=O0LHvWUsU5dipF4uUBtu2THnuzfc3WIbHiYjd9XOkBo=; b=UCUukPSTZpcxpiiVcR3+meaUfiZ/HTOHqGbw8WAGGbtIVPZ320YXQWkz Nj/ISkynHDFE8b2Q4VkczFz2Uvvuox/MDLRP1eet8RY4Ru4H02qLzVHtg d3gLpuudGmUKHGPzibcWUlQpDDnDTxnXOV6279XgHzoZ8JfWNKaO9YIGK A=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AgkFAMOnIlCrRDoJ/2dsb2JhbABFqhiPRYEHgiABAQECAQEICgEUAQIQPwUHAQMCCQ4BAgQBAQEnBxkjCgkIAQEEARILF4dlBQybC41jkmWLEoZgA4hOhQyJA40VgWaCf4E2Bw
X-IronPort-AV: E=Sophos;i="4.77,734,1336348800"; d="scan'208";a="51883513"
Received: from mtv-core-4.cisco.com ([171.68.58.9]) by mtv-iport-3.cisco.com with ESMTP; 08 Aug 2012 17:57:18 +0000
Received: from dwingWS (sjc-vpn4-1372.cisco.com [10.21.85.91]) by mtv-core-4.cisco.com (8.14.5/8.14.5) with ESMTP id q78HvHVc013460; Wed, 8 Aug 2012 17:57:17 GMT
From: Dan Wing <dwing@cisco.com>
To: 'Margaret Wasserman' <mrw@lilacglade.org>, hartmans@painless-security.com
References: <9B57C850BB53634CACEC56EF4853FF653B6EC381@TK5EX14MBXW604.wingroup.windeploy.ntdev.microsoft.com> <7FE144CF-00E3-4451-8CBE-A6A684DB7CC4@yegin.org> <067d01cd73fd$765a6c50$630f44f0$@com> <D6D2DEED-C35A-45AB-8B72-96195C308DB9@yegin.org> <57FF0F8E-1B86-410F-8B6B-C4893A28222F@lilacglade.org> <BB72B80F-0622-4A5B-A985-79D8AED13E0B@apple.com> <003b01cd7587$a111b760$e3352620$@com> <15990E87-2D59-49B1-845C-2A4CB5A1FBD6@lilacglade.org>
In-Reply-To: <15990E87-2D59-49B1-845C-2A4CB5A1FBD6@lilacglade.org>
Date: Wed, 08 Aug 2012 10:57:17 -0700
Message-ID: <008801cd758f$3fd306e0$bf7914a0$@com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: Ac11iEIv+Oqb1SnqQpao1sut0wysUgABe/7Q
Content-Language: en-us
Cc: pcp@ietf.org
Subject: Re: [pcp] Comparison of PCP authentication
X-BeenThere: pcp@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: PCP wg discussion list <pcp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/pcp>, <mailto:pcp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/pcp>
List-Post: <mailto:pcp@ietf.org>
List-Help: <mailto:pcp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pcp>, <mailto:pcp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 08 Aug 2012 17:57:18 -0000

> -----Original Message-----
> From: Margaret Wasserman [mailto:mrw@lilacglade.org]
> Sent: Wednesday, August 08, 2012 10:07 AM
> To: Dan Wing
> Cc: 'james woodyatt'; pcp@ietf.org
> Subject: Re: [pcp] Comparison of PCP authentication
> 
> 
> On Aug 8, 2012, at 1:02 PM, Dan Wing wrote:
> > So, I think we are okay -- assuming we keep the idea that the PCP
> > client tries to first send a PCP request (and not to first send
> > a PANA request).
> 
> Actually, we don't keep this, even now.  There is certainly a notion
> that a client could be configured to use authentication for all (or
> some) PCP exchanges, and that the authentication would come first.

But slide 5 of your deck,
http://tools.ietf.org/agenda/84/slides/slides-84-pcp-10.pdf,
shows the PCP client doing an initial PCP request and getting an
AUTH_REQUIRED 
error.  That is the basis of my (lovely) ASCII artistry.

> > However, I do worry that implementations may optimize themselves
> > to send a PANA request first, which would cause the problem you
> > describe if they send the PANA request to a NAT-PMP server.  That
> > is, this would be a problem:
> >
> >  PCP client                           NAT-PMP server
> >      |                                    |
> > 1.    |-------(authentication message)---->|
> > 2.    |<--NAT-PMP error--------------------|
> >      |                                    |
> >
> > But the PCP client doesn't speak NAT-PMP, so there isn't a way
> > for it to handle that case, anyway (no matter if we had PCP
> > authentication or not).
> >
> > In summary, I think we can skate around problems with talking
> > to a NAT-PMP server.
> 
> Makes sense.


Sam Hartman wrote:

> It's not just that implementations may optimize sending an
> authentication request.
> 
> An implementation MAY require authentication.
> I.E. it is unwilling to send the request unless it has an authenticated
> channel.
> For firewall control this makes a lot of sense.

I believe we are okay -- the PCP client trying to do authentication will 
have to expect it will occasionally see a NAT-PMP error message.  That
will occur if it is communicating with a NAT-PMP server (which shares the
same port as PCP).  If the PCP client receives a NAT-PMP error, it needs
to abort trying to do PCP and abort trying to do PANA (because neither
will work); in the (unlikely) event the PCP client also implements 
NAT-PMP, it can then downgrade to using NAT-PMP.

A sentence or three in draft-ietf-pcp-authentication will be needed 
to explain that a NAT-PMP error might be received.

-d