码迷,mamicode.com
首页 > 其他好文 > 详细

MPTCP iperf 发包方式

时间:2018-03-14 18:05:42      阅读:288      评论:0      收藏:0      [点我收藏+]

标签:pytho   text   pair   ini   文件   nbsp   res   redundant   round   

之前用的发包方式是发送大文件,用NC监测。

今天改了另外一种发包方式iperf,简单记录下。

iperf发包,具体方法:

1.在终端中运行拓扑脚本:

运行py脚本:sudo python topy.py -p [path_manager] -s [scheduler] -f [subflows_num]

参数含义:

·path_manager:设置MPTCP内核路径管理模式,有default、fullmesh、ndiffports和binder

·scheduler:设置MPTCP内核调度程序,有default,roundrobin和redundant

·subflows_num:设置每个ip对(ip pair)内的子流数

例子:

cd /hong/yang/test_mptcp/

sudo python topy.py -p fullmesh -s default -f 1

 

2.启动xterm进行iperf发包

拓扑搭建后,进入mininet>,开启主机终端:

例子:mininet>xterm h1 h2

在h2终端输入:iperf -s

在h1终端输入:iperf -c [h2 IP地址] -t [发包时间,单位为秒]

 

3.启动wireshark抓包

执行命令:sudo wireshark

在root身份下才能正常使用wireshark的功能

 


MPTCP iperf 发包方式

标签:pytho   text   pair   ini   文件   nbsp   res   redundant   round   

原文地址:https://www.cnblogs.com/fenglt/p/8568793.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!