Skip to content

Commit

Permalink
ECN counters (#960)
Browse files Browse the repository at this point in the history
* Add ECN marked and selected counters
  • Loading branch information
rszarecki authored Sep 19, 2023
1 parent 1196fbf commit 5d38d85
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 6 deletions.
8 changes: 7 additions & 1 deletion release/models/qos/openconfig-qos-elements.yang
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@ submodule openconfig-qos-elements {
packets for transmission, including policer and shaper
functions";

oc-ext:openconfig-version "0.10.0";
oc-ext:openconfig-version "0.11.0";

revision "2023-09-15" {
description
"Add support for ECN counters";
reference "0.11.0";
}

revision "2023-07-26" {
description
Expand Down
44 changes: 43 additions & 1 deletion release/models/qos/openconfig-qos-interfaces.yang
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ submodule openconfig-qos-interfaces {
configuration and operational state associated with
interfaces.";

oc-ext:openconfig-version "0.10.0";
oc-ext:openconfig-version "0.11.0";

revision "2023-09-15" {
description
"Add support for ECN counters";
reference "0.11.0";
}

revision "2023-07-26" {
description
Expand Down Expand Up @@ -381,6 +387,42 @@ submodule openconfig-qos-interfaces {
or AMQ (RED, WRED, etc) induced drops as indicated by the attached
queue-management-profile";
}

leaf ecn-marked-pkts {
type oc-yang:counter64;
description
"number of packets for which ECN codepoint has been changed from ECT to CE";
}

leaf ecn-marked-octets {
type oc-yang:counter64;
description
"Number of octets for which ECN codepoint has been changed from ECT to CE";
}

leaf ecn-selected-pkts {
type oc-yang:counter64;
description
"Number of packets selected by AQM
For RED/WRED AQM this counter counts:
- all packets enqueued while queue utilization was greater then max-threshold
- packs enqueued while queue utilization was between min-threshold and max-threshold, with probability derived from RED/WRED slope
Packets are counted regardless of its ECN codepoint";
}

leaf ecn-selected-octets {
type oc-yang:counter64;
description
"Number of octets of packets selected by AQM
For RED/WRED AQM this counter counts:
- all octets enqueued while queue utilization was greater then max-threshold
- octets enqueued while queue utilization was between min-threshold and max-threshold, with probability derived from RED/WRED slope
Octets are counted regardless of its ECN codepoint";
}
}

grouping qos-interface-queue-top {
Expand Down
10 changes: 8 additions & 2 deletions release/models/qos/openconfig-qos-mem-mgmt.yang
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,15 @@ submodule openconfig-qos-mem-mgmt {
per-queue basis, and determine how packets are marked/dropped within
the queue instantiation.";

oc-ext:openconfig-version "0.10.0";
oc-ext:openconfig-version "0.11.0";

revision "2023-07-26" {
revision "2023-09-15" {
description
"Add support for ECN counters";
reference "0.11.0";
}

revision "2023-07-26" {
description
"Add buffer management parameters in time unts (microseconds).
Make profiles reusable across LAGs and PHY of different speed";
Expand Down
10 changes: 8 additions & 2 deletions release/models/qos/openconfig-qos.yang
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,15 @@ module openconfig-qos {
"This module defines configuration and operational state data
related to network quality-of-service.";

oc-ext:openconfig-version "0.10.0";
oc-ext:openconfig-version "0.11.0";

revision "2023-07-26" {
revision "2023-09-15" {
description
"Add support for ECN counters";
reference "0.11.0";
}

revision "2023-07-26" {
description
"Add buffer management parameters in time unts (microseconds).
Make profiles reusable across LAGs and PHY of different speed";
Expand Down

0 comments on commit 5d38d85

Please sign in to comment.