[Green] Re: Should GREEN cover batteries? (decision about negative instantaneous-power)
"Benoit@everything-ops.net" <benoit@everything-ops.net> Mon, 31 August 2026 16:46 UTC
Return-Path: <benoit@everything-ops.net>
X-Original-To: green@mail2.ietf.org
Delivered-To: green@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 261F71326581D for <green@mail2.ietf.org>; Mon, 31 Aug 2026 09:46:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1788194782; bh=O40OcPNgo9RPSzkbEqvLQmYwTO5wuKERm0x0KzbXS9g=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=bN7UmwShtORzKfgoWXvM6XJo8uLmumkcAL6sIalJ1QoXowwoWBlCaaDwHZn9YAe6U T4JtLQAgkkdl0XfuN7aQAJo5IpUeEiHr011NC7/kCpOhpUivqN+7dasR+pXEWybGR3 Q+cyKpbOdRHes3fn0NgK2ZhvBd2N8UD75ZTZEnfs=
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=everything-ops.net
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CVD9PcxBhKF1 for <green@mail2.ietf.org>; Mon, 31 Aug 2026 09:46:20 -0700 (PDT)
Received: from smtpout7.mo540.mail-out.ovh.net (smtpout7.mo540.mail-out.ovh.net [51.210.91.56]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 6A34B13265816 for <green@ietf.org>; Mon, 31 Aug 2026 09:46:20 -0700 (PDT)
Received: from director6.derp.mail-out.ovh.net (director6.derp.mail-out.ovh.net [79.137.60.226]) by mo540.mail-out.ovh.net (Postfix) with ESMTPS id 4hYZd11SjSz42tg; Mon, 31 Aug 2026 16:46:13 +0000 (UTC)
Received: from director6.derp.mail-out.ovh.net (director6.derp.mail-out.ovh.net. [127.0.0.1]) by director6.derp.mail-out.ovh.net (inspect_sender_mail_agent) with SMTP for <green@ietf.org>; Mon, 31 Aug 2026 16:46:13 +0000 (UTC)
Received: from mta6.priv.ovhmail-u1.ea.mail.ovh.net (unknown [10.110.118.229]) by director6.derp.mail-out.ovh.net (Postfix) with ESMTPS id 4hYZd10X5Dz47qB; Mon, 31 Aug 2026 16:46:13 +0000 (UTC)
Received: from everything-ops.net (unknown [10.1.6.8]) (Authenticated sender: benoit@everything-ops.net) by mta6.priv.ovhmail-u1.ea.mail.ovh.net (Postfix) with ESMTPSA id B94108E1B6D; Mon, 31 Aug 2026 16:46:12 +0000 (UTC)
Authentication-Results: garm.ovh; auth=pass (GARM-105G00688f2425d-7c5b-43f5-b684-49243b075c9c, EFDD39D2E75A50028468E32F0D4FA02ECA4286E8) smtp.auth=benoit@everything-ops.net
X-OVh-ClientIp: 91.86.233.52
Content-Type: multipart/alternative; boundary="------------UZsfNje5HQw0had0JzysuTd2"
Message-ID: <6faa9d5a-4507-4462-a355-65d5890a3950@everything-ops.net>
Date: Mon, 31 Aug 2026 18:46:12 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: Tony Li <tony.li@tony.li>
References: <c9243e9c-8547-4332-9588-e1e1550de8fe@everything-ops.net> <16456B74-0069-45E7-9629-D7E48108C87B@tony.li> <f00ea6e0-5583-4445-9453-7a3c30844a80@everything-ops.net> <5D8F5658-907E-4F21-B299-CFCB7987161A@tony.li>
Content-Language: en-US, fr
From: "Benoit@everything-ops.net" <benoit@everything-ops.net>
In-Reply-To: <5D8F5658-907E-4F21-B299-CFCB7987161A@tony.li>
x-ovh-tracer-id: 12670033127701521824
X-VR-SPAMSTATE: OK
X-VR-SPAMSCORE: -100
X-VR-SPAMCAUSE: dmFkZTFSCwm4c/EwR3esQlzsifDJP1TwXxvO9IL8Nz9h7TcgskFE54Njvctet1Wzt1Zm6dj6gxbn47OrhFu5uohIkyyZCj+kRlH9Tpihc05K7VrY9HTd8e013fweTGXm4XARIIWDKQY9xKkfIJdj1ZjuqAW0tItYd3Tu5MZJYGhoHufjSKsP4k6B98OfeLuehekgxABSW3biCcID8ct2U/GoBx6G39+YBtLT6eW/IP712zqBY5CLjstN1p5JSIL87tsTxVAW0N2ae81yM7dnkqmG46NPniDKaXJlb/fNJk/7XYBdQGldAZU2vHWSyzrAIKba8bc/+gD1j/f6BjnnyH7oxBcgtrUSutPer7HlFmeolG99kCHFwRnGfhyZkJnwZ6y95/BeqauxUOLrGVAiGELeM7HmewfR9tFa7qDEbNZbA+SinbQ2T9Kw5V1e56ODCDo/L+BaXQpBnG1YU2QgC+aEDQ3SX0avL4xebThmiFiZEi6B/2Q3Tf8v/w1i/wRvznbbMl3YCllNLjpsFPKoi/ezsHWSVSOCBenJKUmJS+xwxnu34SPZxGYmt040ikU/eIwou2KEiqLSGcGD4d6nbjySFzeUz0H1eoUjhfb7hkODAqT3FgOO2WwxIxpMOSTx1Bxp/Ez2Q1A4XZYrIeeBOFmVjk3XCocKyz3ydYb7dCpbT9cz1w
DKIM-Signature: a=rsa-sha256; bh=VS1FLzj/wZVAb3C5ZCD+xdQqadumv3Plqt5NKQQxKHg=; c=relaxed/relaxed; d=everything-ops.net; h=From; s=ovhmo-selector-1; t=1788194773; v=1; b=jOLRVPNBSaB17bcJtOamg9rzuoTLVWa8/l774R4PMInBnt/vWRLA5Z1gRjzyoxgd29ROEyxe QapwdejEYeO5bZQ8pFKtznxhZHCYuCsrTcdSZ291WxX84Phafyja+PR9jtsN1jgGLX4xB4w93ll 6Mitssr0baPkxnMGcvcVe/cG7DNhe2jCd2rAo0tLL1ltbTGyF5dzxKqONpOvqT19hYvDt3orAnC L7Nz3WhmC8QYoGqJBWHfvqQNx0TwUAd0SaPJz6FNyIcgJyXI+okzKVFxf3e3LiCvdPMjjrdDhGq 2zCci5WV0ldxZpxELysQg7e2Og/1Zo/J2V4FVtBblhXZA==
Message-ID-Hash: 6OH332WLYXIPRIWZW2HMAT4D2EGYA667
X-Message-ID-Hash: 6OH332WLYXIPRIWZW2HMAT4D2EGYA667
X-MailFrom: benoit@everything-ops.net
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: "green@ietf.org" <green@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [Green] Re: Should GREEN cover batteries? (decision about negative instantaneous-power)
List-Id: Getting Ready for Energy-Efficient Networking WG <green.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/green/9cAIvmhPudiHkejkYw6yBUn6CU0>
List-Archive: <https://mailarchive.ietf.org/arch/browse/green>
List-Help: <mailto:green-request@ietf.org?subject=help>
List-Owner: <mailto:green-owner@ietf.org>
List-Post: <mailto:green@ietf.org>
List-Subscribe: <mailto:green-join@ietf.org>
List-Unsubscribe: <mailto:green-leave@ietf.org>
Hi Tony,
On 31/08/2026 17:05, Tony Li wrote:
> Hi Benoit,
>
>> Trying to close this issue, what are your views on
>> 1. we don't support battery (solar panel, etc) in our architecture: instantaneous-power is uint32
>> 2. the GREEN framework could support batteries in the future but we don't now: instantaneous-power is int32 and we explain the rational.
>> 3. the GREEN framework supports batteries now and we have a YANG module dedicated to batteries now: instantaneous-power is int32
>
> Every system that I have ever worked on has at least one (sometimes many) power supply(ies). If you want to model components, then this deserves to be included now. Batteries are not a special case.
>
> Ergo, I propose:
>
> - Retain instantaneous-power as int32. Add a comment saying that negative values are for power generating components.
That makes sense.
So the current spec is correct.
leaf instantaneous-power {
type int32;
units "Watts";
mandatory true;
description
"The power usage measurement for the energy object right now.
This value represents the instantaneous power consumption
of the component. This value is specified in SI units of watts
with the magnitude of watts (milliwatts, kilowatts, etc.) indicated
separately as unit-multiplier in this container. Positive values
indicate power consumption, while negative values can indicate power
generation (e.g., for devices with battery backup or
renewable energy sources).";
}
We could add some text about this, either in
draft-ietf-green-power-and-energy-yang (I don't see it) or
draft-ietf-green-framework-02
<https://datatracker.ietf.org/doc/draft-ietf-green-framework/> (I
haven't checked)
> - Nameplate-power becomes a int32. Same comment.
Thinking some more about it (and contradicting myself in my previous
email), I am wondering whether it make sense?
Nameplate is a rating, not a flow. A 750 W supply is rated 750 W; what
does a negative rating mean, since there is no instant at which a
nameplate value is being measured in some direction. On top of that, for
a battery, we need more attributes, such as energy capacity. What is
confusing from the YANG leaf is "consume or produce", and this needs an
update
leaf nameplate-power {
type uint32;
units "Watts";
description
"The nameplate power rating of an energy object. This is
the maximum power that the energy object is designed to consume or
produce, as specified by the manufacturer. Essential for
power budget calculations and capacity planning.";
}
Proposal: keep uint32, but fix the description.
> - Total-energy-consumed becomes a int64. Same comment.
> - Delete total-energy-delivered.
I would keep the previous two together, as uint64. A sign is sufficient
for a rate but insufficient for an accumulator. Instantaneous power is a
value at an instant, so the sign carries the direction with no loss. A
UPS battery that cycles daily has a net counter that oscillates around
zero forever and conveys nothing: you lose the energy throughput, and
you lose round-trip efficiency (delivered/consumed), which for a battery
is the single most useful derived figure there is. On modelling a
battery generally: the base model already carries one today with an
iana-hardware identity called "battery", so source-component-id points
at it; instantaneous-power signs the direction; the two energy counters
accumulate charge and discharge; and the relationship list is keyed by
type with an inner peer list, so an object can hold powered-by (its
charger) and powering (the chassis it backs) at the same time. What a
battery needs beyond that — state of charge, design vs actual capacity,
cycle count, charge/discharge ratings, charging state — belongs in an
augment. This last sentence is Option 3 in the initial list. I would not
cover it in GREEN, personally.
Regards, Benoit
>
> Tony
>
- [Green] Should GREEN cover batteries? (decision a… Benoit@everything-ops.net
- [Green] Re: Should GREEN cover batteries? (decisi… Tony Li
- [Green] Re: Should GREEN cover batteries? (decisi… Benoit@everything-ops.net
- [Green] Re: Should GREEN cover batteries? (decisi… Tony Li
- [Green] Re: Should GREEN cover batteries? (decisi… Benoit@everything-ops.net
- [Green] Re: Should GREEN cover batteries? (decisi… Tony Li
- [Green] Re: Should GREEN cover batteries? (decisi… Benoit@everything-ops.net