Secure Message Subscription via Location Service in Dual 2oo2 Systems
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The existing safety computer platform of on-board ground train control equipment in urban rail transit systems has poor expandability due to high coupling between the transmitting and receiving ends, requiring modifications to all boards when new services are added or existing boards require additional services.
Innovation Solution
A dual two-out-of-two architecture with a location service is adopted, allowing target devices to query address information of target services without configuring the logic, enabling seamless expansion by registering local services and using a publish-subscribe mechanism to access and subscribe to services through a location service.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of operation
If service addresses are directly written during board development, then message subscription is simple to implement, but the coupling between transmitting end and receiving end becomes high, reducing system expandability
Solution Approach 1:
A location service is introduced as an intermediary between the target device and the service. The location service stores the correspondence between service identifiers and address information, allowing devices to query addresses dynamically without direct configuration. This mediator decouples the relationship between service providers and consumers, enabling system expansion without modifying existing device logic.
Solution Approach 2:
The location service pre-stores the mapping relationships between service identifiers and address information before actual service subscription occurs. This preliminary preparation allows any device to quickly query and subscribe to services without complex configuration processes, maintaining ease of operation while enabling flexibility.
2Adaptability or versatility
If all board logics are modified to accommodate new services, then service functionality is complete, but system complexity increases and expandability deteriorates
Solution Approach 1:
The location service acts as a centralized intermediary that manages all service registration and address allocation. When new services are added, only the location service needs to be updated with new service identifiers and addresses. Existing board logics remain unchanged, reducing system complexity while maintaining complete service functionality.
Solution Approach 2:
The system is segmented into two independent parts: the location service that manages service registration and address allocation, and the target devices that consume services. This segmentation allows independent modification of the location service without affecting device logics, reducing overall system complexity while enabling service expansion.
3Ease of manufacture
If board addresses are fixed during development, then device configuration is simple, but address changes require logic modification, reducing system flexibility
Solution Approach 1:
The system transitions from static address configuration to dynamic address query. Devices no longer have fixed addresses hard-coded in their logic; instead, they dynamically query the location service to obtain current address information. This dynamic approach maintains simple device configuration while enabling address flexibility and board reconfigurability.
Solution Approach 2:
The location service mediates between devices and the physical board addresses. Devices interact with the location service through service identifiers rather than directly with board addresses. This abstraction layer allows address changes without affecting device logic, maintaining configuration simplicity while enabling address flexibility.
Data Source
Figure 1
Figure 2
Figure 3
AI summary
Provided in the present disclosure are a message processing method and apparatus for a safety computing system, an electronic device, and a storage medium. The safety computing system adopts a dual two-out-of-two architecture. A target device belongs to any subsystem of the dual two-out-of-two architecture. The method includes: querying address information of a target service via a location service; accessing a target board based on the address information, and subscribing to the target service provided by the target board; and receiving message data published by the target service. When an address of the target board providing the target service changes, new address information of the target service can be queried via the location service. When the target board is a newly added board, address information of a target service in the newly added board can be queried via the target service. In all the above cases, a logic of the target device does not need to be changed, making the safety computing system easier to expand.