简体   繁体   English

并行主机TCP连接

[英]parallel hosts TCP connection

I am a new in python programmer over mininet simulator, I try to create n host that connect to a single server and generate parallel connection flows the only thing I got is 我是mininet模拟器上的python程序员的新手,我尝试创建连接到单个服务器的n主机并生成并行连接流,我唯一得到的是

for i in n:
    h=netobgect.get("h%s"%i)
    h.cmdPrint("iperf -c 10.0.0.1 ")

the problem that there is delay between host 1 and say n/2 will break the meaning of parallel, Is there any one can help me, I was looking for solutions 主机1和n / 2之间存在延迟的问题将打破并行的含义,是否有人可以帮助我,我一直在寻找解决方案

instead of for loop, just call it serially but i need my code dynamic use the scheduling command AT but bring problem 而不是for循环,只需串行调用即可,但是我需要动态使用调度命令AT进行代码,但会带来问题

使用&在后台运行命令。

for i in n: h=netobgect.get("h%s"%i) h.cmdPrint("iperf -c 10.0.0.1 &")

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM