Re: [sip-clf] AD review: draft-ietf-sipclf-problem-statement-07

"Vijay K. Gurbani" <vkg@bell-labs.com> Thu, 10 November 2011 16:16 UTC

Return-Path: <vkg@bell-labs.com>
X-Original-To: sip-clf@ietfa.amsl.com
Delivered-To: sip-clf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1AE9721F8B4B for <sip-clf@ietfa.amsl.com>; Thu, 10 Nov 2011 08:16:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.268
X-Spam-Level:
X-Spam-Status: No, score=-106.268 tagged_above=-999 required=5 tests=[AWL=-0.269, BAYES_00=-2.599, J_CHICKENPOX_23=0.6, RCVD_IN_DNSWL_MED=-4, 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 h4PkH3FQpttB for <sip-clf@ietfa.amsl.com>; Thu, 10 Nov 2011 08:16:18 -0800 (PST)
Received: from ihemail2.lucent.com (ihemail2.lucent.com [135.245.0.35]) by ietfa.amsl.com (Postfix) with ESMTP id EDBFF21F8B47 for <sip-clf@ietf.org>; Thu, 10 Nov 2011 08:16:17 -0800 (PST)
Received: from usnavsmail4.ndc.alcatel-lucent.com (usnavsmail4.ndc.alcatel-lucent.com [135.3.39.12]) by ihemail2.lucent.com (8.13.8/IER-o) with ESMTP id pAAGGGwT001384 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 10 Nov 2011 10:16:17 -0600 (CST)
Received: from umail.lucent.com (umail-ce2.ndc.lucent.com [135.3.40.63]) by usnavsmail4.ndc.alcatel-lucent.com (8.14.3/8.14.3/GMO) with ESMTP id pAAGGFNq024778 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 10 Nov 2011 10:16:16 -0600
Received: from shoonya.ih.lucent.com (shoonya.ih.lucent.com [135.185.238.235]) by umail.lucent.com (8.13.8/TPES) with ESMTP id pAAGGD7x005491; Thu, 10 Nov 2011 10:16:15 -0600 (CST)
Message-ID: <4EBBF988.1030100@bell-labs.com>
Date: Thu, 10 Nov 2011 10:19:20 -0600
From: "Vijay K. Gurbani" <vkg@bell-labs.com>
Organization: Bell Laboratories, Alcatel-Lucent
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0) Gecko/20110927 Thunderbird/7.0
MIME-Version: 1.0
To: Robert Sparks <rjsparks@nostrum.com>
References: <856A6315-BB66-4575-9EFB-8725A9278DC9@nostrum.com>
In-Reply-To: <856A6315-BB66-4575-9EFB-8725A9278DC9@nostrum.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Scanned-By: MIMEDefang 2.57 on 135.245.2.35
X-Scanned-By: MIMEDefang 2.64 on 135.3.39.12
Cc: SIP-CLF Mailing List <sip-clf@ietf.org>
Subject: Re: [sip-clf] AD review: draft-ietf-sipclf-problem-statement-07
X-BeenThere: sip-clf@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: SIP Common Log File format discussion list <sip-clf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/sip-clf>, <mailto:sip-clf-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/sip-clf>
List-Post: <mailto:sip-clf@ietf.org>
List-Help: <mailto:sip-clf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sip-clf>, <mailto:sip-clf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 10 Nov 2011 16:16:19 -0000

On 08/04/2011 04:06 PM, Robert Sparks wrote:
> Summary: There are a few issues to address before IETF LC

Robert: Thank you for your extensive review and suggestions for
cleaning up the document.  I apologize on attending to your
comments after a delay, but nonetheless, please see inline
for more discussions.

I will submit a revision as soon as the blackout period for
submitting new I-Ds is lifted on Nov-14.

 > 1) Shouldn't this document be titled something like "framework and
 > data model"?

We could do so; however, here's a quick history on the draft ... it
started off life as a problem statement plus solution rolled in one.
As the work progressed on this, it was deemed more beneficial to
address issues such as transport and a data model.  Then it was decided
to spin off the representation format in at least one, possibly two,
different drafts and have a framework-type approach specified in this draft.

Through all this, the title of the draft remained as an artifact from
its origins.  If you'd like me to change it to reflect the framework and
data model part, I can easily do so.  I do not know whether changing the
title of a draft midstream will cause any problems to the tools that
track the draft, but if not, I have no problem changing the title.  As
I understand it,the name of the draft must remain the same ---
draft-ietf-sipclf-problem-statement.

 > 2) Why does this document talk about the 4096 byte limit? Shouldn't
 > this be moved to the encoding draft?

The consensus to put a 4096 byte limit was reached during WG
deliberations (see thread starting at [1]).  What was decided during
this thread was that the problem-statement draft would mandate a
4096 byte limit on a SIP record, including bodies.  However, whether or
not to log a complete body is left up to the specific representation
draft.  Thus, this 4096 byte limit applies to the existing indexed-
ASCII representation draft as well as any other representational
draft that comes along.

 > 3) The presentation of requirements on devices that forward requests
 > and responses is under-documented. The notion of "UAS-half" is not
 > explained. Looking at what we ended up with for Table 1 from the
 > "new reader" perspective, I suggest that the document doesn't actually
 > need it. The whole section can be simplified with the details focusing
 > on handling R-RUI, Status, Server-Txn, and Client-Txn

OK, fair enough.  I will adopt the text you had suggested in a follow-up
email to the list [2], modified slightly to read as follows (this text
will replace Table 1 in the current draft):

   In the following cases, an element will not have an appropriate
   value to provide for one of these fields, even though the field
   itself is mandatory and must appear in the SIP CLF record.  For
   these cases, the representation document MUST define how to
   represent such "not applicable" values.  For example, the R-URI
   field is not applicable when logging a response, the Status field
   is not applicable when logging a request, the To-tag is not known
   when a request is first sent out, etc.

   The Client-Txn field is always applicable to a UAC.  The Server-
   Txn field does not apply to a UAC unless the element is also
   acting as a UAS, and the message associated to this log record
   corresponds to a message handled by that UAS.  For instance,
   a proxy forwarding a request will populate both the Client-Txn
   and Server-Txn fields in the record corresponding to the
   forwarded request

   The Server-Txn field is always applicable to a UAS. The
   Client-Txn field does not apply to a UAS unless the element is
   also acting as a UAC, and the message associated to this log
   record corresponds to a message handled by that UAC. For instance,
   a proxy forwarding a response will populate both the Server-Txn
   and Client-Txn fields in the record corresponding to the
   forwarded response.  However, a proxy would only populate
   the Client-Txn field when creating a log record corresponding
   to a request.

 > 4) It is not sufficiently clear what it means when a record MUST
 > contain an element that is not applicable to the element. Are you
 > trying to say "Must be present with a non-empty value that is not a
 > valid value for the field"?

Yes.

 > (If so, why does it have to be non-empty? The -format- document will
 > eventually need to explain why the group chose "-" there over the
 > empty string.)

As to why we chose a "-" instead of an empty string --- having a
printable character appear where an element would have normally
appeared if it were present is visually helpful for the system
operators who are observing the SIP CLF records on the screen.

 > 5) There is prose in the definition of the From record field that
 > really belongs in other parts of the document. The From description
 > should look like the To description.  The extra text pointing to
 > whether the values in the URIs are trustable should be moved to the
 > security considerations section. The text on the utility of the value
 > for separating first or third party registrations could be moved to
 > an example or dropped.

Changed as suggested.  The prose in From is a holdover from early stages
of the work.  To be sure, the changes made reflect the From header
prose to be like the To header prose; the text on the utility of the
value for separating first or third party registrations has been
removed as has the text pointing whether the values in the URIs are
trustable (determining trust is not a matter for this draft).

 > 6) As the writeup notes, there are bugs in the IP addresses in the
 > examples: draft-ietf-sipclf-problem-statement-07.txt(853): Found
 > possible IPv4 address '198.51.1.100' in position 30;
 > draft-ietf-sipclf-problem-statement-07.txt(873): Found possible IPv4
 > address '198.51.1.100' in position 30;
 > Both of those should probably have been 198.51.100.1?

Yes, indeed.  I will correct these.

 > 7) In the security considerations section, what does it mean to mount
 > a replay attack by modifying existing records in a log file - a replay
 > attack against what?  The section should call out that an attacker
 > that doesn't have access to the actual SIP traffic, but does have
 > access to the log files (especially in real time), gets enough
 > information to mount many of the attacks he would if he were able to
 > eavesdrop on

Good point.  I will modify the text as follows:

OLD (Section 9):
   o  An attacker may mount a replay attack by modifying existing
      records in the log file or inserting new records;

NEW (Section 9):
   o An attacker who is unable to eavesdrop real-time SIP traffic
     on the network but nonetheless can access the log file, is able to
     easily mount reply attack or other attacks that result from channel
     eavesdropping.  Encrypting SIP traffic does not help here because
     the SIP entity generating the log file would have decrypted the
     message for processing and subsequent logging.

 > the traffic. The paragraph encrypting SIP traffic is trying to get
 > to this point, but it misses an essential issue. Even if the SIP
 > traffic is hop-hop encrypted - if the attacker can see these log
 > messages in real time, he can mount many of the attacks he could
 > mount if he could see the SIP traffic unencrypted.

Another good point.  The modifications above (last sentence) contains
some text to warn the reader of this as well.

You had a bunch of nits in the remaining email; I will incorporate
these as specified.

[1] http://www.ietf.org/mail-archive/web/sip-clf/current/msg00228.html
[2] http://www.ietf.org/mail-archive/web/sip-clf/current/msg00510.html

Thank you so much for your review.

- vijay
-- 
Vijay K. Gurbani, Bell Laboratories, Alcatel-Lucent
1960 Lucent Lane, Rm. 9C-533, Naperville, Illinois 60566 (USA)
Email: vkg@{bell-labs.com,acm.org} / vijay.gurbani@alcatel-lucent.com
Web:   http://ect.bell-labs.com/who/vkg/