Internet Engineering Task Force (IETF)                        R. Presuhn
Request for Comments: 6340                                   Independent
Category: Standards Track                                    August 2011
ISSN: 2070-1721
        

Textual Conventions for the Representation of Floating-Point Numbers

浮動小数点数の表現のためのテキストの表記法

Abstract

抽象

This memo defines a Management Information Base (MIB) module containing textual conventions (TCs) to represent floating-point numbers.

このメモは、浮動小数点数を表すためにテキストの表記法(のTC)を含む管理情報ベース(MIB)モジュールを定義します。

Status of This Memo

このメモのステータス

This is an Internet Standards Track document.

これは、インターネット標準化過程文書です。

This document is a product of the Internet Engineering Task Force (IETF). It represents the consensus of the IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Further information on Internet Standards is available in Section 2 of RFC 5741.

このドキュメントはインターネットエンジニアリングタスクフォース(IETF)の製品です。これは、IETFコミュニティの総意を表しています。これは、公開レビューを受けており、インターネットエンジニアリング運営グループ(IESG)によって公表のために承認されています。インターネット標準の詳細については、RFC 5741のセクション2で利用可能です。

Information about the current status of this document, any errata, and how to provide feedback on it may be obtained at http://www.rfc-editor.org/info/rfc6340.

このドキュメントの現在の状態、任意の正誤表、そしてどのようにフィードバックを提供するための情報がhttp://www.rfc-editor.org/info/rfc6340で取得することができます。

Copyright Notice

著作権表示

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

著作権(C)2011 IETF信託とドキュメントの作成者として特定の人物。全著作権所有。

This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://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.

この文書では、BCP 78と、この文書の発行日に有効なIETFドキュメント(http://trustee.ietf.org/license-info)に関連IETFトラストの法律の規定に従うものとします。彼らは、この文書に関してあなたの権利と制限を説明するように、慎重にこれらの文書を確認してください。コードコンポーネントは、トラスト法規定のセクションで説明4.eおよび簡体BSDライセンスで説明したように、保証なしで提供されているよう簡体BSDライセンスのテキストを含める必要があり、この文書から抽出されました。

Table of Contents

目次

   1. Introduction ....................................................2
   2. The Internet-Standard Management Framework ......................3
   3. Applicability ...................................................3
   4. Structure of the MIB Module .....................................4
      4.1. MIB Modules Required for IMPORTS ...........................4
      4.2. Documents Required for REFERENCE Clauses ...................4
   5. Definitions .....................................................4
   6. Security Considerations .........................................6
   7. IANA Considerations .............................................6
   8. Contributors ....................................................6
   9. References ......................................................7
      9.1. Normative References .......................................7
      9.2. Informative References .....................................7
        
1. Introduction
1. はじめに

This memo defines textual conventions for the representation of floating-point numbers. All of these definitions are in terms of the IEEE "Standard for Floating-Point Arithmetic", IEEE 754-2008 [IEEE.754.2008].

このメモは、浮動小数点数の表現のためのテキストの表記法を定義します。これらの定義のすべてが「浮動小数点演算のための標準」IEEE、IEEE 754-2008 [IEEE.754.2008]の用語です。

The IEEE "Standard for Floating-Point Arithmetic", IEEE 754-2008 [IEEE.754.2008], provides for a variety of interchange formats for floating-point numbers. The need for three of these, namely

IEEE、「浮動小数点演算のための標準的な」、IEEE 754-2008 [IEEE.754.2008]は、浮動小数点数のための交換フォーマットの多様を提供します。すなわち、これらの3、の必要性

o 32-bit,

O 32ビット、

o 64-bit,

O 64ビット、

o 128-bit,

128ビットのO、

has been recognized in network management. For example, Section 4.2.3 of the SMIng Objectives [RFC3216] elaborates the need for these three floating-point data types in network management protocols.

ネットワーク管理で認識されてきました。例えば、SMIng目的[RFC3216]のセクション4.2.3は、ネットワーク管理プロトコルでこれら3つの浮動小数点データ型の必要性を詳しく説明します。

The selection of a floating-point format involves many considerations and trade-offs. For an introduction to the fundamentals of floating-point representations see Chapter 4 of [KNUTH]; for a discussion of these issues specifically with respect to the IEEE formats, see [GOLDBERG].

浮動小数点形式の選択は、多くの考慮事項とトレードオフを伴います。浮動小数点表現の基礎に導入するために[KNUTH]の第4章を参照してください。具体的にはIEEE形式に関して、これらの問題の議論については、[GOLDBERG]を参照。

All of these textual conventions employ the binary interchange format defined in [IEEE.754.2008]. Specifically, this means that for all of them, the highest-order bit of the first byte is the sign bit, with the remaining bits of the octet string corresponding to the exponent and fraction parts, in network byte order.

これらの原文のコンベンションのすべてが[IEEE.754.2008]で定義されたバイナリ交換フォーマットを採用しています。具体的には、それらのすべてのために、最初のバイトの最上位ビットは符号ビットがネットワークバイト順に、指数部と小数部に対応するオクテットストリングの残りのビットであることを意味します。

2. The Internet-Standard Management Framework
2.インターネット標準管理フレームワーク

For a detailed overview of the documents that describe the current Internet-Standard Management Framework, please refer to section 7 of RFC 3410 [RFC3410].

現在のインターネット標準の管理フレームワークを記述したドキュメントの詳細な概要については、RFC 3410 [RFC3410]のセクション7を参照してください。

Managed objects are accessed via a virtual information store, termed the Management Information Base or MIB. MIB objects are generally accessed through the Simple Network Management Protocol (SNMP). Objects in the MIB are defined using the mechanisms defined in the Structure of Management Information (SMI). This memo specifies a MIB module that is compliant to the SMIv2, which is described in STD 58, RFC 2578 [RFC2578], STD 58, RFC 2579 [RFC2579] and STD 58, RFC 2580 [RFC2580].

管理対象オブジェクトが仮想情報店を介してアクセスされ、管理情報ベースまたはMIBと呼ばれます。 MIBオブジェクトは、一般的に簡易ネットワーク管理プロトコル(SNMP)を介してアクセスされます。 MIBのオブジェクトは、管理情報(SMI)の構造で定義されたメカニズムを使用して定義されています。このメモは、STD 58、RFC 2578 [RFC2578]、STD 58、RFC 2579 [RFC2579]とSTD 58、RFC 2580 [RFC2580]に記載されているSMIv2のに準拠しているMIBモジュールを指定します。

3. Applicability
3.適用性

The following list highlights some of the issues MIB designers need to consider when deciding whether to employ these textual conventions:

以下のリストは、MIBの設計者はこれらのテキストの表記法を採用するかどうかを決定する際に考慮する必要がある問題のいくつかに焦点を当てています。

o Floating-point numbers are useful if the number space needs to cover a large dynamic range. For number spaces with a limited range, fixed-point numbers can be more efficient and more precise.

数のスペースが広いダイナミックレンジをカバーする必要がある場合、O浮動小数点数は、有用です。限られた範囲の数のスペースのために、固定小数点数は、より効率的かつより正確にすることができます。

o Floating-point numbers are typically the wrong answer for data that is truly decimal or can be handled adequately by re-thinking the units and representing the scaled numbers as integers.

O浮動小数点数は真の小数であるかのユニットを再思考と整数としてスケールの数字を表すことによって適切に処理することができ、データの間違った答えは、典型的には。

o The SNMP "lexicographical" ordering for INDEX objects using these floating-point textual conventions will simply be that of the octet strings corresponding to the floating-point representations, which will not always reflect the numerical ordering of the corresponding floating-point values. Even if MIB designers take this into account, users might still find the results of a MIB "walk" surprising. Consequently, it is suggested that whenever one of these textual conventions is used for an INDEX object, that the DESCRIPTION clause should provide some warning.

単純に常に対応する浮動小数点値の数値の順序が反映されません浮動小数点表現に対応するオクテット文字列のことになりますこれらの浮動小数点テキストの表記法を使用してINDEXオブジェクトの発注O SNMP「辞書式」。 MIBデザイナーがこれを考慮に入れる場合でも、ユーザーは驚くべき「歩く」MIBの結果を見つけるかもしれません。したがって、これらのテキストの表記法のたび1が説明節は、いくつかの警告を提供する必要があることを、INDEXのオブジェクトのために使用されていることが示唆されます。

o Embedded systems sometimes lack floating-point support, which can complicate the implementation of MIB objects using floating-point numbers.

O組込みシステムは、時には浮動小数点数を使用して、MIBオブジェクトの実装を複雑にすることができる浮動小数点サポートを欠いています。

o In choosing from among the types defined in this memo, MIB designers need to consider both the range and the precision needed, as well as recognize that it could be inefficient to use, for example, Float128TC when Float64TC would do.

Oこのメモで定義された種類の中から選択する際には、MIBデザイナーはFloat64TCがどうなるときFloat128TC、例えば、範囲や必要な精度の両方を考慮して、だけでなく、それを使用するのは非効率的かもしれないことを認識する必要があります。

o Since these textual conventions are defined in terms of the OCTET STRING type, the SMI's mechanisms for formally setting range constraints are not available. MIB designers using these textual conventions will need to use DESCRIPTION clauses to spell out any applicable range constraints beyond those implied by the underlying IEEE types.

これらのテキストの表記法は、オクテット文字列タイプで定義されているので、O、正式に範囲の制約を設定するためのSMIのメカニズムは使用できません。これらのテキストの表記法を使用してMIBデザイナーは、基礎となるIEEE種類によって暗示たもの以外の任意適用範囲の制約を綴るために記述節を使用する必要があります。

o Whenever these textual conventions are used in a MIB module, the associated DESCRIPTION clause will need to clearly specify whether denormalized numbers, NaNs ("not a number") or infinities are permitted, along with any special semantics associated with these cases. This is especially important for writeable objects.

これらのテキストの表記法はMIBモジュールで使用されているときはいつでも、O、関連する記述句は明らかに非正規化するかどうかの番号を指定する必要があります、NaNを(「非数」)や無限大は、これらの例に関連した特別な意味論とともに、許可されています。これは、書き込み可能なオブジェクトのために特に重要です。

4. Structure of the MIB Module
MIBモジュールの構造4。

This MIB module defines three textual conventions. It defines no MIB objects.

このMIBモジュールは3つのテキストの表記法を定義します。それは何のMIBオブジェクトを定義しません。

4.1. MIB Modules Required for IMPORTS
4.1. MIBモジュールは、輸入に必要な

This MIB module employs definitions from [RFC2578] and [RFC2579].

このMIBモジュールは[RFC2578]及び[RFC2579]の定義を採用します。

4.2. Documents Required for REFERENCE Clauses
4.2. REFERENCE句に必要な書類

This MIB module contains REFERENCE clauses making reference to IEEE 754-2008 [IEEE.754.2008].

このMIBモジュールは、IEEE 754-2008 [IEEE.754.2008]を参照してREFERENCE句を含んでいます。

5. Definitions
5.定義
  FLOAT-TC-MIB DEFINITIONS ::= BEGIN
        

IMPORTS MODULE-IDENTITY, mib-2 FROM SNMPv2-SMI -- RFC 2578 TEXTUAL-CONVENTION FROM SNMPv2-TC; -- RFC 2579

輸入のSNMPv2-SMIからモジュール-IDENTITY、MIB-2 - のSNMPv2-TC FROM RFC 2578テキストの表記法。 - RFC 2579

floatTcMIB MODULE-IDENTITY LAST-UPDATED "201107270000Z" -- July 27, 2011 ORGANIZATION "IETF OPSAWG Working Group" CONTACT-INFO "WG Email: opsawg@ietf.org

floatTcMIBのMODULE-IDENTITY LAST-UPDATED "201107270000Z" - 2011年7月27日ORGANIZATION "IETF OPSAWGワーキンググループ" CONTACT-INFO「WG電子メール:opsawg@ietf.org

                    Editor: Randy Presuhn
                    randy_presuhn@mindspring.com"
        

DESCRIPTION "Textual conventions for the representation of floating-point numbers.

DESCRIPTION「浮動小数点数の表現ためのテキストの表記法。

                    Copyright (c) 2011 IETF Trust and the persons
                    identified as authors of the code.  All rights
                    reserved.
        

Redistribution and use in source and binary forms, with or without modification, is permitted pursuant to, and subject to the license terms contained in, the Simplified BSD License set forth in Section 4.c of the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info).

、に基づき許可されており、中に含まれるライセンス条項に従う、簡体BSDライセンスは、IETFドキュメントに関連IETFトラストの法律規定(のセクション4.Cに記載されている変更の有無にかかわらず、ソースおよびバイナリ形式での再配布および使用http://trustee.ietf.org/license-info)。

This version of this MIB module is part of RFC 6340; see the RFC itself for full legal notices."

このMIBモジュールのこのバージョンはRFC 6340の一部です。完全な適法な通知についてはRFC自体を参照してください。」

      REVISION     "201107270000Z"          -- July 27, 2011
      DESCRIPTION  "Initial version, published as RFC 6340."
       ::= { mib-2 201 }
        
  Float32TC ::= TEXTUAL-CONVENTION
      STATUS       current
      DESCRIPTION  "This type represents a 32-bit (4-octet) IEEE
                    floating-point number in binary interchange format."
      REFERENCE    "IEEE Standard for Floating-Point Arithmetic,
                    Standard 754-2008"
      SYNTAX       OCTET STRING (SIZE(4))
        
  Float64TC ::= TEXTUAL-CONVENTION
      STATUS       current
      DESCRIPTION  "This type represents a 64-bit (8-octet) IEEE
                    floating-point number in binary interchange format."
      REFERENCE    "IEEE Standard for Floating-Point Arithmetic,
                    Standard 754-2008"
      SYNTAX       OCTET STRING (SIZE(8))
        
  Float128TC ::= TEXTUAL-CONVENTION
      STATUS       current
      DESCRIPTION  "This type represents a 128-bit (16-octet) IEEE
                    floating-point number in binary interchange format."
      REFERENCE    "IEEE Standard for Floating-Point Arithmetic,
                    Standard 754-2008"
      SYNTAX       OCTET STRING (SIZE(16))
        

END

終わり

6. Security Considerations
6.セキュリティの考慮事項

This module does not define any management objects. Instead, it defines a set of textual conventions that can be used by other MIB modules to define management objects.

このモジュールは、任意の管理オブジェクトを定義していません。代わりに、管理オブジェクトを定義するために他のMIBモジュールで使用することができるテキストの表記法のセットを定義します。

Meaningful security considerations can only be written in the MIB modules that define management objects. Therefore, this memo has no impact on the security of the Internet.

意味のあるセキュリティ上の考慮事項は、管理オブジェクトを定義するMIBモジュールに書き込むことができます。したがって、このメモは、インターネットのセキュリティには影響を与えません。

7. IANA Considerations
7. IANAの考慮事項

The MIB module in this document uses the following IANA-assigned OBJECT IDENTIFIER value recorded in the SMI Numbers registry:

この文書に記載されているMIBモジュールはSMI番号のレジストリに記録されている以下のIANAによって割り当てられたオブジェクト識別子の値を使用しています。

      Descriptor        OBJECT IDENTIFIER value
      ----------        -----------------------
      floatTcMIB        { mib-2 201 }
        
8. Contributors
8.協力者

The following people provided helpful comments during the development of this document:

次の人は、この文書の開発中に有益なコメントを得ました:

o Andy Bierman

OアンディBierman

o Martin Duerst

O・マーティンDuerst

o Alfred Hoenes

OアルフレッドHoenes

o Juergen Quittek

ユルゲンQuittek O

o Juergen Schoenwaeder

ユルゲンSchoenwaeder O

o Dave Shield

お だゔぇ しえld

o Robert Story

Oロバート・ストーリー

9. References
9.参考文献
9.1. Normative References
9.1. 引用規格

[IEEE.754.2008] Institute of Electrical and Electronics Engineers, "Standard for Floating-Point Arithmetic", IEEE Standard 754, August 2008.

[IEEE.754.2008]「浮動小数点演算のための標準的な」電気電子技術の研究所、IEEE規格754、2008年8月。

[RFC2578] McCloghrie, K., Ed., Perkins, D., Ed., and J. Schoenwaelder, Ed., "Structure of Management Information Version 2 (SMIv2)", STD 58, RFC 2578, April 1999.

[RFC2578] McCloghrie、K.、エド。、パーキンス、D.、編、及びJ. Schoenwaelder、編、STD 58、RFC 2578、1999年4月、 "管理情報バージョン2(SMIv2)の構造"。

[RFC2579] McCloghrie, K., Ed., Perkins, D., Ed., and J. Schoenwaelder, Ed., "Textual Conventions for SMIv2", STD 58, RFC 2579, April 1999.

[RFC2579] McCloghrie、K.、エド。、パーキンス、D.、編、及びJ. Schoenwaelder、エド。、 "SMIv2のためのテキストの表記法"、STD 58、RFC 2579、1999年4月。

[RFC2580] McCloghrie, K., Perkins, D., and J. Schoenwaelder, "Conformance Statements for SMIv2", STD 58, RFC 2580, April 1999.

[RFC2580] McCloghrie、K.、パーキンス、D.、およびJ. Schoenwaelder、 "SMIv2のための適合性宣言"、STD 58、RFC 2580、1999年4月。

9.2. Informative References
9.2. 参考文献

[GOLDBERG] Goldberg, D., "What Every Computer Scientist Should Know About Floating-Point Arithmetic", ACM Computing Surveys Volume 23, Issue 1, March 1991.

、ACMコンピューティング調査の23巻、1号、1991年3月「すべてのコンピュータ科学者は、浮動小数点演算について知っておくべきこと」[GOLDBERG]ゴールドバーグ、D.、。

[KNUTH] Knuth, D., "Seminumerical Algorithms", The Art of Computer Programming (Second Edition) Vol. 2, 1981.

[クヌース]クヌース、D.、「Seminumericalアルゴリズム」、コンピュータプログラミング(第二版)巻のアート。 2、1981。

[RFC3216] Elliott, C., Harrington, D., Jason, J., Schoenwaelder, J., Strauss, F., and W. Weiss, "SMIng Objectives", RFC 3216, December 2001.

[RFC3216]エリオット、C.、ハリントン、D.、ジェイソン、J.、Schoenwaelder、J.、シュトラウス、F.、及びW.ワイス、 "目標をSMIng"、RFC 3216、2001年12月。

[RFC3410] Case, J., Mundy, R., Partain, D., and B. Stewart, "Introduction and Applicability Statements for Internet-Standard Management Framework", RFC 3410, December 2002.

[RFC3410]ケース、J.、マンディ、R.、パーテイン、D.、およびB.スチュワート、 "インターネット標準の管理フレームワークのための序論と適用性声明"、RFC 3410、2002年12月。

Author's Address

著者のアドレス

Randy Presuhn San Jose, CA 95120 USA

ランディPresuhnサンノゼ、CA 95120 USA

EMail: randy_presuhn@mindspring.com

メールアドレス:randy_presuhn@mindspring.com