RFC 2571

An Architecture for Describing SNMP Management Frameworks

๐Ÿ“… published April 1999, from ietf

RFC 2571 ๐Ÿฆ‹ An Architecture for Describing SNMP Management Frameworks (Part 1 of 12)

okay bestie, this is RFC 2571 ๐Ÿ’… It's from the Network Working Group and it's a Standards Track doc, dated April 1999. The authors are D. Harrington (Cabletron Systems, Inc.), R. Presuhn (BMC Software, Inc.), and B. Wijnen (IBM T. J. Watson Research). It obsoletes RFC 2271, so if you're reading 2271 you're reading something outdated ๐Ÿ™ˆ It's giving "the new and improved version" energy โœจ


Status of This Memo ๐Ÿ“œ

okay so this doc is an Internet standards track protocol for the Internet community ๐ŸŒˆ It's asking for discussion and suggestions for improvements, so bring your ideas! For the current standardization state and status, check the "Internet Official Protocol Standards" (STD 1), which is the official source. Distribution of this memo is unlimited, so share it with your whole group chat ๐Ÿซถ

Copyright (C) The Internet Society (1999). All Rights Reserved. ๐Ÿ”’

Abstract ๐Ÿฆ‹

so the big idea here is an architecture for describing SNMP Management Frameworks โœจ The design is modular, which means SNMP's protocol standards can keep evolving over time without breaking everything. The main pieces are an SNMP engine that holds a Message Processing Subsystem, a Security Subsystem, and an Access Control Subsystem. On top of that you can have multiple SNMP applications, each doing its own specific job with management data ๐Ÿ’–

Table of Contents ๐ŸŒธ

1. Introduction ................................................    4
1.1. Overview ..................................................    4
1.2. SNMP ......................................................    4
1.3. Goals of this Architecture ................................    5
1.4. Security Requirements of this Architecture ................    6
1.5. Design Decisions ..........................................    7
2. Documentation Overview ......................................    9
2.1. Document Roadmap ..........................................   10
2.2. Applicability Statement ...................................   10
2.3. Coexistence and Transition ................................   10
2.4. Transport Mappings ........................................   11
2.5. Message Processing ........................................   11
2.6. Security ..................................................   11
2.7. Access Control ............................................   12
2.8. Protocol Operations .......................................   12
2.9. Applications ..............................................   13
2.10. Structure of Management Information ......................   14
2.11. Textual Conventions ......................................   14
2.12. Conformance Statements ...................................   14
2.13. Management Information Base Modules ......................   14
2.13.1. SNMP Instrumentation MIBs ..............................   14
2.14. SNMP Framework Documents .................................   14
3. Elements of the Architecture ................................   15
3.1. The Naming of Entities ....................................   16
3.1.1. SNMP engine .............................................   17
3.1.1.1. snmpEngineID ..........................................   17
3.1.1.2. Dispatcher ............................................   17
3.1.1.3. Message Processing Subsystem ..........................   18
3.1.1.3.1. Message Processing Model ............................   18
3.1.1.4. Security Subsystem ....................................   18
3.1.1.4.1. Security Model ......................................   19
3.1.1.4.2. Security Protocol ...................................   19
3.1.2. Access Control Subsystem ................................   19
3.1.2.1. Access Control Model ..................................   20
3.1.3. Applications ............................................   20
3.1.3.1. SNMP Manager ..........................................   20
3.1.3.2. SNMP Agent ............................................   22
3.2. The Naming of Identities ..................................   23
3.2.1. Principal ...............................................   23
3.2.2. securityName ............................................   23
3.2.3. Model-dependent security ID .............................   24
3.3. The Naming of Management Information ......................   25
3.3.1. An SNMP Context .........................................   26
3.3.2. contextEngineID .........................................   26
3.3.3. contextName .............................................   27
3.3.4. scopedPDU ...............................................   27
3.4. Other Constructs ..........................................   27
3.4.1. maxSizeResponseScopedPDU ................................   27
3.4.2. Local Configuration Datastore ...........................   27
3.4.3. securityLevel ...........................................   27
4. Abstract Service Interfaces .................................   28
4.1. Dispatcher Primitives .....................................   28
4.1.1. Generate Outgoing Request or Notification ...............   28
4.1.2. Process Incoming Request or Notification PDU ............   29
4.1.3. Generate Outgoing Response ..............................   29
4.1.4. Process Incoming Response PDU ...........................   29
4.1.5. Registering Responsibility for Handling SNMP PDUs .......   30
4.2. Message Processing Subsystem Primitives ...................   30
4.2.1. Prepare Outgoing SNMP Request or Notification Message ...   31
4.2.2. Prepare an Outgoing SNMP Response Message ...............   31
4.2.3. Prepare Data Elements from an Incoming SNMP Message .....   32
4.3. Access Control Subsystem Primitives .......................   32
4.4. Security Subsystem Primitives .............................   33
4.4.1. Generate a Request or Notification Message ..............   33
4.4.2. Process Incoming Message ................................   33
4.4.3. Generate a Response Message .............................   34
4.5. Common Primitives .........................................   34
4.5.1. Release State Reference Information .....................   35
4.6. Scenario Diagrams .........................................   36
4.6.1. Command Generator or Notification Originator ............   36
4.6.2. Scenario Diagram for a Command Responder Application ....   37
5. Managed Object Definitions for SNMP Management Frameworks ...   38
6. IANA Considerations .........................................   48
6.1. Security Models ...........................................   48
6.2. Message Processing Models .................................   48
6.3. SnmpEngineID Formats ......................................   49
7. Intellectual Property .......................................   49
8. Acknowledgements ............................................   49
9. Security Considerations .....................................   51
10. References .................................................   52
11. Editor's Addresses .........................................   54
A. Guidelines for Model Designers ..............................   55
A.1. Security Model Design Requirements ........................   55
A.1.1. Threats .................................................   55
A.1.2. Security Processing .....................................   56
A.1.3. Validate the security-stamp in a received message .......   56
A.1.4. Security MIBs ...........................................   57
A.1.5. Cached Security Data ....................................   57
A.2. Message Processing Model Design Requirements ..............   57
A.2.1. Receiving an SNMP Message from the Network ..............   58
A.2.2. Sending an SNMP Message to the Network ..................   58
A.3. Application Design Requirements ...........................   59
A.3.1. Applications that Initiate Messages .....................   59
A.3.2. Applications that Receive Responses .....................   59
A.3.3. Applications that Receive Asynchronous Messages .........   60
A.3.4. Applications that Send Responses ........................   60
A.4. Access Control Model Design Requirements ..................   60
B. Full Copyright Statement ....................................   62

1. Introduction ๐ŸŒŸ

1.1. Overview ๐Ÿ”

okay so this section is the vibe check for the whole doc ๐Ÿ’… It defines a vocabulary for describing SNMP Management Frameworks, plus an architecture that covers the major parts of those frameworks.

fair warning: this doc is NOT a general intro to SNMP ๐Ÿ™ˆ There are other documents and books that do that way better. It also doesn't give SNMP's history, which you can also find in books and other docs. no history lesson, we're going straight to the good stuff โœจ

here's the roadmap ๐Ÿ—บ๏ธ

  • Section 1 covers the purpose, goals, and design decisions of this architecture.
  • Section 2 covers the different types of documents that define (parts of) SNMP Frameworks, and how they fit into this architecture. It also gives a minimal road map to the docs that have already defined SNMP frameworks.
  • Section 3 is the vocabulary of this architecture and all its pieces. This one is super important, because you need it to understand the rest of the doc and any other doc written to fit this architecture ๐Ÿงš
  • Section 4 describes the primitives used for the abstract service interfaces between the various subsystems, models, and applications here ๐Ÿฆ‹
  • Section 5 defines a collection of managed objects that instrument SNMP entities in this architecture ๐Ÿ’œ
  • Sections 6, 7, 8, 9, 10 and 11 are administrative in nature. Sorry, not as glamorous, but they're important ๐Ÿซถ
  • Appendix A has guidelines for designers of Models that are expected to fit within this architecture ๐Ÿ‘‘

the key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119]. these are the capitalized requirement words, so read them with the exact force [RFC2119] gives them ๐Ÿ”ฅ

1.2. SNMP ๐ŸŽ€

okay so an SNMP management system has three main pieces, bestie ๐Ÿซถ

  • Lots of nodes (potentially many!), each with an SNMP entity that has command responder and notification originator applications. These get access to the management instrumentation, which people traditionally call agents ๐Ÿค–
  • At least one SNMP entity with command generator and/or notification receiver applications. This is traditionally called a manager ๐Ÿ‘‘
  • A management protocol that carries management information between all those SNMP entities ๐Ÿ“ฌ

The SNMP entities running the command generator and notification receiver applications are the ones that monitor and control managed elements ๐Ÿ‘€ Managed elements are things like hosts, routers, terminal servers, and so on. You keep an eye on them and steer them by getting at their management information ๐Ÿ’…

This document is here to define an architecture that can grow and still deliver good management across all kinds of setups and environments ๐ŸŒˆ The architecture was built to fit implementations of all of these:

  • minimal SNMP entities with command responder and/or notification originator applications (traditionally called SNMP agents) ๐ŸŒธ
  • SNMP entities with proxy forwarder applications (traditionally called SNMP proxy agents) ๐Ÿฆ‹
  • command line driven SNMP entities with command generator and/or notification receiver applications (traditionally called SNMP command line managers) ๐Ÿ’ป
  • SNMP entities with command generator and/or notification receiver, plus command responder and/or notification originator applications (traditionally called SNMP mid-level managers or dual-role entities) ๐Ÿงš
  • SNMP entities with command generator and/or notification receiver and possibly other types of applications, for managing a potentially very large number of managed nodes (traditionally called (network) management stations) ๐Ÿ‘‘โœจ

1.3. Goals of this Architecture ๐ŸŽฏ

this architecture had a whole list of goals it was chasing ๐Ÿ˜ค

  • Use existing materials as much as possible. It's heavily based on earlier work, informally known as SNMPv2u and SNMPv2*, which itself came from SNMPv2p. Why reinvent the wheel when the wheel is already iconic? ๐Ÿ›ž
  • Address the need for secure SET support. This is considered the most important deficiency in SNMPv1 and SNMPv2c, so it's a huge deal ๐Ÿ”’
  • Make it possible to move portions of the architecture forward in the standards track, even if consensus hasn't been reached on all the pieces yet. Nobody has to wait for everyone to agree on everything ๐Ÿƒโ€โ™€๏ธ
  • Define an architecture that allows for longevity of the SNMP Frameworks that have been and will be defined. Built to last, no cap ๐Ÿ’Ž
  • Keep SNMP as simple as possible. Simple is iconic ๐Ÿ“
  • Make it relatively inexpensive to deploy a minimal conforming implementation. Small setups shouldn't cost a fortune to join ๐Ÿ’ธ
  • Make it possible to upgrade portions of SNMP as new approaches become available, without disrupting an entire SNMP framework. Swap a piece, keep the whole thing running ๐Ÿ”ง
  • Make it possible to support features required in large networks, but make the expense of supporting a feature directly related to the support of that feature. You only pay for what you actually use, periodt ๐Ÿ’…

1.4. Security Requirements of this Architecture ๐Ÿ”

okay so a bunch of the classic threats to network protocols apply to the management problem too ๐Ÿ˜ฌ That means they'd apply to any Security Model used in an SNMP Management Framework. Other threats don't really apply here at all. This section goes through the principal threats, the secondary threats, and the threats that matter less ๐Ÿซฃ

The principal threats that any Security Model used within this architecture SHOULD provide protection against are:

  • Modification of Information The modification threat is the danger that some unauthorized entity alters in-transit SNMP messages that were generated on behalf of an authorized principal, in a way that causes unauthorized management operations. This includes falsifying the value of an object. Major yikes ๐Ÿ˜ฑ
  • Masquerade The masquerade threat is the danger that management operations not authorized for some principal get attempted by pretending to be another principal who does have the right authorizations. Identity theft, but make it networking ๐ŸŽญ

The secondary threats that any Security Model used within this architecture SHOULD provide protection against are:

  • Message Stream Modification The SNMP protocol is typically based on a connectionless transport service, which may run over any subnetwork service. Messages can get re-ordered, delayed, or replayed through the normal behavior of many of those subnetwork services. The message stream modification threat is the danger that messages get maliciously re-ordered, delayed, or replayed to a greater extent than normal subnetwork behavior could cause, in order to pull off unauthorized management operations ๐Ÿ•ต๏ธโ€โ™€๏ธ
  • Disclosure The disclosure threat is the danger of eavesdropping on the exchanges between SNMP engines. Protecting against this may be required as a matter of local policy ๐Ÿ‘€

There are at least two threats that a Security Model within this architecture doesn't need to protect against, because they're considered less important in this context ๐Ÿ™ƒ

  • Denial of Service A Security Model doesn't need to try to address the broad range of attacks that deny service on behalf of authorized users. Honestly, these denial-of-service attacks often look just like the network failures any viable management protocol has to deal with as a matter of course ๐ŸŒง๏ธ
  • Traffic Analysis A Security Model doesn't need to try to address traffic analysis attacks. Lots of traffic patterns are predictable. Entities may be managed on a regular basis by a fairly small number of management stations, so protecting against traffic analysis wouldn't buy much ๐Ÿ“Š

1.5. Design Decisions ๐Ÿง 

a bunch of design decisions got made to support the architecture's goals and its security requirements ๐Ÿ’…

  • Architecture An architecture should be defined that identifies the conceptual boundaries between the documents. Subsystems should be defined to describe the abstract services provided by specific portions of an SNMP framework. Abstract service interfaces, described by service primitives, define the abstract boundaries between documents, and also the abstract services that the conceptual subsystems of an SNMP framework provide ๐Ÿ—บ๏ธ
  • Self-contained Documents The elements of procedure plus the MIB objects needed for processing a specific portion of an SNMP framework should be defined in the same document. As much as possible, they should not be referenced in other documents. This lets pieces be designed and documented as independent, self-contained parts, which fits the general SNMP MIB module approach ๐Ÿงฉ When parts of SNMP change over time, the documents describing the other parts aren't directly impacted. This modularity means that Security Models, authentication and privacy mechanisms, and message formats can be upgraded and supplemented whenever the need comes up. The self-contained documents can move along the standards track on different timelines โฐ

This modularity of specification is not meant to be read as imposing any specific requirements on implementation. Specs and code are different vibes ๐Ÿซถ

  • Threats The Security Models in the Security Subsystem SHOULD protect against the principal and secondary threats: modification of information, masquerade, message stream modification, and disclosure. They do not need to protect against denial of service or traffic analysis ๐Ÿ›ก๏ธ
  • Remote Configuration The Security and Access Control Subsystems add a whole new set of SNMP configuration parameters. The Security Subsystem also requires frequent changes of secrets at the various SNMP entities. To make this workable in a large operational environment, these SNMP parameters must be remotely configurable. Nobody wants to walk to every box with a USB stick ๐Ÿ™…โ€โ™€๏ธ
  • Controlled Complexity It's recognized that producers of simple managed devices want to keep the resources used by SNMP to a minimum. At the same time, there's a need for more complex configurations that can spend more resources on SNMP and therefore provide more functionality. The design tries to keep the competing requirements of these two environments in balance, and it lets the more complex environments logically extend the simple one ๐Ÿงšโœจ

2. Documentation Overview โœจ

okay so here's the whole family of docs that fit inside the SNMP Architecture ๐Ÿ“š it's giving organized chaos but make it make sense ๐Ÿ’…

+------------------------- Document Set ----------------------------+
|                                                                   |
| +----------+              +-----------------+  +----------------+ |
| | Document |              | Applicability * |  | Coexistence    | |
| | Roadmap  |              | Statement       |  | & Transition   | |
| +----------+              +-----------------+  +----------------+ |
|                                                                   |
| +---------------------------------------------------------------+ |
| | Message Handling                                              | |
| | +----------------+  +-----------------+  +-----------------+  | |
| | | Transport      |  | Message         |  | Security        |  | |
| | | Mappings       |  | Processing and  |  |                 |  | |
| | |                |  | Dispatcher      |  |                 |  | |
| | +----------------+  +-----------------+  +-----------------+  | |
| +---------------------------------------------------------------+ |
|                                                                   |
| +---------------------------------------------------------------+ |
| | PDU Handling                                                  | |
| | +----------------+  +-----------------+  +-----------------+  | |
| | | Protocol       |  | Applications    |  | Access          |  | |
| | | Operations     |  |                 |  | Control         |  | |
| | +----------------+  +-----------------+  +-----------------+  | |
| +---------------------------------------------------------------+ |
|                                                                   |
| +---------------------------------------------------------------+ |
| | Information Model                                             | |
| | +--------------+   +--------------+    +---------------+      | |
| | | Structure of |   | Textual      |    | Conformance   |      | |
| | | Management   |   | Conventions  |    | Statements    |      | |
| | | Information  |   |              |    |               |      | |
| | +--------------+   +--------------+    +---------------+      | |
| +---------------------------------------------------------------+ |
|                                                                   |
| +---------------------------------------------------------------+ |
| | MIB Modules written in various formats, e.g.:                 | |
| | +-------------+ +-------------+ +----------+ +----------+     | |
| | | Standard v1 | | Standard v1 | | Historic | | Draft v2 |     | |
| | | RFC 1157    | | RFC 1212    | | RFC 14xx | | RFC 19xx |     | |
| | | format      | | format      | | format   | | format   |     | |
| | +-------------+ +-------------+ +----------+ +----------+     | |
| +---------------------------------------------------------------+ |
|                                                                   |
+-------------------------------------------------------------------+

Those marked with an asterisk (*) are expected to be written in the future ๐Ÿ”ฎ Each of these documents may be replaced or supplemented. This Architecture document specifically describes how new documents fit into the set of documents in the area of Message and PDU handling ๐Ÿซถ

2.1. Document Roadmap

One or more documents may be written to describe how sets of documents taken together form specific Frameworks ๐Ÿ—บ๏ธ The configuration of document sets might change over time, so the "road map" should be maintained in a document separate from the standards documents themselves. no cap, this is smart ๐Ÿง 

An example of such a roadmap is "Introduction to Version 3 of the Internet-standard Network Management Framework" [RFC2570] โœจ

2.2. Applicability Statement

SNMP is used in networks that vary widely in size and complexity, by organizations that vary widely in their requirements of management ๐ŸŒˆ Some models will be designed to address specific problems of management, such as message security ๐Ÿ”

One or more documents may be written to describe the environments to which certain versions of SNMP or models within SNMP would be appropriately applied, and those to which a given model might be inappropriately applied ๐ŸŽ€

2.3. Coexistence and Transition

The purpose of an evolutionary architecture is to permit new models to replace or supplement existing models ๐Ÿฆ‹ The interactions between models could result in incompatibilities, security "holes", and other undesirable effects ๐Ÿ’€

The purpose of Coexistence documents is to detail recognized anomalies and to describe required and recommended behaviors for resolving the interactions between models within the architecture ๐Ÿงฉ

Coexistence documents may be prepared separately from model definition documents, to describe and resolve interaction anomalies between a model definition and one or more other model definitions ๐Ÿ’œ

Additionally, recommendations for transitions between models may also be described, either in a coexistence document or in a separate document ๐ŸŒธ

One such coexistence document is [SNMP-COEX], "Coexistence between Version 1, Version 2, and Version 3 of the Internet-standard Network Management Framework" โœจ

2.4. Transport Mappings

SNMP messages are sent over various transports ๐Ÿšš It is the purpose of Transport Mapping documents to define how the mapping between SNMP and the transport is done ๐Ÿ—บ๏ธ

2.5. Message Processing

A Message Processing Model document defines a message format, which is typically identified by a version field in an SNMP message header ๐Ÿ“จ The document may also define a MIB module for use in message processing and for instrumentation of version-specific interactions ๐Ÿ”ง

An SNMP engine includes one or more Message Processing Models, and thus may support sending and receiving multiple versions of SNMP messages ๐Ÿ“

2.6. Security

Some environments require secure protocol interactions ๐Ÿ”’ Security is normally applied at two different stages:

  • in the transmission/receipt of messages, and
  • in the processing of the contents of messages.

For purposes of this document, "security" refers to message-level security; "access control" refers to the security applied to protocol operations ๐Ÿ›ก๏ธ

Authentication, encryption, and timeliness checking are common functions of message level security ๐Ÿ”‘

A security document describes a Security Model, the threats against which the model protects, the goals of the Security Model, the protocols which it uses to meet those goals, and it may define a MIB module to describe the data used during processing, and to allow the remote configuration of message-level security parameters, such as keys ๐Ÿ—๏ธ this part is serious bestie, the keys matter so much ๐Ÿ˜ญ

An SNMP engine may support multiple Security Models concurrently ๐Ÿ‘‘

2.7. Access Control

During processing, it may be required to control access to managed objects for operations ๐Ÿšช

An Access Control Model defines mechanisms to determine whether access to a managed object should be allowed. An Access Control Model may define a MIB module used during processing and to allow the remote configuration of access control policies ๐Ÿ’…

2.8. Protocol Operations

SNMP messages encapsulate an SNMP Protocol Data Unit (PDU). SNMP PDUs define the operations performed by the receiving SNMP engine ๐Ÿ“ฆ It is the purpose of a Protocol Operations document to define the operations of the protocol with respect to the processing of the PDUs. Every PDU belongs to one or more of the PDU classes defined below ๐Ÿงพ

  1. Read Class: The Read Class contains protocol operations that retrieve management information ๐Ÿ“– For example, RFC 1905 defines the following protocol operations for the Read Class: GetRequest-PDU, GetNextRequest-PDU, and GetBulkRequest-PDU ๐Ÿ‘€
  2. Write Class: The Write Class contains protocol operations which attempt to modify management information โœ๏ธ For example, RFC 1905 defines the following protocol operation for the Write Class: SetRequest-PDU ๐Ÿ’ซ
  3. Response Class: The Response Class contains protocol operations which are sent in response to a previous request ๐Ÿ’Œ For example, RFC 1905 defines the following for the Response Class: Response-PDU, Report-PDU ๐Ÿซง
  4. Notification Class: The Notification Class contains protocol operations which send a notification to a notification receiver application ๐Ÿ”” For example, RFC 1905 defines the following operations for the Notification Class: Trapv2-PDU, InformRequest-PDU ๐Ÿ“ฃ
  5. Internal Class: The Internal Class contains protocol operations which are exchanged internally between SNMP engines ๐Ÿ  For example, RFC 1905 defines the following operations for the Internal Class: Report-PDU ๐Ÿ™ˆ

The preceding five classifications are based on the functional properties of a PDU ๐Ÿง  It is also useful to classify PDUs based on whether a response is expected ๐Ÿค”

  1. Confirmed Class: The Confirmed Class contains all protocol operations which cause the receiving SNMP engine to send back a response ๐Ÿ“ฌ For example, RFC 1905 defines the following operations for the Confirmed Class: GetRequest-PDU, GetNextRequest-PDU, GetBulkRequest-PDU, SetRequest-PDU, and InformRequest-PDU โœ…
  2. Unconfirmed Class: The Unconfirmed Class contains all protocol operations which are not acknowledged ๐Ÿ™…โ€โ™€๏ธ For example, RFC 1905 defines the following operations for the Unconfirmed Class: Report-PDU, Trapv2-PDU, and GetResponse-PDU ๐ŸŒ™

An application document defines which Protocol Operations are supported by the application ๐ŸŽ

2.9. Applications

An SNMP entity normally includes a number of applications ๐Ÿง Applications use the services of an SNMP engine to accomplish specific tasks. They coordinate the processing of management information operations, and may use SNMP messages to communicate with other SNMP entities ๐Ÿค

Applications documents describe the purpose of an application, the services required of the associated SNMP engine, and the protocol operations and informational model that the application uses to perform management operations ๐Ÿ“‹

An application document defines which set of documents are used to specifically define the structure of management information, textual conventions, conformance requirements, and operations supported by the application ๐ŸŒŸ

2.10. Structure of Management Information

Management information is viewed as a collection of managed objects, residing in a virtual information store, termed the Management Information Base (MIB) ๐Ÿ—„๏ธ Collections of related objects are defined in MIB modules ๐Ÿงฉ

It is the purpose of a Structure of Management Information document to establish the notation for defining objects, modules, and other elements of managed information ๐Ÿ“

2.11. Textual Conventions

When designing a MIB module, it is often useful to define new types similar to those defined in the SMI, but with more precise semantics, or which have special semantics associated with them ๐ŸŽจ These newly defined types are termed textual conventions, and may be defined in separate documents, or within a MIB module ๐Ÿฆ„

2.12. Conformance Statements ๐ŸŽ€

Okay so it's actually really useful to define the lowest acceptable level of implementation ๐Ÿ’…, and also to say how much of that an implementation actually reaches. That's the job of the Conformance Statements document, which is where the notation for all of this lives โœจ

2.13. Management Information Base Modules ๐ŸŒธ

MIB documents describe collections of managed objects that instrument some aspect of a managed node ๐Ÿงš

2.13.1. SNMP Instrumentation MIBs ๐Ÿฆ‹

An SNMP MIB document can define a collection of managed objects that instrument the SNMP protocol itself ๐Ÿค“. MIB modules can also live inside the documents that describe other parts of the SNMP architecture, like the Message Processing Models and Security Models docs, etc. The point is to instrument those Models, and to allow remote configuration of the Model ๐Ÿ™Œ

2.14. SNMP Framework Documents ๐Ÿ‘‘

This architecture is designed so portions of SNMP Frameworks can evolve in an orderly way ๐ŸŒˆ

Throughout the rest of this document, the term "subsystem" refers to an abstract and incomplete specification of a portion of a Framework, which then gets refined by a model specification โœจ

A "model" describes a specific design of a subsystem. It defines additional constraints and rules for conformance to the model ๐Ÿ’–. A model is detailed enough that you can actually implement the specification ๐Ÿซถ

An "implementation" is an instantiation of a subsystem, conforming to one or more specific models ๐Ÿ”ฅ

SNMP version 1 (SNMPv1) is the original Internet-standard Network Management Framework, as described in RFCs 1155, 1157, and 1212 ๐Ÿ’€

SNMP version 2 (SNMPv2) is the SNMPv2 Framework, derived from the SNMPv1 Framework. It's described in STD 58, RFCs 2578, 2579, 2580, and RFCs 1905-1907. SNMPv2 has no message definition ๐Ÿ™ˆ

The Community-based SNMP version 2 (SNMPv2c) is an experimental SNMP Framework that supplements the SNMPv2 Framework, as described in RFC 1901. It adds the SNMPv2c message format, which is similar to the SNMPv1 message format ๐Ÿ“

SNMP version 3 (SNMPv3) is an extensible SNMP Framework that supplements the SNMPv2 Framework by supporting the following:

  • a new SNMP message format,
  • Security for Messages,
  • Access Control, and
  • Remote configuration of SNMP parameters.

Other SNMP Frameworks, i.e., other configurations of implemented subsystems, are expected to also be consistent with this architecture ๐ŸŒท


3. Elements of the Architecture ๐Ÿ’œ

This section describes the various elements of the architecture and how they are named. There are three kinds of naming:

  1. the naming of entities,
  2. the naming of identities, and
  3. the naming of management information.

The architecture also defines some names for other constructs that get used in the documentation ๐Ÿ“š

3.1. The Naming of Entities ๐Ÿฆ‹

An SNMP entity is an implementation of this architecture. Each SNMP entity is made up of an SNMP engine plus one or more associated applications ๐Ÿ’…

The next figure shows the details of an SNMP entity and the components inside it ๐Ÿ‘€

+-------------------------------------------------------------------+
|  SNMP entity                                                      |
|                                                                   |
|  +-------------------------------------------------------------+  |
|  |  SNMP engine (identified by snmpEngineID)                   |  |
|  |                                                             |  |
|  |  +------------+ +------------+ +-----------+ +-----------+  |  |
|  |  |            | |            | |           | |           |  |  |
|  |  | Dispatcher | | Message    | | Security  | | Access    |  |  |
|  |  |            | | Processing | | Subsystem | | Control   |  |  |
|  |  |            | | Subsystem  | |           | | Subsystem |  |  |
|  |  |            | |            | |           | |           |  |  |
|  |  +------------+ +------------+ +-----------+ +-----------+  |  |
|  |                                                             |  |
|  +-------------------------------------------------------------+  |
|                                                                   |
|  +-------------------------------------------------------------+  |
|  |  Application(s)                                             |  |
|  |                                                             |  |
|  |  +-------------+  +--------------+  +--------------+        |  |
|  |  | Command     |  | Notification |  | Proxy        |        |  |
|  |  | Generator   |  | Receiver     |  | Forwarder    |        |  |
|  |  +-------------+  +--------------+  +--------------+        |  |
|  |                                                             |  |
|  |  +-------------+  +--------------+  +--------------+        |  |
|  |  | Command     |  | Notification |  | Other        |        |  |
|  |  | Responder   |  | Originator   |  |              |        |  |
|  |  +-------------+  +--------------+  +--------------+        |  |
|  |                                                             |  |
|  +-------------------------------------------------------------+  |
|                                                                   |
+-------------------------------------------------------------------+

3.1.1. SNMP engine โš™๏ธ

An SNMP engine provides services for sending and receiving messages, authenticating and encrypting messages, and controlling access to managed objects ๐Ÿ”. There's a one-to-one association between an SNMP engine and the SNMP entity that contains it ๐Ÿ’•

The engine contains:

  1. a Dispatcher,
  2. a Message Processing Subsystem,
  3. a Security Subsystem, and
  4. an Access Control Subsystem.

3.1.1.1. snmpEngineID ๐Ÿ†”

Within an administrative domain, snmpEngineID is the unique and unambiguous identifier of an SNMP engine โœจ. Since there's a one-to-one association between SNMP engines and SNMP entities, it also uniquely and unambiguously identifies the SNMP entity within that administrative domain. Heads up: SNMP entities in different administrative domains can have the same value for snmpEngineID ๐Ÿ‘€. Federation of administrative domains may necessitate assignment of new values.

3.1.1.2. Dispatcher ๐Ÿ“ฎ

There is only one Dispatcher in an SNMP engine. It allows for concurrent support of multiple versions of SNMP messages in the engine ๐Ÿง . It does this by:

  • sending and receiving SNMP messages to and from the network,
  • determining the version of an SNMP message and interacting with the corresponding Message Processing Model,
  • providing an abstract interface to SNMP applications for delivery of a PDU to an application.
  • providing an abstract interface for SNMP applications that allows them to send a PDU to a remote SNMP entity.

3.1.1.3. Message Processing Subsystem ๐Ÿ“ฆ

The Message Processing Subsystem is responsible for preparing messages for sending, and extracting data from received messages ๐Ÿ’Œ

It potentially contains multiple Message Processing Models, as shown in the next figure. (Quick note: the * in the figure means one or more Message Processing Models may be present ๐ŸŒŸ)

+------------------------------------------------------------------+
|                                                                  |
|  Message Processing Subsystem                                    |
|                                                                  |
|  +------------+  +------------+  +------------+  +------------+  |
|  |          * |  |          * |  |          * |  |          * |  |
|  | SNMPv3     |  | SNMPv1     |  | SNMPv2c    |  | Other      |  |
|  | Message    |  | Message    |  | Message    |  | Message    |  |
|  | Processing |  | Processing |  | Processing |  | Processing |  |
|  | Model      |  | Model      |  | Model      |  | Model      |  |
|  |            |  |            |  |            |  |            |  |
|  +------------+  +------------+  +------------+  +------------+  |
|                                                                  |
+------------------------------------------------------------------+

3.1.1.3.1. Message Processing Model ๐Ÿงฉ

Each Message Processing Model defines the format of a particular version of an SNMP message, and coordinates the preparation and extraction of each of those version-specific message formats ๐ŸŽฏ

3.1.1.4. Security Subsystem ๐Ÿ›ก๏ธ

The Security Subsystem provides security services such as authentication and privacy of messages, and potentially contains multiple Security Models, as shown in the following figure. (The * means one or more Security Models may be present ๐Ÿ’ซ)

+------------------------------------------------------------------+
|                                                                  |
|  Security Subsystem                                              |
|                                                                  |
|  +----------------+  +-----------------+  +-------------------+  |
|  |              * |  |               * |  |                 * |  |
|  | User-Based     |  | Other           |  | Other             |  |
|  | Security       |  | Security        |  | Security          |  |
|  | Model          |  | Model           |  | Model             |  |
|  |                |  |                 |  |                   |  |
|  +----------------+  +-----------------+  +-------------------+  |
|                                                                  |
+------------------------------------------------------------------+

3.1.1.4.1. Security Model ๐Ÿ”’

A Security Model specifies the threats it protects against, the goals of its services, and the security protocols used to provide security services such as authentication and privacy ๐Ÿšจ

3.1.1.4.2. Security Protocol ๐Ÿ”‘

A Security Protocol specifies the mechanisms, procedures, and MIB objects used to provide a security service such as authentication or privacy ๐Ÿ’œ

3.1.2. Access Control Subsystem ๐Ÿšช

The Access Control Subsystem provides authorization services by means of one or more (*) Access Control Models ๐ŸŒˆ

+------------------------------------------------------------------+
|                                                                  |
|  Access Control Subsystem                                        |
|                                                                  |
|  +---------------+   +-----------------+   +------------------+  |
|  |             * |   |               * |   |                * |  |
|  | View-Based    |   | Other           |   | Other            |  |
|  | Access        |   | Access          |   | Access           |  |
|  | Control       |   | Control         |   | Control          |  |
|  | Model         |   | Model           |   | Model            |  |
|  |               |   |                 |   |                  |  |
|  +---------------+   +-----------------+   +------------------+  |
|                                                                  |
+------------------------------------------------------------------+

3.1.2.1. Access Control Model ๐Ÿ—๏ธ

An Access Control Model defines a particular access decision function, so it can make decisions about access rights ๐Ÿซถ

3.1.3. Applications โœจ

okay so applications are the parts that actually do stuff with management data, and there are a few flavors ๐Ÿ’…:

  • command generators, which monitor and manipulate management data,
  • command responders, which provide access to management data,
  • notification originators, which initiate asynchronous messages,
  • notification receivers, which process asynchronous messages, and
  • proxy forwarders, which forward messages between entities.

bestie, every one of these leans on the services the SNMP engine provides ๐Ÿซถ

3.1.3.1. SNMP Manager ๐Ÿ‘‘

an SNMP entity with one or more command generator and/or notification receiver applications (plus their SNMP engine) has traditionally been called an SNMP manager ๐Ÿ’–

* One or more models may be present.

                   (traditional SNMP manager)
+-------------------------------------------------------------------+
| +--------------+  +--------------+  +--------------+  SNMP entity |
| | NOTIFICATION |  | NOTIFICATION |  |   COMMAND    |              |
| |  ORIGINATOR  |  |   RECEIVER   |  |  GENERATOR   |              |
| | applications |  | applications |  | applications |              |
| +--------------+  +--------------+  +--------------+              |
| |         ^                ^                 ^                      |
| |         |                |                 |                      |
| |         v                v                 v                      |
| |         +-------+--------+-----------------+                      |
| |                 ^                                                 |
| |                 |     +---------------------+  +----------------+ |
| |                 |     | Message Processing  |  | Security       | |
| | Dispatcher      v     | Subsystem           |  | Subsystem      | |
| | +-------------------+ |     +------------+  |  |                | |
| | | PDU Dispatcher    | |  +->| v1MP     * |<--->| +------------+ | |
| | |                   | |  |  +------------+  |  | | Other      | | |
| | |                   | |  |  +------------+  |  | | Security   | | |
| | |                   | |  +->| v2cMP    * |<--->| | Model      | | |
| | | Message           | |  |  +------------+  |  | +------------+ | |
| | | Dispatcher  <--------->+                  |  |                | |
| | |                   | |  |  +------------+  |  | +------------+ | |
| | |                   | |  +->| v3MP     * |<--->| | User-based | | |
| | | Transport         | |  |  +------------+  |  | | Security   | | |
| | | Mapping           | |  |  +------------+  |  | | Model      | | |
| | | (e.g RFC1906)     | |  +->| otherMP  * |<--->| +------------+ | |
| | +-------------------+ |     +------------+  |  |                | |
| |          ^            +---------------------+  +----------------+ |
| |          |                                                        |
| |          v                                                        |
+-------------------------------------------------------------------+
+-----+ +-----+       +-------+
| UDP | | IPX | . . . | other |
+-----+ +-----+       +-------+
   ^       ^              ^
   |       |              |
   v       v              v
+------------------------------+
|           Network            |
+------------------------------+

3.1.3.2. SNMP Agent ๐Ÿงš

an SNMP entity with one or more command responder and/or notification originator applications (plus their SNMP engine) has traditionally been called an SNMP agent, and it's the other side of the coin ๐Ÿช™

+------------------------------+
|           Network            |
+------------------------------+
   ^       ^              ^
   |       |              |
   v       v              v
+-----+ +-----+       +-------+
| UDP | | IPX | . . . | other |
+-----+ +-----+       +-------+              (traditional SNMP agent)
+-------------------------------------------------------------------+
|              ^                                                    |
|              |        +---------------------+  +----------------+ |
|              |        | Message Processing  |  | Security       | |
| Dispatcher   v        | Subsystem           |  | Subsystem      | |
| +-------------------+ |     +------------+  |  |                | |
| | Transport         | |  +->| v1MP     * |<--->| +------------+ | |
| | Mapping           | |  |  +------------+  |  | | Other      | | |
| | (e.g. RFC1906)    | |  |  +------------+  |  | | Security   | | |
| |                   | |  +->| v2cMP    * |<--->| | Model      | | |
| | Message           | |  |  +------------+  |  | +------------+ | |
| | Dispatcher  <--------->|  +------------+  |  | +------------+ | |
| |                   | |  +->| v3MP     * |<--->| | User-based | | |
| |                   | |  |  +------------+  |  | | Security   | | |
| | PDU Dispatcher    | |  |  +------------+  |  | | Model      | | |
| +-------------------+ |  +->| otherMP  * |<--->| +------------+ | |
|              ^        |     +------------+  |  |                | |
|              |        +---------------------+  +----------------+ |
|              v                                                    |
|      +-------+-------------------------+---------------+          |
|      ^                                 ^               ^          |
|      |                                 |               |          |
|      v                                 v               v          |
| +-------------+   +---------+   +--------------+  +-------------+ |
| |   COMMAND   |   | ACCESS  |   | NOTIFICATION |  |    PROXY  * | |
| |  RESPONDER  |<->| CONTROL |<->|  ORIGINATOR  |  |  FORWARDER  | |
| | application |   |         |   | applications |  | application | |
| +-------------+   +---------+   +--------------+  +-------------+ |
|      ^                                 ^                          |
|      |                                 |                          |
|      v                                 v                          |
| +----------------------------------------------+                  |
| |             MIB instrumentation              |      SNMP entity |
+-------------------------------------------------------------------+

3.2. The Naming of Identities ๐Ÿฆ‹

this is where we figure out who's who ๐Ÿ•ต๏ธโ€โ™€๏ธ here's the big picture:

                        principal
                            ^
                            |
                            |
+----------------------------|-------------+
| SNMP engine                v             |
|                    +--------------+      |
|                    |              |      |
|  +-----------------| securityName |---+  |
|  | Security Model  |              |   |  |
|  |                 +--------------+   |  |
|  |                         ^          |  |
|  |                         |          |  |
|  |                         v          |  |
|  |  +------------------------------+  |  |
|  |  |                              |  |  |
|  |  | Model                        |  |  |
|  |  | Dependent                    |  |  |
|  |  | Security ID                  |  |  |
|  |  |                              |  |  |
|  |  +------------------------------+  |  |
|  |                         ^          |  |
|  |                         |          |  |
|  +-------------------------|----------+  |
|                            |             |
|                            |             |
+----------------------------|-------------+
                             |
                             v
                          network

3.2.1. Principal ๐Ÿ’…

a principal is the "who" on whose behalf services get provided or processing happens, so it's basically the main character of the whole interaction ๐Ÿ‘‘

a principal can be a bunch of things, like an individual acting in a particular role, a set of individuals each acting in a particular role, an application or a set of applications, or any combination of those ๐ŸŒˆ

3.2.2. securityName ๐ŸŽ€

a securityName is a human readable string that represents a principal. it has a model-independent format, which means it can be used outside a particular Security Model. no cap, that's the whole point ๐Ÿซถ

3.2.3. Model-dependent security ID โœจ

a model-dependent security ID is the model-specific version of a securityName inside a particular Security Model ๐Ÿ’œ

these may or may not be human readable, and they have a model-dependent syntax. examples include community names and user names ๐Ÿ“

the job of turning model-dependent security IDs into securityNames (and back again) belongs to the relevant Security Model, so that's the model's responsibility, periodt ๐Ÿ’–

3.3. The Naming of Management Information โœจ

okay bestie, so here's where the management info actually lives ๐Ÿงš A Command Responder Application at an SNMP entity can have local access to potentially multiple contexts, and that application uses a contextEngineID equal to the snmpEngineID of its associated SNMP engine. ๐Ÿ’…

+-----------------------------------------------------------------+
|  SNMP entity (identified by snmpEngineID, example: abcd)        |
|                                                                 |
|  +------------------------------------------------------------+ |
|  | SNMP engine (identified by snmpEngineID)                   | |
|  |                                                            | |
|  | +-------------+ +------------+ +-----------+ +-----------+ | |
|  | |             | |            | |           | |           | | |
|  | | Dispatcher  | | Message    | | Security  | | Access    | | |
|  | |             | | Processing | | Subsystem | | Control   | | |
|  | |             | | Subsystem  | |           | | Subsystem | | |
|  | |             | |            | |           | |           | | |
|  | +-------------+ +------------+ +-----------+ +-----------+ | |
|  |                                                            | |
|  +------------------------------------------------------------+ |
|                                                                 |
|  +------------------------------------------------------------+ |
|  |  Command Responder Application                             | |
|  |  (contextEngineID, example: abcd)                          | |
|  |                                                            | |
|  |  example contextNames:                                     | |
|  |                                                            | |
|  |  "bridge1"          "bridge2"            "" (default)      | |
|  |  ---------          ---------            ------------      | |
|  |      |                  |                   |              | |
|  +------|------------------|-------------------|--------------+ |
|         |                  |                   |                |
|  +------|------------------|-------------------|--------------+ |
|  |  MIB | instrumentation  |                   |              | |
|  |  +---v------------+ +---v------------+ +----v-----------+  | |
|  |  | context        | | context        | | context        |  | |
|  |  |                | |                | |                |  | |
|  |  | +------------+ | | +------------+ | | +------------+ |  | |
|  |  | | bridge MIB | | | | bridge MIB | | | | some  MIB  | |  | |
|  |  | +------------+ | | +------------+ | | +------------+ |  | |
|  |  |                | |                | |                |  | |
|  |  |                | |                | | +------------+ |  | |
|  |  |                | |                | | | other MIB  | |  | |
|  |  |                | |                | | +------------+ |  | |
|  |  |                | |                | |                |  | |
+-----------------------------------------------------------------+

3.3.1. An SNMP Context ๐Ÿฆ‹

A context (or just "context" for short) is a collection of management information that an SNMP entity can access. One item of management info can live in more than one context, and an SNMP entity can potentially reach lots of contexts. ๐ŸŒธ

There are usually tons of instances of each managed object type in a management domain. To keep things simple, the way a MIB module identifies instances doesn't let each instance be told apart from every other instance in the whole domain. Instead, it only lets each instance be identified within some scope, or "context", and there are multiple contexts in the domain. Often a context is a physical device or maybe a logical one, but a context can also cover multiple devices, a subset of one device, or even a subset of multiple devices. Still, a context is always defined as a subset of a single SNMP entity. ๐Ÿ™ˆ So to identify one individual piece of management info within the whole domain, you need its contextName and contextEngineID on top of its object type and instance.

For example, the managed object type ifDescr [RFC2233] is the description of a network interface. To identify the description of device-X's first network interface, you need four things: the snmpEngineID of the SNMP entity that provides access to the management info at device-X, the contextName (device-X), the managed object type (ifDescr), and the instance ("1"). โœจ

Every context has at least one unique identification in the management domain. The same item of management info can exist in multiple contexts, and an item can have multiple unique identifications. That happens when an item exists in multiple contexts, and it also happens when a context has multiple unique identifications. ๐Ÿ’œ

The combo of a contextEngineID and a contextName unambiguously identifies a context within an administrative domain. Note that there can be multiple unique combinations of contextEngineID and contextName that unambiguously identify the same context. ๐Ÿซถ

3.3.2. contextEngineID ๐ŸŒˆ

Within an administrative domain, a contextEngineID uniquely identifies an SNMP entity that may realize an instance of a context with a particular contextName. ๐Ÿ“

3.3.3. contextName ๐ŸŽ€

A contextName is used to name a context. Each contextName MUST be unique within an SNMP entity. ๐Ÿ’…

3.3.4. scopedPDU ๐Ÿงš

A scopedPDU is a block of data containing a contextEngineID, a contextName, and a PDU. ๐Ÿ”ฅ

The PDU is an SNMP Protocol Data Unit with information named in the context. That context is unambiguously identified within an administrative domain by the combination of the contextEngineID and the contextName. For more on SNMP PDUs, see, for example, RFC1905. ๐Ÿ‘‘


3.4. Other Constructs ๐Ÿ’–

3.4.1. maxSizeResponseScopedPDU ๐ŸŒธ

The maxSizeResponseScopedPDU is the maximum size of a scopedPDU that a PDU's sender would be willing to accept. Note that the size of a scopedPDU does NOT include the size of the SNMP message header. ๐Ÿ™ˆ

3.4.2. Local Configuration Datastore ๐Ÿฆ‹

The subsystems, models, and applications within an SNMP entity may need to hang on to their own sets of configuration information. ๐Ÿ’œ

Some of that configuration info may be accessible as managed objects. โœจ

The whole collection of these sets of information is referred to as an entity's Local Configuration Datastore (LCD). ๐Ÿซถ

3.4.3. securityLevel ๐Ÿ”

This architecture recognizes three levels of security:

  • noAuthNoPriv (without authentication and without privacy)
  • authNoPriv (with authentication but without privacy)
  • authPriv (with authentication and with privacy)

These three values are ordered so that noAuthNoPriv is less than authNoPriv, and authNoPriv is less than authPriv. ๐Ÿ“ˆ

Every message has an associated securityLevel. All the subsystems (Message Processing, Security, Access Control) and applications are REQUIRED to either supply a value of securityLevel or to go along with the supplied value of securityLevel while processing the message and its contents. ๐Ÿ’…


4. Abstract Service Interfaces ๐Ÿ”ฅ

Abstract service interfaces have been defined to describe the conceptual interfaces between the various subsystems within an SNMP entity. These are meant to help clarify the externally observable behavior of SNMP entities. They are NOT meant to constrain how implementations are structured or organized in any way. Most importantly, they should not be read as APIs, or as requirements statements for APIs. ๐Ÿงš

These abstract service interfaces are defined by a set of primitives. The primitives define the services provided and the abstract data elements that get passed when the services are invoked. This section lists the primitives that have been defined for the various subsystems. ๐ŸŽ€

4.1. Dispatcher Primitives ๐Ÿ’œ

The Dispatcher typically provides services to the SNMP applications through its PDU Dispatcher. This section describes the primitives the PDU Dispatcher provides. ๐ŸŒˆ

4.1.1. Generate Outgoing Request or Notification โœˆ๏ธ

The PDU Dispatcher provides the following primitive for an application to send an SNMP Request or Notification to another SNMP entity: ๐Ÿ’Œ

statusInformation =              -- sendPduHandle if success
                                 -- errorIndication if failure
  sendPdu(
  IN   transportDomain           -- transport domain to be used
  IN   transportAddress          -- transport address to be used
  IN   messageProcessingModel    -- typically, SNMP version
  IN   securityModel             -- Security Model to use
  IN   securityName              -- on behalf of this principal
  IN   securityLevel             -- Level of Security requested
  IN   contextEngineID           -- data from/at this entity
  IN   contextName               -- data from/in this context
  IN   pduVersion                -- the version of the PDU
  IN   PDU                       -- SNMP Protocol Data Unit
  IN   expectResponse            -- TRUE or FALSE
       )

4.1.2. Process Incoming Request or Notification PDU ๐Ÿ“ฌ

The PDU Dispatcher provides the following primitive to pass an incoming SNMP PDU to an application: ๐Ÿ“

processPdu(                      -- process Request/Notification PDU
  IN   messageProcessingModel    -- typically, SNMP version
  IN   securityModel             -- Security Model in use
  IN   securityName              -- on behalf of this principal
  IN   securityLevel             -- Level of Security
  IN   contextEngineID           -- data from/at this SNMP entity
  IN   contextName               -- data from/in this context
  IN   pduVersion                -- the version of the PDU
  IN   PDU                       -- SNMP Protocol Data Unit
  IN   maxSizeResponseScopedPDU  -- maximum size of the Response PDU
  IN   stateReference            -- reference to state information
       )                         -- needed when sending a response

4.1.3. Generate Outgoing Response ๐Ÿซถ

The PDU Dispatcher provides the following primitive for an application to hand an SNMP Response PDU back to the PDU Dispatcher. The result is either SUCCESS or FAILURE. ๐Ÿ‘‘

result =                         -- SUCCESS or FAILURE
returnResponsePdu(
  IN   messageProcessingModel    -- typically, SNMP version
  IN   securityModel             -- Security Model in use
  IN   securityName              -- on behalf of this principal
  IN   securityLevel             -- same as on incoming request
  IN   contextEngineID           -- data from/at this SNMP entity
  IN   contextName               -- data from/in this context
  IN   pduVersion                -- the version of the PDU
  IN   PDU                       -- SNMP Protocol Data Unit
  IN   maxSizeResponseScopedPDU  -- maximum size sender can accept
  IN   stateReference            -- reference to state information
                                 -- as presented with the request
  IN   statusInformation         -- success or errorIndication
       )                         -- error counter OID/value if error

4.1.4. Process Incoming Response PDU ๐ŸŽ€

okay so the PDU Dispatcher has this primitive that hands an incoming SNMP Response PDU up to an application ๐Ÿ“ฌ it's giving "here's your reply, bestie" ๐Ÿ’–

processResponsePdu(              -- process Response PDU
  IN   messageProcessingModel    -- typically, SNMP version
  IN   securityModel             -- Security Model in use
  IN   securityName              -- on behalf of this principal
  IN   securityLevel             -- Level of Security
  IN   contextEngineID           -- data from/at this SNMP entity
  IN   contextName               -- data from/in this context
  IN   pduVersion                -- the version of the PDU
  IN   PDU                       -- SNMP Protocol Data Unit
  IN   statusInformation         -- success or errorIndication
  IN   sendPduHandle             -- handle from sendPdu
       )

4.1.5. Registering Responsibility for Handling SNMP PDUs โœจ

so apps can sign up (and bounce) for responsibility for a specific contextEngineID and specific pduTypes with the PDU Dispatcher ๐Ÿซถ the list of pduTypes an app can register for depends on the Message Processing Model(s) supported by the SNMP entity that has the PDU Dispatcher inside it ๐Ÿงš

statusInformation =            -- success or errorIndication
  registerContextEngineID(
  IN   contextEngineID         -- take responsibility for this one
  IN   pduType                 -- the pduType(s) to be registered
       )

unregisterContextEngineID(
  IN   contextEngineID         -- give up responsibility for this one
  IN   pduType                 -- the pduType(s) to be unregistered
       )
ngl this is the part where you want to read closely ๐Ÿ‘€ realizations of the registerContextEngineID and unregisterContextEngineID abstract service interfaces are allowed to have their own implementation-specific ways for apps to register or deregister responsibility for all possible values of the contextEngineID or pduType parameters ๐ŸŒˆ

4.2. Message Processing Subsystem Primitives ๐Ÿ’…

the Dispatcher works with a Message Processing Model to process one specific version of an SNMP Message ๐Ÿฆ‹ this section covers the primitives that the Message Processing Subsystem provides ๐ŸŒธ

4.2.1. Prepare Outgoing SNMP Request or Notification Message ๐Ÿ“ค

the Message Processing Subsystem gives you this service primitive for getting an outgoing SNMP Request or Notification Message ready to go ๐Ÿš€

statusInformation =              -- success or errorIndication
  prepareOutgoingMessage(
  IN   transportDomain           -- transport domain to be used
  IN   transportAddress          -- transport address to be used
  IN   messageProcessingModel    -- typically, SNMP version
  IN   securityModel             -- Security Model to use
  IN   securityName              -- on behalf of this principal
  IN   securityLevel             -- Level of Security requested
  IN   contextEngineID           -- data from/at this entity
  IN   contextName               -- data from/in this context
  IN   pduVersion                -- the version of the PDU
  IN   PDU                       -- SNMP Protocol Data Unit
  IN   expectResponse            -- TRUE or FALSE
  IN   sendPduHandle             -- the handle for matching
                                 -- incoming responses
  OUT  destTransportDomain       -- destination transport domain
  OUT  destTransportAddress      -- destination transport address
  OUT  outgoingMessage           -- the message to send
  OUT  outgoingMessageLength     -- its length
       )

4.2.2. Prepare an Outgoing SNMP Response Message ๐Ÿ“จ

this is the service primitive for prepping an outgoing SNMP Response Message ๐ŸŽ€

result =                         -- SUCCESS or FAILURE
  prepareResponseMessage(
  IN   messageProcessingModel    -- typically, SNMP version
  IN   securityModel             -- same as on incoming request
  IN   securityName              -- same as on incoming request
  IN   securityLevel             -- same as on incoming request
  IN   contextEngineID           -- data from/at this SNMP entity
  IN   contextName               -- data from/in this context
  IN   pduVersion                -- the version of the PDU
  IN   PDU                       -- SNMP Protocol Data Unit
  IN   maxSizeResponseScopedPDU  -- maximum size able to accept
  IN   stateReference            -- reference to state information
                                 -- as presented with the request
  IN   statusInformation         -- success or errorIndication
                                 -- error counter OID/value if error
  OUT  destTransportDomain       -- destination transport domain
  OUT  destTransportAddress      -- destination transport address
  OUT  outgoingMessage           -- the message to send
  OUT  outgoingMessageLength     -- its length
       )

4.2.3. Prepare Data Elements from an Incoming SNMP Message ๐Ÿ”

this primitive is for unpacking an incoming SNMP message into its abstract data elements ๐Ÿง

result =                         -- SUCCESS or errorIndication
  prepareDataElements(
  IN   transportDomain           -- origin transport domain
  IN   transportAddress          -- origin transport address
  IN   wholeMsg                  -- as received from the network
  IN   wholeMsgLength            -- as received from the network
  OUT  messageProcessingModel    -- typically, SNMP version
  OUT  securityModel             -- Security Model to use
  OUT  securityName              -- on behalf of this principal
  OUT  securityLevel             -- Level of Security requested
  OUT  contextEngineID           -- data from/at this entity
  OUT  contextName               -- data from/in this context
  OUT  pduVersion                -- the version of the PDU
  OUT  PDU                       -- SNMP Protocol Data Unit
  OUT  pduType                   -- SNMP PDU type
  OUT  sendPduHandle             -- handle for matched request
  OUT  maxSizeResponseScopedPDU  -- maximum size sender can accept
  OUT  statusInformation         -- success or errorIndication
                                 -- error counter OID/value if error
  OUT  stateReference            -- reference to state information
                                 -- to be used for possible Response
       )

4.3. Access Control Subsystem Primitives ๐Ÿ”

applications are the usual clients of the Access Control Subsystem's services ๐Ÿซถ

the Access Control Subsystem gives you this primitive to check whether access is allowed ๐Ÿ‘‘

statusInformation =              -- success or errorIndication
  isAccessAllowed(
  IN   securityModel             -- Security Model in use
  IN   securityName              -- principal who wants to access
  IN   securityLevel             -- Level of Security
  IN   viewType                  -- read, write, or notify view
  IN   contextName               -- context containing variableName
  IN   variableName              -- OID for the managed object
       )

4.4. Security Subsystem Primitives ๐Ÿ›ก๏ธ

the Message Processing Subsystem is the usual client of the Security Subsystem's services ๐Ÿ’œ

4.4.1. Generate a Request or Notification Message โœจ

the Security Subsystem gives you this primitive for generating a Request or Notification message ๐ŸŒท

statusInformation =
  generateRequestMsg(
  IN   messageProcessingModel    -- typically, SNMP version
  IN   globalData                -- message header, admin data
  IN   maxMessageSize            -- of the sending SNMP entity
  IN   securityModel             -- for the outgoing message
  IN   securityEngineID          -- authoritative SNMP entity
  IN   securityName              -- on behalf of this principal
  IN   securityLevel             -- Level of Security requested
  IN   scopedPDU                 -- message (plaintext) payload
  OUT  securityParameters        -- filled in by Security Module
  OUT  wholeMsg                  -- complete generated message
  OUT  wholeMsgLength            -- length of the generated message
       )

4.4.2. Process Incoming Message ๐Ÿ“ฅ

the Security Subsystem gives you this primitive for processing an incoming message ๐Ÿ”“

statusInformation =              -- errorIndication or success
                                 -- error counter OID/value if error
  processIncomingMsg(
  IN   messageProcessingModel    -- typically, SNMP version
  IN   maxMessageSize            -- of the sending SNMP entity
  IN   securityParameters        -- for the received message
  IN   securityModel             -- for the received message
  IN   securityLevel             -- Level of Security
  IN   wholeMsg                  -- as received on the wire
  IN   wholeMsgLength            -- length as received on the wire
  OUT  securityEngineID          -- identification of the principal
  OUT  securityName              -- identification of the principal
  OUT  scopedPDU,                -- message (plaintext) payload
  OUT  maxSizeResponseScopedPDU  -- maximum size sender can handle
  OUT  securityStateReference    -- reference to security state
       )                         -- information, needed for response

4.4.3. Generate a Response Message ๐Ÿ“ค

the Security Subsystem gives you this primitive for generating a Response message ๐Ÿ’Œ

statusInformation =
  generateResponseMsg(
  IN   messageProcessingModel    -- typically, SNMP version
  IN   globalData                -- message header, admin data
  IN   maxMessageSize            -- of the sending SNMP entity
  IN   securityModel             -- for the outgoing message
  IN   securityEngineID          -- authoritative SNMP entity
  IN   securityName              -- on behalf of this principal
  IN   securityLevel             -- for the outgoing message
  IN   scopedPDU                 -- message (plaintext) payload
  IN   securityStateReference    -- reference to security state
                                 -- information from original request
  OUT  securityParameters        -- filled in by Security Module
  OUT  wholeMsg                  -- complete generated message
  OUT  wholeMsgLength            -- length of the generated message
       )

4.5. Common Primitives ๐Ÿงฉ

these primitive(s) are shared, so multiple Subsystems provide them ๐Ÿฅฐ

4.5.1. Release State Reference Information ๐Ÿงน

every Subsystem that passes stateReference information also gives you a primitive for freeing up the memory holding that referenced state information ๐Ÿ’–

stateRelease(
  IN   stateReference       -- handle of reference to be released
       )

4.6. Scenario Diagrams ๐ŸŽฌ

4.6.1. Command Generator or Notification Originator ๐Ÿ“ค

okay so this diagram shows how a Command Generator or Notification Originator app asks for a PDU to be sent, and how the response comes back to that app (asynchronously!) ๐Ÿ’Œ

   Command           Dispatcher               Message           Security
   Generator            |                     Processing           Model
   |                    |                     Model                    |
   |      sendPdu       |                        |                     |
   |------------------->|                        |                     |
   |                    | prepareOutgoingMessage |                     |
   :                    |----------------------->|                     |
   :                    |                        | generateRequestMsg  |
   :                    |                        |-------------------->|
   :                    |                        |                     |
   :                    |                        |<--------------------|
   :                    |                        |                     |
   :                    |<-----------------------|                     |
   :                    |                        |                     |
   :                    |------------------+     |                     |
   :                    | Send SNMP        |     |                     |
   :                    | Request Message  |     |                     |
   :                    | to Network       |     |                     |
   :                    |                  v     |                     |
   :                    :                  :     :                     :
   :                    :                  :     :                     :
   :                    :                  :     :                     :
   :                    |                  |     |                     |
   :                    | Receive SNMP     |     |                     |
   :                    | Response Message |     |                     |
   :                    | from Network     |     |                     |
   :                    |<-----------------+     |                     |
   :                    |                        |                     |
   :                    |   prepareDataElements  |                     |
   :                    |----------------------->|                     |
   :                    |                        | processIncomingMsg  |
   :                    |                        |-------------------->|
   :                    |                        |                     |
   :                    |                        |<--------------------|
   :                    |                        |                     |
   :                    |<-----------------------|                     |
   | processResponsePdu |                        |                     |
   |<-------------------|                        |                     |
   |                    |                        |                     |

4.6.2. Scenario Diagram for a Command Responder Application ๐ŸŽ€

this one is the other side of the story ๐Ÿฆ‹ It shows how a Command Responder or Notification Receiver app registers for handling a pduType, how a PDU gets dispatched to the app after an SNMP message comes in, and how the Response is (asynchronously) sent back to the network ๐Ÿš€

   Command               Dispatcher            Message          Security
   Responder                 |                 Processing          Model
   |                         |                 Model                   |
   |                         |                    |                    |
   | registerContextEngineID |                    |                    |
   |------------------------>|                    |                    |
   |<------------------------|              |     |                    |
   |                         | Receive SNMP |     |                    |
   :                         | Message      |     |                    |
   :                         | from Network |     |                    |
   :                         |<-------------+     |                    |
   :                         |                    |                    |
   :                         |prepareDataElements |                    |
   :                         |------------------->|                    |
   :                         |                    | processIncomingMsg |
   :                         |                    |------------------->|
   :                         |                    |                    |
   :                         |                    |<-------------------|
   :                         |                    |                    |
   :                         |<-------------------|                    |
   |     processPdu          |                    |                    |
   |<------------------------|                    |                    |
   |                         |                    |                    |
   :                         :                    :                    :
   :                         :                    :                    :
   |    returnResponsePdu    |                    |                    |
   |------------------------>|                    |                    |
   :                         | prepareResponseMsg |                    |
   :                         |------------------->|                    |
   :                         |                    |generateResponseMsg |
   :                         |                    |------------------->|
   :                         |                    |                    |
   :                         |                    |<-------------------|
   :                         |                    |                    |
   :                         |<-------------------|                    |
   :                         |                    |                    |
   :                         |--------------+     |                    |
   :                         | Send SNMP    |     |                    |
   :                         | Message      |     |                    |
   :                         | to Network   |     |                    |
   :                         |              v     |                    |

5. Managed Object Definitions for SNMP Management Frameworks ๐ŸŒˆ

and now the MIB โœจ this is where the definitions live, bestie ๐Ÿ’œ

   SNMP-FRAMEWORK-MIB DEFINITIONS ::= BEGIN

   IMPORTS
       MODULE-IDENTITY, OBJECT-TYPE,
       OBJECT-IDENTITY,
       snmpModules                           FROM SNMPv2-SMI
       TEXTUAL-CONVENTION                    FROM SNMPv2-TC
       MODULE-COMPLIANCE, OBJECT-GROUP       FROM SNMPv2-CONF;

   snmpFrameworkMIB MODULE-IDENTITY
       LAST-UPDATED "9901190000Z"            -- 19 January 1999
       ORGANIZATION "SNMPv3 Working Group"
       CONTACT-INFO "WG-EMail:   snmpv3@tis.com
                     Subscribe:  majordomo@tis.com
                                 In message body:  subscribe snmpv3

                     Chair:      Russ Mundy
                                 TIS Labs at Network Associates
                     postal:     3060 Washington Rd
                                 Glenwood MD 21738
                                 USA
                     EMail:      mundy@tis.com
                     phone:      +1 301-854-6889

                     Co-editor   Dave Harrington
                                 Cabletron Systems, Inc.
                     postal:     Post Office Box 5005
                                 Mail Stop: Durham
                                 35 Industrial Way
                                 Rochester, NH 03867-5005
                                 USA
                     EMail:      dbh@ctron.com
                     phone:      +1 603-337-7357

                     Co-editor   Randy Presuhn
                                 BMC Software, Inc.
                     postal:     965 Stewart Drive
                                 Sunnyvale, CA 94086
                                 USA
                     EMail:      randy_presuhn@bmc.com
                     phone:      +1 408-616-3100

                     Co-editor:  Bert Wijnen
                                 IBM T.J. Watson Research
                     postal:     Schagen 33
                                 3461 GL Linschoten
                                 Netherlands
                     EMail:      wijnen@vnet.ibm.com
                     phone:      +31 348-432-794
                    "
       DESCRIPTION  "The SNMP Management Architecture MIB"
   -- Revision History

       REVISION     "9901190000Z"            -- 19 January 1999
       DESCRIPTION  "Updated editors' addresses, fixed typos.
                     Published as RFC2571.
                    "
       REVISION     "9711200000Z"            -- 20 November 1997
       DESCRIPTION  "The initial version, published in RFC 2271.
                    "
       ::= { snmpModules 10 }

   -- Textual Conventions used in the SNMP Management Architecture ***

   SnmpEngineID ::= TEXTUAL-CONVENTION
       STATUS       current
       DESCRIPTION "An SNMP engine's administratively-unique identifier.
                    Objects of this type are for identification, not for
                    addressing, even though it is possible that an
                    address may have been used in the generation of
                    a specific value.

                    The value for this object may not be all zeros or
                    all 'ff'H or the empty (zero length) string.

                    The initial value for this object may be configured
                    via an operator console entry or via an algorithmic
                    function.  In the latter case, the following
                    example algorithm is recommended.

                    In cases where there are multiple engines on the
                    same system, the use of this algorithm is NOT
                    appropriate, as it would result in all of those
                    engines ending up with the same ID value.

                    1) The very first bit is used to indicate how the
                       rest of the data is composed.

                       0 - as defined by enterprise using former methods
                           that existed before SNMPv3. See item 2 below.

                       1 - as defined by this architecture, see item 3
                           below.

                       Note that this allows existing uses of the
                       engineID (also known as AgentID [RFC1910]) to
                       co-exist with any new uses.

                    2) The snmpEngineID has a length of 12 octets.

                       The first four octets are set to the binary
                       equivalent of the agent's SNMP management
                       private enterprise number as assigned by the
                       Internet Assigned Numbers Authority (IANA).
                       For example, if Acme Networks has been assigned
                       { enterprises 696 }, the first four octets would
                       be assigned '000002b8'H.

okay bestie, we're still deep in the textual conventions ๐Ÿ’…๐ŸŽ€ Here's the rest of the SnmpEngineID description, plus the next few conventions, copied exactly so the MIB stays valid โœจ

                       The remaining eight octets are determined via
                       one or more enterprise-specific methods. Such
                       methods must be designed so as to maximize the
                       possibility that the value of this object will
                       be unique in the agent's administrative domain.
                       For example, it may be the IP address of the SNMP
                       entity, or the MAC address of one of the
                       interfaces, with each address suitably padded
                       with random octets.  If multiple methods are
                       defined, then it is recommended that the first
                       octet indicate the method being used and the
                       remaining octets be a function of the method.

                    3) The length of the octet strings varies.

                       The first four octets are set to the binary
                       equivalent of the agent's SNMP management
                       private enterprise number as assigned by the
                       Internet Assigned Numbers Authority (IANA).
                       For example, if Acme Networks has been assigned
                       { enterprises 696 }, the first four octets would
                       be assigned '000002b8'H.

                       The very first bit is set to 1. For example, the
                       above value for Acme Networks now changes to be
                       '800002b8'H.

                       The fifth octet indicates how the rest (6th and
                       following octets) are formatted. The values for
                       the fifth octet are:

                         0     - reserved, unused.

                         1     - IPv4 address (4 octets)

                                 lowest non-special IP address

                         2     - IPv6 address (16 octets)
                                 lowest non-special IP address

                         3     - MAC address (6 octets)
                                 lowest IEEE MAC address, canonical
                                 order

                         4     - Text, administratively assigned
                                 Maximum remaining length 27

                         5     - Octets, administratively assigned
                                 Maximum remaining length 27

                         6-127 - reserved, unused

                       127-255 - as defined by the enterprise
                                 Maximum remaining length 27
                   "
       SYNTAX       OCTET STRING (SIZE(5..32))

   SnmpSecurityModel ::= TEXTUAL-CONVENTION
       STATUS       current
       DESCRIPTION "An identifier that uniquely identifies a
                    securityModel of the Security Subsystem within the
                    SNMP Management Architecture.

                    The values for securityModel are allocated as
                    follows:

                    - The zero value is reserved.
                    - Values between 1 and 255, inclusive, are reserved
                      for standards-track Security Models and are
                      managed by the Internet Assigned Numbers Authority
                      (IANA).
                    - Values greater than 255 are allocated to
                      enterprise-specific Security Models.  An
                      enterprise-specific securityModel value is defined
                      to be:

                      enterpriseID * 256 + security model within
                      enterprise

                      For example, the fourth Security Model defined by
                      the enterprise whose enterpriseID is 1 would be
                      260.

                    This scheme for allocation of securityModel
                    values allows for a maximum of 255 standards-
                    based Security Models, and for a maximum of
                    255 Security Models per enterprise.

                    It is believed that the assignment of new
                    securityModel values will be rare in practice
                    because the larger the number of simultaneously
                    utilized Security Models, the larger the
                    chance that interoperability will suffer.
                    Consequently, it is believed that such a range
                    will be sufficient.  In the unlikely event that
                    the standards committee finds this number to be
                    insufficient over time, an enterprise number
                    can be allocated to obtain an additional 255
                    possible values.

                    Note that the most significant bit must be zero;
                    hence, there are 23 bits allocated for various
                    organizations to design and define non-standard
                    securityModels.  This limits the ability to
                    define new proprietary implementations of Security
                    Models to the first 8,388,608 enterprises.

                    It is worthwhile to note that, in its encoded
                    form, the securityModel value will normally
                    require only a single byte since, in practice,
                    the leftmost bits will be zero for most messages
                    and sign extension is suppressed by the encoding
                    rules.

                    As of this writing, there are several values
                    of securityModel defined for use with SNMP or
                    reserved for use with supporting MIB objects.
                    They are as follows:

                        0  reserved for 'any'
                        1  reserved for SNMPv1
                        2  reserved for SNMPv2c
                        3  User-Based Security Model (USM)
                   "
       SYNTAX       INTEGER(0 .. 2147483647)

   SnmpMessageProcessingModel ::= TEXTUAL-CONVENTION
       STATUS       current
       DESCRIPTION "An identifier that uniquely identifies a Message
                    Processing Model of the Message Processing
                    Subsystem within a SNMP Management Architecture.

                    The values for messageProcessingModel are
                    allocated as follows:

                    - Values between 0 and 255, inclusive, are
                      reserved for standards-track Message Processing
                      Models and are managed by the Internet Assigned
                      Numbers Authority (IANA).

                    - Values greater than 255 are allocated to
                      enterprise-specific Message Processing Models.
                      An enterprise messageProcessingModel value is
                      defined to be:

                      enterpriseID * 256 +
                           messageProcessingModel within enterprise

                      For example, the fourth Message Processing Model
                      defined by the enterprise whose enterpriseID
                      is 1 would be 260.

                    This scheme for allocating messageProcessingModel
                    values allows for a maximum of 255 standards-
                    based Message Processing Models, and for a
                    maximum of 255 Message Processing Models per
                    enterprise.

                    It is believed that the assignment of new
                    messageProcessingModel values will be rare
                    in practice because the larger the number of
                    simultaneously utilized Message Processing Models,
                    the larger the chance that interoperability
                    will suffer. It is believed that such a range
                    will be sufficient.  In the unlikely event that
                    the standards committee finds this number to be
                    insufficient over time, an enterprise number
                    can be allocated to obtain an additional 256
                    possible values.

                    Note that the most significant bit must be zero;
                    hence, there are 23 bits allocated for various
                    organizations to design and define non-standard
                    messageProcessingModels.  This limits the ability
                    to define new proprietary implementations of
                    Message Processing Models to the first 8,388,608
                    enterprises.

                    It is worthwhile to note that, in its encoded
                    form, the messageProcessingModel value will
                    normally require only a single byte since, in
                    practice, the leftmost bits will be zero for
                    most messages and sign extension is suppressed
                    by the encoding rules.

                    As of this writing, there are several values of
                    messageProcessingModel defined for use with SNMP.
                    They are as follows:

                        0  reserved for SNMPv1
                        1  reserved for SNMPv2c
                        2  reserved for SNMPv2u and SNMPv2*
                        3  reserved for SNMPv3
                   "
       SYNTAX       INTEGER(0 .. 2147483647)

   SnmpSecurityLevel ::= TEXTUAL-CONVENTION
       STATUS       current
       DESCRIPTION "A Level of Security at which SNMP messages can be
                    sent or with which operations are being processed;
                    in particular, one of:

                      noAuthNoPriv - without authentication and
                                     without privacy,
                      authNoPriv   - with authentication but
                                     without privacy,
                      authPriv     - with authentication and
                                     with privacy.

                    These three values are ordered such that
                    noAuthNoPriv is less than authNoPriv and
                    authNoPriv is less than authPriv.
                   "
       SYNTAX       INTEGER { noAuthNoPriv(1),
                              authNoPriv(2),
                              authPriv(3)
                            }

   SnmpAdminString ::= TEXTUAL-CONVENTION
       DISPLAY-HINT "255a"
       STATUS       current
       DESCRIPTION "An octet string containing administrative
                    information, preferably in human-readable form.

                    To facilitate internationalization, this
                    information is represented using the ISO/IEC
                    IS 10646-1 character set, encoded as an octet
                    string using the UTF-8 transformation format
                    described in [RFC2279].

                    Since additional code points are added by
                    amendments to the 10646 standard from time
                    to time, implementations must be prepared to
                    encounter any code point from 0x00000000 to
                    0x7fffffff.  Byte sequences that do not
                    correspond to the valid UTF-8 encoding of a
                    code point or are outside this range are
                    prohibited.

                    The use of control codes should be avoided.

                    When it is necessary to represent a newline,
                    the control code sequence CR LF should be used.

                    The use of leading or trailing white space should
                    be avoided.

                    For code points not directly supported by user
                    interface hardware or software, an alternative
                    means of entry and display, such as hexadecimal,
                    may be provided.
                    For information encoded in 7-bit US-ASCII,
                    the UTF-8 encoding is identical to the
                    US-ASCII encoding.

                    UTF-8 may require multiple bytes to represent a
                    single character / code point; thus the length
                    of this object in octets may be different from
                    the number of characters encoded.  Similarly,
                    size constraints refer to the number of encoded
                    octets, not the number of characters represented
                    by an encoding.

                    Note that when this TC is used for an object that
                    is used or envisioned to be used as an index, then
                    a SIZE restriction MUST be specified so that the
                    number of sub-identifiers for any object instance
                    does not exceed the limit of 128, as defined by
                    [RFC1905].

                    Note that the size of an SnmpAdminString object is
                    measured in octets, not characters.
                   "
       SYNTAX       OCTET STRING (SIZE (0..255))

   -- Administrative assignments ***************************************

   snmpFrameworkAdmin
       OBJECT IDENTIFIER ::= { snmpFrameworkMIB 1 }
   snmpFrameworkMIBObjects
       OBJECT IDENTIFIER ::= { snmpFrameworkMIB 2 }
   snmpFrameworkMIBConformance
       OBJECT IDENTIFIER ::= { snmpFrameworkMIB 3 }

   -- the snmpEngine Group ********************************************

   snmpEngine OBJECT IDENTIFIER ::= { snmpFrameworkMIBObjects 1 }

   snmpEngineID     OBJECT-TYPE
       SYNTAX       SnmpEngineID
       MAX-ACCESS   read-only
       STATUS       current
       DESCRIPTION "An SNMP engine's administratively-unique identifier.
                   "
       ::= { snmpEngine 1 }

   snmpEngineBoots  OBJECT-TYPE
       SYNTAX       INTEGER (1..2147483647)
       MAX-ACCESS   read-only
       STATUS       current
       DESCRIPTION "The number of times that the SNMP engine has
                    (re-)initialized itself since snmpEngineID
                    was last configured.
                   "
       ::= { snmpEngine 2 }

   snmpEngineTime   OBJECT-TYPE
       SYNTAX       INTEGER (0..2147483647)
       UNITS        "seconds"
       MAX-ACCESS   read-only
       STATUS       current
       DESCRIPTION "The number of seconds since the value of
                    the snmpEngineBoots object last changed.
                    When incrementing this object's value would
                    cause it to exceed its maximum,
                    snmpEngineBoots is incremented as if a
                    re-initialization had occurred, and this
                    object's value consequently reverts to zero.
                   "
       ::= { snmpEngine 3 }

   snmpEngineMaxMessageSize OBJECT-TYPE
       SYNTAX       INTEGER (484..2147483647)
       MAX-ACCESS   read-only
       STATUS       current
       DESCRIPTION "The maximum length in octets of an SNMP message
                    which this SNMP engine can send or receive and
                    process, determined as the minimum of the maximum
                    message size values supported among all of the
                    transports available to and supported by the engine.
                   "
       ::= { snmpEngine 4 }


   -- Registration Points for Authentication and Privacy Protocols **

   snmpAuthProtocols OBJECT-IDENTITY
       STATUS        current
       DESCRIPTION  "Registration point for standards-track
                     authentication protocols used in SNMP Management
                     Frameworks.
                    "
       ::= { snmpFrameworkAdmin 1 }

   snmpPrivProtocols OBJECT-IDENTITY
       STATUS        current
       DESCRIPTION  "Registration point for standards-track privacy
                     protocols used in SNMP Management Frameworks.
                    "
       ::= { snmpFrameworkAdmin 2 }

   -- Conformance information ******************************************

   snmpFrameworkMIBCompliances
                  OBJECT IDENTIFIER ::= {snmpFrameworkMIBConformance 1}
   snmpFrameworkMIBGroups
                  OBJECT IDENTIFIER ::= {snmpFrameworkMIBConformance 2}

   -- compliance statements

   snmpFrameworkMIBCompliance MODULE-COMPLIANCE
       STATUS       current
       DESCRIPTION "The compliance statement for SNMP engines which
                    implement the SNMP Management Framework MIB.
                   "
       MODULE    -- this module
           MANDATORY-GROUPS { snmpEngineGroup }

       ::= { snmpFrameworkMIBCompliances 1 }

   -- units of conformance
   snmpEngineGroup OBJECT-GROUP
       OBJECTS {
                 snmpEngineID,
                 snmpEngineBoots,
                 snmpEngineTime,
                 snmpEngineMaxMessageSize
               }
       STATUS       current
       DESCRIPTION "A collection of objects for identifying and
                    determining the configuration and current timeliness
                    values of an SNMP engine.
                   "
       ::= { snmpFrameworkMIBGroups 1 }

   END

6. IANA Considerations โœจ

Okay bestie, this doc sets up three number spaces that IANA looks after ๐Ÿฆ‹: one for security models, one for message processing models, and one for SnmpEngineID formats ๐Ÿ’…. Let's go through them one by one ๐ŸŒธ.

6.1. Security Models

The SnmpSecurityModel TEXTUAL-CONVENTION values managed by IANA live in the range from 0 to 255 inclusive, and they're reserved for standards-track Security Models ๐ŸŽ€. If that range ever turns out to be not enough, an enterprise number can be allocated to get an additional 255 possible values โœจ.

As of this writing, there are a few securityModel values already defined for use with SNMP or reserved for supporting MIB objects. Here they are ๐Ÿ’–:

                    0  reserved for 'any'
                    1  reserved for SNMPv1
                    2  reserved for SNMPv2c
                    3  User-Based Security Model (USM)

6.2. Message Processing Models

The SnmpMessageProcessingModel TEXTUAL-CONVENTION values managed by IANA are in the range 0 to 255, inclusive ๐ŸŒˆ. Each value uniquely identifies a standards-track Message Processing Model of the Message Processing Subsystem within an SNMP Management Architecture ๐Ÿ‘‘.

Should that range prove insufficient in the future, an enterprise number may be obtained for the standards committee to get an additional 256 possible values ๐Ÿงš.

As of this writing, there are several values of messageProcessingModel defined for use with SNMP. They are as follows ๐Ÿ“:

                    0  reserved for SNMPv1
                    1  reserved for SNMPv2c
                    2  reserved for SNMPv2u and SNMPv2*
                    3  reserved for SNMPv3

6.3. SnmpEngineID Formats

The SnmpEngineID TEXTUAL-CONVENTION's fifth octet contains a format identifier ๐Ÿ”ฅ. The values managed by IANA are in the range 6 to 127, inclusive, and each value uniquely identifies a standards-track SnmpEngineID format ๐Ÿ’œ.

7. Intellectual Property ๐Ÿซถ

The IETF takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document ๐Ÿ™ˆ. It also doesn't say whether any license under such rights might or might not be available, and it doesn't claim to have made any effort to identify those rights either ๐Ÿ’€.

Information on the IETF's procedures for rights in standards-track and standards-related documentation can be found in BCP-11 ๐Ÿ“š. Copies of claims of rights made available for publication, any assurances of licenses to be made available, or the result of an attempt to get a general license or permission for implementors or users to use such proprietary rights can be obtained from the IETF Secretariat ๐Ÿ“ฌ.

The IETF invites any interested party to bring any copyrights, patents or patent applications, or other proprietary rights which may cover technology required to practice this standard to its attention. Please send that information to the IETF Executive Director ๐Ÿšจ.

8. Acknowledgements ๐Ÿ’–

This document is the result of the efforts of the SNMPv3 Working Group ๐ŸŒธ. Some special thanks are in order to the following SNMPv3 WG members ๐Ÿฅฐ:

    Harald Tveit Alvestrand (Maxware)
    Dave Battle (SNMP Research, Inc.)
    Alan Beard (Disney Worldwide Services)
    Paul Berrevoets (SWI Systemware/Halcyon Inc.)
    Martin Bjorklund (Ericsson)
    Uri Blumenthal (IBM T.J. Watson Research Center)
    Jeff Case (SNMP Research, Inc.)
    John Curran (BBN)
    Mike Daniele (Compaq Computer Corporation)
    T. Max Devlin (Eltrax Systems)
    John Flick (Hewlett Packard)
    Rob Frye (MCI)
    Wes Hardaker (U.C.Davis, Information Technology - D.C.A.S.)
    David Harrington (Cabletron Systems Inc.)
    Lauren Heintz (BMC Software, Inc.)
    N.C. Hien (IBM T.J. Watson Research Center)
    Michael Kirkham (InterWorking Labs, Inc.)
    Dave Levi (SNMP Research, Inc.)
    Louis A Mamakos (UUNET Technologies Inc.)
    Joe Marzot (Nortel Networks)
    Paul Meyer (Secure Computing Corporation)
    Keith McCloghrie (Cisco Systems)
    Bob Moore (IBM)
    Russ Mundy (TIS Labs at Network Associates)
    Bob Natale (ACE*COMM Corporation)
    Mike O'Dell (UUNET Technologies Inc.)
    Dave Perkins (DeskTalk)
    Peter Polkinghorne (Brunel University)
    Randy Presuhn (BMC Software, Inc.)
    David Reeder (TIS Labs at Network Associates)
    David Reid (SNMP Research, Inc.)
    Aleksey Romanov (Quality Quorum)
    Shawn Routhier (Epilogue)
    Juergen Schoenwaelder (TU Braunschweig)
    Bob Stewart (Cisco Systems)
    Mike Thatcher (Independent Consultant)
    Bert Wijnen (IBM T.J. Watson Research Center)

The document is based on recommendations of the IETF Security and Administrative Framework Evolution for SNMP Advisory Team ๐Ÿง . Members of that Advisory Team were ๐Ÿ™Œ:

    David Harrington (Cabletron Systems Inc.)
    Jeff Johnson (Cisco Systems)
    David Levi (SNMP Research Inc.)
    John Linn (Openvision)
    Russ Mundy (Trusted Information Systems) chair
    Shawn Routhier (Epilogue)
    Glenn Waters (Nortel)
    Bert Wijnen (IBM T. J. Watson Research Center)

As recommended by the Advisory Team and the SNMPv3 Working Group Charter, the design incorporates as much as practical from previous RFCs and drafts โœจ. That's why we owe special thanks to the authors of the earlier designs known as SNMPv2u and SNMPv2* ๐Ÿ‘‘:

    Jeff Case (SNMP Research, Inc.)
    David Harrington (Cabletron Systems Inc.)
    David Levi (SNMP Research, Inc.)
    Keith McCloghrie (Cisco Systems)
    Brian O'Keefe (Hewlett Packard)
    Marshall T. Rose (Dover Beach Consulting)
    Jon Saperia (BGS Systems Inc.)
    Steve Waldbusser (International Network Services)
    Glenn W. Waters (Bell-Northern Research Ltd.)

9. Security Considerations ๐Ÿ”’

Okay bestie, this section is SERIOUS, so pay attention. ๐Ÿ˜ญ This doc explains how an implementation can bring along a Security Model to protect management messages, plus an Access Control Model to decide who gets to see management information. ๐Ÿ›ก๏ธ

The amount of security you actually get depends on which Security Model implementation(s) and which Access Control Model implementation(s) you use. ๐Ÿ’…

Heads up: applications can reach data that is not secured. Applications SHOULD take reasonable steps to protect that data from disclosure. ๐Ÿ™ˆ

Now, the purchaser of an implementation has some homework, and it's giving responsibility ๐Ÿ‘‘ It's on them to make sure:

  1. the implementation follows the rules this architecture defines,
  2. the Security and Access Control Models they use meet the security and access control needs of their organization,
  3. the implementations of the Models and Applications follow the model and application specifications,
  4. and the implementation keeps configuration secrets from being accidentally disclosed. ๐Ÿคซ

This document also includes a MIB definition module. None of the objects in it are writable, and the information they represent isn't considered especially sensitive. BUT if your environment does treat it as sensitive, you should restrict access to it using properly configured Security and Access Control models. ๐Ÿ”


10. References ๐Ÿ“š

[RFC1155]    Rose, M. and K. McCloghrie, "Structure and
             Identification of Management Information for TCP/IP-
             based internets", STD 16, RFC 1155, May 1990.

[RFC1157]    Case, J., M. Fedor, M. Schoffstall and J. Davin, "The
             Simple Network Management Protocol", STD 15, RFC 1157,
             May 1990.

[RFC1212]    Rose, M. and K. McCloghrie, "Concise MIB Definitions",
             STD 16, RFC 1212, March 1991.

[RFC1901]    The SNMPv2 Working Group, Case, J., McCloghrie, K.,
             Rose, M.  and S. Waldbusser, "Introduction to
             Community-based SNMPv2", RFC 1901, January 1996.

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

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

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

[RFC1905]    The SNMPv2 Working Group, Case, J., McCloghrie, K.,
             Rose, M. and S. Waldbusser, "Protocol Operations for
             Version 2 of the Simple Network Management Protocol
             (SNMPv2)", RFC 1905, January 1996.

[RFC1906]    The SNMPv2 Working Group, Case, J., McCloghrie, K.,
             Rose, M. and S. Waldbusser, "Transport Mappings for
             Version 2 of the Simple Network Management Protocol
             (SNMPv2)", RFC 1906, January 1996.

[RFC1907]    The SNMPv2 Working Group, Case, J., McCloghrie, K.,
             Rose, M. and S. Waldbusser, "Management Information Base
             for Version 2 of the Simple Network Management Protocol
             (SNMPv2)", RFC 1907 January 1996.

[RFC1908]    The SNMPv2 Working Group, Case, J., McCloghrie, K.,
             Rose, M. and S. Waldbusser, "Coexistence between Version
             1 and Version 2 of the SNMP-standard Network Management
             Framework", RFC 1908, January 1996.

[RFC1909]    McCloghrie, K., Editor, "An Administrative
             Infrastructure for SNMPv2", RFC 1909, February 1996.

[RFC1910]    Waters, G., Editor, "User-based Security Model for
             SNMPv2", RFC 1910, February 1996.

[RFC2279]    Yergeau, F., "UTF-8, a transformation format of ISO
             10646", RFC 2279, January, 1998.

[RFC2119]    Bradner, S., "Key words for use in RFCs to Indicate
             Requirement Levels", BCP 14, RFC 2119, March 1997.

[BCP-11]     Hovey, R. and S. Bradner, "The Organizations Involved in
             the IETF Standards Process", BCP 11, RFC 2028, October
             1996.

[RFC2233]    McCloghrie, K. and F. Kastenholz.  "The Interfaces Group
             MIB using SMIv2", RFC 2233, November 1997.

[RFC2572]    Case, J., Harrington, D., Presuhn, R.  and B. Wijnen,
             "Message Processing and Dispatching for the Simple
             Network Management Protocol (SNMP)", RFC 2572, April
             1999.

[RFC2574]    Blumenthal, U.  and B. Wijnen, "The User-Based Security
             Model for Version 3 of the Simple Network Management
             Protocol (SNMPv3)", RFC 2574, April 1999.

[RFC2575]    Wijnen, B., Presuhn, R.  and K. McCloghrie, "View-based
             Access Control Model for the Simple Network Management
             Protocol (SNMP)", RFC 2575, April 1999.

[RFC2573]    Levi, D. B., Meyer, P.  and B. Stewart, "SNMP
             Applications", RFC 2573, April 1999.

[RFC2570]    Case, J., Mundy, R., Partain, D. and B. Stewart,
             "Introduction to Version 3 of the Internet-standard
             Network Management Framework", RFC 2570, April 1999.

[SNMP-COEX]  Frye, R., Levi, D. and B. Wijnen, "Coexistence between
             Version 1, Version 2, and Version 3 of the Internet-
             standard Network Management Framework", Work in
             Progress.

11. Editor's Addresses ๐Ÿ’Œ

Meet the editors, the brilliant people who wrangled this whole thing. ๐Ÿฆ‹

Bert Wijnen
IBM T.J. Watson Research
Schagen 33
3461 GL Linschoten
Netherlands

Phone:      +31 348-432-794
EMail:      wijnen@vnet.ibm.com


Dave Harrington
Cabletron Systems, Inc
Post Office Box 5005
Mail Stop: Durham
35 Industrial Way
Rochester, NH 03867-5005
USA

Phone:      +1 603-337-7357
EMail:      dbh@ctron.com


Randy Presuhn
BMC Software, Inc.
965 Stewart Drive
Sunnyvale, CA 94086
USA

Phone:      +1 408-616-3100
Fax:        +1 408-616-3101
EMail:      randy_presuhn@bmc.com

APPENDIX A

A. Guidelines for Model Designers ๐ŸŽ€

This appendix is for designers of models that are supposed to fit into the architecture defined in this document. Think of it as the designer's cheat sheet. ๐Ÿงš

SNMPv1 and SNMPv2c are two SNMP frameworks that use communities to provide trivial authentication and access control. SNMPv1 and SNMPv2c Frameworks can coexist with Frameworks designed under this architecture, and modified versions of SNMPv1 and SNMPv2c Frameworks could be designed to meet the requirements of this architecture. This document does not give guidelines for that coexistence though, so you're on your own there. ๐Ÿคทโ€โ™€๏ธ

Within any subsystem model, there should be no reference to any specific model of another subsystem, or to data defined by a specific model of another subsystem. Keep your lanes separate, bestie! ๐Ÿ›ฃ๏ธ

Data moving between the subsystems is deliberately described as a fixed set of abstract data elements and primitive functions. These can be overloaded to satisfy the needs of multiple model definitions. โœจ

Documents that define models for this architecture SHOULD use the standard primitives between subsystems. They can also define specific mechanisms for converting the abstract data elements into model-usable formats. The reason for this rule is so subsystem and model documents can be written around the common borders of the subsystem and model. Vendors don't have to respect those borders in their actual implementations. ๐Ÿ’…

The architecture defines certain standard services to be provided between subsystems, and it defines abstract service interfaces for requesting those services. ๐Ÿ”ฅ

Each model definition for a subsystem SHOULD support the standard service interfaces. Whether it does, how it does, or how well it does the service depends on the model definition. ๐Ÿ’œ

A.1. Security Model Design Requirements ๐Ÿ”

A.1.1. Threats

A document describing a Security Model MUST describe how the model protects against the threats described under "Security Requirements of this Architecture", section 1.4. ๐Ÿ›ก๏ธ

A.1.2. Security Processing

Received messages MUST be validated by a Model of the Security Subsystem. Validation includes authentication and privacy processing if needed, but it's explicitly allowed to send messages that don't require authentication or privacy. ๐Ÿซถ

A received message contains a specified securityLevel to be used during processing. All messages requiring privacy MUST also require authentication. No privacy without authentication, periodt! ๐Ÿ’€

A Security Model specifies the rules for how authentication and privacy are done. A model may define mechanisms that provide additional security features, but the model definition is limited to using (possibly a subset of) the abstract data elements defined in this document for transferring data between subsystems. ๐Ÿฆ‹

Each Security Model may allow multiple security protocols to be used concurrently within an implementation of the model. Each Security Model defines how to determine which protocol to use, given the securityLevel and the security parameters relevant to the message. Each Security Model, along with its associated protocol(s), defines how the sending and receiving entities are identified, and how secrets are configured. ๐ŸŒธ

Authentication and Privacy protocols supported by Security Models are uniquely identified using Object Identifiers. IETF standard protocols for authentication or privacy should have an identifier defined within the snmpAuthProtocols or the snmpPrivProtocols subtrees. Enterprise-specific protocol identifiers should be defined within the enterprise subtree. ๐ŸŒˆ

For privacy, the Security Model defines which portion of the message is encrypted. ๐Ÿ“

The persistent data used for security should be SNMP-manageable, but the Security Model defines whether having an instantiation of the MIB is a conformance requirement. โญ

Security Models are replaceable within the Security Subsystem. Multiple Security Model implementations may exist concurrently within an SNMP engine. The number of Security Models defined by the SNMP community should remain small to promote interoperability, because nobody wants a chaotic mess. ๐Ÿ‘‘

A.1.3. Validate the security-stamp in a received message ๐Ÿงพ

A Message Processing Model requests that a Security Model:

  • verifies that the message has not been altered,
  • authenticates the identification of the principal for whom the message was generated.
  • decrypts the message if it was encrypted.

The model may define additional requirements and additional services, but it's constrained to use the following primitives for transferring data between subsystems. Implementations aren't constrained that way, so they have more wiggle room. ๐ŸŽ€

A Message Processing Model uses the processIncomingMsg primitive as described in section 4.4.2. ๐Ÿ”ฅ

A.1.4. Security MIBs ๐Ÿ“Š

Each Security Model defines the MIB module(s) required for security processing, including any MIB module(s) required for the security protocol(s) supported. The MIB module(s) SHOULD be defined at the same time as the procedures that use them. The MIB module(s) are subject to normal access control rules. ๐ŸŒŸ

The mapping between the model-dependent security ID and the securityName MUST be able to be determined using SNMP, as long as the model-dependent MIB is instantiated and access control policy allows access. That's the whole vibe for security IDs, iykyk. ๐Ÿ’–

A.1.5. Cached Security Data

Okay so, every time a message comes in, the Security Model caches the state info ๐Ÿ’พ so the Response can use the exact same security details, even if the Local Configuration Datastore gets changed between the request arriving and the response going out. Main character energy, fr ๐Ÿซถ

A Message Processing Model is responsible for explicitly releasing that cached data once it isn't needed anymore ๐Ÿงน. To make that possible, the Security Model passes an abstract securityStateReference data element over to the Message Processing Model โœจ

The cached security data may be implicitly released when a response is generated, or explicitly released with the stateRelease primitive, as described in section 4.5.1 ๐ŸŒธ

A.2. Message Processing Model Design Requirements

An SNMP engine contains a Message Processing Subsystem, and that subsystem may hold multiple Message Processing Models ๐Ÿงš

The Message Processing Model MUST always (conceptually) pass the complete PDU, i.e., it never forwards less than the complete list of varBinds. No cutting corners, bestie ๐Ÿ’…

A.2.1. Receiving an SNMP Message from the Network

Upon receiving a message from the network, the Dispatcher in the SNMP engine figures out which version of SNMP the message is, then teams up with the matching Message Processing Model to work out the abstract data elements ๐Ÿฆ‹

A Message Processing Model spells out which SNMP Message format it supports and explains how to work out the values of the abstract data elements (like msgID, msgMaxSize, msgFlags, msgSecurityParameters, securityModel, securityLevel etc). It also talks to a Security Model to handle the security processing for the message using the processIncomingMsg primitive, as described in section 4.4.2 ๐Ÿ”

A.2.2. Sending an SNMP Message to the Network

The Dispatcher in the SNMP engine works with a Message Processing Model to get an outgoing message ready. To do that, it uses these primitives:

  • for requests and notifications: prepareOutgoingMessage, as described in section 4.2.1.
  • for response messages: prepareResponseMessage, as described in section 4.2.2.

When a Message Processing Model is preparing an Outgoing SNMP Message, it works with a Security Model to secure the message. To do that, it uses these primitives:

  • for requests and notifications: generateRequestMsg, as described in section 4.4.1.
  • for response messages: generateResponseMsg as described in section 4.4.3.

Once a Message Processing Model has the SNMP message ready, the Dispatcher sends it off to the desired address using the appropriate transport ๐Ÿš€

A.3. Application Design Requirements

Inside an application, there may be an explicit binding to one specific SNMP message version (so, one specific Message Processing Model) and one specific Access Control Model. But there should be no reference to any data defined by a specific Message Processing Model or Access Control Model. Keep it clean, babe โœจ

Inside an application, there should be no reference to any specific Security Model, or to any data defined by a specific Security Model ๐Ÿ™ˆ

An application decides whether explicit or implicit access control should be applied to the operation and, if access control is needed, which Access Control Model should be used ๐Ÿ‘‘

An application is responsible for defining any MIB module(s) it uses to provide application-specific services ๐ŸŽ€

Applications work with the SNMP engine to start messages, receive responses, receive asynchronous messages, and send responses ๐Ÿ’–

A.3.1. Applications that Initiate Messages

Applications may ask the SNMP engine to send messages containing SNMP commands or notifications using the sendPdu primitive, as described in section 4.1.1 ๐Ÿ“จ

If a message needs to go to multiple targets, the application is the one responsible for doing the iteration ๐Ÿ”

The SNMP engine assumes the necessary access control has already been applied to the PDU, so it doesn't provide any access control services itself ๐Ÿ™…โ€โ™€๏ธ

The SNMP engine looks at the "expectResponse" parameter. If a response is expected, the right info gets cached so a later response can be matched to this message and then handed back to the application. A sendPduHandle is returned to the application too, so it can match the response to this message later on ๐Ÿงพ

A.3.2. Applications that Receive Responses

The SNMP engine matches incoming response messages to the outstanding messages this SNMP engine sent, and then forwards each response to the associated application using the processResponsePdu primitive, as described in section 4.1.4 ๐Ÿ’Œ

A.3.3. Applications that Receive Asynchronous Messages

When an SNMP engine receives a message that isn't a response to a request from this SNMP engine, it must figure out which application the message should go to ๐Ÿ•ต๏ธโ€โ™€๏ธ

An application that wants to receive asynchronous messages registers itself with the engine using the registerContextEngineID primitive, as described in section 4.1.5 ๐Ÿ™‹โ€โ™€๏ธ

An application that wants to stop receiving asynchronous messages should unregister itself with the SNMP engine using the unregisterContextEngineID primitive, as described in section 4.1.5 ๐Ÿ‘‹

Only one registration per combination of PDU type and contextEngineID is allowed at a time. Duplicate registrations get ignored, and an errorIndication is returned to any application that tries to make a duplicate registration ๐Ÿ™„

All asynchronously received messages containing a registered combination of PDU type and contextEngineID get sent to the application that registered for that combination ๐Ÿ“ฌ

The engine forwards the PDU to the registered application using the processPdu primitive, as described in section 4.1.2 ๐Ÿฆ‹

A.3.4. Applications that Send Responses

Request operations require responses. An application sends a response with the returnResponsePdu primitive, as described in section 4.1.3 ๐Ÿ’…

The contextEngineID, contextName, securityModel, securityName, securityLevel, and stateReference parameters come from the initial processPdu primitive. The PDU and statusInformation are the results of processing โœจ

A.4. Access Control Model Design Requirements

An Access Control Model decides whether the specified securityName is allowed to perform the requested operation on a specified managed object. It also lays out the rules used to determine access control ๐Ÿ›ก๏ธ

The persistent data used for access control should be manageable using SNMP. However, the Access Control Model decides whether an instantiation of the MIB is a conformance requirement ๐ŸŒˆ

The Access Control Model must provide the isAccessAllowed primitive ๐Ÿ”‘


Copyright (C) The Internet Society (1999). All Rights Reserved. ๐ŸŒธ

This document, and translations of it, may be copied and shared with others. Derivative works that comment on or explain it, or help with implementing it, may also be written, copied, published and distributed, in whole or in part, with no restrictions at all. The one catch is that the copyright notice and this paragraph must be included on all of those copies and derivative works ๐Ÿ“š

The document itself, though, may not be modified in any way. That includes removing the copyright notice or the references to the Internet Society or other Internet organizations. The exceptions are when it's needed to develop Internet standards (then the Internet Standards process copyright procedures must be followed), or when it's being translated into languages other than English ๐ŸŒ

The limited permissions above are perpetual and will not be revoked by the Internet Society or its successors or assigns ๐Ÿ’œ

This document and the information in it is provided on an "AS IS" basis, and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. ๐Ÿ™

Acknowledgement โœจ

Funding for the RFC Editor function is currently provided by the Internet Society ๐Ÿซถ

๐Ÿ“ฆ where this page comes from