Re: [Megaco] Ambiguous definition of auditReturnParameter in v2 ABNF

Micael Karlberg <micael.karlberg@ericsson.com> Fri, 08 August 2003 20:24 UTC

Received: from optimus.ietf.org (ietf.org [132.151.1.19] (may be forged)) by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA24497 for <megaco-archive@lists.ietf.org>; Fri, 8 Aug 2003 16:24:33 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 19lDmM-0005UE-Mf; Fri, 08 Aug 2003 16:24:02 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 19lCjR-0003Nd-8y for megaco@optimus.ietf.org; Fri, 08 Aug 2003 15:16:57 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA22979 for <megaco@ietf.org>; Fri, 8 Aug 2003 15:16:52 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1]) by ietf-mx with esmtp (Exim 4.12) id 19lCjM-0003AY-00 for megaco@ietf.org; Fri, 08 Aug 2003 15:16:52 -0400
Received: from albatross-ext.wise.edt.ericsson.se ([193.180.251.49]) by ietf-mx with esmtp (Exim 4.12) id 19lCjL-0003AV-00 for megaco@ietf.org; Fri, 08 Aug 2003 15:16:52 -0400
Received: from esealnt613.al.sw.ericsson.se ([153.88.254.125]) by albatross-ext.wise.edt.ericsson.se (8.12.9/8.12.9/WIREfire-1.6b) with ESMTP id h78JGg7W027367; Fri, 8 Aug 2003 21:16:42 +0200 (MEST)
Received: from super.du.uab.ericsson.se ([134.138.176.16]) by esealnt613.al.sw.ericsson.se with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2655.55) id QL80PGRV; Fri, 8 Aug 2003 21:16:42 +0200
Received: from bifur.du.uab.ericsson.se (daemon@bifur [134.138.177.75]) by super.du.uab.ericsson.se (8.10.1/8.10.1/erix-1.8) with ESMTP id h78JGcj01434; Fri, 8 Aug 2003 21:16:39 +0200 (MET DST)
Received: (from bmk@localhost) by bifur.du.uab.ericsson.se (8.11.6+Sun/8.9.1/client-1.0) id h78JGcR20832; Fri, 8 Aug 2003 21:16:38 +0200 (MEST)
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <16179.63254.17278.479615@gargle.gargle.HOWL>
Date: Fri, 08 Aug 2003 21:16:38 +0200
From: Micael Karlberg <micael.karlberg@ericsson.com>
Reply-To: micael.karlberg@ericsson.com
Organization: Ericsson AB (EAB/UKH/KD)
To: Troy Cauble <troy@bell-labs.com>
Cc: Christian Groves <Christian.Groves@ericsson.com.au>, micael.karlberg@ericsson.com, Anil Jangam <anilj@mahindrabt.com>, megaco@ietf.org, Tom-PT Taylor <taylor@nortelnetworks.com>, Kevin Boyle <kboyle@nortelnetworks.com>
Subject: Re: [Megaco] Ambiguous definition of auditReturnParameter in v2 ABNF
In-Reply-To: <3F33B8E3.9030409@bell-labs.com>
References: <16150.27894.389089.986520@gargle.gargle.HOWL> <00e301c34c58$c21b2de0$4c0d050a@mahindrabt.com> <16151.48138.771516.776631@gargle.gargle.HOWL> <3F31E2EF.5030800@ericsson.com.au> <16178.7310.437463.16305@gargle.gargle.HOWL> <3F332FD0.90309@ericsson.com.au> <3F33B8E3.9030409@bell-labs.com>
X-Mailer: VM 7.07 under Emacs 21.1.1
Content-Transfer-Encoding: 7bit
Sender: megaco-admin@ietf.org
Errors-To: megaco-admin@ietf.org
X-BeenThere: megaco@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/megaco>, <mailto:megaco-request@ietf.org?subject=unsubscribe>
List-Id: Media Gateway Control <megaco.ietf.org>
List-Post: <mailto:megaco@ietf.org>
List-Help: <mailto:megaco-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/megaco>, <mailto:megaco-request@ietf.org?subject=subscribe>
Content-Transfer-Encoding: 7bit

Hi,

I made the changes described by Troy:

    auditReturnParameter = ( mediaDescriptor / modemDescriptor /
                             muxDescriptor / eventsDescriptor /
                             signalsDescriptor / digitMapDescriptor /
                             observedEventsDescriptor /
                             eventBufferDescriptor /
                             statisticsDescriptor / packagesDescriptor /
                             errorDescriptor / auditReturnItem)
 
    auditReturnItem = ( MuxToken / ModemToken / MediaToken /
                        DigitMapToken / StatsToken /
                        ObservedEventsToken / PackagesToken )

    auditItem = ( auditReturnItem / SignalsToken /
                  EventBufferToken / EventsToken /
                  indAudterminationAudit )

This seems to work just fine, and since it is the way it's done
in the IG (h248s-ig) why not use this construction in version 2?

By the way. I have been using the draft-ietf-megaco-3015corr-03.txt
document assuming it to be up-to-date with the latest IG. It was only 
when Troy pointed out the auditReturnItem that I realized that something
was not right. h248s-ig.pdf is dated 25 October 2002 and 
draft-ietf-megaco-3015corr-03.txt is dated December 2002 (i.e. later). 
Is there a later version of the draft-ietf-megaco-3015corr document
or is it dead (it did expire June 2003)?

Regards,
	/BMK

Troy Cauble writes:
 > Christian Groves wrote:
 > 
 > 
 > >>
 > >>  >  > So as has been mentioned by Tom we need to fix this. So how 
 > >> about we delete  > audititem from? It removes the ambiguity.
 > >>  > auditReturnParameter = (mediaDescriptor / modemDescriptor /
 > >>  >                          muxDescriptor / eventsDescriptor /
 > >>  >                          signalsDescriptor / digitMapDescriptor /
 > >>  >                        observedEventsDescriptor / 
 > >> eventBufferDescriptor /
 > >>  >                          statisticsDescriptor / packagesDescriptor /
 > >>  >                           errorDescriptor / auditItem)
 > >>  >  > and restore this to v1.
 > >>
 > >> Delete auditItem from auditReturnParameter? But auditItem was part of 
 > >> auditReturnParameter even in v1. 
 > > 
 > > 
 > > [CHG] Yes, must have been looking at an old version of v1.
 > > 
 > >>
 > >>
 > >>  > The individual auditing mechanism was only meant to change the 
 > >> request  > mechanisn not what was returned as the "usual" audit reply 
 > >>  > should have been enough to send the data back that you need. Does 
 > >> this  > solve the problem. If not, Micael as you need unambiguous 
 > >> syntax can you  > propose a simple ABNF fix that would solve your 
 > >> problem/s?
 > >>
 > >>
 > >> I really hope that I am not the only one who is writing a version 2
 > >> parser, or else I am wasting my time (or are about to strike gold :)
 > >>
 > >> As for a solution, how about adding a token and changing the 
 > >> definition of indAudterminationAudit to:
 > >>
 > >> indAudterminationAudit = IndAudTerminationAuditToken 
 > >>                          indAudauditReturnParameter  
 > >>                          *(COMMA indAudauditReturnParameter)         
 > >> Not pretty, but it should do the trick. I have not tested it
 > >> with real messages, but atleast my parser generator did not complain 
 > >> anymore.
 > > 
 > > 
 > > [CHG] I think the point is that the MGC shouldn't be concerned whether 
 > > the audited parameter is from a descriptor audit or an individual audit. 
 > > The syntax provided for a descriptor audit is enough to return an 
 > > individual audit. The problem lies that AuditItem is used both in the 
 > > command request and reply ABNF. I was thinking about a token yesterday 
 > > myself but when I had a look at the ASN1 and saw that it used existing 
 > > AuditDescriptor reply syntax I thought we shouldn't allow using the 
 > > IndAudRep.
 > > Would a rule that,
 > > 
 > > ; For audit replys the indAudterminationAudit SHALL not be used.
 > > auditItem            = ( MuxToken / ModemToken / MediaToken /
 > >                         SignalsToken / EventBufferToken /
 > >                         DigitMapToken / StatsToken / EventsToken /
 > >                         ObservedEventsToken / PackagesToken ) /
 > >                         indAudterminationAudit)
 > > 
 > > Be a solution?
 > > 
 > > Regards, Christian
 > 
 > IG item 6.3 fixed the related conflicts for V1.  It's not clear if being
 > in the IG means it applies to V2 as well.
 > 
 > I think 6.3 should be explicitly applied to V2 because
 > 1) it makes the two versions more alike, and
 > 2) it fixes the conflicts.
 > 
 > 
 > IG item #6.3 (http://www.itu.int/itudoc/itu-t/com16/implgd/h248s-ig.pdf)
 > 
 >    auditReturnParameter = (mediaDescriptor / modemDescriptor /
 > 			muxDescriptor / eventsDescriptor /
 > 			signalsDescriptor / digitMapDescriptor /
 > 			observedEventsDescriptor /
 > 			eventBufferDescriptor /
 > 			statisticsDescriptor / packagesDescriptor /
 > 			errorDescriptor / auditReturnItem)
 > 
 >    auditReturnItem = (MuxToken / ModemToken / MediaToken /
 > 			DigitMapToken / StatsToken /
 > 			ObservedEventsToken / PackagesToken )
 > 
 >    ;at-most-once, and DigitMapToken and PackagesToken are not allowed
 >    ;in AuditCapabilities command
 >    auditItem = ( auditReturnItem / SignalsToken /
 > 			EventBufferToken / EventsToken )
 > 
 > 
 > Note that indAudterminationAudit was not in V1.  It must be added to
 > auditItem.  I think Christian is arguing that those resulting token
 > conflicts are not critical, because the indAud variations are always
 > followed by "{" or "=", which can distinguish them from the individual
 > tokens of an auditItem.  So no other changes are necessary.
 > 
 > -troy
 > 
 > 
 > 


_______________________________________________
Megaco mailing list
Megaco@ietf.org
https://www1.ietf.org/mailman/listinfo/megaco