home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1997 December / Internet_Info_CD-ROM_Walnut_Creek_December_1997.iso / drafts / draft_n_r / draft-perkins-bigint-00.txt < prev    next >
Text File  |  1997-06-13  |  9KB  |  287 lines

  1.  
  2. INTERNET-DRAFT          Expires December 1997            INTERNET-DRAFT
  3.  
  4. Draft                   Large Integers in SNMP             June 8, 1997
  5.  
  6.  
  7.                        Support for Large Integers
  8.                                 in SNMP
  9.  
  10.                        <draft-perkins-bigint-00.txt>
  11.  
  12.                               June 8, 1997
  13.  
  14.                             David T. Perkins
  15.                          dperkins@snmpinfo.com
  16.  
  17.  
  18.  
  19. 1.  Status of this Memo
  20.  
  21.    This document is an Internet Draft.  Internet Drafts are working
  22.    documents of the Internet Engineering Task Force (IETF), its Areas,
  23.    and its Working Groups. Note that other groups may also distribute
  24.    working documents as Internet Drafts.
  25.  
  26.    Internet Drafts are draft documents valid for a maximum of six
  27.    months.  Internet Drafts may be updated, replaced, or obsoleted by
  28.    other documents at any time.  It is not appropriate to use Internet
  29.    Drafts as reference material or to cite them other than as a
  30.    "working draft" or "work in progress."
  31.  
  32.    To learn the current status of any Internet-Draft, please check the
  33.    "1id-abstracts.txt" listing contained in the internet-drafts Shadow
  34.    Directories on:
  35.  
  36.          ftp.is.co.za (Africa)
  37.          nic.nordu.net (Europe)
  38.          ds.internic.net (US East Coast)
  39.          ftp.isi.edu (US West Coast)
  40.          munnari.oz.au (Pacific Rim)
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58. Expires 12/08/97                                               [Page 1]
  59. Draft                   Large Integers in SNMP             June 8, 1997
  60.  
  61.  
  62. 2.  Introduction
  63.  
  64. This memo is informational.  It specifies an approach to add 64-bit
  65. signed and unsigned integer types to versions 1 and 2 of the SNMP
  66. SMI[1][2][3][4][5][6], and versions 1 and 2 of the SNMP
  67. protocol[7][8][9] without changes. Thus, this addition requires no
  68. modifications to existing SNMP MIB compilers, and no changes to existing
  69. SNMP protocol engines used in SNMP agents and SNMP management
  70. applications.
  71.  
  72. This memo does not specify a standard for the Internet community.
  73.  
  74.  
  75. 3.  Background
  76.  
  77. The SNMP protocol and SMI is based on elements from ASN.1[10] and
  78. BER[11].  The SMI allows use of only a few ASN.1 base types plus a few
  79. SNMP application specific types.  Support for large integer types is not
  80. currently found in SNMP.  This is primarily due to two factors.  The
  81. first was the focus during the original development of SNMP to keep SNMP
  82. simple and use it for managing computer network devices using the
  83. Internet protocol suite.  The second factor was to limit the resource
  84. requirements for agents to support SNMP.
  85.  
  86. SNMP has been found to be useful for purposes other than those for which
  87. it was originally developed.  However, some of the limitations in SNMP
  88. have restricted its continuing growth.  Lack of support for large
  89. integer types has been a problem in some areas.  The first example is in
  90. mid-level managers that gather and process management information from
  91. many sources.  The processing includes computing values for mathematical
  92. formulas that require use of 64-bit integer arithmetic.  Mid-level
  93. managers typically execute on general purpose computers. Some have
  94. direct support for 64-bit integers, and all should have access to
  95. libraries to support multi-precision arithmetic. Thus, supporting 64-bit
  96. integer types is not a burden for them.  A second area is using SNMP in
  97. equipment that require 64-bit integer precision objects to monitor,
  98. control, and configure them due to very high-speed network interfaces,
  99. such as ATM, and giga-bit ethernet.
  100.  
  101.  
  102.  
  103. 4.  Large Integer Types
  104.  
  105. ASN.1 already has support for large integer data types.  However, the
  106. SNMP SMI restricts their range.  Thus, they cannot be used directly.
  107. The current need for large integer data types is satisfied by the
  108. addition of a 64-bit signed integer, and a 64-bit unsigned integer data
  109. type, which are called Integer64 and Unsigned64, respectively, in this
  110. memo.  Section 5.1.2 of "The Domestication of the Opaque Type for
  111. SNMP"[12] requires that a new base type be identified and a textual
  112.  
  113.  
  114.  
  115. Expires 12/08/97                                               [Page 2]
  116. Draft                   Large Integers in SNMP             June 8, 1997
  117.  
  118.  
  119. convention be defined for each new "wrapped" type.  Shown below are the
  120. definitions for these types and corresponding textual conventions.
  121.  
  122.  
  123.    -- A signed integer of up to 64 bits of precision.
  124.    I64Type ::= [APPLICATION 10] IMPLICIT
  125.                    INTEGER (-9223372036854775808..9223372036854775807)
  126.  
  127.    -- An unsigned integer of up to 64 bit of precision.
  128.    U64Type ::= [APPLICATION 11] IMPLICIT
  129.                     INTEGER (0.. 18446744073709551615)
  130.  
  131.    Integer64 TEXTUAL-CONVENTION
  132.        STATUS      current
  133.        DESCRIPTION
  134.            "A 64-bit signed integer.  The value is restricted to
  135.            the BER serialization of the following ASN.1 type:
  136.                I64TYPE ::= [122] IMPLICIT I64Type
  137.            (note: the value 122 is the sum of '30'h and '4a'h)
  138.            The BER serialization of the length for values of
  139.            this type must use the definite length, short
  140.            encoding form.
  141.  
  142.            For example, the BER serialization of value 129
  143.            of type I64TYPE is '9f7a020081'h.  (The tag is '9f7a'h;
  144.            the length is '02'h; and the value is '0081'h.) The
  145.            BER serialization of value '9f7a020081'h of data
  146.            type Opaque is '44059f7a020081'h. (The tag is '44'h;
  147.            the length is '05'h; and the value is '9f7a020081'h.)
  148.            Also for example, the BER serialization of value -129
  149.            of type I64TYPE is '9f7a02ff7f'h.  (The tag is '9f7a'h;
  150.            the length is '02'h; and the value is 'ff7f'h.) The
  151.            BER serialization of value '9f7a02ff7f'h of data
  152.            type Opaque is '44059f7a02ff7f'h. (The tag is '44'h;
  153.            the length is '05'h; and the value is '9f7a02ff7f'h.)"
  154.        SYNTAX      Opaque (SIZE(4..11))
  155.  
  156.  
  157.    Unsigned64 TEXTUAL-CONVENTION
  158.        STATUS      current
  159.        DESCRIPTION
  160.            "A 64-bit unsigned signed integer.  The value is
  161.            restricted to the BER serialization of the following
  162.            ASN.1 type:
  163.                U64TYPE ::= [123] IMPLICIT U64Type
  164.            (note: the value 123 is the sum of '30'h and '4b'h)
  165.            The BER serialization of the length for values of
  166.            this type must use the definite length, short
  167.            encoding form.
  168.  
  169.  
  170.  
  171.  
  172. Expires 12/08/97                                               [Page 3]
  173. Draft                   Large Integers in SNMP             June 8, 1997
  174.  
  175.  
  176.            For example, the BER serialization of value 129
  177.            of type U64TYPE is '9f7b020081'h.  (The tag is '9f7b'h;
  178.            the length is '02'h; and the value is '0081'h.) The
  179.            BER serialization of value '9f7b020081'h of data
  180.            type Opaque is '44059f7b020081'h. (The tag is '44'h;
  181.            the length is '05'h; and the value is '9f7b020081'h.)"
  182.            SYNTAX      Opaque (SIZE(4..12))
  183.  
  184.  
  185.  
  186.  
  187. 6.  References
  188.  
  189.  
  190. [1]  K. McCloghrie, M. Rose, "Structure and Identification of Management
  191.      Information for TCP/IP-based Internets", RFC 1155, 05/10/1990.
  192.  
  193. [2]  K. McCloghrie, M. Rose, "Concise MIB Definitions", RFC 1212,
  194.      03/26/1991.
  195.  
  196. [3]  M. Rose, "A Convention for Defining Traps for use with the SNMP",
  197.      RFC 1215, 03/27/1991.
  198.  
  199. [4]  J. Case, K. McCloghrie, M. Rose, S. Waldbusser, "Structure of
  200.      Management Information for Version 2 of the Simple Network
  201.      Management Protocol (SNMPv2)", RFC 1902, 01/22/1996.
  202.  
  203. [5]  J. Case, K. McCloghrie, M. Rose, S. Waldbusser, "Textual
  204.      Conventions for Version 2 of the Simple Network Management Protocol
  205.      (SNMPv2)", RFC 1903, 01/22/1996.
  206.  
  207. [6]  J. Case, K. McCloghrie, M. Rose, S. Waldbusser, "Conformance
  208.      Statements for Version 2 of the Simple Network Management Protocol
  209.      (SNMPv2)", RFC 1904, 01/22/1996.
  210.  
  211. [7]  M. Schoffstall, M. Fedor, J. Davin, J. Case, "A Simple Network
  212.      Management Protocol (SNMP)", RFC 1157, 05/10/1990.
  213.  
  214. [8]  J. Case, K. McCloghrie, M. Rose, S. Waldbusser, "Protocol
  215.      Operations for Version 2 of the Simple Network Management Protocol
  216.      (SNMPv2)", RFC 1905, 01/22/1996.
  217.  
  218. [9]  SNMPv2 Working Group, Case, J., McCloghrie, K., Rose, M., and
  219.      S. Waldbusser, "Transport Mappings for Version 2 of the Simple
  220.      Network Management Protocol (SNMPv2)", RFC 1906, 01/22/1996.
  221.  
  222. [10] Information processing systems - Open Systems Interconnection -
  223.      Specification of Abstract Syntax Notation One (ASN.1),
  224.      International Organization for Standardization.  International
  225.      Standard 8824, (December, 1987).
  226.  
  227.  
  228.  
  229. Expires 12/08/97                                               [Page 4]
  230. Draft                   Large Integers in SNMP             June 8, 1997
  231.  
  232.  
  233. [11] Information processing systems - Open Systems Interconnection -
  234.      Specification of Basic Encoding Rules for Abstract Syntax Notation
  235.      One (ASN.1), International Organization for Standardization.
  236.      International Standard 8825, (December, 1987).
  237.  
  238. [12] Perkins, D., "Domestication of the Opaque Type for SNMP",
  239.      Internet-draft <name-pending> (Replace with reference
  240.      to RFC).
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286. Expires 12/08/97                                               [Page 5]
  287.