Re: [Sipping] [RAI] draft-ietf-sipping-media-policy-dataset: The implied boolean logic of policy operations

"Worley, Dale R (Dale)" <dworley@avaya.com> Mon, 07 March 2011 21:45 UTC

Return-Path: <dworley@avaya.com>
X-Original-To: sipping@core3.amsl.com
Delivered-To: sipping@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id BF4073A68BC; Mon, 7 Mar 2011 13:45:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.552
X-Spam-Level:
X-Spam-Status: No, score=-102.552 tagged_above=-999 required=5 tests=[AWL=0.048, BAYES_00=-2.599, 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 GsZyZEFAzKSo; Mon, 7 Mar 2011 13:45:19 -0800 (PST)
Received: from co300216-co-outbound.net.avaya.com (co300216-co-outbound.net.avaya.com [198.152.13.100]) by core3.amsl.com (Postfix) with ESMTP id 790A53A687A; Mon, 7 Mar 2011 13:45:19 -0800 (PST)
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AvsEAFMtcU2HCzI1/2dsb2JhbACmZXSkeQKZFoVhBIUcinA
X-IronPort-AV: E=Sophos;i="4.62,279,1297054800"; d="scan'208";a="268230938"
Received: from unknown (HELO p-us1-erheast.us1.avaya.com) ([135.11.50.53]) by co300216-co-outbound.net.avaya.com with ESMTP; 07 Mar 2011 16:46:32 -0500
X-IronPort-AV: E=Sophos;i="4.62,279,1297054800"; d="scan'208";a="612687870"
Received: from dc-us1hcex1.us1.avaya.com (HELO DC-US1HCEX1.global.avaya.com) ([135.11.52.20]) by p-us1-erheast-out.us1.avaya.com with ESMTP; 07 Mar 2011 16:46:31 -0500
Received: from DC-US1MBEX4.global.avaya.com ([169.254.1.187]) by DC-US1HCEX1.global.avaya.com ([2002:870b:3414::870b:3414]) with mapi; Mon, 7 Mar 2011 16:46:31 -0500
From: "Worley, Dale R (Dale)" <dworley@avaya.com>
To: Gonzalo Camarillo <Gonzalo.Camarillo@ericsson.com>
Date: Mon, 07 Mar 2011 16:46:09 -0500
Thread-Topic: [RAI] draft-ietf-sipping-media-policy-dataset: The implied boolean logic of policy operations
Thread-Index: AcvU7QRcxC+hF0m6R6ehwg4+xUu/zAIJA0zU
Message-ID: <CD5674C3CD99574EBA7432465FC13C1B220B5C1554@DC-US1MBEX4.global.avaya.com>
References: <CD5674C3CD99574EBA7432465FC13C1B2202288B68@DC-US1MBEX4.global.avaya.com>, <4D67A9A5.7090600@ericsson.com>
In-Reply-To: <4D67A9A5.7090600@ericsson.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "rai@ietf.org" <rai@ietf.org>, "sipping@ietf.org" <sipping@ietf.org>, Volker Hilt <volkerh@bell-labs.com>
Subject: Re: [Sipping] [RAI] draft-ietf-sipping-media-policy-dataset: The implied boolean logic of policy operations
X-BeenThere: sipping@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "SIPPING Working Group \(applications of SIP\)" <sipping.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/sipping>, <mailto:sipping-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/sipping>
List-Post: <mailto:sipping@ietf.org>
List-Help: <mailto:sipping-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sipping>, <mailto:sipping-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 07 Mar 2011 21:45:20 -0000

Gonzalo Camarillo [Gonzalo.Camarillo@ericsson.com] writes:
> >    o  The different <stream> elements in a session-policy are
> >       effectively ORed together, in that the policy intends to permit
> >       any stream that conforms to *any one* of the <stream> elements.
> >       This is necessary because e.g. a session-policy can contain one
> >       <stream> that specifies audio media and restricts the codecs
> >       permitted for audio, and another <stream> that specifies video
> >       media and restricts the codecs permitted for video.
> 
> When policies apply to different aspects (e.g., video codecs and audio
> codecs), this is true. However, if different policies apply to the same
> aspect, they need to be merged. And when merging the policies, the
> resulting stream needs to be compliant to all policies (i.e., an AND
> operation). For example, if one policy allows codecs 0 and 8 and another
> only allows 8, the resulting policy is to only use codec 8. If a policy
> allows only codec 0 and another policy only allows codec 8, the result
> is a null session. I am not sure if this is what you are saying above
> (and below in the rest of the section), though.

I'm not sure I'm understanding you completely here.  And it's possible
that we aren't talking about exactly the same thing.

Let me recap my opinion:

- When there are two <stream> elements in *one* session-policy, then
the intention is to OR the specified restrictions:  a stream that
conforms to any one of the <stream> elements is premitted.

- When we "merge" *two* session-policy's, that is an AND, in that the
stream is subject to the restrictions of each session-policy
seperately.

So within one session-policy, one could have a <stream> element that
specifies the allowed audio codecs, and another <stream> element that
specifies the allowed video codecs, because an SDP stream that
conforms to *either* <stream> element would be allowed.  Thus, if one
<stream> allows codec G.729 and another <stream> allows codec G.711,
then either codec could be used in a stream.

But if one is "merging" two session-policy's, an audio stream would
only be acceptable to the resulting merged session-policy if its
codecs conformed to the limitations in both original ession-policy's.
Thus, if one session-policy allows codec G.729 and the other
session-policy allows codec G.711, then no codec could be used in an
audio stream.

Dale