Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPLS EXP to TC mapping HLD #844

Merged
merged 3 commits into from
Mar 23, 2022
Merged

Conversation

abanu-ms
Copy link
Contributor

@abanu-ms abanu-ms commented Aug 17, 2021

This HLD presents the design for adding the MPLS EXP to TC QoS mapping, along the existing DSCP to TC mapping.

Code PRs:
swss-common: sonic-net/sonic-swss-common#537
swss: sonic-net/sonic-swss#1954
utilites: sonic-net/sonic-utilities#1875


### 8.1. DB

The CONFIG DB will be updated to include a new "MPLS_EXP_TO_TC_MAP_TABLE" similar to the existing "DSCP_TO_TC_MAP_TABLE". This will have the following format:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're changing the DSCP_TO_TC_MAP_TABLE table representation in the config-DB now, please refer to the below PR and ensure to follow the same model for MPLS TC to TC MAP table as well.
https://github.com/Azure/sonic-buildimage/pull/7375/files

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any expected date when that PR is going to get in? We'd want the MPSL TC to TC MAP PR to get in for the November release. If the referenced PR isn't going to be merged soon or at least the existing comments to be addressed in order to come to a conclusion about how the map/list structure should look like, we could proceed with the existing design and come back and update it when that PR is also merged.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following up on the today's meeting for clarity - is the existing DSCP_TO_TC_MAP table structure an issue? If not, the new table is going to look exactly the same for MPLS. If it is an issue, could you please explain how you think the table structure should be updated?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our code now follows the new model

Copy link
Collaborator

@rck-innovium rck-innovium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A user can bind the MPLS_TC_TO_TC_MAP to the switch, port, and/or MPLS in-segment entry using the below SAI attributes:
SAI_SWITCH_ATTR_QOS_MPLS_EXP_TO_TC_MAP or SAI_PORT_ATTR_QOS_MPLS_EXP_TO_TC_MAP or SAI_INSEG_ENTRY_ATTR_MPLS_EXP_TO_TC_MAP.

The proposal defines an MPLS_TC_TO_TC_MAP. However it does not specify how an user can specify the binding of the map.

@abanu-ms
Copy link
Contributor Author

A user can bind the MPLS_TC_TO_TC_MAP to the switch, port, and/or MPLS in-segment entry using the below SAI attributes:
SAI_SWITCH_ATTR_QOS_MPLS_EXP_TO_TC_MAP or SAI_PORT_ATTR_QOS_MPLS_EXP_TO_TC_MAP or SAI_INSEG_ENTRY_ATTR_MPLS_EXP_TO_TC_MAP.

The proposal defines an MPLS_TC_TO_TC_MAP. However it does not specify how an user can specify the binding of the map.

I've updated the proposal to include per-port binding configuration details.

At this point we're not going to offer support for per-switch and per-inseg configuration as the scope is to offer the same amount of support as DSCP to TC map does in the beginning.

@zhangyanzhao
Copy link
Collaborator

@abanu-ms can you please add the code PRs into this HLD PR by referring to the example #806

@TACappleman
Copy link
Contributor

@abanu-ms can you please add the code PRs into this HLD PR by referring to the example #806

Done

@TACappleman
Copy link
Contributor

@zhangyanzhao can this doc be merged? (All the code PRs for it are now in)

@zhangyanzhao zhangyanzhao merged commit 6db781a into sonic-net:master Mar 23, 2022
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.

5 participants