Dynamic cloud gateway communication method and system for rail transit and electronic equipment
By adopting a dynamic cloud gateway communication method in rail transit, using hot standby redundancy to dynamically expand cloud gateway resources, and automatically switch to a new cloud gateway instance when a failure occurs, the problem of insufficient scalability and fault tolerance of communication gateways in the existing technology is solved, and high reliability and business continuity are achieved.
Patent Information
- Application Number
- CN202411962205.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-05-13
AI Technical Summary
The expansion of the communication gateway in rail transit is limited. Upgrading or expansion requires physical intervention to cause service interruption, and the fault tolerance capability is poor, the failure recovery time is long, which affects business continuity.
The dynamic cloud gateway communication method based on the secure cloud computer platform is adopted to dynamically expand the cloud gateway resources through hot standby redundancy. When a failure occurs, a new cloud gateway instance is automatically started and associated applications are migrated to achieve seamless switching.
Improve communication scalability and reliability, avoid communication service interruptions caused by hardware failure, and achieve service continuity and efficient resource utilization.
Smart Images

Figure CN119996166A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of cloud computing platforms, and in particular to a dynamic cloud gateway communication method for rail transit. Background Art
[0002] In rail transit safety computers, the communication gateway is an important subsystem, which generally plays the role of converting, routing and managing data communications between devices in different network segments. Based on the traditional signal business deployed at a single station, the communication gateway mainly has the following problems:
[0003] Since the processing power depends on fixed hardware resources, its scalability is limited;
[0004] Fixed configuration, upgrading hardware or expanding capacity requires physical intervention, causing service interruptions and poor reliability;
[0005] Due to hardware limitations and poor fault tolerance, once a device fails, it can only be replaced manually, resulting in network interruption and long recovery time, affecting business continuity.
[0006] After searching, the Chinese invention patent application publication number CN114466016B discloses a method and system for implementing dynamic load balancing of a data center gateway, including: creating a gateway and a load balancer; monitoring the inlet and outlet traffic of all load balancers, and automatically executing the corresponding gateway and load balancer increase and decrease actions according to the set traffic threshold; including the SDN controller monitoring the inlet and outlet traffic of all load balancers to determine whether it is within the threshold of the relevant traffic threshold; if it is within the threshold, no processing is performed, if it is not within the threshold, the load balancer or gateway is created or deleted, and the SDN controller is notified of the change in the number of related load balancers and gateway resources; combined with the latest number of load balancers and gateway resources, the relevant forwarding rules are calculated, and the corresponding forwarding table entry content is generated, and sent to the load balancer and gateway device for forwarding. The existing patent application does not take into account the number of applications, changes in computing requirements, and gateway response measures when the gateway fails, and the reliability and robustness are not high, and the application technology field is different.
[0007] How to achieve reliable communication of rail transit based on cloud gateway has become a technical problem that needs to be solved. Summary of the invention
[0008] The purpose of the present invention is to provide a dynamic gateway communication method based on a secure cloud computer platform in order to overcome the defects of the above-mentioned prior art.
[0009] The purpose of the present invention can be achieved by the following technical solutions:
[0010] According to one aspect of the present invention, a dynamic cloud gateway communication method for rail transit is provided, wherein the cloud gateway is connected to an external network and a rail transit application respectively; the cloud gateway dynamically expands cloud gateway resources in a hot standby redundant manner according to load conditions; when a cloud gateway fails, a new cloud gateway instance is automatically started according to pre-set rules, and the associated applications are automatically migrated to the new cloud gateway, wherein the load includes traffic, memory usage, CPU usage and virtual network occupancy.
[0011] Preferably, one of the cloud gateways is connected to at least one rail transit application; when the load of the cloud gateway increases and reaches a preset threshold, a new cloud gateway is automatically instantiated according to the load situation without adding physical hardware.
[0012] Preferably, when a cloud gateway fails, a new cloud gateway instance is automatically started according to pre-set rules, and the rail transit applications associated with the failed cloud gateway are automatically and seamlessly migrated to the new cloud gateway.
[0013] Preferably, the cloud gateway flexibly selects association with the rail transit application according to the traffic and / or computing amount of the rail transit application.
[0014] More preferably, the gateways matching the rail transit applications are dynamically allocated according to the real-time requirements of the applications and each cloud gateway, wherein the load of the cloud gateway includes traffic and CPU usage.
[0015] Preferably, the corresponding associated cloud gateway strategy is automatically configured according to the requirements of the rail transit application to match the application to the optimal gateway, wherein the requirements include traffic priority, computing priority and virtual network occupancy rate.
[0016] More preferably, the virtual network includes a virtual bridge and a direct physical network port, and the delay corresponding to the virtual bridge is greater than the delay of the direct physical network port.
[0017] More preferably, for rail transit applications with latency requirements below a set threshold, a cloud gateway with a direct physical network port is assigned.
[0018] More preferably, the associated cloud gateway strategy includes: allocating the application of batch processing tasks to a cloud gateway whose virtual network occupancy rate is lower than a set virtual network occupancy rate threshold.
[0019] Preferably, different categories of rail transit applications communicate with external devices through the same or different cloud gateways.
[0020] Preferably, rail transit applications of the same category communicate with external devices through the same or different cloud gateways.
[0021] According to another aspect of the present invention, there is provided a dynamic cloud gateway communication system for rail transit, the system comprising a cloud gateway and a cloud management platform;
[0022] The cloud gateway is used to connect the external network and the rail transit application in the cloud server cluster;
[0023] The cloud gateway dynamically expands cloud gateway resources in a hot standby redundant manner according to load conditions;
[0024] The cloud management platform continuously monitors and operates and manages each cloud gateway.
[0025] Preferably, when a cloud gateway fails, a new cloud gateway instance is automatically started according to pre-set rules, and the rail transit applications associated with the failed cloud gateway are automatically and seamlessly migrated to the new cloud gateway.
[0026] According to a third aspect of the present invention, there is provided an electronic device, comprising a memory and a processor, wherein a computer program is stored in the memory, and the method described above is implemented when the processor executes the program.
[0027] According to a fourth aspect of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, wherein the program implements the method described when executed by a processor.
[0028] Compared with the prior art, the present invention has the following beneficial effects:
[0029] 1) The present invention combines the characteristics of the cloud and designs a dynamic cloud gateway for rail transit. The cloud gateway can dynamically expand cloud gateway resources in a hot standby redundant manner according to the load conditions, avoiding the inability to expand communication due to the limited hardware resources of the previous stand-alone gateway, thereby improving the scalability of communication; when a cloud gateway fails, based on a highly redundant mechanism, a new cloud gateway instance is automatically started according to pre-set rules, and the associated applications are automatically migrated to the new cloud gateway automatic expansion function, thereby avoiding communication service interruption due to communication gateway hardware failure and improving the reliability and robustness of rail transit communication.
[0030] 2) The cloud gateway in the present invention flexibly selects the association with the application according to the traffic and / or computing amount of the application; dynamically allocates the gateway matching the rail transit application according to the real-time needs of the application and each cloud gateway, and dynamically adjusts the resource allocation, so that the cloud gateway can efficiently adapt to the demand fluctuations of the application and maximize the gateway resource utilization.
[0031] 3) In the present invention, rail transit applications and cloud gateways are flexibly grouped. One cloud gateway is connected to at least one rail transit application. Rail transit applications of the same category communicate with external devices through the same or different cloud gateways, and rail transit applications of different categories communicate with external devices through the same or different cloud gateways. Flexible grouping facilitates the effective use of resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A schematic diagram of automatic expansion of the cloud gateway in the present invention;
[0033] Figure 2 A schematic diagram of hot standby migration of a cloud gateway in the present invention;
[0034] Figure 3 This is a schematic diagram of a cloud gateway grouping example 1 in the present invention;
[0035] Figure 4 This is a schematic diagram of the second cloud gateway grouping example in the present invention;
[0036] Figure 5 This is a schematic diagram of the third cloud gateway grouping example in the present invention. DETAILED DESCRIPTION
[0037] 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 part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0038] The present embodiment relates to a dynamic cloud gateway communication method for rail transit. Rail transit signal services are uploaded to the cloud, and the communication gateway in the rail transit safety computer is replaced by a cloud gateway. When the computing resources of a single cloud gateway reach their limit, the on-demand expansion and automated management characteristics of the cloud gateway are utilized to realize the dynamic creation of gateway resources, solving the problem that communication gateway resources are constrained by hardware resources. At the same time, when a gateway fails, a new gateway can be dynamically created, and the original gateway application can be migrated to the new gateway, avoiding the manual replacement of hardware equipment, ensuring the continuity of communication services, and improving the reliability of the communication system.
[0039] Flexible grouping of gateways connected to different types of rail transit applications is achieved. Different types of rail transit applications can communicate with external devices through the same cloud gateway or through different cloud gateways. The same type of rail transit applications can communicate with external devices through the same cloud gateway or through different cloud gateways.
[0040] Through the scheduling of the cloud computer management platform (referred to as the cloud management platform), the traffic in and out of the internal network can be uniformly managed and optimized to ensure the full utilization of gateway resources. Rail transit applications include regional controller applications, interlocking applications, wireless block applications, and integrated train control and interlocking applications.
[0041] Figure 1 The figure is a schematic diagram of automatic expansion of cloud gateway. The rail transit application (referred to as application) in the server cluster communicates with the external network through the gateway, and there is a many-to-one relationship between the rail transit application and the server. In traditional communication gateways, gateway resources depend on hardware resources and are limited. Cloud gateways are used to replace physical gateways to achieve on-demand allocation, dynamic expansion in a hot standby redundant manner, and flexible creation of gateway resources. In the server cluster, application 1 can communicate through gateway 1, and application 2 and application 3 can communicate through gateway 2 (indicated by solid lines in the figure). When the number of applications increases, network traffic or computing needs increase, new gateways can be automatically instantiated according to the load without adding physical hardware, such as gateway 3 and gateway 4 in the figure (indicated by dotted lines in the figure). Compared with traditional communication gateways, automatic expansion of cloud gateways avoids the limitation of hardware resources and improves scalability. The load includes memory, traffic, CPU usage, and virtual network occupancy.
[0042] Figure 2 The diagram below shows the hot standby migration of cloud gateways. The gateways in the cloud platform are continuously monitored. When a gateway fails (such as timeout, resource exhaustion, etc.), the system can quickly detect that the gateway is unavailable. Once a gateway failure is detected, a new gateway instance is automatically started according to pre-set rules. This is completed in a very short time without manual intervention. Figure 2 If Gateway 2 in the system fails due to a fault, the system will automatically instantiate a new Gateway 3 and automatically migrate the rail transit application associated with the original Gateway 2 to Gateway 3. The process of switching to the new gateway is usually seamless, and the back-end rail transit application does not perceive any obvious interruption. The business can continue to operate normally, ensuring business continuity and thus improving reliability.
[0043] In the rail transit safety cloud computer platform, different communication cloud gateways can flexibly select associations with rail transit applications according to the traffic (i.e., business volume) or / and computing volume of different rail transit applications. Gateways matching rail transit applications are dynamically allocated according to the real-time needs of rail transit applications and gateways. Rail transit applications with large traffic can be allocated to gateways with richer resources or more idle resources, while applications with small traffic are allocated to gateways with relatively large but bearable loads. Different strategies are configured according to different application needs, such as traffic priority, computing priority, virtual network occupancy, etc., to automatically allocate requests from different applications to the optimal gateway. The virtual network includes a virtual bridge and a direct physical network port, and the delay corresponding to the virtual bridge is greater than the delay of the direct physical network port. For example, low-latency applications will be preferentially allocated to low-latency gateways (gateways with direct physical network ports), while batch processing tasks (i.e., large traffic) are allocated to gateways with low virtual network occupancy (such as below the set virtual network occupancy threshold) to maximize resource utilization.
[0044] The following three examples are given with two gateways and five applications, where application 1 is the first area controller application, application 2 is the second area controller application, application 3 is the interlocking application, application 4 is the wireless blocking application, and application 5 is the train control and interlocking integrated application.
[0045] like Figure 3 In Cloud Gateway Group 1, by monitoring the CPU, memory, virtual network occupancy and other resource usage of gateways and applications, select Gateway 1 to associate with Application 1, Application 4 and Application 5 respectively; and Gateway 2 to associate with Application 2 and Application 3 respectively.
[0046] like Figure 4 In Cloud Gateway Group 2, by monitoring the CPU, memory, virtual network occupancy, and other resource usage of gateways and applications, select Gateway 1 to associate with Application 1 and Application 2, and Gateway 2 to associate with Application 3, Application 4, and Application 5.
[0047] like Figure 5 In cloud gateway group 3, by monitoring the CPU, memory, virtual network occupancy and other resource usage of gateways and applications, select gateway 1 to associate with application 4 and application 5 respectively; and gateway 2 to associate with application 1, application 2, and application 3 respectively.
[0048] The above three instance grouping relationships are shown in Table 1.
[0049] Table 1
[0050]
[0051] When cloud gateway resources are sufficient, one gateway can be connected to only one application.
[0052] This approach can dynamically adjust resource allocation and maximize resource utilization, allowing the cloud gateway to efficiently adapt to fluctuations in application demand and avoid resource waste, while ensuring high performance of key tasks and improving resource utilization efficiency.
[0053] This embodiment relates to a dynamic cloud gateway communication system for rail transit, which includes a cloud gateway and a cloud management platform; the cloud gateway is used to connect the external network and the rail transit application in the cloud server cluster; the cloud gateway dynamically expands the cloud gateway resources in a hot standby redundant manner according to the load conditions.
[0054] The cloud management platform equipment centrally manages and controls multiple sets of cloud gateway resources, provides one-stop management for application users in a visual form, and provides application users with automated operation and maintenance such as rapid deployment and upgrade of virtual machines. It displays the healthy operation status of the virtual machine cluster in real time and implements a hierarchical alarm mechanism, establishes an operation log record and storage management mechanism, and implements comprehensive monitoring, positioning and diagnosis of the system operation process, assists in timely discovery and resolution of on-site problems, and effectively improves on-site deployment and upgrade efficiency.
[0055] The electronic device of the present invention includes a central processing unit (CPU), which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) or loaded from a storage unit into a random access memory (RAM). In the RAM, various programs and data required for device operation can also be stored. The CPU, ROM and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.
[0056] Multiple components in the device are connected to the I / O interface, including: input units, such as keyboards, mice, etc.; output units, such as various types of displays, speakers, etc.; storage units, such as disks, optical disks, etc.; and communication units, such as network cards, modems, wireless communication transceivers, etc. The communication unit allows the device to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunication networks.
[0057] The processing unit performs the various methods and processes described above. For example, in some embodiments, the method can be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit. In some embodiments, part or all of the computer program can be loaded and / or installed on the device via a ROM and / or a communication unit. When the computer program is loaded into RAM and executed by the CPU, one or more steps of the method described above can be performed. Alternatively, in other embodiments, the CPU can be configured to perform the method in any other appropriate manner (e.g., by means of firmware).
[0058] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0059] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0060] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0061] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A dynamic cloud gateway communication method for rail transit, characterized in that: The cloud gateways are connected to the external network and rail transit applications respectively; the cloud gateways dynamically expand cloud gateway resources in a hot standby redundant manner according to the load conditions; when a cloud gateway fails, a new cloud gateway instance is automatically started according to pre-set rules, and the associated applications are automatically migrated to the new cloud gateway, where the load includes traffic, memory usage, CPU usage and virtual network occupancy.
2. A dynamic cloud gateway communication method for rail transit according to claim 1, characterized in that: One of the cloud gateways is connected to at least one rail transit application; when the load of the cloud gateway increases and reaches a preset threshold, a new cloud gateway is automatically instantiated according to the load situation without adding physical hardware.
3. A dynamic cloud gateway communication method for rail transit according to claim 1, characterized in that: When a cloud gateway fails, a new cloud gateway instance is automatically started according to pre-set rules, and the rail transit applications associated with the failed cloud gateway are automatically and seamlessly migrated to the new cloud gateway.
4. A dynamic cloud gateway communication method for rail transit according to claim 1, characterized in that: The cloud gateway flexibly selects association with the rail transit application according to the traffic and / or computing amount of the rail transit application.
5. A dynamic cloud gateway communication method for rail transit according to claim 3, characterized in that: Based on the real-time needs of applications and cloud gateways, gateways matching rail transit applications are dynamically allocated, where the load of cloud gateways includes traffic and CPU usage.
6. A dynamic cloud gateway communication method for rail transit according to claim 1, characterized in that: The corresponding associated cloud gateway strategy is automatically configured according to the needs of rail transit applications to match the application to the optimal gateway, where the requirements include traffic priority, computing priority and virtual network occupancy rate.
7. A dynamic cloud gateway communication method for rail transit according to claim 6, characterized in that: The virtual network includes a virtual bridge and a direct physical network port, and the delay corresponding to the virtual bridge is greater than the delay of the direct physical network port.
8. A dynamic cloud gateway communication method for rail transit according to claim 7, characterized in that: For rail transit applications with latency requirements below the set threshold, a cloud gateway with a direct physical network port is assigned.
9. A dynamic cloud gateway communication method for rail transit according to claim 6, characterized in that: The associated cloud gateway strategy includes: the application of batch processing tasks is allocated to the cloud gateway whose virtual network occupancy rate is lower than the set virtual network occupancy rate threshold.
10. A dynamic cloud gateway communication method for rail transit according to claim 1, characterized in that: Different categories of rail transit applications communicate with external devices through the same or different cloud gateways.
11. A dynamic cloud gateway communication method for rail transit according to claim 1, characterized in that: Rail transit applications of the same category communicate with external devices through the same or different cloud gateways.
12. A system for implementing the dynamic cloud gateway communication method for rail transit as described in any one of claims 1 to 11, the system comprising a cloud gateway and a cloud management platform; The cloud gateway is used to connect the external network and the rail transit application in the cloud server cluster; The cloud gateway dynamically expands cloud gateway resources in a hot standby redundant manner according to load conditions; The cloud management platform continuously monitors and operates and manages each cloud gateway.
13. The system according to claim 12, characterized in that When a cloud gateway fails, a new cloud gateway instance is automatically started according to pre-set rules, and the rail transit applications associated with the failed cloud gateway are automatically and seamlessly migrated to the new cloud gateway.
14. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the program, the method according to any one of claims 1 to 11 is implemented.
15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.
Citation Information
Patent Citations
A method and system for implementing dynamic load balancing in data center gateways
CN114466016B