... | ... | @@ -73,16 +73,16 @@ net.addHost('h2') |
|
|
net.addHost('h3')
|
|
|
net.addHost('h4')
|
|
|
|
|
|
net.addLink("h1", "s1", weight=5)
|
|
|
net.addLink('h1', 's1', weight=5)
|
|
|
net.setBw('h1', 's1', 20)
|
|
|
net.setDelay('h1', 's1', 20)
|
|
|
net.setMaxQueueSize('h1', 's1', 100)
|
|
|
net.setLoss('h1', 's1', 0.01)
|
|
|
net.addLink("h2", "s2")
|
|
|
net.addLink("s1", "s2")
|
|
|
net.addLink("h3", "s3")
|
|
|
net.addLink("h4", "s3")
|
|
|
net.addLink("s1", "s3")
|
|
|
net.addLink('h2', 's2')
|
|
|
net.addLink('s1', 's2')
|
|
|
net.addLink('h3', 's3')
|
|
|
net.addLink('h4', 's3')
|
|
|
net.addLink('s1', 's3')
|
|
|
|
|
|
# Assignment strategy
|
|
|
net.mixed()
|
... | ... | |