fitbit
V2EX  ›  问与答

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

  •  
  •   fitbit · Feb 6, 2021 · 1520 views
    This topic created in 2100 days ago, the information mentioned may be changed or developed.

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

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

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

    4 replies  •  2021-02-06 16:17:35 +08:00
    zhs227
    zhs227
    Feb 6, 2021❤️1
    1
    iperf 带参数使用是可以发不同速率的
    neteroster
    neteroster
    Feb 6, 2021❤️1
    2
    > -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
    fitbit
    fitbit
    OP
    Feb 6, 2021
    3
    @zhs227 啊,果然,-b, 😅 多谢!
    fitbit
    fitbit
    OP
    Feb 6, 2021
    4
    @neteroster 多谢!🙏
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   660 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 21:34 · PVG 05:34 · LAX 13:34 · JFK 16:34
    ♥ Do have faith in what you're doing.