Main and standby switching method and system for remote sensing satellite ground station
By setting up a master and backup device in the remote sensing satellite ground station monitoring system, and by real-time detection and communication via heartbeat detection frames, the problem of system paralysis caused by single-machine failure was solved, enabling rapid switching and business continuity, and improving system reliability.
Patent Information
- Application Number
- CN202511373877.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-24
- Publication Date
- 2025-11-18
AI Technical Summary
Remote sensing satellite ground station systems are prone to paralysis when there is a single unit failure, software crash, or network attack, which can lead to interruption of satellite data reception, stagnation of processing, inability to monitor and manage in a timely manner, and result in data loss and service interruption.
In the remote sensing satellite ground station monitoring system, a master device and a backup device located at the same multicast address are set up to detect the master device status and switching status in real time. Communication is carried out through heartbeat detection frames to determine whether to perform master-backup switching and ensure that the backup device can quickly take over the system.
It enables rapid and accurate switching in the event of host failure, ensuring the continuity of satellite data reception and ground station equipment management, reducing data loss and service interruption, and improving the system's operational reliability.
Smart Images

Figure HDA0005613826850000011 
Figure HDA0005613826850000012 
Figure HDA0005613826850000021
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of remote sensing satellite data receiving, in particular to a primary-backup switching method and system for a remote sensing satellite ground station. BACKGROUND
[0002] With the rapid development of remote sensing technology, remote sensing satellite data has been increasingly applied in various fields, such as surveying and mapping, transportation, geology and mineral resources, electric power, agriculture, public security, etc. Among them, the remote sensing satellite ground station as the key infrastructure for receiving, processing and storing remote sensing satellite data, the stable operation of its monitoring system is crucial to ensure the real-time reception, accurate processing of satellite data and the safety management of the system. In the actual operation process of remote sensing satellite monitoring, the number of remote sensing satellites is increasing, and the data transmission volume is growing explosively. In order to ensure the effective transmission and reception of satellite measurement and control and satellite data, higher requirements are put forward for the reliability, stability and real-time performance of the ground station monitoring system.
[0003] At present, the remote sensing satellite ground station system in the related technology adopts a single machine operation mode. However, once the single machine has hardware failure, software crash or suffers from network attack, etc., the entire ground station monitoring system will be in a paralyzed state, resulting in interruption of satellite data reception, stagnation of processing, and inability to timely monitor and manage the ground station equipment, thereby causing data loss, business interruption, etc. SUMMARY
[0004] The purpose of the present application is to provide a primary-backup switching method and system for a remote sensing satellite ground station.
[0005] To achieve the above purpose, the present application provides the following solutions:
[0006] In a first aspect, the present application provides a primary-backup switching method for a remote sensing satellite ground station, applied to a remote sensing satellite ground station monitoring system, the remote sensing satellite ground station monitoring system comprising two devices located at the same multicast address. In the working process, one of the two devices is used as a master device, and the other is used as a backup device. The primary-backup switching method for the remote sensing satellite ground station comprises:
[0007] When the master device is running in real time, the state of the master device and the master switching state are detected; the master switching state includes switching mode and switching identifier;
[0008] A first heartbeat detection frame is generated according to the state of the master device and the master switching state, and the first heartbeat detection frame is sent to the backup device according to a preset period;
[0009] The standby machine receives a result of a second heartbeat detection frame, and determines whether to perform a switching operation of the host device and the standby machine according to the result of the second heartbeat detection frame, the state of the host device and the switching state of the host device; the result of the second heartbeat detection frame is used to represent whether the second heartbeat detection frame sent by the standby machine is received, and the second heartbeat detection frame comprises a standby machine identifier, a standby machine state and a standby switching state.
[0010] Optionally, the state of the host device and the switching state of the host device are detected, and the detection comprises:
[0011] The state data of the host device is acquired; the state data comprises a CPU usage rate, a memory usage rate, a disk usage rate, a network communication state, a host-standby communication state and a communication state with other systems; the other systems are connected to the remote sensing satellite ground station monitoring system; the other systems comprise a satellite antenna feeder subsystem, a launch subsystem, a high-frequency receiving subsystem, a baseband subsystem and a data storage interaction subsystem.
[0012] When any one of the following conditions is met, that is, the CPU usage rate exceeds a preset CPU usage rate threshold, the memory usage rate exceeds a memory usage rate threshold, and the disk usage rate exceeds a disk usage rate threshold, it is determined that the state of the host device is abnormal, and the switching state of the host device is switching; and / or,
[0013] When all of the following conditions are met, that is, the network communication state is abnormal, the host-standby communication state is abnormal, and the communication state with other systems is abnormal, it is determined that the state of the host device is abnormal, and the switching state of the host device is switching.
[0014] Optionally, the method further comprises:
[0015] The host device sends a ping command to other devices to determine whether the network communication state is abnormal; the other devices are devices in a local area network in which the remote sensing satellite ground station monitoring system is located, and the other devices are devices other than the host device and the standby machine;
[0016] The host device determines whether the second heartbeat detection frame of the standby machine is received within a preset period to determine whether the host-standby communication is abnormal;
[0017] The host device determines whether the state parameters of the other systems are received to determine whether the communication state with the other systems is abnormal.
[0018] Optionally, the determination of whether to perform the switching operation of the host device and the standby machine according to the result of the second heartbeat detection frame, the state of the host device and the switching state of the host device comprises:
[0019] When the standby machine receives a result indicating that the second heartbeat detection frame sent by the standby machine device is received, the master switching state, the master device state, the standby device state and the standby switching state are analyzed to determine whether to perform the switching operation of the master device and the standby device;
[0020] When the standby machine receives a result indicating that the second heartbeat detection frame sent by the standby machine device is not received, the other receiving results of the other devices are obtained, and whether to perform the switching operation of the master device and the standby device is determined according to the other receiving results, the master device state and the master switching state; the other receiving results are used to indicate whether the state parameters of the other devices are received.
[0021] Optionally, the analysis of the master switching state, the master device state, the standby device state and the standby switching state to determine whether to perform the switching operation of the master device and the standby device comprises:
[0022] When all conditions that the standby device state is normal, the standby switching state is switching, the master device state is abnormal and the master switching state is in switching are met, the switching operation of the master device and the standby device is performed.
[0023] When any condition that the standby device state is normal, the standby switching state is not switching, the master device state is abnormal and the master switching state is in switching is not met, the switching operation of the master device and the standby device is not performed.
[0024] Optionally, the determination of whether to perform the switching operation of the master device and the standby device according to the other receiving results, the master device state and the master switching state comprises:
[0025] When the other receiving results indicate that the state parameters of the other devices are received and the master device state is normal, the switching operation of the master device and the standby device is not performed.
[0026] When the other receiving results indicate that the state parameters of the other devices are not received, the master device state is abnormal and the master switching state is in switching, the switching operation of the master device and the standby device is performed.
[0027] Optionally, the switching operation of the master device and the standby device comprises:
[0028] A switching mode is obtained; the switching mode comprises automatic switching or external device assisted switching.
[0029] The master device is switched to a new standby device and the standby device is switched to a new master device according to the switching mode.
[0030] Optionally, when the host device is running in real time, the method further comprises:
[0031] The host device sends a host device state to a superior system or receives first control information sent by the superior system; the superior system is connected with the remote sensing satellite ground station monitoring system;
[0032] The host device sends second control information to the other system or receives a host device state sent by the other system.
[0033] Optionally, a configuration parameter acquisition request is sent to the backup device.
[0034] Backup device configuration file information sent by the backup device is received to acquire host configuration file information.
[0035] When the version number in the host configuration file information is different from the version number in the backup device configuration file information, a synchronization data source is determined; the synchronization data source includes the host device or the backup device.
[0036] When the synchronization data source is the host device, host configuration file information and data of the host device are sent to the backup device to update data of the backup device.
[0037] When the synchronization data source is the backup device, backup device configuration file information sent by the backup device is received to update data of the host device.
[0038] In a second aspect, the application provides a host-backup switching system for a remote sensing satellite ground station, comprising:
[0039] Two devices located at the same multicast address, in a working process, one of the two devices is used as a host device and the other is used as a backup device.
[0040] The host device is configured to: when running in real time, detect a host device state and a host switching state; generate a first heartbeat detection frame according to the host device state and the host switching state, and send the first heartbeat detection frame to the backup device according to a preset period; acquire a backup receiving result of a second heartbeat detection frame, and determine whether to perform a switching operation of the host device and the backup device according to the backup receiving result, the host device state, and the host switching state; the host switching state includes a switching mode and a switching identifier; the receiving result of the second heartbeat detection frame is used to represent whether the second heartbeat detection frame sent by the backup device is received, and the second heartbeat detection frame includes a backup device identifier, a backup device state, and a backup switching state.
[0041] The backup device is configured to: send a second heartbeat detection frame to the host device.
[0042] According to the specific embodiments provided in the present application, the present application discloses the following technical effects:
[0043] The present application provides a master-slave switching method and system for a remote sensing satellite ground station, which is applied to a remote sensing satellite ground station monitoring system, the remote sensing satellite ground station monitoring system comprising two devices located at the same multicast address, one of the two devices being used as a master device and the other being used as a backup device during operation. The master-slave switching method for the remote sensing satellite ground station comprises: detecting the master device state and the master switching state when the master device is running in real time; the master switching state comprises a switching mode and a switching identifier; generating a first heartbeat detection frame according to the master device state and the master switching state, and sending the first heartbeat detection frame to the backup device according to a preset period; obtaining a backup receiving result of a second heartbeat detection frame, and determining whether to perform a switching operation of the master device and the backup device according to the backup receiving result, the master device state and the master switching state; the receiving result of the second heartbeat detection frame is used to represent whether the second heartbeat detection frame sent by the backup device is received, and the second heartbeat detection frame comprises a backup device identifier, a backup device state and a backup switching state.
[0044] Compared with the prior art, in the present scheme, two devices (a master device and a backup device) located at the same multicast address are arranged in the remote sensing satellite ground station monitoring system, the traditional single-device operation mode is changed, a backup replacement scheme is provided for the case where the master device fails, a redundancy mechanism is constructed, and the entire system is prevented from being paralyzed due to a single device failure; the master device state and the master switching state are detected in real time, abnormal conditions such as hardware failure and software crash of the master device can be detected in time, and a basis is provided for subsequent judgment of the specific operation of master-slave switching; heartbeat detection frames are generated and periodically sent, so that the backup device can obtain the running state information of the master device in real time, the master device can be quickly judged whether to fail, and the master device can obtain the receiving result of the second heartbeat detection frame sent by the backup device, and combine the master device state and the master switching state detected by itself, so as to comprehensively and accurately evaluate the running state of the current master-slave device, thereby scientifically judging whether to perform master-slave switching, ensuring that the backup device can quickly and accurately take over the system when the master device fails, guaranteeing the continuity of satellite data receiving, processing and ground station device monitoring management and other businesses, reducing the loss of data loss and business interruption, and improving the running reliability of the system. BRIEF DESCRIPTION OF DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed in the embodiments. Obviously, the drawings described below only illustrate some of the embodiments of the present application, and all other drawings obtained by those of ordinary skill in the art without creative effort based on these drawings belong to the protection scope of the present application.
[0046] Figure 1 A structural schematic diagram of a remote sensing satellite ground station monitoring system according to an embodiment of the present application;
[0047] Figure 2 A structural schematic diagram of an application environment of a remote sensing satellite ground station monitoring system according to an embodiment of the present application;
[0048] Figure 3 A flowchart of a master-slave switching method for a remote sensing satellite ground station according to an embodiment of the present application;
[0049] Figure 4 A flowchart of a method for detecting a host device state and a host switching state according to an embodiment of the present application;
[0050] Figure 5 A flowchart of a master-slave switching method for a remote sensing satellite ground station according to another embodiment of the present application;
[0051] Figure 6 A functional module schematic diagram of a master-slave switching device for a remote sensing satellite ground station according to an embodiment of the present application;
[0052] Figure 7 A structural schematic diagram of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION
[0053] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments only represent some of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort belong to the protection scope of the present application.
[0054] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the present application will be further described in detail below with reference to the drawings and specific embodiments.
[0055] The remote sensing satellite ground station system in the related art adopts a single machine operation mode. However, once the single machine has a hardware failure, software crash or suffers from a network attack, the entire ground station monitoring system will be in a paralyzed state, resulting in interruption of satellite data reception, stagnation of processing, and inability to timely monitor and manage the ground station equipment, thereby causing data loss, business interruption and the like.
[0056] Based on the above defects, the application provides a master-slave switching method for a remote sensing satellite ground station. Compared with the prior art, in the present application, two devices (a master device and a backup device) at the same multicast address are arranged in the remote sensing satellite ground station monitoring system, the traditional single machine operation mode is changed, a backup replacement scheme is provided for the master device in case of failure, a redundancy mechanism is constructed, and the entire system is prevented from being paralyzed due to a single device failure; the master device state and the master switching state are detected in real time, whether the master device has a hardware failure, software crash or other abnormal conditions can be detected in time, a basis is provided for subsequent judgment of the specific operation of master-slave switching, a heartbeat detection frame is generated and periodically sent, so that the backup device can obtain the running state information of the master device in real time, the master device can be quickly judged whether it has a failure, and the master device can obtain the second heartbeat detection frame reception result sent by the backup device, in combination with the master device state and the master switching state detected by itself, the running condition of the current master-slave device can be comprehensively and accurately evaluated, so that whether the master-slave switching is needed can be scientifically judged, and when the master device fails, the backup device can quickly and accurately take over the system, the continuity of satellite data reception, processing and ground station equipment monitoring and management and other businesses is ensured, the loss of data loss and business interruption is reduced, and the operation reliability of the system is improved.
[0057] The master-slave switching method for a remote sensing satellite ground station provided by the embodiments of the application can be applied to a remote sensing satellite ground station monitoring system as shown in Figure 1 The remote sensing satellite ground station monitoring system includes two devices at the same multicast address. In the working process, one of the two devices is used as a master device 10, and the other is used as a backup device 20. The master device 10 and the backup device 20 can communicate by sending heartbeat detection frames. The master device 10 is configured to detect its running state in real time, generate a corresponding heartbeat detection frame and send it to the backup device 20, and receive the heartbeat detection frame sent by the backup device 20.
[0058] The backup device 20 is configured to detect its running state in real time, generate a corresponding heartbeat detection frame and send it to the master device 10, and receive the heartbeat detection frame sent by the master device 10. As a backup device of the master device, the backup device 20 is configured to take over the control function of the master device when the master device has an abnormality. The backup device 20 can be one or more.
[0059] The host device 10 and the backup device 20 can include, but are not limited to, a control host, an embedded control unit, a server, which can be implemented by an independent server or a server cluster composed of multiple servers, can also be a cloud server, and can also be various desktop computers, notebook computers, smart phones, tablet computers, Internet of Things devices, and portable wearable devices with picture display functions, such as smart speakers, smart televisions, smart air conditioners, smart vehicle devices, and the like. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, and the like.
[0060] Please refer to Figure 2 As shown in the figure, the application embodiment further provides a structural schematic diagram of an application environment of the remote sensing satellite ground station monitoring system, which includes a superior system 30 connected with the remote sensing satellite ground station monitoring system and other systems 40 connected with the remote sensing satellite ground station monitoring system. The other systems 40 can include a sky station feeding sub-system, a transmitting sub-system, a high-frequency receiving sub-system, a baseband sub-system, and a data storage and interaction sub-system. For example, the host device can be A machine, and the backup device can be B machine.
[0061] The superior system is configured to send first control information to the remote sensing satellite ground station monitoring system and receive state information sent by the host device in the remote sensing satellite ground station monitoring system, the state information including operating state parameters, switching state parameters, and the like of the host device. The host device in the remote sensing satellite ground station monitoring system is configured to send second control information to the other systems and receive state information sent by the other systems, the state information including operating state parameters of the other systems. The first control information and the second control information are different, the first control information is configured to instruct the control operation of the superior system to the remote sensing satellite ground station monitoring system, and the second control information is configured to instruct the control operation of the remote sensing satellite ground station monitoring system to the other systems.
[0062] It should be noted that the sky station feeding sub-system is configured to control the antenna to accurately track the satellite, receive the satellite signal and preliminarily amplify the satellite signal, adjust the polarization mode of the satellite signal to match the satellite transmission requirements. The transmitting sub-system is configured to modulate the ground command into a high-frequency signal, amplify and send the high-frequency signal to the satellite, and support power dynamic adjustment to adapt to the distance change of the satellite. The high-frequency receiving sub-system is configured to convert the high-frequency signal received by the antenna into an intermediate frequency signal, amplify and filter the intermediate frequency signal, and ensure that the signal is stably transmitted to the subsequent processing link. The baseband sub-system is configured to demodulate and decode the intermediate frequency signal, recover the data (such as remote sensing images and state information) sent by the satellite, arrange the data in a standard format, and distribute the data. The data storage and interaction sub-system is configured to store the remote sensing data at a high speed, pre-process and product generation, distribute the data to users according to requirements, and complete data management and archiving backup.
[0063] In an exemplary embodiment, asFigure 3 As shown, a primary-backup switching method for a remote sensing satellite ground station is provided, which is executed by a host device, specifically, can be executed by a terminal or a server alone or by a terminal and a server together, and in the embodiment of the present application, includes the following steps S301 to S303. Wherein:
[0064] Step S301, when the host device is running in real time, detecting the host device state and the host switching state; the host switching state includes the switching mode and the switching identifier.
[0065] It should be noted that the host device and the backup device are internally installed with monitoring software, and the host device and the backup device each include corresponding identifier information, and the backup device can be a server or a dedicated device with similar performance and high reliability in hardware configuration, and through the mirror backup and data synchronization mechanism, the consistency of the host device and the backup device is ensured, and even if one of the devices fails, the other device can quickly take over the business with complete data and configuration.
[0066] Wherein, the same multicast address is that two devices are allocated to the same multicast IP address in network communication. The remote sensing satellite ground station needs to transmit a large amount of device state, data frame and other information in real time, and the same multicast address reduces the communication bandwidth pressure between the host and the backup device through the "one-to-many" transmission characteristics, ensures the low-delay transmission of the heartbeat detection frame, and avoids the misjudgment of the primary-backup switching caused by communication delay.
[0067] In the embodiment, the remote sensing satellite ground station monitoring system adopts a two-device architecture located at the same multicast address, which can build an efficient and stable communication bridge for the two devices, and based on the multicast communication technology, the host device and the backup device can realize one-to-many fast transmission of data, greatly reducing the data transmission overhead and delay, and ensuring that the heartbeat detection frame and state information sent by the host device can be accurately received by the backup device in time.
[0068] Specifically, the host device and the backup device can be started and run at the same time, and the host device state and the host switching state can be automatically monitored by the monitoring system installed in the host device, and the backup device state and the backup switching state can be automatically monitored by the monitoring system installed in the backup device. Alternatively, when the host device and the backup device are running in real time, the host device and the backup device can be monitored in real time by an external device to detect the host device state and the host switching state.
[0069] Exemplarily, the remote sensing satellite ground station monitoring system comprises the A machine and the B machine at the same multicast address, when being initialized and started, the A machine can be set as the master device and run, and the B machine can be set as the standby device and run, during real-time running of the A machine and the B machine, the respective running state and switching state can be detected, the master device A machine detects the master device state and the master switching state in real time, and the standby device B machine detects the standby device state and the standby switching state in real time. The remote sensing satellite ground station monitoring system can further comprise a running database, and the identification information of the A machine and the B machine, the master device state, the master switching state, the standby device state and the standby switching state can be recorded in the running database.
[0070] When the master device and the standby device run simultaneously, the master device sends information to other devices in the ground station and the upper system, and the standby device is in standby state and does not send information to the outside. By setting only the master device to interact with other devices and the upper system, the consistency of the data output by the remote sensing satellite ground station monitoring system to the outside can be ensured, and other systems receiving repeated data information and thus causing abnormal operation can be avoided.
[0071] In the embodiment, the master device state is used to represent the current running state of the master device, and can comprise whether to run, whether the running is normal, running parameters and the like; and the master switching state is used to represent the current switching state of the master device, and can comprise whether to switch, switching mode, switching identification and the like.
[0072] Optionally, when the master device runs in real time, the method further comprises: the master device sends the master device state to the upper system or receives first control information sent by the upper system; and the upper system is connected with the remote sensing satellite ground station monitoring system. The master device sends second control information to other systems or receives the master device state sent by other systems.
[0073] In another embodiment of the application, the application further provides a specific implementation mode of detecting the master device state and the master switching state, please refer to Figure 4 The method comprises:
[0074] In step S401, the state data of the master device is acquired; the state data comprises: CPU usage, memory usage, disk usage, network communication state, master-standby communication state, and communication state with other systems; the other systems are connected with the remote sensing satellite ground station monitoring system; and the other systems comprise: a satellite station feeder subsystem, a launch subsystem, a high-frequency receiving subsystem, a baseband subsystem, and a data storage interaction subsystem.
[0075] Step S402, when any of the conditions that the CPU usage rate exceeds the preset CPU usage rate threshold, the memory usage rate exceeds the memory usage rate threshold, and the disk usage rate exceeds the disk usage rate threshold is met, it is determined that the host device state is abnormal, and the host switching state is switched.
[0076] Step S403, when all of the conditions that the network communication state is abnormal, the master-slave machine communication state is abnormal, and the communication state with other systems is abnormal are met, it is determined that the host device state is abnormal, and the host switching state is switched.
[0077] Specifically, in the process of detecting the host state, the host device can acquire the local state data in real time, including the CPU usage rate, the memory usage rate, the disk usage rate, the network communication state, the master-slave machine communication state, and the communication state with other systems. The CPU usage rate, the memory usage rate, and the disk usage rate can be acquired by calling the internal monitoring software of the host device, and the network communication state, the master-slave machine communication state, and the communication state with other systems can be detected in real time by sending a ping command. Then, it is judged whether the CPU usage rate exceeds the preset CPU usage rate threshold, whether the memory usage rate exceeds the memory usage rate threshold, whether the disk usage rate exceeds the disk usage rate threshold, whether the network communication state is abnormal, whether the master-slave machine communication state is abnormal, and whether the communication state with other systems is abnormal.
[0078] The CPU usage rate threshold, the memory usage rate threshold, and the disk usage rate threshold can be set according to actual needs. The network communication state refers to the network connection state between the host device and the devices in the local area network of the remote sensing satellite ground station monitoring system except the host device and the backup device. The master-slave machine communication state refers to the communication network connection state between the host device and the backup device. The communication state with other systems refers to the communication network connection state between the host device and other systems.
[0079] When any of the conditions that the CPU usage rate exceeds the preset CPU usage rate threshold, the memory usage rate exceeds the memory usage rate threshold, or the disk usage rate exceeds the disk usage rate threshold is met, it is determined that the host device state is abnormal, and the host switching state is switched. When all of the conditions that the network communication state is abnormal, the master-slave machine communication state is abnormal, and the communication state with other systems is abnormal are met, it is determined that the host device state is abnormal, and the host switching state is switched. When the host device state is normal, the host switching state is not switched.
[0080] As an implementation manner, when the CPU usage rate exceeds the preset CPU usage rate threshold, it is represented as abnormal, and when the CPU usage rate does not exceed the preset CPU usage rate threshold, it is represented as normal; when the memory usage rate exceeds the memory usage rate threshold, it is represented as abnormal, and when the memory usage rate does not exceed the memory usage rate threshold, it is represented as normal; when the disk usage rate exceeds the disk usage rate threshold, it is represented as abnormal, and when the disk usage rate does not exceed the disk usage rate threshold, it is represented as normal. When at least one of the three meets the condition, it is determined that the host device state is abnormal, which may be a fault.
[0081] As another implementation manner, the host device can send a ping command to other devices to determine whether the network communication state is abnormal; the other devices are devices in the local area network of the remote sensing satellite ground station monitoring system except the host device and the backup device; the host device determines whether the second heartbeat detection frame of the backup device is received within a preset period to determine whether the communication between the host device and the backup device is abnormal; the host device determines whether the state parameters of other systems are received to determine whether the communication state with other systems is abnormal.
[0082] Among them, the host device determines whether the communication with it is normal by whether it can receive the state parameters reported by the satellite station feeder system; the host and backup machines determine whether the communication with them is normal by whether they can receive the state parameters reported by the transmission subsystem through the communication network; the host and backup machines determine whether the communication with them is normal by whether they can receive the state parameters reported by the high-frequency receiving subsystem through the communication network; the host and backup machines determine whether the communication with them is normal by whether they can receive the state parameters reported by the baseband subsystem through the communication network; the host and backup machines determine whether the communication with them is normal by whether they can receive the state parameters reported by the data storage interaction subsystem through the communication network.
[0083] When the state parameters of the other systems (the antenna system, the transmitting subsystem, the high-frequency receiving subsystem, the baseband subsystem, the data storage and interaction subsystem) can be received, the communication state between the host device and the other systems is normal; when the state parameters of the other systems (the antenna system, the transmitting subsystem, the high-frequency receiving subsystem, the baseband subsystem, the data storage and interaction subsystem) cannot be received, the communication state between the host device and the other systems is abnormal. When the host device does not receive the second heartbeat detection frame of the backup device within a single preset period or does not receive the second heartbeat detection frame of the backup device within multiple periods (for example, three periods), the communication between the host device and the backup device is abnormal; when the host device receives the second heartbeat detection frame of the backup device within a preset period, the communication between the host device and the backup device is normal. The host device can send a Ping command to other devices in the local area network by sending an ICMP Echo request data packet to the other devices. If the other devices respond normally and return an Echo reply packet, it indicates that the network communication state is normal; if no reply is received or the packet loss rate is too high, it is determined that there may be link interruption, device failure or congestion, and other abnormal situations.
[0084] In addition, the backup device, due to the similarity of the hardware configuration and software inside the host device, can also obtain the state data such as CPU usage, memory usage, disk usage, network communication state, communication state between the host device and the backup device, and communication state with other systems, so as to generate the corresponding backup device state and backup switching state according to the state data. When the backup device state is normal, the corresponding backup switching state is switching; when the backup device state is abnormal, the corresponding backup switching state is not switching.
[0085] In this embodiment, by detecting the host device state and the host switching state, the hardware running condition and the software performance of the host device can be monitored in real time, potential faults such as overheating and memory abnormality can be found in time and warned, and when the host device fails, seamless switching of the host device and the backup device can be realized through automatic fault transfer, the business continuity and service continuity can be ensured, dynamic resource allocation can be performed based on the device state, the switching strategy can be optimized, unnecessary switching can be reduced, the resource management efficiency can be improved, the manual operation and maintenance cost and the operation risk can be reduced, the change from passive repair to active maintenance can be realized, and the reliability, availability and operation efficiency of the system can be improved comprehensively.
[0086] In this embodiment, by detecting the host device state and the host switching state, the hardware running condition and the software performance of the host device can be monitored in real time, potential faults such as overheating and memory abnormality can be found in time and warned, and when the host device fails, seamless switching of the host device and the backup device can be realized through automatic fault transfer, the business continuity and service continuity can be ensured, dynamic resource allocation can be performed based on the device state, the switching strategy can be optimized, unnecessary switching can be reduced, the resource management efficiency can be improved, the manual operation and maintenance cost and the operation risk can be reduced, the change from passive repair to active maintenance can be realized, and the reliability, availability and operation efficiency of the system can be improved comprehensively.
[0087] Specifically, the preset field of the first heartbeat detection frame can include a frame header identifier, a host identifier, a device state, a switching state, a timestamp, a check field, etc. After obtaining the information of the host device state and the host switching state, the host device state and the host switching state can be filled into the corresponding fields of the first heartbeat detection frame by using a hierarchical field design, for example, the host device state is filled into the device state field, and the host switching state is filled into the switching state field. Then, the fields are serialized into binary or text format by using a lightweight encoding format, and then encapsulated based on a preset standardized protocol to generate the first heartbeat detection frame. Then, the first heartbeat detection frame is sent to the backup device according to a preset period. The host identifier is used to uniquely identify the identity information of the host device.
[0088] The preset standardized protocol can be a UDP protocol or other protocols. The preset period can be set according to actual needs, for example, 1 min, 2 min, etc. The first heartbeat detection frame is used to detect the running state and the switching state, so as to determine whether to perform the host and backup switching. The host device state can include normal or abnormal of the host device; and the host switching state can include whether the host device is switched.
[0089] After receiving the first heartbeat detection frame, the backup device can perform data integrity check and state validity check. After the data integrity check and the state validity check pass, whether the host and backup switching needs to be performed is determined in combination with the backup device state and the backup switching state of the backup device.
[0090] Optionally, the first heartbeat detection frame can further include other fields, for example, the host running time, the switching mode and the switching identifier in the switching state field. The switching mode includes automatic switching and manual switching, and the switching identifier can include whether to switch, for example, the switching identifier can be 1, and the non-switching identifier can be 0.
[0091] In the embodiment, the host device sends the first heartbeat detection frame which can accurately carry the real-time state and the switching intention of the host device to the backup device according to a preset period, so as to provide reliable data support for the fault detection of the backup device and the host and backup switching, and ensure the high availability of the remote sensing satellite ground station monitoring system.
[0092] In step S303, the backup receiving result of the second heartbeat detection frame is obtained, and whether to perform the switching operation of the host device and the backup device is determined according to the backup receiving result, the host device state and the host switching state. The receiving result of the second heartbeat detection frame is used to represent whether the second heartbeat detection frame sent by the backup device is received. The second heartbeat detection frame includes a backup device identifier, a backup device state and a backup switching state.
[0093] Specifically, the backup device can detect the backup device state and the backup switching state in real time, encapsulate the backup device state and the backup switching state, and generate a second heartbeat detection frame. The second heartbeat detection frame can include a frame header identifier, a backup identifier, a device state, a switching state, a timestamp, a check field, and a backup running time. The switching state field can include a switching mode and a switching identifier. The switching mode includes automatic switching, manual switching, or null. The switching identifier can include switching or non-switching. When the backup device detects a fault, the device state in the second heartbeat detection frame is marked as abnormal, the switching mode is marked as null, and the switching identifier is marked as non-switching.
[0094] The primary and backup switching method for the remote sensing ground station monitoring system in the embodiments of the present application can deploy two devices in the remote sensing satellite ground station. Since two devices are deployed in the ground station monitoring system and can work in parallel under the same multicast address, the backup and backup host devices detect their health states in real time and communicate with each other through heartbeat detection frames to determine whether to perform dual-machine primary and backup switching. At the same time, data synchronization is performed on received data, externally transmitted data, and parameter configuration to ensure real-time online seamless switching of the ground station monitoring system and improve the operation reliability of the system, thereby improving the remote sensing satellite measurement and control reception success rate.
[0095] In another exemplary embodiment of the present application, in order to accurately and timely switch the primary and backup devices, it is necessary to determine whether to perform the switching operation of the primary and backup devices in real time according to the backup receiving result, the primary device state, and the primary switching state. Based on the above steps S301-S302, the embodiment of the present application provides a flowchart of a method for determining whether to perform the switching operation of the primary and backup devices, as shown in the figure. Figure 5 The method includes the following steps S501-S503.
[0096] Step S501: Obtain the backup receiving result of the second heartbeat detection frame.
[0097] Step S502: When the backup receiving result represents that the second heartbeat detection frame sent by the backup device is received, analyze the primary switching state, the primary device state, the backup device state, and the backup switching state to determine whether to perform the switching operation of the primary and backup devices.
[0098] Step S503: When the backup receiving result represents that the second heartbeat detection frame sent by the backup device is not received, obtain other receiving results of other devices, and determine whether to perform the switching operation of the primary and backup devices according to the other receiving results, the primary device state, and the primary switching state. The other receiving results represent whether the state parameters of the other devices are received.
[0099] In the embodiment, the standby receiving result of the second heartbeat detection frame is used to represent whether the second heartbeat detection frame sent by the standby device is received, so as to determine whether the switching operation of the host device and the standby device is performed according to the standby receiving result.
[0100] Specifically, when the host device receives the second heartbeat detection frame sent by the standby device, the second heartbeat detection frame can include the standby device state, the standby switching state, the host switching state, the host device state, and the standby device state and the standby switching state are analyzed to determine whether the switching operation of the host device and the standby device is performed.
[0101] As an implementable manner, when all conditions that the standby device state is normal, the standby switching state is switching, the host device state is abnormal, and the host switching state is switching are met, the switching operation of the host device and the standby device is performed; when any condition that the standby device state is normal, the standby switching state is not switching, the host device state is abnormal, and the host switching state is switching is not met, the switching operation of the host device and the standby device is not performed.
[0102] It can be understood that when the host device state is abnormal and the host switching state is switching, it represents that the host device fails at this time and needs to be switched, and the standby device state is normal and the standby switching state is switching, it represents that the standby device meets the switching processing condition and the master-slave switching processing can be performed, and then the master-slave switching processing is performed. When the switching mode in the host switching state or the standby switching state is empty and the switching identifier is marked as not switching, the master-slave switching processing is not performed.
[0103] When the standby receiving result represents that the second heartbeat detection frame sent by the standby device is not received, other receiving results of other devices are obtained, and whether the switching operation of the host device and the standby device is performed is determined according to the other receiving results, the host device state, and the host switching state.
[0104] As another implementable manner, when the other receiving result represents that the state parameter of the other device is received and the host device state is normal, the switching operation of the host device and the standby device is not performed; when the other receiving result represents that the state parameter of the other device is not received, the host device state is abnormal, and the host switching state is switching, the switching operation of the host device and the standby device is performed.
[0105] It can be understood that the host device does not receive the second heartbeat detection frame sent by the backup device, but receives the state parameters of other devices, which indicates that the host device is still working normally, and only the communication between the host and backup devices fails, so the host and backup devices do not switch; when the host device does not receive the second heartbeat detection frame sent by the backup device, and does not receive the state parameters of other devices, which indicates that the host device is abnormal, the switching mode in the switching state can be automatically switched or manually switched, the switching identifier is marked as switching, and the host and backup switching processing needs to be performed.
[0106] In the process of performing the switching operation of the host device and the backup device, the switching mode can be acquired; the switching mode includes automatic switching or external device assisted switching; the host device is switched to a new backup device, and the backup device is switched to a new host device according to the switching mode.
[0107] Specifically, when the switching mode in the heartbeat detection frame is automatic switching, the host device is abnormal, the backup device is normal, and the backup switching state is switching, the address for communication with other devices, the host system, and other systems is changed to the backup device according to the automatic switching mode, so as to realize the host and backup switching. The external device assisted switching can be external device switching or manual switching. When the switching mode in the heartbeat detection frame is marked as manual switching, and the switching identifier is switching, the backup device and the host device perform the host and backup switching through manual operation after receiving the heartbeat detection frame of the other party.
[0108] Optionally, when the host device and the backup device run simultaneously, the state information of other devices of the ground station and the control information sent by the upper system can be received simultaneously under the same multicast address, so as to ensure that the state data and task data received by the host and backup devices of the remote sensing satellite monitoring system are consistent, thereby ensuring that the states of the two devices of the host device and the backup device remain consistent after the host and backup switching.
[0109] In addition, for the satellite measurement and control receiving task execution process, the host device and the backup device in the remote sensing satellite ground station monitoring system can be executed simultaneously, so as to ensure that the task processes of the host and backup devices of the remote sensing satellite ground station monitoring system are consistent, and the continuous execution of the satellite measurement and control receiving task process after the host and backup switching can be further ensured, thereby improving the continuity and reliability of task execution.
[0110] According to the receiving result of the backup machine, the host device state and the host switching state, the backup machine receiving result, the host device state and the host switching state can be comprehensively analyzed in the embodiment, multi-dimensional data fusion and dynamic threshold adaptation can be realized, so that the switching opportunity of the master and backup can be accurately judged, not only the host machine downtime, network interruption and other faults can be quickly identified, but also the false switching caused by instantaneous interference can be avoided; at the same time, the backup machine resource state is checked before switching, the switching execution timing is optimized, the business continuity in the switching process is ensured, the interruption time is reduced, and the high availability and stability of the remote sensing satellite ground station system are comprehensively ensured.
[0111] The application provides a master-slave switching method and system for a remote sensing satellite ground station. Compared with the prior art, in the scheme, two devices (a host device and a backup device) located at the same multicast address are arranged in a remote sensing satellite ground station monitoring system, the traditional single machine operation mode is changed, a backup replacement scheme is provided when the host device fails, a redundancy mechanism is constructed, and the entire system is prevented from being paralyzed due to a single device failure; the host device state and the host switching state are detected in real time, whether the host device has a hardware failure, software crash or other abnormal conditions can be detected in time, a basis is provided for subsequent judgment of the specific operation of master-slave switching, a heartbeat detection frame is generated and periodically sent, so that the backup device can obtain the running state information of the host device in real time, whether the host device has a failure can be quickly judged, and the host device obtains the second heartbeat detection frame receiving result sent by the backup device, combines the host device state and the host switching state detected by itself, and can comprehensively and accurately evaluate the running condition of the current master-slave device, so as to scientifically judge whether master-slave switching is needed, ensure that the backup device can quickly and accurately take over the system when the host device fails, ensure the continuity of satellite data receiving, processing and ground station device monitoring management and other businesses, reduce the loss of data loss and business interruption, and improve the operation reliability of the system.
[0112] In another exemplary embodiment of the application, a specific implementation mode for checking whether the running parameters of the host device and the backup device are consistent in real time is also provided, and the method comprises:
[0113] sending a configuration parameter acquisition request to the backup device; receiving backup device configuration file information sent by the backup device, obtaining host configuration file information; when the version number in the host configuration file information is different from the version number in the backup device configuration file information, determining a synchronization source; the synchronization source comprises the host device or the backup device; when the synchronization source is the host device, sending the host configuration file information and data of the host device to the backup device, and updating the data of the backup device; when the synchronization source is the backup device, receiving backup configuration file information sent by the backup device, and updating the data of the host device.
[0114] Specifically, the host device and the standby device can communicate through a preset standardized communication protocol, which can include HTTP, TCP / IP custom protocol. The host device sends a configuration parameter acquisition request to the standby device using the standardized communication protocol, which can include a request identifier, a device type, and a required configuration file category (system configuration, service parameters, etc.). After receiving the configuration parameter acquisition request, the standby device parses the configuration parameter request content, reads the corresponding configuration file from the local configuration file storage path (such as the / etc / config directory of the Linux system, the Windows registry, or a specific configuration folder), encapsulates it into a configuration file information data packet, and sends it to the host device. The configuration file information data includes key metadata and configuration content, where the metadata includes the file name, file size, creation time, modification time, and version number. The configuration content is stored in JSON, XML, or binary format according to business requirements, such as satellite data reception parameter configuration files that may include reception frequency bands, demodulation methods, data storage paths, and other parameter information.
[0115] After the host device receives the configuration file information from the standby device, it extracts the version number field and compares it with the version number in its own host configuration file information bit by bit. If the version number in the host configuration file is the same as that in the standby configuration file, it is determined that the host and standby device configuration files are synchronized, and no data update operation is needed. If the version number in the host configuration file is different from that in the standby configuration file, it indicates that there is a significant architectural difference in the configuration file, and the synchronization data source can be determined.
[0116] Optionally, during the determination of the synchronization data source, a data source determination rule can be set, for example, when the host configuration file version number is higher than the standby device configuration file version number, the host device is determined as the synchronization data source. Conversely, if the standby device configuration file version number is higher, the standby device is set as the synchronization data source. In addition, the system also supports an emergency mode of manually specifying the synchronization data source. When automatic determination is abnormal or needs to forcibly overwrite the configuration, the operation and maintenance personnel can manually select the synchronization direction through the management interface.
[0117] When the host device is determined as the synchronization data source, the host device compresses and packages the host configuration file information and related data (such as scripts, certificates associated with the configuration file, etc.), adds a transmission sequence number for breakpoint continuation, and sends the data packet to the standby device through a reliable transmission protocol. After receiving the data packet, the standby device first performs integrity verification. If the verification is passed, the original configuration file is backed up to the historical version directory, then the new data packet is decompressed, the configuration file is overwritten to the local corresponding path, and the related services are restarted to make the new configuration effective. At the same time, the standby device updates the version number in the local configuration file information to be consistent with the host device.
[0118] If the backup device is a synchronous data source, the backup device sends the backup device configuration file information and data to the host device after packaging. The host device receives and verifies the data packet, backs up the current host configuration file, and updates the local configuration file and data. To ensure business continuity, for key business configuration updates, the system adopts a gray release strategy: first apply the new configuration in part of the non-core service or test environment, and then gradually promote it to the whole system after observing that the running state is normal, to avoid service interruption due to configuration conflicts.
[0119] In the data transmission process, if network interruption, data packet loss, etc. occurs, the sender device will retransmit according to the transmission sequence number. If the retransmission fails more than a certain threshold, the synchronization operation is suspended, and an exception log (including time, error code, transmission progress, etc.) is recorded, and an alarm is sent to the operation and maintenance personnel through email, SMS, etc. Wait for manual intervention.
[0120] In this embodiment, by accurately comparing the version numbers of the configuration files of the host and backup devices, the configuration differences can be automatically identified and the synchronization data source can be determined, ensuring that the configuration files of the host and backup devices are always consistent, avoiding system running abnormally after host and backup switching due to inconsistent configurations, and ensuring business continuity. And through the automatic configuration synchronization process, the workload of manual inspection and manual synchronization configuration is reduced, avoiding human operation errors, significantly improving operation and maintenance efficiency, and reducing operation and maintenance cost. At the same time, through the realization of bidirectional synchronization and update of configuration data between the host and backup devices, no matter which party updates the configuration, it can be synchronized to the other party in time, and when host and backup switching occurs, the backup device can seamlessly take over the business, ensuring stable system operation and improving system reliability and fault tolerance.
[0121] Based on the same inventive concept, the embodiments of the present application also provide a kind of for realizing the host and backup device switching control device involved in the above method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitation in one or more host and backup device switching control device embodiments provided below can refer to the limitation of the host and backup switching method for remote sensing satellite ground station in the above, which will not be repeated here.
[0122] In one exemplary embodiment, as shown in Figure 6 a host and backup switching device for remote sensing satellite ground station is provided, comprising:
[0123] The detection module 510 is configured to detect the host device state and the host switching state when the host device is running in real time. The host switching state includes the switching mode and the switching identifier.
[0124] The sending module 520 is configured to generate a first heartbeat detection frame according to the host device state and the host switching state, and send the first heartbeat detection frame to the backup device at a preset period.
[0125] The determining module 530 is configured to acquire a backup receiving result of the second heartbeat detection frame, and determine whether to perform a switching operation of the host device and the backup device according to the backup receiving result, the host device state and the host switching state; the backup receiving result is used to represent whether the second heartbeat detection frame sent by the backup device is received, and the second heartbeat detection frame comprises a backup device identifier, a backup device state and a backup switching state.
[0126] As an optional implementation, the detecting module 510 is specifically configured to:
[0127] acquire state data of the host device; the state data comprises a CPU usage rate, a memory usage rate, a disk usage rate, a network communication state, a host-backup communication state and a communication state with other systems; the other systems are connected with the remote sensing satellite ground station monitoring system; the other systems comprise a satellite antenna feeder sub-system, a launch sub-system, a high-frequency receiving sub-system, a baseband sub-system and a data storage interaction sub-system;
[0128] when any one of the following conditions is met: the CPU usage rate exceeds a preset CPU usage rate threshold, the memory usage rate exceeds a memory usage rate threshold, and the disk usage rate exceeds a disk usage rate threshold, it is determined that the host device state is abnormal and the host switching state is switching; and / or,
[0129] when all of the following conditions are met: the network communication state is abnormal, the host-backup communication state is abnormal, and the communication state with the other systems is abnormal, it is determined that the host device state is abnormal and the host switching state is switching.
[0130] As an optional implementation, the detecting module 510 is further configured to:
[0131] the host device sends a ping command to other devices to determine whether the network communication state is abnormal; the other devices are devices in a local area network in which the remote sensing satellite ground station monitoring system is located, except for the host device and the backup device;
[0132] the host device determines whether the second heartbeat detection frame of the backup device is received within a preset period, to determine whether the host-backup communication is abnormal;
[0133] the host device determines whether the state parameters of the other systems are received, to determine whether the communication state with the other systems is abnormal.
[0134] As an optional implementation, the determining module 530 is specifically configured to:
[0135] When the standby machine receives a result indicating that the second heartbeat detection frame sent by the standby machine device is received, the master switching state, the master device state, the standby device state and the standby switching state are analyzed to determine whether to perform the switching operation of the master device and the standby device;
[0136] When the standby machine receives a result indicating that the second heartbeat detection frame sent by the standby machine device is not received, other receiving results of other devices are obtained, and whether to perform the switching operation of the master device and the standby device is determined according to the other receiving results, the master device state and the master switching state; the other receiving results are used to indicate whether the state parameters of the other devices are received.
[0137] As an optional implementation, the determining module 530 is further configured to:
[0138] When all conditions that the standby device state is normal, the standby switching state is switching, the master device state is abnormal and the master switching state is in switching are met, the switching operation of the master device and the standby device is performed.
[0139] When any condition that the standby device state is normal, the standby switching state is not switching, the master device state is abnormal and the master switching state is in switching is not met, the switching operation of the master device and the standby device is not performed.
[0140] As an optional implementation, the determining module 530 is further configured to:
[0141] When the other receiving results indicate that the state parameters of the other devices are received and the master device state is normal, the switching operation of the master device and the standby device is not performed.
[0142] When the other receiving results indicate that the state parameters of the other devices are not received, the master device state is abnormal and the master switching state is in switching, the switching operation of the master device and the standby device is performed.
[0143] As an optional implementation, the determining module 530 is further configured to:
[0144] The switching mode is obtained; the switching mode includes automatic switching or external device assisted switching.
[0145] According to the switching mode, the master device is switched to a new standby device, and the standby device is switched to a new master device.
[0146] As an optional implementation, the apparatus is further configured to:
[0147] The master device sends the master device state to a superior system or receives first control information sent by the superior system; the superior system is connected with a remote sensing satellite ground station monitoring system.
[0148] The host device sends second control information to other systems or receives host device status sent by other systems.
[0149] As an optional implementation, the apparatus is further configured to:
[0150] send a configuration parameter acquisition request to the backup device;
[0151] receive backup device configuration file information sent by the backup device, and acquire host configuration file information;
[0152] when the version number in the host configuration file information is different from the version number in the backup device configuration file information, determine a synchronization source; the synchronization source includes the host device or the backup device;
[0153] when the synchronization source is the host device, send the host configuration file information and data of the host device to the backup device, and update data of the backup device;
[0154] when the synchronization source is the backup device, receive backup configuration file information sent by the backup device, and update data of the host device.
[0155] In the embodiment of the application, the host / backup device switching control apparatus is provided with two devices (a host device and a backup device) located at the same multicast address in the remote sensing satellite ground station monitoring system, which changes the traditional single machine operation mode, provides a backup replacement solution when the host device fails, builds a redundancy mechanism, avoids the entire system from being paralyzed due to a single device failure, and detects the host device status and the host switching status in real time, can detect whether the host device has a hardware failure, software crash or other abnormal conditions in time, provides a basis for subsequent judgment of the specific operation of host / backup switching, generates and periodically sends a heartbeat detection frame, so that the backup device can obtain the running status information of the host device in real time, facilitates quick judgment of whether the host device has a failure, and the host device can obtain the second heartbeat detection frame reception result sent by the backup device, combines the host device status and the host switching status detected by itself, can comprehensively and accurately evaluate the running status of the current host / backup device, and thus scientifically judges whether host / backup switching is needed, ensures that the backup device can quickly and accurately take over the system when the host device fails, guarantees the continuity of satellite data reception, processing and ground station device monitoring management and other businesses, and reduces the loss of data loss and business interruption.
[0156] In an exemplary embodiment, a remote sensing satellite ground station monitoring system is provided, which includes two devices located at the same multicast address, one of the two devices is used as a host device and the other is used as a backup device during operation.
[0157] The host device is configured to: detect a host device state and a host switching state when running in real time; generate a first heartbeat detection frame according to the host device state and the host switching state, and send the first heartbeat detection frame to the backup device according to a preset period; obtain a backup receiving result of a second heartbeat detection frame, and determine whether to perform a switching operation of the host device and the backup device according to the backup receiving result, the host device state and the host switching state; the host switching state comprises a switching mode and a switching identifier; the receiving result of the second heartbeat detection frame is used to represent whether the second heartbeat detection frame sent by the backup device is received, and the second heartbeat detection frame comprises a backup device identifier, a backup device state and a backup switching state; and the backup device is configured to: send the second heartbeat detection frame to the host device.
[0158] Compared with the prior art, the host and backup device switching control system provided by the embodiments of the present application changes the traditional single machine running mode by arranging two devices (a host device and a backup device) at the same multicast address in the remote sensing satellite ground station monitoring system, provides a backup replacement scheme when the host device fails, constructs a redundancy mechanism, avoids the paralysis of the whole system due to the failure of a single device, and detects the host device state and the host switching state in real time, so as to timely detect whether the host device has a hardware failure, software crash or other abnormal conditions, provide a basis for subsequent specific operations of host and backup switching, generate and periodically send heartbeat detection frames, so that the backup device can obtain the running state information of the host device in real time, facilitate the rapid judgment of whether the host device has a failure, and the host device can obtain the receiving result of the second heartbeat detection frame sent by the backup device, combine the host device state and the host switching state detected by itself, comprehensively and accurately evaluate the running state of the current host and backup devices, scientifically judge whether the host and backup switching is needed, ensure that the backup device can quickly and accurately take over the system when the host device fails, guarantee the continuity of satellite data receiving, processing and ground station device monitoring and management, and reduce the loss of data loss and business interruption.
[0159] In an exemplary embodiment, a computer device, which can be a server or a terminal, has an internal structure as shown in FIG. 1. Figure 7As shown in the figure. The computer device includes a processor, a memory, an input / output interface (I / O for short) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through the system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capability. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store video tag processing data. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals through network connection. The computer program is executed by the processor to realize a kind of master-slave switching method for remote sensing satellite ground station.
[0160] Those skilled in the art can understand that, Figure 7 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different component arrangement.
[0161] In one exemplary embodiment, a computer device is also provided, including a memory and a processor, the memory storing a computer program, and the processor executing the computer program to realize the steps in each of the above method embodiments.
[0162] In one exemplary embodiment, a computer readable storage medium is provided, storing a computer program, which is executed by a processor to realize the steps in each of the above method embodiments.
[0163] In one exemplary embodiment, a computer program product is provided, including a computer program, which is executed by a processor to realize the steps in each of the above method embodiments.
[0164] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of related data need to comply with relevant regulations.
[0165] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when the computer program is executed, the processes of the above-mentioned embodiments of the methods can be included. Any reference to memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0166] The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a blockchain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., without being limited thereto.
[0167] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the technical features in the above embodiments are not described, however, as long as the combinations of the technical features do not exist contradictory, they should be considered as the scope of the present application.
[0168] The principles and implementation modes of the present application are described by applying specific examples in the present application. The above-mentioned embodiments are only used to help understand the method and its core idea of the present application; at the same time, for those skilled in the art, according to the idea of the present application, the specific implementation mode and application range will be changed. In conclusion, the content of the present application should not be understood as a limitation.
Claims
1. A method for primary / backup switching of remote sensing satellite ground stations, characterized in that, An application is made to a remote sensing satellite ground station monitoring system, which includes two devices located at the same multicast address. During operation, one of the two devices is used as the primary device and the other as the backup device. The primary / backup switching method for the remote sensing satellite ground station includes: When the host device is running in real time, the host device status and host switching status are detected; the host switching status includes the switching method and switching identifier. A first heartbeat detection frame is generated based on the host device status and host switching status, and the first heartbeat detection frame is sent to the standby device according to a preset period. Obtain the standby device reception result of the second heartbeat detection frame, and determine whether to perform a switchover operation between the master device and the standby device based on the standby device reception result, the master device status, and the master device switching status; the reception result of the second heartbeat detection frame is used to characterize whether the second heartbeat detection frame sent by the standby device has been received, and the second heartbeat detection frame includes: standby device identifier, standby device status, and standby device switching status.
2. The method for primary / backup switching of remote sensing satellite ground stations according to claim 1, characterized in that, Detect host device status and host switchover status, including: The status data of the host device is acquired; the status data includes: CPU utilization, memory utilization, disk utilization, network communication status, primary / backup communication status, and communication status with other systems; the other systems are connected to the remote sensing satellite ground station monitoring system; the other systems include: satellite feeder subsystem, transmission subsystem, high-frequency receiving subsystem, baseband subsystem, and data storage and interaction subsystem; When any one of the following conditions is met: CPU utilization exceeds a preset CPU utilization threshold, memory utilization exceeds a preset memory utilization threshold, or disk utilization exceeds a preset disk utilization threshold, the host device status is determined to be abnormal, and the host switching status is determined to be switching; and / or, When all the conditions of abnormal network communication status, abnormal primary / backup communication status, and abnormal communication status with other systems are met, the host device status is determined to be abnormal, and the host switching status is switching.
3. The method for primary / backup switching of remote sensing satellite ground stations according to claim 2, characterized in that, The method further includes: The host device sends ping commands to other devices to determine whether the network communication status is abnormal; the other devices are devices other than the host device and the backup device in the local area network where the remote sensing satellite ground station monitoring system is located. The host device determines whether it receives the second heartbeat detection frame from the standby device within a preset period to determine whether the communication between the host and standby devices is abnormal. The host device determines whether it receives status parameters from the other system in order to determine whether the communication status with the other system is abnormal.
4. The method for primary / backup switching of remote sensing satellite ground stations according to claim 3, characterized in that, Based on the standby device reception result, the master device status, and the master device handover status, determine whether to perform a handover operation between the master device and the standby device, including: When the standby receiver reception result indicates that a second heartbeat detection frame sent by the standby device has been received, the host switching status, the host device status, the standby device status and the standby receiver switching status are analyzed to determine whether to perform a switching operation between the host device and the standby device. When the standby device reception result indicates that the second heartbeat detection frame sent by the standby device has not been received, other reception results of the other devices are obtained. Based on the other reception results, the status of the host device, and the host switching status, it is determined whether to perform a switching operation between the host device and the standby device. The other reception results are used to indicate whether the status parameters of the other devices have been received.
5. The method for primary / backup switching of remote sensing satellite ground stations according to claim 4, characterized in that, Analyzing the host switchover status, the host device status, the standby device status, and the standby switchover status to determine whether to perform a host device and standby device switchover operation includes: When all the conditions are met—the standby device status is normal, the standby switching status is switching, the master device status is abnormal, and the master switching status is switching—the switching operation between the master device and the standby device is executed. If any of the following conditions are not met: the standby device is in normal status, the standby switching status is not switching, the master device is in abnormal status, and the master switching status is switching, then the switching operation between the master device and the standby device will not be performed.
6. The method for primary / backup switching of remote sensing satellite ground stations according to claim 4, characterized in that, Based on the other received results, the host device status, and the host switching status, determine whether to perform a switchover operation between the host device and the standby device, including: When the other received results indicate that the status parameters of the other devices have been received and the status of the host device is normal, the switching operation between the host device and the standby device is not performed. When the other received results indicate that the status parameters of the other device have not been received, the status of the host device is abnormal, or the host switching status is switching, the switching operation between the host device and the standby device is performed.
7. The method for primary / backup switching of remote sensing satellite ground stations according to claim 5, characterized in that, Perform the switchover operation between the primary and backup equipment, including: The switching method is determined; the switching method includes automatic switching or external device-assisted switching. According to the switching method, the host device is switched to a new standby device, and the standby device is switched to a new host device.
8. The method for primary / backup switching of remote sensing satellite ground stations according to claim 1, characterized in that, When the host device is running in real time, the method further includes: The host device sends its status to the superior system or receives first control information from the superior system; the superior system is connected to the remote sensing satellite ground station monitoring system. The host device sends second control information to other systems or receives host device status information from other systems.
9. The method for primary / backup switching of remote sensing satellite ground stations according to claim 1, characterized in that, Send a configuration parameter retrieval request to the standby device; Receive the standby device configuration file information sent by the standby device, and obtain the host configuration file information; When the version number in the host configuration file information is different from the version number in the standby device configuration file information, a synchronization data source is determined; the synchronization data source includes the host device or the standby device. When the synchronization data source is the host device, the host configuration file information and data of the host device are sent to the standby device to update the data of the standby device; When the synchronization data source is a standby device, the standby configuration file information sent by the standby device is received, and the data of the master device is updated.
10. A remote sensing satellite ground station monitoring system, characterized in that, The remote sensing satellite ground station monitoring system includes two devices located at the same multicast address, with one device serving as the host device and the other as the backup device during operation. The host device is used to: detect the host device status and host switching status when running in real time; generate a first heartbeat detection frame based on the host device status and host switching status, and send the first heartbeat detection frame to the standby device according to a preset period; obtain the standby device reception result of the second heartbeat detection frame, and determine whether to perform a switchover operation between the host device and the standby device based on the standby device reception result, the host device status, and the host switching status; the host switching status includes a switchover method and a switchover identifier; the reception result of the second heartbeat detection frame is used to characterize whether the second heartbeat detection frame sent by the standby device has been received, and the second heartbeat detection frame includes: standby device identifier, standby device status, and standby switching status; The standby device is used to send a second heartbeat detection frame to the host device.