
From tom111.taylor@bell.net  Wed Dec  1 18:40:00 2010
Return-Path: <tom111.taylor@bell.net>
X-Original-To: ancp@core3.amsl.com
Delivered-To: ancp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id CCA213A6812 for <ancp@core3.amsl.com>; Wed,  1 Dec 2010 18:40:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.724
X-Spam-Level: 
X-Spam-Status: No, score=-101.724 tagged_above=-999 required=5 tests=[AWL=0.072, BAYES_00=-2.599, MSGID_FROM_MTA_HEADER=0.803, USER_IN_WHITELIST=-100]
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 dwzjbqCbHY3I for <ancp@core3.amsl.com>; Wed,  1 Dec 2010 18:40:00 -0800 (PST)
Received: from blu0-omc2-s3.blu0.hotmail.com (blu0-omc2-s3.blu0.hotmail.com [65.55.111.78]) by core3.amsl.com (Postfix) with ESMTP id D51C93A6843 for <ancp@ietf.org>; Wed,  1 Dec 2010 18:39:59 -0800 (PST)
Received: from BLU0-SMTP82 ([65.55.111.73]) by blu0-omc2-s3.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675);  Wed, 1 Dec 2010 18:41:14 -0800
X-Originating-IP: [70.26.23.173]
X-Originating-Email: [tom111.taylor@bell.net]
Message-ID: <BLU0-SMTP8229CF37D40F2759AD6796D8270@phx.gbl>
Received: from [192.168.2.17] ([70.26.23.173]) by BLU0-SMTP82.blu0.hotmail.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675);  Wed, 1 Dec 2010 18:41:13 -0800
Date: Wed, 1 Dec 2010 21:41:13 -0500
From: Tom Taylor <tom111.taylor@bell.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6
MIME-Version: 1.0
To: "ancp@ietf.org" <ancp@ietf.org>
Content-Type: text/plain; charset="ISO-8859-1"; format=flowed
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 02 Dec 2010 02:41:13.0792 (UTC) FILETIME=[62D7C400:01CB91CA]
Subject: [ANCP] Handling of Transaction ID sequence errors in the base protocol
X-BeenThere: ancp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Access Node Control Protocol working group mailing list <ancp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ancp>, <mailto:ancp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ancp>
List-Post: <mailto:ancp@ietf.org>
List-Help: <mailto:ancp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ancp>, <mailto:ancp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 02 Dec 2010 02:40:01 -0000

I have been creating updated text presenting fuller descriptions of 
Result Code handling than currently exist in the -12 version. I am using 
the following template:

Code value:
One-line description:
Where condition detected: (control application or ANCP protocol layer)
Further description (if any):
Required additional information in the response message:
Target: (control application or ANCP protocol layer at the peer that 
sent the original request)
Action required by the receiving ANCP protocol layer:

For a couple of errors, like wrong Partition ID or Transaction ID out of 
sequence, I had renegotiation of the adjacency as a remedy. However, 
this seems a little drastic and is a nice point of leverage for denial 
of service attacks.

For Transaction ID sequence errors in particular: the primary purpose is 
to correlate requests and responses. Security comes into the discussion 
if we want to prevent blind injection attacks or replay attacks. We can 
probably rule out blind injection attacks by requiring source 
authentication for each message, so that just leaves replay attacks.

If the end receiving a request encounters a Transaction ID sequence 
error, the sensible thing is to inform the sender of the request so the 
sender can verify that it was the one that sent the request.

So far so good -- that's what happens with the current text. But what if 
the problem is a state mismatch between the sender and the receiver of 
the request? We need a graceful way of updating state at the receiver. 
Should this take the form of some sort of housekeeping message, a new 
TLV in a regular message whose semantics are "I really mean this 
Transaction ID, please believe me", or what?

Suggestions anyone?

Tom Taylor


From tom111.taylor@bell.net  Fri Dec  3 12:30:48 2010
Return-Path: <tom111.taylor@bell.net>
X-Original-To: ancp@core3.amsl.com
Delivered-To: ancp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id EA37628C166 for <ancp@core3.amsl.com>; Fri,  3 Dec 2010 12:30:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.729
X-Spam-Level: 
X-Spam-Status: No, score=-101.729 tagged_above=-999 required=5 tests=[AWL=0.067, BAYES_00=-2.599, MSGID_FROM_MTA_HEADER=0.803, USER_IN_WHITELIST=-100]
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 kGhrI1jdNZLy for <ancp@core3.amsl.com>; Fri,  3 Dec 2010 12:30:41 -0800 (PST)
Received: from blu0-omc2-s21.blu0.hotmail.com (blu0-omc2-s21.blu0.hotmail.com [65.55.111.96]) by core3.amsl.com (Postfix) with ESMTP id F05C728C0DC for <ancp@ietf.org>; Fri,  3 Dec 2010 12:30:36 -0800 (PST)
Received: from BLU0-SMTP99 ([65.55.111.73]) by blu0-omc2-s21.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675);  Fri, 3 Dec 2010 12:31:53 -0800
X-Originating-IP: [70.26.23.173]
X-Originating-Email: [tom111.taylor@bell.net]
Message-ID: <BLU0-SMTP993F85D9FE2FEC0C44807CD8280@phx.gbl>
Received: from [192.168.2.17] ([70.26.23.173]) by BLU0-SMTP99.blu0.hotmail.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675);  Fri, 3 Dec 2010 12:31:53 -0800
Date: Fri, 3 Dec 2010 15:31:54 -0500
From: Tom Taylor <tom111.taylor@bell.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6
MIME-Version: 1.0
To: "ancp@ietf.org" <ancp@ietf.org>
References: <BLU0-SMTP8229CF37D40F2759AD6796D8270@phx.gbl>
In-Reply-To: <BLU0-SMTP8229CF37D40F2759AD6796D8270@phx.gbl>
Content-Type: text/plain; charset="ISO-8859-1"; format=flowed
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 03 Dec 2010 20:31:53.0987 (UTC) FILETIME=[1F655D30:01CB9329]
Subject: Re: [ANCP] Handling of Transaction ID sequence errors in the base protocol
X-BeenThere: ancp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Access Node Control Protocol working group mailing list <ancp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ancp>, <mailto:ancp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ancp>
List-Post: <mailto:ancp@ietf.org>
List-Help: <mailto:ancp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ancp>, <mailto:ancp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 03 Dec 2010 20:30:48 -0000

Thinking about this and doing a little research, I've realized that:

  - RFC 5713 discusses threats, attacks, and security requirements, but 
we haven't presented a security solution. Without this the document will 
never be accepted by the IESG. An obvious solution is to require 
transport over TLS. What do others say?

  - It probably isn't reasonable to make the receiver monitor 
Transaction ID values as part of the security solution. There are 
cheaper ways to protect against replay attacks. Hence I propose dropping 
the "Transaction ID out of sequence" error.

  - As a result, the text describing the Transaction ID in section 4.6 
can be simplified, but text has to be added saying what to do if a 
response with an unknown Transaction ID is received.

On 01/12/2010 9:41 PM, Tom Taylor wrote:
> I have been creating updated text presenting fuller descriptions of
> Result Code handling than currently exist in the -12 version. I am using
> the following template:
>
> Code value:
> One-line description:
> Where condition detected: (control application or ANCP protocol layer)
> Further description (if any):
> Required additional information in the response message:
> Target: (control application or ANCP protocol layer at the peer that
> sent the original request)
> Action required by the receiving ANCP protocol layer:
>
> For a couple of errors, like wrong Partition ID or Transaction ID out of
> sequence, I had renegotiation of the adjacency as a remedy. However,
> this seems a little drastic and is a nice point of leverage for denial
> of service attacks.
>
> For Transaction ID sequence errors in particular: the primary purpose is
> to correlate requests and responses. Security comes into the discussion
> if we want to prevent blind injection attacks or replay attacks. We can
> probably rule out blind injection attacks by requiring source
> authentication for each message, so that just leaves replay attacks.
>
> If the end receiving a request encounters a Transaction ID sequence
> error, the sensible thing is to inform the sender of the request so the
> sender can verify that it was the one that sent the request.
>
> So far so good -- that's what happens with the current text. But what if
> the problem is a state mismatch between the sender and the receiver of
> the request? We need a graceful way of updating state at the receiver.
> Should this take the form of some sort of housekeeping message, a new
> TLV in a regular message whose semantics are "I really mean this
> Transaction ID, please believe me", or what?
>
> Suggestions anyone?
>
> Tom Taylor
>
> _______________________________________________
> ANCP mailing list
> ANCP@ietf.org
> https://www.ietf.org/mailman/listinfo/ancp
>
>

From tom111.taylor@bell.net  Fri Dec  3 13:08:40 2010
Return-Path: <tom111.taylor@bell.net>
X-Original-To: ancp@core3.amsl.com
Delivered-To: ancp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id EDA3B28C15F for <ancp@core3.amsl.com>; Fri,  3 Dec 2010 13:08:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.733
X-Spam-Level: 
X-Spam-Status: No, score=-101.733 tagged_above=-999 required=5 tests=[AWL=0.063, BAYES_00=-2.599, MSGID_FROM_MTA_HEADER=0.803, USER_IN_WHITELIST=-100]
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 BTN3ALy2pmMa for <ancp@core3.amsl.com>; Fri,  3 Dec 2010 13:08:39 -0800 (PST)
Received: from blu0-omc2-s17.blu0.hotmail.com (blu0-omc2-s17.blu0.hotmail.com [65.55.111.92]) by core3.amsl.com (Postfix) with ESMTP id 6ED2E28C136 for <ancp@ietf.org>; Fri,  3 Dec 2010 13:08:39 -0800 (PST)
Received: from BLU0-SMTP19 ([65.55.111.73]) by blu0-omc2-s17.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675);  Fri, 3 Dec 2010 13:09:57 -0800
X-Originating-IP: [70.26.23.173]
X-Originating-Email: [tom111.taylor@bell.net]
Message-ID: <BLU0-SMTP198756BFDC3C4CF3E089F0D8280@phx.gbl>
Received: from [192.168.2.17] ([70.26.23.173]) by BLU0-SMTP19.blu0.hotmail.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675);  Fri, 3 Dec 2010 13:09:56 -0800
Date: Fri, 3 Dec 2010 16:09:57 -0500
From: Tom Taylor <tom111.taylor@bell.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6
MIME-Version: 1.0
To: "ancp@ietf.org" <ancp@ietf.org>
Content-Type: text/plain; charset="windows-1252"; format=flowed
Content-Transfer-Encoding: 8bit
X-OriginalArrivalTime: 03 Dec 2010 21:09:56.0870 (UTC) FILETIME=[7019AA60:01CB932E]
Subject: [ANCP] Another base protocol issue: Result Code semantics
X-BeenThere: ancp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Access Node Control Protocol working group mailing list <ancp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ancp>, <mailto:ancp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ancp>
List-Post: <mailto:ancp@ietf.org>
List-Help: <mailto:ancp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ancp>, <mailto:ancp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 03 Dec 2010 21:08:41 -0000

Matthew Bocci's review raised the issue of missing semantics for Result 
Code values. In response, I propose the following. Please provide any 
comments by next Wednesday, so I can get an updated document out by next 
Friday.

1. Add a general statement that any specification of a new Code value 
must follow this template:

Code value:
One-line description:
Where condition detected: (control application or ANCP protocol layer)
Further description (if any):
Required additional information in the response message:
Target: (control application or ANCP protocol layer at the peer that 
sent the original request)
Action required by the receiving ANCP protocol layer:

2. Add a general statement before the individual Code values as follows:

"In addition to any suggested action in the text which follows, the Code 
value SHOULD be logged in a MIB. Where an action includes resending of a 
request, a given request SHOULD NOT be resent more than once."

3. Make support of the Generic Response message and the Status-Info TLV 
mandatory for all ANCP implementations.

4. Modify the Generic Response message to require that besides the 
Status-Info TLV, it MUST contain any line-identifying TLVs present in 
the original request.

5. Revise the descriptions of the Code values already shown in Section 
4.6 to read as follows:

Code value: 2
  - One-line description: Invalid request message
  - Where condition detected: ANCP protocol layer
  - Further description: The request was a properly formed message which 
violates the protocol through its timing or direction of transmission. 
The most likely reason for this outcome in the field will be a race 
condition.
  - Required additional information in the response message: none, if 
the response message is of the same type as the request. As specified in 
Section <genResp> if the response message is a Generic Response message.
  - Target: ANCP protocol layer at the peer that sent the original request
  - Action required by the receiving ANCP protocol layer: The original 
request MAY be resent once only after a short delay. Inform the control 
application with appropriate identification of the failed transaction if 
the second attempt fails or no second attempt is made.

Code value: 3 or 81 (latter is preferred)
  - One-line description: Request message type not implemented
  - Where condition detected: ANCP protocol layer
  - Further description: This could indicate a mismatch in protocol 
version or capability state. It is also possible that support of a 
specific message is optional within some ANCP capability.
  - Required additional information in the response message: none, if 
the response message is of the same type as the request. As specified in 
Section <genResp> if the response message is a Generic Response message.
  - Target: ANCP protocol layer at the peer that sent the original request
  - Action required by the receiving ANCP protocol layer: If the 
receiver of this Code value expects that support of the message type 
concerned is mandatory according to the capabilities negotiated for the 
session, it SHOULD cause the adjacency for the partition to be reset and 
renegotiated by sending an adjacency message with pType = 0 and Code = 
RSTACK as described in Section 11.3 of RFC 3292.

Code value: 4 or 1280 (latter is preferred)
  - One-line description: One or more of the specified ports do not exist
  - Where condition detected: control application
  - Further description (if any): this may indicate a configuration 
mismatch between the AN and the NAS or AAA.
  - Required additional information in the response message: if the 
request identified multiple access lines or the response is a Generic 
Response message, then the response MUST contain a Status-Info TLV 
encapsulating TLV(s) containing the rejected line identifier(s).
  - Target: control application at the peer that sent the original request
  - Action required by the receiving ANCP protocol layer: indicate the 
error and forward the line identifiers to the control application.

Code value: 6
  - One-line description: One or more of the specified ports are down
  - Where condition detected: control application
  - Further description (if any):  This Code value indicates a state 
mismatch between the NAS and AN control applications, possibly due to a 
race condition.
  - Required additional information in the response message: if the 
request identified multiple access lines or the response is a Generic 
Response message, then the response MUST contain a Status-Info TLV 
encapsulating TLV(s) containing the line identifier(s) of the access 
lines that are not operational.
  - Target: control application at the peer that sent the original request
  - Action required by the receiving ANCP protocol layer: indicate the 
error and forward the line identifiers to the control application.

Code value: 7
  – One-line description: Invalid Partition ID
  - Where condition detected: ANCP protocol layer
  - Further description: This indicates that the request used a 
Partition ID value different from what was determined for this partition 
during adjacency negotiation, implying a state mismatch between the ANCP 
protocol implementations.
  - Required additional information in the response message:  none, if 
the response message is of the same type as the request. As specified in 
Section <genResp> if the response message is a Generic Response message.
  - Target: ANCP protocol layer at the peer that sent the original request
  - Action required by the receiving ANCP protocol layer: If multiple 
instances of this error occur, the requestor SHOULD cause the adjacency 
for the partition to be reset and renegotiated by sending an adjacency 
message with pType = 0 and Code = RSTACK as described in Section 11.3 of 
RFC 3292.

    NOTE: This specification provides no way for the NAS to do
    a complete audit of the current state stored on the AN. Hence
    renegotiation of the adjacency with pFlag = 2 (connection state
    retained at the AN) MAY be attempted, but entails some risk of
    state mismatch.

Code value: 19
  - One-line description: Out of resources
  - Where condition detected: ANCP protocol layer or control application
  - Further description: (e.g., memory exhausted, etc.). This Code value 
MUST be reported by the AN only, and indicates a condition that is 
probably unrelated to specific access lines (although it may be related 
to the specific request).
  - Required additional information in the response message:  none, if 
the response message is of the same type as the request. As specified in 
Section <genResp> if the response message is a Generic Response message.
  - Target: ANCP protocol layer at the peer that sent the original request
  - Action required by the receiving ANCP protocol layer: If the NAS 
receives this Code value from multiple requests for the same AN in a 
short interval, it SHOULD reduce the rate at which it sends requests in 
proportion to the rate at which requests are failing with Code = 19.
It MAY retry individual requests. If only a specific request is failing 
with Code = 19, the ANCP protocol layer in the NAS MAY request the 
control application to decompose the request into simpler components if 
this is possible.

Code value: 30
  - One-line description: The limit on the maximum number of 
point-to-multipoint connections that the switch can support has been reached
  - Where condition detected: AN control application
  - Further description: This condition is multicast-related, and is 
thus out of scope of the current document but within the scope of 
multicast-related extensions to the ANCP protocol.
  - Required additional information in the response message:  none, if 
the response message is of the same type as the request. As specified in 
Section <genResp> if the response message is a Generic Response message.
  - Target: NAS control application
  - Action required by the receiving ANCP protocol layer: indicate the 
error and forward details identifying the original request to the NAS 
control application.

Code value: 31
  - One-line description: The limit on the maximum number of branches 
that the specified point-to-multipoint connection can support has been 
reached
  - Where condition detected: AN control application
  - Further description: This condition is multicast-related, and is 
thus out of scope of the current document but within the scope of 
multicast-related extensions to the ANCP protocol.
  - Required additional information in the response message:  none, if 
the response message is of the same type as the request. As specified in 
Section <genResp> if the response message is a Generic Response message.
  - Target: NAS control application
  - Action required by the receiving ANCP protocol layer: indicate the 
error and forward details identifying the original request to the NAS 
control application.

Code value: 83
  - One-line description: Malformed message
  - Where condition detected: ANCP protocol layer
  - Further description: This could be the result of corruption in 
transit, or an error in implementation at one end or the other.
  - Required additional information in the response message:  none, if 
the response message is of the same type as the request. As specified in 
Section <genResp> if the response message is a Generic Response message.
  - Target: ANCP protocol layer at the peer that sent the original request
  - Action required by the receiving ANCP protocol layer: The request 
SHOULD be resent once to eliminate the possibility of in-transit corruption.

Code value: 84
  - One-line description: Mandatory TLV missing
  - Where condition detected: ANCP protocol layer
  - Further description: none.
  - Required additional information in the response message: the 
response message MUST contain a Status-Info message that encapsulates an 
instance of each missing mandatory TLV, where the length is set to zero 
and the value field is empty (i.e., only the four-byte TLV header is 
present).
  - Target: ANCP protocol layer at the peer that sent the original request
  - Action required by the receiving ANCP protocol layer: resend the 
message with the missing TLV(s), if possible. Otherwise, report the 
error to the control application with an indication of the missing 
information required to construct the missing TLV(s).

Code value: 85
  - One-line description: Invalid TLV contents
  - Where condition detected: ANCP protocol layer
  - Further description: the contents of one or more TLVs in the request 
do not match the specifications provided for the those TLVs. (Errors of 
this type SHOULD be caught before the request is sent in the first 
place, through ANCP protocol layer validation of the input from the 
control application.)
  - Required additional information in the response message: the 
response MUST contain a Status-Info TLV encapsulating the erroneous TLVs 
copied from the original request.
  - Target: ANCP protocol layer at the peer that sent the original request
  - Action required by the receiving ANCP protocol layer: correct the 
error and resend the request, if possible.  Otherwise, report the error 
to the control application with an indication of the erroneous 
informationassociated with the invalid TLV(s).

From tom111.taylor@bell.net  Fri Dec  3 13:12:16 2010
Return-Path: <tom111.taylor@bell.net>
X-Original-To: ancp@core3.amsl.com
Delivered-To: ancp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 3B13E3A69AB for <ancp@core3.amsl.com>; Fri,  3 Dec 2010 13:12:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.736
X-Spam-Level: 
X-Spam-Status: No, score=-101.736 tagged_above=-999 required=5 tests=[AWL=0.060, BAYES_00=-2.599, MSGID_FROM_MTA_HEADER=0.803, USER_IN_WHITELIST=-100]
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 lePJbap7ftku for <ancp@core3.amsl.com>; Fri,  3 Dec 2010 13:12:15 -0800 (PST)
Received: from blu0-omc2-s28.blu0.hotmail.com (blu0-omc2-s28.blu0.hotmail.com [65.55.111.103]) by core3.amsl.com (Postfix) with ESMTP id 788223A69AA for <ancp@ietf.org>; Fri,  3 Dec 2010 13:12:15 -0800 (PST)
Received: from BLU0-SMTP69 ([65.55.111.71]) by blu0-omc2-s28.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675);  Fri, 3 Dec 2010 13:13:32 -0800
X-Originating-IP: [70.26.23.173]
X-Originating-Email: [tom111.taylor@bell.net]
Message-ID: <BLU0-SMTP691BA8F48404D582A84442D8280@phx.gbl>
Received: from [192.168.2.17] ([70.26.23.173]) by BLU0-SMTP69.blu0.hotmail.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675);  Fri, 3 Dec 2010 13:13:32 -0800
Date: Fri, 3 Dec 2010 16:13:33 -0500
From: Tom Taylor <tom111.taylor@bell.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6
MIME-Version: 1.0
To: "ancp@ietf.org" <ancp@ietf.org>
Content-Type: text/plain; charset="ISO-8859-1"; format=flowed
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 03 Dec 2010 21:13:32.0766 (UTC) FILETIME=[F0C8C7E0:01CB932E]
Subject: [ANCP] Mandatory transport over TLS?
X-BeenThere: ancp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Access Node Control Protocol working group mailing list <ancp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ancp>, <mailto:ancp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ancp>
List-Post: <mailto:ancp@ietf.org>
List-Help: <mailto:ancp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ancp>, <mailto:ancp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 03 Dec 2010 21:12:16 -0000

This is to repeat a rather important part of an earlier message under 
its own heading.

RFC 5713 discusses threats, attacks, and security requirements for ANCP, 
but we haven't presented a security solution. Without this the document 
will never be accepted by the IESG. An obvious solution is to require 
transport over TLS. What do others say?

Tom Taylor

From matthew.bocci@alcatel-lucent.com  Tue Dec 21 01:57:51 2010
Return-Path: <matthew.bocci@alcatel-lucent.com>
X-Original-To: ancp@core3.amsl.com
Delivered-To: ancp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id DD37F3A67DF for <ancp@core3.amsl.com>; Tue, 21 Dec 2010 01:57:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.843
X-Spam-Level: 
X-Spam-Status: No, score=-105.843 tagged_above=-999 required=5 tests=[AWL=0.406, BAYES_00=-2.599, HELO_EQ_FR=0.35, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
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 jgytSeS0UnCm for <ancp@core3.amsl.com>; Tue, 21 Dec 2010 01:57:51 -0800 (PST)
Received: from smail2.alcatel.fr (smail2.alcatel.fr [64.208.49.57]) by core3.amsl.com (Postfix) with ESMTP id CFFA23A67C1 for <ancp@ietf.org>; Tue, 21 Dec 2010 01:57:50 -0800 (PST)
Received: from FRMRSSXCHHUB01.dc-m.alcatel-lucent.com (FRMRSSXCHHUB01.dc-m.alcatel-lucent.com [135.120.45.61]) by smail2.alcatel.fr (8.14.3/8.14.3/ICT) with ESMTP id oBL9wN2C017487 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT); Tue, 21 Dec 2010 10:59:42 +0100
Received: from FRMRSSXCHMBSA3.dc-m.alcatel-lucent.com ([135.120.45.38]) by FRMRSSXCHHUB01.dc-m.alcatel-lucent.com ([135.120.45.61]) with mapi; Tue, 21 Dec 2010 10:59:31 +0100
From: "Bocci, Matthew (Matthew)" <matthew.bocci@alcatel-lucent.com>
To: Tom Taylor <tom111.taylor@bell.net>, "ancp@ietf.org" <ancp@ietf.org>
Date: Tue, 21 Dec 2010 10:59:29 +0100
Thread-Topic: [ANCP] Mandatory transport over TLS?
Thread-Index: Acug9cL0WFicRxWzS16RHfqTzCYcqg==
Message-ID: <C9362A16.6161%matthew.bocci@alcatel-lucent.com>
In-Reply-To: <BLU0-SMTP691BA8F48404D582A84442D8280@phx.gbl>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.2.0.101115
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.64 on 155.132.188.80
Subject: Re: [ANCP] Mandatory transport over TLS?
X-BeenThere: ancp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Access Node Control Protocol working group mailing list <ancp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ancp>, <mailto:ancp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ancp>
List-Post: <mailto:ancp@ietf.org>
List-Help: <mailto:ancp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ancp>, <mailto:ancp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 21 Dec 2010 09:57:52 -0000

WG,

I'd like to see some more feedback on this proposal. There are several
'MUST' statements in the security requirements section of the threats
analysis draft that should be addressed somewhere. Note that these
requirements are on the protocol, not on every implementation or
deployment.=20

Regards

Matthew

On 03/12/2010 21:13, "Tom Taylor" <tom111.taylor@bell.net> wrote:

>This is to repeat a rather important part of an earlier message under
>its own heading.
>
>RFC 5713 discusses threats, attacks, and security requirements for ANCP,
>but we haven't presented a security solution. Without this the document
>will never be accepted by the IESG. An obvious solution is to require
>transport over TLS. What do others say?
>
>Tom Taylor
>_______________________________________________
>ANCP mailing list
>ANCP@ietf.org
>https://www.ietf.org/mailman/listinfo/ancp


From matthew.bocci@alcatel-lucent.com  Tue Dec 21 02:06:08 2010
Return-Path: <matthew.bocci@alcatel-lucent.com>
X-Original-To: ancp@core3.amsl.com
Delivered-To: ancp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id B82B23A69D9 for <ancp@core3.amsl.com>; Tue, 21 Dec 2010 02:06:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.872
X-Spam-Level: 
X-Spam-Status: No, score=-105.872 tagged_above=-999 required=5 tests=[AWL=0.377, BAYES_00=-2.599, HELO_EQ_FR=0.35, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
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 TqfBms7DEpuw for <ancp@core3.amsl.com>; Tue, 21 Dec 2010 02:06:07 -0800 (PST)
Received: from smail2.alcatel.fr (smail2.alcatel.fr [64.208.49.57]) by core3.amsl.com (Postfix) with ESMTP id 0A4913A69C6 for <ancp@ietf.org>; Tue, 21 Dec 2010 02:06:06 -0800 (PST)
Received: from FRMRSSXCHHUB02.dc-m.alcatel-lucent.com (FRMRSSXCHHUB02.dc-m.alcatel-lucent.com [135.120.45.62]) by smail2.alcatel.fr (8.14.3/8.14.3/ICT) with ESMTP id oBLA4E3b021409 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT); Tue, 21 Dec 2010 11:08:00 +0100
Received: from FRMRSSXCHMBSA3.dc-m.alcatel-lucent.com ([135.120.45.38]) by FRMRSSXCHHUB02.dc-m.alcatel-lucent.com ([135.120.45.62]) with mapi; Tue, 21 Dec 2010 11:07:56 +0100
From: "Bocci, Matthew (Matthew)" <matthew.bocci@alcatel-lucent.com>
To: Tom Taylor <tom111.taylor@bell.net>, "ancp@ietf.org" <ancp@ietf.org>
Date: Tue, 21 Dec 2010 11:07:52 +0100
Thread-Topic: [ANCP] Another base protocol issue: Result Code semantics
Thread-Index: Acug9u9m9c0ppW/nThaMZSF7CLZDeA==
Message-ID: <C9362BB8.616B%matthew.bocci@alcatel-lucent.com>
In-Reply-To: <BLU0-SMTP198756BFDC3C4CF3E089F0D8280@phx.gbl>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.2.0.101115
acceptlanguage: en-US
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.64 on 155.132.188.80
Subject: Re: [ANCP] Another base protocol issue: Result Code semantics
X-BeenThere: ancp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Access Node Control Protocol working group mailing list <ancp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ancp>, <mailto:ancp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ancp>
List-Post: <mailto:ancp@ietf.org>
List-Help: <mailto:ancp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ancp>, <mailto:ancp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 21 Dec 2010 10:06:08 -0000

Hi Tom,

Thank you for detail these. In general, I am fine with the proposal, but I
think the actions are SHOULDs rather than required.

Regards

Matthew


On 03/12/2010 21:09, "Tom Taylor" <tom111.taylor@bell.net> wrote:

>Matthew Bocci's review raised the issue of missing semantics for Result
>Code values. In response, I propose the following. Please provide any
>comments by next Wednesday, so I can get an updated document out by next
>Friday.
>
>1. Add a general statement that any specification of a new Code value
>must follow this template:
>
>Code value:
>One-line description:
>Where condition detected: (control application or ANCP protocol layer)
>Further description (if any):
>Required additional information in the response message:
>Target: (control application or ANCP protocol layer at the peer that
>sent the original request)
>Action required by the receiving ANCP protocol layer:
>
>2. Add a general statement before the individual Code values as follows:
>
>"In addition to any suggested action in the text which follows, the Code
>value SHOULD be logged in a MIB. Where an action includes resending of a
>request, a given request SHOULD NOT be resent more than once."

If this is the case, then in general you don't need to say '

>
>3. Make support of the Generic Response message and the Status-Info TLV
>mandatory for all ANCP implementations.
>
>4. Modify the Generic Response message to require that besides the
>Status-Info TLV, it MUST contain any line-identifying TLVs present in
>the original request.
>
>5. Revise the descriptions of the Code values already shown in Section
>4.6 to read as follows:
>
>Code value: 2
>  - One-line description: Invalid request message
>  - Where condition detected: ANCP protocol layer
>  - Further description: The request was a properly formed message which
>violates the protocol through its timing or direction of transmission.
>The most likely reason for this outcome in the field will be a race
>condition.
>  - Required additional information in the response message: none, if
>the response message is of the same type as the request. As specified in
>Section <genResp> if the response message is a Generic Response message.
>  - Target: ANCP protocol layer at the peer that sent the original request
>  - Action required by the receiving ANCP protocol layer: The original
>request MAY be resent once only after a short delay. Inform the control
>application with appropriate identification of the failed transaction if
>the second attempt fails or no second attempt is made.
>
>Code value: 3 or 81 (latter is preferred)
>  - One-line description: Request message type not implemented
>  - Where condition detected: ANCP protocol layer
>  - Further description: This could indicate a mismatch in protocol
>version or capability state. It is also possible that support of a
>specific message is optional within some ANCP capability.
>  - Required additional information in the response message: none, if
>the response message is of the same type as the request. As specified in
>Section <genResp> if the response message is a Generic Response message.
>  - Target: ANCP protocol layer at the peer that sent the original request
>  - Action required by the receiving ANCP protocol layer: If the
>receiver of this Code value expects that support of the message type
>concerned is mandatory according to the capabilities negotiated for the
>session, it SHOULD cause the adjacency for the partition to be reset and
>renegotiated by sending an adjacency message with pType =3D 0 and Code =3D
>RSTACK as described in Section 11.3 of RFC 3292.
>
>Code value: 4 or 1280 (latter is preferred)
>  - One-line description: One or more of the specified ports do not exist
>  - Where condition detected: control application
>  - Further description (if any): this may indicate a configuration
>mismatch between the AN and the NAS or AAA.
>  - Required additional information in the response message: if the
>request identified multiple access lines or the response is a Generic
>Response message, then the response MUST contain a Status-Info TLV
>encapsulating TLV(s) containing the rejected line identifier(s).
>  - Target: control application at the peer that sent the original request
>  - Action required by the receiving ANCP protocol layer: indicate the
>error and forward the line identifiers to the control application.
>
>Code value: 6
>  - One-line description: One or more of the specified ports are down
>  - Where condition detected: control application
>  - Further description (if any):  This Code value indicates a state
>mismatch between the NAS and AN control applications, possibly due to a
>race condition.
>  - Required additional information in the response message: if the
>request identified multiple access lines or the response is a Generic
>Response message, then the response MUST contain a Status-Info TLV
>encapsulating TLV(s) containing the line identifier(s) of the access
>lines that are not operational.
>  - Target: control application at the peer that sent the original request
>  - Action required by the receiving ANCP protocol layer: indicate the
>error and forward the line identifiers to the control application.
>
>Code value: 7
>  =AD One-line description: Invalid Partition ID
>  - Where condition detected: ANCP protocol layer
>  - Further description: This indicates that the request used a
>Partition ID value different from what was determined for this partition
>during adjacency negotiation, implying a state mismatch between the ANCP
>protocol implementations.
>  - Required additional information in the response message:  none, if
>the response message is of the same type as the request. As specified in
>Section <genResp> if the response message is a Generic Response message.
>  - Target: ANCP protocol layer at the peer that sent the original request
>  - Action required by the receiving ANCP protocol layer: If multiple
>instances of this error occur, the requestor SHOULD cause the adjacency
>for the partition to be reset and renegotiated by sending an adjacency
>message with pType =3D 0 and Code =3D RSTACK as described in Section 11.3 =
of
>RFC 3292.
>
>    NOTE: This specification provides no way for the NAS to do
>    a complete audit of the current state stored on the AN. Hence
>    renegotiation of the adjacency with pFlag =3D 2 (connection state
>    retained at the AN) MAY be attempted, but entails some risk of
>    state mismatch.
>
>Code value: 19
>  - One-line description: Out of resources
>  - Where condition detected: ANCP protocol layer or control application
>  - Further description: (e.g., memory exhausted, etc.). This Code value
>MUST be reported by the AN only, and indicates a condition that is
>probably unrelated to specific access lines (although it may be related
>to the specific request).
>  - Required additional information in the response message:  none, if
>the response message is of the same type as the request. As specified in
>Section <genResp> if the response message is a Generic Response message.
>  - Target: ANCP protocol layer at the peer that sent the original request
>  - Action required by the receiving ANCP protocol layer: If the NAS
>receives this Code value from multiple requests for the same AN in a
>short interval, it SHOULD reduce the rate at which it sends requests in
>proportion to the rate at which requests are failing with Code =3D 19.
>It MAY retry individual requests. If only a specific request is failing
>with Code =3D 19, the ANCP protocol layer in the NAS MAY request the
>control application to decompose the request into simpler components if
>this is possible.
>
>Code value: 30
>  - One-line description: The limit on the maximum number of
>point-to-multipoint connections that the switch can support has been
>reached
>  - Where condition detected: AN control application
>  - Further description: This condition is multicast-related, and is
>thus out of scope of the current document but within the scope of
>multicast-related extensions to the ANCP protocol.
>  - Required additional information in the response message:  none, if
>the response message is of the same type as the request. As specified in
>Section <genResp> if the response message is a Generic Response message.
>  - Target: NAS control application
>  - Action required by the receiving ANCP protocol layer: indicate the
>error and forward details identifying the original request to the NAS
>control application.
>
>Code value: 31
>  - One-line description: The limit on the maximum number of branches
>that the specified point-to-multipoint connection can support has been
>reached
>  - Where condition detected: AN control application
>  - Further description: This condition is multicast-related, and is
>thus out of scope of the current document but within the scope of
>multicast-related extensions to the ANCP protocol.
>  - Required additional information in the response message:  none, if
>the response message is of the same type as the request. As specified in
>Section <genResp> if the response message is a Generic Response message.
>  - Target: NAS control application
>  - Action required by the receiving ANCP protocol layer: indicate the
>error and forward details identifying the original request to the NAS
>control application.
>
>Code value: 83
>  - One-line description: Malformed message
>  - Where condition detected: ANCP protocol layer
>  - Further description: This could be the result of corruption in
>transit, or an error in implementation at one end or the other.
>  - Required additional information in the response message:  none, if
>the response message is of the same type as the request. As specified in
>Section <genResp> if the response message is a Generic Response message.
>  - Target: ANCP protocol layer at the peer that sent the original request
>  - Action required by the receiving ANCP protocol layer: The request
>SHOULD be resent once to eliminate the possibility of in-transit
>corruption.
>
>Code value: 84
>  - One-line description: Mandatory TLV missing
>  - Where condition detected: ANCP protocol layer
>  - Further description: none.
>  - Required additional information in the response message: the
>response message MUST contain a Status-Info message that encapsulates an
>instance of each missing mandatory TLV, where the length is set to zero
>and the value field is empty (i.e., only the four-byte TLV header is
>present).
>  - Target: ANCP protocol layer at the peer that sent the original request
>  - Action required by the receiving ANCP protocol layer: resend the
>message with the missing TLV(s), if possible. Otherwise, report the
>error to the control application with an indication of the missing
>information required to construct the missing TLV(s).
>
>Code value: 85
>  - One-line description: Invalid TLV contents
>  - Where condition detected: ANCP protocol layer
>  - Further description: the contents of one or more TLVs in the request
>do not match the specifications provided for the those TLVs. (Errors of
>this type SHOULD be caught before the request is sent in the first
>place, through ANCP protocol layer validation of the input from the
>control application.)
>  - Required additional information in the response message: the
>response MUST contain a Status-Info TLV encapsulating the erroneous TLVs
>copied from the original request.
>  - Target: ANCP protocol layer at the peer that sent the original request
>  - Action required by the receiving ANCP protocol layer: correct the
>error and resend the request, if possible.  Otherwise, report the error
>to the control application with an indication of the erroneous
>informationassociated with the invalid TLV(s).
>_______________________________________________
>ANCP mailing list
>ANCP@ietf.org
>https://www.ietf.org/mailman/listinfo/ancp


From tom.taylor@huawei.com  Thu Dec 23 18:59:41 2010
Return-Path: <tom.taylor@huawei.com>
X-Original-To: ancp@core3.amsl.com
Delivered-To: ancp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 9469C3A68D0 for <ancp@core3.amsl.com>; Thu, 23 Dec 2010 18:59:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.939
X-Spam-Level: 
X-Spam-Status: No, score=-2.939 tagged_above=-999 required=5 tests=[AWL=1.556,  BAYES_00=-2.599, FH_RELAY_NODNS=1.451, HELO_MISMATCH_COM=0.553,  RCVD_IN_DNSWL_MED=-4, RDNS_NONE=0.1]
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 E+6zS1SJS6j4 for <ancp@core3.amsl.com>; Thu, 23 Dec 2010 18:59:40 -0800 (PST)
Received: from szxga03-in.huawei.com (unknown [119.145.14.66]) by core3.amsl.com (Postfix) with ESMTP id 808DF3A68D3 for <ancp@ietf.org>; Thu, 23 Dec 2010 18:59:40 -0800 (PST)
Received: from huawei.com (szxga03-in [172.24.2.9]) by szxga03-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTP id <0LDW00MBYWEJJE@szxga03-in.huawei.com> for ancp@ietf.org; Fri, 24 Dec 2010 11:01:31 +0800 (CST)
Received: from huawei.com ([172.24.2.119]) by szxga03-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTP id <0LDW00DY4WEJ3S@szxga03-in.huawei.com> for ancp@ietf.org; Fri, 24 Dec 2010 11:01:31 +0800 (CST)
Received: from [192.168.2.17] (bas4-ottawa10-1176115117.dsl.bell.ca [70.26.23.173]) by szxml02-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTPA id <0LDW00DZWWEHL5@szxml02-in.huawei.com> for ancp@ietf.org; Fri, 24 Dec 2010 11:01:31 +0800 (CST)
Date: Thu, 23 Dec 2010 22:01:31 -0500
From: Tom Taylor <tom.taylor@huawei.com>
In-reply-to: <C9362A16.6161%matthew.bocci@alcatel-lucent.com>
To: "ancp@ietf.org" <ancp@ietf.org>
Message-id: <4D140D0B.1080802@huawei.com>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7BIT
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7
References: <C9362A16.6161%matthew.bocci@alcatel-lucent.com>
Subject: Re: [ANCP] Mandatory transport over TLS?
X-BeenThere: ancp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Access Node Control Protocol working group mailing list <ancp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ancp>, <mailto:ancp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ancp>
List-Post: <mailto:ancp@ietf.org>
List-Help: <mailto:ancp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ancp>, <mailto:ancp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 24 Dec 2010 02:59:41 -0000

I noted during my investigation of what I would have to document for TLS 
that the RFC 5713 requirement for mutual authentication more or less 
implies that the NAS has to be pre-configured with the identities of all 
of the ANs that it will be serving.

On 21/12/2010 4:59 AM, Bocci, Matthew (Matthew) wrote:
> WG,
>
> I'd like to see some more feedback on this proposal. There are several
> 'MUST' statements in the security requirements section of the threats
> analysis draft that should be addressed somewhere. Note that these
> requirements are on the protocol, not on every implementation or
> deployment.
>
> Regards
>
> Matthew
>
> On 03/12/2010 21:13, "Tom Taylor"<tom111.taylor@bell.net>  wrote:
>
>> This is to repeat a rather important part of an earlier message under
>> its own heading.
>>
>> RFC 5713 discusses threats, attacks, and security requirements for ANCP,
>> but we haven't presented a security solution. Without this the document
>> will never be accepted by the IESG. An obvious solution is to require
>> transport over TLS. What do others say?
>>
>> Tom Taylor
>> _______________________________________________
>> ANCP mailing list
>> ANCP@ietf.org
>> https://www.ietf.org/mailman/listinfo/ancp
>
>
>

From tom.taylor@huawei.com  Wed Dec 29 06:40:43 2010
Return-Path: <tom.taylor@huawei.com>
X-Original-To: ancp@core3.amsl.com
Delivered-To: ancp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id B520728C0FB for <ancp@core3.amsl.com>; Wed, 29 Dec 2010 06:40:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.043
X-Spam-Level: 
X-Spam-Status: No, score=-1.043 tagged_above=-999 required=5 tests=[AWL=-0.548, BAYES_00=-2.599, FH_RELAY_NODNS=1.451, HELO_MISMATCH_COM=0.553, RDNS_NONE=0.1]
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 EAer1Ov7Xug2 for <ancp@core3.amsl.com>; Wed, 29 Dec 2010 06:40:42 -0800 (PST)
Received: from szxga01-in.huawei.com (unknown [119.145.14.64]) by core3.amsl.com (Postfix) with ESMTP id 2A13B28C105 for <ancp@ietf.org>; Wed, 29 Dec 2010 06:40:42 -0800 (PST)
Received: from huawei.com (szxga05-in [172.24.2.49]) by szxga05-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTP id <0LE7000CL2714J@szxga05-in.huawei.com> for ancp@ietf.org; Wed, 29 Dec 2010 22:42:37 +0800 (CST)
Received: from huawei.com ([172.24.2.119]) by szxga05-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTP id <0LE7000A0270LW@szxga05-in.huawei.com> for ancp@ietf.org; Wed, 29 Dec 2010 22:42:37 +0800 (CST)
Received: from [192.168.2.15] (bas4-ottawa10-1176115117.dsl.bell.ca [70.26.23.173]) by szxml01-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTPA id <0LE700LE826YA5@szxml01-in.huawei.com> for ancp@ietf.org; Wed, 29 Dec 2010 22:42:36 +0800 (CST)
Date: Wed, 29 Dec 2010 09:42:37 -0500
From: Tom Taylor <tom.taylor@huawei.com>
To: "ancp@ietf.org" <ancp@ietf.org>
Message-id: <4D1B48DD.2090809@huawei.com>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7BIT
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7
Subject: [ANCP] New text for access line identifiers
X-BeenThere: ancp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Access Node Control Protocol working group mailing list <ancp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ancp>, <mailto:ancp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ancp>
List-Post: <mailto:ancp@ietf.org>
List-Help: <mailto:ancp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ancp>, <mailto:ancp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 29 Dec 2010 14:40:43 -0000

I'm slowly chipping away at the base protocol document between family 
engagements. It occurred to me while I was doing so that, since the 
access-line-identifying TLVs are used by all the DSL capabilities, they 
should be documented in a section of their own ahead of the 
documentation of the individual capabilities. Here is the resulting text 
for your inspection.

---------------------------------------

4.  Introduction To ANCP Capabilities For Digital Subscriber Lines (DSL)

    DSL is a widely deployed access technology for Broadband Access for
    Next Generation Networks.  Specifications such as [TR-059], [TR-058],
    and [TR-092] describe possible architectures for these access
    networks.  The scope of these specifications includes the delivery of
    voice, video, and data services.

    The next three sections of this document specify basic ANCP
    capabilities for use specifically in controlling Access Nodes serving
    DSL access (Tech Type = 0x05).  The same ANs could be serving other
    access technologies (e.g.  Metro-Ethernet, Passive Optical
    Networking, WiMax), in which case the AN will also have to support
    the corresponding other-technology-specific capabilities.  Those
    additional capabilities are outside the scope of the present
    document.

4.1.  DSL Access Line Identification

    Most ANCP messages involve actions relating to a specific access
    line.  Thus it is necessary to describe how access lines are
    identified within those messages.  This section defines four TLVs for
    that purpose and provides an informative description of how they are
    used.

4.1.1.  Control Context (Informative)

    Three types of identification are described in [TR-101] and provided
    for in the TLVs defined in this section:

    o  identification of an access line by its logical appearance on the
       user side of the Access Node;

    o  identification of an access line by its logical appearance on the
       NAS side of the Access Node; and




  Wadhwa, et al.           Expires July 2, 2011                 [Page 27]

Internet-Draft                ANCP Protocol                December 2010


    o  identification down to the user or host level as a supplement to
       access line identification in one of the other two forms.

    All of these identifiers originate with the AN control application,
    during the process of DSL discovery.  The choice of which identifiers
    to use and the values to place into them is made on a line-by-line
    basis, based on AN configuration and deployment considerations.  From
    the point of view of ANCP itself, the identifiers are opaque.  From
    the point of view of the AN control application, the syntax for the
    user-side access line identifier is specified in Section 3.9.3 of
    [TR-101].  The syntax for the ASCII form of the NAS-side access line
    identifier will be similar.

    Aside from its use in ANCP signalling, access line identification is
    also used in DHCP transactions involving hosts served by DSL.  Either
    the AN or the NAS can serve as a DHCP relay node.  [TR-101] requires
    the AN or NAS in this role to add access line identification in
    Option 82 (Information) to each DHCP request it forwards to the DHCP
    server.  It is desirable for efficiency that the identification used
    in this signalling should be the same as the identification used in
    ANCP messages.

    Access line identification by logical appearance on the user side of
    the Access Node will always identify a DSL loop uniquely.
    Identification by the logical appearance on the NAS side of the
    Access Node is unique only if there is a one-to-one mapping between
    the appearances on the two sides and no identity-modifying
    aggregation between the AN and the NAS.  In other cases, and in
    particular in the case of ethernet aggregation using the N:1 VLAN
    model, the user-side access line identification is necessary, but the
    NAS-side identification is potentially useful information allowing
    the NAS to build up a picture of the aggregation network topology.

    Additional identification down to the user or host level is intended
    to supplement rather than replace either of the other two forms of
    identification.  This additional identification takes the form of an
    administered string which again is opaque at the ANCP level.

    The NAS control application will use the identifying information it
    receives from the AN directly for some purposes.  For examples, see
    the introductory part of Section 3.9.  In addition, the NAS needs to
    build or have configured a mapping between the unique access line
    identification provided by the AN, the additional identification of
    the user or host (where provided), and the IP interface on a
    particular host.

4.1.2.  TLVs For DSL Access Line Identification

    This section provides a normative specification of the TLVs that ANCP
    provides to carry the types of identification just described.  The
    Access-Loop-Circuit-ID TLV identifies an access line by its logical
    appearance on the user side of the Access Node.  Two alternatives,
    the Access-Aggregation-Circuit-ID-ASCII TLV and the Access-
    Aggregation-Circuit-ID-Binary TLV, identify an access line by its
    logical appearance on the NAS side of the Access Node.  It is
    unlikely that a given AN uses both of these TLVs, either for the same
    line or for different lines, since they carry equivalent information.
    Finally, the Access-Loop-Remote-Id TLV contains an operator-
    configured string that uniquely identifies the user on the associated
    access line, as described in Sections 3.9.1 and 3.9.2 of [TR-101].

    As a normative requirement, the AN-side ANCP agent MUST be able to
    create the Access-Loop-Circuit-ID TLV, the Access-Loop-Remote-Id TLV,
    and either the Access-Aggregation-Circuit-ID-ASCII TLV or the Access-
    Aggregation-Circuit-ID-Binary TLV (implementation choice), when
    passed the associated information from the AN control application,
    and MUST be able to insert the resulting TLVs into the message with
    which they will be associated.  The NAS-side ANCP agent MUST be able
    to extract the relevant information from any of these four TLVs when
    it encounters them in a message, and pass that information to the NAS
    control application.

4.1.2.1.  Access-Loop-Circuit-ID TLV

    Type:  0x0001

    Description:  a locally administered human-readable string generated
       by or configured on the Access Node, identifying the corresponding
       access loop logical port on the user side of the Access Node.

    Length:  up to 63 bytes

    Value:  ASCII string

4.1.2.2.  Access-Loop-Remote-Id TLV

    Type:  0x0002

    Description:  an operator-configured string that uniquely identifies
       the user on the associated access line, as described in Sections
       3.9.1 and 3.9.2 of [TR-101].

    Length:  up to 63 bytes

    Value:  ASCII string

4.1.2.3.  Access-Aggregation-Circuit-ID-Binary TLV

    Type:  0x0006

    Description:  This TLV identifies or partially identifies a specific
       access line by means of its logical circuit identifier on the NAS
       side of the Access Node.

       For ethernet access aggregation, where a per-subscriber (stacked)
       VLAN can be applied (1:1 model as defined in [TR-101]), the TLV
       contains two value fields.  Each field carries a 12-bit VLAN
       identifier (which is part of the VLAN tag defined by IEEE 802.1Q).
       The first field MUST carry the inner VLAN identifier, while the
       second field MUST carry the outer VLAN identifier.

       When the N:1 VLAN model is used, only one VLAN tag is available.
       In this case the Access-Loop-Circuit-ID TLV MUST also be present
       in the message to identify the access line uniquely.  For the N:1
       model, the Access-Aggregation-Circuit-ID-Binary TLV contains a
       single value field, which MUST carry the 12-bit VLAN identifier
       derived from the single available VLAN tag.

       In case of an ATM aggregation network, where the DSLAM is directly
       connected to the NAS (without an intermediate ATM switch), the VPI
       and VCI on the DSLAM uplink correspond uniquely to the DSL line on
       the DSLAM.  The Access-Aggregation-Circuit-ID-Binary TLV MAY be
       used to carry the VPI and VCI.  The first value field of the TLV
       MUST carry the VCI, while the second value field MUST carry the
       VPI.

       Each identifier MUST be placed in the low-order bits of its
       respective 32-bit field, with the higher-order bits set to zero.
       The ordering of the bits of the identifer MUST be the same as when
       the identifier is transmitted on the wire to identify an ethernet
       frame or ATM cell.

       The Access-Aggregation-Circuit-ID-Binary is illustrated in
       Figure 8.

    Length:  4 or 8 bytes

    Value:  one or two 32-bit binary fields.


       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |    TLV Type = 0x0006          |        Length = 4 or 8        |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |  Single VLAN Identifier, inner VLAN identifier, or VCI        |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                Outer VLAN identifier or VPI                   |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

           Figure 8: The Access-Aggregation-Circuit-ID-Binary TLV

4.1.2.4.  Access-Aggregation-Circuit-ID-ASCII TLV

    Type:  0x0003

    Description:  This TLV transmits the ASCII equivalent of the Access-
       Aggregation-Circuit-ID-Binary TLV.  As mentioned in the previous
       section, the AN control application will use a format similar to
       that specified in Section 3.9.3 of [TR-101] for the format of the
       "circuit-id".

       As an extension to the present document, the Access Node could
       convey to the NAS the characteristics (e.g., bandwidth) of the
       uplink on the Access Node.  This TLV or the binary equivalent
       defined above then serves the purpose of uniquely identifying the
       uplink whose characteristics are being defined.  The present
       document does not specify the TLVs needed to convey the uplink
       characteristics.

    Length:  up to 63 bytes

    Value:  ASCII string

