5. Ermittlung und Verwendung von Wartungswissen
Bei der Verwendung von Authentifizierungsdiensten müssen möglicherweise zwei „Wartungs"-Aufgaben ausgeführt werden: Uhrensynchronisierung und Aktualisierung geheimer Schlüssel. Diese Aufgaben sollten transparent, unabhängig von den Management-Anwendungen und ohne Eingriff durch Benutzer/Administratoren ausgeführt werden. Um transparent zu arbeiten, muss die SNMP-Protokoll-Engine „Wartungswissen" unterhalten (Wissen darüber, welche partys und Kontexte zu verwenden sind). Es ist zweckmäßig, dieses Wartungswissen zur Laufzeit zu ermitteln, statt es direkt durch einen Administrator konfigurieren zu lassen.
Ein Ansatz zur Erreichung dieses Ziels ist der Folgende: Wenn die SNMP-Protokoll-Engine zum ersten Mal feststellt, dass sie mit einer anderen SNMPv2-Einheit kommunizieren wird, konsultiert sie zunächst ihre lokale party-Datenbank und befragt dann ihren Peer, bevor sie die eigentliche Kommunikation aufnimmt.
Beachten Sie, dass bei diesem Ansatz sowohl das Wissen zur Uhrensynchronisierung als auch das Wissen zur Aktualisierung geheimer Schlüssel in Bezug auf eine party jeweils als (Zeiger auf einen) Zugriffsteuerungseintrag dargestellt werden kann. Beachten Sie ferner, dass eine Implementierung dieses Wissen nach der Berechnung über Neustarts hinweg beibehalten kann.
5.1. Ermittlung des Wissens zur Synchronisierung
Zur Ermittlung des Wartungswissens für die Uhrensynchronisierung:
(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. Verwendung des Wissens zur Uhrensynchronisierung
Wird keine Antwort auf eine authentifizierte Operation empfangen, vermutet die SNMP-Protokoll-Engine möglicherweise, dass ein Problem bei der Uhrensynchronisierung der Quell-party die Ursache ist [3]. Die SNMP-Protokoll-Engine kann bei dieser Feststellung unterschiedliche Kriterien anwenden; beispielsweise kann bei einer Abrufoperation ein exponentieller Back-off-Algorithmus für den erneuten Versuch verwendet werden; bei einer Änderungsoperation wird die Operation dagegen nicht automatisch wiederholt.
Wird eine Fehlsynchronisierung der Uhr einer Quell-party S vermutet und ist Wissen zur Uhrensynchronisierung für S vorhanden, wird dieses Wissen verwendet, um die obigen Schritte 4 bis 7 auszuführen. Dabei sollten die Instanzen der Objekte „partyAuthProtocol" und „partyAuthClock" abgerufen werden, die S entsprechen (und möglicherweise auch anderen partys). Lassen sich diese Informationen nicht ermitteln, wird S so markiert, dass kein Wissen zur Uhrensynchronisierung mehr vorliegt. Andernfalls wird, wenn der Wert der entsprechenden Instanz von „partyAuthClock" größer als der Wert in der lokalen Datenbank ist, die Authentifizierungsuhr der party gemäß den in Abschnitt 5.3 von [3] definierten Verfahren angepasst und die ursprüngliche Operation gegebenenfalls erneut versucht.
Wenn beispielsweise der Datenverkehr von party #4 zeitüberschreitet, wird automatisch ein Spalten-Durchlauf mit acl #1 (party #1, party #2, Kontext #1) gestartet.
Wird eine Fehlsynchronisierung der Uhr einer Quell-party S vermutet und ist kein Wissen zur Uhrensynchronisierung für S vorhanden, kann der vollständige obige Algorithmus verwendet werden. In diesem Fall wird, wenn das Wissen zur Uhrensynchronisierung für S ermittelt werden kann und infolgedessen der Wert von „partyAuthClock" für S in der lokalen Datenbank gemäß den in Abschnitt 5.3 von [3] definierten Verfahren angepasst wird, die ursprüngliche Operation gegebenenfalls erneut versucht.
5.3. Ermittlung des Wissens zur Aktualisierung geheimer Schlüssel
Zur Ermittlung des Wartungswissens für die Aktualisierung geheimer Schlüssel:
(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. Verwendung des Wissens zur Aktualisierung geheimer Schlüssel
Stellt die SNMP-Protokoll-Engine fest, dass die Authentifizierungsuhr einer party S sich einer Obergrenze nähert, und ist Wissen zur Aktualisierung geheimer Schlüssel für S vorhanden, wird dieses Wissen verwendet, um den aktuellen geheimen Schlüssel von S zu ändern und die Authentifizierungsuhr von S gemäß den in Abschnitt 5.4 von [3] definierten Verfahren zurückzusetzen.
So kann die SNMP-Protokoll-Engine, wenn sie beschließt, die geheimen Schlüssel für party #4 zu aktualisieren, dafür automatisch acl #2 (party #3, party #4, Kontext #2) verwenden.