Skip to content

doc/qos: HLD for WRED profile independent ECN marking thresholds#2433

Open
AnantKishorSharma wants to merge 1 commit into
sonic-net:masterfrom
AnantKishorSharma:hld-wred-ecn-marking-thresholds
Open

doc/qos: HLD for WRED profile independent ECN marking thresholds#2433
AnantKishorSharma wants to merge 1 commit into
sonic-net:masterfrom
AnantKishorSharma:hld-wred-ecn-marking-thresholds

Conversation

@AnantKishorSharma

@AnantKishorSharma AnantKishorSharma commented Jul 1, 2026

Copy link
Copy Markdown

This PR adds a High-Level Design for independent ECN marking thresholds in WRED_PROFILE, decoupling ECN marking from the WRED drop thresholds ("mark before drop") with a distinct per-color mark probability. It reuses existing SAI WRED ECN attributes — no SAI header (API) change.

The design is aligned with SAI: attribute names, sai_uint32_t types/defaults, the @validonly conditions (SAI_WRED_ATTR_ECN_MARK_MODE + SAI_SWITCH_ATTR_ECN_ECT_THRESHOLD_ENABLE), and the SAI-defined fallback to the WRED drop thresholds when the ECN fields are unset (backward compatible).

Related PRs and specs:

Repo PR title State
sonic-swss orchagent: support independent WRED ECN marking thresholds state
sonic-buildimage sonic-yang-models: add WRED profile ECN marking threshold fields state

Add a High-Level Design for decoupling ECN marking thresholds from the WRED
drop thresholds in WRED_PROFILE. Documents the new per-color CONFIG_DB fields,
the orchagent-to-SAI mapping (SAI_WRED_ATTR_ECN_*), the switch-global
SAI_SWITCH_ATTR_ECN_ECT_THRESHOLD_ENABLE control, validation rules, backward
compatibility, and the test plan.

Signed-off-by: Anant Kishor Sharma <anant.kishor-sharma@hpe.com>
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

@AnantKishorSharma AnantKishorSharma marked this pull request as ready for review July 1, 2026 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants