5. Determining and Using Maintenance Knowledge
Lors de l'utilisation des services d'authentification, deux tâches de « maintenance » peuvent devoir être effectuées : la synchronisation d'horloge et la mise à jour des secrets. Ces tâches devraient être exécutées de manière transparente, indépendamment des applications de gestion, et sans intervention de l'utilisateur ou de l'administrateur. Pour fonctionner de manière transparente, le moteur de protocole SNMP doit conserver des « connaissances de maintenance » (la connaissance des parties et des contextes à utiliser). Il est utile que ces connaissances de maintenance soient déterminées à l'exécution, plutôt que configurées directement par un administrateur.
Une approche permettant d'atteindre cet objectif est la suivante : la première fois que le moteur de protocole SNMP détermine qu'il va communiquer avec une autre entité SNMPv2, il consulte d'abord sa base de données locale des parties, puis interroge son homologue, avant d'engager la communication effective.
Notez qu'avec une telle approche, aussi bien les connaissances de synchronisation d'horloge que les connaissances de mise à jour des secrets associées à une partie peuvent être représentées chacune comme (un pointeur vers) une entrée de contrôle d'accès. Notez en outre qu'une fois qu'une implémentation a calculé ces connaissances, elle peut choisir de les conserver entre deux redémarrages.
5.1. Determination of Synchronization Knowledge
Pour déterminer les connaissances de maintenance relatives à la synchronisation d'horloge :
(1) The SNMP protocol engine examines each active, non-local,
noAuth party.
So, this would be party #1.
(2) For each such party, P, all access control entries having
that party as its aclTarget, and allowing the get-bulk
operation, are identified.
So, for party #1, this would be acl #1.
(3) For each such access control entry, A, at least one
active, non-local, md5Auth party, Q, must be present
which meets the following criteria:
- the transport domain and address of P and Q are
identical;
- an access control entry, B, exists having either: Q as
its aclTarget and a local party, R, as its aclSubject,
or, Q as its aclSubject and a local party, R, as its
aclTarget; and,
- no clock synchronization knowledge is known for R.
So, for acl #1, party #3 is identified as having the same
transport domain and address as party #1, and being
present as the aclTarget in acl #2, which has local party
#4 as the aclSubject.
(4) Whenever such a party, Q, is present, then all instances
of the "partyAuthProtocol" and "partyAuthClock" objects
are retrieved via the get-bulk operator using the parties
and context identified by the access control entry, A.
So, party #1, party #2, and context #1 would be used to
sweep these two columns on the agent.
(5) Only those instances corresponding to parties in the
local database, which have no clock synchronization
knowledge, and are local mdAuth parties, are examined.
So, only instances corresponding to party #4 are
examined.
(6) For each instance of "partyAuthProtocol", if the
corresponding value does not match the value in the local
database, then a configuration error is signalled, and
the corresponding party is marked as being unavailable
for maintenance knowledge.
So, we make sure that the manager and the agent agree
that party #4 is an md5Auth party.
(7) For each instance of "partyAuthClock", if the
corresponding value is greater than the value in the
local database, then the authentication clock of the
party is warped according to the procedures defined in
Section 5.3 of [3]. Regardless, A is recorded as the
clock synchronization knowledge for the corresponding
party.
So, if the column sweep returns information for party #4,
then party #4's authentication clock is advanced if
necessary, and the clock synchronization knowledge for
party #4 is recorded as acl #1.
5.2. Use of Clock Synchronization Knowledge
Chaque fois qu'une réponse à une opération authentifiée n'est pas reçue, le moteur de protocole SNMP peut soupçonner qu'un problème de synchronisation d'horloge de la partie source en est la cause [3]. Le moteur de protocole SNMP peut utiliser différents critères pour effectuer cette détermination ; par exemple, lors d'une opération de récupération, l'opération peut être retentée selon un algorithme de retrait exponentiel ; en revanche, lors d'une opération de modification, l'opération ne sera pas retentée automatiquement.
Lorsqu'une désynchronisation d'horloge d'une partie source, S, est soupçonnée, si les connaissances de synchronisation d'horloge de S sont présentes, elles sont utilisées pour exécuter les étapes 4 à 6 ci-dessus, ce qui devrait récupérer les instances des objets « partyAuthProtocol » et « partyAuthClock » correspondant à S (et éventuellement à d'autres parties). Si les informations sur ces objets ne peuvent pas être déterminées, S est marquée comme ne disposant plus de connaissances de synchronisation d'horloge. Sinon, si la valeur de l'instance correspondante de « partyAuthClock » est supérieure à la valeur de la base de données locale, l'horloge d'authentification de la partie est ajustée selon les procédures définies à la section 5.3 de [3], et l'opération d'origine est retentée, le cas échéant.
Ainsi, si le trafic en provenance de la partie #4 expire, un balayage de colonne est automatiquement initié, à l'aide de acl #1 (partie #1, partie #2, contexte #1).
Lorsqu'une désynchronisation d'horloge d'une partie source, S, est soupçonnée et que les connaissances de synchronisation d'horloge de S ne sont pas présentes, l'algorithme complet ci-dessus peut être utilisé. Dans ce cas, si les connaissances de synchronisation d'horloge de S peuvent être déterminées et que, par conséquent, la valeur de « partyAuthClock » de S dans la base de données locale est ajustée selon les procédures définies à la section 5.3 de [3], alors l'opération d'origine est retentée, le cas échéant.
5.3. Determination of Secret Update Knowledge
Pour déterminer les connaissances de maintenance relatives à la mise à jour des secrets :
(1) The SNMP protocol engine examines each active, non-local,
md5Auth party.
So, this would be party #3.
(2) For each such party, P, all access control entries having
that party as its aclTarget, and allowing the get-bulk
and set operations, are identified.
So, for party #3, this would be acl #2.
(3) For each such access control entry, A, at least one
active, non-local, md5Auth party, Q, must be present
which meets the following criteria:
- the transport domain and address of P and Q are
identical;
- an access control entry, B, exists having either: Q as
its aclTarget and a local party, R, as its aclSubject,
or, Q as its aclSubject and a local party, R, as its
aclTarget; and,
- no secret update knowledge is known for R.
So, for acl #2, party #3 is (redundantly) identified as
having the same transport domain and address as party #3,
and being present as the aclTarget in acl #2, which has
local party #4 as the aclSubject.
(4) Whenever such a party, Q, is present, then all instances
of the "partyAuthProtocol", "partyAuthClock", and
"partyAuthPrivate" objects are retrieved via the get-bulk
operator using the parties and context identified by the
access control entry, A.
So, party #3, party #4, and context #2 would be used to
sweep these three columns on the agent.
(5) Only those instances corresponding to parties in the
local database, which have no secret update knowledge,
and are md5Auth parties, are examined.
So, only instances corresponding to parties #3 and #4 are
examined.
(6) For each instance of "partyAuthProtocol", if the
corresponding value does not match the value in the local
database, then a configuration error is signalled, and
this party is marked as being unavailable for maintenance
knowledge.
So, we make sure that the manager and the agent agree
that both party #3 and #4 are md5Auth parties.
(7) For each instance of "partyAuthPrivate", if a
corresponding instance of "partyAuthClock" was also
returned, then A is recorded as the secret update
knowledge for this party.
So, if the column sweep returned information on party #3,
then the clock synchronization knowledge for party #3
would be recorded as acl #2. Further, if the column
sweep returned information on party #4, then the clock
synchronization knowledge for party #4 would be recorded
as acl #2.
5.4. Use of Secret Update Knowledge
Chaque fois que le moteur de protocole SNMP détermine que l'horloge d'authentification d'une partie, S, approche d'une limite supérieure et que les connaissances de mise à jour des secrets de S sont présentes, ces connaissances sont utilisées pour modifier le secret actuel de S et réinitialiser l'horloge d'authentification de S, conformément aux procédures définies à la section 5.4 de [3].
Ainsi, chaque fois que le moteur de protocole SNMP décide de mettre à jour les secrets de la partie #4, il peut utiliser automatiquement acl #2 (partie #3, partie #4, contexte #2) à cette fin.