摘要
随着汽车智能化和网联化的快速发展,传统车载软件架构面临系统耦合紧密、可扩展性差等挑战。本文针对车载嵌入式环境,设计并实现了一种基于微服务架构的跨车机网服务网关。网关采用分层架构,包括接入层、协议转换层、路由层和业务逻辑层,确保车内、车际微服务通信的高效与稳定。通过基于车辆标识的路由策略和动态路由调整算法,网关能够在复杂网络环境下实现低延迟、高成功率的跨车服务请求。与注册中心的混合连接模式结合定时轮询与事件驱动机制,确保服务注册信息的准确性与时效性。实验验证表明,网关在跨车多媒体共享、车辆状态监测等场景下,平均延迟85毫秒,满足智能网联汽车的跨车通信需求。本文为车载微服务架构的应用提供了技术支撑。
With the rapid development of automotive intelligence and networking,traditional in vehicle software architecture faces challenges such as tight system coupling and poor scalability.This article focuses on the design and implementation of a cross vehicle machine network service gateway based on microservice architecture for embedded environments in vehicles.The gateway adopts a layered architecture,including access layer,protocol conversion layer,routing layer,and business logic layer,to ensure efficient and stable communication of in vehicle and inter vehicle microservices.Through vehicle identification based routing strategies and dynamic routing adjustment algorithms,gateways can achieve low latency and high success rate cross vehicle service requests in complex network environments.The hybrid connection mode with the registration center is combined with timed polling and event driven mechanism to ensure the accuracy and timeliness of service registration information.Experimental verification shows that the gateway has an average delay of 85 milliseconds in scenarios such as cross vehicle multimedia sharing and vehicle status monitoring,meeting the cross vehicle communication requirements of intelligent connected vehicles.This article provides technical support for the application of in vehicle microservice architecture.
作者
刘翀
武娟
张钢岭
LIU Chong;WU Juan;ZHANG Gang-ling(Xi'an Institute of Aeronautical Computing Technology,Aviation Industry Corporation of China,Ltd.,Xi'an 710000,China)
出处
《价值工程》
2025年第9期165-168,共4页
Value Engineering
关键词
车载嵌入式系统
微服务架构
跨车机网服务网关
Microservice
车载网络通信
vehicle mounted embedded system
microservice architecture
cross vehicle machine network service gateway
Microservice
vehicle mounted network communication