Redundant architecture equipment resource management method based on state machine
By adopting a state machine-based redundant architecture device resource management method in the vehicle-to-vehicle communication CBTC system, the problem of resource synchronization and authorization under the hot standby redundant architecture is solved, ensuring the security and consistency of resource management, and avoiding resource Repeated authorization enables independent work of the active and standby systems and resource synchronization after recovery.
Patent Information
- Application Number
- CN202110784006.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-12
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-07-12
AI Technical Summary
In the CBTC system of vehicle-to-vehicle communication, under the hot standby redundant architecture, when the primary system needs to transfer or authorize resources to other devices, it must ensure that the secondary system has synchronized information, and when the secondary system is not online, the primary system needs to work independently and Handle resource synchronization issues when they are restored to avoid repeated authorization of resources.
Adopt a state machine-based redundant architecture device resource management method and ensure the unidirectionality and synchronicity of resource management through external authorization policies in different states, including initial state, single-system state, dual-system state and standby system state. Operational steps to ensure the safe transfer and authorization of resources between the primary and secondary systems.
It effectively avoids the problem of repeated authorization of resources, ensures the consistency and security of resource management of the active and standby systems in different states, and realizes the independent work of the active system when the standby system is not online and the synchronization of resources after recovery.
Smart Images

Figure CN113746664B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of communication technology, and in particular relates to a CBTC system for vehicle-to-vehicle communication. Background Art
[0002] The CBTC system of vehicle-to-vehicle communication uses a resource-based algorithm for driving safety protection. For driving resources, turnout resources, and side defense / hostile resources, which are safety-critical resources, the first problem to be solved is to avoid duplicate authorization of resources, that is, to ensure that the same resource can only be transferred to one recipient, or to ensure that the same resource cannot be authorized to two hostile applicants.
[0003] When using a hot standby redundant architecture, since both devices record or hold resource information, the following issues need to be addressed:
[0004] 1. When the main system decides to transfer or authorize resources to other devices, it is necessary to ensure that the backup system has synchronized this information.
[0005] 2. When the backup system is not online, the primary system needs to be able to work independently and handle the first requirement well when the backup system is restored. Summary of the invention
[0006] The technical problem to be solved by the present invention is to provide a redundant architecture device resource management method based on a state machine, which effectively guarantees the resources of the primary and standby systems and avoids the problem of repeated authorization.
[0007] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0008] The redundant architecture device resource management method based on a state machine comprises the following steps:
[0009] 1) The initial state is the standby state;
[0010] 2) Before the device enters the standby state, clear the resources first;
[0011] 3) When the device changes from the backup system to the main system, it will enter the single system working state by default;
[0012] 4) In a single system state, resources can be authorized externally without feedback from another system;
[0013] 5) In the single-system state, if the information is received from the standby system, it will switch to the dual-system working state;
[0014] 6) In dual-system operation, the primary system needs to synchronize authorization information with the backup system and can only authorize resources externally after receiving feedback from the backup system;
[0015] 7) If the backup system feedback cannot be received continuously, the system will switch to the single system state after stopping sending to the backup system for a period of time T1;
[0016] 8) In the standby system state, it receives information from the main system, updates it, and feeds back the update result to the main system. If it does not receive information from the main system within the detection setting time T2, it executes the resource clearing operation;
[0017] 9) In the main system state, when the main system is lost, clear the resources and enter the backup system state.
[0018] Preferably, the operation of clearing resources includes:
[0019] a) The clear resource operation for a transfer type resource is to clear the relevant records of the resource;
[0020] b) For authorized resources, the clear resource operation clears the authorization record and marks it as unauthorizable to external parties;
[0021] c) After clearing the resources, the backup system can only be updated through the main system information. If the update operation is not completed and it becomes the main system, manual intervention is required to initialize the resources.
[0022] Preferably, in the single system working state
[0023] a) Stop synchronizing resource information with the backup system, and the backup system cannot be updated through the primary system information;
[0024] b) Transfer and authorize resources without relying on backup systems;
[0025] c) Start the maintenance timer and maintain the single system state before the maintenance timer times out;
[0026] d) After the maintenance timer times out, the standby system communication status detection is started. If the communication is restored, it switches to the dual-system working state.
[0027] Preferably, in dual system working state
[0028] a) Synchronize resource information to the backup system;
[0029] b) Before transferring and authorizing resources, you need to wait for feedback from the backup system;
[0030] c) Start the supervision timer, the timeout period is recorded as T1, and reset the timer every time the backup system feedback is received;
[0031] d) If the supervision timer times out, the system will enter the disconnected state.
[0032] Preferably, in the monophyletic state
[0033] a) Stop outputting resource information to the backup system;
[0034] b) Stop the transfer and authorization of resources;
[0035] c) Start the waiting timer, and after the waiting timer times out, enter the single system state.
[0036] Preferably, in the standby state
[0037] a) Resources cannot be transferred or authorized to external parties;
[0038] b) Becoming the master system without obtaining the master system synchronization resources requires manual intervention and resource initialization;
[0039] c) receiving information from the main system, executing updates to resource information or authorization information, and feeding back the update results to the main system;
[0040] d) If no main system information is received within the detection setting time T2, the resource clearing operation is executed.
[0041] Preferably, the time T2 when the backup system detects that it has not received the information from the primary system should be less than the supervision time T1 when the primary system has not received the feedback from the backup system, minus any transmission delay that may be required.
[0042] The technical solution adopted by the present invention is that the master system adopts different external authorization strategies in different states, and realizes external resource transfer and authorization without repeated authorization through master-slave state management.
[0043] The specific technical solutions and beneficial effects of the present invention will be described in detail in the following specific embodiments in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments:
[0045] Figure 1 The present invention is a flow chart of a redundant architecture device resource management method based on a state machine. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present invention and its application or use. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] like Figure 1As shown, the redundant architecture device resource management method based on the state machine needs to meet the following requirements:
[0048] 1. When the primary system decides to transfer or authorize resources to other devices, it is necessary to ensure that the backup system has synchronized this information.
[0049] Second, when the backup system is offline, the primary system needs to be able to work independently and handle the first requirement well when the backup system is restored.
[0050] In order to meet the above requirements, a state machine-based approach is adopted to manage the resources recorded by the redundant architecture devices.
[0051] 1. The initial state is the standby state. Before the device enters the standby state, it first clears resources.
[0052] a) The resource clearing operation for transfer-type resources such as driving resources is to clear the relevant records of the resource;
[0053] b) For authorized resources such as turnouts and side defense resources, the resource clearing operation is performed by clearing the authorization record and marking it as unauthorizable to the outside world;
[0054] c) After clearing the resources, the backup system can only be updated through the main system information. If the update operation is not completed and it becomes the main system, manual intervention is required to initialize the resources.
[0055] 2. When the device changes from the backup system to the main system state, it enters the single system working state by default.
[0056] 3. In the single-system state, resources can be authorized externally without feedback from the other system; if information is received from the backup system, it will enter the dual-system working state.
[0057] a) Stop synchronizing resource information with the backup system, so that the backup system cannot be updated by the primary system information as described in step c) of 1 above, thus avoiding duplicate resources;
[0058] b) Transfer and authorize resources without relying on backup systems;
[0059] c) Start the maintenance timer and maintain the single system state before the maintenance timer times out;
[0060] d) After the maintenance timer times out, the standby system communication status detection is started. If the communication is restored, it switches to the dual-system working state.
[0061] 4. In dual-system operation, the primary system needs to synchronize authorization information with the backup system and can only authorize resources externally after receiving feedback from the backup system; if it continues to be unable to receive feedback from the backup system, it will stop sending information to the backup system for a period of time T1 and switch to the single-system state;
[0062] a) Synchronize resource information to the backup system;
[0063] b) Before transferring and authorizing resources, you need to wait for feedback from the backup system;
[0064] c) Start the supervision timer, the timeout period is recorded as T1, and reset the timer every time the backup system feedback is received;
[0065] d) If the supervision timer times out, the system will enter the disconnected state.
[0066] 5. When in the standby system state, it receives information from the main system, updates it, and feeds back the update results to the main system. If no information from the main system is received within the detection set time T2, the resource clearing operation is executed.
[0067] a) Resources cannot be transferred or authorized to external parties;
[0068] b) Becoming the master system without obtaining the master system synchronization resources requires manual intervention and resource initialization;
[0069] c) receiving information from the main system, executing updates to resource information or authorization information, and feeding back the update results to the main system;
[0070] d) If no main system information is received within the detection setting time T2, the resource clearing operation is executed.
[0071] Furthermore, the time T2 when the backup system detects that it has not received the information from the primary system should be less than the supervision time T1 when the primary system has not received the feedback from the backup system, minus any transmission delay that may be required.
[0072] 6. In the master system state, if the master system is lost due to master-slave competition, all timers are stopped and resources are cleared, and the system enters the standby system state.
[0073] The above technical solution, as the main system, adopts different external authorization strategies in different states; and through the main and standby state management, it can effectively guarantee the resources of the main and standby systems, and realize the transfer and authorization of external resources without repeated authorization.
[0074] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Those skilled in the art should understand that the present invention includes but is not limited to the contents described in the above specific embodiments. Any modification that does not deviate from the functional and structural principles of the present invention will be included in the scope of the claims.
Claims
1. A redundant architecture device resource management method based on a state machine, characterized in that: The steps include: 1) The initial state is the standby state; 2) Before the device enters the standby state, clear the resources first; 3) When the device changes from the backup system to the main system, it enters the single system working state by default; 4) In a single-system state, resources can be authorized externally without feedback from another system; 5) In the single-system state, if the information is received from the standby system, it will switch to the dual-system working state; 6) In dual-system operation, the primary system needs to synchronize authorization information with the backup system and can only authorize resources externally after receiving feedback from the backup system; 7) If the backup system feedback cannot be received continuously, the system will switch to the single system state after stopping sending messages to the backup system for a period of time T1; 8) In the standby system state, it receives information from the main system, updates it, and feeds back the update result to the main system. If it does not receive information from the main system within the detection setting time T2, it executes the resource clearing operation; 9) In the main system state, when the main system is lost, clear the resources and enter the backup system state; The operations for clearing resources include: a) For a transfer type resource, the clear resource operation is to clear the relevant records of the resource; b) For authorized resources, the clear resource operation clears the authorization record and marks it as unauthorizable to external parties; c) After clearing the resources, the backup system can only be updated through the main system information. If the update operation is not completed and it becomes the main system, manual intervention is required to initialize the resources. Single system working state a) Stop synchronizing resource information with the backup system. The backup system cannot be updated with the information from the primary system. b) Transfer and authorize resources without relying on backup systems; c) Start the maintenance timer and maintain the single system state before the maintenance timer times out; d) After the maintenance timer times out, the standby system communication status detection is started, and if the communication is restored, it switches to the dual-system working state; Dual system working state a) Synchronize resource information to the backup system; b) Before transferring and authorizing resources, you need to wait for feedback from the backup system; c) Start the supervision timer, with the timeout period recorded as T1, and reset the timer each time feedback is received from the backup system; d) If the monitoring timer times out, the system will enter the disconnected state; Under monophyly a) Stop outputting resource information to the backup system; b) Stop the transfer and authorization of resources; c) Start the waiting timer, and after the waiting timer times out, enter the single system state; In standby state a) Resources cannot be transferred or authorized to external parties; b) If the master system fails to obtain the master system synchronization resources, it needs manual intervention to initialize the resources; c) Receive information from the main system, update resource information or authorization information, and feedback the update results to the main system; d) If no main system information is received within the detection setting time T2, the resource clearing operation is executed.
2. The redundant architecture device resource management method based on a state machine according to claim 1, characterized in that: The time T2 when the backup system detects that it has not received the information from the main system should be less than the supervision time T1 when the main system has not received the feedback from the backup system, minus the required transmission delay.
