CN115988005B - Method for synchronizing signals by adopting distributed clusters - Google Patents
Method for synchronizing signals by adopting distributed clusters Download PDFInfo
- Publication number
- CN115988005B CN115988005B CN202211390058.2A CN202211390058A CN115988005B CN 115988005 B CN115988005 B CN 115988005B CN 202211390058 A CN202211390058 A CN 202211390058A CN 115988005 B CN115988005 B CN 115988005B
- Authority
- CN
- China
- Prior art keywords
- monitoring
- node
- interval
- host
- control center
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention provides a method for signal synchronization by adopting a distributed cluster, which comprises the steps of constructing a system for signal synchronization by adopting the distributed cluster, and acquiring a node subscription table and a signal synchronization process by each interval monitoring host. The invention is controlled by the dispatching control center, the dispatching control center can designate any railway tunnel section monitoring device in the cluster as the railway tunnel section monitoring device which interacts with the railway tunnel section monitoring device, and the railway tunnel section monitoring device can upload all data of the tunnel to the dispatching control center to execute various instructions of the dispatching control center; therefore, the data synchronization among the railway tunnel section monitoring devices and the data synchronization of the railway tunnel section monitoring devices to the dispatching control center can be realized, and the method has the advantage of high data synchronization efficiency.
Description
Technical Field
The invention belongs to the technical field of computers and information, and particularly relates to a method for synchronizing signals by adopting a distributed cluster.
Background
At present, the signal monitoring of the electrified railway tunnel generally adopts a fire-fighting two-bus, a site 485 bus and an optical fiber self-healing ring as a carrier of the signal.
And the fire-fighting two buses are provided with only two power supply lines, and all equipment nodes are hung on the power supply buses in parallel and are powered by the buses. The address of each equipment node is unique, the equipment nodes have a master-slave relationship, only the master equipment node can initiate communication, and generally, only one master equipment node is arranged on a bus, the other nodes are slave equipment nodes, and when the equipment nodes are more, the real-time performance is low; in general, short circuit, open circuit, and ground faults all cause bus faults;
and a field 485 bus passing through two communication lines. The communication capacity of the bus is small, and in theory, only 32 device nodes are allowed to be accessed at most. The bus also adopts a master-slave mode and adopts a polling mode for communication, and when the number of equipment nodes in the system is too large, the real-time performance is poor.
The optical fiber self-healing ring adopts an optical fiber as a transmission carrier, has the characteristics of high anti-interference performance, high stability and the like in a full duplex communication mode, but has fewer distributed message synchronization mechanisms aiming at railway tunnel data at present, and adopts a master-slave polling mode.
The above communication method has the following problems:
(1) the communication mode between railway tunnels adopts a master-slave mode, electric power communication machine rooms (used for connecting a dispatching control center) in the tunnels are distributed irregularly, and management equipment is usually required to be additionally arranged when the electric power communication machine rooms are accessed to the dispatching control center, so that the equipment universality is low.
(2) The communication between railway tunnels adopts a master-slave application layer protocol, and when the system nodes are too many, the real-time performance of data interaction is seriously reduced.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a device and a method for synchronizing signals by adopting a distributed cluster, which can effectively solve the problems.
The technical scheme adopted by the invention is as follows:
the invention provides a method for synchronizing signals by adopting a distributed cluster, which comprises the following steps:
step 1, constructing a system for synchronizing signals by adopting a distributed cluster:
the system for synchronizing signals by adopting the distributed clusters comprises a plurality of interval monitoring hosts, a dispatching control center, a distributed message issuing cluster, an uplink message pool and a downlink message pool;
step 2, each interval monitoring host obtains a node subscription table, and the method comprises the following steps:
step 2.1, each interval monitoring host creates a local node configuration table:
each interval monitoring host creates nodes with the same quantity as the monitoring subsystems governed by the interval monitoring host, each node corresponds to a unique monitoring subsystem, and links are created between the node and the corresponding monitoring subsystem; the links comprise two types, namely an uplink link and a downlink link; wherein, the uplink refers to: the monitoring subsystem transmits monitoring data to the node and needs to be uploaded to a dispatching control center; the downlink refers to: the monitoring subsystem sends monitoring data to the node and needs to be synchronized to other interval monitoring hosts subscribed to the downlink; thus, the node receives monitoring data from the corresponding monitoring subsystem via the link;
the interval monitoring host establishes a local node configuration table, wherein the local node configuration table is used for storing node attributes of each node established by the local monitoring host, and the node attributes comprise: node ID, node-bound monitoring subsystem ID, and link type between node and monitoring subsystem;
step 2.2, each interval monitoring host is configured with a release service module, and the created local node configuration table is released to a distributed message release cluster through the release service module;
the distributed message distribution cluster obtains a local node configuration table distributed by each interval monitoring host, splices the local node configuration tables to form a node configuration summary table, and transmits the node configuration summary table to the distributed message distribution cluster;
step 2.3, each interval monitoring host is configured with a subscription service module, and a node subscription request is sent to the distributed message distribution cluster through the subscription service module; the node subscription request carries a node ID to be subscribed and a link type between the node to be subscribed and the monitoring subsystem, wherein the link type comprises an uplink link type and/or a downlink link type; the node ID to be subscribed is the local node ID and/or the node ID of other interval monitoring hosts;
when the distributed message distribution cluster receives the node subscription request of the interval monitoring host, a node subscription table conforming to the node subscription request is generated and returned to the corresponding interval monitoring host;
step 3, signal synchronization process:
step 3.1, when a certain local node of any interval monitoring host receives monitoring data uploaded by a monitoring subsystem connected with the local node, the local node packages node attributes and the monitoring data to form a node monitoring data packet, and the node monitoring data packet is sent to the interval monitoring host;
the interval monitoring host identifies the link type in the node monitoring data packet, and if the node monitoring data packet is uplink, the node monitoring data packet is sent to an uplink message pool; if the node monitoring data packet is downlink, the node monitoring data packet is sent to a downlink message pool;
step 3.2, each interval monitoring host is connected with a downlink message pool; for any interval monitoring host, reading the subscribed node monitoring data packet from the downlink message pool according to the node subscription table obtained in the step 2, thereby realizing the synchronization of the node monitoring data packet among the interval monitoring hosts;
the dispatching control center establishes a communication channel with any interval monitoring host, and the interval monitoring host establishing the communication channel with the dispatching control center is expressed as: the interval monitoring host (k) reads all the node monitoring data packets from the uplink message pool and sends the node monitoring data packets to the dispatching control center through the communication channel, so that the node monitoring data packets of all the interval monitoring hosts are synchronized to the dispatching control center.
Preferably, the distributed message distribution cluster is connected with the uplink message pool and the downlink message pool respectively, and is used for uniformly managing node monitoring data packets in the uplink message pool and the downlink message pool.
Preferably, the uplink message pool and the downlink message pool both adopt a ring queue mode to store node monitoring data packets.
Preferably, each node monitors the data packet and pre-configures with the priority;
and the uplink message pool and the downlink message pool are respectively configured with the upper limit number of the stored node monitoring data packets, and when the upper limit number is exceeded, the node monitoring data packets with the lowest priority are removed according to the priority of each node monitoring data packet.
Preferably, in step 3.2, the following manner is adopted for communication between the scheduling control center and any interval monitoring host (k):
step 3.2.1, the dispatching control center configures a first main host, a second main host, a first standby host and a second standby host;
each interval monitoring host creates a channel monitoring thread to monitor whether a channel is created between the interval monitoring host and the dispatching control center;
when any interval monitoring host (k) monitors that a 1 st communication channel is successfully established between the interval monitoring host (k) and the dispatching control center through a monitoring thread, the monitoring thread continues monitoring; meanwhile, the interval monitoring host (k) performs data analysis interaction with the dispatching control center through the created 1 st communication channel;
when the monitoring thread monitors that the 1 st communication channel successfully performs data analysis interaction, the monitoring thread continues monitoring, and if the monitoring thread monitors that the 2 nd communication channel is successfully established between the interval monitoring host (k) and the dispatching control center, the monitoring thread continues monitoring; meanwhile, the interval monitoring host (k) performs data analysis interaction with the dispatching control center through the 2 nd communication channel;
when the monitoring thread monitors that the 2 nd communication channel successfully performs data analysis interaction, the monitoring thread continuously monitors the 1 st communication channel and the 2 nd communication channel, and if the 1 st communication channel and the 2 nd communication channel are continuously in a normal state, the interval monitoring host (k) performs data analysis interaction with the dispatching control center through the created 1 st communication channel and 2 nd communication channel;
if the monitoring thread monitors that any one of the 1 st communication channel and the 2 nd communication channel is abnormal, the interval monitoring host (k) destroys the abnormal communication channel, and enables the monitoring thread to continue monitoring.
Preferably, the method further comprises step 4, a distributed cluster node data burst mechanism, and the specific process is as follows:
step 4.1, for a monitoring subsystem belonging to any interval monitoring host (k), when encountering a data emergency, and needing to report the data emergency to a dispatching control center, the monitoring subsystem acquires monitoring data and uploads the monitoring data to a corresponding node;
the node packs the monitoring data in the following packing modes: adding a data burst identifier into the monitoring data to obtain a monitoring data burst packet, and then transmitting the monitoring data burst packet to an interval monitoring host (k);
step 4.2, the interval monitoring host (k) pushes the monitoring data burst packet into a downlink message pool and an uplink message pool respectively;
if the interval monitoring host (k) has established a communication channel with the dispatching control center currently, the interval monitoring host (k) reads the monitoring data burst packet from the uplink message pool and then uploads the monitoring data burst packet to the dispatching control center;
if the interval monitoring host (k) does not establish a communication channel with the dispatching control center currently, the interval monitoring host which establishes the communication channel with the dispatching control center currently reads the monitoring data burst packet from the uplink message pool and then uploads the monitoring data burst packet to the dispatching control center.
Preferably, the method also comprises a step 5, wherein the distributed cluster node data all-recall mechanism comprises the following specific processes:
step 5.1, when the dispatching control center needs to obtain the data collected by all the monitoring subsystems, the dispatching control center issues a full call frame to an interval monitoring host (k) connected with the current communication channel;
step 5.2, the interval monitoring host (k) sends the all-call frame to a downlink message pool;
step 5.3, all interval monitoring hosts read the Quan Zhaozhen from the downlink message pool, so that each interval monitoring host is assigned to upload currently acquired monitoring data in real time by each monitoring subsystem connected with the interval monitoring host, a full-call frame identifier is added into the monitoring data to obtain a full-call packet of the monitoring data, and the full-call packet of the monitoring data is pushed into an uplink message pool;
and for an interval monitoring host (k) currently connected with the dispatching control center, reading all monitoring data all-call packets from the uplink message pool and sending the all-call packets to the dispatching control center.
Preferably, the method further comprises a step 6, namely a distributed cluster node data response mechanism, wherein the specific process is as follows:
step 6.1, when the dispatching control center needs to obtain the data collected by the appointed monitoring subsystem, the dispatching control center issues a request frame to an interval monitoring host (k) connected with the current communication channel, wherein the request frame carries the identification of the appointed monitoring subsystem;
step 6.2, the interval monitoring host (k) sends the request frame to a downlink message pool;
step 6.3, after the specified interval monitoring host reads the request frame from the downlink message pool, issuing an acquisition instruction to a specified monitoring subsystem managed by the host, receiving monitoring data acquired by the specified monitoring subsystem, adding a request frame identifier into the monitoring data to obtain a monitoring data request packet, and pushing the monitoring data request packet into an uplink message pool;
and 6.4, for the interval monitoring host (k) currently connected with the dispatching control center, reading the monitoring data request packet from the uplink message pool, and sending the monitoring data request packet to the dispatching control center.
The method for synchronizing signals by adopting the distributed clusters has the following advantages:
the invention is controlled by the dispatching control center, the dispatching control center can designate any railway tunnel section monitoring device in the cluster as the railway tunnel section monitoring device which interacts with the railway tunnel section monitoring device, and the railway tunnel section monitoring device can upload all data of the tunnel to the dispatching control center to execute various instructions of the dispatching control center; therefore, the data synchronization among the railway tunnel section monitoring devices and the data synchronization of the railway tunnel section monitoring devices to the dispatching control center can be realized, and the method has the advantage of high data synchronization efficiency.
Drawings
FIG. 1 is a block diagram of an interval monitoring host and a dispatch control center provided by the invention;
FIG. 2 is a block diagram of an interval monitor host and its respective monitoring subsystems;
FIG. 3 is a schematic diagram of a section monitoring host according to the present invention for publishing a configuration table of a local node through a publishing service module;
FIG. 4 is a schematic diagram of a section monitoring host according to the present invention performing node subscription through a subscription service module;
FIG. 5 is a schematic diagram of a signal synchronization process provided by the present invention;
FIG. 6 is a schematic diagram of a dispatch control center according to the present invention using a dual active/standby mode to communicate with an interval monitor host;
fig. 7 is a schematic diagram of channel monitoring and channel destruction performed by the interval monitoring host provided by the invention.
Detailed Description
In order to make the technical problems, technical schemes and beneficial effects solved by the invention more clear, the invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The invention provides a method for synchronizing signals by adopting a distributed cluster, which is applied to the fields of railway power and work monitoring, and adopts the technologies of communication technology, embedded technology, distributed communication algorithm and the like, and adopts a distributed cluster signal synchronization mechanism, so that the communication efficiency is not affected no matter whether a short tunnel or a long tunnel is adopted, and no matter how many monitoring subsystems are in the tunnel is adopted; the method is characterized in that various data of all monitoring subsystems in a tunnel can be inquired and displayed on any railway tunnel section monitoring device in a cluster, the dispatching control center can designate any railway tunnel section monitoring device in the cluster as a railway tunnel section monitoring device interacting with the railway tunnel section monitoring device through control of the dispatching control center, and the railway tunnel section monitoring device can upload all data of the tunnel to the dispatching control center to execute various instructions of the dispatching control center; therefore, the data synchronization among the railway tunnel section monitoring devices and the data synchronization of the railway tunnel section monitoring devices to the dispatching control center can be realized, and the method has the advantage of high data synchronization efficiency.
The invention provides a method for synchronizing signals by adopting a distributed cluster, which comprises the following steps:
step 1, constructing a system for synchronizing signals by adopting a distributed cluster:
the system for synchronizing signals by adopting the distributed clusters comprises a plurality of interval monitoring hosts, a dispatching control center, a distributed message issuing cluster, an uplink message pool and a downlink message pool;
as shown in fig. 1, a frame diagram of an interval monitoring host and a dispatch control center is shown. As shown in FIG. 2, the interval monitor is a framework diagram of the interval monitor and the monitoring subsystems under its jurisdiction, and thus, each interval monitor is used to manage the monitoring subsystem under its jurisdiction.
For example, the interval monitoring host of the railway tunnel is located in the tunnel refuge tunnel, one monitoring subsystem for managing the square 125 meters (which can be changed according to the field) is distributed every 250 meters (which can be changed according to the field), the communication backbone network of the whole tunnel is constructed through the carrier of the optical fiber self-healing ring network, and the single interval monitoring host realizes the data aggregation of all monitoring subsystems managed.
The interval monitoring host can be composed of an LCD liquid crystal display circuit, a 4-way Ethernet circuit, a 2-way RS232 communication circuit, a 4-way RS485 communication circuit, a power supply conversion conditioning circuit, an indicator light interface circuit and a core CPU circuit.
Step 2, each interval monitoring host obtains a node subscription table, and the method comprises the following steps:
the invention adopts a decentralized data transmission layer synchronization mechanism, and an interval monitoring host acquires a node subscription table through a subscription-release model.
Step 2.1, each interval monitoring host creates a local node configuration table:
each interval monitoring host creates nodes with the same quantity as the monitoring subsystems governed by the interval monitoring host, each node corresponds to a unique monitoring subsystem, and links are created between the node and the corresponding monitoring subsystem; the links comprise two types, namely an uplink link and a downlink link; wherein, uplink refers to: the monitoring subsystem transmits monitoring data to the node and needs to be uploaded to a dispatching control center; downlink refers to: the monitoring subsystem sends monitoring data to the node and needs to be synchronized to other interval monitoring hosts subscribed to the downlink; thus, the node receives monitoring data from the corresponding monitoring subsystem via the link;
the interval monitoring host establishes a local node configuration table, wherein the local node configuration table is used for storing node attributes of each node established by the local monitoring host, and the node attributes comprise: node ID, node-bound monitoring subsystem ID, and link type between node and monitoring subsystem; the node ID may be a node ip address or a node port number. The node attributes may also include node priority, data type of the monitoring subsystem received by the node, and other descriptive information, which is not limited in this application.
Step 2.2, each interval monitoring host is configured with a release service module, and the created local node configuration table is released to the distributed message release cluster through the release service module; as shown in fig. 3, a schematic diagram of the interval monitoring host performing the release of the local node configuration table through the release service module is shown.
The distributed message distribution cluster obtains a local node configuration table distributed by each interval monitoring host, splices the local node configuration tables to form a node configuration summary table, and transmits the node configuration summary table to the distributed message distribution cluster;
step 2.3, each interval monitoring host is configured with a subscription service module, and a node subscription request is sent to the distributed message distribution cluster through the subscription service module; the node subscription request carries a node ID to be subscribed and a link type between the node to be subscribed and the monitoring subsystem, wherein the link type comprises an uplink link type and/or a downlink link type; the node ID to be subscribed is the local node ID and/or the node ID of other interval monitoring hosts;
when the distributed message distribution cluster receives the node subscription request of the interval monitoring host, a node subscription table conforming to the node subscription request is generated and returned to the corresponding interval monitoring host; as shown in fig. 4, a schematic diagram of node subscription by the interval monitoring host through the subscription service module is shown.
Step 3, signal synchronization process:
as shown in fig. 5, a schematic diagram of the signal synchronization process is shown.
Step 3.1, when a certain local node of any interval monitoring host receives monitoring data uploaded by a monitoring subsystem connected with the local node, the local node packages the node attribute and the monitoring data to form a node monitoring data packet, and the node monitoring data packet is sent to the interval monitoring host;
the interval monitoring host identifies the link type in the node monitoring data packet, and if the node monitoring data packet is uplink, the node monitoring data packet is sent to an uplink message pool; if the node monitoring data packet is downlink, the node monitoring data packet is sent to a downlink message pool;
step 3.2, each interval monitoring host is connected with a downlink message pool; for any interval monitoring host, reading the subscribed node monitoring data packet from the downlink message pool according to the node subscription table obtained in the step 2, thereby realizing the synchronization of the node monitoring data packet among the interval monitoring hosts;
in the invention, the up message pool and the down message pool are both in ring queue mode, the storage node monitors the data packet, and the ring queue adopts first-in first-out mechanism. In addition, the distributed message distribution cluster is respectively connected with the uplink message pool and the downlink message pool and is used for uniformly managing node monitoring data packets in the uplink message pool and the downlink message pool. Each node monitors the data packet and pre-configures the priority; and the uplink message pool and the downlink message pool are respectively provided with the upper limit number of the stored node monitoring data packets, and when the upper limit number is exceeded, the node monitoring data packets with the lowest priority are removed according to the priority of each node monitoring data packet. For example, the upper limit of the number of configuration messages of each message pool is 2048, and when the message pool overflows, the message pool is removed according to the message attribute priority.
The dispatching control center establishes a communication channel with any interval monitoring host, and the interval monitoring host establishing the communication channel with the dispatching control center is expressed as: the interval monitoring host (k) reads all the node monitoring data packets from the uplink message pool and sends the node monitoring data packets to the dispatching control center through the communication channel, so that the node monitoring data packets of all the interval monitoring hosts are synchronized to the dispatching control center.
That is, in the present invention, the dispatch control center can control the establishment of a communication channel with any one of the interval monitoring hosts.
In step 3.2, the following manner is adopted for communication between the dispatching control center and any interval monitoring host (k):
as shown in fig. 6, a schematic diagram of a scheduling control center adopting a dual active-standby mode to communicate with an interval monitoring host is provided. As shown in fig. 7, a schematic diagram of channel monitoring and channel destruction performed by the interval monitoring host is shown.
Step 3.2.1, the dispatching control center configures a first main host, a second main host, a first standby host and a second standby host;
each interval monitoring host creates a channel monitoring thread to monitor whether a channel is created between the interval monitoring host and the dispatching control center;
when any interval monitoring host (k) monitors that a 1 st communication channel is successfully established between the interval monitoring host (k) and the dispatching control center through a monitoring thread, the monitoring thread continues monitoring; meanwhile, the interval monitoring host (k) performs data analysis interaction with the dispatching control center through the created 1 st communication channel;
when the monitoring thread monitors that the 1 st communication channel successfully performs data analysis interaction, the monitoring thread continues monitoring, and if the monitoring thread monitors that the 2 nd communication channel is successfully established between the interval monitoring host (k) and the dispatching control center, the monitoring thread continues monitoring; meanwhile, the interval monitoring host (k) performs data analysis interaction with the dispatching control center through the 2 nd communication channel;
when the monitoring thread monitors that the 2 nd communication channel successfully performs data analysis interaction, the monitoring thread continuously monitors the 1 st communication channel and the 2 nd communication channel, and if the 1 st communication channel and the 2 nd communication channel are continuously in a normal state, the interval monitoring host (k) performs data analysis interaction with the dispatching control center through the created 1 st communication channel and 2 nd communication channel;
if the monitoring thread monitors that any one of the 1 st communication channel and the 2 nd communication channel is abnormal, the interval monitoring host (k) destroys the abnormal communication channel, and enables the monitoring thread to continue monitoring.
Therefore, in the present invention, the dispatching control center and a certain inter-station monitoring host adopt a dual-active-standby mode communication, as shown in fig. 6, when the dispatching control center and the inter-station monitoring host are in normal communication, two communication channels are established as active communication channels, when a certain communication channel fails, the communication channel is interrupted and destroyed, and another standby communication channel is started as active communication channel. The communication channel is established and controlled by the dispatching control center, and for each interval monitoring host, the communication channel is only monitored, and when the communication channel fails, the communication channel is destroyed, and the resources of the interval monitoring host are released. Under the stable dual-main-standby mode, after the two main communication channels succeed, data analysis is carried out; the two alternate communication channels perform unbalanced data link state maintenance.
In the invention, when the dispatching control center communicates, the distributed cluster node data burst mechanism, the distributed cluster node data total recall mechanism and the distributed cluster node data response mechanism are also provided.
Step 4, a distributed cluster node data burst mechanism comprises the following specific processes:
and the distributed cluster node data burst mechanism is used for taking a signal in real time as a data burst identifier when the monitoring subsystem collects monitoring data when an emergency occurs and needs to be uploaded to the dispatching control center, and packaging a time stamp of the data burst identifier in a data frame.
Step 4.1, for a monitoring subsystem belonging to any interval monitoring host (k), when encountering a data emergency, and needing to report the data emergency to a dispatching control center, the monitoring subsystem acquires monitoring data and uploads the monitoring data to a corresponding node;
the node packs the monitoring data in the following modes: adding a data burst identifier into the monitoring data to obtain a monitoring data burst packet, and then transmitting the monitoring data burst packet to an interval monitoring host (k);
of course, in practical application, when packaging is performed, the following contents can be added simultaneously: the data types comprise discrete semaphore, analog quantity, pulse switch and card swiping record, and correspond to remote signaling, telemetry, remote control and event record respectively.
Step 4.2, the interval monitoring host (k) pushes the monitoring data burst packet into a downlink message pool and an uplink message pool respectively;
if the interval monitoring host (k) has established a communication channel with the dispatching control center currently, the interval monitoring host (k) reads a monitoring data burst packet from an uplink message pool and then uploads the monitoring data burst packet to the dispatching control center;
if the interval monitoring host (k) does not establish a communication channel with the dispatching control center currently, the interval monitoring host which establishes the communication channel with the dispatching control center currently reads the monitoring data burst packet from the uplink message pool and then uploads the monitoring data burst packet to the dispatching control center.
Step 5, a distributed cluster node data all-recall mechanism comprises the following specific processes:
and the distributed cluster node data total recall mechanism is used for enabling the dispatching control center to recall the data acquired by all the monitoring subsystems and updating all the data.
Step 5.1, when the dispatching control center needs to obtain the data collected by all the monitoring subsystems, the dispatching control center issues a full call frame to an interval monitoring host (k) connected with the current communication channel;
step 5.2, the interval monitoring host (k) sends the full call frame to a downlink message pool;
step 5.3, all interval monitoring hosts read the full call frame from the downlink message pool, so that each interval monitoring host is assigned to upload the currently collected monitoring data in real time by each monitoring subsystem connected with the interval monitoring host, a full call frame identifier is added into the monitoring data to obtain a full call packet of the monitoring data, and then the full call packet of the monitoring data is pushed into the uplink message pool;
and for an interval monitoring host (k) currently connected with the dispatching control center, reading all monitoring data all-call packets from the uplink message pool and sending the all-call packets to the dispatching control center.
Step 6, a distributed cluster node data response mechanism comprises the following specific processes:
the distributed cluster node data response mechanism is used for the dispatching control center to specifically acquire the appointed data, update the appointed data and send the appointed control instruction to the monitoring subsystem.
Step 6.1, when the dispatching control center needs to obtain the data collected by the appointed monitoring subsystem, the dispatching control center issues a request frame to an interval monitoring host (k) connected with the current communication channel, wherein the request frame carries the identification of the appointed monitoring subsystem;
step 6.2, the interval monitoring host (k) sends the request frame to a downlink message pool;
step 6.3, after the specified interval monitoring host reads the request frame from the downlink message pool, issuing an acquisition instruction to the specified monitoring subsystem managed by the host, receiving the monitoring data acquired by the specified monitoring subsystem, adding a request frame identifier into the monitoring data to obtain a monitoring data request packet, and pushing the monitoring data request packet into the uplink message pool;
and 6.4, for the interval monitoring host (k) currently connected with the dispatching control center, reading the monitoring data request packet from the uplink message pool, and sending the monitoring data request packet to the dispatching control center.
The method for synchronizing signals by adopting the distributed clusters has the following advantages:
the invention is controlled by the dispatching control center, the dispatching control center can designate any railway tunnel section monitoring device in the cluster as the railway tunnel section monitoring device which interacts with the railway tunnel section monitoring device, and the railway tunnel section monitoring device can upload all data of the tunnel to the dispatching control center to execute various instructions of the dispatching control center; therefore, the data synchronization among the railway tunnel section monitoring devices and the data synchronization of the railway tunnel section monitoring devices to the dispatching control center can be realized, and the method has the advantage of high data synchronization efficiency.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which is also intended to be covered by the present invention.
Claims (8)
1. A method for signal synchronization using a distributed cluster, comprising the steps of:
step 1, constructing a system for synchronizing signals by adopting a distributed cluster:
the system for synchronizing signals by adopting the distributed clusters comprises a plurality of interval monitoring hosts, a dispatching control center, a distributed message issuing cluster, an uplink message pool and a downlink message pool;
step 2, each interval monitoring host obtains a node subscription table, and the method comprises the following steps:
step 2.1, each interval monitoring host creates a local node configuration table:
each interval monitoring host creates nodes with the same quantity as the monitoring subsystems governed by the interval monitoring host, each node corresponds to a unique monitoring subsystem, and links are created between the node and the corresponding monitoring subsystem; the links comprise two types, namely an uplink link and a downlink link; wherein, the uplink refers to: the monitoring subsystem transmits monitoring data to the node and needs to be uploaded to a dispatching control center; the downlink refers to: the monitoring subsystem sends monitoring data to the node and needs to be synchronized to other interval monitoring hosts subscribed to the downlink; thus, the node receives monitoring data from the corresponding monitoring subsystem via the link;
the interval monitoring host establishes a local node configuration table, wherein the local node configuration table is used for storing node attributes of each node established by the local monitoring host, and the node attributes comprise: node ID, node-bound monitoring subsystem ID, and link type between node and monitoring subsystem;
step 2.2, each interval monitoring host is configured with a release service module, and the created local node configuration table is released to a distributed message release cluster through the release service module;
the distributed message distribution cluster obtains a local node configuration table distributed by each interval monitoring host, splices the local node configuration tables to form a node configuration summary table, and transmits the node configuration summary table to the distributed message distribution cluster;
step 2.3, each interval monitoring host is configured with a subscription service module, and a node subscription request is sent to the distributed message distribution cluster through the subscription service module; the node subscription request carries a node ID to be subscribed and a link type between the node to be subscribed and the monitoring subsystem, wherein the link type comprises an uplink link type and a downlink link type; the node IDs to be subscribed are the local node IDs and the node IDs of other interval monitoring hosts;
when the distributed message distribution cluster receives the node subscription request of the interval monitoring host, a node subscription table conforming to the node subscription request is generated and returned to the corresponding interval monitoring host;
step 3, signal synchronization process:
step 3.1, when a certain local node of any interval monitoring host receives monitoring data uploaded by a monitoring subsystem connected with the local node, the local node packages node attributes and the monitoring data to form a node monitoring data packet, and the node monitoring data packet is sent to the interval monitoring host;
the interval monitoring host identifies the link type in the node monitoring data packet, and if the node monitoring data packet is uplink, the node monitoring data packet is sent to an uplink message pool; if the node monitoring data packet is downlink, the node monitoring data packet is sent to a downlink message pool;
step 3.2, each interval monitoring host is connected with a downlink message pool; for any interval monitoring host, reading the subscribed node monitoring data packet from the downlink message pool according to the node subscription table obtained in the step 2, thereby realizing the synchronization of the node monitoring data packet among the interval monitoring hosts;
the dispatching control center establishes a communication channel with any interval monitoring host, and the interval monitoring host establishing the communication channel with the dispatching control center is expressed as: the interval monitoring host (k) reads all the node monitoring data packets from the uplink message pool and sends the node monitoring data packets to the dispatching control center through the communication channel, so that the node monitoring data packets of all the interval monitoring hosts are synchronized to the dispatching control center.
2. The method for signal synchronization by using a distributed cluster according to claim 1, wherein the distributed message distribution cluster is connected to the uplink message pool and the downlink message pool, respectively, and is configured to uniformly manage node monitoring data packets in the uplink message pool and the downlink message pool.
3. The method for signal synchronization by using distributed clusters according to claim 1, wherein the uplink message pool and the downlink message pool both use a ring queue mode to store node monitoring data packets.
4. A method for signal synchronization using distributed clusters according to claim 3, wherein each node monitors packets pre-configured with priority;
and the uplink message pool and the downlink message pool are respectively configured with the upper limit number of the stored node monitoring data packets, and when the upper limit number is exceeded, the node monitoring data packets with the lowest priority are removed according to the priority of each node monitoring data packet.
5. The method for signal synchronization by using distributed clusters according to claim 1, wherein in step 3.2, the following means are adopted for communication between the scheduling control center and any interval monitoring host (k):
step 3.2.1, the dispatching control center configures a first main host, a second main host, a first standby host and a second standby host;
each interval monitoring host creates a channel monitoring thread to monitor whether a channel is created between the interval monitoring host and the dispatching control center;
when any interval monitoring host (k) monitors that a 1 st communication channel is successfully established between the interval monitoring host (k) and the dispatching control center through a monitoring thread, the monitoring thread continues monitoring; meanwhile, the interval monitoring host (k) performs data analysis interaction with the dispatching control center through the created 1 st communication channel;
when the monitoring thread monitors that the 1 st communication channel successfully performs data analysis interaction, the monitoring thread continues monitoring, and if the monitoring thread monitors that the 2 nd communication channel is successfully established between the interval monitoring host (k) and the dispatching control center, the monitoring thread continues monitoring; meanwhile, the interval monitoring host (k) performs data analysis interaction with the dispatching control center through the 2 nd communication channel;
when the monitoring thread monitors that the 2 nd communication channel successfully performs data analysis interaction, the monitoring thread continuously monitors the 1 st communication channel and the 2 nd communication channel, and if the 1 st communication channel and the 2 nd communication channel are continuously in a normal state, the interval monitoring host (k) performs data analysis interaction with the dispatching control center through the created 1 st communication channel and 2 nd communication channel;
if the monitoring thread monitors that any one of the 1 st communication channel and the 2 nd communication channel is abnormal, the interval monitoring host (k) destroys the abnormal communication channel, and enables the monitoring thread to continue monitoring.
6. The method for signal synchronization by adopting distributed clusters according to claim 1, further comprising step 4, wherein the distributed cluster node data burst mechanism comprises the following specific processes:
step 4.1, for a monitoring subsystem belonging to any interval monitoring host (k), when encountering a data emergency, and needing to report the data emergency to a dispatching control center, the monitoring subsystem acquires monitoring data and uploads the monitoring data to a corresponding node;
the node packs the monitoring data in the following packing modes: adding a data burst identifier into the monitoring data to obtain a monitoring data burst packet, and then transmitting the monitoring data burst packet to an interval monitoring host (k);
step 4.2, the interval monitoring host (k) pushes the monitoring data burst packet into a downlink message pool and an uplink message pool respectively;
if the interval monitoring host (k) has established a communication channel with the dispatching control center currently, the interval monitoring host (k) reads the monitoring data burst packet from the uplink message pool and then uploads the monitoring data burst packet to the dispatching control center;
if the interval monitoring host (k) does not establish a communication channel with the dispatching control center currently, the interval monitoring host which establishes the communication channel with the dispatching control center currently reads the monitoring data burst packet from the uplink message pool and then uploads the monitoring data burst packet to the dispatching control center.
7. The method for signal synchronization by adopting the distributed cluster according to claim 1, further comprising step 5, wherein the distributed cluster node data all-recall mechanism comprises the following specific processes:
step 5.1, when the dispatching control center needs to obtain the data collected by all the monitoring subsystems, the dispatching control center issues a full call frame to an interval monitoring host (k) connected with the current communication channel;
step 5.2, the interval monitoring host (k) sends the all-call frame to a downlink message pool;
step 5.3, all interval monitoring hosts read the Quan Zhaozhen from the downlink message pool, so that each interval monitoring host is assigned to upload currently acquired monitoring data in real time by each monitoring subsystem connected with the interval monitoring host, a full-call frame identifier is added into the monitoring data to obtain a full-call packet of the monitoring data, and the full-call packet of the monitoring data is pushed into an uplink message pool;
and for an interval monitoring host (k) currently connected with the dispatching control center, reading all monitoring data all-call packets from the uplink message pool and sending the all-call packets to the dispatching control center.
8. The method for signal synchronization by adopting the distributed cluster according to claim 1, further comprising step 6, wherein the distributed cluster node data response mechanism comprises the following specific processes:
step 6.1, when the dispatching control center needs to obtain the data collected by the appointed monitoring subsystem, the dispatching control center issues a request frame to an interval monitoring host (k) connected with the current communication channel, wherein the request frame carries the identification of the appointed monitoring subsystem;
step 6.2, the interval monitoring host (k) sends the request frame to a downlink message pool;
step 6.3, after the specified interval monitoring host reads the request frame from the downlink message pool, issuing an acquisition instruction to a specified monitoring subsystem managed by the host, receiving monitoring data acquired by the specified monitoring subsystem, adding a request frame identifier into the monitoring data to obtain a monitoring data request packet, and pushing the monitoring data request packet into an uplink message pool;
and 6.4, for the interval monitoring host (k) currently connected with the dispatching control center, reading the monitoring data request packet from the uplink message pool, and sending the monitoring data request packet to the dispatching control center.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211390058.2A CN115988005B (en) | 2022-11-08 | 2022-11-08 | Method for synchronizing signals by adopting distributed clusters |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211390058.2A CN115988005B (en) | 2022-11-08 | 2022-11-08 | Method for synchronizing signals by adopting distributed clusters |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115988005A CN115988005A (en) | 2023-04-18 |
CN115988005B true CN115988005B (en) | 2023-07-18 |
Family
ID=85961835
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211390058.2A Active CN115988005B (en) | 2022-11-08 | 2022-11-08 | Method for synchronizing signals by adopting distributed clusters |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115988005B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103475566A (en) * | 2013-07-10 | 2013-12-25 | 北京发发时代信息技术有限公司 | Real-time message exchange platform and distributed cluster establishment method |
CN105703940A (en) * | 2015-12-10 | 2016-06-22 | 中国电力科学研究院 | Multistage dispatching distributed parallel computing-oriented monitoring system and monitoring method |
CN109361777A (en) * | 2018-12-18 | 2019-02-19 | 广东浪潮大数据研究有限公司 | Synchronous method, synchronization system and the relevant apparatus of distributed type assemblies node state |
CN110913018A (en) * | 2019-12-19 | 2020-03-24 | 十堰兴企信息科技有限公司 | Distributed regulation and control service system |
CN113055461A (en) * | 2021-03-09 | 2021-06-29 | 中国人民解放军军事科学院国防科技创新研究院 | ZooKeeper-based unmanned cluster distributed cooperative command control method |
CN115550384A (en) * | 2022-11-25 | 2022-12-30 | 苏州浪潮智能科技有限公司 | Cluster data synchronization method, device and equipment and computer readable storage medium |
-
2022
- 2022-11-08 CN CN202211390058.2A patent/CN115988005B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103475566A (en) * | 2013-07-10 | 2013-12-25 | 北京发发时代信息技术有限公司 | Real-time message exchange platform and distributed cluster establishment method |
CN105703940A (en) * | 2015-12-10 | 2016-06-22 | 中国电力科学研究院 | Multistage dispatching distributed parallel computing-oriented monitoring system and monitoring method |
CN109361777A (en) * | 2018-12-18 | 2019-02-19 | 广东浪潮大数据研究有限公司 | Synchronous method, synchronization system and the relevant apparatus of distributed type assemblies node state |
CN110913018A (en) * | 2019-12-19 | 2020-03-24 | 十堰兴企信息科技有限公司 | Distributed regulation and control service system |
CN113055461A (en) * | 2021-03-09 | 2021-06-29 | 中国人民解放军军事科学院国防科技创新研究院 | ZooKeeper-based unmanned cluster distributed cooperative command control method |
CN115550384A (en) * | 2022-11-25 | 2022-12-30 | 苏州浪潮智能科技有限公司 | Cluster data synchronization method, device and equipment and computer readable storage medium |
Non-Patent Citations (2)
Title |
---|
Pengyi Jia ; Xianbin Wang ; Kan Zheng.Distributed Clock Synchronization Based on Intelligent Clustering in Local Area Industrial IoT Systems.《IEEE Transactions on Industrial Informatics》.2019,第3697 - 3707页. * |
面向物联网多维度数据的多级存储系统的设计与实现;刘佩增;《CNKI中国优秀硕士学位论文全文数据库》;第1-90页 * |
Also Published As
Publication number | Publication date |
---|---|
CN115988005A (en) | 2023-04-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102324793B (en) | Method and system for realizing a plurality of virtual power distribution terminals | |
CN103259685B (en) | Detect method and the network equipment of link failure | |
CN104369748A (en) | Remote maintaining and monitoring system for GYK | |
CN102724030A (en) | Stacking system with high reliability | |
CN102170342B (en) | IEC (integrated Ethernet chip) 104 communication host-standby switching method under high redundancy configuration | |
CN102379106A (en) | Communication method, optical communication system, optical line terminal, and optical network unit | |
CN106452854B (en) | A kind of subway comprehensive monitoring system synchronous communication method based on multi-connection master-slave redundancy | |
CN106559254A (en) | SDN multiple-domain networks device and implementation method based on both-end mouth switch | |
CN103281712B (en) | Based on the communication base station and electric power monitoring and controlling system of IPMI | |
CN103683506B (en) | Comprehensively-integrated linkage safety system of power system transformer substations | |
CN112073224A (en) | Intelligent substation interval electrical equipment measurement and control system and method | |
CN202798146U (en) | Six-remote integrated digital terminal system of transformer substation | |
CN115988005B (en) | Method for synchronizing signals by adopting distributed clusters | |
CN108400651A (en) | Distributed energy storage Power Station Monitored Control System and method | |
CN108234623B (en) | Automatic balance management method for data acquisition link of distribution network master station | |
CN110061318A (en) | A kind of accumulator tank and its control method | |
CN101567822A (en) | Networking integrated service equipment of dynamic environment centralized monitoring system and operating method thereof | |
CN103036724A (en) | State information transmission method and network equipment and combination equipment | |
CN103595767A (en) | On-line and off-line supporting comprehensive state monitoring system | |
KR101507209B1 (en) | Transmitting method of AED self-diagnosis | |
CN108639890A (en) | A kind of elevator monitoring system and software architecture | |
CN113985777A (en) | Cloud network management based on narrowband Internet of things | |
CN103683496B (en) | A kind of power equipment protocol variation of plug and play and device | |
CN203181120U (en) | Intelligent skynet monitoring center | |
CN211606559U (en) | Smart campus big data high concurrency and load balancing management system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 100007 Room 202-05, Floor 2, Building 2, No. A and 3, Qinglong Hutong, Dongcheng District, Beijing Applicant after: Beijing Taige Times Electric Co.,Ltd. Applicant after: XI'AN RAILWAY SURVEY AND DESIGN INSTITUTE Co.,Ltd. Address before: 100007 Room 202-05, Floor 2, Building 2, No. A and 3, Qinglong Hutong, Dongcheng District, Beijing Applicant before: BEIJING TOGEST AUTOMATION SYSTEM EQUIPMENT Co.,Ltd. Applicant before: XI'AN RAILWAY SURVEY AND DESIGN INSTITUTE Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |