Skip to content

Commit e74d326

Browse files
committed
Updated base configuration files to work without modifications
1 parent 0f10462 commit e74d326

3 files changed

Lines changed: 176 additions & 66 deletions

File tree

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"default": {
3+
"25": {
4+
"QPSK": {
5+
"max_length": 22160,
6+
"slots_needed": 1
7+
},
8+
"16-QAM": {
9+
"max_length": 9500,
10+
"slots_needed": 1
11+
},
12+
"64-QAM": {
13+
"max_length": 3664,
14+
"slots_needed": 1
15+
}
16+
},
17+
"50": {
18+
"QPSK": {
19+
"max_length": 11080,
20+
"slots_needed": 2
21+
},
22+
"16-QAM": {
23+
"max_length": 4750,
24+
"slots_needed": 1
25+
},
26+
"64-QAM": {
27+
"max_length": 1832,
28+
"slots_needed": 1
29+
}
30+
},
31+
"100": {
32+
"QPSK": {
33+
"max_length": 5540,
34+
"slots_needed": 4
35+
},
36+
"16-QAM": {
37+
"max_length": 2375,
38+
"slots_needed": 2
39+
},
40+
"64-QAM": {
41+
"max_length": 916,
42+
"slots_needed": 2
43+
}
44+
},
45+
"200": {
46+
"QPSK": {
47+
"max_length": 2770,
48+
"slots_needed": 8
49+
},
50+
"16-QAM": {
51+
"max_length": 1187,
52+
"slots_needed": 4
53+
},
54+
"64-QAM": {
55+
"max_length": 458,
56+
"slots_needed": 3
57+
}
58+
},
59+
"400": {
60+
"QPSK": {
61+
"max_length": 1385,
62+
"slots_needed": 16
63+
},
64+
"16-QAM": {
65+
"max_length": 594,
66+
"slots_needed": 8
67+
},
68+
"64-QAM": {
69+
"max_length": 229,
70+
"slots_needed": 6
71+
}
72+
}
73+
}
74+
}

ini/example_ini/cross_platform.ini

Lines changed: 65 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,45 @@
11
[general_settings]
2-
mod_assumption = yue_thesis
3-
mod_assumption_path = None
4-
holding_time = 5
5-
erlangs = {'start': 250, 'stop': 300, 'step': 50}
6-
thread_erlangs = False
2+
holding_time = 0.2
3+
mod_assumption = default
4+
mod_assumption_path = data\\json_input\\example_mods\\default_mod_format.json
5+
6+
erlang_start = 300
7+
erlang_stop = 1200
8+
erlang_step = 300
9+
10+
max_iters = 4
711
guard_slots = 1
8-
num_requests = 1000
9-
request_distribution = {"25": 0.1, "50": 0.4, "100": 0.5, "200": 0.0, "400": 0.0,}
10-
max_iters = 1
11-
max_segments = 1
12+
max_segments = 4
13+
thread_erlangs = False
1214
dynamic_lps = False
15+
fixed_grid = False
16+
pre_calc_mod_selection = False
17+
spectrum_priority = None
18+
19+
num_requests = 500
20+
request_distribution = {"25": 0.10, "50": 0.10, "100": 0.50, "200": 0.20, "400": 0.10}
1321
allocation_method = first_fit
14-
k_paths = 3
22+
k_paths=4
1523
route_method = k_shortest_path
24+
1625
save_snapshots = False
1726
snapshot_step = 10
18-
print_step = 1
19-
fixed_grid = False
20-
pre_calc_mod_selection = False
21-
save_step = 1
27+
print_step = 15
28+
# todo: update save step on unity
29+
save_step = 10
2230
save_start_end_slots = False
23-
spectrum_priority = None
24-
25-
[spectrum_settings]
26-
c_band = 128
2731

2832
[topology_settings]
2933
network = NSFNet
3034
bw_per_slot = 12.5
31-
cores_per_link = 4
35+
cores_per_link = 3
3236
const_link_weight = False
3337
is_only_core_node = True
3438
multi_fiber = False
3539

40+
[spectrum_settings]
41+
c_band = 320
42+
3643
[snr_settings]
3744
snr_type = None
3845
xt_type = without_length
@@ -46,40 +53,59 @@ xt_noise = False
4653
requested_xt = {"QPSK": -26.19, "16-QAM": -36.69, "64-QAM": -41.69}
4754

4855
[rl_settings]
56+
obs_space = obs_3
57+
n_trials = 1
4958
device = cpu
50-
optimize = False
59+
optimize_hyperparameters = False
60+
optuna_trials = 1
5161
is_training = True
52-
path_algorithm = ucb_bandit
53-
path_model = greedy_bandit/NSFNet/0617/16_47_22_694727/state_vals_e750.0_routes_c4.json
62+
63+
path_algorithm = epsilon_greedy_bandit
64+
path_model = None
5465
core_algorithm = first_fit
55-
core_model = greedy_bandit/NSFNet/0617/16_57_13_315030/state_vals_e750.0_cores_c4.json
66+
core_model = None
5667
spectrum_algorithm = first_fit
57-
spectrum_model = ppo/NSFNet/0512/12_57_55_484293
58-
# Only for DRL
68+
spectrum_model = None
69+
5970
render_mode = None
6071
super_channel_space = 3
61-
# Only for q-learning
62-
learn_rate = 0.01
63-
discount_factor = 0.95
64-
epsilon_start = 0.2
65-
epsilon_end = 0.05
72+
73+
alpha_start = 0.000215
74+
alpha_end = 0.000215
75+
alpha_update = linear_decay
76+
77+
gamma = 0.1
78+
79+
epsilon_start = 0.01
80+
epsilon_end = 0.01
81+
82+
epsilon_update = exp_decay
83+
84+
# TODO: (drl_path_agents) This is hard coded at the moment
85+
path_levels = 2
86+
decay_rate = 0.4
87+
88+
feature_extractor = path_gnn
89+
gnn_type = graph_conv
90+
layers = 2
91+
emb_dim = 64
92+
heads = 4
93+
94+
conf_param = 2
95+
cong_cutoff = 0.9
96+
6697
reward = 1
67-
penalty = -100
98+
penalty = -10
6899
dynamic_reward = False
69-
# TODO: Sim helpers has not been updated for this! (Only support for 2)
70-
path_levels = 2
71-
decay_factor = 0.01
72100
core_beta = 0.1
73-
gamma = 0.1
74101

75102
[ml_settings]
76103
deploy_model = False
77104
output_train_data = False
78105
ml_training = False
79-
ml_model = decision_tree
80-
train_file_path = Pan-European/0531/22_00_16_630834
81-
# train_file_path = USNet/0531/21_16_21_157019
106+
ml_model = None
107+
train_file_path = None
82108
test_size = 0.3
83109

84110
[file_settings]
85-
file_type = json
111+
file_type = json

ini/example_ini/example_config.ini

Lines changed: 37 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,44 @@
1-
# TODO: (version 5.5-6) This config.ini is outdated
2-
31
[general_settings]
42
holding_time = 0.2
5-
mod_assumption = your_mod_assumption
6-
mod_assumption_path = run_mods
3+
mod_assumption = default
4+
mod_assumption_path = data\\json_input\\example_mods\\default_mod_format.json
75

8-
erlang_start = 50
9-
erlang_stop = 150
10-
erlang_step = 50
6+
erlang_start = 300
7+
erlang_stop = 1200
8+
erlang_step = 300
119

12-
max_iters = 2
10+
max_iters = 4
1311
guard_slots = 1
14-
max_segments = 1
12+
max_segments = 4
1513
thread_erlangs = False
1614
dynamic_lps = False
1715
fixed_grid = False
1816
pre_calc_mod_selection = False
1917
spectrum_priority = None
2018

21-
num_requests = 2000
22-
request_distribution = {"25": 0.0, "50": 0.3, "100": 0.5, "200": 0.2, "400": 0.0}
23-
19+
num_requests = 500
20+
request_distribution = {"25": 0.10, "50": 0.10, "100": 0.50, "200": 0.20, "400": 0.10}
2421
allocation_method = first_fit
25-
k_paths=3
22+
k_paths=4
2623
route_method = k_shortest_path
2724

2825
save_snapshots = False
2926
snapshot_step = 10
30-
print_step = 1
31-
save_step = 1
27+
print_step = 15
28+
# todo: update save step on unity
29+
save_step = 10
3230
save_start_end_slots = False
3331

3432
[topology_settings]
3533
network = NSFNet
3634
bw_per_slot = 12.5
37-
cores_per_link = 1
35+
cores_per_link = 3
3836
const_link_weight = False
3937
is_only_core_node = True
4038
multi_fiber = False
4139

4240
[spectrum_settings]
43-
c_band = 128
41+
c_band = 320
4442

4543
[snr_settings]
4644
snr_type = None
@@ -55,12 +53,14 @@ xt_noise = False
5553
requested_xt = {"QPSK": -26.19, "16-QAM": -36.69, "64-QAM": -41.69}
5654

5755
[rl_settings]
58-
n_trials = 2
56+
obs_space = obs_3
57+
n_trials = 1
5958
device = cpu
60-
optimize = False
59+
optimize_hyperparameters = False
60+
optuna_trials = 1
6161
is_training = True
6262

63-
path_algorithm = ppo
63+
path_algorithm = epsilon_greedy_bandit
6464
path_model = None
6565
core_algorithm = first_fit
6666
core_model = None
@@ -70,18 +70,29 @@ spectrum_model = None
7070
render_mode = None
7171
super_channel_space = 3
7272

73-
alpha_start = 0.1
74-
alpha_end = 0.01
73+
alpha_start = 0.000215
74+
alpha_end = 0.000215
7575
alpha_update = linear_decay
7676

7777
gamma = 0.1
7878

79-
epsilon_start = 0.0
80-
epsilon_end = 0.0
81-
epsilon_update = linear_decay
79+
epsilon_start = 0.01
80+
epsilon_end = 0.01
81+
82+
epsilon_update = exp_decay
8283

84+
# TODO: (drl_path_agents) This is hard coded at the moment
8385
path_levels = 2
84-
decay_factor = 0.01
86+
decay_rate = 0.4
87+
88+
feature_extractor = path_gnn
89+
gnn_type = graph_conv
90+
layers = 2
91+
emb_dim = 64
92+
heads = 4
93+
94+
conf_param = 2
95+
cong_cutoff = 0.9
8596

8697
reward = 1
8798
penalty = -10
@@ -98,4 +109,3 @@ test_size = 0.3
98109

99110
[file_settings]
100111
file_type = json
101-

0 commit comments

Comments
 (0)