云边协同收费系统多级容灾与状态同步机制研究
Research on Multi-Level Disaster Recovery and State Synchronization Mechanism for Cloud-Edge Collaborative Toll Collection Systems
DOI: 10.12677/csa.2026.1611321, PDF,    科研立项经费支持
作者: 于 梦, 刘冠男:河北高速公路集团有限公司承德分公司,河北 承德;杨 娜*:哈尔滨工业大学(威海)汽车工程学院,山东 威海
关键词: 云边协同;多级容灾;状态同步;WebSocket;有限状态机;Cloud-Edge Collaboration; Multi-Level Disaster Recovery; State Synchronization; WebSocket; Finite-State Machine
摘要: 针对高速公路收费系统云边协同部署后链路抖动、服务不可用、节点异常和数据不同步等问题,提出一种多级容灾与状态同步机制。首先,从链路层、业务层、计算层和数据层划分系统故障模式,构建分层容灾控制模型,并建立链路保护、异常判定和业务恢复之间的时间尺度约束关系;其次,基于WebSocket双连接心跳探测机制,定义服务可用性向量和系统工作模式变量,构建业务层降级有限状态机,实现云站正常、疑似异常、降级判定、广场降级、恢复探测和人工确认回切等状态流转;最后,结合实站测试数据对模型进行验证。结果表明,主备切换动作最大触发时间为3 s,业务中断时间最大值为40 s,满足业务层异常判定与降级切换及恢复约束。该机制能够支撑云边协同收费系统在异常场景下实现快速降级、业务恢复和稳态回切。
Abstract: To address the problems of link jitter, service unavailability, node anomalies, and data inconsistency arising from the cloud-edge collaborative deployment of highway toll collection systems, a multi-level disaster recovery and state synchronization mechanism is proposed. First, system failure modes are classified into the link, business, computing, and data layers, based on which a hierarchical disaster recovery control model is established, together with the time-scale constraints among link protection, anomaly determination, and business recovery. Second, based on a WebSocket dual-connection heartbeat detection mechanism, a service availability vector and system operation mode variables are defined, and a finite-state machine for business-layer degradation is constructed to realize state transitions among normal cloud-station operation, suspected anomaly, degradation determination, plaza-level degradation, recovery detection, and manual confirmation for switchback. Finally, the model is validated using data collected from actual toll station tests. The results show that the maximum trigger time for the primary-backup switching action is 3 s, while the maximum business interruption time is 40 s, satisfying the constraints for anomaly determination and degradation switching and recovery at the business layer. The proposed mechanism supports rapid degradation, business recovery, and stable switchback of cloud-edge collaborative toll collection systems under abnormal conditions.
文章引用:于梦, 刘冠男, 杨娜. 云边协同收费系统多级容灾与状态同步机制研究[J]. 计算机科学与应用, 2026, 16(11): 1-11. https://doi.org/10.12677/csa.2026.1611321

参考文献

[1] 王志敏, 赖树坤. 高速公路联网收费系统国产化适配与平台兼容性验证研究[J]. 中国交通信息化, 2025(11): 67-71.
[2] 张天成. 四川省高速公路收费站级联网收费系统优化[J]. 交通科技与管理, 2023, 4(14): 17-19.
[3] 邵俊凯. 高速公路云收费系统方案[J]. 智能建筑与智慧城市, 2023(10): 178-180.
[4] 李成. 智慧高速公路云收费系统的应用[J]. 交通世界, 2025(24): 1-3.
[5] 赵建涛, 黄立松. 微服务故障诊断相关技术研究探讨[J]. 网络新媒体技术, 2020, 9(1): 1-8.
[6] 黄朝辉. 分布式系统故障检测与异常检测技术研究[D]: [硕士学位论文]. 广州: 华南理工大学, 2021.
[7] 孙燕. 面向冗余的分布式系统可靠性的设计与实现[D]: [硕士学位论文]. 保定: 河北大学, 2003.
[8] 李帅. 基于WebSocket的多Agent通信机制设计与应用[D]: [硕士学位论文]. 大连: 大连海事大学, 2019.
[9] 高志翔. 智能安全监控系统中边缘节点数据同步与异常检测算法研究[J]. 软件, 2026, 47(1): 108-110.
[10] Pimentel, V. and Nickerson, B.G. (2012) Communicating and Displaying Real-Time Data with Websocket. IEEE Internet Computing, 16, 45-53.
https://doi.org/10.1109/mic.2012.64
[11] Skvorc, D., Horvat, M. and Srbljic, S. (2014) Performance Evaluation of Websocket Protocol for Implementation of Full-Duplex Web Streams. 2014 37th International Convention on Information and Communication Technology, Electronics and Microelectronics (MIPRO), Opatija, 26-30 May 2014, 1003-1008.
https://doi.org/10.1109/mipro.2014.6859715
[12] Rahmatulloh, A., Darmawan, I. and Gunawan, R. (2019) Performance Analysis of Data Transmission on Websocket for Real-Time Communication. 2019 16th International Conference on Quality in Research: International Symposium on Electrical and Computer Engineering, Padang, 22-24 July 2019, 1-5.
https://doi.org/10.1109/qir.2019.8898135
[13] Chandra, T.D. and Toueg, S. (1996) Unreliable Failure Detectors for Reliable Distributed Systems. Journal of the ACM, 43, 225-267.
https://doi.org/10.1145/226643.226647
[14] Harel, D. (1987) Statecharts: A Visual Formalism for Complex Systems. Science of Computer Programming, 8, 231-274.
https://doi.org/10.1016/0167-6423(87)90035-9
[15] Hassan, A.B. and Mansour, M. (2024) Performance Evaluation of Bidirectional Forwarding Detection over the Virtual Router Redundancy Protocol. Procedia Computer Science, 251, 256-264.
https://doi.org/10.1016/j.procs.2024.11.108