How to set bandwidth on Mininet custom topology?
You should add cls=TCLink
on the self.addLink(h1,s1,bw=10)
so the code will be self.addLink(h1,s1,cls=TCLink,bw=10)
Add to the other addLink
to make it work
When starting Mininet, add an additional argument --link=tc
You should use --link
argument. For example:
sudo mn --topo tree,depth=2,fanout=5 --controller=remote,ip=10.0.0.1,port=6633 --switch ovsk,protocols=OpenFlow13, --link tc,bw=1,delay=10ms
I'll update with an example soon.