GerênciaInternet=⇒Introdução
NosprimórdiosdaInternet,asúnicasferramentas
utilizadaspara
asu
agerênciaeram
base
adasno
protoco
loICMP(porexemplo,o
PING).
Com
ocrescim
ento
daInternet,fazia-seca
dave
zmais
nece
ssárioum
protoco
lopadrão,
funcionale
simplesde
seentendereim
plementar.Asprincipaistentativas
surgidasnessese
ntid
oforam:
CMOT-CommonManagementInform
ationServices
andProtocolOverTcp/ip.
SNMP-SimpleNetworkManagementProtocol.
.–p.2/50
GerênciaInternet=⇒Introdução
AArquite
tura
CMOTpossuiu
mmodelo
deco
municaçã
o
idênticoàquele
defin
idopela
ISO.
Aestruturaçã
odainform
açã
odegerênciaobedece
basica
mente
àestruturaçã
odefin
idanaarquite
tura
SNMP.
Nave
rdade,
asarquite
turasSNMPeCMOTforam
compreendidasinicialm
ente
comoso
luçõ
esdecu
rtoe
longoprazo
,resp
ectivamente.
Ograndenúmero
deim
plementaçõ
esSNMPtornaram
essaabordagem
umaso
luçã
operm
anente.
.–p.3/50
GerênciaInternet=⇒Introdução
Àexemplo
doqueoco
rreco
maabordagem
daISO,a
arquite
tura
SNMPdefin
etambém
um
modelo
de
comunicaçã
oeum
modelo
deinform
açã
o.
Essaarquite
tura
tem
inco
rporadová
riasinov
açõ
esao
longodesu
aex
istência,deform
aqueex
istem
atualm
ente
trêsve
rsões:
SNMPv1
SNMPv2
SNMPv3
.–p.4/50
GerênciaInternet=⇒SNMPv1
Principaisesp
ecificaçõ
esrelativasàprimeira
versãodo
protoco
loSNMP(SNMPv1):
Número
Título
1155
Structure
andIdentifi
catio
nofManagementInform
atio
n
forTCP/IP
-base
dInternet
1157
ASim
ple
Network
ManagementP
rotoco
l(SNMP)
1212
Concise
MIB
Defin
itions
1213
ManagementInform
atio
nBase
forNetwork
Management
ofT
CP/IP
-base
dInternets
.–p.5/50
GerênciaInternet=⇒SNMPv1
Sistemasgerenciadosco
ntêm
aplicaçõ
esdenominadas
agentesSNMP.
IP
Enlac
e
Físico
Físico
Enlac
e
IP
......
Red
e
estaçã
o de
Gerên
cia
UDP
UDP
MIB
Age
nte
SNMP
SNMP
PDUs SNMP
Geren
te
sistem
a ge
renc
iado
!!
!!
.–p.6/50
GerênciaInternet=⇒SNMPv1
Agentesarm
aze
nam
parâmetrosdemonito
raçã
oe
controle
dosistemagerenciadoem
MIBs(Management
Inform
ationBases).
IP
Enlac
e
Físico
Físico
Enlac
e
IP
......
Red
e
estaçã
o de
Gerên
cia
UDP
UDP
MIB
Age
nte
SNMP
SNMP
PDUs SNMP
Geren
te
sistem
a ge
renc
iado
!!!!
.–p.7/50
GerênciaInternet=⇒SNMPv1
Estaçõ
esdegerênciaco
ntêm
aplicaçõ
esdenominadas
gerentes.
IP
Enlac
e
Físico
Físico
Enlac
e
IP
......
Red
e
UDP
UDP
MIB
Age
nte
SNMP
SNMP
PDUs SNMP
Geren
te
sistem
a ge
renc
iado
estaçã
o de
Gerên
cia
!!
!!
.–p.8/50
GerênciaInternet=⇒SNMPv1
Gerenteseagentesco
municam-sepormeio
deum
protoco
lonãoorientadoàco
nex
ãodenominadoSNMP
(SimpleNetworkManagementProtocol).
IP
Enlac
e
Físico
Físico
Enlac
e
IP
......
Red
e
UDP
UDP
MIB
Age
nte
SNMP
SNMP
Geren
te
sistem
a ge
renc
iado
estaçã
o de
Gerên
cia
PDUs SNMP
!!
!!
.–p.9/50
GerênciaInternet=⇒SNMPv1
Àse
melhança
doqueoco
rreco
maabordagem
defin
ida
pela
ISO,n
aarquite
tura
SNMPosrecu
rsosfís
icose
lógicosdeum
sistemasã
omodeladosco
moobjetos
gerenciados.
ASMI(StructureofManagementInform
ation)defin
ida
para
oSNMPv1
esp
ecificaco
moosobjetosgerenciados
arm
aze
nadosem
MIBssã
odefin
idosenomeados.
Deform
aamotivarsu
aim
plementaçã
oefacilitarsu
a
extensibilidade,
aSMISNMPv1
ébem
mais
simplesque
aquela
defin
idapela
ISO.
.–p.10
/50
GerênciaInternet=⇒SNMPv1
Objetosgerenciadossã
odefin
idosform
alm
ente
atrav
és
deum
subco
njunto
restrito
daASN.1
(AbstractSintax
NumberOne).
tcpC
onnL
ocalPort
SINTAX
ACCESS
STATUS
OBJECT−TYPE
INTEGER (0..65535)
read
−on
ly
man
datory
DESCRIPTION
"The
loca
l port n
umbe
r for this TCP con
nection"
:: = { tc
pCon
nEntry 3 }
.–p.11
/50
GerênciaInternet=⇒SNMPv1
ASintaxe
deum
objeto
gerenciadoédefin
idausa
ndoos
tiposUNIVERSALeAPPLICATIONdaASN.1.
tcpC
onnL
ocalPort
SINTAX
ACCESS
STATUS
OBJECT−TYPE
INTEGER (0..65535)
read
−on
ly
man
datory
DESCRIPTION
"The
loca
l port n
umbe
r for this TCP con
nection"
:: = { tc
pCon
nEntry 3 }
.–p.12
/50
GerênciaInternet=⇒SNMPv1
AclasseASN.1UNIVERSALpossuitiposdeuso
geral,
sendoportanto
independente
deaplicaçã
o.
TiposUNIVERSAL:INTEGER,OCTETSTRING,NULL,
OBJECT
IDENTIFIER,SEQUENCEeSEQUENCE-OF.
AclasseASN.1APPLICATIONpossuitiposesp
ecíficosà
umaaplicaçã
oem
particular.
TiposAPPLICATION:NetworkAddress,
IpAddress,Counter,Gauge,TimeTickse
Opaque.
.–p.13
/50
GerênciaInternet=⇒SNMPv1
OAce
ssoaum
objeto
gerenciadopossuia
sse
guintes
modalid
ades:read-only,read-write,write-onlye
not-accessible.
tcpC
onnL
ocalPort
SINTAX
ACCESS
STATUS
OBJECT−TYPE
INTEGER (0..65535)
read
−on
ly
man
datory
DESCRIPTION
"The
loca
l port n
umbe
r for this TCP con
nection"
:: = { tc
pCon
nEntry 3 }
.–p.14
/50
GerênciaInternet=⇒SNMPv1
Osu
porteàim
plementaçã
odeum
objeto
gerenciado
possuia
sse
guintesmodalid
ades:mandatory,
optional,deprecatedeobsolete.
tcpC
onnL
ocalPort
SINTAX
ACCESS
STATUS
OBJECT−TYPE
INTEGER (0..65535)
read
−on
ly
man
datory
DESCRIPTION
"The
loca
l port n
umbe
r for this TCP con
nection"
:: = { tc
pCon
nEntry 3 }
.–p.15
/50
GerênciaInternet=⇒SNMPv1
Associadoco
mca
datip
odeobjeto
gerenciadoestáum
identificadordeobjeto
único.
tcpC
onnL
ocalPort
SINTAX
ACCESS
STATUS
OBJECT−TYPE
INTEGER (0..65535)
read
−on
ly
man
datory
DESCRIPTION
"The
loca
l port n
umbe
r for this TCP con
nection"
:: = { tc
pCon
nEntry 3 }
.–p.16
/50
GerênciaInternet=⇒SNMPv1
Osidentifica
doresdeobjeto
sãodefin
idosapartirde
umaestrutura
hierárquicaem
árvore.
iso (1)
joint−iso−
ccitt (3)
ccitt (2)
raiz
org (3)
dod (6)
internet (1)
directory (1)
expe
rimen
tal (3)
private (4)
mgm
t (2)
MIB II (1)
system
(1)
sysD
escr (1)
.–p.17
/50
GerênciaInternet=⇒SNMPv1
Onódirectoryérese
rvadopara
uso
futuro
com
o
diretórioOSI(X
.500).
iso (1)
joint−iso−
ccitt (3)
ccitt (2)
raiz
org (3)
dod (6)
internet (1)
directory (1)
expe
rimen
tal (3)
private (4)
mgm
t (2)
MIB II (1)
system
(1)
sysD
escr (1)
.–p.18
/50
GerênciaInternet=⇒SNMPv1
Onómgmtéusa
dopara
adefin
içãodeobjetos
gerenciadosem
docu
mentosaprova
dospelo
IAB.
iso (1)
joint−iso−
ccitt (3)
ccitt (2)
raiz
org (3)
dod (6)
internet (1)
directory (1)
expe
rimen
tal (3)
private (4)
mgm
t (2)
MIB II (1)
system
(1)
sysD
escr (1)
.–p.19
/50
GerênciaInternet=⇒SNMPv1
Onóexperimentaléusa
dopara
adefin
içãode
objetosgerenciadosem
experimentosInternet.
iso (1)
joint−iso−
ccitt (3)
ccitt (2)
raiz
org (3)
dod (6)
internet (1)
directory (1)
expe
rimen
tal (3)
private (4)
mgm
t (2)
MIB II (1)
system
(1)
sysD
escr (1)
.–p.20
/50
GerênciaInternet=⇒SNMPv1
sysD
escr⇐⇒
1.3
.6.1
.2.1
.1.1
iso (1)
joint−iso−
ccitt (3)
ccitt (2)
raiz
org (3)
dod (6)
internet (1)
directory (1)
expe
rimen
tal (3)
private (4)
mgm
t (2)
MIB II (1)
system
(1)
sysD
escr (1)
Objeto
Gerenciado
.–p.21
/50
GerênciaInternet=⇒SNMPv1
sysD
escr⇐⇒
iso.3
.dod.1
.mgm
t.1.s
yste
m.1
iso (1)
joint−iso−
ccitt (3)
ccitt (2)
raiz
org (3)
dod (6)
internet (1)
directory (1)
expe
rimen
tal (3)
private (4)
mgm
t (2)
MIB II (1)
system
(1)
sysD
escr (1)
Objeto
Gerenciado
.–p.22
/50
GerênciaInternet=⇒SNMPv1
MIBspodem
arm
aze
nartabelasdeobjetosgerenciados.
interfac
es (mib−2 2)
ifTab
le (2)
ifNum
ber (1)
ifEntry (1)
ifInd
ex (1)
ifDes
cr (2)
ifTyp
e (3)
ifSpe
cific (22
)
22 x ifNumber
... ...... .........
...
...
...
...
...
.–p.23
/50
GerênciaInternet=⇒SNMPv1
AMIB-II,defin
idanaRFC
1213,c
ontém
objetos
gerenciadosco
nsideradosessenciais
para
agerênciade
um
sistemagenérico
.
Ela
éum
super-co
njunto
daMIB-I,defin
idanaRFC
1156,
com
algunsobjetosegruposadicionais.
AMIB-IIco
ntém
osse
guintesgruposdeobjetos
gerenciados:system,interfaces,at,ip,icmp,tcp,
udp,egp,dot3esnmp.
AMIB-IIeoutrasMIBspodem
serenco
ntradasnosite
da
IETF(http://www.ietf.org).
.–p.24
/50
GerênciaInternet=⇒SNMPv1
ASN.1
éutilizadatambém
nadefin
içãodasmensagens
SNMP...
Mes
sage
::=
SEQUENCE {
version {
commun
ity
INTEGER {
version−
1 (0)
},
dataOCTET STRING,
ANY
−− version 1 for this RFC
−− community name
−− e.g., PDUs if trivial
−− authentication being used
−− top−level message
}
.–p.25
/50
GerênciaInternet=⇒SNMPv1
...edasPDUsSNMP.
PDUs ::=
−− protocol data units
CHOICE {
get−requ
est
GetRequest−PDU,
get−ne
xt−requ
est
GetNextRequest−PDU,
get−resp
onse
GetResponse−PDU,
set−requ
est
trap
Trap−PDU
}
SetRequest−PDU,
−− the individual PDUs and commonly used
−− data types will be defined later
.–p.26
/50
GerênciaInternet=⇒SNMPv1
Form
ato
damensa
gem
edasPDUsSNMPv1
:
Men
sage
m SNMP
PDUs GetReq
uest, G
etNex
tReq
uest e SetReq
uest
PDU G
etRes
pons
e
PDU Trap
varia
bleb
inding
s
00
Version
Com
mun
ityPDU SNMP
PDU ty
perequ
est−id
varia
bleb
inding
s
requ
est−id
error−status
error−inde
xva
riableb
inding
s
enterpris
eva
riableb
inding
sge
neric
−trap
agen
t−ad
drsp
ecific−
trap
time−
stam
pPDU ty
pe
PDU ty
pe
valor1
valor2
nome1
nome2
valorN
nomeN
...
.–p.27
/50
GerênciaInternet=⇒SNMPv1
Umnomedecomunidadereprese
nta
um
relacionamento
entreum
agente
eum
(ouvá
rios)
gerentes,
defin
indoca
racterísticasdeautenticaçã
oe
controle
deace
sso.
Men
sage
m SNMP
Version
Com
mun
ityPDU SNMP
Nome de Comunidade
Onomedeco
munidadenãoéencriptado,
oque
restringemuita
sve
zesagerênciaàsimplesmonito
raçã
o.
.–p.28
/50
GerênciaInternet=⇒SNMPv1
Asoperaçõ
esdeleitu
radosva
loresdeum
oumais
objetosgerenciadossã
oiniciadaspelosgerentesco
mo
env
iodePDUsGetRequestouGetNextRequest.
Men
sage
m SNMP
varia
bleb
inding
s
PDUs GetReq
uest (PDU ty
pe = 0) e GetNex
tReq
uest (PDU ty
pe = 1)
00
Version
Com
mun
ityPDU SNMP
PDU ty
perequ
est−id
varia
bleb
inding
s
nome1
nome2
nomeN
...nu
llnu
llnu
ll
EstasPDUssã
oendereça
dasàportaUDP#161do
agente
SNMPv1
remoto.
.–p.29
/50
GerênciaInternet=⇒SNMPv1
AsPDUsGetRequest
eGetNex
tRequest
sãoreplicadas
atomicamente
com
oenv
iodePDUsGetResponse.
Men
sage
m SNMP
varia
bleb
inding
s
PDUs GetReq
uest (PDU ty
pe = 0) e GetNex
tReq
uest (PDU ty
pe = 1)
PDU G
etRes
pons
e (PDU ty
pe = 2)
00
Version
Com
mun
ityPDU SNMP
PDU ty
perequ
est−id
varia
bleb
inding
s
requ
est−id
error−status
error−inde
xva
riableb
inding
sPDU ty
pe
valor1
valor2
nome1
nome2
valorN
nomeN
...
.–p.30
/50
GerênciaInternet=⇒SNMPv1
Asoperaçõ
esdeescrita
dosva
loresdeum
oumais
objetosgerenciadossã
oiniciadaspelosgerentesco
mo
env
iodePDUsSetRequest.
Men
sage
m SNMP
varia
bleb
inding
sPDU SetReq
uest (PDU ty
pe = 3)
00
Version
Com
mun
ityPDU SNMP
PDU ty
perequ
est−id
varia
bleb
inding
s
nome1
nome2
nomeN
...va
lor1
valor2
valorN
EssasPDUstambém
sãoendereça
dasàportaUDP
#161doagente
SNMPv1
remoto.
.–p.31
/50
GerênciaInternet=⇒SNMPv1
APDUSetRequest
também
éreplicadaatomicamente
com
oenv
iodeumaPDU
GetResp
onse
.
Men
sage
m SNMP
varia
bleb
inding
s
PDU G
etRes
pons
e (PDU ty
pe = 2)
PDU SetReq
uest (PDU ty
pe = 3)
00
Version
Com
mun
ityPDU SNMP
PDU ty
perequ
est−id
varia
bleb
inding
s
requ
est−id
error−status
error−inde
xva
riableb
inding
sPDU ty
pe
valor1
valor2
nome1
nome2
valorN
nomeN
...
.–p.32
/50
GerênciaInternet=⇒SNMPv1
APDUTrapéumanotifica
çãoassíncronautilizadapelo
agente
SNMPpara
inform
arum
oumaisgerentesso
bre
algum
evento
significa
tivo. va
riableb
inding
s
PDU Trap (P
DU ty
pe = 4)
Men
sage
m SNMP
Version
Com
mun
ityPDU SNMP
enterpris
eva
riableb
inding
sge
neric
−trap
agen
t−ad
drsp
ecific−
trap
time−
stam
pPDU ty
pe
valor1
valor2
nome1
nome2
valorN
nomeN
...
EstaPDU
éendereça
daàportaUDP#162do(s)
gerente(s).
.–p.33
/50
GerênciaInternet=⇒SNMPv1
PDUseobjetosgerenciadossã
oco
difica
dospara
transm
issã
ousa
ndo-seBER(BasicEncodingRules).
TL
V VL
TL
TV
TL
VT
LV
Exe
mplo:
INTEGER
BITSTRING
OCTETSTRING
SEQUENCE
SEQUENCE
Typ
eLe
ngth
Value
Em
BER,ca
daelemento
éestruturadoco
moumalista
TLV
(Type,Length,Value).
.–p.34
/50
GerênciaInternet=⇒SNMPv1
Deficiênciasobse
rvadasnoSNMPv1
:
Inabilidadeem
coletarum
grandevo
lumededados
Nãoépossívelo
btervisõ
esco
nsistentesdetabelas
deobjetosgerenciados.
Escalabilidadelim
itada
Modelo
éfortemente
centralizadoem
tornodeuma
únicaestaçã
odegerência.
Ausê
nciademeca
nismoseficaze
sdese
gurança
Nomedeco
munidadenãoso
freencriptaçã
o,
inibindoarealizaçã
odeoperaçõ
esmaisse
nsíve
is.
.–p.35
/50
GerênciaInternet=⇒SNMPv2
Um
conjunto
deRFCsreferenciadasco
mo
SNMP-seguro
foram
emitidasco
mostatusdeProposed
Standard
em
julhode1992.
OSNMP-seguro
endereça
vaex
clusiva
mente
asp
ectos
dese
gurança
ause
ntesnoSNMPv1
.
Umaoutraabordagem
denominadaSMP(Simple
ManagementProtocol)foie
mitidatambém
em
julhode
1992so
baform
adeoito
docu
mentos(nãoRFCs)
submetid
osàIETF.
.–p.36
/50
GerênciaInternet=⇒
SNMPv2
Além
deendereça
rasp
ectosdedese
mpenhoe
funcionalid
ade,
oSMPinco
rporava
também
asmelhorias
dese
gurança
propostaspelo
SNMP-seguro.
Apósapublicaçã
odoSNMP-seguro
edoSMP,
surgiu
um
conse
nso
naco
munidadeInternetdequeera
hora
dese
criarumase
gundave
rsãopara
oSNMP.
DoisGruposdeTrabalhoforam
form
ados:
um
deles
endereça
vaasp
ectosdese
gurança
,enquanto
ooutro
endereça
vaosdemaisasp
ectos.
Oesforçoco
mbinado
foip
ublicadoco
moInternetStandardsem
Marçode
1993.
.–p.37
/50
GerênciaInternet=⇒SNMPv2
Apósanosdeex
periênciaco
moSNMPv2
,um
Grupode
TrabalhodaIETFreviso
uasesp
ecificaçõ
es.
Oresu
ltadodessarevisã
ofoiu
mnov
oco
njunto
deRFCs,
emitidasem
1996.
Osso
fisticadosmeca
nismosdese
gurança
doSNMPv2
foram
substitu
ídosporoutrobase
adoem
nomesde
comunidade,
comoéutilizadonoSNMPv1
.
Poressarazã
o,oSNMPv2
atualm
ente
vigente
também
é
conhecidoco
moSNMPv2C
(Community-based).
.–p.38
/50
GerênciaInternet=⇒SNMPv2
Esp
ecificaçõ
esSNMPv2
:
Número
Título
1901
Introductionto
Community
-Base
dSNMPv2
1902
Structure
ofM
anagementInform
atio
nforSNMPv2
1903
TextualC
onv
entio
nsforSNMPv2
1904
Conform
ance
Statements
forSNMPv2
1905
Protoco
lOperatio
nsforSNMPv2
1906
Transp
ortMappingsforSNMPv2
1907
ManagementInform
atio
nBase
forSNMPv2
1908
Coex
istence
BetweenVersion1andVersion2oftheInternet-
Standard
Network
ManagementF
ramew
ork
.–p.39
/50
GerênciaInternet=⇒SNMPv2
ASMIdefin
idapara
oSNMPv2
éum
super-co
njunto
daquela
defin
idapara
oSNMPv1
.
Ela
estabelece
meca
nismosmais
elaboradospara
a
defin
içãodeobjetosgerenciadoseMIBs.
Asmelhoriasprovidasco
nce
ntraram-senasse
guintes
áreas:
Defin
içãodeobjetos.
Tabelasco
nce
ituais.
Defin
içãodeNotifica
ções.
MódulosdeInform
açã
o.
.–p.40
/50
GerênciaInternet=⇒SNMPv2
Form
ato
daMensa
gem
edasPDUsSNMPv2
:
Men
sage
m SNMP
PDUs GetReq
uest, G
etNex
tReq
uest, S
etReq
uest, T
rap e Inform
Req
uest
PDU Res
pons
e
PDU G
etBulkR
eque
st
varia
bleb
inding
s
00
Version
Com
mun
ityPDU SNMP
PDU ty
perequ
est−id
varia
bleb
inding
s
requ
est−id
varia
bleb
inding
sPDU ty
peno
n−repe
aters
max
−repe
titions
requ
est−id
error−status
error−inde
xva
riableb
inding
sPDU ty
pe
valor1
valor2
nome1
nome2
valorN
nomeN
...
.–p.41
/50
GerênciaInternet=⇒SNMPv2
AsPDUsGetRequesteGetNextRequestsã
oreplicadas
com
oenv
iodePDUsResponse-nesteca
so,porém,
respostasparciais
sãoperm
itidas.
Men
sage
m SNMP
varia
bleb
inding
s
PDUs GetReq
uest (PDU ty
pe = 0) e GetNex
tReq
uest (PDU ty
pe = 1)
PDU R
espo
nse (P
DU ty
pe = 2)
00
Version
Com
mun
ityPDU SNMP
PDU ty
perequ
est−id
varia
bleb
inding
s
requ
est−id
error−status
error−inde
xva
riableb
inding
sPDU ty
pe
valor1
valor2
nome1
nome2
valorN
nomeN
...
.–p.42
/50
GerênciaInternet=⇒SNMPv2
APDUGetBulkRequestfoic
riadaesp
ecificamente
para
atarefa
deco
leta
volumosa
dedados.
EssaPDU
tem
doisca
mposnãoenco
ntradosem
quaisqueroutrasPDUs:non-repeaterse
max-repetitions. M
ensa
gem SNMP
PDU G
etBulkR
eque
st (PDU ty
pe = 5)
varia
bleb
inding
s
Version
Com
mun
ityPDU SNMP
requ
est−id
varia
bleb
inding
sPDU ty
peno
n−repe
aters
max
−repe
titions
valor1
valor2
nome1
nome2
valorN
nomeN
...
.–p.43
/50
GerênciaInternet=⇒SNMPv2
non-repeaters:Qtde.
deva
riáve
isprese
ntesem
variablebindingspara
asquais
umaúnicainstância
éretornada.
max-repetitions:Qtde.
deinstânciasase
rem
retornadaspara
asva
riáve
isrestantesde
variablebindings. Men
sage
m SNMP
PDU G
etBulkR
eque
st (PDU ty
pe = 5)
varia
bleb
inding
s
Version
Com
mun
ityPDU SNMP
requ
est−id
varia
bleb
inding
sPDU ty
peno
n−repe
aters
max
−repe
titions
valor1
valor2
nome1
nome2
valorN
nomeN
...
.–p.44
/50
GerênciaInternet=⇒SNMPv2
Exe
mplo
deutilizaçã
odaPDUGetBulkRequest:
max
−repe
tition = 6, X
, Y, A
, B, C
)GetBulkR
eque
st (non
−repe
aters = 2,
Red
e
IA(1), IB
(1), IC
(1),
IA(2), IB
(2), IC
(2),
IA(3), IB
(3), IC
(3),
IA(4), IB
(4), IC
(4),
IA(5), IB
(5), IC
(5)]
IA(0) IB
(0) IC
(0)
IA(2) IB
(2) IC
(2)
IA(4) IB
(4) IC
(4)
IA(5) IB
(5) IC
(5)
Tab
ela
Res
pons
e [X, Y
, IA(0), IB
(0), IC
(0),
BC
Geren
teSNMPv2
Age
nte
SNMPv2
XY
A
IA(3) IB
(3) IC
(3)
IA(1) IB
(1) IC
(1)
MIB
!!!!
.–p.45
/50
GerênciaInternet=⇒SNMPv2
PDUsSetRequestsã
oreplicadasco
mPDUsResp
onse
.
Oproce
ssamento
queoco
rrenatroca
dessasPDUs
dife
reum
pouco
daquele
queoco
rrenoSNMPv1
.
Men
sage
m SNMP
varia
bleb
inding
sPDU R
espo
nse (P
DU ty
pe = 2)
PDU SetReq
uest (PDU ty
pe = 3)
00
Version
Com
mun
ityPDU SNMP
PDU ty
perequ
est−id
varia
bleb
inding
s
requ
est−id
error−status
error−inde
xva
riableb
inding
sPDU ty
pe
valor1
valor2
nome1
nome2
valorN
nomeN
...
.–p.46
/50
GerênciaInternet=⇒SNMPv2
PDUsInform
Requestsã
otroca
dasentregerentes
SNMPv2
,se
ndoreplicadasporPDUsResp
onse
.
Elasintroduze
mdescentralizaçã
oàarquite
tura
SNMP.
Men
sage
m SNMP
varia
bleb
inding
sPDU R
espo
nse (P
DU ty
pe = 2)
PDU In
form
Req
uest (PDU ty
pe = 6)
00
Version
Com
mun
ityPDU SNMP
PDU ty
perequ
est−id
varia
bleb
inding
s
requ
est−id
error−status
error−inde
xva
riableb
inding
sPDU ty
pe
valor1
valor2
nome1
nome2
valorN
nomeN
...
.–p.47
/50
GerênciaInternet=⇒SNMPv2
Exe
mplo
deutilizaçã
odaPDUInform
Request:
LAN1
LAN2
: GetReq
uest/Res
pons
e
LEGENDA
Geren
teSNMPv2
: InformReq
uest/Res
pons
e
Geren
teSNMPv2
Geren
teSNMPv2
Age
nte
SNMPv2
Age
nte
SNMPv2
Age
nte
SNMPv2
Age
nte
SNMPv2
Age
nte
SNMPv2
Age
nte
SNMPv2
! !!
!!!!
.–p.48
/50
GerênciaInternet=⇒SNMPv2
APDUTrapSNMPv2
dife
reem
form
ato
daquela
defin
ida
para
oSNMPv1
.Porém,a
ssim
comoaco
ntece
no
SNMPv1
,nenhumaréplicaéemitida.
Men
sage
m SNMP
varia
bleb
inding
sPDU R
espo
nse (P
DU ty
pe = 2)
PDU Trap (P
DU ty
pe = 7)
00
Version
Com
mun
ityPDU SNMP
PDU ty
perequ
est−id
varia
bleb
inding
s
requ
est−id
error−status
error−inde
xva
riableb
inding
sPDU ty
pe
valor1
valor2
nome1
nome2
valorN
nomeN
...
.–p.49
/50
GerênciaInternet=⇒SNMPv2
Vantagensintroduzidaspelo
SNMPv2
:
SMImais
elaborada,c
om
maiornúmero
detip
ose
facilid
adesdemanipulaçã
odetabelas.
Facilid
adedeco
leta
volumosa
dedados,
mediante
criaçã
odeumaPDU
esp
ecializadaem
taltarefa.
Modelo
mais
descentralizado,
também
viabiliza
do
atrav
ésdeumaPDUesp
ecialm
ente
criadapara
tal.
Deficiênciaaindaobse
rvada:
Ausê
nciademeca
nismoseficaze
sdese
gurança
na
troca
dePDUsentregerenteseagentes.
.–p.50
/50