Passa al contenuto principale

2. Specifica

I pacchetti SNMP impostano sempre il campo Packet Type dell'intestazione IPX a 4 (ovvero Packet Exchange Packet).

2.1. Assegnazione dei socket​

Le entità del protocollo SNMP ricevono i messaggi GetRequest-PDU, GetNextRequest-PDU e SetRequest-PDU sul socket 36879 (campo Destination Socket impostato al valore esadecimale 900F), e i messaggi Trap-PDU sul socket 36880 (campo Destination Socket impostato al valore esadecimale 9010).

I messaggi GetResponse-PDU vengono indirizzati all'indirizzo IPX e al socket da cui ha avuto origine il corrispondente GetRequest-PDU, GetNextRequest-PDU o SetRequest-PDU.

2.2. Lunghezza massima dei pacchetti​

Sebbene SNMP non richieda alle implementazioni conformi di accettare messaggi la cui lunghezza supera 484 byte, si raccomanda che le implementazioni supportino una dimensione massima del messaggio SNMP di 546 byte (la dimensione massima consentita con IPX). Inoltre, questo limite è la lunghezza massima del pacchetto garantita per attraversare i router IPX che non forniscono frammentazione. Gli implementatori possono scegliere di utilizzare lunghezze di pacchetto maggiori se il massimo è noto, il che dipende dai router intermedi e/o dai protocolli intermedi del livello di collegamento dati.

2.3. Il campo agent-addr del Trap-PDU​

Il campo agent-addr in un Trap-PDU emesso da un agente SNMP dovrebbe contenere l'IpAddress 0.0.0.0. Un gestore SNMP può accertare l'origine del trap interrogando il livello di trasporto.

2.4. Rappresentazione degli indirizzi di trasporto IPX​

Vi sono occasioni in cui è necessario rappresentare un indirizzo di servizio di trasporto in una MIB. Ad esempio, la SNMP party MIB [6] utilizza un OBJECT IDENTIFIER per definire il dominio di trasporto (IP, IPX, ecc.) e un OCTET STRING per rappresentare un indirizzo all'interno di tale dominio. Le seguenti definizioni sono fornite per l'uso in tale schema.

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