2.0으로 업데이트 되면서 좋은 기능이 많이 추가 되었다.
1. Mininet link의 bandwidth와 delay 조절이 가능
2. ubuntu 12.10 에서 기능이 추가된 ovsk를 사용 가능
3. python을 이용한 customized mininet node 생성 가능
4. link up/down 기능 인터페이스 추가
5. controller 옵션의 변경
6. 아래처럼 첫줄 Topo 옆에 Node 옵션이 제거 되었으며 스위치와 링크 추가 하는 명령어 변화
7. mininet> h2 python -m SimpleHTTPServer 80 >& /tmp/http.log &
mininet> h3 wget -O – h2
위의 명령어처럼 웹서버 구축 가능
from mininet.topo import Topo
class MyTopo( Topo ):
def __init__( self ):# Initialize topology
Topo.__init__( self )
# Add hosts and switches
leftHost = self.addHost( ‘h1’ )
rightHost = self.addHost( ‘h2’ )
leftSwitch = self.addSwitch( ‘s3’ )
rightSwitch = self.addSwitch( ‘s4’ )# Add links
self.addLink( leftHost, leftSwitch )
self.addLink( leftSwitch, rightSwitch )
self.addLink( rightSwitch, rightHost )topos = { ‘mytopo’: ( lambda: MyTopo() ) }
ex) sudo mn –mac –switch ovsk –controller=remote,ip=x.x.x.x,port=x –topo mytopo –custom ~/mininet/custom/mytopo.py