Nessun titolo diapositiva

Download Report

Transcript Nessun titolo diapositiva

ALMA MATER STUDIORUM - UNIVERSITA' DI BOLOGNA
FACOLTA' DI INGEGNERIA - SEDE DI CESENA
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
1
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!
2
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)
3
RFC 2011: MIB for IP (ipMIB), ipGroup
mib-2 = 1.3.6.1.2.1
ip (4)
ipForwarding (1)
Parametri di configurazione
ipDefaultTTL (2)
ipReasmTimeout (13)
ipInReceives (3)
ipInHdrErrors (4)
Contatori di performance in
ricezione
ipInAddrErrors (5)
ipForwDatagrams (6)
ipInUnknownProtos (7)
ipInDiscards (8)
ipInDelivers (9)
4
RFC 2011: MIB for IP (ipMIB), ipGroup
mib-2 = 1.3.6.1.2.1
ip (4)
ipOutRequests (10)
ipOutDiscards (11)
Contatori di performance in
trasmissione
ipOutNoRoutes (12)
ipReasmReqds (14)
ipReasmOKs (15)
Contatori di performance
per il riassemblaggio
ipReasmFails (16)
ipFragOKs (17)
ipFragFails (18)
Contatori di performance
per la frammentazione
ipFragCreates (19)
5
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)
6
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 }
7
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 }
8
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 }
9
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 }
10
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."
11
::= { ip 7 }
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 userprotocols (including ICMP)."
::= { ip 9 }
12
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 }
13
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 }
14
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 }
15
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 }
16
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 }
17
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 }
18
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 }
19
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
ipAdEntIfIndex
ipAdEntNetMask
ipAdEntBcastAddr
ipAdEntReasmMaxSize
IpAddress,
INTEGER,
IpAddress,
INTEGER,
INTEGER }
20
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 }
21
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 }
22
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 }
23
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 }
24
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
25
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
}
26
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 }
27
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 }
28
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 }
29
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)
icmpInSrcQuenchs (6)
icmpInRedirects (7)
icmpInEchos (8)
icmpInEchoReps (9)
icmpInTimestamps (10)
icmpInTimestampsReps (11)
icmpInAddrMasks (12)
icmpInAddrMasksReps (13)
30
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)
icmpOutSrcQuenchs (19)
icmpOutRedirects (20)
icmpOutEchos (21)
icmpOutEchoReps (22)
icmpOutTimestamps (23)
icmpOutTimestampsReps (24)
icmpOutAddrMasks (25)
icmpOutAddrMasksReps (26)
31
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
32
RFC 2096: MIB delle routing table IP (ipForward MIB)
mib-2 = 1.3.6.1.2.1
ip (4)
ipForward (24)
ipCidrRouteNumber (3)
ipCidrRouteTable (4)
ipCidrRouteEntry (1)
ipCidrRouteDest (1)
ipCidrRouteInfo (9)
ipCidrRouteMask (2)
ipCidrRouteNextHopAS (10)
ipCidrRouteTos (3)
ipCidrRouteMetric1 (11)
ipCidrRouteNextHop (4)
ipCidrRouteMetric2 (12)
ipCidrRouteIfIndex (5)
ipCidrRouteMetric3 (13)
ipCidrRouteType (6)
ipCidrRouteMetric4 (14)
ipCidrRouteProto (7)
ipCidrRouteMetric5 (15)
ipCidrRouteAge (8)
ipCidrRouteStatus (16)
33
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 }
34
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 }
35
RFC 2096: MIB delle routing table IP (ipForward MIB)
IpCidrRouteEntry ::=
SEQUENCE {
ipCidrRouteDest
ipCidrRouteMask
ipCidrRouteTos
ipCidrRouteNextHop
ipCidrRouteIfIndex
ipCidrRouteType
ipCidrRouteProto
ipCidrRouteAge
ipCidrRouteInfo
ipCidrRouteNextHopAS
ipCidrRouteMetric1
ipCidrRouteMetric2
ipCidrRouteMetric3
ipCidrRouteMetric4
ipCidrRouteMetric5
ipCidrRouteStatus
IpAddress,
IpAddress,
Integer32,
IpAddress,
Integer32,
INTEGER,
INTEGER,
Integer32,
OBJECT IDENTIFIER,
Integer32,
Integer32,
Integer32,
Integer32,
Integer32,
Integer32,
RowStatus }
36
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 logicalAND of x with the value of the corresponding instance of the
ipCidrRouteMask object is not equal to x."
::= { ipCidrRouteEntry 1 }
37
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 logicalAND of x with the value of the corresponding instance of the
ipCidrRouteDest object is not equal to ipCidrRouteDest."
::= { ipCidrRouteEntry 2 }
38
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
Field
Policy
Contents
Code
0 0 0 0 ==>
0
0 0 1 1 ==>
6
0 1 1 0 ==> 12
1 0 0 1 ==> 18
1 1 0 0 ==> 24
1 1 1 1 ==> 30"
::= { ipCidrRouteEntry 3 }
IP TOS
Field
Policy
Contents
Code
0 0 0 1 ==>
2
0 1 0 0 ==>
8
0 1 1 1 ==> 14
1 0 1 0 ==> 20
1 1 0 1 ==> 26
IP TOS
Field
Policy
Contents
Code
0 0 1 0 ==>
4
0 1 0 1 ==> 10
1 0 0 0 ==> 16
1 0 1 1 ==> 22
1 1 1 0 ==> 28
39
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 }
40
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 }
41
RFC 2096: MIB delle routing table IP (ipForward MIB)
ipCidrRouteProto OBJECT-TYPE
SYNTAX INTEGER {
other
(1),
-- not specified,
local (2),
netmgmt
(3),
-- static route,
icmp (4),
-- 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
ciscoIgrp
(11), -- Cisco IGRP -bbnSpfIgp
ospf
(13), -- Open Shortest Path First
bgp
(14), -- Border Gateway Protocol
idpr
(15), -- InterDomain Policy Routing
ciscoEigrp (16)
-- Cisco EIGRP
}
-- local interface
-- result of ICMP Redirect
(10),
(12),
-- ISO 9542
-- BBN SPF IGP
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 }
42
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 }
43
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 }
44
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 routingprotocol 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.
45
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 ipCidrRouteProto 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 ipCidrRouteProto value. If this metric is not used, its value should be set to -1."
DEFVAL { -1 }
46
::= { ipCidrRouteEntry 12 }
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 }
47
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 }
48
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
49
RFC 2012: MIB for TCP (tcpMIB)
mib-2 = 1.3.6.1.2.1
tcp (6)
tcpRtoAlgorithm (1)
Parametri di configurazione
tcpRtoMin (2)
tcpRtoMax (3)
tcpMaxConn (4)
tcpActiveOpens (5)
tcpPassiveOpens (6)
Contatori di performance
relativi allo stato delle
connessioni
tcpAttemptFails (7)
tcpEstabResets (8)
tcpCurrEstab (9)
50
RFC 2012: MIB for TCP (tcpMIB)
mib-2 = 1.3.6.1.2.1
tcp (6)
tcpInSegs (10)
tcpOutSegs (11)
Contatori di performance
relativi alla trasmissione e
ricezione
tcpRetransSegs (12)
tcpInErrs (14)
tcpOutRsts (15)
tcpConnTable (13)
tcpConnEntry (1)
tcpConnState (1)
tcpConnLocalAddress (2)
tcpConnLocalPort (3)
tcpConnRemAddress (4)
tcpConnRemPort (5)
51
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 }
52
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 }
53
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 }
54
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 }
55
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 }
56
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 }
57
RFC 2012: MIB for TCP (tcpMIB)
TcpConnEntry ::= SEQUENCE {
tcpConnState
INTEGER,
tcpConnLocalAddress IpAddress,
tcpConnLocalPort
INTEGER,
tcpConnRemAddress IpAddress,
tcpConnRemPort
INTEGER
}
58
RFC 2012: MIB for TCP (tcpMIB)
tcpConnState OBJECT-TYPE
SYNTAX
INTEGER {
closed(1),
synReceived(4),
finWait2(7),
closing(10),
MAX-ACCESS read-write
STATUS
current
DESCRIPTION
"The state of this TCP connection.
•
•
•
listen(2),
established(5),
closeWait(8),
timeWait(11),
synSent(3),
finWait1(6),
lastAck(9),
deleteTCB(12)
}
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 }
59
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 }
60
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 }
61
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
62
RFC 2013: MIB for UDP (udpMIB)
mib-2 = 1.3.6.1.2.1
udp (7)
udpInDatagrams (1)
Contatori di performance
udpNoPorts (2)
udpInErrors (3)
udpOutDatagrams (4)
udpTable (5)
udpEntry (1)
udpLocalAddress (1)
udpLocalPort (2)
63
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 }
64
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 }
65
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 }
66
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
}
67
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 }
68