Skip to content

Make Networks Customizables #295

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

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

amdfxlucas
Copy link
Contributor

@amdfxlucas amdfxlucas commented Apr 16, 2025

Networks have a bunch of configuration parameters: MTU, latency, bandwidth, drop.
However these are not modeled as Options yet.
Thus you have to configure everything manually by calling the respective setters on all Networks we want to have values other than the default.

Instead there should be NetMTU, NetLatency etc. options which can be 'set' on Networks.
Moreover Networks are always owned by ASes, which are also Customizables and can possess (AS-specific) overrides for NetOptions and inherit these to their children (Network-Customizables ).

In this design the NetMTU could be easily changed globally for all Nets in the simulation, by a single line on the BaseLayer , rather than having to iterate over all ASes and their Nets. (i.e. global Jumbo Frame Use MTU==9000)

Also it would allow to change the values of options without having to rebuild and compile any docker images (OptionMode.RUN_TIME) But currently in this PR they're BUILD_TIME only for now (as it used to be).

Also it would be nice if we could specify the global default values for NetOptions ( i.e. for MTU ) per NetworkType (higher values for IX and XC maybe and 1500 for LocalNets ). But this is not possible yet.

@kevin-w-du
Copy link
Member

There are still errors in the testing

@amdfxlucas
Copy link
Contributor Author

i don't like the code duplication between NodeScope and NetScope. I'll think of a more elegant solution ..

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.

2 participants