V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
sky96111
V2EX  ›  宽带症候群

软路由+ap, 内网设备间 iperf3 测速低于任何一台设备单独访问互联网?

  •  
  •   sky96111 · 2022-08-25 19:51:46 +08:00 · 1421 次点击
    这是一个创建于 580 天前的主题,其中的信息可能已经有所发展或是发生改变。

    拓扑大概是这个样子,两个设备都通过 AP 连接,有线部分都是超六类线

    使用测速网测得
    PC:319/62Mbps
    手机:351/38Mbps
    宽带 300/30Mbps ,每个设备访问互联网速度都是正常的,

    然而设备间访问速度就很慢,无论是 smb 、ftp 、qrcp 传文件,只有 10-20MBps 左右。起初以为是软件优化问题没在意,后怀疑是设备的问题,使用 iperf3 测速,结果让我大吃一惊,内网传输速度竟然比访问互联网还慢?

    PC:

    sky96111@SurfaceSUSE ~> iperf3 -s
    -----------------------------------------------------------
    Server listening on 5201 (test #1)
    -----------------------------------------------------------
    Accepted connection from [phoneip], port 44408
    [  5] local [laptopip] port 5201 connected to [phoneip] port 44420
    [ ID] Interval           Transfer     Bitrate
    [  5]   0.00-1.00   sec  7.67 MBytes  64.3 Mbits/sec                  
    [  5]   1.00-2.00   sec  11.1 MBytes  92.8 Mbits/sec                  
    [  5]   2.00-3.00   sec  15.3 MBytes   128 Mbits/sec                  
    [  5]   3.00-4.00   sec  10.5 MBytes  88.2 Mbits/sec                  
    [  5]   4.00-5.00   sec  15.1 MBytes   127 Mbits/sec                  
    [  5]   5.00-6.00   sec  14.3 MBytes   120 Mbits/sec                  
    [  5]   6.00-7.00   sec  16.6 MBytes   139 Mbits/sec                  
    [  5]   7.00-8.00   sec  13.9 MBytes   116 Mbits/sec                  
    [  5]   8.00-9.00   sec  16.7 MBytes   140 Mbits/sec                  
    [  5]   9.00-10.00  sec  14.6 MBytes   122 Mbits/sec                  
    [  5]  10.00-10.05  sec   539 KBytes  84.3 Mbits/sec                  
    - - - - - - - - - - - - - - - - - - - - - - - - -
    [ ID] Interval           Transfer     Bitrate
    [  5]   0.00-10.05  sec   136 MBytes   114 Mbits/sec                  receiver
    

    Phone:

    u0_a173@localhost ~> iperf3 -c surfacesuse.lan
    Connecting to host surfacesuse.lan, port 5201
    [  5] local [phoneip] port 44420 connected to [laptopip] port 5201
    [ ID] Interval           Transfer     Bitrate         Retr  Cwnd
    [  5]   0.00-1.00   sec  8.25 MBytes  69.2 Mbits/sec   91    143 KBytes
    [  5]   1.00-2.00   sec  11.2 MBytes  94.1 Mbits/sec    0    229 KBytes
    [  5]   2.00-3.00   sec  15.1 MBytes   127 Mbits/sec    0    308 KBytes
    [  5]   3.00-4.00   sec  10.9 MBytes  91.5 Mbits/sec    0    354 KBytes
    [  5]   4.00-5.00   sec  14.6 MBytes   122 Mbits/sec    0    409 KBytes
    [  5]   5.00-6.00   sec  14.8 MBytes   124 Mbits/sec    0    456 KBytes
    [  5]   6.00-7.00   sec  16.1 MBytes   135 Mbits/sec    0    505 KBytes
    [  5]   7.00-8.00   sec  14.1 MBytes   118 Mbits/sec    0    542 KBytes
    [  5]   8.00-9.00   sec  16.8 MBytes   141 Mbits/sec    0    584 KBytes
    [  5]   9.00-10.00  sec  14.5 MBytes   122 Mbits/sec    0    618 KBytes
    - - - - - - - - - - - - - - - - - - - - - - - - -
    [ ID] Interval           Transfer     Bitrate         Retr
    [  5]   0.00-10.00  sec   136 MBytes   114 Mbits/sec   91             sender
    [  5]   0.00-10.05  sec   136 MBytes   114 Mbits/sec                  receiver
    
    iperf Done.
    

    尝试过:

    • 增大 iperf3 线程数,丢包重发更多,速度更慢了
    • 重启路由器 /AP
    • AP 位接入交换机,PC 使用有线连接
      均无成效。还有什么排查的方法吗?
    9 条回复    2022-10-21 10:57:57 +08:00
    me221
        1
    me221  
       2022-08-25 21:14:40 +08:00
    我内网速度也达不到 只是够用 蹲一个解决办法
    yinheli
        2
    yinheli  
       2022-08-25 21:22:46 +08:00
    看着是 100M 的, 应该是哪里不达标吧,高度怀疑软路由 AP 的有线连接。

    PC 和手机访问外网却能跑满?难道跑外网不需要用到软路由吗?你的软路由是不是只是个旁路由的作用
    sky96111
        3
    sky96111  
    OP
       2022-08-25 21:50:18 +08:00 via Android
    @yinheli 只有一个软路由是主路由,没有旁路由。外网能跑满内网跑不满,这点就很奇怪
    Xbluer
        4
    Xbluer  
       2022-08-25 22:49:10 +08:00   ❤️ 1
    pc 和手机都 wifi 连到 ap 上?
    如果是这样,那大概率就是 wifi 的问题了。ap 、pc 、手机都可能任何一方拉胯,都能拖累其他设备。
    sxiaojian
        5
    sxiaojian  
       2022-08-25 23:39:27 +08:00 via iPhone
    很明显是软路由问题了,用硬路由不会有这些问题。
    用了不少 arm openwrt 软路由,完美稳定的太少了,各种残缺,不能当主路由用。
    Chueng
        6
    Chueng  
       2022-08-26 12:31:39 +08:00 via iPad
    试试把 turbo acc 网络设置里面的都不要勾选
    fengchen0vr
        7
    fengchen0vr  
       2022-08-26 14:04:00 +08:00 via iPhone
    估计 wifi 的锅,两台设置同时走无线的原因吧
    sky96111
        8
    sky96111  
    OP
       2022-08-26 15:03:29 +08:00
    @Chueng
    @fengchen0vr
    原版 OpenWrt ,没有装 turbo acc 。
    刚刚尝试在 op 上装 iperf3 ,手机可以 650Mbps+,电脑 900Mbps+,应该是就是 ap 同时上下行的问题
    Nubia
        9
    Nubia  
       2022-10-21 10:57:57 +08:00
    我这里也是 100Mbps ,蹲一个解决方法
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5334 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 51ms · UTC 09:21 · PVG 17:21 · LAX 02:21 · JFK 05:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.