Commit bf60b96e authored by Antoine Kaufmann's avatar Antoine Kaufmann Committed by Hejing Li
Browse files

experiments: update e2e_bgsplit experiment with working partitions

parent a530c146
...@@ -31,9 +31,9 @@ from simbricks.orchestration.e2e_topologies import ( ...@@ -31,9 +31,9 @@ from simbricks.orchestration.e2e_topologies import (
DCFatTree, add_contig_bg DCFatTree, add_contig_bg
) )
random.seed(42)
e = exp.Experiment('e2e_bg')
splits = [1,2,4]
options = { options = {
'ns3::TcpSocket::SegmentSize': '1448', 'ns3::TcpSocket::SegmentSize': '1448',
...@@ -41,19 +41,30 @@ options = { ...@@ -41,19 +41,30 @@ options = {
'ns3::TcpSocket::RcvBufSize': '524288', 'ns3::TcpSocket::RcvBufSize': '524288',
} }
topology = DCFatTree( experiments = []
n_spine_sw=1, for N in splits:
n_agg_bl=2, e = exp.Experiment(f'e2e_bgsplit-{N}')
n_agg_sw=1, # Make sure background hosts are placed the same way
n_agg_racks=1, random.seed(42)
h_per_rack=1,
) # Create empty topology first
add_contig_bg(topology) topology = DCFatTree(
nets = e2e_part.partition(topology, 2) n_spine_sw=1,
for net in nets: n_agg_bl=2,
net.opt = ' '.join([f'--{o[0]}={o[1]}' for o in options.items()]) n_agg_sw=1,
net.wait = True n_agg_racks=2,
e.add_network(net) h_per_rack=10,
net.init_network() )
# fill up with background traffic hosts
experiments = [e] add_contig_bg(topology)
# Partition into N ns-3 processes
nets = e2e_part.partition(topology, N)
for net in nets:
net.e2e_global.stop_time = '1s'
net.opt = ' '.join([f'--{o[0]}={o[1]}' for o in options.items()])
net.wait = True
e.add_network(net)
net.init_network()
experiments.append(e)
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