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

链路聚合为什么带宽没有叠加

  •  
  •   sldaniel · 189 天前 · 1268 次点击
    这是一个创建于 189 天前的主题,其中的信息可能已经有所发展或是发生改变。
    NAS 带两张 G 口的网卡,系统里设置了 Mode 2 (balance-xor)

    交换机是 SG108Pro ,不带 802.3ad ,但是有端口汇聚功能,在里面把 NAS 的两个接口汇聚了,也测试了任意拔掉一根网线,依旧能打开 NAS 的页面

    家里的网络是这样的:

    光猫 -> 路由器 A(无线连接手机) -> 交换机 -> 路由器 B (和 A 是有线 mesh ) -> 电脑(有线连接)

    NAS 直接连在交换机上

    在 NAS 上开两个 iperf3 server ,在手机和电脑上各开一个 client 下载,发现两个客户端加起来只有 1G 左右,会是什么原因呢?
    7 条回复    2023-10-23 01:34:13 +08:00
    revelationtan
        1
    revelationtan  
       189 天前
    balance-xor 本身就不是提高单设备的连接速度
    sldaniel
        2
    sldaniel  
    OP
       189 天前
    @revelationtan
    可以详细说说吗
    我看这篇文档的意思应该是可以负载均衡的,并且和 LCAP 很相似?
    https://wiki.mikrotik.com/wiki/Manual:Interface/Bonding#balance-xor
    balance-xor
    This mode balances outgoing traffic across the active ports based on the hashed protocol header information and accepts incoming traffic from any active port. Mode is very similar to LACP except that it is not standardized and works with layer-3-and-4 hash policy.
    hefish
        3
    hefish  
       189 天前
    也许他是 Layer-3 的,所以得不同的 srcip:dstip 才能叠加。
    scegg
        4
    scegg  
       189 天前
    balance-xor 是根据目标地址 MAC 做一个 hash ,决定交给哪个口传送。
    所以当访问者的 MAC 相同时,必然只会用一个口。
    sldaniel
        5
    sldaniel  
    OP
       189 天前
    @scegg
    意思是对于 NAS 来说手机和 PC 的访问都识别成了同一个 MAC 地址导致走了一张网卡
    没太明白,手机和 PC 应该是不同的 MAC 哇,难道是识别成了路由器网关的 mac ?
    kenneth104
        6
    kenneth104  
       188 天前   ❤️ 1
    2 个设备 xor 命中不同端口的概率是 1/2 ,但它还支持 3 层( IP ),4 层(端口)的 Hash
    建议用更多的物理设备,更多类型的负载测试
    sldaniel
        7
    sldaniel  
    OP
       188 天前
    @kenneth104
    放弃了,换成 balance-alb 了,这个试了下两个设备一起可以跑到 1.5G ,iphone 无线大概也就 500 多 M 的水平了
    家用没有太多能装 iperf/其他网速测试的设备,试了下 2 手机 1PC 也没突破 1G ,命中率堪忧
    balance-alb 的话,正常几个房间 plex 一起放应该不会卡在网络上了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   864 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 21:14 · PVG 05:14 · LAX 14:14 · JFK 17:14
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.