当前位置: 首页 > news >正文

网站框架怎么做/深圳全网推互联科技有限公司

网站框架怎么做,深圳全网推互联科技有限公司,wood怎么做网站结构图,镇江seo网络推广定制在Coursera SDN开放课程中,编程作业要用Mininet来完成。这里对Mininet做一个简单的介绍。 什么是Mininet Mininet是由一些虚拟的终端节点(end-hosts)、交换机、路由器连接而成的一个网络仿真器,它采用轻量级的虚拟化技术使得系统…

在Coursera SDN开放课程中,编程作业要用Mininet来完成。这里对Mininet做一个简单的介绍。 

什么是Mininet

       Mininet是由一些虚拟的终端节点(end-hosts)、交换机、路由器连接而成的一个网络仿真器,它采用轻量级的虚拟化技术使得系统可以和真实网络相媲美。

       Mininet可以很方便地创建一个支持SDN的网络:host就像真实的电脑一样工作,可以使用ssh登录,启动应用程序,程序可以向以太网端口发送数据包,数据包会被交换机、路由器接收并处理。有了这个网络,就可以灵活地为网络添加新的功能并进行相关测试,然后轻松部署到真实的硬件环境中。

Mininet的特性

       可以简单、迅速地创建一个支持用户自定义的网络拓扑,缩短开发测试周期

       可以运行真实的程序,在Linux上运行的程序基本上可以都可以在Mininet上运行,如Wireshark

       Mininet支持Openflow,在Mininet上运行的代码可以轻松移植到支持OpenFlow的硬件设备上

       Mininet可以在自己的电脑,或服务器,或虚拟机,或者云(例如Amazon EC2)上运行

       Mininet提供python API,简单易用

       Mininet是开源项目,源代码在这里:https://github.com/mininet

       ……

Mininet安装

       使用VirtualBox安装Mininet虚拟机:http://mininet.org/download/

使用Mininet创建一个网络

  以Coursera SDN Week3 programming assignment为例,创建一个及其简单的数据中心网络。

  Data center networks typically have a tree-like topology. End-hosts connect to top-of-rack switches, which form the leaves (edges) of the tree; one or more core switches form the root; and one or more layers of aggregation switches form the middle of the tree. In a basic tree topology, each switch (except the core switch) has a single parent switch. Additional switches and links may be added to construct more complex tree topologies (e.g., fat tree) in an effort to improve fault tolerance or increase inter-rack bandwidth.

  In this assignment, your task is to create a simple tree topology. You will assume each level i.e., core, aggregation, edge and host to be composed of a single layer of switches/hosts with a configurable fanout value (k) looks like: 

  代码:

# CustomTopo.py
'''
Coursera:
- Software Defined Networking (SDN) course
-- Module 3 Programming AssignmentProfessor: Nick Feamster
Teaching Assistant: Muhammad Shahbaz
'''from mininet.topo import Topo
from mininet.net import Mininet
from mininet.node import CPULimitedHost
from mininet.link import TCLink
from mininet.util import irange,dumpNodeConnections
from mininet.log import setLogLevelclass CustomTopo(Topo):"Simple Data Center Topology""linkopts - (1:c1, 2:aggregation, 3: edge) parameters""fanout - number of child switch per parent switch"def __init__(self, linkopts1, linkopts2, linkopts3, fanout=2, **opts):# Initialize topology and default optionsTopo.__init__(self, **opts)# Add your logic here ...self.fanout = fanoutcore = self.addSwitch('c1')for i in irange(1, fanout):aggregation = self.addSwitch('a%s' %i)self.addLink(core, aggregation, **linkopts1)for j in irange(1, fanout):edge = self.addSwitch('e%s' %(fanout*(i-1)+j))self.addLink(aggregation, edge, **linkopts2)for k in irange(1, fanout):host = self.addHost('h%s' %((fanout*(fanout*(i-1)+j-1))+k))self.addLink(edge, host, **linkopts3)topos = { 'custom': ( lambda: CustomTopo() ) }def simpleTest():"Create and test a simple network"linkopts1 = dict(bw=10, delay='3ms', use_htb=True)linkopts2 = dict(bw=8, delay='4ms', loss=1, max_queue_size=900, )linkopts3 = dict(bw=6, delay='5ms', loss=1, max_queue_size=800)topo = CustomTopo(linkopts1, linkopts2, linkopts3, fanout=2)net = Mininet(topo, host=CPULimitedHost, link=TCLink)net.start()print "Dumping host connections"dumpNodeConnections(net.hosts)print "Testing network connectivity"net.pingAll()net.stop()if __name__ == '__main__':# Tell mininet to print useful informationsetLogLevel('info')simpleTest()

  在mininet虚拟机上执行下面操作即可创建自定义的网络拓扑。函数simpleTest()创建网络并进行了简单的ping测试,从屏幕输出可以看到创建的过程。

    mininet@mininet-vm:~/mininet$ sudo python CustomTopo.py

 

更多资料

1. Mininet: http://mininet.org/

2. Mininet wiki: https://github.com/mininet/mininet/wiki

 

转载于:https://www.cnblogs.com/thelongroad/p/3264024.html

http://www.lbrq.cn/news/802153.html

相关文章:

  • 论坛网站建设模板/竞猜世界杯
  • 淮安新网站制作/重庆百度推广开户
  • 做网站如何避免侵权/武汉好的seo优化网
  • 网站建设 艺麟盛世/中国职业技能培训中心官网
  • 同一个wifi下_我如何用手机访问我用我电脑做服务器的网站/站长工具的网址
  • 如何制作app软件演示教程/seo运营是做什么的
  • 邵阳高端网站建设/湖南网站推广优化
  • wordpress redis 刷新/青岛seo
  • 如何找网站做推广/百度竞价系统
  • 免费网站制作/推广链接
  • 扁平化 公司网站/南京seo公司教程
  • 织梦响应式网站怎么做/郑州seo推广
  • 网站建设百度百科/杭州网站优化公司
  • 海南响应式网站建设方案/站长工具权重查询
  • 制作网站网页/网站收录是什么意思
  • 个人备案网站可以做电影站吗/百度官方推广平台
  • 网站建设 排名宝下拉/西安专业做网站公司
  • 手机网站建设软件有哪些方面/制作网站平台
  • 网站开发论文主要内容/在线子域名二级域名查询工具
  • 潍坊网站建设SEO优化/今日国际新闻摘抄
  • 微网站方案怎么写/百度seo推广软件
  • 欧米茄女士手表网站/免费个人网页制作
  • 高清做视频在线观看网站/参考消息网国内新闻
  • 个人网站怎么做qq客服/百度搜索推广收费标准
  • 好一点的网站建设/最新发布的最新
  • 网站seo重庆/宁波seo公司网站推广
  • 自建商城网站/成都网站seo
  • 什么网站有题目做/百度seo软件是做什么的
  • c 做网站好嘛/如何建立和设计公司网站
  • 公司没网站怎么做dsp/网络营销网
  • C++入门基础(三):const引用、指针和引用的关系、inline(修饰内联函数)替代宏、nullptr代替null
  • 数字化转型驱动中小制造企业的质量管理升级
  • hcip---ospf知识点总结及实验配置
  • java中的synchronized关键字​
  • PyTorch 张量核心操作——比较、排序与数据校验
  • 【动态规划 | 多状态问题】动态规划求解多状态问题