view Side-By-Side changes
Network Working Group D. Harrington Internet-Draft Huawei Technologies (USA) Updates: 3411,3412,3414,3417 J. Schoenwaelder (if approved) International University Bremen Intended status: Standards TrackJ. SchoenwaelderFebruary 5, 2007 Expires:June 16,August 9, 2007International University Bremen December 13, 2006Transport Subsystem for the Simple Network Management Protocol (SNMP)draft-ietf-isms-tmsm-05draft-ietf-isms-tmsm-06 Status of This Memo By submitting this Internet-Draft, each author represents that any applicable patent or other IPR claims of which he or she is aware have been or will be disclosed, and any of which he or she becomes aware will be disclosed, in accordance with Section 6 of BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF), its areas, and its working groups. Note that other groups may also distribute working documents as Internet- Drafts. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." The list of current Internet-Drafts can be accessed at http://www.ietf.org/ietf/1id-abstracts.txt. The list of Internet-Draft Shadow Directories can be accessed at http://www.ietf.org/shadow.html. This Internet-Draft will expire onJune 16,August 9, 2007. Copyright Notice Copyright (C) The IETF Trust(2006).(2007). Abstract This documentdescribesdefines a Transport Subsystem, extending the Simple Network Management Protocol (SNMP) architecture defined in RFC 3411. This documentdescribesdefines a subsystem to containtransport models,Transport Models, comparable to other subsystems in the RFC3411 architecture. As work is being done to expand the transport to include secure transport such as SSH and TLS, using a subsystem will enable consistent designand modularity of such transport models. This document identifiesHarrington & Schoenwaelder ExpiresJune 16,August 9, 2007 [Page 1] Internet-Draft SNMP Transport SubsystemDecember 2006February 2007 and modularity of such Transport Models. This document identifies anddiscussesdescribes some key aspects that need to be considered for anytransport modelTransport Model for SNMP. Harrington & Schoenwaelder Expires August 9, 2007 [Page 2] Internet-Draft SNMP Transport Subsystem February 2007 Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . .34 1.1. The Internet-Standard Management Framework . . . . . . . .34 1.2. Where this Extension Fits . . . . . . . . . . . . . . . . 4 1.3. Conventions . . . . . . . . . . . . . . . . . . . . . . .36 2. Motivation . . . . . . . . . . . . . . . . . . . . . . . . . .36 3. Requirements of a Transport Model . . . . . . . . . . . . . .68 3.1. Message Security Requirements . . . . . . . . . . . . . .68 3.1.1. Security Protocol Requirements . . . . . . . . . . . .68 3.2. SNMP Requirements . . . . . . . . . . . . . . . . . . . .79 3.2.1. Architectural Modularity Requirements . . . . . . . .79 3.2.2. Access Control Requirements . . . . . . . . . . . . .1113 3.2.3. Security Parameter Passing Requirements . . . . . . .1214 3.2.4. Separation of Authentication and Authorization . . . . 15 3.3. Session Requirements . . . . . . . . . . . . . . . . . . .1416 3.3.1. Session Establishment Requirements . . . . . . . . . .1417 3.3.2. Session Maintenance Requirements . . . . . . . . . . .1618 3.3.3. Message security versus session security . . . . . . .1618 4. Scenario Diagrams for the Transport Subsystem . . . . . . . .1719 4.1. Command Generator or Notification Originator . . . . . . .1719 4.2. Command Responder . . . . . . . . . . . . . . . . . . . .1821 5. Cached Information and References . . . . . . . . . . . . . .1922 5.1. securityStateReference . . . . . . . . . . . . . . . . . .2023 5.2. tmStateReference . . . . . . . . . . . . . . . . . . . . .2124 6. Abstract Service Interfaces . . . . . . . . . . . . . . . . .2124 6.1.Generating an Outgoing SNMP MessagesendMessage ASI . . . . . . . . . . .22. . . . . . . . . . 24 6.2.Processing for anOther OutgoingMessageASIs . . . . . . . . . . . .23 6.3. Processing an Incoming SNMP Message. . . . . . . 25 6.3. The receiveMessage ASI . . . .23 6.3.1. Processing an Incoming Message. . . . . . . . . . . .23 6.3.2. Prepare Data Elements from. . 26 6.4. Other IncomingMessagesASIs . . . . .23 6.3.3. Processing an Incoming Message. . . . . . . . . . . .24. . 27 7. Security Considerations . . . . . . . . . . . . . . . . . . .2528 8. IANA Considerations . . . . . . . . . . . . . . . . . . . . .2629 9. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . .2629 10. References . . . . . . . . . . . . . . . . . . . . . . . . . .2629 10.1. Normative References . . . . . . . . . . . . . . . . . . .2629 10.2. Informative References . . . . . . . . . . . . . . . . . .2730 Appendix A. Parameter Table . . . . . . . . . . . . . . . . . . .2831 A.1. ParameterList.csv . . . . . . . . . . . . . . . . . . . .2831 Appendix B. Why tmStateReference? . . . . . . . . . . . . . . . .2933 B.1. Define an Abstract Service Interface . . . . . . . . . . .2933 B.2. Using an Encapsulating Header . . . . . . . . . . . . . .3033 B.3. Modifying Existing Fields in an SNMP Message . . . . . . .3034 B.4. Using a Cache . . . . . . . . . . . . . . . . . . . . . .3034 Appendix C. Open Issues . . . . . . . . . . . . . . . . . . . . .3134 Appendix D. Change Log . . . . . . . . . . . . . . . . . . . . .3135 Harrington & Schoenwaelder ExpiresJune 16,August 9, 2007 [Page2]3] Internet-Draft SNMP Transport SubsystemDecember 2006February 2007 1. Introduction This documentdescribesdefines a Transport Subsystem, extending the Simple Network Management Protocol (SNMP) architecture defined in [RFC3411]. This document identifies anddiscussesdescribes some key aspects that need to be considered for anytransport modelTransport Model for SNMP. 1.1. The Internet-Standard Management Framework For a detailed overview of the documents that describe the current Internet-Standard Management Framework, please refer to section 7 of RFC 3410 [RFC3410]. 1.2.Conventions The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" inWhere this Extension Fits It is expected that readers of this documentare to be interpreted as describedwill have read RFC3410 and RFC3411, and have a general understanding of the functionality defined inRFC 2119 [RFC2119]. 2. Motivation There are multiple ways to secure one's home or business, in a continuum of alternatives. Let's consider three general approaches. In the first approach, an individual could buy a gun, learn to use it, and sit on your front porch waiting for intruders. In the second approach, one could hire an employee with a gun, schedule the employee, position the employee to guard what you want protected, hire a second guard to cover if the first gets sick, and so on. In the third approach, you could hire a security company, tell them what you want protected, and they could hire employees, train them, buy the guns, position the guards, schedule the guards, send a replacement when a guard cannot make it, etc., thus providing the security you want, with no significant effort on your part other than identifying requirements and verifying the quality of the service being provided.RFCs 3412-3418. TheUser-based Security Model (USM) as defined in [RFC3414] largely uses the first approach - it provides its own security. It utilizes existing mechanisms (SHA=the gun), but provides all the coordination. USM provides"Transport Subsystem" is an additional component for theauthentication of a principal, message encryption, data integrity checking, timeliness checking, etc. USM was designed to be independent of other existing security infrastructures. USM therefore requires a separate principal and key management infrastructure. Operators have reported that deploying another principal and key management infrastructureSNMP Engine depicted inorder to use SNMPv3 is a deterrent to deploying SNMPv3. It is possible but difficult to define external mechanisms that handle the distributionRFC3411, section 3.1. Harrington & Schoenwaelder ExpiresJune 16,August 9, 2007 [Page3]4] Internet-Draft SNMP Transport SubsystemDecember 2006 of keys for use by the USM approach. A solution based on the second approach might use a USM-compliant architecture, but combine the authentication mechanism with an external mechanism, such as RADIUS [RFC2865], to provide the authentication service. It might be possible to utilize an external protocol to encrypt a message, to check timeliness, to check data integrity, etc. It is difficult to cobble together a number of subcontracted services and coordinate them however, because it is difficult to build solid security bindings between the various services, and potential for gaps in the security is significant. A solution based on the third approach might utilize one or more lower-layer security mechanisms to provide the message-oriented security services required. These would include authentication of the sender, encryption, timeliness checking, and data integrity checking. There are a number of IETF standards available or in development to address these problems through security layers at the transport layer or application layer, among them TLS [RFC4366], SASL [RFC4422], and SSH [RFC4251]. From an operational perspective, it is highly desirable to use security mechanisms that can unify the administrative security management for SNMPv3, command line interfaces (CLIs) and other management interfaces.February 2007 Theuse of security services provided by lower layers is the approach commonly used for the CLI, and is also the approach being proposed for NETCONF [I-D.ietf-netconf-ssh]. This document describes a Transport Subsystem extension tofollowing diagram depicts its place in the RFC3411architecture. Harrington & Schoenwaelder Expires June 16, 2007 [Page 4] Internet-Draft SNMP Transport Subsystem December 2006architecture.: +-------------------------------------------------------------------+ | SNMP entity | | | | +-------------------------------------------------------------+ | | | SNMP engine (identified by snmpEngineID) | | | | | | | | +------------+ | | | | | Transport | | | | | | Subsystem | | | | | +------------+ | | | | | | | | +------------+ +------------+ +-----------+ +-----------+ | | | | | Dispatcher | | Message | | Security | | Access | | | | | | | | Processing | | Subsystem | | Control | | | | | | | | Subsystem | | | | Subsystem | | | | | +------------+ +------------+ +-----------+ +-----------+ | | | +-------------------------------------------------------------+ | | | | +-------------------------------------------------------------+ | | | Application(s) | | | | | | | | +-------------+ +--------------+ +--------------+ | | | | | Command | | Notification | | Proxy | | | | | | Generator | | Receiver | | Forwarder | | | | | +-------------+ +--------------+ +--------------+ | | | | | | | | +-------------+ +--------------+ +--------------+ | | | | | Command | | Notification | | Other | | | | | | Responder | | Originator | | | | | | | +-------------+ +--------------+ +--------------+ | | | +-------------------------------------------------------------+ | | | +-------------------------------------------------------------------+This extension allowsThe transport mappings defined in RFC3417 do not provide lower-layer securityto be provided by an external protocol connected to the SNMP engine through an SNMP transport-model [RFC3417]. Such a transport model would then enable the use of existingfunctionality, and thus do not provide transport-specific securitymechanisms such as (TLS) [RFC4366] or SSH [RFC4251] within theparameters. This document updates RFC3411architecture. There are a number of Internet security protocolsandmechanisms that are in wide spread use. Many of them try to provide a generic infrastructure to be usedRFC3417 bymany different application layer protocols. The motivation behind thedefining an architectural extension and ASIs that transportsubsystem is to leverage these protocols where it seems useful. There are a number of challengesmappings (models) can use tobe addressedpass transport-specific security parameters tomap theother subsystems, including transport-specific security parameters translated into the transport-independent securityName and securityLevel. Harrington & Schoenwaelder ExpiresJune 16,August 9, 2007 [Page 5] Internet-Draft SNMP Transport SubsystemDecember 2006 provided by a secure transport into the SNMP architecture so that SNMP continues to work without any surprises. These challengesFebruary 2007 1.3. Conventions The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document arediscussedto be interpreted as described indetailRFC 2119 [RFC2119]. The key words "must", "must not", "required", "shall", "shall not", "should", "should not", "recommended", "may", and "optional" in thisdocument. For some key issues, design choicesdocument arediscussed that may be madenot toprovidebe interpreted as described in RFC2119. They will usually, but not always, be used in aworkable solution that meets operational requirements and fits intocontext relating to compatibility with theSNMPRFC3411 architecture or the subsystem definedin [RFC3411]. 3. Requirementshere, but which might have no impact on on-the-wire compatibility. These terms are used as guidance for designers ofa Transport Model 3.1. Message Security Requirements Transport security protocols SHOULD ideally provideproposed IETF models to make theprotection against the following message-oriented threats [RFC3411]: 1. modificationdesigns compatible with RFC3411 subsystems and Abstract Service Interfaces (see section 3.2). Implementers are free to implement differently. Some usages ofinformationthese lowercase terms are simply normal English usage. 2.masquerade 3. message stream modification 4. disclosure According to [RFC3411], it is not requiredMotivation Just as there are multiple ways toprotect against denial of servicesecure one's home ortraffic analysis. 3.1.1. Security Protocol Requirements There arebusiness, in anumbercontinuum ofstandard protocols that could be proposed as possible solutions within the transport subsystem. Some factors should be considered when selectingalternatives, there are multiple ways to secure a network management protocol.UsingLet's consider three general approaches. In the first approach, an individual could sit on his front porch waiting for intruders. In the second approach, he could hire an employee , schedule the employee, position the employee to guard what he wants protected, hire aprotocol insecond guard to cover if the first gets sick, and so on. In the third approach, he could hire amanner for which it was not designed has numerous problems. The advertisedsecuritycharacteristics ofcompany, tell them what he wants protected, and they could hire employees, train them, position the guards, schedule the guards, send aprotocol may dependreplacement when a guard cannot make it, etc., thus providing the desired security, with no significant effort onitshis part other than identifying requirements and verifying the quality of the service beingusedprovided. The User-based Security Model (USM) asdesigned; when useddefined inother ways, it may not deliver[RFC3414] largely uses theexpected security characteristics.first approach - it provides its own security. Itis recommended that any proposed model include a discussion of the applicability of the transport model. A transport model should require no modifications to the underlying protocol. Modifying the protocol may change its security characteristics in ways that would impact otherutilizes existingusages. If a change is necessary,mechanisms (e.g., SHA), but provides all thechange should be an extension that has no impact oncoordination. USM provides for theexisting usages. It is recommended that any transport model includeauthentication of adiscussionprincipal, message encryption, data integrity checking, timeliness checking, etc. USM was designed to be independent ofpotential impact onotherusages of the protocol. It has beenexisting security infrastructures. USM therefore requires along-standing requirementseparate principal and key management infrastructure. Operators have reported thatSNMP be abledeploying another principal and key management infrastructure in order towork when the networkuse SNMPv3 isunstable, to enable network troubleshooting and repair. The UDP approach has been considereda deterrent tomeet that need well, with an assumption that getting small messages through, even if out of order,deploying SNMPv3. It isbetter than getting no messages through. There has beenpossible to use Harrington & Schoenwaelder ExpiresJune 16,August 9, 2007 [Page 6] Internet-Draft SNMP Transport SubsystemDecember 2006 a long debate about whether UDP actually offers better support than TCP whenFebruary 2007 external mechanisms to handle theunderlying IP or lower layers are unstable. There has been recent discussiondistribution ofwhether operators actuallykeys for useSNMP to troubleshoot and repair unstable networks. There has been discussion of ways SNMP could be extended to better support management/monitoring needs when a networkby USM. The more important issue isrunning just fine. Use ofthat operators wanted to leverage aTCP transport, for example, could enable larger message sizes and more efficient table retrievals. Transport models MUST be ablesingle user base that wasn't specific tocoexist with other transport models, and may be designed to utilize either TCP or UDP or SCTP. 3.2. SNMP Requirements 3.2.1. Architectural Modularity Requirements SNMP version 3 (SNMPv3) isSNMP. A solution based on the second approach might use amodular architecture (described in [RFC3411] section 3) to allowUSM-compliant architecture, but combine theevolution ofauthentication mechanism with an external mechanism, such as RADIUS [RFC2865], to provide theSNMPauthentication service. It might be possible to utilize an external protocolstandards over time, andtominimize side effects between subsystems when changes are made. The RFC3411 architecture includes a security subsystem for enabling different methods of providing security services,encrypt amessaging subsystem permitting different message versionsmessage, tobe handled by a single engine, an application subsystemcheck timeliness, tosupport different typescheck data integrity, etc. It is difficult to cobble together a number ofapplication processors,subcontracted services andan access control subsystem for allowing multiple approachescoordinate them however, because it is difficult toaccess control. The RFC3411 architecture does not include a subsystem for transport models, despite the fact there are multiple transport mappings already defined for SNMP. This document addressesbuild solid security bindings between theneedvarious services, and potential fora transport subsystem compatible withgaps in theRFC3411 architecture. In SNMPv2, there were many problems of side effects between subsystems caused bysecurity is significant. A solution based on themanipulation of MIB objects, especially those relatedthird approach might utilize one or more lower-layer security mechanisms to provide the message-oriented security services required. These would include authenticationand authorization, because manyof theparameters were stored in shared MIB objects, and different modelssender, encryption, timeliness checking, andprotocols could assign different values to the objects. Contributors assumed slightly different shadesdata integrity checking. There are a number ofmeaning depending onIETF standards available or in development to address these problems through security layers at themodelstransport layer or application layer, among them TLS [RFC4366], SASL [RFC4422], andprotocols being used. As the shared MIB module design was modifiedSSH [RFC4251]. From an operational perspective, it is highly desirable toaccommodate a specific model,use security mechanisms that can unify the administrative security management for SNMPv3, command line interfaces (CLIs) and othermodels whichmanagement interfaces. The use of security services provided by lower layers is the approach commonly used for thesame MIB objects would be broken. Abstract Service Interfaces (ASIs) were developed to pass model- independent parameters. The models were required to translate from their model-dependent formats intoCLI, and is also the approach being proposed for NETCONF [RFC4741]. This document defines amodel-independent format, defined using model-independent semantics, which would not impact other models. Harrington & Schoenwaelder Expires June 16, 2007 [Page 7] Internet-Draft SNMPTransport SubsystemDecember 2006 Parameters have been provided in the ASIsextension topass model-independent information about the authentication that has been provided. These parameters include a model-independent identifier ofthesecurity "principal",RFC3411 architecture based on the third approach. This extension specifies how other lower layer protocols with common securitymodelinfrastructures can be usedto performunderneath theauthentication,SNMP protocol andwhich SNMP-specificthe desired goal of unified administrative security can be met. This extension allows securityfeatures were appliedtothe message (authentication and/or privacy). Parameters have beenbe providedin the ASIsby an external protocol connected topass model-independent transport address information. These parameters utilize the transportDomain and transportAddress The design of a transport subsystem must abidethegoals of the RFC3411 architecture defined in [RFC3411]. To that end, this transport subsystem proposal uses a modular design that will permit transport models to be advancedSNMP engine through an SNMP Transport Model [RFC3417]. Such a Transport Model would then enable thestandards process independently of other transport models, and independentuse ofother modular SNMP components as muchexisting security mechanisms such aspossible. IETF standards typically require one mandatory to implement solution, with(TLS) [RFC4366] or SSH [RFC4251] within thecapabilityRFC3411 architecture. There are a number ofadding newInternet security protocols and mechanisms that are inthe future. Part of the motivstionwide spread use. Many ofdeveloping transport models isthem try todevelop support for secure transport protocols, such asprovide atransport model that utilizes the Secure Shell protocol. Any transport model should define one minimum-compliance security mechanism, preferably one which is already widely usedgeneric infrastructure tosecure the transportbe used by many different application layerprotocol.protocols. The motivation behind the Transport Subsystempermits multiple transportis to leverage these protocols where it seems useful. Harrington & Schoenwaelder Expires August 9, 2007 [Page 7] Internet-Draft SNMP Transport Subsystem February 2007 There are a number of challenges to be"plugged into"addressed to map theRFC3411 architecture, supportedsecurity provided bycorrespondinga secure transportmodels, including modelsinto the SNMP architecture so that SNMP continues to provide interoperability with existing implementations. These challenges aresecurity-aware. The RFC3411 architecture,and the USM assumedescribed in detail in this document. For some key issues, design choices are described that might be made to provide asecurity model is called by a message-processing modelworkable solution that meets operational requirements andwill perform multiple security functions within thefits into the SNMP architecture defined in [RFC3411]. 3. Requirements of a Transport Model 3.1. Message Security Requirements Transport securitysubsystem. A transport modelprotocols SHOULD provide protection against the following message-oriented threats [RFC3411]: 1. modification of information 2. masquerade 3. message stream modification 4. disclosure These threats are described in section 1.4 of [RFC3411]. It is not required to protect against denial of service or traffic analysis, but it should not make those threats significantly worse. 3.1.1. Security Protocol Requirements There are a number of standard protocols thatsupportscould be proposed as possible solutions within the Transport Subsystem. Some factors SHOULD be considered when selecting a protocol. Using asecure transportprotocolmay perform similarin a manner for which it was not designed has numerous problems. The advertised securityfunctions withincharacteristics of a protocol might depend on it being used as designed; when used in other ways, it might not deliver thetransport subsystem. A transportexpected security characteristics. It is recommended that any proposed modelmay perform the translationinclude a description oftransport security parameters to/from security-model-independent parameters. To accommodate this,theASIs forapplicability of thetransport subsystem,Transport Model. A Transport Model SHOULD require no modifications to themessaging subsystem, andunderlying protocol. Modifying the protocol might change its securitysubsystem willcharacteristics in ways that would impact other existing usages. If a change is necessary, the change SHOULD beextended to pass security-model- independent values, andan extension that has no impact on the existing usages. Any Transport Model SHOULD include acachedescription oftransport-specific information.potential impact on other usages of the protocol. Transport Models MUST be able to coexist with each other. Harrington & Schoenwaelder ExpiresJune 16,August 9, 2007 [Page 8] Internet-Draft SNMP Transport SubsystemDecember 2006 +------------------------------+ | Network | +------------------------------+ ^ ^ ^ | | | v v v (traditionalFebruary 2007 3.2. SNMPagent) +-------------------------------------------------------------------+ | +--------------------------------------------------+ | | | TransportRequirements 3.2.1. Architectural Modularity Requirements SNMP version 3 (SNMPv3) is based on a modular architecture (defined in [RFC3411] section 3) to allow the evolution of the SNMP protocol standards over time, and to minimize side effects between subsystems when changes are made. The RFC3411 architecture includes a Security Subsystem| | | | +-----+ +-----+ +-----+ +-----+ +-------+ | | | | | UDP | | TCP | | SSH | | TLS | . . . | other | | | | | +-----+ +-----+ +-----+ +-----+ +-------+ | | | +--------------------------------------------------+ | | ^ | | | | | Dispatcher v | | +-------------------+ +---------------------+ +----------------+ | | | Transport | |for enabling different methods of providing security services, a Message Processing| | Security | | | | Dispatch | |Subsystem| |permitting different message versions to be handled by a single engine, Applications(s) to support different types of application processors, and an Access Control Subsystem| | | | | | +------------+ | | +------------+ | | | | | | +->| v1MP * |<--->| | USM * | | | | | | | | +------------+ | | +------------+ | | | | | | | +------------+ | | +------------+ | | | | | | +->| v2cMP * |<--->| | Transport* | | | | | Message | | | +------------+ | | | Security | | | | | Dispatch <--------->| +------------+ | | | Model | | | | | | | +->| v3MP * |<--->| +------------+ | | | | | | | +------------+ | | +------------+ | | | | PDU Dispatch | | | +------------+ | | | Other * | | | | +-------------------+ | +->| otherMP * |<--->| | Model(s) | | | | ^ | +------------+ | | +------------+ | | | | +---------------------+ +----------------+ | | v | | +-------+-------------------------+---------------+ | | ^ ^ ^ | | | | | | | v v v | | +-------------+ +---------+ +--------------+ +-------------+ | | | COMMAND | | ACCESS | | NOTIFICATION | | PROXY | | | | RESPONDER |<->| CONTROL |<->| ORIGINATOR | | FORWARDER | | | | application | | | | applications | | application | | | +-------------+ +---------+ +--------------+ +-------------+ | | ^ ^ | | | | | | v v | | +----------------------------------------------+ | | | MIB instrumentation | SNMP entity | +-------------------------------------------------------------------+ Harrington & Schoenwaelder Expires June 16, 2007 [Page 9] Internet-Draft SNMPfor allowing multiple approaches to access control. The RFC3411 architecture does not include a subsystem for TransportSubsystem December 2006 3.2.1.1. USM andModels, despite theRFC3411 Architecture The following diagrams illustratefact there are multiple transport mappings already defined for SNMP. This document addresses thedifference inneed for a Transport Subsystem compatible with thesecurity processingRFC3411 architecture. As work is being donebyto expand theUSM modeltransport to include secure transport such as SSH andthe security processing potentially done byTLS, using atransport model. The USM security model is encapsulated by the messaging model, because the messaging model needs to perform the following steps (for incoming messages) 1) decode the ASN.1 (messaging model) 2) determine the SNMP security modelsubsystem will enable consistent design andparameters (messaging model) 3) decrypt the encrypted portionsmodularity ofthe message (security model) 4) translate parameters to model-independent parameters (security model) 5) determine which application should get the decrypted portions (messaging model), and 6) pass on the decrypted portions with model-independent parameters.such Transport Models. TheUSM approach uses SNMP-specific message security and parameters. 3.2.1.2.design of this Transport Subsystemandaccepts theRFC3411 Architecture Withgoals of the RFC3411 architecture defined in section 1.5 of [RFC3411]. This TransportSubsystem,Subsystem uses a modular design that will permit Transport Models to be advanced through theorderstandards process independently ofthe steps may differother Transport Models, andmay be handled by different subsystems: 1) decrypt the encrypted portionsindependent ofthe message (transport layer) 2*) translate parameters to model-independent parameters (transport model) 3) determine theother modular SNMPsecurity model and parameters (transport model) 4) decode the ASN.1 (messaging model) 5) determine which application should getcomponents as much as possible. Parameters have been added to thedecrypted portions (messaging model) 7)ASIs to passon the decrypted portions withmodel-independentsecurity parameters If a message is secured using non-SNMP-specific message security and parameters, then thetransportmodel should provide the translation from the authenticated identity (e.g., an SSH user name)address information. IETF standards typically require one mandatory to implement solution, with thesecurityNamecapability of adding new mechanisms instep 3. 3.2.1.3. Passing Information between Engines A secure transport model will establish an encrypted tunnel betweenthetransport modelsfuture. Part oftwo SNMP engines. One transport model instance encrypts all messages, andtheother transport model instance decryptsmotivation of developing Transport Models is to develop support for secure transport protocols, such as a Transport Model that utilizes themessages. AfterSecure Shell protocol. Any Transport Model SHOULD define one minimum-compliance security mechanism, such as certificates, to ensure a basic level of interoperability, but should also be able to support additional existing and new mechanisms. The Transport Subsystem permits multiple transportlayer tunnelprotocols to be "plugged into" the RFC3411 architecture, supported by corresponding Transport Models, including models that are security-aware. The RFC3411 architecture and the Security Subsystem assume that a Security Model isestablished, thencalled by a Message Processing Model and will Harrington & Schoenwaelder Expires August 9, 2007 [Page 9] Internet-Draft SNMPmessages can conceptuallyTransport Subsystem February 2007 perform multiple security functions within the Security Subsystem. A Transport Model that supports a secure transport protocol might perform similar security functions within the Transport Subsystem. A Transport Model might perform the translation of transport security parameters to/from security-model-independent parameters. To accommodate this, an implementation-specific cache of transport- specific information will besent throughdescribed (not shown), and thetunnel from onedata flows between the Transport Subsystem and the Transport Dispatch, between the Message Dispatch and the Message Processing Subsystem, and between the Message Processing Subsystem and the Security Subsystem will be extended to pass security-model-independent values. New Security Models may also be defined that understand how to work with the modified ASIs and the cache. One such Security Mode, the Transport Security Model, is defined in The following diagram depicts the SNMPv3 architecture including the new Transport Subsystem defined in this document, and a new Transport Security Model defined in [I-D.ietf-isms-transport-security-model]. Harrington & Schoenwaelder Expires August 9, 2007 [Page 10] Internet-Draft SNMP Transport Subsystem February 2007 +------------------------------+ | Network | +------------------------------+ ^ ^ ^ | | | v v v +-------------------------------------------------------------------+ | +--------------------------------------------------+ | | | Transport Subsystem | | | | +-----+ +-----+ +-----+ +-----+ +-------+ | | | | | UDP | | TCP | | SSH | | TLS | . . . | other | | | | | +-----+ +-----+ +-----+ +-----+ +-------+ | | | +--------------------------------------------------+ | | ^ | | | | | Dispatcher v | | +-------------------+ +---------------------+ +----------------+ | | | Transport | | Message Processing | | Security | | | | Dispatch | | Subsystem | | Subsystem | | | | | | +------------+ | | +------------+ | | | | | | +->| v1MP |<--->| | USM | | | | | | | | +------------+ | | +------------+ | | | | | | | +------------+ | | +------------+ | | | | | | +->| v2cMP |<--->| | Transport | | | | | Message | | | +------------+ | | | Security | | | | | Dispatch <--------->| +------------+ | | | Model | | | | | | | +->| v3MP |<--->| +------------+ | | | | | | | +------------+ | | +------------+ | | | | PDU Dispatch | | | +------------+ | | | Other | | | | +-------------------+ | +->| otherMP |<--->| | Model(s) | | | | ^ | +------------+ | | +------------+ | | | | +---------------------+ +----------------+ | | v | | +-------+-------------------------+---------------+ | | ^ ^ ^ | | | | | | | v v v | | +-------------+ +---------+ +--------------+ +-------------+ | | | COMMAND | | ACCESS | | NOTIFICATION | | PROXY | | | | RESPONDER |<->| CONTROL |<->| ORIGINATOR | | FORWARDER | | | | application | | | | applications | | application | | | +-------------+ +---------+ +--------------+ +-------------+ | | ^ ^ | | | | | | v v | | +----------------------------------------------+ | | | MIB instrumentation | SNMPengine toentity | +-------------------------------------------------------------------+ Harrington & Schoenwaelder ExpiresJune 16,August 9, 2007 [Page10]11] Internet-Draft SNMP Transport SubsystemDecember 2006 another SNMP engine. Once the tunnel is established, multiple SNMP messages may be able to be passed through the same tunnel. 3.2.2. Access Control Requirements 3.2.2.1. securityName Binding For SNMP access control to function properly, security processing must establish a securityModel identifier, a securityLevel,February 2007 3.2.1.1. Processing Differences between USM anda securityName, whichSecure Transport USM and secure transports differ is thesecurity model independent identifier for a principal. The messageprocessingsubsystem relies on a security model, such as USM, to play a role in security that goes beyond protecting the message - it provides a mapping between the USM- specific principal to a security-model independent securityName which can be used for subsequent processing, such as for access control. The securityName MUST be bound to the mechanism-specific authenticated identity,order andthis mapping MUST be done for incoming messages beforeresponsibilities within thesecurity model passes securityName toRFC3411 architecture. While themessage processing model viasteps are theprocessIncoming() ASI. This translation from a mechanism-specific authenticated identity tosame, they occur in asecurityName MAYdifferent order, and may be done by different subsystems. The following lists illustrate thetransport model,difference in the flow and thesecurityname is then provided toresponsibility for different processing steps for incoming messages when using USM and when using a secure transport. (Note that these lists are simplified for illustrative purposes, and do not represent all details of processing. Transport Models must provide the detailed elements of procedure.) With USM and other Security Models, securitymodel to be passed to the messageprocessingmodel. Ifstarts when thetypeMessage Processing Model decodes portions ofauthentication provided bythetransport layer (e.g. TLS) is considered adequateASN.1 message tosecure and/or encryptextract an opaque block of security parameters and header parameters that identify which Security Model should process themessage, but inadequatemessage toprovide the desired granularityperform authentication, decryption, timeliness checking, integrity checking, and translation ofaccess control (e.g. user-based), then a second authentication (e.g., one provided via a RADIUS server) MAY be usedparameters toprovidemodel-independent parameters. A secure transport performs those security functions on theauthentication identity which is bound tomessage, before thesecurityName. This approach would require a good analysis ofASN.1 is decoded. Step 6 cannot occur until after decryption occurs. Step 6 and beyond are thepotentialsame forman-in-the-middle attacks or masquerade possibilities. 3.2.2.2. Separation of AuthenticationUSM andAuthorization A transport model that provides security services should take care to not violate the separation of authenticationa secure transport. 3.2.1.1.1. USM andauthorization inthe RFC3411architecture. The isAccessAllowed() primitive is used for passing security-model independent parameters betweenArchitecture 1) decode thesubsystems ofASN.1 header (Message Processing Model) 2) determine thearchitecture. Mapping of (securityModel, securityName)SNMP Security Model and parameters (Message Processing Model) 3) verify securityLevel. [Security Model] 4) translate parameters toan access control policy should be handled withinmodel-independent parameters (Security Model) 5) authenticate and decrypt message. [Security Model] 6) determine theaccess control subsystem, notpduType in thetransport or security subsystems, to be consistent withdecrypted portions (Message Processing Model), and 7) pass on themodularity ofdecrypted portions with model-independent parameters. 3.2.1.2. Transport Subsystem and the RFC3411architecture. This separation was a deliberate decision of the SNMPv3 WG,Architecture 1) authenticate and decrypt message. [Transport Model] 2) translate parameters toallow support for authentication protocols which did not provide authorizationmodel-independent parameters (Transport Model) 3) decode the ASN.1 header (Message Processing Model) 4) determine the SNMP Security Model and parameters (Message Processing Model) Harrington & Schoenwaelder ExpiresJune 16,August 9, 2007 [Page11]12] Internet-Draft SNMP Transport SubsystemDecember 2006 capabilities, and to support authorization schemes, such as VACM, that do not perform their own authentication. An authorization model (inFebruary 2007 5) verify securityLevel [Security Model] 6) determine theaccess control subsystem) MAY require authentication by certain securityModelspduType in the decrypted portions (Message Processing Model), and 7) pass on the decrypted portions with model-independent security parameters If aminimum securityLevel to allow access tomessage is secured using a secure transport layer, then thedata.Transportmodels thatModel should provide the translation from the authenticated identity (e.g., an SSH user name) to the securityName in step 3. 3.2.1.3. Passing Information between Engines A securetransport areTransport Model will establish anenhancement forauthenticated and/or encrypted tunnel between theSNMPv3 privacy and authentication, but they are notTransport Models of two SNMP engines. After asignificant improvement fortransport layer tunnel is established, then SNMP messages can be sent through theauthorization (access control) needs of SNMPv3. Onlytunnel from one SNMP engine to themodel-independent parameters forother SNMP engine. Transport Models MAY support sending multiple SNMP messages through theisAccessAllowed() primitive [RFC3411] are provided bysame tunnel. 3.2.2. Access Control Requirements RFC3411 made some design decisions related to thetransportsupport of an Access Control Subsystem. These include a securityName andsecurity subsystems. A transport model must not specify howsecurityLevel mapping, thesecurityModelseparation of Authentication and Authorization, and the passing of model-independent security parameters. 3.2.2.1. securityNamecould be dynamically mapped to anand securityLevel Mapping For SNMP access controlmechanism,to function properly, Security Models MUST establish a securityLevel and a securityName, which is the security- model-independent identifier for a principal. The Message Processing Subsystem relies on a Security Model, such as USM, to play a role in security that goes beyond protecting the message - it provides aVACM-style groupName. Themappingof (securityModel, securityName)between the security-model-specific principal to agroupName is a VACM-specific mechanismsecurity- model independent securityName which can be used for subsequent processing, such as fornaming anaccesscontrol policy,control. The securityName MUST be mapped from the mechanism-specific authenticated identity, and this mapping must be done fortyingincoming messages before thenamed policySecurity Model passes securityName to theaddressing capabilities ofMessage Processing Model via thedata modeling language (e.g. SMIv2 [RFC2578]),processIncoming ASI. This translation from a mechanism-specific authenticated identity to a securityName might be done by theoperations supported,Transport Model, andother factors. Providing a binding outsidetheAccess Control subsystem might create dependencies that could make it harder to develop alternate models of access control, such as one built on UNIX groups or Windows domains. The preferred approachsecurityName is then provided topassthemodel- independent security parametersSecurity Model via theisAccessAllowed() ASI, and performtmStateReference to be passed to themapping fromMessage Processing Model. If themodel-independent security parameterstype of authentication provided by the transport layer (e.g., Harrington & Schoenwaelder Expires August 9, 2007 [Page 13] Internet-Draft SNMP Transport Subsystem February 2007 TLS) is considered adequate to secure and/or encrypt the message, but inadequate toan authorization-model-dependent access policy withinprovide the desired granularity of access controlmodel. To provide support for protocols which simultaneously send information for(e.g., user-based), then a second authenticationand authorization, such as(e.g., one provided via a RADIUS[RFC2865], model-specific authorization informationserver) MAY becached or otherwise made availableused to provide theaccess control subsystem, e.g., via a MIB table similarauthentication identity which is mapped to thevacmSecurityToGroupTable, so the access control subsystem can create an appropriate binding between the model-independent securityModel and securityName and a model-specific access control policy.securityName. Thismay be highly undesirable, however, if it creates a dependency between a transport model or a security model and an access control model, just as it is undesirable for a transport model to createapproach would require adependency between an SNMP message version andgood analysis of thesecurity provided by a transport model.potential for man-in-the-middle attacks or masquerade possibilities. 3.2.3. Security Parameter Passing Requirements RFC3411 section 4 describesprimitives to describe theabstract data flows between thevarioussubsystems, models and applications within the architecture. Abstract Service Interfaces describe the flow ofHarrington & Schoenwaelder Expires June 16, 2007 [Page 12] Internet-Draft SNMP Transport Subsystem December 2006 datadata, passing model- independent information between subsystems within an engine. TheASIs generally pass model-independent information. Within an engine using a transport model, outgoing SNMP messages are passed unencrypted from the message dispatcher toRFC3411 architecture has no ASI parameters for passing security information between thetransport model,Transport Subsystem andincoming messages are passed unencrypted fromthetransport model todispatcher, or between themessage dispatcher.dispatcher and the Message Processing Model. This document defines or modifies ASIs for this purpose. The security parameters include a model-independent identifier of the security"principal","principal" (the securityName), thesecurity modelSecurity Model used to perform the authentication, and whichSNMP-specific securityauthentication and privacy services were (should be) applied to the message(authentication and/or privacy). In the RFC3411 architecture, which reflects the USM security model design, the messaging model must(securityLevel). A Message Processing Model might unpack SNMP-specific security parameters from an incoming message before calling a specificsecurity modelSecurity Model to authenticate and decrypt an incoming message, perform integrity checking, and translatemodel-specific securitysecurity-model-specific parameters into model-independent parameters. When using a securetransport model,Transport Model, security parametersMAYmight be provided through means other than carrying them in the SNMPmessage. The parameters MAY be provided by SNMP applications for outgoing messages, andmessage; the parameters for incoming messagesMAYmight be extracted from the transport layer by thetransport modelTransport Model before the message is passed to themessage processing subsystem.Message Processing Subsystem. This document describes a cache mechanism (see Section 5), into which the Transport Model puts information about the transport and security parameters applied to a transport connection or an incoming message, and a Security Model may extract that information from the cache. A tmStateReference is passed as an extra parameter in the ASIs of the Transport Subsystem and the Message Processing and Security Subsystems, to identify the relevant cache. This approach of passing a model-independent reference is consistent with the securityStateReference cache already being passed around in the RFC3411 ASIs. For outgoing messages, even when a securetransport modelTransport Model will provide the security services,it is necessary toa Message Processing Model might havean security model because it is the security model thatHarrington & Schoenwaelder Expires August 9, 2007 [Page 14] Internet-Draft SNMP Transport Subsystem February 2007 a Security Model actuallycreatescreate the message from its component parts. Whether there are any security services provided by thesecurity modelSecurity Model for an outgoing message ismodel-dependent.security-model-dependent. For incoming messages, even when a securetransport modelTransport Model provides security services, asecurity model is necessary because thereSecurity Model mightbeprovide some security functionality that can only be provided after the message versionis known.or other parameters are extracted from the message. 3.2.4. Separation of Authentication and Authorization Themessage versionRFC3411 architecture defines a separation of authentication and authorization (access control), and a Transport Model that provides security services should take care to not violate this separation. A Transport Model must not specify how the securityModel and securityName could be dynamically mapped to an access control mechanism, such as a VACM-style groupName. The RECOMMENDED approach isdetermined byto pass theMessage Processing modelmodel-independent security parameters via the isAccessAllowed ASI, andpassed toperform the mapping from the model-independent securitymodel viaparameters to an access-control-model- dependent policy within theprocessIncoming() ASI.Access Control Model. TheRFC3411 architecture has noisAccessAllowed ASIparametersis used for passing the securityModel, securityName, and securityLevel parameters that are independent of any specific securityinformation betweenmodel and any specific access control model to the Access Control Subsystem. The mapping of (securityModel, securityName, securityLevel) to an access-control-model-specific policy should be handled within atransportspecific access control model. This mapping(a transport model) andshould not be done in thedispatcher, and betweenTransport or Security Subsystems, to be consistent with thedispatcher andmodularity of themessage processing model.RFC3411 architecture. Thisdocument describesseparation was acache mechanism, into whichdeliberate decision of thetransport model puts information aboutSNMPv3 WG, to allow support for authentication protocols which did not provide authorization (access control) capabilities, and to support authorization schemes, such as VACM, that do not perform their own authentication. The View-based Access Control Model uses thetransportsecurityModel andsecurity parameters Harrington & Schoenwaelder Expires June 16, 2007 [Page 13] Internet-Draft SNMP Transport Subsystem December 2006 appliedthe securityName as inputs to check for access rights. It determines the groupName as atransport connection or an incoming message,function of securityModel and securityName. Providing asecurity model MAY extractbinding outside the Access Control Subsystem might create dependencies that could make it harder to develop alternate models of access control, such as one built on UNIX groups or Windows domains. To provide support for protocols which simultaneously send informationfromfor authentication and authorization (access control), such as RADIUS [RFC2865], access-control-model-specific information might be cached or otherwise made available to the Access Control Subsystem, e.g., via a MIB table similar to thecache. A tmStateReference is passed as an extra parameter inHarrington & Schoenwaelder Expires August 9, 2007 [Page 15] Internet-Draft SNMP Transport Subsystem February 2007 vacmSecurityToGroupTable, so theASIs ofAccess Control Subsystem can create an appropriate binding between thetransport subsystemaccess-control-model-independent securityModel andthe messagingsecurityName andsecurity subsystems, to identify the relevant cache.an access-control-model-specific policy. Thisapproach of passingwould be highly undesirable, however, if it creates amodel-independent reference is consistent with the securityStateReference cache already being passed around in the RFC3411 ASIs.dependency between a Transport Model or a Security Model and an Access Control Model. 3.3. Session Requirements Some secure transportsmaymight have a notion of sessions, while other secure transports might provide channels or other session-likething.mechanism. Throughout this document, the term session is used in a broad sense to cover sessions, channels, and session-likethings.mechanisms. Session refers to an association between two SNMP engines that permits the transmission of one or more SNMP messages within the lifetime of the session. How the session is actually established, opened, closed, or maintained is specific to a particulartransport model.Transport Model. Sessions are not part of the SNMP architecturedescribeddefined in [RFC3411], but are considered desirable because the cost of authentication can be amortized over potentially many transactions.It is important to note that theThe architecturedescribeddefined in [RFC3411] does not include a session selector in the Abstract Service Interfaces, and neither is that done for thetransport subsystem,Transport Subsystem, so an SNMP applicationcannothas no mechanism to selectthea session using the ASIs except by passing a unique combination oftransport type, transport address,transportDomain, transportAddress, securityName, securityModel, and securityLevel.AllImplementers, of course, might provide non-standard mechanisms to select sessions. The transportDomain and transportAddress identify the transportmodelsconnection to a remote network node; the securityName identifies which security principal to communicate with at that address (e.g., different NMS applications), and the securityModel and securityLevel might permit selection of different sets of security properties for different purposes (e.g., encrypted SETs vs. non-encrypted GETs). All Transport Models should discuss the impact of sessions on SNMP usage, including how to establish/open a transport session (i.e., how it maps to the concepts of session-likethingsmechanisms of the underlying protocol), how to behave when a session cannot be established, how to close a session properly, how to behave when a session is closed improperly, the session security properties, session establishment overhead, and session maintenance overhead. To reduce redundancy, this documentwill discussdescribes aspects that are expected to be common to alltransport modelTransport Model sessions. Harrington & Schoenwaelder Expires August 9, 2007 [Page 16] Internet-Draft SNMP Transport Subsystem February 2007 3.3.1. Session Establishment Requirements SNMP applications must provide thetransport type, transport address,transportDomain, transportAddress, securityName, securityModel, and securityLevel to be used for a session.Harrington & Schoenwaelder Expires June 16, 2007 [Page 14] Internet-Draft SNMP Transport Subsystem December 2006SNMP Applicationstypicallymight have no knowledge of whether the session that will be used to carry commands was initially established as a notification session, or a request-response session, and SHOULD NOT make any assumptions based on knowing the direction of the session. If an administrator ortransport modelTransport Model designer wants to differentiate a session established for different purposes, such as a notification session versus a request-response session, the application can use different securityNames or transport addresses (e.g., port 161 vs. port 162) for different purposes. An SNMP engine containing an application that initiates communication, e.g., a Command Generator or Notification Originator,MUSTmust be able to attempt to establish a session for delivery if a session does not yet exist. If a session cannot be established then the message is discarded. Sessions are usually established by thetransport modelTransport Model when no appropriate session is found for an outgoing message, but sessionsmaymight be established in advance to support features such as notifications. How sessions are established in advance is beyond the scope of this document. Sessions are initiated by notification originators when there is no currently established connection that can be used to send the notification. For a client-server security protocol, thismaymight require provisioning authentication credentials on the agent, either statically or dynamically, so the client/agent can successfully authenticate to a notification receiver. Atransport modelTransport Model must be able to determine whether a session does or does not exist, and must be able to determine which session has the appropriate security characteristics(transport type, transport address,(transportDomain, transportAddress, securityName, securityModel, and securityLevel) for an outgoing message. Atransport modelTransport Model implementation MAY reuse an already established session with the appropriatetransport type, transport address,transportDomain, transportAddress, securityName, securityModel, and securityLevel characteristics for delivery of a messageoriginated bycontaining a differenttype of applicationpduType than originally caused the session to be created. For example, an implementation that has an existing session originally established to receive a requestmayMAY use that session to send an outgoing notification, andmayHarrington & Schoenwaelder Expires August 9, 2007 [Page 17] Internet-Draft SNMP Transport Subsystem February 2007 MAY use a session that was originally established to send a notification to send a request. Responsesare expected toSHOULD be returned using the same session that carried the corresponding request message. Reuse of sessions is not required for conformance. If a session can be reused for a differenttype of message,pduType, but aHarrington & Schoenwaelder Expires June 16, 2007 [Page 15] Internet-Draft SNMP Transport Subsystem December 2006receiver is not prepared to accept differentmessage typespduTypes over the same session, then the message MAY be dropped by the receiver.This may strongly affect the usefulness of session reuse, and transport models should define a standard behavior for this circumstance.3.3.2. Session Maintenance Requirements Atransport modelTransport Model can tear down sessions as needed. Itmaymight be necessary for some implementations to tear down sessions as the result of resource constraints, for example. The decision to tear down a session is implementation-dependent. While it is possible for an implementation to automatically tear down each session once an operation has completed, this is not recommended for anticipated performance reasons. How an implementation determines that an operation has completed, including all potential error paths, is implementation-dependent. The elements of proceduremay discussdescribe when cached information can be discarded, in some circumstances, and the timing of cache cleanupmaymight have security implications, but cache memory management is an implementation issue. If atransport modelTransport Model defines MIB module objects to maintain session state information, then thetransport modelTransport Model MUSTdescribedefine whathappensSHOULD happen to the objects when a related session is torn down, since this will impact interoperability of the MIB module. 3.3.3. Message security versus session security Atransport modelTransport Model session is associated with state information that is maintained for its lifetime. This state information allows for the application of various security services to multiple messages. Cryptographic keys established at the beginning of the session SHOULD be used to provide authentication, integrity checking, and encryption services for data that is communicated during the session. The cryptographic protocols used to establish keys for atransport modelTransport Model session SHOULD ensure that fresh new session keys are generated for each session.If each session uses new session keys, then messages cannot be replayed from one session to another.In addition sequence informationMAYmight be maintained in the session which can be used to prevent the replay and reordering of messages within a session. If each session uses new keys, then a cross-session replay attack will be unsuccessful; that is, an attacker cannot successfully replay on one session a message he observed from another session. Atransport modelgood security protocol will also Harrington & Schoenwaelder Expires August 9, 2007 [Page 18] Internet-Draft SNMP Transport Subsystem February 2007 protect against replay attacks _within_ a session; that is, an attacker cannot successfully replay a message observed earlier in the same session. A Transport Model session willtypicallyhave a singletransport type, transport address,transportDomain, transportAddress, securityModel, securityName and securityLevel associated with it. If an exchange between communicating engines requires a different securityLevel or is on behalf of a different securityName, or uses a different securityModel, then another session would be needed. An immediateHarrington & Schoenwaelder Expires June 16, 2007 [Page 16] Internet-Draft SNMP Transport Subsystem December 2006consequence of this is that implementationsshouldSHOULD be able to maintain some reasonable number of concurrent sessions. Fortransport models,Transport Models, securityNameis typicallyshould be specified during session setup, and associated with the session identifier. SNMPv3 was designed to support multiple levels of security, selectable on a per-message basis by an SNMP application,becausebecause, for example, there is not much value in using encryption for a Commander Generator to poll for potentially non-sensitive performance data on thousands of interfaces every ten minutes; the encryptionmaymight add significant overhead to processing of the messages. Sometransport models MAYTransport Models might support only specific authentication and encryption services, such as requiring all messages to be carried using both authentication and encryption, regardless of the security level requested by an SNMP application. Atransport model MAYTransport Model may upgrade the requested security level, i.e.noAuth/noPrivnoAuthNoPriv andauth/ noPrivauthNoPriv MAY be sent over an authenticated and encrypted session. 4. Scenario Diagrams for the Transport Subsystem RFC3411 section 4.6 provides scenario diagrams to illustrate how an outgoing message is created, and how an incoming message is processed. Both diagrams are incomplete, however. In section 4.6.1, the diagram doesn't showthean ASI for sending an SNMP request to the network or for receiving an SNMP response message from the network. In section 4.6.2, the diagram doesn'tillustrateshow theinterfaces requiredASIs to receive an SNMP message from the network, or to send an SNMP message to the network. 4.1. Command Generator or Notification Originator This diagram from RFC3411 4.6.1 shows how a Command Generator or Notification Originator application [RFC3413] requests that a PDU be sent, and how the response is returned (asynchronously) to that application. Harrington & Schoenwaelder ExpiresJune 16,August 9, 2007 [Page17]19] Internet-Draft SNMP Transport SubsystemDecember 2006February 2007 This document defines a sendMessage ASI to send SNMP messages to the network, and a receiveMessage ASI to receive SNMP messages from the network. 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 | | | |<-------------------| | | | | | | Harrington & Schoenwaelder Expires August 9, 2007 [Page 20] Internet-Draft SNMP Transport Subsystem February 2007 4.2. Command Responder This diagram shows how a Command Responder or Notification Receiver application registers for handling a pduType, how a PDU is dispatched to the application after an SNMP message is received, and how the Response is (asynchronously)sendsent back to the network. This document defines the sendMessage and receiveMessage ASIs for this purpose. Harrington & Schoenwaelder ExpiresJune 16,August 9, 2007 [Page18]21] Internet-Draft SNMP Transport SubsystemDecember 2006February 2007 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. Cached Information and References The RFC3411 architecture uses caches to store dynamic model-specific information, and uses references in the ASIs to indicate in a model- independent manner which cached informationmust flowflows between subsystems. Harrington & Schoenwaelder ExpiresJune 16,August 9, 2007 [Page19]22] Internet-Draft SNMP Transport SubsystemDecember 2006 subsystems.February 2007 There are two levels of state thatmaymight need to be maintained: the security state in a request-response pair, and potentially long-term state relating to transport and security. This state is maintained in caches. To simplify the elements of procedure, the release of state information is not always explicitly specified. As a general rule, if state information is available when a message being processed gets discarded, the state related to that message should also be discarded, and if state information is available when a relationship between engines is severed, such as the closing of a transport session, the state information for that relationship might also be discarded. This document differentiates the tmStateReference from the securityStateReference. This document does not specify an implementation strategy, only an abstractdiscussiondescription of the data thatmust flowflows between subsystems. An implementationMAYmight use one cache and one reference to serve both functions, but an implementer must be aware of the cache-release issues to prevent the cache from being released before a security ortransport modelTransport Model has had an opportunity to extract the information it needs. 5.1. securityStateReference From RFC3411: "For each message received, the Security Model caches the state information such that a Response message can be generated using the same security information, even if the Local Configuration Datastore is altered between the time of the incoming request and the outgoingresponse. A Message Processing Model has the responsibility for explicitly releasing the cached data if such data is no longer needed.response." To enable this, an abstract securityStateReference dataelementelement, defined in RFC3411 section A.1.5, is passed from the Security Model to the Message Processing Model. Thecached security data may be implicitly released via the generation of a response, or explicitly released by using the stateRelease primitive, as described in RFC3411 section 4.5.1." Theinformation saved should include the model-independent parameters (transportDomain, transportAddress, securityName, securityModel, and securityLevel), related security parameters, and other information needed toimatchmatch the response with the request. The related security parameters may include transport-specific security information. The Message Processing Model has the responsibility for explicitly releasing the securityStateReference when such data is no longer needed. The securityStateReference cached data may be implicitly released via the generation of a response, or explicitly released by using theHarrington & Schoenwaelder Expires June 16, 2007 [Page 20] Internet-Draft SNMP Transport Subsystem December 2006stateReleaseprimitive,ASI, asdescribeddefined in RFC 3411 section 4.5.1." If thetransport modelTransport Model connection is closed between the time a Request is received and a Response message is being prepared, then the Response message MAY be discarded. Harrington & Schoenwaelder Expires August 9, 2007 [Page 23] Internet-Draft SNMP Transport Subsystem February 2007 5.2. tmStateReference For each message or transport session, information about the message security is stored in a cache, which mayinlcudeinclude model- and mechanism-specific parameters. The tmStateReference is passed between subsystems to provide a handle for the cache. Atransport modelTransport Model may store transport-specific parameters in the cache for subsequent usage. Since the contents of a cache are meaningful only within an implementation, and not on-the-wire, the format of the cache is implementation-specific. The state referenced by tmStateReferencemaymight be saved in a Local Configuration Datastore (LCD) to make it available across multiple messages, as compared to securityStateReference which is designed to be saved only for the life of a request-response pair of messages. It is expected that an LCD will allow lookup based on the combination of transportDomain, transportAddress, securityName, securityModel, and securityLevel, and that the cache contain these values to reference entries in the LCD. 6. Abstract Service Interfaces Abstract service interfaces have been defined by RFC 3411 to describe the conceptual data flows between the various subsystems within an SNMPentity. To simplifyentity, and to help keep theelementssubsystems independent ofprocedure,each other except for the common parameters. This document follows the example of RFC3411 regarding the release of state information, and regarding error indications. 1) The release of state information is not always explicitlyspecified.specified in a transport model. As a general rule, if state information is available when a message gets discarded, themessage-statemessage- state information should also be released, and if state information is available when a session is closed, the session state information should also be released. 2) An error indication in statusInformation mayreturninclude an OID and value for an incremented counter and a value for securityLevel, and values for contextEngineID and contextName for the counter, and the securityStateReference if the information is available at the point where the error is detected. 6.1. sendMessage ASI The sendMessage ASI is used to pass a message from the Dispatcher to the appropriate Transport Model for sending. Harrington & Schoenwaelder ExpiresJune 16,August 9, 2007 [Page21]24] Internet-Draft SNMP Transport SubsystemDecember 2006 6.1. Generating an OutgoingFebruary 2007 If present and valid, the tmStateReference refers to a cache containing transport-model-specific parameters for the transport and transport security. How the information in the cache is used is transport-model-dependent and implementation-dependent. How a tmStateReference is determined to be present and valid is implementation-dependent. This may sound underspecified, but keep in mind that a transport model might be something like SNMPMessage This section describes the procedure followed by an RFC3411- compatible system wheneverover UDP over IPv6, where no security is provided, so itgeneratesmight have no mechanisms for utilizing a securityName and securityLevel. statusInformation = sendMessage( IN destTransportDomain -- transport domain to be used IN destTransportAddress -- transport address to be used IN outgoingMessage -- the messagecontaining a management operation (suchto send IN outgoingMessageLength -- its length IN tmStateReference -- reference to transport state ) 6.2. Other Outgoing ASIs A tmStateReference parameter has been added to the prepareOutgoingMessage, generateRequestMsg, and generateResponseMsg ASIs asa request, a response, a notification, or a report) on behalf of a user.an OUT parameter. 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 OUT tmStateReference -- (NEW) reference to transport state )Note that tmStateReference has been added to this ASI.Harrington & Schoenwaelder Expires August 9, 2007 [Page 25] Internet-Draft SNMP Transport Subsystem February 2007 TheIN parameterstmStateReference parameter of generateRequestMsg or generateResponseMsg is passed in theprepareOutgoingMessage() ASI are used to pass information from the dispatcher (fromreturn parameters of theapplication subsystem)Security Subsystem to themessage processing subsystem. The abstract service primitive from aMessage ProcessingModel toSubsystem. If aSecurity Model to generate the components ofcache exists for aRequest message is generateRequestMsg(). The abstract service primitivesession identifiable froma Message Processing Model to atransportDomain, transportAddress, securityModel, securityName, and securityLevel, then an appropriate Security Model might create a tmStateReference togeneratethecomponents of a Response message is generateResponseMsg(). Upon completion of processing,cache and pass that as an OUT parameter. If one does not exist, the Security Modelreturns statusInformation. Ifmight create a cache referenced by tmStateReference. This information might include transportDomain, transportAddress, theprocess was successful,securityModel, thecompleted message is returned. IfsecurityLevel, and theprocess was not successful, then an errorIndication is returned. Harrington & Schoenwaelder Expires June 16, 2007 [Page 22] Internet-Draft SNMP Transport Subsystem December 2006securityName, plus any model or mechanism- specific details. TheOUT parameterscontents of theprepareOutgoingMessage() ASI are used to passcache may be incomplete until the Transport Model has established a session. What information is passed, and how this information is determined, is implementation and security-model-specific. The prepareOutgoingMessage ASI passes tmStateReference from themessage processing modelMessage Processing Subsystem to thedispatcher and on todispatcher. How or if thetransport model: 6.2. Processing for an OutgoingMessageThe sendMessage ASIProcessing Subsystem modifies or utilizes the contents of the cache isused to passmessage-processing-model-specific. This may sound underspecified, but keep in mind that a message processing model might have access to all the information from theDispatcher tocache and from theappropriate transport model for sending. statusInformation = sendMessage( IN destTransportDomain -- transport domainmessage, and have no need tobe used IN destTransportAddress --call a Security Model to do any processing; an application might choose a Security Model such as USM to authenticate and secure the SNMP message, but also utilize a secure transportaddresssuch as that provided by the SSH Transport Model tobe used IN outgoingMessage --send the message tosend IN outgoingMessageLength --itslength IN tmStateReference -- reference to transport state )destination. 6.3.Processing an Incoming SNMP Message 6.3.1. Processing an Incoming MessageThe receiveMessage ASI If one does not exist, the Transport Modelwill need tomight createan entry inaLocal Configuration Datastorecache referenced by tmStateReference.ThisIf present, this informationwillmight include transportDomain, transportAddress,the securityModel, thesecurityLevel, andthesecurityName, plusanymodel or mechanism-specific details. How this information is determined ismodel-specific.implementation and transport-model- specific. This may sound underspecified, but keep in mind that a transport model might be something like SNMP over UDP over IPv6, where no security is provided, so it might have no mechanisms for determining a securityName and securityLevel. The Transport Model does not know the securityModel for an incoming message; this will be determined by the Message Processing Model in a message-processing-model-dependent manner. Harrington & Schoenwaelder Expires August 9, 2007 [Page 26] Internet-Draft SNMP Transport Subsystem February 2007 TherecvMessagereceiveMessage ASI is used to pass a message from thetransport subsystemTransport Subsystem to the Dispatcher. statusInformation =recvMessage(receiveMessage( IN transportDomain -- origin transport domain IN transportAddress -- origin transport address IN incomingMessage -- the message received IN incomingMessageLength -- its length IN tmStateReference -- reference to transport state )6.3.2. Prepare Data Elements from6.4. Other IncomingMessages The abstract service primitive fromASIs To support the Transport Subsystem, the tmStateReference is added to the prepareDataElements ASI (from the Dispatcher toathe Message Processing Subsystem), and to the processIncomingMsg ASI (from the Message Processing Subsystem to the Security ModelforSubsystem). How or if areceived message is: Harrington & Schoenwaelder Expires June 16, 2007 [Page 23] Internet-Draft SNMP Transport Subsystem December 2006Message Processing Model or Security Model uses tmStateReference is message-processing-model-dependent and security- model-dependent. 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 IN tmStateReference -- (NEW) from thetransport modelTransport Model 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 )Note that tmStateReference has been added to this ASI. 6.3.3. Processing an Incoming Message This section describes the procedure followed by the Security Model whenever it receives an incoming message containing a management operation on behalf of a user from a Message Processing model. The Message Processing Model extracts some information from the wholeMsg. The abstract service primitive from a Message Processing Model to the Security Subsystem for a received message is:Harrington & Schoenwaelder ExpiresJune 16,August 9, 2007 [Page24]27] Internet-Draft SNMP Transport SubsystemDecember 2006February 2007 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 IN tmStateReference -- (NEW) from thetransport modelTransport Model OUT securityEngineID -- authoritative SNMP entity 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 response1)ThesecurityEngineID is set to a value in a model-specific manner. If the securityEngineIDtmStateReference parameter of prepareDataElements isnot utilized bypassed from thespecific model, then it should be setdispatcher to thelocal snmpEngineID, to satisfyMessage Processing Subsystem. How or if theSNMPv3 message processing model in RFC 3412 section 7.2 13a). 2) ExtractMessage Processing Subsystem modifies or utilizes thevaluecontents ofsecurityName fromtheLocal Configuration Datastore entry referenced by tmStateReference. 3) The scopedPDU componentcache isextractedmessage-processing-model-specific. The processIncomingMessage ASI passes tmStateReference from thewholeMsg. 4) The maxSizeResponseScopedPDU is calculated. ThisMessage Processing Subsystem to the Security Subsystem. If tmStateReference is present and valid, an appropriate Security Model might utilize the information in the cache. How or if the Security Subsystem utilizes the information in themaximum size allowed for a scopedPDU for a possible Response message. 5) The security datacache iscached as cachedSecurityData, sosecurity- model-specific. This may sound underspecified, but keep in mind that apossible response to thismessagecanprocessing model might have access to all the information from the cache andwill usefrom thesame security parameters. Then securityStateReference is set for subsequent referencemessage, and have no need tothis cached data. 6)call a Security Model to do any processing. ThestatusInformationMessage Processing Model might determine that the USM Security Model issetspecified in an SNMPv3 message header; the USM Security Model has no need of values in the tmStateReference cache tosuccessauthenticate anda return is made to the calling module passing backsecure theOUT parametersSNMP message, but an application might have chosen to use a secure transport such asspecified inthat provided by theprocessIncomingMsg primitive.SSH Transport Model to send the message to its destination. 7. Security Considerations This documentdescribesdefines an architectural approach thatwould permitpermits SNMP to utilize transport layer security services. Each proposedtransport modelTransport Model should discuss the security considerations of thetransport model.Transport Model. Harrington & Schoenwaelder Expires August 9, 2007 [Page 28] Internet-Draft SNMP Transport Subsystem February 2007 It is considered desirable by some industry segments that SNMPHarrington & Schoenwaelder Expires June 16, 2007 [Page 25] Internet-Draft SNMPTransportSubsystem December 2006 transport modelsModels should utilize transport layer security that addresses perfect forward secrecy at least for encryption keys. Perfect forward secrecy guarantees that compromise of long term secret keys does not result in disclosure ofpast session keys. The editors recommendpast session keys. Each proposed Transport Model should include a discussion in its security considerations of whether perfect forward security is appropriate for the Transport Model. Since the cache and LCD will contain security-related parameters, implementers should store this information (in memory or in persistent storage) in a manner to protect it from unauthorized disclosure and/or modification. Care must be taken to ensure that a SNMP engine is sending packets out over a transport using credentials that are legal for that engine to use on behalf of thateach proposed transport model includeuser. Otherwise an engine that has multiple transports open might be "tricked" into sending adiscussion in its security considerations of whether perfect forward security is appropriate for the transport model. Sincemessage through thecache and LCD will contain security-related parameters, they should be kept in protected storage.wrong transport. 8. IANA Considerations This document requires no action by IANA. 9. Acknowledgments The Integrated Security for SNMP WG would like to thank the following people for their contributions to the process: The authors of submittedsecurity modelSecurity Model proposals: Chris Elliot, Wes Hardaker,DaveDavid Harrington, Keith McCloghrie, Kaushik Narayan,DaveDavid Perkins, Joseph Salowey, and Juergen Schoenwaelder. The members of the Protocol Evaluation Team: Uri Blumenthal, Lakshminath Dondeti, Randy Presuhn, and Eric Rescorla. WG members who committed to and performed detailed reviews: Jeffrey Hutzelman 10. References 10.1. Normative References [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997.[RFC2578] McCloghrie, K., Ed., Perkins, D., Ed., and J. Schoenwaelder, Ed., "Structure of Management Information Version 2 (SMIv2)", STD 58, RFC 2578, April 1999.Harrington & Schoenwaelder Expires August 9, 2007 [Page 29] Internet-Draft SNMP Transport Subsystem February 2007 [RFC3411] Harrington, D., Presuhn, R., and B. Wijnen, "An Architecture for Describing Simple Network Management Protocol (SNMP) Management Frameworks", STD 62, RFC 3411, December 2002.Harrington & Schoenwaelder Expires June 16, 2007 [Page 26] Internet-Draft SNMP Transport Subsystem December 2006[RFC3412] Case, J., Harrington, D., Presuhn, R., and B. Wijnen, "Message Processing and Dispatching for the Simple Network Management Protocol (SNMP)", STD 62, RFC 3412, December 2002. [RFC3414] Blumenthal, U. and B. Wijnen, "User-based Security Model (USM) for version 3 of the Simple Network Management Protocol (SNMPv3)", STD 62, RFC 3414, December 2002. [RFC3417] Presuhn, R., "Transport Mappings for the Simple Network Management Protocol (SNMP)", STD 62, RFC 3417, December 2002. 10.2. Informative References [RFC2865] Rigney, C., Willens, S., Rubens, A., and W. Simpson, "Remote Authentication Dial In User Service (RADIUS)", RFC 2865, June 2000. [RFC3410] Case, J., Mundy, R., Partain, D., and B. Stewart, "Introduction and Applicability Statements for Internet-Standard Management Framework", RFC 3410, December 2002. [RFC3413] Levi, D., Meyer, P., and B. Stewart, "Simple Network Harrington & Schoenwaelder Expires August 9, 2007 [Page 30] Internet-Draft SNMP Transport Subsystem February 2007 Management Protocol (SNMP) Applications", STD 62, RFC 3413, December 2002. [RFC4366] Blake-Wilson, S., Nystrom, M., Hopwood, D., Mikkelsen, J., and T. Wright, "Transport Layer Security (TLS) Extensions", RFC 4366, April 2006. [RFC4422] Melnikov, A. and K. Zeilenga, "Simple Authentication and Security Layer (SASL)", RFC 4422, June 2006. [RFC4251] Ylonen, T. and C. Lonvick, "The Secure Shell (SSH) Protocol Architecture", RFC 4251, January 2006.[I-D.ietf-netconf-ssh] Wasserman, M. and T. Goddard, "Using the NETCONF[RFC4741] Enns, R., "NETCONF ConfigurationProtocol over Secure Shell (SSH)", draft-ietf-netconf-ssh-06Protocol", RFC 4741, December 2006. [I-D.ietf-isms-transport-security-model] Harrington, D., "Transport Security Model for SNMP", d raft-ietf-isms-transport- security-model-02 (work in progress),March 2006. Harrington & Schoenwaelder Expires June 16, 2007 [Page 27] Internet-Draft SNMP Transport Subsystem December 2006January 2007. Appendix A. Parameter Table Following is aCSVComma-separated-values (CSV) formatted matrix useful for tracking data flows into and out of the dispatcher,transport, message,Transport, Message Processing, andsecurity subsystems.Security Subsystems. This will be of most use to designers of models, to understand what information is available at which points in the processing, following the RFC3411 architecture (and this subsystem). Import this into your favorite spreadsheet or other CSV compatible application. You will need to remove lines feeds from the second, third, and fourth lines, which needed to be wrapped to fit into RFClimits.line lengths. A.1. ParameterList.csv ,Dispatcher,,,,Messaging,,,Security,,,Transport, Harrington & Schoenwaelder Expires August 9, 2007 [Page 31] Internet-Draft SNMP Transport Subsystem February 2007 ,sendPDU,returnResponse,processPDU,processResponse, prepareOutgoingMessage,prepareResponseMessage,prepareDataElements, generateRequest,processIncoming,generateResponse,sendMessage,recvMessagesendMessage,receiveMessage transportDomain,In,,,,In,,In,,,,,In transportAddress,In,,,,In,,In,,,,,In destTransportDomain,,,,,Out,Out,,,,,In, destTransportAddress,,,,,Out,Out,,,,,In, messageProcessingModel,In,In,In,In,In,In,Out,In,In,In,, securityModel,In,In,In,In,In,In,Out,In,In,In,, securityName,In,In,In,In,In,In,Out,In,Out,In,, securityLevel,In,In,In,In,In,In,Out,In,In,In,, contextEngineID,In,In,In,In,In,In,Out,,,,, contextName,In,In,In,In,In,In,Out,,,,, expectResponse,In,,,,In,,,,,,, PDU,In,In,In,In,In,In,Out,,,,, pduVersion,In,In,In,In,In,In,Out,,,,, statusInfo,Out,In,,In,,In,Out,Out,Out,Out,, errorIndication,Out,Out,,,,,Out,,,,, sendPduHandle,Out,,,In,In,,Out,,,,, maxSizeResponsePDU,,In,In,,,In,Out,,Out,,, stateReference,,In,In,,,In,Out,,,,, wholeMessage,,,,,Out,Out,In,Out,In,Out,In,In messageLength,,,,,Out,Out,In,Out,In,Out,In,In Harrington & Schoenwaelder ExpiresJune 16,August 9, 2007 [Page28]32] Internet-Draft SNMP Transport SubsystemDecember 2006 errorIndication,Out,Out,,,,,Out,,,,, sendPduHandle,Out,,,In,In,,Out,,,,, maxSizeResponsePDU,,In,In,,,In,Out,,Out,,, stateReference,,In,In,,,In,Out,,,,, wholeMessage,,,,,Out,Out,In,Out,In,Out,In,In messageLength,,,,,Out,Out,In,Out,In,Out,In,InFebruary 2007 maxMessageSize,,,,,,,,In,In,In,, globalData,,,,,,,,In,,In,, securityEngineID,,,,,,,,In,Out,In,, scopedPDU,,,,,,,,In,Out,In,, securityParameters,,,,,,,,Out,In,Out,, securityStateReference,,,,,,,,,Out,In,, pduType,,,,,,,Out,,,,, tmStateReference,,,,,Out,Out,In,,In,,In,In Appendix B. Why tmStateReference? This appendix considers why a cache-based approach was selected for passing parameters.This section may be removed from subsequent revisions of the document.There are four approaches that could be used for passing information between the Transport Model andana Security Model. 1. one could define an ASI to supplement the existing ASIs, or 2. one could add a header to encapsulate the SNMP message, 3. one could utilize fields already defined in the existing SNMPv3 message, or 4. one could pass the information in an implementation-specific cache or via a MIB module. B.1. Define an Abstract Service Interface Abstract Service Interfaces (ASIs)[RFC3411]are defined by a set of primitives that specify the services provided and the abstract dataHarrington & Schoenwaelder Expires June 16, 2007 [Page 29] Internet-Draft SNMP Transport Subsystem December 2006elements that are to be passed when the services are invoked. Defining additional ASIs to pass the security and transport information from thetransport subsystemTransport Subsystem tosecurity subsystemSecurity Subsystem has the advantage of being consistent with existing RFC3411/3412 practice, and helps to ensure that anytransport modelTransport Model proposals pass the necessary data, and do not cause side effects by creatingmodel- specificmodel-specific dependencies between itself and other models or other subsystems other than those that are clearly defined by an ASI. B.2. Using an Encapsulating Header A header could encapsulate the SNMP message to pass necessary information from the Transport Model to the dispatcher and then to amessaging security model.Harrington & Schoenwaelder Expires August 9, 2007 [Page 33] Internet-Draft SNMP Transport Subsystem February 2007 Message Processing Model. The message header would be included in the wholeMessage ASI parameter, and would be removed by a correspondingmessaging model.Message Processing Model. This would imply the (one and only) messaging dispatcher would need to be modified to determine which SNMP message version was involved, and a newmessage processing modelMessage Processing Model would need to be developed that knew how to extract the header from the message and pass it to the Security Model. B.3. Modifying Existing Fields in an SNMP Message [RFC3412]describesdefines the SNMPv3 message, which contains fields to pass security related parameters. Thetransport subsystemTransport Subsystem could use these fields in an SNMPv3 message, or comparable fields in other message formats to pass information betweentransport modelsTransport Models in different SNMP engines, and to pass information between atransport modelTransport Model and a correspondingmessaging security model.Message Processing Model. If the fields in an incoming SNMPv3 message are changed by the Transport Model before passing it to the Security Model, then the Transport Model will need to decode the ASN.1 message, modify the fields, and re-encode the message in ASN.1 before passing the message on to the message dispatcher or to the transport layer. This would require an intimate knowledge of the message format and message versions so the Transport Model knew which fields could be modified. This would seriously violate the modularity of the architecture. B.4. Using a Cache This document describes a cache, into which the Transport Model puts information about the security applied to an incoming message, and a Security Model can extract that information from the cache. Given that theremaymight be multiple TM-security caches, a tmStateReference is passed as an extra parameter in the ASIs between thetransport subsystemTransport Subsystem and thesecurity subsystem,Security Subsystem, so the Security Model knows which cache of information to consult.Harrington & Schoenwaelder Expires June 16, 2007 [Page 30] Internet-Draft SNMP Transport Subsystem December 2006This approach does create dependencies between a specific Transport Model and a corresponding specific Security Model. However, the approach of passing a model-independent reference to a model- dependent cache is consistent with the securityStateReference already being passed around in the RFC3411 ASIs. Appendix C. Open Issues NOTE to RFC editor: If this section is empty, then please remove this open issues section before publishing this document as an RFC. (If it is not empty, please send it back to the editor to resolve. Harrington & Schoenwaelder Expires August 9, 2007 [Page 34] Internet-Draft SNMP Transport Subsystem February 2007 o MUST responses go back on the same session? o How should we describe the case where a management system wants to keep session info available for inspection after a session has closed? see "Abstract Service Interfaces" o Do Informs work correctly? o How does a Transport Model know whether a message is a notification or a request/response? o cache contents - do we define this? Appendix D. Change Log NOTE to RFC editor: Please remove this change log before publishing this document as an RFC. Changes from revision -05- to -06- mostly editorial changes removed some paragraphs considered unnecessary added Updates to header modified some text to get the security details right modified text re: ASIs so they are not API-like cleaned up some diagrams cleaned up RFC2119 language added section numbers to citations to RFC3411 removed gun for political correctness Changes from revision -04- to -05- removed all objects from the MIB module. changed document status to "Standard" rather than the xml2rfc default of informational. changed mention of MD5 to SHA moved addressing style to TDomain and TAddress modified the diagrams as requested removed the "layered stack" diagrams that compared USM and a Transport Model processing removed discussion of speculative features that might exist in futuretransport modelsTransport Models removedopenSession()openSession andcloseSession()closeSession ASIs, since those aremodel-dependentmodel- dependent removed the MIB module removed the MIB boilerplateintointro (this memo defines a SMIv2 MIB ...) removed IANA considerations related to the now-gone MIB module removed security considerations related to the MIB module Harrington & Schoenwaelder Expires August 9, 2007 [Page 35] Internet-Draft SNMP Transport Subsystem February 2007 removed references needed for the MIB module changedrecvMessagereceiveMessage ASI to use origin transport domain/address updated Parameter CSV appendix Changes from revision -03- to -04- changed title from Transport Mapping Security Model Architectural Extension to Transport Subsystem modified the abstract and introduction changed TMSM to TMS changed MPSP to simply Security Model changed SMSP to simply Security Model changed TMSP to Transport Model removed MPSP and TMSP and SMSP from Acronyms sectionHarrington & Schoenwaelder Expires June 16, 2007 [Page 31] Internet-Draft SNMP Transport Subsystem December 2006modified diagrams removed most references to dispatcher functionality worked to remove dependencies between transport and security models. defined snmpTransportModel enumeration similar to snmpSecurityModel, etc. eliminated all reference to SNMPv3 msgXXXX fields changed tmSessionReference back to tmStateReference Changes from revision -02- to -03- o removed session table from MIB module o removed sessionID from ASIs o reorganized to put ASI discussions in EOP section, as was done in SSHSM o changed user auth to client auth o changed tmStateReference to tmSessionReference o modified document to meet consensus positions published by JS o * authoritative is model-specific * msgSecurityParameters usage is model-specific * msgFlags vs. securityLevel is model/implementation-specific * notifications must be able to cause creation of a session * security considerations must be model-specific * TDomain and TAddress are model-specific * MPSP changed to SMSP (SecuritymodelModel security processing) Changes from revision -01- to -02- o wrote text for session establishment requirements section. o wrote text for session maintenance requirements section. o removed section on relation to SNMPv2-MIB o updated MIB module to pass smilint Harrington & Schoenwaelder Expires August 9, 2007 [Page 36] Internet-Draft SNMP Transport Subsystem February 2007 o Added Structure of the MIB module, and other expected MIB-related sections. o updated author address o corrected spelling o removed msgFlags appendix o Removed section on implementation considerations. o started modifying the security boilerplate to address TMS and MIB security issues o reorganized slightly to better separate requirements from proposed solution. This probably needs additional work. o removed section with sample protocols and sample tmSessionReference. o Added section for acronymsHarrington & Schoenwaelder Expires June 16, 2007 [Page 32] Internet-Draft SNMP Transport Subsystem December 2006o moved section comparing parameter passing techniques to appendix. o Removed section on notification requirements. Changes from revision -00- o changed SSH references from I-Ds to RFCs o removed parameters from tmSessionReference for DTLS that revealed lower layer info. o Added TMS-MIB module o Added Internet-Standard Management Framework boilerplate o Added Structure of the MIB Module o Added MIB security considerations boilerplate (to be completed) o Added IANA Considerations o Added ASI Parameter table o Added discussion of Sessions o Added Open issues and Change Log o Rearranged sections Authors' Addresses David Harrington Huawei Technologies (USA) 1700 Alma Dr. Suite 100 Plano, TX 75075 USA Phone: +1 603 436 8634 EMail: dharrington@huawei.com Harrington & Schoenwaelder Expires August 9, 2007 [Page 37] Internet-Draft SNMP Transport Subsystem February 2007 Juergen Schoenwaelder International University Bremen Campus Ring 1 28725 Bremen Germany Phone: +49 421 200-3587 EMail: j.schoenwaelder@iu-bremen.de Harrington & Schoenwaelder ExpiresJune 16,August 9, 2007 [Page33]38] Internet-Draft SNMP Transport SubsystemDecember 2006February 2007 Full Copyright Statement Copyright (C) The IETF Trust(2006).(2007). This document is subject to the rights, licenses and restrictions contained in BCP 78, and except as set forth therein, the authors retain all their rights. This document and the information contained herein are provided on an "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY, THE IETF TRUST AND THE INTERNET ENGINEERING TASK FORCE DISCLAIM 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. Intellectual Property The IETF takes no position regarding the validity or scope of any Intellectual Property Rights or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; nor does it represent that it has made any independent effort to identify any such rights. Information on the procedures with respect to rights in RFC documents can be found in BCP 78 and BCP 79. Copies of IPR disclosures made to the IETF Secretariat and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementers or users of this specification can be obtained from the IETF on-line IPR repository at http://www.ietf.org/ipr. The IETF invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights that may cover technology that may be required to implement this standard. Please address the information to the IETF at ietf-ipr@ietf.org. Acknowledgement Funding for the RFC Editor function is provided by the IETF Administrative Support Activity (IASA). Harrington & Schoenwaelder ExpiresJune 16,August 9, 2007 [Page34]39] ----