A Python network infrastructure simulator focused on optical lightpath routing, latency/SNR optimization, and Monte Carlo traffic studies.
- Optical line propagation with ASE and NLI noise modeling.
- Latency and SNR-weighted routing for traffic demands.
- Monte Carlo simulation loop with congestion analysis.
- Configurable traffic matrix generation and transceiver modes.
- Sample 9-node topology included (
nodes_9.json).
- Python 3.9+
numpy,pandas,scipy,matplotlib
Install dependencies:
python -m pip install -r requirements.txtRun the default simulation:
python main.pyCustomize topology and simulation parameters:
python main.py \
--topology nodes_9.json \
--channels 10 \
--iterations 5 \
--upgrade-line DB \
--best snr \
--transceiver shannonThe script prints summary statistics and displays plots for:
- Line congestion
- SNR distributions
See docs/USAGE.md for deeper usage and topology guidance.
main.py: core simulation logic and CLI.nodes_9.json: sample topology.docs/: extended documentation.