-
Notifications
You must be signed in to change notification settings - Fork 9
munet: expose network intf to tc #87
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
base: main
Are you sure you want to change the base?
munet: expose network intf to tc #87
Conversation
tc network parameters are configured once per-network, with attached interfaces inheriting the configuration. This contrasts node config, wherein the same tc network parameters are exposed on a per-connection (i.e. per-interface) basis. Signed-off-by: Liam Brady <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #87 +/- ##
==========================================
+ Coverage 58.88% 59.14% +0.25%
==========================================
Files 19 19
Lines 5833 5833
==========================================
+ Hits 3435 3450 +15
+ Misses 2398 2383 -15 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
NAK: Need a solution that allows each connection of the network to be modified independently. An open suggestion is to configure values on the Node-side instead of Network-side. |
|
There are two paths forward that I can see regarding enabling the per-connection config of loss, latency, etc. for networks:
The updated networks schema would be as follows: Wherein the network-level config is the default for all interfaces managed by the network, and connection-level config is more specific. Note that the connection-level config was actually swapped out with network-level config within this PR (LoC 3198 in
For example, loss would be configured in a topology as follows: This technically reduces the set of offered functionalities (since munet would no longer support connections with unequal tx/rx metrics.) However, this might be more intuitive to a user who is not familiar with how the metrics are being applied under the hood (e.g. via Thoughts: Personally, I prefer option 1 since it maintains unequal tx/rx functionality that might have a valid use case in certain realistic topologies. A page in the docs can always be added to explain how it is applied under the hood. Do you have any insight/opinions @choppsv1 ? |
tc network parameters are configured once per-network, with attached interfaces inheriting the configuration. This contrasts node config, wherein the same tc network parameters are exposed on a per-connection (i.e. per-interface) basis.