メインコンテンツまでスキップ

5. 保守知識の決定と利用

認証サービスを利用する場合、2 つの「保守 (maintenance)」作業が必要になることがある。すなわち、クロック同期 (clock synchronization) とシークレット更新 (secret update) である。これらの作業は、管理アプリケーションから独立し、ユーザや管理者の介入なしに、透過的に実行されるべきである。透過的に動作するために、SNMP プロトコルエンジンは「保守知識 (maintenance knowledge)」、すなわちどの party とコンテキストを使用すべきかという知識を保持しなければならない (must)。この保守知識は、管理者が直接設定するのではなく、実行時に決定されると有用である。

これを実現する一つのアプローチは次のとおりである。SNMP プロトコルエンジンが別の SNMPv2 エンティティと通信すると初めて判断したとき、実際の通信に入る前に、まずローカルの party データベースを参照し、次いで相手に問い合わせを行う。

なお、このようなアプローチを用いれば、party に関連付けられたクロック同期知識とシークレット更新知識の双方を (アクセス制御エントリへのポインタとして) 表現できる。さらに、いったん実装がこの知識を計算したならば、再起動をまたいでこの知識を保持する選択肢があり得る。

5.1. 同期知識の決定​

クロック同期のための保守知識を決定するには、次の手順を実行する。

    (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. クロック同期知識の利用​

認証付き操作に対する応答が受信されない場合、SNMP プロトコルエンジンは、その原因が送信元 party のクロック同期の問題であると疑うことがある (may) [3]。この判断に際して、SNMP プロトコルエンジンは異なる基準を用いることがある。例えば、取得操作の場合には指数バックオフ (exponential back-off) アルゴリズムを用いて操作を再試行する一方、変更操作の場合には操作を自動的には再試行しない。

送信元 party S のクロックの同期ずれが疑われたとき、S のクロック同期知識が存在すれば、その知識を用いて上記の手順 4 から 7 までを実行し、S (おそらく他の party も含む) に対応する "partyAuthProtocol" および "partyAuthClock" オブジェクトのインスタンスを取得するはずである。これらのオブジェクトに関する情報を決定できない場合、S はクロック同期知識を保有しないものとしてマークされる。それ以外の場合、対応する "partyAuthClock" インスタンスの値がローカルデータベース内の値より大きければ、[3] の 5.3 節で定義された手順に従ってその party の認証クロックを調整し、適切であれば元の操作を再試行する。

したがって、party #4 からのトラフィックがタイムアウトした場合、acl #1 (party #1、party #2、コンテキスト #1) を用いて列スイープ (column sweep) が自動的に開始される。

送信元 party S のクロックの同期ずれが疑われ、かつ S のクロック同期知識が存在しない場合、上記の完全なアルゴリズムを用いることができる。この場合、S のクロック同期知識が決定され、その結果としてローカルデータベース内の S の "partyAuthClock" 値が [3] の 5.3 節で定義された手順に従って調整されたならば、適切であれば元の操作が再試行される。

5.3. シークレット更新知識の決定​

シークレット更新のための保守知識を決定するには、次の手順を実行する。

    (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. シークレット更新知識の利用​

SNMP プロトコルエンジンが party S の認証クロックが上限に近づいていると判断し、かつ S のシークレット更新知識が存在する場合、[3] の 5.4 節で定義された手順に従って、その知識を用いて S の現在のシークレットを変更し、S の認証クロックをリセットする。

したがって、SNMP プロトコルエンジンが party #4 のシークレットを更新すると判断したとき、その目的のために acl #2 (party #3、party #4、コンテキスト #2) を自動的に使用できる。