Re: [IPFIX] unobserved fields

Paul Aitken <paitken@cisco.com> Mon, 10 December 2012 10:46 UTC

Return-Path: <paitken@cisco.com>
X-Original-To: ipfix@ietfa.amsl.com
Delivered-To: ipfix@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DE8DB21F8CDF for <ipfix@ietfa.amsl.com>; Mon, 10 Dec 2012 02:46:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.566
X-Spam-Level:
X-Spam-Status: No, score=-10.566 tagged_above=-999 required=5 tests=[AWL=0.033, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LZDIQmy-yQn2 for <ipfix@ietfa.amsl.com>; Mon, 10 Dec 2012 02:46:42 -0800 (PST)
Received: from ams-iport-4.cisco.com (ams-iport-4.cisco.com [144.254.224.147]) by ietfa.amsl.com (Postfix) with ESMTP id E5A8A21F8E09 for <ipfix@ietf.org>; Mon, 10 Dec 2012 02:46:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=3227; q=dns/txt; s=iport; t=1355136401; x=1356346001; h=message-id:date:from:mime-version:to:cc:subject: references:in-reply-to:content-transfer-encoding; bh=Oqz4znzX1s4LplcpOAYI2qqx89tF8lhMA2kCfPvv/TM=; b=P6S1zSN2OSW63y4cyYrnCKp8MAhBO0dvvwGLswY7UaaiezkkPKrDPvBk 5ypxcuFtmfiWybgBLlti92QdM+n0t4A4HwDSxxRMFBhf9NUdDRACdxOu3 m68+/+azy31RXV0bZrE+/yRYbHV/xW2okfwfg5blahizOnk2NZsoZf0eS U=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AkwHABO8xVCQ/khM/2dsb2JhbABEg0i7KRZzgh4BAQEDAThAAQULCxgJFg8JAwIBAgFFBg0BBQIBAYgHBrYNjD+EQwOWBoVril2Ccw
X-IronPort-AV: E=McAfee;i="5400,1158,6921"; a="10300239"
Received: from ams-core-3.cisco.com ([144.254.72.76]) by ams-iport-4.cisco.com with ESMTP; 10 Dec 2012 10:46:38 +0000
Received: from [10.55.84.15] (dhcp-10-55-84-15.cisco.com [10.55.84.15]) by ams-core-3.cisco.com (8.14.5/8.14.5) with ESMTP id qBAAkcJV014288; Mon, 10 Dec 2012 10:46:38 GMT
Message-ID: <50C5BD8F.9060707@cisco.com>
Date: Mon, 10 Dec 2012 10:46:39 +0000
From: Paul Aitken <paitken@cisco.com>
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0
MIME-Version: 1.0
To: Brian Trammell <trammell@tik.ee.ethz.ch>
References: <50C2314C.20300@plixer.com> <50C23D17.3030503@cisco.com> <88D44B6F-F10C-47FD-947C-A9171AD7F127@tik.ee.ethz.ch> <50C4D203.3090204@cisco.com> <7F3700A3-0562-47B0-8BEC-394951179E8C@tik.ee.ethz.ch> <50C5B121.1080007@cisco.com> <8560F8F8-9EC3-4D0E-A3C0-14192CE04F61@tik.ee.ethz.ch>
In-Reply-To: <8560F8F8-9EC3-4D0E-A3C0-14192CE04F61@tik.ee.ethz.ch>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Cc: IETF IPFIX Working Group <ipfix@ietf.org>
Subject: Re: [IPFIX] unobserved fields
X-BeenThere: ipfix@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IPFIX WG discussion list <ipfix.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ipfix>, <mailto:ipfix-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ipfix>
List-Post: <mailto:ipfix@ietf.org>
List-Help: <mailto:ipfix-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ipfix>, <mailto:ipfix-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 10 Dec 2012 10:46:43 -0000

Brian,

> On 10 Dec 2012, at 10:53, Paul Aitken <paitken@cisco.com> wrote:
>
>> Brian,
>>
>>> Ahhhh -- okay, so you'd be proposing using an indexing mechanism, as with MIB objects, to explicitly link one IE in a record with another to allow the "observation index" IE to expose the observation state of each IE?
>> No. There's only one IE.
> Ah. Okay. Got it. I'd missed something in my reading of the MIB draft, then (or, rather, I'd paid the most attention to the IE-index-based indexing, which looks the "most IPFIXish", to me anyway, and sort of assumed the others looked the same...)
>
>> In MIB export, the template effectively says "here is a MIB, with two extensions; the first defines the OID (in the template); the second defines the index (in the data records)". Appropriate sizes are given, and the template and data records are extended accordingly. So instead of getting a 4-byte value in the data record, there might be 6 bytes: the 4 bytes value followed by a 2-bytes index. However the index has no IE of its own, so each new extension does not require a new IE.
>>
>> In the unobserved fields scenario, the template would says "here is an IE, with an extension (in the data records)", and that extension would indicate the observability of the IE. So instead of 4 bytes of RTT time, there might be 5 bytes: 4 bytes of RTT (being zero, presumably), and 1 byte reporting "insufficient time".
> thinking aloud... so, the "insufficient time" not-IE is an entry in a registry of "in-record IE decorator", like MIB index; there's an extension for "in-record IE decorator" which points to this registry entry; presumably, this decorator is "generic" enough to apply to most or all IEs? (actually, I'd call it just "insufficient data"; maybe it makes sense to combine this with other flags for per-record attributes, for the sake of efficiency...)

Yes, there's a 16-bit type field in the EFS which specifies what the 
field attribute is (eg, OID, index, unobserved, ...). Actually I've been 
wonder whether there are any EFS which require data in both the template 
and the data record; if not then the topmost type bit could indicate 
this, so there'd only need to be one length field (rather than one for 
template info + one for data record info).

Since the "unobserved" field needs to be at least 8 bits (since IPFIX 
deals with bytes rather than bits), we can run to 255 "unobserved" 
reasons (plus zero for "observed").
So although we could start with just a few generic reasons, we can 
afford to call out exactly why no data was available. eg, "insufficient" 
could be due to insufficient time (eg, RTT or 1-minute average) or 
insufficient data (eg, average / mean).


P.


>>> I think an example illustrating this -- how MIB-style EFS would support -unobserved-fields -- in the next rev of -unobserved-fields would be very useful.
>> Are MIBS ever unobserved?
> I'm not enough of an SMI geek to answer that question. I'd seen MIB export as simply another source of information elements, so would ask "why not?" but there may be reasons why not that I don't appreciate.
>
> (we've agreed to agree on the rest of the points, so <snip>)
>
> Cheers,
>
> Brian
>
>