📄 rfc2074.txt
字号:
Network Working Group A. BiermanRequest for Comments: 2074 Cisco SystemsCategory: Standards Track R. Iddon AXON Networks,Inc. January 1997 Remote Network Monitoring MIB Protocol IdentifiersStatus of this Memo This document specifies an Internet standards track protocol for the Internet community, and requests discussion and suggestions for improvements. Please refer to the current edition of the "Internet Official Protocol Standards" (STD 1) for the standardization state and status of this protocol. Distribution of this memo is unlimited.Table of Contents1 Introduction .................................................... 32 The SNMP Network Management Framework ........................... 32.1 Object Definitions ............................................ 33 Overview ........................................................ 33.1 Terms ......................................................... 43.2 Relationship to the Remote Network Monitoring MIB ............. 63.3 Relationship to the Other MIBs ................................ 64 Protocol Identifier Encoding .................................... 74.1 ProtocolDirTable INDEX Format Examples ........................ 94.2 Protocol Identifier Macro Format .............................. 104.2.1 Mapping of the Protocol Name ................................ 124.2.2 Mapping of the VARIANT-OF Clause ............................ 134.2.3 Mapping of the PARAMETERS Clause ............................ 134.2.3.1 Mapping of the 'countsFragments(0)' BIT ................... 144.2.3.2 Mapping of the 'tracksSessions(1)' BIT .................... 154.2.4 Mapping of the ATTRIBUTES Clause ............................ 154.2.5 Mapping of the DESCRIPTION Clause ........................... 154.2.6 Mapping of the CHILDREN Clause .............................. 164.2.7 Mapping of the ADDRESS-FORMAT Clause ........................ 164.2.8 Mapping of the DECODING Clause .............................. 164.2.9 Mapping of the REFERENCE Clause ............................. 174.2.10 Evaluating a Protocol-Identifier INDEX ..................... 175 Protocol Identifier Macros ...................................... 185.1 Base Identifier Encoding ...................................... 185.1.1 Protocol Identifier Functions ............................... 195.1.1.1 Function 0: No-op ......................................... 195.1.1.2 Function 1: Protocol Wildcard Function .................... 195.2 Base Layer Protocol Identifiers ............................... 205.2.1 Ether2 Encapsulation ........................................ 21Bierman & Iddon Standards Track [Page 1]RFC 2074 RMON Protocol Identifiers January 19975.2.2 LLC Encapsulation ........................................... 225.2.3 SNAP over LLC (OUI=000) Encapsulation ....................... 235.2.4 SNAP over LLC (OUI != 000) Encapsulation .................... 245.2.5 IANA Assigned Protocols ..................................... 255.2.5.1 IANA Assigned Protocol Identifiers ........................ 275.3 L3: Children of Base Protocol Identifiers ..................... 275.3.1 IP .......................................................... 285.3.2 IPX ......................................................... 295.3.3 ARP ......................................................... 305.3.4 IDP ......................................................... 305.3.5 AppleTalk ARP ............................................... 315.3.6 AppleTalk ................................................... 315.4 L4: Children of L3 Protocols .................................. 325.4.1 ICMP ........................................................ 325.4.2 TCP ......................................................... 325.4.3 UDP ......................................................... 335.5 L5: Application Layer Protocols ............................... 335.5.1 FTP ......................................................... 335.5.1.1 FTP-DATA .................................................. 335.5.1.2 FTP Control ............................................... 345.5.2 Telnet ...................................................... 345.5.3 SMTP ........................................................ 345.5.4 DNS ......................................................... 355.5.5 BOOTP ....................................................... 355.5.5.1 Bootstrap Server Protocol ................................. 355.5.5.2 Bootstrap Client Protocol ................................. 355.5.6 TFTP ........................................................ 365.5.7 HTTP ........................................................ 365.5.8 POP3 ........................................................ 365.5.9 SUNRPC ...................................................... 375.5.10 NFS ........................................................ 385.5.11 SNMP ....................................................... 385.5.11.1 SNMP Request/Response .................................... 385.5.11.2 SNMP Trap ................................................ 396 Acknowledgements ................................................ 397 References ...................................................... 408 Security Considerations ......................................... 439 Authors' Addresses .............................................. 43Bierman & Iddon Standards Track [Page 2]RFC 2074 RMON Protocol Identifiers January 19971. Introduction This memo defines an experimental portion of the Management Information Base (MIB) for use with network management protocols in the Internet community. In particular, it describes the algorithms required to identify different protocol encapsulations managed with the Remote Network Monitoring MIB Version 2 [RMON2]. Although related to the original Remote Network Monitoring MIB [RFC1757], this document refers only to objects found in the RMON-2 MIB.2. The SNMP Network Management Framework The SNMP Network Management Framework presently consists of three major components. They are:o the SMI, described in RFC 1902 [RFC1902], - the mechanisms used for describing and naming objects for the purpose of management.o the MIB-II, STD 17, RFC 1213 [RFC1213], - the core set of managed objects for the Internet suite of protocols.o the protocol, STD 15, RFC 1157 [RFC1157] and/or RFC 1905 [RFC1905], - the protocol for accessing managed information. Textual conventions are defined in RFC 1903 [RFC1903], and conformance statements are defined in RFC 1904 [RFC1904]. The Framework permits new objects to be defined for the purpose of experimentation and evaluation.2.1. Object Definitions Managed objects are accessed via a virtual information store, termed the Management Information Base or MIB. Objects in the MIB are defined using the subset of Abstract Syntax Notation One (ASN.1) defined in the SMI. In particular, each object type is named by an OBJECT IDENTIFIER, an administratively assigned name. The object type together with an object instance serves to uniquely identify a specific instantiation of the object. For human convenience, we often use a textual string, termed the descriptor, to refer to the object type.3. Overview The RMON-2 MIB [RMON2] uses hierarchically formatted OCTET STRINGs to globally identify individual protocol encapsulations in the protocolDirTable.Bierman & Iddon Standards Track [Page 3]RFC 2074 RMON Protocol Identifiers January 1997 This guide contains algorithms and examples of protocol identifier encapsulations for use as INDEX values in the protocolDirTable. This document is not intended to be an authoritative reference on the protocols described herein. Refer to the Official Internet Standards document [RFC1800], the Assigned Numbers document [RFC1700], or other appropriate RFCs, IEEE documents, etc. for complete and authoritative protocol information.3.1. Terms Several terms are used throughout this document, as well as in the RMON-2 MIB [RMON2], that should be introduced:layer-identifier: An octet string fragment representing a particular protocol encapsulation layer. A string fragment identifying a particular protocol encapsulation layer. This string is exactly four octets, (except for the 'vsnap' base-layer identifier, which is exactly eight octets) encoded in network byte order. A particular protocol encapsulation can be identified by starting with a base layer encapsulation (see the 'Base Protocol Identifiers' section for more detail), and following the encoding rules specified in the CHILDREN clause and assignment section for that layer. Then repeat for each identified layer in the encapsulation. (See section 4.2.10 'Evaluating a Protocol-Identifier INDEX' for more detail.)protocol: A particular protocol layer, as specified by encoding rules in this document. Usually refers to a single layer in a given encapsulation. Note that this term is sometimes used in the RMON-2 MIB [RMON2] to name a fully-specified protocol-identifier string. In such a case, the protocol-identifier string is named for its upper-most layer. A named protocol may also refer to any encapsulation of that protocol.protocol-identifier string: An octet string representing a particular protocol encapsulation, as specified by encoding rules in this document. This string is identified in the RMON-2 MIB [RMON2] as the protocolDirID object. A protocol-identifier string is composed of one or more layer- identifiers.Bierman & Iddon Standards Track [Page 4]RFC 2074 RMON Protocol Identifiers January 1997protocol-identifier macro: A group of formatted text describing a particular protocol layer, as used within the RMON-2 MIB [RMON2]. The macro serves several purposes: - Name the protocol for use within the RMON-2 MIB [RMON2]. - Describe how the protocol is encoded into an octet string. - Describe how child protocols are identified (if applicable), and encoded into an octet string. - Describe which protocolDirParameters are allowed for the protocol. - Describe how the associated protocolDirType object is encoded for the protocol. - Provide reference(s) to authoritative documentation for the protocol.protocol-variant-identifier macro: A group of formatted text describing a particular protocol layer, as used within the RMON-2 MIB [RMON2]. This protocol is a variant of a well known encapsulation that may be present in the protocolDirTable. This macro is used to document the IANA assigned protocols, which are needed to identify protocols which cannot be practically identified by examination of 'appropriate network traffic' (e.g. the packets which carry them). All other protocols (which can be identified by examination of appropriate network traffic) should be documented using the protocol-identifier macro. A protocol-variant-identifier is documented using the protocol-variant version of the protocol-identifier macro.protocol-parameter: A single octet, corresponding to a specific layer-identifier in the protocol-identifier. This octet is a bit-mask indicating special functions or capabilities that this agent is providing for the corresponding protocol.protocol-parameters string: An octet string, which contains one protocol-parameter for each layer-identifier in the protocol-identifier. See the section 'Mapping of the PARAMETERS Clause' for more detail. This string is identified in the RMON-2 MIB [RMON2] as the protocolDirParameters object.protocolDirTable INDEX: A protocol-identifier and protocol-parameters octet string pair that have been converted to an INDEX value, according to the encoding rules in in section 7.7 of RFC 1902 [RFC1902].Bierman & Iddon Standards Track [Page 5]RFC 2074 RMON Protocol Identifiers January 1997pseudo-protocol: A convention or algorithm used only within this document for the purpose of encoding protocol-identifier strings.3.2. Relationship to the Remote Network Monitoring MIB This document is intended to identify possible string values for the OCTET STRING objects protocolDirID and protocolDirParameters. Tables in the new Protocol Distribution, Host, and Matrix groups use a local INTEGER INDEX, in order to remain unaffected by changes in this document. Only the protocolDirTable uses the strings (protocolDirID and protocolDirParameters) described in this document. This document is not intended to limit the protocols that may be identified for counting in the RMON-2 MIB. Many protocol encapsulations, not explicitly identified in this document, may be present in an actual implementation of the protocolDirTable. Also, implementations of the protocolDirTable may not include all the protocols identified in the example section below. This document is intentionally separated from the MIB objects to allow frequent updates to this document without any republication of MIB objects. Protocol Identifier macros submitted from the RMON working group and community at large (to the RMONMIB WG mailing list at 'rmonmib@cisco.com') will be collected and added to this document. Macros submissions will be collected in the IANA's MIB files under the directory "ftp://ftp.isi.edu/mib/rmonmib/rmon2_pi_macros/" and in the RMONMIB working group mailing list message archive file "ftp://ftp.cisco.com/ftp/rmonmib/rmonmib". This document does not discuss auto-discovery and auto-population of the protocolDirTable. This functionality is not explicitly defined by the RMON standard. An agent should populate the directory with 'interesting' protocols--depending on the intended applications.3.3. Relationship to the Other MIBs The RMON Protocol Identifiers document is intended for use with the protocolDirTable within the RMON MIB. It is not relevant to any other MIB, or intended for use with any other MIB.Bierman & Iddon Standards Track [Page 6]RFC 2074 RMON Protocol Identifiers January 19974. Protocol Identifier Encoding The protocolDirTable is indexed by two OCTET STRINGs, protocolDirID and protocolDirParameters. To encode the table index, each variable- length string is converted to an OBJECT IDENTIFIER fragment, according to the encoding rules in section 7.7 of RFC 1902 [RFC1902]. Then the index fragments are simply concatenated. (Refer to figures 1a - 1d below for more detail.) The first OCTET STRING (protocolDirID) is composed of one or more 4- octet "layer-identifiers". The entire string uniquely identifies a particular protocol encapsulation tree. The second OCTET STRING, (protocolDirParameters) which contains a corresponding number of 1- octet protocol-specific parameters, one for each 4-octet layer- identifier in the first string. A protocol layer is normally identified by a single 32-bit value. Each layer-identifier is encoded in the ProtocolDirID OCTET STRING INDEX as four sub-components [ a.b.c.d ], where 'a' - 'd' represent each byte of the 32-bit value in network byte order. If a particular protocol layer cannot be encoded into 32 bits, (except for the 'vsnap' base layer) then it must be defined as a 'ianaAssigned'
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -