fitbit
V2EX  ›  问与答

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

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

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

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

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

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