Commit 066bfe11 authored by Hejing Li's avatar Hejing Li
Browse files

change IP subnet and log period

parent d2122c1d
...@@ -320,7 +320,7 @@ def add_contig_bg(topo, subnet='10.42.0.0/16', **kwargs): ...@@ -320,7 +320,7 @@ def add_contig_bg(topo, subnet='10.42.0.0/16', **kwargs):
topo.add_host_r(c_host) topo.add_host_r(c_host)
def add_homa_bg(topo, subnet='10.0.0.0/16', **kwargs): def add_homa_bg(topo, subnet='10.2.0.0/16', **kwargs):
params = { params = {
'link_rate': '10Gbps', 'link_rate': '10Gbps',
'link_delay': '500ns', 'link_delay': '500ns',
...@@ -352,7 +352,7 @@ def add_homa_bg(topo, subnet='10.0.0.0/16', **kwargs): ...@@ -352,7 +352,7 @@ def add_homa_bg(topo, subnet='10.0.0.0/16', **kwargs):
s_app.remotes = remotes s_app.remotes = remotes
s_host.add_component(s_app) s_host.add_component(s_app)
s_probe = e2e.E2EPeriodicSampleProbe('probe', 'Rx') s_probe = e2e.E2EPeriodicSampleProbe('probe', 'Rx')
s_probe.interval = '1s' s_probe.interval = '500ms'
exp_name = params['exp_name'] exp_name = params['exp_name']
s_probe.file = f'{exp_name}_sink-rx-{i}' s_probe.file = f'{exp_name}_sink-rx-{i}'
s_app.add_component(s_probe) s_app.add_component(s_probe)
...@@ -362,7 +362,7 @@ def add_homa_bg(topo, subnet='10.0.0.0/16', **kwargs): ...@@ -362,7 +362,7 @@ def add_homa_bg(topo, subnet='10.0.0.0/16', **kwargs):
s_app.remotes = remotes s_app.remotes = remotes
s_host.add_component(s_app) s_host.add_component(s_app)
s_probe = e2e.E2EPeriodicSampleProbe('probe', 'Rx') s_probe = e2e.E2EPeriodicSampleProbe('probe', 'Rx')
s_probe.interval = '1s' s_probe.interval = '500ms'
exp_name = params['exp_name'] exp_name = params['exp_name']
s_probe.file = f'{exp_name}_sink-rx-{i}' s_probe.file = f'{exp_name}_sink-rx-{i}'
s_app.add_component(s_probe) s_app.add_component(s_probe)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment