Train automatic monitoring system network capture and optimization method, device, equipment and storage medium

By acquiring and analyzing network status data and adjusting the information synchronization network in real time, the problem of abnormal display of real-time traffic flow information caused by network oscillation is solved, and the accurate and real-time synchronization of information is achieved.

CN119766678APending Publication Date: 2025-04-04CRSC URBAN RAIL TRANSIT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411618285.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-13
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

In the prior art, network oscillation causes the automatic train monitoring system to be unable to accurately display real-time traffic movement information.

Method used

By obtaining network status data of multiple networks between the first node and the second node, including network reconnection coefficient and network oscillation coefficient, the network used synchronously is adjusted in real time based on these data to maximize the risk of network oscillation.

Benefits of technology

It realizes real-time adjustment of information synchronization network in different network scenarios, ensuring accurate display and real-time synchronization of real-time mobile information of trains, reducing the risks caused by network oscillation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119766678A_ABST
    Figure CN119766678A_ABST
Patent Text Reader

Abstract

The present invention provides a network capture and optimization method, device, electronic device and storage medium for an automatic train monitoring system, belonging to the field of communication technology, the method comprising: obtaining network status data of multiple networks between a first node and a second node, synchronizing information between the first node and the second node through Redis Stream, the network status data comprising a network reconnection coefficient characterizing a network reconnection situation and a network oscillation coefficient characterizing a network oscillation situation, and determining the network currently used by the first node and the second node based on the network status data of each network. The present invention adjusts the network used for information synchronization in real time according to the network status between the first node and the second node, is compatible with different network scenarios, reduces the risk caused by network oscillation in engineering applications, and ensures accurate display of train information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a network capture and optimization method, device, equipment and storage medium for an automatic train monitoring system. Background Art

[0002] At present, the control automation of urban rail trains has developed into a new stage of fully automatic operation system. The Automatic Train Supervision (ATS) system is an important part of the urban rail transit system, which is used to monitor and manage the operation of trains. The ATS system integrates various sensors, communication equipment and control devices to achieve real-time monitoring, scheduling and optimization of train operation, thereby improving transportation efficiency and safety.

[0003] At present, ATS synchronizes the information of each station to the second node through Redis (Remote Dictionary Server). As an open source memory data structure storage system, Redis can improve the performance and response speed of the system as a cache, and the memory storage method can greatly improve the operating efficiency of the system; the rich data structures it provides are widely used in scenarios such as cache, session storage, and real-time data analysis. Redis implements message queues, and can synchronize information between different components by storing messages in Redis through publish / subscribe, Stream, etc. Message queues can be implemented in Redis through List, PUB / SUB and Stream. List and PUB / SUB are completely based on memory operations and are fast, but if there are failures such as network interruption and Redis downtime, the message will be discarded. Redis 5.0 introduced the Stream data structure, which can persist messages to solve the problem of message discarding. The single thread of the redis node causes the reading of the stream queue between nodes to strictly rely on the stability of the network between the redis nodes. Therefore, the real-time performance of all types of data in the train automatic monitoring system is extremely sensitive to the performance of the network, especially the train number display whose status needs to be frequently updated and the position needs to be moved in real time. In the case that signal systems mostly adopt multi-network redundant design, redis's ability to detect / identify in real time and switch to the optimal network in time is crucial for data synchronization between nodes. However, the redundant structure of the dual-network design also has the risk that data cannot be read in time due to network jitter, which poses a risk of abnormal display for signal systems with high real-time requirements, especially for the display requirements of train numbers with frequent status updates and real-time movement of positions.

[0004] Therefore, how to ensure accurate display of real-time train movement information has become a technical problem that needs to be solved urgently. Summary of the invention

[0005] The present invention provides a network capture and optimization method, device, equipment and storage medium for an automatic train monitoring system, which are used to solve the problem in the prior art that the automatic train monitoring system cannot display real-time movement information of train numbers due to network oscillation.

[0006] The present invention provides a network capture and optimization method for an automatic train monitoring system, comprising the following steps: Acquire network status data of multiple networks between a first node and a second node, wherein the first node and the second node perform information synchronization through Redis Stream, wherein the network status data includes a network reconnection coefficient and a network oscillation coefficient, wherein the network reconnection coefficient represents a network reconnection situation, and the network oscillation coefficient represents a network oscillation situation; Based on the network status data of each of the networks, the network currently used by the first node and the second node is determined.

[0007] According to a network capture and optimization method for a train automatic monitoring system provided by the present invention, the network reconnection coefficient is determined based on the number of times the network undergoes a disconnection-recovery process within a preset time period, and the more times the network undergoes a disconnection-recovery process, the greater the network reconnection coefficient; the network oscillation coefficient is determined based on the number of times the network undergoes oscillation within a preset time period, and the more times the network undergoes oscillation, the greater the network oscillation coefficient.

[0008] According to a network capture and optimization method for an automatic train monitoring system provided by the present invention, the network currently used by the first node and the second node is determined based on the network status data of each network, including: For any network, based on a preset weight coefficient, a network reconnection coefficient and a network oscillation coefficient of the network are weighted and aggregated to obtain a network quality index of the network; Based on the network quality indicator of each of the networks, the network currently used by the first node and the second node is determined.

[0009] According to a network capture and optimization method for an automatic train monitoring system provided by the present invention, the network currently used by the first node and the second node is determined based on the network status data of each network, including: sorting the networks based on the network reconnection coefficient of each network; If the minimum network reconnection coefficient value corresponds to a network, determining that the network is a network currently used by the first node and the second node, and the minimum network reconnection coefficient value is the minimum value of the network reconnection coefficients of the networks; If the minimum value of the network reconnection coefficient corresponds to multiple networks, then the network corresponding to the minimum value of the network oscillation coefficient is determined to be the network currently used by the first node and the second node, and the minimum value of the network oscillation coefficient is the minimum value of the network oscillation coefficients of the multiple networks corresponding to the minimum value of the network reconnection coefficient.

[0010] According to a network capture and optimization method for an automatic train monitoring system provided by the present invention, the network currently used by the first node and the second node is determined based on the network status data of each network, including: sorting the networks based on the network oscillation coefficient of each network; If the minimum network oscillation coefficient value corresponds to a network, it is determined that the network is a network currently used by the first node and the second node, and the minimum network oscillation coefficient value is the minimum value of the network oscillation coefficients of each of the networks; If the minimum value of the network oscillation coefficient corresponds to multiple networks, the network corresponding to the minimum value of the network reconnection coefficient is determined to be the network currently used by the first node and the second node, and the minimum value of the network reconnection coefficient is the minimum value of the network reconnection coefficients of the multiple networks corresponding to the minimum value of the network oscillation coefficient.

[0011] The present invention also provides a network capture and optimization device for an automatic train monitoring system, comprising the following modules: A data acquisition module, used to acquire network status data of multiple networks between a first node and a second node, wherein the first node and the second node perform information synchronization through Redis Stream, and the network status data includes a network reconnection coefficient and a network oscillation coefficient, wherein the network reconnection coefficient represents a network reconnection situation, and the network oscillation coefficient represents a network oscillation situation; The network selection module is used to determine the network currently used by the first node and the second node based on the network status data of each of the networks.

[0012] The present invention also provides a train automatic monitoring system, comprising a plurality of station Redis service nodes and a central Redis service node, wherein data synchronization is performed between the central Redis service node and each of the station Redis service nodes through any of the above-mentioned train automatic monitoring system network capture and optimization methods.

[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the network capture and optimization method for the automatic train monitoring system as described above is implemented.

[0014] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the network capture and optimization method of the automatic train monitoring system as described in any one of the above is implemented.

[0015] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned train automatic monitoring system network capture and optimization methods.

[0016] The network capture and optimization method, device, equipment and storage medium of the train automatic monitoring system provided by the present invention obtains the network status data of multiple networks between the first node and the second node, and the first node and the second node synchronize information through Redis Stream, and the network status data includes a network reconnection coefficient and a network oscillation coefficient, the network reconnection coefficient represents the network reconnection situation, and the network oscillation coefficient represents the network oscillation situation; based on the network status data of each network, the network currently used by the first node and the second node is determined. This solution adjusts the network used for information synchronization in real time according to the network status between the first node and the second node, can be compatible with different network scenarios, minimize the risks caused by network oscillation in engineering applications, and ensure real-time synchronization and accurate display of real-time movement information of train numbers. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 It is one of the flow diagrams of the network capture and optimization method of the automatic train monitoring system provided by the present invention.

[0019] Figure 2 This is the second flow chart of the network capture and optimization method of the automatic train monitoring system provided by the present invention.

[0020] Figure 3 This is one of the schematic diagrams of realizing information synchronization by using the Stream message queue between nodes provided by the present invention.

[0021] Figure 4 This is the second schematic diagram of implementing information synchronization by using the Stream message queue between nodes provided by the present invention.

[0022] Figure 5 It is an exemplary schematic diagram of an abnormal display of the ATS system in the prior art provided by the present invention.

[0023] Figure 6 It is an exemplary schematic diagram showing that the ATS system of the train automatic monitoring system network capture and optimization method provided by the present invention displays normal.

[0024] Figure 7 It is a schematic diagram demonstrating the network capture and optimization method of the automatic train monitoring system provided by the present invention.

[0025] Figure 8 It is a structural schematic diagram of a network capture and optimization device for an automatic train monitoring system provided by the present invention.

[0026] Fig. 9 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings 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 are within the scope of protection of the present invention.

[0028] It should be noted that in the description of the embodiments of the present invention, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "include one..." do not exclude the existence of other identical elements in the process, method, article or device including the elements. The orientation or position relationship indicated by the terms "upper", "lower" and the like is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. Unless otherwise clearly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, or it can be a connection between two elements. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0029] The terms "first", "second", etc. in this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0030] Combine the following Figure 1-Figure 9 The present invention describes a train automatic monitoring system network capture and optimization method, device, equipment and storage medium provided by an embodiment of the present invention.

[0031] Figure 1 It is one of the flow charts of the network capture and optimization method of the automatic train monitoring system provided by the present invention; Figure 2 This is the second flow chart of the network capture and optimization method of the automatic train monitoring system provided by the present invention; like Figure 1-Figure 2 As shown, the method includes the following: S110, obtaining network status data of multiple networks between the first node and the second node; S120: Determine the network currently used by the first node and the second node based on the network status data of each of the networks.

[0032] It should be noted that the executor of the train automatic monitoring system network capture and optimization method provided in the embodiment of the present application can be a server, computer equipment, etc.

[0033] Figure 3 This is one of the schematic diagrams of implementing information synchronization by the Stream message queue between nodes provided by the present invention, such as Figure 3 As shown in the figure, Redis (Remote Dictionary Server) is an open source, high-performance key-value storage system, which is usually used as a database, cache and message middleware. According to the distributed characteristics of the signal system, the central application server has a built-in Redis system as the central Redis service node; the station extension has a built-in Redis system as the station Redis service node; the center and the station rely on the Stream message queue that comes with Redis 5.0 to achieve information synchronization.

[0034] Figure 4 This is the second schematic diagram of implementing information synchronization by using the Stream message queue between nodes provided by the present invention. Figure 4As shown in the figure, the data in the central node cache is a collection of data cached by all station nodes in the line area under its jurisdiction. Each station node only needs to save the data cached by the station. The station-level node acts as a data producer, and the central node acts as a consumer. The way to obtain station node data relies on reading the Stream message queue. The Stream data structure is a time-series, multicast-supported, and persistent message queue. The Redis client on each station node writes the data that needs to be synchronized to the central node into the corresponding Topic. The central node Redis client that needs to consume gets the information in the Stream, filters the information, and writes it to the Redis in this node, thereby completing the synchronization process of the specified data. Because a central node needs to synchronize data from multiple station nodes, and Redis is a single-threaded blocking operation, the failure of a single node to read data will risk affecting the synchronization of all station node data by the entire central node.

[0035] It should be noted that the network capture and optimization method of the automatic train monitoring system provided by the present invention can be applied between station nodes and station nodes, and can also be applied between station nodes and central nodes. For ease of understanding, the following embodiments take the first node as a station node and the second node as a central node as an example to illustrate the network capture and optimization method of the automatic train monitoring system provided by the present invention.

[0036] For example, there are two networks, A and B, between the first node and the second node, and network A has a higher priority than network B. There are six scenarios derived from network changes: (oscillation refers to the network being disconnected and connected in ms) (1) Network A communication is normal, network B communication is not considered, and network A is used to read data; (2) Network A communication is abnormal, while Network B communication is normal. Network B is used to read data. (3) Network A is abnormal, network B is abnormal, and the output cannot read data alarm; (4) Network A oscillates repeatedly, while network B is normal; (5) Network B oscillates repeatedly, while network A is normal; (6) Both network A and network B oscillate repeatedly.

[0037] In combination with the real-time requirements of existing engineering applications, in order to meet the synchronization requirements in the above scenarios and maximize the real-time needs of data, the network used for information synchronization is selected through the monitored network status data.

[0038] There are at least two network lines between the first node and the second node. As mentioned above, network lines usually have priorities. For ease of understanding, the following embodiments take the example that there are two network lines A and B between the first node and the second node, and the priority of network A is higher than that of network B, to illustrate the network capture and optimization method of the train automatic monitoring system provided by the present invention.

[0039] In S110, the first node serves as a station Redis service node, the second node serves as a second node Redis service node, and the first node and the second node synchronize information via Redis Stream. The network status data includes a network reconnection coefficient and a network oscillation coefficient. The network reconnection coefficient represents the network reconnection situation, and the network oscillation coefficient represents the network oscillation situation.

[0040] In S110 , network status data is acquired through a ping command.

[0041] In S120, if the communication of network A is normal, network A is used to synchronize data; if the communication of network A is abnormal and the communication of network B is normal, network B is used to synchronize data; if both network A and network B are abnormal, data cannot be synchronized and a network abnormality alarm message is output; if network A oscillates repeatedly and network B is normal, network B is used to synchronize data; if both network A and network B oscillate repeatedly, the network with better status is selected as the network used for the current synchronization of data between the first node and the second node based on the network status data of network A and network B.

[0042] The network capture and optimization method of the train automatic monitoring system provided by the embodiment of the present invention obtains the network status data of multiple networks between the first node and the second node, and the first node and the second node synchronize information through Redis Stream, and the network status data includes a network reconnection coefficient and a network oscillation coefficient, the network reconnection coefficient represents the network reconnection situation, and the network oscillation coefficient represents the network oscillation situation; based on the network status data of each network, the network currently used by the first node and the second node is determined. This solution adjusts the network used for information synchronization in real time according to the network status between the first node and the second node, can be compatible with different network scenarios, minimize the risks caused by network oscillation in engineering applications, and ensure the accurate display of real-time movement information of train numbers.

[0043] In an optional embodiment, the network reconnection coefficient is determined based on the number of network disconnection-recovery processes within a preset time period. The more times the network disconnection-recovery processes occur, the larger the network reconnection coefficient is; the network oscillation coefficient is determined based on the number of network oscillations within a preset time period. The more times the network oscillates, the larger the network oscillation coefficient is.

[0044] Here, network oscillation refers to the phenomenon that the network is not disconnected, but the poor network connection affects the I / O data effect of the Redis node.

[0045] Here, the time span of the preset time period can be set according to actual usage requirements. For example, in one embodiment, the preset time period is from the start of the system operation to the current time, and the network reconnection coefficient is determined according to the total number of network reconnections since the system was started; in another embodiment, the preset time period is 30 minutes from the current time, and the network reconnection coefficient is determined according to the number of network reconnections in the past 30 minutes.

[0046] In one embodiment, the network reconnection coefficient is the number of network reconnections of the network counted within a preset time period.

[0047] In one embodiment, the network reconnection coefficient is a network reconnection frequency of the network counted within a preset time period.

[0048] In one embodiment, the network oscillation coefficient is the number of network oscillations of the network counted within a preset time period.

[0049] In one embodiment, the network oscillation coefficient is a network oscillation frequency of the network counted within a preset time period.

[0050] In an optional embodiment, determining the network currently used by the first node and the second node based on the network status data of each of the networks includes: For any network, based on a preset weight coefficient, a network reconnection coefficient and a network oscillation coefficient of the network are weighted and aggregated to obtain a network quality index of the network; Based on the network quality indicator of each of the networks, the network currently used by the first node and the second node is determined.

[0051] In an optional embodiment, determining the network currently used by the first node and the second node based on the network status data of each of the networks includes: sorting the networks based on the network reconnection coefficient of each network; If the minimum network reconnection coefficient value corresponds to a network, determining that the network is a network currently used by the first node and the second node, and the minimum network reconnection coefficient value is the minimum value of the network reconnection coefficients of the networks; If the minimum value of the network reconnection coefficient corresponds to multiple networks, then the network corresponding to the minimum value of the network oscillation coefficient is determined to be the network currently used by the first node and the second node, and the minimum value of the network oscillation coefficient is the minimum value of the network oscillation coefficients of the multiple networks corresponding to the minimum value of the network reconnection coefficient.

[0052] Still taking network A and network B as an example, the network with the smallest network reconnection coefficient is selected as the currently used network. If the network reconnection coefficients of the two networks are the same, the network with the smallest network oscillation coefficient is selected as the currently used network.

[0053] In an optional embodiment, network A has a higher priority than network B. When network A and network B have the same network reconnection coefficient, network A is selected as the currently used network.

[0054] In an optional embodiment, determining the network currently used by the first node and the second node based on the network status data of each of the networks includes: sorting the networks based on the network oscillation coefficient of each network; If the minimum network oscillation coefficient value corresponds to a network, it is determined that the network is a network currently used by the first node and the second node, and the minimum network oscillation coefficient value is the minimum value of the network oscillation coefficients of each of the networks; If the minimum value of the network oscillation coefficient corresponds to multiple networks, the network corresponding to the minimum value of the network reconnection coefficient is determined to be the network currently used by the first node and the second node, and the minimum value of the network reconnection coefficient is the minimum value of the network reconnection coefficients of the multiple networks corresponding to the minimum value of the network oscillation coefficient.

[0055] Still taking network A and network B as an example, the network with the smallest network oscillation coefficient is selected as the currently used network. If the network oscillation coefficients of the two networks are the same, the network with the smallest network reconnection coefficient is selected as the currently used network.

[0056] In an optional embodiment, network A has a higher priority than network B. When network oscillation coefficients of network A and network B are the same, network A is selected as the currently used network.

[0057] Figure 5 It is an exemplary schematic diagram of an abnormal display of an ATS system in the prior art provided by the present invention; Figure 6 It is an exemplary schematic diagram showing that the ATS system of the network capture and optimization method of the automatic train monitoring system provided by the present invention displays normal; like Figure 5 and Figure 6 As shown, before using the network capture and optimization method for the automatic train monitoring system provided by the present invention, information packet loss caused by timeout of synchronous data accumulation processing due to network oscillation occurred frequently, causing great display problems for train movement with extremely high real-time requirements; after adding the network capture and optimization method for the automatic train monitoring system provided by the present invention, the problem of displaying real-time train movement information due to network oscillation no longer occurred.

[0058] Figure 7 Schematic diagram showing the network capture and optimization method of the automatic train monitoring system provided by the present invention. Figure 7As shown in the figure, 73.12.10.112 is disconnected (A network 0), 74.12.10.112 is normal (B network 1), and it switches to B network for synchronization in time; 73.12.8.112 (A network) and 74.12.8.112 (B network) are connected normally, and A network is selected as the synchronization network with priority.

[0059] In summary, the network capture and optimization method of the train automatic monitoring system provided by the present invention adopts the existing second node consumption Stream message queue design, and can select the optimal synchronization network through the network stability adaptive algorithm to ensure the stability of product application and the real-time data synchronization; it is compatible with different production environments and various abnormal network scenarios, and meets the extremely high real-time synchronization requirements in the train information movement scenario in the signal system; it mines the powerful network stability evaluation index parameters that have been statistically analyzed over a period of time since the system ran: network disconnection coefficient and network oscillation coefficient, so as to form an effective network priority judgment standard to ensure the accurate display of real-time movement information of train numbers.

[0060] The following is a description of the train automatic monitoring system network capture and optimization device provided in an embodiment of the present application. The train automatic monitoring system network capture and optimization device described below and the train automatic monitoring system network capture and optimization method described above can be referenced to each other.

[0061] Figure 8 Schematic diagram of the structure of the network capture and optimization device for the automatic train monitoring system provided by the present invention. Figure 8 As shown, the network capture and optimization device of the automatic train monitoring system may include but is not limited to; A data acquisition module 810 is used to acquire network status data of multiple networks between a first node and a second node, wherein the first node and the second node perform information synchronization through Redis Stream, and the network status data includes a network reconnection coefficient and a network oscillation coefficient, wherein the network reconnection coefficient represents a network reconnection situation, and the network oscillation coefficient represents a network oscillation situation; The network selection module 820 is used to determine the network currently used by the first node and the second node based on the network status data of each of the networks.

[0062] It should be noted that the train automatic monitoring system network capture and optimization device provided in the embodiment of the present invention can execute the train automatic monitoring system network capture and optimization method described in any of the above embodiments during specific operation, which will not be elaborated in this embodiment.

[0063] The present invention also provides a train automatic monitoring system, including multiple station Redis service nodes and a central Redis service node, wherein data synchronization is performed between the central Redis service node and each station Redis service node through the train automatic monitoring system network capture and optimization method provided by the above methods.

[0064] Fig. 9 An example of a physical structure diagram of an electronic device is shown in FIG. Fig. 9 As shown, the electronic device may include: a processor 910, a communication interface 920, a memory 930 and a communication bus 940, wherein the processor 910, the communication interface 920 and the memory 930 communicate with each other through the communication bus 940. The processor 910 may call the logic instructions in the memory 930 to execute the network capture and optimization method of the train automatic monitoring system, the method comprising: obtaining the network status data of multiple networks between the first node and the second node, the first node and the second node perform information synchronization through Redis Stream, the network status data comprises a network reconnection coefficient and a network oscillation coefficient, the network reconnection coefficient represents the network reconnection situation, and the network oscillation coefficient represents the network oscillation situation; based on the network status data of each of the networks, determining the network currently used by the first node and the second node.

[0065] In addition, the logic instructions in the above-mentioned memory 930 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0066] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the train automatic monitoring system network capture and optimization method provided by the above methods, the method including: obtaining network status data of multiple networks between a first node and a second node, synchronizing information between the first node and the second node through Redis Stream, the network status data including a network reconnection coefficient and a network oscillation coefficient, the network reconnection coefficient characterizing the network reconnection situation, and the network oscillation coefficient characterizing the network oscillation situation; based on the network status data of each of the networks, determining the network currently used by the first node and the second node.

[0067] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the train automatic monitoring system network capture and optimization method provided by the above-mentioned methods, the method comprising: obtaining network status data of multiple networks between a first node and a second node, information synchronization between the first node and the second node through Redis Stream, the network status data comprising a network reconnection coefficient and a network oscillation coefficient, the network reconnection coefficient characterizing the network reconnection situation, and the network oscillation coefficient characterizing the network oscillation situation; based on the network status data of each of the networks, determining the network currently used by the first node and the second node.

[0068] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0069] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0070] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A network capture and optimization method for an automatic train monitoring system, characterized in that: include: Acquire network status data of multiple networks between a first node and a second node, wherein the first node and the second node perform information synchronization through Redis Stream, wherein the network status data includes a network reconnection coefficient and a network oscillation coefficient, wherein the network reconnection coefficient represents a network reconnection situation, and the network oscillation coefficient represents a network oscillation situation; Based on the network status data of each of the networks, the network currently used by the first node and the second node is determined.

2. The train automatic monitoring system network capture and optimization method according to claim 1, characterized in that: The network reconnection coefficient is determined based on the number of times the network is disconnected and restored within a preset time period. The more times the network is disconnected and restored, the greater the network reconnection coefficient. The network oscillation coefficient is determined based on the number of network oscillations within a preset time period. The greater the number of network oscillations, the greater the network oscillation coefficient.

3. The train automatic monitoring system network capture and optimization method according to claim 2 is characterized in that: The determining, based on the network status data of each of the networks, a network currently used by the first node and the second node includes: For any network, based on a preset weight coefficient, a network reconnection coefficient and a network oscillation coefficient of the network are weighted and aggregated to obtain a network quality index of the network; Based on the network quality indicator of each of the networks, the network currently used by the first node and the second node is determined.

4. The train automatic monitoring system network capture and optimization method according to claim 2, characterized in that: The determining, based on the network status data of each of the networks, a network currently used by the first node and the second node includes: sorting the networks based on the network reconnection coefficient of each network; If the minimum network reconnection coefficient value corresponds to a network, determining that the network is a network currently used by the first node and the second node, and the minimum network reconnection coefficient value is the minimum value of the network reconnection coefficients of the networks; If the minimum value of the network reconnection coefficient corresponds to multiple networks, then the network corresponding to the minimum value of the network oscillation coefficient is determined to be the network currently used by the first node and the second node, and the minimum value of the network oscillation coefficient is the minimum value of the network oscillation coefficients of the multiple networks corresponding to the minimum value of the network reconnection coefficient.

5. The train automatic monitoring system network capture and optimization method according to claim 2, characterized in that: The determining, based on the network status data of each of the networks, a network currently used by the first node and the second node includes: sorting the networks based on the network oscillation coefficient of each network; If the minimum network oscillation coefficient value corresponds to a network, it is determined that the network is a network currently used by the first node and the second node, and the minimum network oscillation coefficient value is the minimum value of the network oscillation coefficients of each of the networks; If the minimum value of the network oscillation coefficient corresponds to multiple networks, the network corresponding to the minimum value of the network reconnection coefficient is determined to be the network currently used by the first node and the second node, and the minimum value of the network reconnection coefficient is the minimum value of the network reconnection coefficients of the multiple networks corresponding to the minimum value of the network oscillation coefficient.

6. A network capture and optimization device for an automatic train monitoring system, characterized in that: include: A data acquisition module, used to acquire network status data of multiple networks between a first node and a second node, wherein the first node and the second node perform information synchronization through Redis Stream, and the network status data includes a network reconnection coefficient and a network oscillation coefficient, wherein the network reconnection coefficient represents a network reconnection situation, and the network oscillation coefficient represents a network oscillation situation; The network selection module is used to determine the network currently used by the first node and the second node based on the network status data of each of the networks.

7. A train automatic monitoring system, characterized in that: It comprises a plurality of station Redis service nodes and a central Redis service node, and data synchronization is performed between the central Redis service node and each of the station Redis service nodes through the network capture and optimization method of the automatic train monitoring system as claimed in any one of claims 1 to 5.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the network capture and optimization method of the automatic train monitoring system as described in any one of claims 1 to 5 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the network capture and optimization method of the automatic train monitoring system as described in any one of claims 1 to 5 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the network capture and optimization method of the automatic train monitoring system as described in any one of claims 1 to 5 is implemented.