RFC 1283
SNMP over OSI
SNMP over OSI π
- Network Working Group π
- RFC: 1283
- Author: M. Rose, Dover Beach Consulting, Inc. π§
- Category: Experimental Protocol π₯
- Date: December 1991 π
- Obsoletes: RFC 1161 π
Status of This Memo
okay so this memo defines an Experimental Protocol for the Internet community π¦ which means it's a try-it-out kind of thing. Discussion and suggestions for improvement are requested, so bring your ideas π«Ά For the standardization state and status of this protocol, check the current edition of the "IAB Official Protocol Standards" π Distribution of this memo is unlimited π
Table of Contents π
1. Background ............................................ 1
1.1 A Digression on User Interfaces ...................... 2
1.1.1 Addressing Conventions for UDP-based service ....... 3
1.2 A Digression of Layering ............................. 3
2. Mapping onto CLTS ..................................... 3
2.1 Addressing Conventions ............................... 4
2.1.1 Conventions for CLNP-based service ................. 4
3. Mapping onto COTS ..................................... 4
3.1 Addressing Conventions ............................... 5
3.1.1 Conventions for TP4/CLNP-based service ............. 5
3.1.2 Conventions for TP0/X.25-based service ............. 6
4. Trap PDU .............................................. 6
5. Acknowledgements ...................................... 7
6. References ............................................ 7
7. Security Considerations................................ 8
8. Author's Address....................................... 8
1. Background β¨
the Simple Network Management Protocol (SNMP) as defined in [1] is now a real, integral part of the network management framework for TCP/IP-based internets πΈ Together with its companion standards, which define the Structure of Management Information (SMI) [2] and the Management Information Base (MIB) [3], SNMP has gotten massive deployment across many operational networks running the Internet suite of protocols π
it shouldn't be surprising that lots of these sites might pick up OSI capabilities and want to leverage their investment in SNMP technology to manage those OSI components π This memo handles that by defining a framework for running SNMP in an environment that supports the OSI transport services π
In OSI there are two such services: a connection-oriented transport service (COTS) as defined in [4], and a connectionless-mode transport service (CLTS) as defined in [5]. Now, the main deployment of SNMP is over the connectionless-mode transport service provided by the Internet suite of protocols (i.e., the User Datagram Protocol or UDP [6]). But a design goal of SNMP was to be able to use either a CO-mode or CL-mode transport service β¨ So this memo describes mappings from SNMP onto both the COTS and the CLTS π§
1.1. A Digression on User Interfaces π
it's likely that user-interfaces to SNMP will get developed that support multiple transport backings π In an environment like that, it's often important to keep a consistent addressing scheme for users. Since the mappings in this memo are onto the OSI transport services, use of the textual scheme described in [7] is recommended. That scheme describes a string encoding for OSI presentation addresses π¦ The syntax defined in [7] is equally applicable towards transport addresses too π«Ά
in this context, a string encoding usually looks like this:
[<t-selector>/]<n-provider><n-address>[+<n-info>]
where:
<t-selector>is usually either an ASCII string enclosed in double-quotes (e.g.,"snmp"), or a hexadecimal number (e.g.,'736e6d70'H);<n-provider>is one of several well-known providers of a connectivity-service, one of:"Internet="for a transport-service from the Internet suite of protocols,"Int-X25="for the 1980 CCITT X.25 recommendation, or"NS+"for the OSI network service;<n-address>is an address in a format specific to the<n-provider>; and,<n-info>is any additional addressing information in a format specific to the<n-provider>.
It is not the purpose of this memo to give an exhaustive description of string encodings like these π Readers should consult [7] for detailed information on the syntax. However, this memo recommends that, as an implementation option, user-interfaces to SNMP that support multiple transport backings SHOULD implement this syntax π₯
1.1.1. Addressing Conventions for UDP-based service π¦
in the context of a UDP-based transport backing, addresses would be encoded as:
Internet=<host>+161+2
which says the transport service is from the Internet suite of protocols, residing at <host>, on port 161, using the UDP (2) π The token <host> may be either a domain name or a dotted-quad, e.g., both
Internet=cheetah.nyser.net+161+2
and
Internet=192.52.180.1+161+2
are both valid β¨ Note, however, that if the domain name "cheetah.nyser.net" maps to multiple IP addresses, then this implies multiple transport addresses π The number of addresses examined by the application (and the order of examination) are specific to each application π§
Of course, this memo does not require that other interface schemes not be used π Clearly, using a simple hostname is preferable to the string encoding above. But for the sake of uniformity, for those user-interfaces to SNMP that support multiple transport backings, it is strongly RECOMMENDED that the syntax in [7] be adopted, and even the mapping for UDP-based transport be valid π
1.2. A Digression of Layering πΈ
Okay, so although other frameworks view network management as an application, extensive experience with SNMP suggests otherwise π Basically, network management is a function unlike any other user of a transport service π The citation [8] develops this argument in full. As such, it is inappropriate to map SNMP onto the OSI application layer π Instead, it gets mapped to OSI transport services, so it can build on the proven success of the Internet network management framework π«Ά
2. Mapping onto CLTS π¦
Mapping SNMP onto the CLTS is straight-forward β¨ The elements of procedure are identical to those used with UDP, with one exception: a slightly different Trap PDU is used. Also, the CLTS and the service offered by UDP both transmit packets of information which contain full addressing information. So mapping SNMP onto the CLTS, a "transport address" in the context of [1], is simply a transport-selector and network address π
2.1. Addressing Conventions π
Unlike the Internet suite of protocols, OSI does not use well-known ports π Instead, demultiplexing happens on the basis of "selectors", which are opaque strings of octets that only have meaning at the destination π§ To foster interoperable implementations of SNMP over the CLTS, it is necessary to define a selector for this purpose π
2.1.1. Conventions for CLNP-based service π
When the CLTS is used to provide the transport backing for SNMP, demultiplexing will occur on the basis of transport selector. The transport selector used shall be the four ASCII characters
snmp
So using the string encoding of [7], such addresses may be textual, described as:
"snmp"/NS+<nsap>
where:
<nsap>is a hex string defining the nsap, e.g.,
"snmp"/NS+4900590800200038bafe00
Similarly, SNMP traps are, by convention, sent to a manager listening on the transport selector
snmp-trap
which consists of nine ASCII characters π
3. Mapping onto COTS π
Mapping SNMP onto the COTS is more difficult, because SNMP does not specifically require an existing connection π So the mapping consists of establishing a transport connection, sending one or more SNMP messages on that connection, and then releasing the transport connection. Also, a slightly different Trap PDU is used β¨
Consistent with the SNMP model, the initiator of a connection should not require that responses to a request be returned on that connection π¦ However, if a responder to a connection sends SNMP messages on a connection, then these MUST be in response to requests received on that connection π₯
Ideally, the transport connection SHOULD be released by the initiator. However, note that the responder may release the connection due to resource limitations π Further note that the amount of time a connection remains established is implementation-specific. Implementors should take care to choose an appropriate dynamic algorithm π
Also consistent with the SNMP model, the initiator should not associate any reliability characteristics with the use of a connection π«Ά Issues such as retransmission of SNMP messages, etc., always remain with the SNMP application, not with the transport service π
3.1. Addressing Conventions π
Unlike the Internet suite of protocols, OSI does not use well-known ports π Instead, demultiplexing happens on the basis of "selectors", which are opaque strings of octets that only have meaning at the destination π§ To foster interoperable implementations of SNMP over the COTS, it is necessary to define a selector for this purpose. However, to stay consistent with the various connectivity-services, different conventions, based on the actual underlying service, will be used π
3.1.1. Conventions for TP4/CLNP-based service π
When a COTS based on the TP4/CLNP is used to provide the transport backing for SNMP, demultiplexing will occur on the basis of transport selector. The transport selector used shall be the four ASCII characters
snmp
So using the string encoding of [7], such addresses may be textual, described as:
"snmp"/NS+<nsap>
where:
<nsap>is a hex string defining the nsap, e.g.,
"snmp"/NS+4900590800200038bafe00
Similarly, SNMP traps are, by convention, sent to a manager listening on the transport selector
snmp-trap
which consists of nine ASCII characters π
3.1.2. Conventions for TP0/X.25-based service π§
When a COTS based on the TP0/X.25 is used to provide the transport backing for SNMP, demultiplexing will occur on the basis of X.25 protocol-ID. The protocol-ID used shall be the four octets
03018200
This is the X.25 protocol-ID assigned for local management purposes. So using the string encoding of [7], such addresses may be textually described as:
Int-X25=<dte>+PID+03018200
where:
<dte>is the X.121 DTE, e.g.,
Int-X25=23421920030013+PID+03018200
Similarly, SNMP traps are, by convention, sent to a manager listening on the protocol-ID
03019000
This is an X.25 protocol-ID assigned for local purposes πΈ
4. Trap PDU β¨
okay so the Trap-PDU from [1] was made for traps coming off IP networks π, which means traps from OSI networks need a slightly different PDU. it's basically a glow-up π here's the whole module:
RFC1283 DEFINTIONS ::= BEGIN
IMPORTS
TimeTicks
FROM RFC1155-SMI -- [2] --
VarBindList
FROM RFC1157-SNMP -- [1] --
ClnpAddress
FROM CLNS-MIB -- [9] --;
Trap-PDU ::=
[4]
IMPLICT SEQUENCE {
enterprise -- type of object generating
OBJECT IDENTIFIER, -- trap, see sysObjectID
agent-addr -- address of object generating
ClnpAddress, -- trap
generic-trap -- generic trap type
INTEGER {
coldStart(0),
warmStart(1),
linkDown(2),
linkUp(3),
authenticationFailure(4),
egpNeighborLoss(5),
enterpriseSpecific(6)
},
specific-trap -- specific code, present even
INTEGER, -- if generic-trap is not
-- enterpriseSpecific
time-stamp -- time elapsed between the last
TimeTicks, -- (re)initialization of the
-- network entity and the
-- generation of the trap
variable-bindings -- "interesting" information
VarBindList
}
END
the enterprise field is the object identifier for whatever is generating the trap π¦, and agent-addr is its address. generic-trap has seven options from coldStart(0) all the way to enterpriseSpecific(6) β¨. specific-trap shows up even when generic-trap isn't enterpriseSpecific, which is so thoughtful of it π₯Ή. then there's time-stamp (how long since the last (re)initialization, in TimeTicks β±οΈ) and variable-bindings for all the "interesting" info π
5. Acknowledgements π«Ά
the predecessor of this document (RFC 1161) was made by the SNMP Working Group π, and then the editor updated it to reflect what people actually learned from operating it after the original came out πΈ
6. References π
- [1] Case, J., Fedor, M., Schoffstall, M., and J. Davin, "A Simple Network Management Protocol (SNMP)", RFC 1157, SNMP Research, Performance Systems International, Performance Systems International, and MIT Laboratory for Computer Science, May 1990.
- [2] Rose M., and K. McCloghrie, "Structure and Identification of Management Information for TCP/IP-based internets", RFC 1155, Performance Systems International, Hughes LAN Systems, May 1990.
- [3] McCloghrie K., and M. Rose, Editors, "Management Information Base for Network Management of TCP/IP-based internets", RFC 1213, Hughes LAN Systems, Performance Systems International, March 1991.
- [4] Information Processing Systems - Open Systems Interconnection, "Transport Service Definition", International Organization for Standardization, International Standard 8072, June 1986.
- [5] Information Processing Systems - Open Systems Interconnection, "Transport Service Definition - Addendum 1: Connectionless-mode Transmission", International Organization for Standardization, International Standard 8072/AD 1, December 1986.
- [6] Postel, J., "User Datagram Protocol", RFC 768, USC/Information Sciences Institute, November 1980.
- [7] Kille, S., "A String Encoding of Presentation Address", RFC 1278, Department of Computer Science, University College London, November 1991.
- [8] Case, J., Davin, J., Fedor, M., and M. Schoffstall, "Network Management and the Design of SNMP", ConneXions (ISSN 0894-5926), Volume 3, Number 3, March 1989.
- [9] Satz, G., "CLNS MIB for use with CLNP and ES-IS", RFC 1238, cisco Systems, June 1991.
7. Security Considerations π
okay, the big reveal: security issues are not discussed in this memo. π so if you're implementing this, you can't look here for the security tea, and that's a whole mood you should take seriously π
8. Author's Address π
Marshall T. Rose
Dover Beach Consulting, Inc.
420 Whisman Court
Mountain View, CA 94043-2112
Phone: (415) 968-1052
Email: mrose@dbc.mtview.ca.us
X.500: mrose, dbc, us
π¦ where this page comes from
- ietf: rfc1283 1991-12
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms