Skip to content

Commit

Permalink
simulation adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
lh70 committed Aug 21, 2024
1 parent e3784ef commit 47c1393
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Modules/DTN/simulation/shared/run-dgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@

router_variant = "flooding" # options: "flooding", "epidemic", "spray", "binary", "rdt", "rdt2"

# special config
rdt_client_operation_mode = "pushall" # options: "pushall", "requestlater"

# special rdt configs
addwins_rdt_number_of_additions = 1000
addwins_rdt_sleep_time_milliseconds = 500

Expand Down Expand Up @@ -224,7 +226,7 @@ def get_substituted_config_files(self):
if rdt_variant == "addwins":
additional_config = f"-awa {addwins_rdt_number_of_additions} -awt {addwins_rdt_sleep_time_milliseconds} "

config_str = f"bash -c '/root/.coregui/scripts/rdt_tool -m client -cr {rdt_variant}.{node_map[node_name]} {additional_config}-ma 172.16.0.1 &> client.log'"
config_str = f"bash -c '/root/.coregui/scripts/rdt_tool -m client -cr {rdt_variant}.{node_map[node_name]} -cm {rdt_client_operation_mode} {additional_config}-ma 172.16.0.1 &> client.log'"

print(f"adding rdt client to node {node_name}, config: {config_str}")
core.set_node_service(session_id, node_map[node_name], "rdtclient", startup=(config_str,))
Expand Down

0 comments on commit 47c1393

Please sign in to comment.