2. 规范
SNMP 数据包总是将 IPX 头部中的 Packet Type 字段设置为 4 (即 Packet Exchange Packet).
2.1. 套接字分配
SNMP 协议实体将在套接字 36879 上接收 GetRequest-PDU, GetNextRequest-PDU 和 SetRequest-PDU 消息 (Destination Socket 字段设置为十六进制 900F), 并在套接字 36880 上接收 Trap-PDU 消息 (Destination Socket 字段设置为十六进制 9010).
GetResponse-PDU 消息将被发往发出相应 GetRequest-PDU, GetNextRequest-PDU 或 SetRequest-PDU 的 IPX 地址和套接字.
2.2. 最大数据包长度
尽管 SNMP 并不要求符合规范的实现接受长度超过 484 字节的消息, 但建议实现支持 546 字节的最大 SNMP 消息大小 (这是 IPX 下允许的最大大小). 此外, 该限制是保证能穿过不提供分片的 IPX 路由器的最大数据包长度. 如果已知最大值, 实现者可以选择使用更长的数据包长度, 这取决于中间路由器和/或中间数据链路层协议.
2.3. Trap-PDU 的 agent-addr 字段
由 SNMP 代理发出的 Trap-PDU 中的 agent-addr 字段应当包含 IpAddress 0.0.0.0. SNMP 管理器可以通过查询传输层来确定 trap 的来源.
2.4. IPX 传输地址表示
有时需要在 MIB 中表示传输服务地址. 例如, SNMP party MIB [6] 使用 OBJECT IDENTIFIER 定义传输域 (IP, IPX 等), 并使用 OCTET STRING 表示该域内的地址. 以下定义为在这种方案中使用而提供.
RFC1298-MIB DEFINITIONS ::= BEGIN
IMPORTS
enterprises FROM RFC1155-SMI;
novell OBJECT IDENTIFIER ::= { enterprises 23 }
transportDomains OBJECT IDENTIFIER ::= { novell 7 }
ipxTransportDomain OBJECT IDENTIFIER ::= { transportDomains 1 }
-- Authoritatively names the IPX Transport Domain
IpxTransportAddress ::= OCTET STRING (SIZE (12))
-- A textual convention denoting a transport service address in
-- the ipxTransportDomain. An IpxTransportAddress is 12 octets
-- long and comprises 3 fields, each in network-byte (high-low)
-- order.
-- The first field is 4 octets long and contains the network
-- number.
-- The next field is 6 octets long and contains the physical
-- address of the node. Since IPX can run over a variety of
-- subnet architectures, the physical node address may not
-- require all 6 octets. As specified in [2], the physical
-- node address will occupy the least significant portion of
-- the field and the most significant octets should be set
-- to zero.
-- The last field is 2 octets long and contains the socket
-- number.
END