mininet simulate OVS with ssl session
来源:互联网 发布:js控制div显示隐藏 编辑:程序博客网 时间:2024/06/16 17:44
##################################################################################
#这个脚本是建立2个swtich和host,并且通过ssl,连接到你的外部controller
#!/usr/bin/python
# this script will add 2 liner swtich with SSHfrom mininet.net import Mininet
from mininet.node import Controller,RemoteController
from mininet.cli import CLI
from mininet.log import setLogLevel,info
def emptyNet():
net = Mininet( controller=RemoteController )
net.addController( 'c0' )
h1 = net.addHost( 'h1' )
h2 = net.addHost( 'h2' )
s1 = net.addSwitch( 's1' )
s2 = net.addSwitch( 's2' )
net.addLink( h1, s1 )
net.addLink( h2, s2 )
net.start()
s1.cmd('ovs-vsctl set-controller s1 ssl:9.111.85.39:6633')
s2.cmd('ovs-vsctl set-controller s2 ssl:9.111.85.39:6633')
CLI(net)
net.stop()
if __name__ == '__main__':
setLogLevel('info')
emptyNet()
#######################################################################################################################
#这个脚本是使用mininet模拟很多个OVS通过SSL连接到你的外部controller
#这个脚本主要用于测试controller的performance测试
#!/usr/bin/python
# author:Spark.liu@cn.ibm.com , date:2014/6/10
# this script will add a linear a topolgoy with your set switch number,
# the switch will connect to remote controller your set by SSL session , so before running it ,pls add your certificaion to local OVS and remote controller
# for running this script ,your system should installed Mininet and OVS
from mininet.net import Mininet
from mininet.node import Controller,RemoteController
from mininet.cli import CLI
from mininet.log import setLogLevel,info
# change following parameter to simulate swtich number
switch_number = 10
# change following parameter with your remote controller IP
Controller_ip = "9.111.85.36"
def emptyNet():
net = Mininet( controller=RemoteController )
count = 1
s_list = []
while ( count < switch_number+1 ):
host_str = 'h%d' %(count)
switch_str = 's%d' %(count)
host = net.addHost( host_str )
switch = net.addSwitch( switch_str )
s_list.append(switch)
net.addLink( host, switch)
count += 1
for i,s in enumerate(s_list):
if i < switch_number-1 :
net.addLink(s_list[i],s_list[i+1])
net.start()
# ssh into controller from each swtich instance
for i,s in enumerate(s_list):
# s.cmd("ovs-vsctl set-controller s%s ssl:%s:6633" % (i+1,Controller_ip))
s.cmd("ovs-vsctl set-controller s%s other-config:datapath_id=11100000000%s ssl:%s:6633" % (i+1,i+1,Controller_ip))
CLI(net)
net.stop()
if __name__ == '__main__':
setLogLevel('info')
emptyNet()
##################################################################################################################
- mininet simulate OVS with ssl session
- Mininet with SSL connection
- 更新mininet内置的ovs
- 更新mininet内置的ovs
- update ovs to 2.3.0 in mininet
- mininet安装之前安装过ovs会报错
- SDN环境搭建(mininet,OVS,ryu安装及命令)
- mininet error: Cannot find required executable ovs-controller.
- SDN开发环境搭建之ryu+ovs+mininet
- Modelsim覆盖率测试 simulate with coverage
- SSL session
- Multipath routing with Group table at mininet
- mininet
- Mininet
- Using VLANs with OVS and libvirt
- Using VLANs with OVS and libvirt
- Connecting OVS Bridges with Patch Ports
- ovs
- asp.net发布到IIS中出现错误:处理程序“PageHandlerFactory-Integrated”在其模块列表中有一个错误模块“ManagedPipelineHandler”
- 收集的java常见问题与自己的理解
- SAX解析xml
- List、Set、Map、数组之间各种转换
- linux内核2.6.3x-I2C support
- mininet simulate OVS with ssl session
- Jquery中$.get(),$.post(),$.ajax(),$.getJSON()的用法总结
- 优秀的习惯
- CC++初学者编程教程(16) 搭建Xcode cocos2dx开发环境
- HDOJ1754 I Hate It 【线段树】
- 通配符与正则表达式
- Html中给select的option选项中添加上下标
- orcad转PADS Layout
- Resources$NotFoundException drawable-xhdpi from drawable resource