Apple 以太网默认开启 AVB/EAV 模式导致网络连接丢失的故障

趁着国补入手了 Mac mini M4,因为家里内网接入了 2.5G 交换机,所以顺手升级购入了万兆以太网卡的版本。不过没想到问题才刚刚开始。

入手了 Mac mini M4 非常开心,迫不及待地把开发环境配置上去,这次打算把 Git 仓库放在 SMB 共享文件夹里,这样多个设备都能对同一个代码仓库进行修改。不过几次 clone 仓库时发现有问题,会出 SIGBUS 错误,搜索了一下这个问题普遍就在把 Git 仓库放在 SMB 共享文件夹,然后就没有然后了。

再往下查,先是发现从 NAS 复制大文件时会突然中断,继而发现网卡有时会自动丢失连接,表现是 System Settings 里的 Ethernet 会从绿灯变成红灯。我心想不妙,不会碰到新网卡和交换机不兼容了吧,都要准备退货了。。。

当时开着 ping 路由器,隔一段时间会丢失连接。

64 bytes from 192.168.88.1: icmp_seq=4225 ttl=64 time=0.966 ms
64 bytes from 192.168.88.1: icmp_seq=4226 ttl=64 time=0.979 ms
64 bytes from 192.168.88.1: icmp_seq=4227 ttl=64 time=0.955 ms
ping: sendto: No route to host
Request timeout for icmp_seq 4228
ping: sendto: No route to host
Request timeout for icmp_seq 4229
ping: sendto: No route to host
Request timeout for icmp_seq 4230
ping: sendto: No route to host
Request timeout for icmp_seq 4231
ping: sendto: No route to host
Request timeout for icmp_seq 4232
Request timeout for icmp_seq 4233
64 bytes from 192.168.88.1: icmp_seq=4234 ttl=64 time=0.905 ms
64 bytes from 192.168.88.1: icmp_seq=4235 ttl=64 time=0.821 ms

但我也想苹果应该不至于连个万兆网卡的 2.5G 兼容都做不好吧,如果标准没问题,那只有私货有问题了,苹果一向喜欢搞私有协议的。

看了一下 System Settings 的 Ethernet 里有个 AVB/EAV Mode,默认情况下开启,搜索了一下它是什么:

Audio Video Bridging (AVB) mode is a set of technical standards that improve the reliability, synchronization, and low latency of switched Ethernet networks. AVB defines the features, options, and configurations needed to build networks that can transport time-sensitive audio and video data streams.

EAV may refer to Ethernet Audio/Video Bridging, a standard that allows audio and video signals to be sent over an Ethernet line. The IEEE is developing the EAV standard, which includes features like bandwidth reservation and time-synchronized low latency streaming services. When deployed, EAV will allow audio and video hardware to be connected via Ethernet, enabling the simultaneous transmission of network, audio, and video signals.

我想这可能就是私货了,因为如果使用 USB 网卡是没有这个选项的。将网卡 Hardware 切到 Manually 模式,取消掉它的复选框。运行了一阵,搞定~

Apple Community 里也找到了类似的问题 - https://discussions.apple.com/thread/255876126?sortBy=rank

说实话我希望苹果不要默认开启一些大多数人用不到的东西,而是默认关闭它,如果真的有人有需要,再自己手工开启。

版权所有丨转载请注明出处:https://kxq.io/archives/ethernet-lost-connection-leds-by-new-avb-eav-mode