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

Should AFT next hop weight have a range restriction? #1106

Closed
dplore opened this issue May 6, 2024 · 6 comments
Closed

Should AFT next hop weight have a range restriction? #1106

dplore opened this issue May 6, 2024 · 6 comments
Labels

Comments

@dplore
Copy link
Member

dplore commented May 6, 2024

leaf weight {
type uint64;
description
"The weight applied to the next-hop within the group. Traffic
is balanced across the next-hops within the group in the
proportion of weight/(sum of weights of the next-hops within
the next-hop group).";
}
}

It seems a zero value should not be allowed. Any comments?

@rszarecki

@rszarecki
Copy link
Contributor

rszarecki commented May 7, 2024 via email

@rszarecki
Copy link
Contributor

rszarecki commented May 7, 2024 via email

@dplore
Copy link
Member Author

dplore commented May 8, 2024

So we definitely should not allow a '0' value here because it is ambiguous how that should be handled.

I do agree deciding on an upper range limit that is less than 2^64 is probably a good idea for the reasons you point out. It's a bit arbitrary to pick the exact value of this limit and in practice, implementations will have to convert/scale the limit to the hardware's capability, which will reduce the precision (or fidelity as you mention) of the traffic distribution.

uint16 with range 1..1000 sounds good to me. It would be good to hear comments from others.

@robshakir
Copy link
Contributor

Please do not change the datatype here. It's a backwards incompatible change with far reaching consequences across different APIs. I strongly oppose a type change. The ratio can be calculated even with uint64.

w.r.t value = 0, a clarification for this seems reasonable -- but please validate existing gRIBI implementation behaviours before making this change.

@rszarecki
Copy link
Contributor

rszarecki commented May 8, 2024 via email

Copy link

github-actions bot commented Nov 4, 2024

This issue is stale because it has been open 180 days with no activity. If you wish to keep this issue active, please remove the stale label or add a comment, otherwise will be closed in 14 days.

@github-actions github-actions bot added the Stale label Nov 4, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

3 participants