Re: [Isms] IsmsQuestions on TLSTM/TSM and RFC 5343

Wes Hardaker <wjhns1@hardakers.net> Sun, 23 January 2011 17:31 UTC

Return-Path: <wjhns1@hardakers.net>
X-Original-To: isms@core3.amsl.com
Delivered-To: isms@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id E6F373A6931 for <isms@core3.amsl.com>; Sun, 23 Jan 2011 09:31:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.369
X-Spam-Level:
X-Spam-Status: No, score=-3.369 tagged_above=-999 required=5 tests=[AWL=0.230, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8TwyXKGqVEYo for <isms@core3.amsl.com>; Sun, 23 Jan 2011 09:31:46 -0800 (PST)
Received: from mail.hardakers.net (mail.hardakers.net [168.150.236.43]) by core3.amsl.com (Postfix) with ESMTP id 76F933A6912 for <isms@ietf.org>; Sun, 23 Jan 2011 09:31:46 -0800 (PST)
Received: from localhost (wjh.hardakers.net [10.0.0.2]) by mail.hardakers.net (Postfix) with ESMTPSA id 8635420E4A; Sun, 23 Jan 2011 09:34:17 -0800 (PST)
From: Wes Hardaker <wjhns1@hardakers.net>
To: Frank Fock <fock@agentpp.com>
Organization: Sparta
References: <4D32C788.5060604@agentpp.com> <sdvd1mvybg.fsf@wjh.hardakers.net> <4D3C6451.7020000@agentpp.com>
Date: Sun, 23 Jan 2011 09:34:17 -0800
In-Reply-To: <4D3C6451.7020000@agentpp.com> (Frank Fock's message of "Sun, 23 Jan 2011 18:24:33 +0100")
Message-ID: <sd1v438qxy.fsf@wjh.hardakers.net>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
Cc: isms@ietf.org
Subject: Re: [Isms] IsmsQuestions on TLSTM/TSM and RFC 5343
X-BeenThere: isms@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Mailing list for the ISMS working group <isms.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/isms>, <mailto:isms-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/isms>
List-Post: <mailto:isms@ietf.org>
List-Help: <mailto:isms-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/isms>, <mailto:isms-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 23 Jan 2011 17:31:49 -0000

>>>>> On Sun, 23 Jan 2011 18:24:33 +0100, Frank Fock <fock@agentpp.com> said:

FF> That's why I thought about simplifying
FF> the SNMPv3 and making the discovery of
FF> a contextEngineID unnecessary if not
FF> required by the command generator.

>From a pure architecture point of view, I agree.  Though I don't think
it would be wise of a SNMP stack to require the "actual" end-application
to think about contextEngineIDs if it didn't have to.  I think most
stacks would better server their users if they had an API that handled
it all, regardless of where the contextEngineID discovery happened.

EG, hypothetical pseudo fake code:

snmpv3_response *
send_snmpv3_request(struct snmpv3_session *session, struct snmpv3_pdu *pdu) {
  if (session->contextEngineID == NULL) {
     snmpv3_response *response =
         send_pdu_to_dispatcher(session, new_contextEngineID_probe_pdu());
     session->contextEngineID = extract_contextEngineID(blob);
  }
  return send_pdu_to_dispatcher(session, pdu);
}

That seems a more helpful API than making each application doing the
steps internally to that.
  
-- 
Wes Hardaker
Cobham Analytic Solutions