列车一路飞驰WiFi就掉线?华为车地通信Mesh快切按位置换AP不断链

轨道交通的车地通信是个特别的难题:列车以几十公里的时速沿着轨道跑,车载 AP 必须在沿线一台接一台的轨旁 AP 之间不停切换,普通 Mesh 链路的重建机制根本跟不上这个速度——切换慢一步,车厢里的多媒体业务就卡一段。华为官方文档为此给了专门的示例:轨交企业为了降低网络部署成本、提升服务质量,通过 WLAN 技术实现车地通信,让部署在地面网络的组播服务器为车内乘客提供车载多媒体资讯业务,回传射频用 5G 频段,核心是 Mesh 的车地通信快速切换技术。

先把组网角色理清。地面侧:WAC 旁挂二层组网,沿轨部署一串轨旁 AP(示例中 L1_001 到 L1_170 等)做 Mesh-portal,另有车辆段 AP(L1_180、L1_190);车载侧:车头车尾各一台车载 AP。管理 VLAN100、组播业务 VLAN101、STA 业务 VLAN200 分开规划,轨旁 AP 的 IP 由 WAC 分配,车载终端的 IP 由 Switch_A 分配。地面交换机的 VLAN 互通、IGMP Snooping 组播配置是常规打底,本篇聚焦快切本体的命令。

配置步骤

第一步,Mesh 白名单把车载 AP 放进来。轨旁 AP 只准跟列车的车载 AP 建链,官方注意事项里专门交代:应根据实际情况把该轨道上所有列车的车载 AP 的 MAC 都加进来:

[WAC-wlan] mesh-whitelist-profile name whitelist01
[WAC-wlan-mesh-whitelist-whitelist01] peer-ap mac 00e0-fc59-2e10
[WAC-wlan-mesh-whitelist-whitelist01] peer-ap mac 00e0-fc59-2e20
[WAC-wlan-mesh-whitelist-whitelist01] quit

第二步,安全模板,Mesh 链路 WPA2+PSK+AES:

[WAC-wlan] security-profile name sp01
[WAC-wlan-sec-prof-sp01] security wpa2 psk pass-phrase YsH_2022 aes
[WAC-wlan-sec-prof-sp01] quit

第三步,Mesh 角色。轨旁和车辆段 AP 都是 portal:

[WAC-wlan] ap-system-profile name mesh-sys
[WAC-wlan-ap-system-prof-mesh-sys] mesh-role mesh-portal
[WAC-wlan-ap-system-prof-mesh-sys] quit

第四步,快切模板,这是整套配置的灵魂。使能基于位置信息的快切算法——切换不再单纯等信号劣化才触发,而是结合位置预判:

[WAC-wlan] mesh-handover-profile name hand-over
[WAC-wlan-mesh-handover-hand-over] location-based-algorithm enable
[WAC-wlan-mesh-handover-hand-over] quit

第五步,两份 Mesh 模板分工。轨旁 AP 的模板 mesh-net 引用快切模板;车辆段 AP 的模板 mesh-client 开客户端模式——车辆段里列车停放位置不沿线,用客户端模式跟轨旁同样角色的 AP 区分开:

[WAC-wlan] mesh-profile name mesh-net
[WAC-wlan-mesh-prof-mesh-net] mesh-id mesh-net
[WAC-wlan-mesh-prof-mesh-net] security-profile sp01
[WAC-wlan-mesh-prof-mesh-net] mesh-handover-profile hand-over
[WAC-wlan-mesh-prof-mesh-net] quit
[WAC-wlan] mesh-profile name mesh-client
[WAC-wlan-mesh-prof-mesh-client] mesh-id mesh-client
[WAC-wlan-mesh-prof-mesh-client] security-profile sp01
[WAC-wlan-mesh-prof-mesh-client] client-mode enable
[WAC-wlan-mesh-prof-mesh-client] quit

第六步,射频上生效。轨旁 AP 组与车辆段 AP 组的射频 1 统一固定信道(40mhz-plus 157),关掉自动选信道和自动功率,各自挂白名单和对应的 Mesh 模板。以 mesh-mpp 组为例(mesh-depot 组同法,mesh-profile 换成 mesh-client):

[WAC-wlan] ap-group name mesh-mpp
[WAC-wlan-ap-group-mesh-mpp] ap-system-profile mesh-sys
[WAC-wlan-ap-group-mesh-mpp] radio 1
[WAC-wlan-ap-group-mesh-mpp-radio-1] calibrate auto-channel-select disable
[WAC-wlan-ap-group-mesh-mpp-radio-1] calibrate auto-txpower-select disable
[WAC-wlan-ap-group-mesh-mpp-radio-1] channel 40mhz-plus 157
Warning: This action may cause service interruption. Continue?[Y/N]y
[WAC-wlan-ap-group-mesh-mpp-radio-1] mesh-whitelist-profile whitelist01
[WAC-wlan-ap-group-mesh-mpp-radio-1] mesh-profile mesh-net
[WAC-wlan-ap-group-mesh-mpp-radio-1] quit
[WAC-wlan-ap-group-mesh-mpp] quit

轨旁和车辆段 AP 的上行有线口还要用有线口模板以 tagged 方式放行 VLAN101 的组播业务;车载网络侧的车载 AP 配置官方指引参见对应版本 FAT AP 产品文档。

验证

部署完成后两条命令收口。display wlan mesh link all 查看轨旁 AP 和车载 AP 建立的 Mesh 链路,示例回显中车载 AP 同时被 L1_001 到 L1_170 六台轨旁 AP 建链记录在案,Mesh 模式均为 portal;更有意思的是 display mesh-neighbor-rssi,它给出轨旁 AP 的场强收集结果,每行带 Location-ID 位置编号和 RSSI 值、更新时间——这正是基于位置信息的快切算法的数据底座,谁近谁远一目了然,列车一到切换点,决策早就备好了:

<WAC> display mesh-neighbor-rssi
Total: 6
AP name/MAC/Radio/Location-ID  Neighbor AP/MAC/Location-ID  RSSI  Update Time
------------------------------------------------------------------------------
L1_001/00e0-fc59-1d10/1/1         -/00e0-fc59-2e10/-           -44   18:08:21
L1_003/00e0-fc59-1d20/1/3         -/00e0-fc59-2e10/-           -50   18:08:20
L1_010/00e0-fc59-1d30/1/10        -/00e0-fc59-2e10/-           -28   18:08:21

车间摆渡车、厂区跨栋移动设备这些「边跑边连」的场景,思路可以照搬:位置信息加快切算法,比等信号烂了再切换体面得多。贵州诚鑫致达科技在给客户做移动场景无线方案时,切换策略永远是第一设计项。你见过最离谱的 WiFi 掉线场景是什么?评论区聊聊。