Movatterモバイル変換


[0]ホーム

URL:



Internet-DraftSenML Features and VersionsMay 2020
BormannExpires 14 November 2020[Page]
Workgroup:
Network Working Group
Internet-Draft:
draft-ietf-core-senml-versions-00
Updates:
8428 (if approved)
Published:
Intended Status:
Standards Track
Expires:
Author:
C. Bormann
Universitaet Bremen TZI

SenML Features and Versions

Abstract

This short document updates RFC 8428, Sensor Measurement Lists(SenML), by specifying the use of independently selectable "SenMLFeatures" and mapping them to SenML version numbers.

Status of This Memo

This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.

Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is athttps://datatracker.ietf.org/drafts/current/.

Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."

This Internet-Draft will expire on 14 November 2020.

Copyright Notice

Copyright (c) 2020 IETF Trust and the persons identified as the document authors. All rights reserved.

This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.

Table of Contents

1.Introduction

The Sensor Measurement Lists (SenML) specification[RFC8428] provides a versionnumber that is initially set to 10, without furtherspecification on the way to make use of different version numbers.

The traditional idea of using a version number for evolving aninterchange format presupposes a linear progression of that format.A more likely form of evolution of SenML is the addition ofindependently selectable "features"that can be added to the base version (version 10) in a fashion thatthese are mostly independent of each other. A recipient of a SenML pack can check thefeatures it implements against those required by the pack, processing thepack only if all required features are provided in the implementation.

This short document specifies the use of SenML Features and mapsthem to SenML version number space, updating[RFC8428].

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALLNOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED","MAY", and "OPTIONAL" in this document are to be interpreted asdescribed in BCP 14[RFC2119][RFC8174] when, and only when, theyappear in all capitals, as shown here.

Where bit arithmetic is explained, this document usesthe notation familiar from the programming language C, except that"**" denotes exponentiation.

2.Feature Codes and the Version number

The present specification defines "SenML Features", each identified by a "featurename" (a text string) and a "feature code", an unsigned integer lessthan 53.

The specific version of a SenML pack is composed of a set offeatures.The SenML version number (bver field) is then a bitmap of thesefeatures, specifically the sum of, for each feature present, two takento the power of the feature code of that feature.

            \~~   52                   fcversion  =   >          present(fc) x 2            /__ fc=0

where present(fc) is 1 if the feature with the feature codefc ispresent, 0 otherwise.

3.Features: Reserved0, Reserved1, Reserved2, Reserved3

For SenML Version 10 as described in[RFC8428], the feature codes 0 to 3 are already in use.Reserved1 (1) and Reserved3 (3) are always presentand the features Reserved0 (0) and Reserved2 (2) are always absent,yielding a version number of 10 if no other feature is in use.These four reserved feature codes are not to be used with any more specificsemantics except in a specification that updates the present specification.

4.Feature: Secondary Units

The feature "Secondary Units" (code number 4) indicates that secondaryunit names[I-D.ietf-core-senml-more-units] MAY be be used in the "u" field of SenML Records, in addition to theprimary unit names already allowed by[RFC8428].

Note that the most basic use of this feature simply sets the SenMLversion number to 26 (10 + 2**4).

5.Security Considerations

The security considerations of[RFC8428] apply.This specification provides structure to the interpretation of theSenML version number, which poses no additional securityconsiderations except for some potential for surprise that versionnumbers do not simply increase linearly.

6.IANA Considerations

IANA is requested to create a new subregistry "SenML features" within the SenMLregistry[IANA.senml], with the registration policy "specification required"[RFC8126]and the columns:

  • Feature code (an unsigned integer less than 53)
  • Feature name (text)
  • Specification

The initial content of this registry is as follows:

Table 1:Features defined for SenML at the time of writing
Feature codeFeature nameSpecification
0Reserved0RFCthis
1Reserved1RFCthis
2Reserved2RFCthis
3Reserved3RFCthis
4Secondary UnitsRFCthis

As the number of features that can be registered has a hard limit (48codes left at the time of writing), the designated expert isspecifically instructed to maintain a frugal regime of code pointallocation, keeping code points available for SenML Features that arelikely to be useful for non-trivial subsets of the SenML ecosystem.Quantitatively, the expert could for instance steer the allocation tonot allocate more than 10 % of the remaining set per year.

7.Normative References

[I-D.ietf-core-senml-more-units]
Bormann, C.,"Additional Units for SenML",Work in Progress,Internet-Draft, draft-ietf-core-senml-more-units-06,,<http://www.ietf.org/internet-drafts/draft-ietf-core-senml-more-units-06.txt>.
[IANA.senml]
IANA,"Sensor Measurement Lists (SenML)",,<http://www.iana.org/assignments/senml>.
[RFC2119]
Bradner, S.,"Key words for use in RFCs to Indicate Requirement Levels",BCP 14,RFC 2119,DOI 10.17487/RFC2119,,<https://www.rfc-editor.org/info/rfc2119>.
[RFC8126]
Cotton, M., Leiba, B., and T. Narten,"Guidelines for Writing an IANA Considerations Section in RFCs",BCP 26,RFC 8126,DOI 10.17487/RFC8126,,<https://www.rfc-editor.org/info/rfc8126>.
[RFC8174]
Leiba, B.,"Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words",BCP 14,RFC 8174,DOI 10.17487/RFC8174,,<https://www.rfc-editor.org/info/rfc8174>.
[RFC8428]
Jennings, C., Shelby, Z., Arkko, J., Keranen, A., and C. Bormann,"Sensor Measurement Lists (SenML)",RFC 8428,DOI 10.17487/RFC8428,,<https://www.rfc-editor.org/info/rfc8428>.

Acknowledgements

Ari Keranen proposed to use the version number as a bitmap andprovided further input on this specification.

Author's Address

Carsten Bormann
Universitaet Bremen TZI
Postfach 330440
D-28359Bremen
Germany
Datatracker

draft-ietf-core-senml-versions-00

This is an older version of an Internet-Draft that was ultimately published asRFC 9100.

DocumentDocument type
This is an older version of an Internet-Draft that was ultimately published asRFC 9100.
Select version
Compare versions
AuthorCarsten Bormann
Replacesdraft-bormann-core-senml-versions
RFC streamIETF LogoIETF Logo
Other formats
Additional resources Mailing list discussion
Report a datatracker bug

[8]ページ先頭

©2009-2026 Movatter.jp