Add submarine cable example #757
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey, thank you for creating an maintaining Numbat!
I made an example script that estimate the one-way and round-trip latency for data traveling through submarine cable. It's designed to be educational and demonstrates some numbat built-in functions and constant (
c
) for Network operators and new users who may not be very fluent in programming logic.Although does not include highly variable or complex factors, such as latency from Dispersion Compensating Fiber (DCF), bufferbloat, and specific path chosen by dynamic routing protocols; the script produces a reasonable approximation for human and holds up well against real-world measurements (around ~3-5 ms in different when using the cable length between data centers in Singapore and Jakarta).
References:
https://www.submarinecablemap.com/submarine-cable/matrix-cable-system
https://www.m2optics.com/blog/bid/70587/calculating-optical-fiber-latency
https://mapyourtech.com/latency-in-optical-networks-principles-optimization-and-applications/
Thank you for your time and for considering this PR, I am open to any feedback or suggested changes.