Re: [P2PSIP] Alexey Melnikov's Discuss on draft-ietf-p2psip-sip-18: (with DISCUSS and COMMENT)

"Thomas C. Schmidt" <> Sun, 17 April 2016 21:08 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 9826412DC12; Sun, 17 Apr 2016 14:08:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -2.896
X-Spam-Status: No, score=-2.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.996] autolearn=ham autolearn_force=no
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id jSpH353KfH19; Sun, 17 Apr 2016 14:08:10 -0700 (PDT)
Received: from ( []) (using TLSv1.2 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by (Postfix) with ESMTPS id 8DB1312DC0B; Sun, 17 Apr 2016 14:08:09 -0700 (PDT)
X-IronPort-AV: E=Sophos;i="5.24,498,1454972400"; d="scan'208";a="38940127"
Received: from (HELO ([]) by with ESMTP/TLS/AES256-SHA; 17 Apr 2016 23:08:07 +0200
Received: from (2002:8d16:183d::8d16:183d) by (2002:8d16:1832::8d16:1832) with Microsoft SMTP Server (TLS) id; Sun, 17 Apr 2016 23:08:07 +0200
Received: from [] ( by ( with Microsoft SMTP Server (TLS) id; Sun, 17 Apr 2016 23:08:06 +0200
To: Alexey Melnikov <>, The IESG <>
References: <>
From: "Thomas C. Schmidt" <>
Message-ID: <>
Date: Sun, 17 Apr 2016 23:07:57 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2
MIME-Version: 1.0
In-Reply-To: <>
Content-Type: text/plain; charset="windows-1252"; format=flowed
Content-Transfer-Encoding: 8bit
X-Originating-IP: []
Archived-At: <>
Cc: "" <>, "" <>, "" <>
Subject: Re: [P2PSIP] Alexey Melnikov's Discuss on draft-ietf-p2psip-sip-18: (with DISCUSS and COMMENT)
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Peer-to-Peer SIP working group discussion list <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Sun, 17 Apr 2016 21:08:12 -0000

Hi Alexey,

many thanks for your careful review. Please see inline:

> ----------------------------------------------------------------------
> ----------------------------------------------------------------------
> I will move to No Objection once my comments are discussed. They should
> be easy to address.
> In Section 7:
>       Access Control  USER-NODE-MATCH.  Note that this matches the SIP
>        against the rfc822Name in the X509v3 certificate.  The rfc822Name
>        does not include the scheme so that the "sip:" prefix needs to be
>        removed from the SIP AOR before matching.
> In general the advice of stripping "sip:" is misleading, because URIs
> might have %-encoding, which is not present in rfc822Name, which is an
> email address. I think adding text that %-encoding should be decoded
> would be a good idea.

Thanks for pointing at this: We added

   "Escaped characters ('%' encoding) in the SIP AOR also need to be 
decoded prior to matching."

> Also, the first reference to rfc822Name (earlier in the document) needs a
> normative reference to RFC 5280.

We added the ref. in Section 2.

> ----------------------------------------------------------------------
> ----------------------------------------------------------------------
> In 3.2:
>        If the registration is of type "sip_registration_uri", then the
>        contents are an opaque string containing the AOR as specified in
>        Section 2.
> Is the reference correct? Section 2 is "Terminology".

Nope, this is a historic editing mistake -> removed.

> What does "opaque string" means here? You still need to define syntax of
> the field.

"opaque string" is the appropriate (single valued) data type of RELOAD 
(see Further 
specifications are given as "the AOR".

> In 3.3:
>     Before a Store is permitted, the storing peer MUST check that:
>     o  The AOR of the request is a valid Resource Name with respect to
>        the namespaces defined in the overlay configuration document.
>     o  The certificate contains a username that is a SIP AOR which hashes
>        to the Resource-ID it is being stored at.
>     o  The certificate contains a Node-ID that is the same as the
>        dictionary key it is being stored at.
> Is there a document that defines how exactly a username and a Node-ID can
> be represented in an X.509 certificate? If yes, adding a normative
> reference here would be useful. If not, adding specific details here
> would be useful.

Username is a SIP AOR as specified in RFC 3261 (this is normatively 
referenced in Section 2). A Node-ID is an Overlay Hash, which is defined 
in RFC 6940 (also normatively referenced in Section 2).

> On page 10:
>     Inclusion of a <domain-restrictions> element in an overlay
>     configuration document is OPTIONAL.  If the element is not included,
>     the default behavior is to accept any AOR.  If the element is
>     included and the "enable" attribute is not set or set to false, the
>     overlay MUST only accept AORs that match the domain name of the
>     overlay.
> What happens if "enable" is false/unspecified and patter subelements are
> included? Are they ignored?

According to the writing, this means that

  " the
    overlay MUST only accept AORs that match the domain name of the

The case you are describing is an inconsistently extended overlay 
configuration document. Hence, this spec tells to ignore inconsistent 
extensions (isolated pattern subelements), which I believe makes sense. 
Any counter-arguments?

>     The <domain-restrictions> element serves as a container for zero to
>     multiple <pattern> sub-elements.  A <pattern> element MAY be present
>     if the "enable" attribute of its parent element is set to true.  Each
>     <pattern> element defines a pattern for constructing admissible
>     resource names.  It is of type xsd:string and interpreted as a
>     regular expression according to "POSIX Extended Regular Expression"
>     (see the specifications in [IEEE-Posix]).
> This repeats part of the second paragraph of the same section. Is this
> repetition needed?

Oopsi - no. This is an editing mistake, most likely from copying a block 
while revising text. It is removed now.

Thanks again for finding these lapses!

We revise and submit.



Prof. Dr. Thomas C. Schmidt
° Hamburg University of Applied Sciences                   Berliner Tor 7 °
° Dept. Informatik, Internet Technologies Group    20099 Hamburg, Germany °
°                   Fon: +49-40-42875-8452 °
°    Fax: +49-40-42875-8409 °