1 laboratorio di informatica network management 9. visita guidata alle mib standard 9.2. ipmib,...

68
1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright © 2001 by Claudio Salati ALMA MATER STUDIORUM - UNIVERSITA' DI BOLOGNA FACOLTA' DI INGEGNERIA - SEDE DI CESENA

Upload: jaden-boyd

Post on 26-Mar-2015

218 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

1

LABORATORIO DI INFORMATICANetwork Management

9. Visita guidata alle MIB standard

9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB

Claudio Salati

Copyright © 2001 by Claudio Salati

ALMA MATER STUDIORUM - UNIVERSITA' DI BOLOGNA

FACOLTA' DI INGEGNERIA - SEDE DI CESENA

Page 2: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

2

RFC 2011: MIB for IP (ipMIB)

• Deriva dalla MIB-II di SNMPv1.

• Si occupa della gestione delle protocol entity IP e ICMP

• gestione della protocol entity IP:• gestione di alcuni parametri di configurazione• monitoraggio di contatori statistici:

• contatori relativi ai datagram ricevuti e trasmessi• contatori relativi alla frammentazione di datagram in

trasmissione e al riassemblaggio di datagram in ricezione

• gestione degli indirizzi IP dell'apparato e delle relative informazioni associate (vedi prossima pagina)

• gestione della protocol entity ICMP• contatori statistici relativi ai datagram ricevuti e trasmessi

N.B.: i contatori sono oggetti semplici e non oggetti colonna: infatti si assume che ci sia una sola protocol entity IP per nodo!

Page 3: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

3

RFC 2011: MIB for IP (ipMIB)

• tabelle per la gestione degli indirizzi IP del nodo:

• monitoraggio della tabella degli indirizzi IP del nodo e dei relativi parametri associati

• in particolare: sottorete, cioe' interfaccia in ifTable cui l'indirizzo IP e' relativo

N.B.: la tabella e' accessibile solo in lettura, percio' la configurazione degli indirizzi IP di un nodo deve essere effettuata non tramite SNMP ma per altra via (e.g. consolle locale)

• gestione (lettura/scrittura) della tabella di associazione tra indirizzi IP e relativi indirizzi di sottorete

N.B.: la gestione della tabella di routing non e' di pertinenza di questa MIB ma della ipForward MIB (RFC 2096)

Page 4: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

4

RFC 2011: MIB for IP (ipMIB), ipGroup

mib-2 = 1.3.6.1.2.1 ip (4)

ipForwarding (1)

ipInReceives (3)

ipInHdrErrors (4)

ipInAddrErrors (5)

ipForwDatagrams (6)

ipInUnknownProtos (7)

ipInDiscards (8)

ipDefaultTTL (2)

ipInDelivers (9)

Parametri di configurazione

Contatori di performance in ricezione

ipReasmTimeout (13)

Page 5: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

5

RFC 2011: MIB for IP (ipMIB), ipGroup

mib-2 = 1.3.6.1.2.1 ip (4)

ipOutRequests (10)

ipOutDiscards (11)

ipOutNoRoutes (12)

ipReasmReqds (14)

ipReasmFails (16)

ipFragOKs (17)

ipFragFails (18)

ipFragCreates (19)

ipReasmOKs (15)

Contatori di performance in trasmissione

Contatori di performance per il riassemblaggio

Contatori di performance per la frammentazione

Page 6: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

6

RFC 2011: MIB for IP (ipMIB), ipGroup

mib-2 = 1.3.6.1.2.1 ip (4)

ipAddrTable (20) ipAddrEntry (1)

ipAdEntAddr (1)

ipAdEntIfIndex (2)

ipAdEntNetMask (3)

ipAdEntBcastAddr (4)

ipAdEntReasmMaxSize (5)

ipNetToMediaTable (22) ipNetToMediaEntry(1)

ipNetToMediaIfIndex (1)

ipNetToMediaPhysAddress (2)

ipNetToMediaNetAddress (3)

ipNetToMediaType(4)

ipRoutingDiscards (23)

Page 7: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

7

RFC 2011: ipMIB - ipGroup, configurazione della protocol entity

ipForwarding OBJECT-TYPE SYNTAX INTEGER {

forwarding(1), -- acting as a router notForwarding(2) -- NOT acting as a

router } MAX-ACCESS read-write STATUS current DESCRIPTION

"The indication of whether this entity is acting as an IP router in respect to the forwarding of datagrams received by, but not addressed to, this entity.

• IP routers forward datagrams.• IP hosts do not (except those source-routed via the host)."

::= { ip 1 }

Page 8: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

8

RFC 2011: ipMIB - ipGroup, configurazione della protocol entity

ipDefaultTTL OBJECT-TYPE SYNTAX INTEGER (1..255) MAX-ACCESS read-write STATUS current DESCRIPTION

"The default value inserted into the Time-To-Live field of the IP header of datagrams originated at this entity, whenever a TTL value is not supplied by the transport layer protocol."

::= { ip 2 }

ipReasmTimeout OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-only STATUS current DESCRIPTION

"The maximum number of seconds which received fragments are held while they are awaiting reassembly at this entity."-- notare che l'oggetto e' read-only, quindi il parametro non e' configurabile-- tramite SNMP ma solo per via locale!

::= { ip 13 }

Page 9: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

9

RFC 2011: ipMIB - ipGroup, contatori relativi ai datagram ricevuti

ipInReceives OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION

"The total number of input datagrams received from interfaces, including those received in error."

::= { ip 3 }

ipInHdrErrors OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION

"The number of input datagrams discarded due to errors in their IP headers, including bad checksums, version number mismatch, other format errors, time-to-live exceeded, errors discovered in processing their IP options, etc."

::= { ip 4 }

Page 10: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

10

RFC 2011: ipMIB - ipGroup, contatori relativi ai datagram ricevuti

ipInAddrErrors OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION

"The number of input datagrams discarded because the IP address in their IP header's destination field was not a valid address to be received at this entity.

• This count includes invalid addresses (e.g., 0.0.0.0) and addresses of unsupported Classes (e.g., Class E).

• For entities which are not IP routers and therefore do not forward datagrams (cioe’ per host IP), this counter includes datagrams discarded because the destination address was not a local address."

::= { ip 5 }

Page 11: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

11

RFC 2011: ipMIB - ipGroup, contatori relativi ai datagram ricevuti

ipForwDatagrams OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION

"The number of input datagrams for which this entity was not their final IP destination, as a result of which an attempt was made to find a route to forward them to that final destination.

In entities which do not act as IP routers, this counter will include only those packets which were Source-Routed via this entity, and the Source-Route option processing was successful."

::= { ip 6 }

ipInUnknownProtos OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION

"The number of locally-addressed datagrams received successfully but discarded because of an unknown or unsupported protocol."

::= { ip 7 }

Page 12: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

12

RFC 2011: ipMIB - ipGroup, contatori relativi ai datagram ricevuti

ipInDiscards OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION

"The number of input IP datagrams for which no problems were encountered to prevent their continued processing, but which were discarded (e.g., for lack of buffer space).

• Note that this counter does not include any datagrams discarded while awaiting re-assembly."

::= { ip 8 }

ipInDelivers OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION

"The total number of input datagrams successfully delivered to IP user-protocols (including ICMP)."

::= { ip 9 }

Page 13: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

13

RFC 2011: ipMIB - ipGroup, contatori relativi ai datagram trasmessi

ipOutRequests OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION

"The total number of IP datagrams which local IP user-protocols (including ICMP) supplied to IP in requests for transmission.

• Note that this counter does not include any datagrams counted in ipForwDatagrams."

::= { ip 10 }

Page 14: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

14

RFC 2011: ipMIB - ipGroup, contatori relativi ai datagram trasmessi

ipOutDiscards OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION

"The number of output IP datagrams for which no problem was encountered to prevent their transmission to their destination, but which were discarded (e.g., for lack of buffer space).

• Note that this counter would include datagrams counted in ipForwDatagrams if any such packets met this (discretionary) discard criterion."

::= { ip 11 }

Page 15: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

15

RFC 2011: ipMIB - ipGroup, contatori relativi ai datagram trasmessi

ipOutNoRoutes OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION

"The number of IP datagrams discarded because no route could be found to transmit them to their destination.

• Note that this counter includes any packets counted in ipForwDatagrams which meet this 'no-route' criterion.

• Note that this includes any datagrams which a host cannot route because all of its default routers are down."

::= { ip 12 }

Page 16: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

16

RFC 2011: ipMIB - ipGroup, contatori relativi al riassemblaggio

ipReasmReqds OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION

"The number of IP fragments received which needed to be reassembled at this entity."

::= { ip 14 }

ipReasmOKs OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION

"The number of IP datagrams successfully re-assembled." ::= { ip 15 }

Page 17: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

17

RFC 2011: ipMIB - ipGroup, contatori relativi al riassemblaggio

ipReasmFails OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION

"The number of failures detected by the IP re-assembly algorithm (for whatever reason: timed out, errors, etc).

• Note that this is not necessarily a count of discarded IP fragments since some algorithms (notably the algorithm in RFC 815) can lose track of the number of fragments by combining them as they are received."

::= { ip 16 }

Page 18: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

18

RFC 2011: ipMIB - ipGroup, contatori relativi alla frammentazione

ipFragOKs OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION

"The number of IP datagrams that have been successfully fragmented at this entity."

::= { ip 17 }

ipFragFails OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION

"The number of IP datagrams that have been discarded because they needed to be fragmented at this entity but could not be, e.g., because their Don't Fragment flag was set."

::= { ip 18 }

Page 19: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

19

RFC 2011: ipMIB - ipGroup, contatori relativi alla frammentazione

ipFragCreates OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION

"The number of IP datagram fragments that have been generated as a result of fragmentation at this entity."

::= { ip 19 }

Page 20: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

20

RFC 2011: ipMIB - ipGroup, IP address table

ipAddrTable OBJECT-TYPE SYNTAX SEQUENCE OF IpAddrEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION

"The table of addressing information relevant to this entity's IP addresses." ::= { ip 20 }

ipAddrEntry OBJECT-TYPE SYNTAX IpAddrEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION

"The addressing information for one of this entity's IP addresses." INDEX { ipAdEntAddr } ::= { ipAddrTable 1 }

IpAddrEntry ::= SEQUENCE { ipAdEntAddr IpAddress,ipAdEntIfIndex INTEGER,ipAdEntNetMask IpAddress,ipAdEntBcastAddr INTEGER,ipAdEntReasmMaxSize INTEGER }

Page 21: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

21

RFC 2011: ipMIB - ipGroup, IP address table

ipAdEntAddr OBJECT-TYPE SYNTAX IpAddress MAX-ACCESS read-only STATUS current DESCRIPTION

"The IP address to which this entry's addressing information pertains." ::= { ipAddrEntry 1 }

ipAdEntIfIndex OBJECT-TYPE SYNTAX INTEGER (1..2147483647) MAX-ACCESS read-only STATUS current DESCRIPTION

"The index value which uniquely identifies the interface to which this entry is applicable.

The interface identified by a particular value of this index is the same interface as identified by the same value of RFC 2233's ifIndex."

::= { ipAddrEntry 2 }

Page 22: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

22

RFC 2011: ipMIB - ipGroup, IP address table

ipAdEntNetMask OBJECT-TYPE SYNTAX IpAddress MAX-ACCESS read-only STATUS current DESCRIPTION

"The subnet mask associated with the IP address of this entry.• The value of the mask is an IP address with all the network bits set to

1 and all the hosts bits set to 0." ::= { ipAddrEntry 3 }

Page 23: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

23

RFC 2011: ipMIB - ipGroup, IP address table

ipAdEntBcastAddr OBJECT-TYPE SYNTAX INTEGER (0..1) MAX-ACCESS read-only STATUS current DESCRIPTION

"The value of the least-significant bit in the IP broadcast address used for sending datagrams on the (logical) interface associated with the IP address of this entry.

• For example, when the Internet standard all-ones broadcast address is used, the value will be 1.

• This value applies to both the subnet and network broadcasts addresses used by the entity on this (logical) interface."

::= { ipAddrEntry 4 }

Page 24: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

24

RFC 2011: ipMIB - ipGroup, IP address table

ipAdEntReasmMaxSize OBJECT-TYPE SYNTAX INTEGER (0..65535) MAX-ACCESS read-only STATUS current DESCRIPTION

"The size of the largest IP datagram which this entity can re-assemble from incoming IP fragmented datagrams received on this interface."

::= { ipAddrEntry 5 }

Page 25: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

25

RFC 2011: ipMIB - ipGroup, IP address translation table

ipNetToMediaTable OBJECT-TYPE SYNTAX SEQUENCE OF IpNetToMediaEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION

"The IP Address Translation table used for mapping from IP addresses to physical addresses."

::= { ip 22 }

• la tabella contiene l'associazione tra • ciascuno degli indirizzi IP del nodo e• l'indirizzo di sottorete corrispondente (relativamente alla sottorete

cui l'indirizzo IP e' associato: vedi tabella ipAddrTable)

• ci sono sottoreti per le quali la traduzione non avviene in modo tabellare ma, ad es., algoritmico:

• in questo caso non c'e' nessuna entry relativa alla sottorete nella tabella ipNetToMediaEntry

Page 26: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

26

RFC 2011: ipMIB - ipGroup, IP address translation table

ipNetToMediaEntry OBJECT-TYPE SYNTAX IpNetToMediaEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION

"Each entry contains one IpAddress to 'physical' address equivalence." INDEX { ipNetToMediaIfIndex, ipNetToMediaNetAddress } ::= { ipNetToMediaTable 1 }

IpNetToMediaEntry ::= SEQUENCE { ipNetToMediaIfIndex INTEGER, ipNetToMediaPhysAddress PhysAddress, ipNetToMediaNetAddress IpAddress, ipNetToMediaType INTEGER }

Page 27: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

27

RFC 2011: ipMIB - ipGroup, IP address translation table

ipNetToMediaIfIndex OBJECT-TYPE SYNTAX INTEGER (1..2147483647) MAX-ACCESS read-create STATUS current DESCRIPTION

"The interface on which this entry's equivalence is effective. The interface identified by a particular value of this index is the same

interface as identified by the same value of RFC 2233's ifIndex." ::= { ipNetToMediaEntry 1 }

ipNetToMediaPhysAddress OBJECT-TYPE SYNTAX PhysAddress MAX-ACCESS read-create STATUS current DESCRIPTION

"The media-dependent 'physical' address." ::= { ipNetToMediaEntry 2 }

Page 28: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

28

RFC 2011: ipMIB - ipGroup, IP address translation table

ipNetToMediaNetAddress OBJECT-TYPE SYNTAX IpAddress MAX-ACCESS read-create STATUS current DESCRIPTION

"The IpAddress corresponding to the media-dependent 'physical' address." ::= { ipNetToMediaEntry 3 }

Page 29: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

29

RFC 2011: ipMIB - ipGroup, IP address translation table

ipNetToMediaType OBJECT-TYPE SYNTAX INTEGER { other(1), -- none of the following invalid(2), -- an invalidated mapping dynamic(3), static(4) } MAX-ACCESS read-create STATUS current DESCRIPTION

"The type of mapping.• Setting this object to the value invalid(2) has the effect of invalidating

the corresponding entry in the ipNetToMediaTable. That is, it effectively disassociates the interface identified with said entry from the mapping identified with said entry.

• It is an implementation-specific matter as to whether the agent removes an invalidated entry from the table.

• Accordingly, management stations must be prepared to receive tabular information from agents that corresponds to entries not currently in use.

• Proper interpretation of such entries requires examination of the relevant ipNetToMediaType object."

::= { ipNetToMediaEntry 4 }

Page 30: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

30

RFC 2011: MIB for IP (ipMIB), icmpGroup

mib-2 = 1.3.6.1.2.1 icmp (5)

icmpInMsgs (1)

icmpInErrors (2)

icmpInDestUnreachs (3)

icmpInTimeExcds (4)

icmpInParmProbs (5)

icmpInRedirects (7)

icmpInEchos (8)

icmpInEchoReps (9)

icmpInTimestamps (10)

icmpInSrcQuenchs (6)

icmpInTimestampsReps (11)

icmpInAddrMasks (12)

icmpInAddrMasksReps (13)

Page 31: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

31

RFC 2011: MIB for IP (ipMIB), icmpGroup

mib-2 = 1.3.6.1.2.1 icmp (5)

icmpOutMsgs (14)

icmpOutErrors (15)

icmpOutDestUnreachs (16)

icmpOutTimeExcds (17)

icmpOutParmProbs (18)

icmpOutRedirects (20)

icmpOutEchos (21)

icmpOutEchoReps (22)

icmpOutTimestamps (23)

icmpOutSrcQuenchs (19)

icmpOutTimestampsReps (24)

icmpOutAddrMasks (25)

icmpOutAddrMasksReps (26)

Page 32: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

32

RFC 2096: MIB della routing table IP (ipForward MIB)

• sostituisce la ipRouteTable della MIB IP

• e' costituita di

• una tabella: ipCidrRouteTable

• uno scalare: ipCidrRouteNumber, che indica il numero di righe significative di ipCidrRouteTable

• ipCidrRouteTable descrive la tabella di instradamento utilizzata dall'apparato, comunque essa sia stata determinata:

• attraverso un protocollo di routing

• per via amministrativa notare che la tabella consente una gestione dinamica

(parziale) da parte del manager

• notare che ad una singola destinazione possono essere associati piu' instradamenti

Page 33: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

33

RFC 2096: MIB delle routing table IP (ipForward MIB)mib-2 = 1.3.6.1.2.1

ip (4)

ipForward (24)

ipCidrRouteEntry (1)

ipCidrRouteDest (1)

ipCidrRouteMask (2)

ipCidrRouteTos (3)

ipCidrRouteNextHop (4)

ipCidrRouteIfIndex (5)

ipCidrRouteType (6)

ipCidrRouteProto (7)

ipCidrRouteAge (8)

ipCidrRouteInfo (9)

ipCidrRouteNumber (3)

ipCidrRouteTable (4)

ipCidrRouteNextHopAS (10)

ipCidrRouteMetric1 (11)

ipCidrRouteMetric2 (12)

ipCidrRouteMetric3 (13)

ipCidrRouteMetric4 (14)

ipCidrRouteMetric5 (15)

ipCidrRouteStatus (16)

Page 34: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

34

RFC 2096: MIB delle routing table IP (ipForward MIB)

ipCidrRouteNumber OBJECT-TYPE SYNTAX Gauge32 MAX-ACCESS read-only STATUS current DESCRIPTION

"The number of current ipCidrRouteTable entries that are not invalid."

::= { ipForward 3 }

Page 35: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

35

RFC 2096: MIB delle routing table IP (ipForward MIB)

ipCidrRouteTable OBJECT-TYPE SYNTAX SEQUENCE OF IpCidrRouteEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION

"This entity's IP Routing table." REFERENCE

"RFC 1213 MIB-II, Section 6.6, The IP Group" ::= { ipForward 4 }

ipCidrRouteEntry OBJECT-TYPE SYNTAX IpCidrRouteEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION

"A particular route to a particular destination, under a particular policy." INDEX { ipCidrRouteDest, ipCidrRouteMask, ipCidrRouteTos, ipCidrRouteNextHop } ::= { ipCidrRouteTable 1 }

Page 36: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

36

RFC 2096: MIB delle routing table IP (ipForward MIB)

IpCidrRouteEntry ::= SEQUENCE { ipCidrRouteDest IpAddress, ipCidrRouteMask IpAddress, ipCidrRouteTos Integer32, ipCidrRouteNextHop IpAddress, ipCidrRouteIfIndex Integer32, ipCidrRouteType INTEGER, ipCidrRouteProto INTEGER, ipCidrRouteAge Integer32, ipCidrRouteInfo OBJECT

IDENTIFIER, ipCidrRouteNextHopAS Integer32, ipCidrRouteMetric1 Integer32, ipCidrRouteMetric2 Integer32, ipCidrRouteMetric3 Integer32, ipCidrRouteMetric4 Integer32, ipCidrRouteMetric5 Integer32, ipCidrRouteStatus RowStatus }

Page 37: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

37

RFC 2096: MIB delle routing table IP (ipForward MIB)

ipCidrRouteDest OBJECT-TYPE

SYNTAX IpAddress MAX-ACCESS read-only STATUS current DESCRIPTION

"The destination IP address of this route.• This object may not take a Multicast (Class D) address

value.• Any assignment (implicit or otherwise) of an instance of this

object to a value x must be rejected if the bitwise logical-AND of x with the value of the corresponding instance of the ipCidrRouteMask object is not equal to x."

::= { ipCidrRouteEntry 1 }

Page 38: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

38

RFC 2096: MIB delle routing table IP (ipForward MIB)

ipCidrRouteMask OBJECT-TYPE

SYNTAX IpAddress MAX-ACCESS read-only STATUS current DESCRIPTION

"Indicate the mask to be logical-ANDed with the destination address before being compared to the value in the ipCidrRouteDest field.

• For those systems that do not support arbitrary subnet masks, an agent constructs the value of the ipCidrRouteMask by reference to the IP Address Class.

• Any assignment (implicit or otherwise) of an instance of this object to a value x must be rejected if the bitwise logical-AND of x with the value of the corresponding instance of the ipCidrRouteDest object is not equal to ipCidrRouteDest."

::= { ipCidrRouteEntry 2 }

Page 39: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

39

RFC 2096: MIB delle routing table IP (ipForward MIB)

ipCidrRouteTos OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-only STATUS current DESCRIPTION

"The policy specifier is the IP TOS Field. The encoding of IP TOS is as specified by the following convention.Zero indicates the default path if no more specific policy applies.

+-----+-----+-----+-----+-----+-----+-----+-----+ | PRECEDENCE | TYPE OF SERVICE | 0 | +-----+-----+-----+-----+-----+-----+-----+-----+

IP TOS IP TOS IP TOS Field Policy Field Policy Field Policy Contents Code Contents Code Contents Code 0 0 0 0 ==> 0 0 0 0 1 ==> 2 0 0 1 0 ==> 4 0 0 1 1 ==> 6 0 1 0 0 ==> 8 0 1 0 1 ==> 10 0 1 1 0 ==> 12 0 1 1 1 ==> 14 1 0 0 0 ==> 16 1 0 0 1 ==> 18 1 0 1 0 ==> 20 1 0 1 1 ==> 22 1 1 0 0 ==> 24 1 1 0 1 ==> 26 1 1 1 0 ==> 28 1 1 1 1 ==> 30" ::= { ipCidrRouteEntry 3 }

Page 40: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

40

RFC 2096: MIB delle routing table IP (ipForward MIB)

ipCidrRouteNextHop OBJECT-TYPE SYNTAX IpAddress MAX-ACCESS read-only STATUS current DESCRIPTION "

• On remote routes, the address of the next system en route;• Otherwise, 0.0.0.0."

::= { ipCidrRouteEntry 4 }

ipCidrRouteIfIndex OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-create STATUS current DESCRIPTION

"The ifIndex value which identifies the local interface through which the next hop of this route should be reached."

DEFVAL { 0 } ::= { ipCidrRouteEntry 5 }

Page 41: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

41

RFC 2096: MIB delle routing table IP (ipForward MIB)

ipCidrRouteType OBJECT-TYPE SYNTAX INTEGER { other (1), -- not specified by this MIB reject (2), -- route which discards traffic local (3), -- local interface remote (4) -- remote destination } MAX-ACCESS read-create STATUS current DESCRIPTION

"The type of route. Note that • local(3) refers to a route for which the next hop is the final

destination; • remote(4) refers to a route for which the next hop is not the final

destination.• Routes which do not result in traffic forwarding or rejection should

not be displayed even if the implementation keeps them stored internally.

• reject (2) refers to a route which, if matched, discards the message as unreachable. This is used in some protocols as a means of correctly aggregating routes."

::= { ipCidrRouteEntry 6 }

Page 42: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

42

RFC 2096: MIB delle routing table IP (ipForward MIB)ipCidrRouteProto OBJECT-TYPE SYNTAX INTEGER { other (1), -- not specified, local (2), -- local interface netmgmt (3), -- static route, icmp (4), -- result of ICMP

Redirect -- the following are all dynamic routing protocols egp (5), -- Exterior Gateway Protocol ggp (6), -- Gateway-Gateway Protocol hello (7), -- FuzzBall HelloSpeak rip (8), -- Berkeley RIP or RIP-II isIs (9), -- Dual IS-IS -- esIs (10), -- ISO 9542 ciscoIgrp (11), -- Cisco IGRP -- bbnSpfIgp (12), -- BBN SPF

IGP ospf (13), -- Open Shortest Path First bgp (14), -- Border Gateway Protocol idpr (15), -- InterDomain Policy Routing ciscoEigrp (16) -- Cisco EIGRP } MAX-ACCESS read-only STATUS current DESCRIPTION

"The routing mechanism via which this route was learned. Inclusion of values for gateway routing protocols is not intended to

imply that hosts should support those protocols." ::= { ipCidrRouteEntry 7 }

Page 43: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

43

RFC 2096: MIB delle routing table IP (ipForward MIB)

ipCidrRouteAge OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-only STATUS current DESCRIPTION

"The number of seconds since this route was last updated or otherwise determined to be correct.

Note that no semantics of 'too old' can be implied except through knowledge of the routing protocol by which the route was learned."

DEFVAL { 0 } ::= { ipCidrRouteEntry 8 }

Page 44: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

44

RFC 2096: MIB delle routing table IP (ipForward MIB)ipCidrRouteInfo OBJECT-TYPE SYNTAX OBJECT IDENTIFIER MAX-ACCESS read-create STATUS current DESCRIPTION

"A reference to MIB definitions specific to the particular routing protocol which is responsible for this route, as determined by the value specified in the route's ipCidrRouteProto value.

• If this information is not present, its value should be set to the OBJECT IDENTIFIER { 0 0 }, which is a syntactically valid object identifier, and any implementation conforming to ASN.1 and the BER must be able to generate and recognize this value."

::= { ipCidrRouteEntry 9 }

Page 45: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

45

RFC 2096: MIB delle routing table IP (ipForward MIB)

ipCidrRouteNextHopAS OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-create STATUS current DESCRIPTION

"The Autonomous System Number of the Next Hop.• The semantics of this object are determined by the routing-

protocol specified in the route's ipCidrRouteProto value.• When this object is unknown or not relevant its value should

be set to zero." DEFVAL { 0 } ::= { ipCidrRouteEntry 10 }

• D.E. Comer, Internetworking with TCP/IP: For purposes of routing, a group of networks and gateways controlled by a single administrative authority is called an autonomous system.

Page 46: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

46

RFC 2096: MIB delle routing table IP (ipForward MIB)

ipCidrRouteMetric1 OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-create STATUS current DESCRIPTION

"The primary routing metric for this route. The semantics of this metric are determined by the routing-protocol specified in the route's ipCidr-RouteProto value. If this metric is not used, its value should be set to -1."

DEFVAL { -1 } ::= { ipCidrRouteEntry 11 }

ipCidrRouteMetric2 OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-create STATUS current DESCRIPTION

"An alternate routing metric for this route. The semantics of this metric are determined by the routing-protocol specified in the route's ipCidr-RouteProto value. If this metric is not used, its value should be set to -1."

DEFVAL { -1 } ::= { ipCidrRouteEntry 12 }

Page 47: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

47

RFC 2096: MIB delle routing table IP (ipForward MIB)

ipCidrRouteStatus OBJECT-TYPE SYNTAX RowStatus MAX-ACCESS read-create STATUS current DESCRIPTION

"The row status variable, used according to row installation and removal conventions."

::= { ipCidrRouteEntry 16 }

Page 48: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

48

RFC 2096: MIB delle routing table IP (ipForward MIB)

ipForwardCidrRouteGroup OBJECT-GROUP OBJECTS { ipCidrRouteNumber, ipCidrRouteDest, ipCidrRouteMask, ipCidrRouteTos, ipCidrRouteNextHop, ipCidrRouteIfIndex, ipCidrRouteType, ipCidrRouteProto, ipCidrRouteAge, ipCidrRouteInfo, ipCidrRouteNextHopAS, ipCidrRouteMetric1, ipCidrRouteMetric2, ipCidrRouteMetric3, ipCidrRouteMetric4, ipCidrRouteMetric5, ipCidrRouteStatus } STATUS current DESCRIPTION

"The CIDR Route Table." ::= { ipForwardGroups 3 }

ipForwardCompliance MODULE-COMPLIANCE STATUS current DESCRIPTION

"The compliance statement for SNMPv2 entities which implement the ipForward MIB."

MODULE -- this module MANDATORY-GROUPS { ipForwardCidrRouteGroup } ::= { ipForwardCompliances 1 }

Page 49: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

49

RFC 2012: MIB for TCP (tcpMIB)

• Deriva dalla MIB-II di SNMPv1.

• Si occupa della gestione della protocol entity TCP

• monitoraggio di alcuni parametri di configurazione della protocol entity

• monitoraggio di contatori statistici:• contatori relativi ai PDU ricevuti e trasmessi

• monitoraggio dei clienti attivi della protocol entity e gestione delle connessioni correnti

• contiene solo

• degli scalari (per il monitoraggio delle performance)

• la tabella tcpConnTable • per il monitoraggio delle connessioni aperte• per il monitoraggio dei clienti attivi di TCP

Page 50: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

50

RFC 2012: MIB for TCP (tcpMIB)

mib-2 = 1.3.6.1.2.1 tcp (6)

tcpRtoAlgorithm (1)

tcpRtoMax (3)

tcpMaxConn (4)

tcpActiveOpens (5)

tcpPassiveOpens (6)

tcpAttemptFails (7)

tcpEstabResets (8)

tcpRtoMin (2)

tcpCurrEstab (9)

Parametri di configurazione

Contatori di performance relativi allo stato delle connessioni

Page 51: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

51

RFC 2012: MIB for TCP (tcpMIB)

mib-2 = 1.3.6.1.2.1 tcp (6)

tcpInSegs (10)

tcpRetransSegs (12)

tcpOutSegs (11)

Contatori di performance relativi alla trasmissione e ricezione

tcpConnTable (13) tcpConnEntry (1)

tcpConnState (1)

tcpConnLocalAddress (2)

tcpConnLocalPort (3)

tcpConnRemAddress (4)

tcpConnRemPort (5)

tcpOutRsts (15)

tcpInErrs (14)

Page 52: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

52

RFC 2012: MIB for TCP (tcpMIB)

tcpRtoAlgorithm OBJECT-TYPE SYNTAX INTEGER { other (1), -- none of the following constant (2), -- a constant rto rsre (3), -- MIL-STD-1778, Appendix B vanj (4) -- Van Jacobson's algorithm

[5] } MAX-ACCESS read-only STATUS current DESCRIPTION

"The algorithm used to determine the timeout value used for retransmitting unacknowledged octets."

::= { tcp 1 }

Page 53: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

53

RFC 2012: MIB for TCP (tcpMIB)

tcpRtoMin OBJECT-TYPE SYNTAX Integer32 UNITS "milliseconds" MAX-ACCESS read-only STATUS current DESCRIPTION

"The minimum value permitted by a TCP implementation for the retransmission timeout, measured in milliseconds.

• More refined semantics for objects of this type depend upon the algorithm used to determine the retransmission timeout.

• In particular, when the timeout algorithm is rsre(3), an object of this type has the semantics of the LBOUND quantity described in RFC 793."

::= { tcp 2 }

Page 54: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

54

RFC 2012: MIB for TCP (tcpMIB)

tcpRtoMax OBJECT-TYPE SYNTAX Integer32 UNITS "milliseconds" MAX-ACCESS read-only STATUS current DESCRIPTION

"The maximum value permitted by a TCP implementation for the retransmission timeout, measured in milliseconds.

• More refined semantics for objects of this type depend upon the algorithm used to determine the retransmission timeout.

• In particular, when the timeout algorithm is rsre(3), an object of this type has the semantics of the UBOUND quantity described in RFC 793."

::= { tcp 3 }

Page 55: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

55

RFC 2012: MIB for TCP (tcpMIB)

tcpMaxConn OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-only STATUS current DESCRIPTION

"The limit on the total number of TCP connections the entity can support.

In entities where the maximum number of connections is dynamic, this object should contain the value -1."

::= { tcp 4 }

Page 56: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

56

RFC 2012: MIB for TCP (tcpMIB)

-- The TCP connection table contains information-- about this entity's existing TCP connections.

tcpConnTable OBJECT-TYPE SYNTAX SEQUENCE OF TcpConnEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION

"A table containing TCP connection-specific information." ::= { tcp 13 }

Page 57: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

57

RFC 2012: MIB for TCP (tcpMIB)

tcpConnEntry OBJECT-TYPE SYNTAX TcpConnEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION

"A conceptual row of the tcpConnTable containing information about a particular current TCP connection.

• Each row of this table is transient, in that it ceases to exist when (or soon after) the connection makes the transition to the CLOSED state."

INDEX { tcpConnLocalAddress, tcpConnLocalPort, tcpConnRemAddress, tcpConnRemPort } ::= { tcpConnTable 1 }

Page 58: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

58

RFC 2012: MIB for TCP (tcpMIB)

TcpConnEntry ::= SEQUENCE { tcpConnState INTEGER, tcpConnLocalAddress IpAddress, tcpConnLocalPort INTEGER, tcpConnRemAddress IpAddress, tcpConnRemPort INTEGER }

Page 59: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

59

RFC 2012: MIB for TCP (tcpMIB)

tcpConnState OBJECT-TYPE SYNTAX INTEGER {

closed(1), listen(2), synSent(3),synReceived(4), established(5), finWait1(6),finWait2(7), closeWait(8), lastAck(9),closing(10), timeWait(11),

deleteTCB(12) } MAX-ACCESS read-write STATUS current DESCRIPTION

"The state of this TCP connection.• The only value which may be set by a management station is deleteTCB(12).

Accordingly, it is appropriate for an agent to return a 'badValue' response if a management station attempts to set this object to any other value.

• If a management station sets this object to the value deleteTCB(12), then this has the effect of deleting the TCB (as defined in RFC 793) of the corresponding connection on the managed node, resulting in immediate termination of the connection.

• As an implementation-specific option, a RST segment may be sent from the managed node to the other TCP endpoint (note however that RST segments are not sent reliably)."

::= { tcpConnEntry 1 }

Page 60: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

60

RFC 2012: MIB for TCP (tcpMIB)

tcpConnLocalAddress OBJECT-TYPE SYNTAX IpAddress MAX-ACCESS read-only STATUS current DESCRIPTION

"The local IP address for this TCP connection. In the case of a connection in the listen state which is willing to

accept connections for any IP interface associated with the node, the value 0.0.0.0 is used."

::= { tcpConnEntry 2 }

tcpConnLocalPort OBJECT-TYPE SYNTAX INTEGER (0..65535) MAX-ACCESS read-only STATUS current DESCRIPTION

"The local port number for this TCP connection." ::= { tcpConnEntry 3 }

Page 61: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

61

RFC 2012: MIB for TCP (tcpMIB)

tcpConnRemAddress OBJECT-TYPE SYNTAX IpAddress MAX-ACCESS read-only STATUS current DESCRIPTION

"The remote IP address for this TCP connection." ::= { tcpConnEntry 4 }

tcpConnRemPort OBJECT-TYPE SYNTAX INTEGER (0..65535) MAX-ACCESS read-only STATUS current DESCRIPTION

"The remote port number for this TCP connection." ::= { tcpConnEntry 5 }

Page 62: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

62

RFC 2013: MIB for UDP (udpMIB)

• Deriva dalla MIB-II di SNMPv1.

• Si occupa della gestione della protocol entity UDP

• monitoraggio di contatori statistici:

• contatori relativi ai datagram ricevuti e trasmessi

• monitoraggio dei clienti attivi di UDP

• contiene solo degli scalari e la tabella udpTable per il monitoraggio dei clienti attivi della protocol entity UDP

Page 63: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

63

RFC 2013: MIB for UDP (udpMIB)

mib-2 = 1.3.6.1.2.1 udp (7)

udpInDatagrams (1)

udpNoPorts (2)

udpInErrors (3)

udpOutDatagrams (4)

Contatori di performance

udpTable (5) udpEntry (1)

udpLocalAddress (1)

udpLocalPort (2)

Page 64: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

64

RFC 2013: MIB for UDP (udpMIB)

udpInDatagrams OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION

"The total number of UDP datagrams delivered to UDP users." ::= { udp 1 }

udpNoPorts OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION

"The total number of received UDP datagrams for which there was no application at the destination port."

::= { udp 2 }

Page 65: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

65

RFC 2013: MIB for UDP (udpMIB)

udpInErrors OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION

"The number of received UDP datagrams that could not be delivered for reasons other than the lack of an application at the destination port."

::= { udp 3 }

udpOutDatagrams OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION

"The total number of UDP datagrams sent from this entity." ::= { udp 4 }

Page 66: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

66

RFC 2013: MIB for UDP (udpMIB)

-- The UDP listener table contains information about this entity's UDP-- end-points on which a local application is currently accepting-- datagrams.

udpTable OBJECT-TYPE SYNTAX SEQUENCE OF UdpEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION

"A table containing UDP listener information." ::= { udp 5 }

Page 67: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

67

RFC 2013: MIB for UDP (udpMIB)

udpEntry OBJECT-TYPE SYNTAX UdpEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION

"Information about a particular current UDP listener." INDEX { udpLocalAddress, udpLocalPort } ::= { udpTable 1 }

UdpEntry ::= SEQUENCE { udpLocalAddress IpAddress, udpLocalPort INTEGER }

Page 68: 1 LABORATORIO DI INFORMATICA Network Management 9. Visita guidata alle MIB standard 9.2. ipMIB, ipForward MIB, tcpMIB, udpMIB Claudio Salati Copyright

68

RFC 2013: MIB for UDP (udpMIB)

udpLocalAddress OBJECT-TYPE SYNTAX IpAddress MAX-ACCESS read-only STATUS current DESCRIPTION

"The local IP address for this UDP listener.• In the case of a UDP listener which is willing to accept

datagrams for any IP interface associated with the node, the value 0.0.0.0 is used."

::= { udpEntry 1 }

udpLocalPort OBJECT-TYPE SYNTAX INTEGER (0..65535) MAX-ACCESS read-only STATUS current DESCRIPTION

"The local port number for this UDP listener." ::= { udpEntry 2 }