Re: [OPSAWG] Major NAT MIB Issue: Notifications and processor requirements at the agent

Tom Taylor <tom.taylor.stds@gmail.com> Wed, 29 October 2014 15:40 UTC

Return-Path: <tom.taylor.stds@gmail.com>
X-Original-To: opsawg@ietfa.amsl.com
Delivered-To: opsawg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3F9151A0673; Wed, 29 Oct 2014 08:40:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9XF_yxANrKgH; Wed, 29 Oct 2014 08:40:07 -0700 (PDT)
Received: from mail-ig0-x232.google.com (mail-ig0-x232.google.com [IPv6:2607:f8b0:4001:c05::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id ADE631A049A; Wed, 29 Oct 2014 08:39:21 -0700 (PDT)
Received: by mail-ig0-f178.google.com with SMTP id a13so3341624igq.11 for <multiple recipients>; Wed, 29 Oct 2014 08:39:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=e7GN3cYld9PKSww10VDQsfgeKcCFVZWGjsf9W3+O1Qs=; b=kij1R/DeZgu0lo+yjs1eYsMm8zc2Xa/xVJ12dbA1lMU3oaP98pF27AxKRTWWuojngU mrRb5iA8YpKJhTjQVrOR/IuSoK+Pn0oLIY4ZcneX1b7Tr8bnNRkpvn0iCCkZ1WuOVr2b NdzTZ9uXGfaZsc5GrlCVIkti3oPpke5+FWAjwNNOYkgZkcZmOI0vSQEUAqmStgf5PGIy 3zGkYye1ZE95JyXfT257zD2AH+MhPkCdJoc/R1GFskLABjlm2ImyLpSb+NnsaWYteX2O WMwEPoSZCN+0t4T2UlR5Pue/Y/NVXASR8YylvGxC8NlBsVATiWYpPAv+0Tf/0xspvxC5 ocWw==
X-Received: by 10.50.110.65 with SMTP id hy1mr39249963igb.13.1414597161123; Wed, 29 Oct 2014 08:39:21 -0700 (PDT)
Received: from [192.168.0.102] (dsl-173-206-91-10.tor.primus.ca. [173.206.91.10]) by mx.google.com with ESMTPSA id f8sm2309411iof.15.2014.10.29.08.39.20 for <multiple recipients> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 29 Oct 2014 08:39:20 -0700 (PDT)
Message-ID: <54510A29.4050204@gmail.com>
Date: Wed, 29 Oct 2014 11:39:21 -0400
From: Tom Taylor <tom.taylor.stds@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: Randy Presuhn <randy_presuhn@mindspring.com>, Simon Perreault <sperreault@jive.com>
References: <28462556.1414552135464.JavaMail.root@mswamui-bichon.atl.sa.earthlink.net>
In-Reply-To: <28462556.1414552135464.JavaMail.root@mswamui-bichon.atl.sa.earthlink.net>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/opsawg/fKnnND7QweUDVxQQTJoTm2Gbabo
Cc: "opsawg@ietf.org" <opsawg@ietf.org>, "behave@ietf.org" <behave@ietf.org>
Subject: Re: [OPSAWG] Major NAT MIB Issue: Notifications and processor requirements at the agent
X-BeenThere: opsawg@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: OPSA Working Group Mail List <opsawg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/opsawg>, <mailto:opsawg-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/opsawg/>
List-Post: <mailto:opsawg@ietf.org>
List-Help: <mailto:opsawg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/opsawg>, <mailto:opsawg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 29 Oct 2014 15:40:09 -0000

Good point, thanks.

Tom Taylor

On 28/10/2014 11:08 PM, Randy Presuhn wrote:
> Hi -
>
>> From: Simon Perreault <sperreault@jive.com>
>> Sent: Oct 27, 2014 6:35 AM
>> To: Tom Taylor <tom.taylor.stds@gmail.com>
>> Cc: "opsawg@ietf.org" <opsawg@ietf.org>, "behave@ietf.org" <behave@ietf.org>
>> Subject: Re: [OPSAWG] Major NAT MIB Issue: Notifications and processor requirements at the agent
> ...
>>> draft-ietf-behave-nat-mib-11 triggers notifications based on the ratio of
>>> active address and port mappings using a given pool to the total number of
>>> address-port combinations made available by the pool, expressed as a
>>> percentage. As David Harrington pointed out, this makes a lot of demands on
>>> the agent processor. We have some alternatives:
> ...
>
> I haven't seen David's original comment, but I don't see how
> implementation to match the behaviour described here is
> at all demanding computationally.
>
> In a case like this, there are two pieces of information that
> change infrequently: the threshold and the total number of
> combinations made available by the pool; and one piece which
> changes frequently: the number of active mappings using the pool.
> A typical agent implementation strategy strategy for something like
> this simply (re-)computes the *integer* threshold against which
> the rapidly changing piece of information is to be compared.
> All the "expensive" processing (typically just a couple of divisions
> and multiplies) in terms of "ratios" only happens when processing
> a *configuration* change. The frequent operation (threshold check)
> is a simple integer compare in the same units as the variable of
> interest.
>
> Randy
>