Re: [pcp] Comparison of PCP authentication

"Dan Wing" <dwing@cisco.com> Thu, 09 August 2012 02:29 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 9B25911E8156 for <pcp@ietfa.amsl.com>; Wed, 8 Aug 2012 19:29:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -110.506
X-Spam-Level:
X-Spam-Status: No, score=-110.506 tagged_above=-999 required=5 tests=[AWL=0.093, 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 EyVu-xs3S+Tg for <pcp@ietfa.amsl.com>; Wed, 8 Aug 2012 19:29:16 -0700 (PDT)
Received: from mtv-iport-1.cisco.com (mtv-iport-1.cisco.com [173.36.130.12]) by ietfa.amsl.com (Postfix) with ESMTP id 7C4ED11E813A for <pcp@ietf.org>; Wed, 8 Aug 2012 19:29:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=dwing@cisco.com; l=4632; q=dns/txt; s=iport; t=1344479356; x=1345688956; h=from:to:cc:references:in-reply-to:subject:date: message-id:mime-version:content-transfer-encoding; bh=dL0kFywzzLS7/EPy9jUgrJXnwSNw13C0gOEMR7GvbCc=; b=KeaCOvc5FjO/FRasordVLz/x4TV2BFH+7F+5HtswFNTI4NJRwyX0u1e/ EEvH3+6iRqwVy1Cq0h+iRTzLA6ns4wCgoNhtOjzZkUKPKLxa59nRyQ8s/ RnC8ZLjM71NiECAu/uqr/jHEeKDjrGtuenkU/yjevu/HnU+ns3GMGUepk o=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AgEFAGwfI1CrRDoH/2dsb2JhbABFqh2PRoEHgiABAQECAgEBAQUKARQDEDQLDAEDAgkPAgQBAQEnBxkOFQoJCAIEARILF4dqDJtDjWOSUIsShmADiE6FDIkDjRWBZoJ/gTYH
X-IronPort-AV: E=Sophos;i="4.77,736,1336348800"; d="scan'208";a="51380632"
Received: from mtv-core-2.cisco.com ([171.68.58.7]) by mtv-iport-1.cisco.com with ESMTP; 09 Aug 2012 02:29:15 +0000
Received: from dwingWS (sjc-vpn4-1372.cisco.com [10.21.85.91]) by mtv-core-2.cisco.com (8.14.5/8.14.5) with ESMTP id q792TFHZ003614; Thu, 9 Aug 2012 02:29:15 GMT
From: Dan Wing <dwing@cisco.com>
To: "'Zhangdacheng (Dacheng)'" <zhangdacheng@huawei.com>, '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> <008801cd758f$3fd306e0$bf7914a0$@com> <C72CBD9FE3CA604887B1B3F1D145D05E2CE65225@szxeml528-mbx.china.huawei.com>
In-Reply-To: <C72CBD9FE3CA604887B1B3F1D145D05E2CE65225@szxeml528-mbx.china.huawei.com>
Date: Wed, 08 Aug 2012 19:29:15 -0700
Message-ID: <028801cd75d6$c5765490$5062fdb0$@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: AQHNcPYy1F5Ai0qa4kawmCOKzP6BvpdMkuOAgAAcnICAAAVlgIAAMmWAgAK/7wCAAAE8gIAADgKAgAEKIICAAAgpcA==
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: Thu, 09 Aug 2012 02:29:17 -0000

> -----Original Message-----
> From: Zhangdacheng (Dacheng) [mailto:zhangdacheng@huawei.com]
> Sent: Wednesday, August 08, 2012 6:57 PM
> To: Dan Wing; 'Margaret Wasserman'; hartmans@painless-security.com
> Cc: pcp@ietf.org
> Subject: RE: [pcp] Comparison of PCP authentication
> 
> Slide 5 only illustrates a scenario where the pcp server initiates the
> authentication procedure. But in our draft, it is also described that
> the client can initiate authentication proactively. In my opinion, this
> approach seems even more preferable.  ^_^

Depends on if we want to optimize for the case where PCP authentication
is necessary or is unnecessary.

Doing PANA first is a good optimization only if the PCP client knows 
that PCP authentication will be required by the PCP server on that 
particular network.  If PCP authentication is not needed on a particular 
network, requesting PCP authentication incurs an extra round trip.

If the PCP server doesn't want authentication, I believe we can always 
rely on a PCP error response if for PANA messages and for 
PCP-encapsulated (tunneled) PANA messages (which I believe are the two
proposals being considered) -- thus, we won't have timeouts due to
requesting authentication, which is good.

-d



> > -----Original Message-----
> > From: pcp-bounces@ietf.org [mailto:pcp-bounces@ietf.org] On Behalf Of
> Dan
> > Wing
> > Sent: Thursday, August 09, 2012 1:57 AM
> > To: 'Margaret Wasserman'; hartmans@painless-security.com
> > Cc: pcp@ietf.org
> > Subject: Re: [pcp] Comparison of PCP authentication
> >
> > > -----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
> >
> >
> > _______________________________________________
> > pcp mailing list
> > pcp@ietf.org
> > https://www.ietf.org/mailman/listinfo/pcp