跳到主要内容

3. 消息处理和调度元素

本节描述 Dispatcher 与 Message Processing Models 交互中使用的元素.

3.1. messageProcessingModel​

唯一标识某个 Message Processing Model 的标识符. 该标识符的值用于选择适当的 Message Processing Model, 以处理特定版本的 SNMP 消息.

3.2. pduVersion​

指示将要准备的 PDU 版本, 或从收到消息中提取出的 PDU 版本. 派生出的 Message Processing Model 决定如何向应用呈现该版本元素.

3.3. pduType​

指示 PDU 的类型. 该值从 PDU 语法派生. 可能值包括:

  • Get
  • GetNext
  • GetBulk
  • Set
  • Trap
  • Notify
  • Response
  • Report
  • InformRequest

3.4. sendPduHandle​

Dispatcher 使用的句柄, 用于将发送 PDU 的请求与来自 Message Processing Model 的对应响应或报告相关联. 每个发送 PDU 的请求都与唯一的 sendPduHandle 关联. Message Processing Model 使用该句柄将传入响应或报告与待处理请求匹配.