zoukankan      html  css  js  c++  java
  • Frenetic Python实验(二)

    实验3 packet_in_out

    目的:模拟一个普通的双端口中继器.

    This application implements a very simple 2 port repeater where all the traffic goes through the controller.

    1.终端1启动控制器。

    2.终端2执行mininet命令:

    sudo mn --topo=single,2 --controller=remote
    

    3.终端3执行应用脚本:

    $ python -m frenetic.examples.packet_in_out
    

    控制器信息:

    4.终端2中mininet执行pingall:

    mininet> pingall
    

    控制器终端出现大量packet_out信息:

    pingall in the Mininet window should yield 100% successfully sent packets. There will be a lot of Packet Out activity.

    注意:虽然原文说会达到100%的pingall成功率,但是实际操作往往成功率比较低,大概是因为长时间没有更新。

    实验4 port_count

    目的:记录经过端口的包的数目。

    This application polls for port statistics and prints them every five seconds. It implements a simple switch-based repeater for a single switch and an arbitrary number of ports.

    在终端3每个5s打印一次端口信息。

    1.运行控制器。

    2.终端2创建mininet拓扑:

    sudo mn --topo=single,10 --controller=remote
    

    3.终端3运行应用脚本:

    $ python -m frenetic.examples.port_count
    

    控制器端信息:

    由于bug,h4的信息没有更新:

    4.终端2执行pingall:

    mininet> pingall
    

    应用终端打印端口信息:

    控制器端:

    pingall in the Mininet window should yield 100% successfully sent packets. Port counts should keep climbing as ping traffic gets forwarded.

    同样,虽然它说100%成功,但是实际并不是这样子的,h4的流表信息没有更新。

    2016/11/30

  • 相关阅读:
    Web 日志分析过程
    nginx系列之九:lua服务
    Linux网络编程之IO模型
    从URL输入到页面展现到底发生什么
    CentOS 日常运维十大技能
    以MySQL为例,详解数据库索引原理(1)
    Elasticsearch的特点以及应用场景
    Ubuntu1804编译安装LNMP
    golang 高级
    Centos7 安装 Redis
  • 原文地址:https://www.cnblogs.com/qq952693358/p/6119265.html
Copyright © 2011-2022 走看看