fl2d
V2EX  ›  问与答

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

  •  
  •   fl2d · Feb 6, 2021 · 1220 views
    This topic created in 1948 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
    fl2d
        3
    fl2d  
    OP
       Feb 6, 2021
    @zhs227 啊,果然,-b, 😅 多谢!
    fl2d
        4
    fl2d  
    OP
       Feb 6, 2021
    @neteroster 多谢!🙏
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1396 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 17:05 · PVG 01:05 · LAX 10:05 · JFK 13:05
    ♥ Do have faith in what you're doing.