linxu 哪个命令可以以指定速率发 tcp 包??

2021-02-06 16:07:58 +08:00
 fl2d

局域网里,就类似于 iperf 那样点对点发包,

但想指定速率,比如 1 Gbps,

我是需要测不同速率下机器的功耗。

796 次点击
所在节点    问与答
4 条回复
zhs227
2021-02-06 16:10:53 +08:00
iperf 带参数使用是可以发不同速率的
neteroster
2021-02-06 16:16:53 +08:00
> -b, --bandwidth n[KM]
> Set target bandwidth to n bits/sec (default 1 Mbit/sec for UDP, unlimited for TCP). If there are multiple streams (-P flag), the bandwidth limit is applied separately to each stream. You can also add a ’/’ and a number to the bandwidth specifier. This is called "burst mode". It will send the given number of packets without pausing, even if that temporarily exceeds the specified bandwidth limit.

来自 https://iperf.fr/iperf-doc.php
fl2d
2021-02-06 16:17:15 +08:00
@zhs227 啊,果然,-b, 😅 多谢!
fl2d
2021-02-06 16:17:35 +08:00
@neteroster 多谢!🙏

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/751848

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX