-
Notifications
You must be signed in to change notification settings - Fork 3k
[Mbed OS 5.15] Add getsockopt option to read network property #12882
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
Conversation
Add getsockopt options NSAPI_LATENCY and NSAPI_STAGGER to read network specific timing constraints from socket. -NS_LATENCY returns estimated latency to given address. -NSAPI_STAGGER returns estimated initial delay that application should wait before transmitting data to network. Application can use the new options to avoid network congestion by adjusting transmission delays and retry timeouts. Add wrappers to make API usage easier: -get_rtt_estimate_to_address -get_stagger_estimate_to_address This is backport of the ARMmbed#12522
@artokin, thank you for your changes. |
CI started |
Test run: FAILEDSummary: 1 of 3 test jobs failed Failed test jobs:
|
Adjust RTT/stagger API unit tests to work in mbed-os-5.15 branch.
Stagger/latency unit tests fixed, would you please re-review? |
CI started (As we had to update the config, it might fail, will check and fix) |
Failure related to teh CI changes, will be fixed |
CI restarted |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved.
Summary of changes
This is backport of the PR #12522
Add getsockopt options NSAPI_LATENCY and NSAPI_STAGGER to read
network specific timing constraints from socket.
-NS_LATENCY returns estimated latency to given address.
-NSAPI_STAGGER returns estimated initial delay that application
should wait before transmitting data to network.
Application can use the new options to avoid network congestion by
adjusting transmission delays and retry timeouts.
Add wrappers to make API usage easier:
-get_rtt_estimate_to_address
-get_stagger_estimate_to_address
Impact of changes
Application is able to adapt to networks that have low bandwidth and high latency.
Migration actions required
Documentation
Pull request type
Test results
Reviewers
@ARMmbed/mbed-os-mesh , @TuomoHautamaki