CN115941451A - Method, apparatus and storage medium for redundant switching in an industrial control network - Google Patents

Method, apparatus and storage medium for redundant switching in an industrial control network Download PDF

Info

Publication number
CN115941451A
CN115941451A CN202310160460.XA CN202310160460A CN115941451A CN 115941451 A CN115941451 A CN 115941451A CN 202310160460 A CN202310160460 A CN 202310160460A CN 115941451 A CN115941451 A CN 115941451A
Authority
CN
China
Prior art keywords
backup
working
data
time slice
period
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310160460.XA
Other languages
Chinese (zh)
Other versions
CN115941451B (en
Inventor
陈建飞
王海帆
顾昊
解群眺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Guoli Xin'an Technology Co ltd
Original Assignee
Zhejiang Guoli Xin'an Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Guoli Xin'an Technology Co ltd filed Critical Zhejiang Guoli Xin'an Technology Co ltd
Priority to CN202310160460.XA priority Critical patent/CN115941451B/en
Publication of CN115941451A publication Critical patent/CN115941451A/en
Application granted granted Critical
Publication of CN115941451B publication Critical patent/CN115941451B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present disclosure relates to a method, apparatus, and storage medium for redundant switching in an industrial control network. The method comprises the following steps: in a first time slice of a cycle time period of a current cycle, the working equipment sends working data to the target equipment, wherein the cycle time period of the current cycle at least comprises the first time slice and a second time slice; in a second time slice, the first backup device sends first backup data corresponding to the working data to the target device, and the first backup device corresponds to the working device in the current period; and if the target equipment receives the working data and the first backup data, the working data is used as target receiving data of the current period, and if the target equipment does not receive the working data but receives the first backup data, the first backup data is used as the target receiving data of the current period. Thus, the present disclosure can control at least the switching time to be short and avoid packet loss due to switching of the communication link.

Description

Method, apparatus and storage medium for redundant switching in an industrial control network
Technical Field
The present disclosure relates generally to the field of communications technologies, and in particular, to a method, apparatus, and storage medium for redundancy switching in an industrial control network.
Background
In an industrial control network, the working state of a working device and a corresponding backup device is monitored through a dedicated communication cable so as to facilitate redundancy switching. In the industrial control network, when the working equipment works normally, the backup equipment does not participate in the communication of the industrial control network; when the working device fails (such as being broken or damaged), the backup device is switched to the working state to participate in the communication of the industrial control network instead of the working device. In the traditional technical scheme of the industrial control network redundancy switching, the switching time is related to the time required by the backup equipment to be switched to the working state, and the switching time is long; the communication link switching process of switching the backup device to the working state to participate in the communication of the industrial control network instead of the working device is characterized by packet loss.
In summary, the conventional technical solutions for controlling network redundancy switching in the industry have the following disadvantages: the switching time is long, and the packet loss rate is high.
Disclosure of Invention
In view of the above problems, the present disclosure provides a method, an apparatus, and a storage medium for redundant handover in an industrial control network, which can at least control a handover time to be short and avoid packet loss due to handover of a communication link.
According to a first aspect of the present disclosure, there is provided a method of redundancy handover in an industrial control network, the method comprising: in a first time slice of a cycle time period of a current cycle, the working equipment sends working data to the target equipment, wherein the cycle time period of the current cycle at least comprises the first time slice and a second time slice; in a second time slice, the first backup device sends first backup data corresponding to the working data to the target device, and the first backup device corresponds to the working device in the current period; and if the target equipment receives the working data and the first backup data, the working data is used as target receiving data of the current period, and if the target equipment does not receive the working data but receives the first backup data, the first backup data is used as the target receiving data of the current period.
In some embodiments, the interval between the first time slice and the second time slice is determined based on a switching time requirement of the industrial control network.
In some embodiments, the first time slice and the second time slice are adjacent time slices.
In some embodiments, the method further comprises: in response to the working data including the working data identification and the first backup data including the backup data identification, the target device identifies the working data and the first backup data based on the working data identification and the backup data identification.
In some embodiments, the method further comprises: the cycle time period of the current cycle at least comprises a third time slice, and in the third time slice, the working equipment sends working equipment state data to the first backup equipment; and if the first backup device does not receive the working device state data from the working device in the periodic time period of the current period, switching to the working device of the next period in the non-periodic time period of the current period.
In some embodiments, the third time slice is the shortest time slice allowed by the industrial control network.
In some embodiments, the method further comprises: in a fourth time slice of the period of the current period, the first backup device sends backup device state data to the working device; and if the working device does not receive the backup device state data from the first backup device in the periodic period of the current cycle, re-determining the backup device corresponding to the working device in the next cycle in the non-periodic period of the current cycle.
In some embodiments, the fourth time slice is the same time slice as the third time slice.
In some embodiments, re-determining the backup device corresponding to the working device on the next cycle comprises: directly designating one candidate backup device from the plurality of candidate backup devices as a backup device corresponding to the working device in the next cycle; or determining a backup device corresponding to the working device at the next cycle based on the IP addresses of the plurality of candidate backup devices.
In some embodiments, the method further comprises: in a fifth time slice of the period of the current period, the working equipment sends working equipment state data to the second backup equipment; and in a sixth time slice of the cycle time period of the current cycle, the second backup device sends second backup data corresponding to the working data to the target device.
According to a second aspect of the present disclosure, there is also provided a computing device comprising: at least one processor; and at least one memory coupled to the at least one processor and storing instructions for execution by the at least one processor, the instructions when executed by the at least one processor causing the computing device to perform the method according to the first aspect of the present disclosure.
According to a third aspect of the present disclosure, there is also provided a computer readable storage medium having stored thereon computer program code which, when executed, performs the method according to the first aspect of the present disclosure.
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the disclosure, nor is it intended to be used to limit the scope of the disclosure.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present disclosure, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 illustrates a schematic diagram of an industrial control network for a method of performing a redundancy switchover in accordance with an embodiment of the present disclosure.
FIG. 2 illustrates a schematic diagram of a communication cycle of the industrial control network shown in FIG. 1.
FIG. 3 illustrates a flow chart of a method of redundancy switching in an industrial control network in accordance with an embodiment of the disclosure.
FIG. 4 illustrates a flow chart of an example method of redundancy switchover in an industrial control network in accordance with an embodiment of the present disclosure.
FIG. 5 illustrates a block diagram of an exemplary electronic device for implementing embodiments of the present disclosure.
Detailed Description
Preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the preferred embodiments of the present disclosure are illustrated in the accompanying drawings, it is to be understood that the disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The term "include" and variations thereof as used herein is meant to be inclusive in an open-ended manner, i.e., "including but not limited to". Unless specifically stated otherwise, the term "or" means "and/or". The term "based on" means "based at least in part on". The terms "one example embodiment" and "one embodiment" mean "at least one example embodiment". The term "another embodiment" means "at least one additional embodiment". The terms "first," "second," and the like may refer to different or the same objects.
As described above, the conventional technical solution for the redundancy handover of the industrial control network has a long handover time and a high packet loss rate.
To address at least in part one or more of the above issues and other potential issues, the present disclosure proposes a solution for redundant handover in an industrial control network. In the technical scheme of the disclosure, a working device sends working data to a target device in a first time slice of a cycle period of a current cycle, a first backup device sends first backup data to the target device in a second time slice of the cycle period of the current cycle, if the target device receives the working data and the first backup data, the working data is used as target receiving data of the current cycle, if the target device does not receive the working data but receives the first backup data, the first backup data is used as the target receiving data of the current cycle, in the technical scheme of the disclosure, switching time is time delay between the first time slice and the second time slice, so that the switching time can be controlled by controlling the time delay between the first time slice and the second time slice, and further, the disclosure can control the switching time to be at least short; in addition, in the technical solution of the present disclosure, the target device maintains both the communication link with the working device and the communication link with the first backup device, and the handover process is a handover of the target device to the received data instead of the communication link, thereby at least avoiding packet loss due to the handover of the communication link.
Further, in the embodiment of the present disclosure, the working device sends the working device status data to the first backup device at the third time slice to indicate the working state of the working device itself, and the first backup device can monitor the working state of the working device through the time slice without a dedicated communication cable, so that the usage of the communication cable in the industrial control network can be at least reduced, and thus the cost and the weight can be reduced; the first backup device is switched to the working device of the next period and occurs in the non-periodic period of the current period, so that even if the working device fails in the current period, the working device is still regarded as the working device in the periodic period of the current period, and the first backup device is still regarded as the backup device in the periodic period of the current period, thereby at least avoiding influencing the determination of the target receiving data of the target device in the periodic period of the current period.
Further, in the embodiment of the present disclosure, the first backup device sends the backup device status data to the working device at the fourth time slice to indicate the working status of the first backup device itself, if the working device does not receive the backup device status data from the first backup device at the periodic time of the current cycle, the backup device corresponding to the working device at the next cycle is re-determined at the non-periodic time of the current cycle, and the working device can monitor the working status of the first backup device 160 through the time slice without a dedicated communication cable, so that at least the usage of the communication cable in the industrial control network can be further reduced, and further the cost and the weight can be further reduced.
Still further, in the embodiments of the present disclosure, the working device sends the working device status data to the second backup device at the fifth time slice, and the second backup device sends the second backup data corresponding to the working data to the target device at the sixth time slice of the cycle period of the current cycle, at least in a case where there are a plurality of backup devices corresponding to the working device, it is possible to make the switching time control shorter and avoid packet loss due to switching of the communication link.
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure, and it is to be understood that the described embodiments are only some embodiments of the present disclosure, not all embodiments, and they should not be construed as limiting the scope of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
Fig. 1 illustrates a schematic diagram of an industrial control network 100 for a method of performing a redundancy switchover in accordance with an embodiment of the present disclosure. Fig. 2 illustrates a schematic diagram of a communication cycle of the industrial control network 100 shown in fig. 1. An industrial control network 100 for a method of performing redundancy switchover according to an embodiment of the present disclosure is described below in conjunction with fig. 1 and 2.
As shown in fig. 1, the industrial control network 100 includes a working device 120, a target device 140, and a first backup device 160 corresponding to the working device 120. In the industrial control network 100 shown in fig. 1, the working device 120, the target device 140, and the first backup device 160 may communicate with each other via a network. It should be noted that other backup devices (not shown in fig. 1) corresponding to the working device 120 may also be included in the industrial control network, and the embodiment of the present disclosure is not limited to this. It should be further noted that a candidate backup device (not shown in fig. 1) may also be included in the industrial control network 100, and the candidate backup device may replace the first backup device 160 as a backup device corresponding to the working device 120 when the first backup device 160 fails.
As for the industrial control network 100, it is, for example, a factory Automation Ethernet (EPA). EPA is an open network communication platform which directly applies mainstream technologies in the field of commercial computer communication such as Ethernet and TCP/IP to industrial field equipment. It should be noted that the industrial control network 100 may also be another industrial control network that includes the working device 120, the target device 140, and the first backup device 160 and performs redundancy switching.
With respect to the working device 120, the target device 140, and the first backup device 160, they maintain a synchronous state and communicate with each other with a communication cycle (e.g., macrocycle) as a basic scheduling unit. As shown in fig. 2, the communication cycle may be divided into a periodic period and an aperiodic period, wherein the periodic period refers to a time period in which each device in the industrial control network 100 periodically transmits data, and the aperiodic period refers to a time period common to each device in the industrial control network 100. The time taken for each device in the industrial control network 100 to transmit data during a periodic time period is a time slice, for example, fig. 2 illustrates time slice 202, time slice 204, time slice 206, and so on. It should be noted that the lengths of the time slices in the communication cycle shown in fig. 2 may be the same or different, and the embodiment of the disclosure is not limited to this, for example, the length of one time slice may be determined based on the amount of data communicated in the time slice.
The working device 120, the target device 140, and the first backup device 160 may perform at least some of the steps of the method 300 described below in connection with fig. 3 for redundancy switchover.
FIG. 3 illustrates a flow chart of a method 300 of redundancy switching in an industrial control network in accordance with an embodiment of the disclosure. The method 300 can be performed by a device in the industrial control network 100 shown in FIG. 1, and can also be performed by the electronic device 500 shown in FIG. 5. It should be understood that method 300 may also include additional blocks not shown and/or may omit blocks shown, as the scope of the disclosure is not limited in this respect.
In step 302, the working device 120 sends working data to the target device 140 at a first time slice of a cycle period of a current cycle, where the cycle period of the current cycle includes at least the first time slice and a second time slice.
As for the current period, it is the current communication period in the industrial control network 100. For example, the current period may be the communication period shown in fig. 2, and is not described in detail herein.
Regarding the working data, it is the data that the working device 120 is to send to the target device 140. For example, the working data may be pre-stored in the working device 120 or communicated to the working device 120 via another device (e.g., a server), which is not limited by the embodiments of the present disclosure.
With respect to the first time slice and the second time slice, they are two different time slices in the cycle period of the current cycle. For example, the first time slice may be time slice 202 shown in FIG. 2 and the second time slice may be time slice 204 shown in FIG. 2. It should be noted that, the length of the first time slice, the length of the second time slice, the time delay of the first time slice relative to the second time slice, and the sequence between the first time slice and the second time slice may all be determined depending on actual situations, and the embodiment of the present disclosure is not limited thereto. It should also be noted that the first time slice and the second time slice may be adjacent time slices, or may not be adjacent time slices, and the embodiment of the present disclosure is not limited thereto.
At step 304, during a second time slice, the first backup device 160 sends first backup data corresponding to the working data to the target device 140, and the first backup device 160 corresponds to the working device 120 at the current cycle.
As for the first backup data, it corresponds to the working data and is used as backup data for the working data. For example, the portion of the first backup data may be the same as the portion of the working data. For another example, the first backup data may be different from the working data, but the first backup data includes the same portion of information as the working data. For example, the first backup data may be stored in the first backup device 160 in advance or communicated to the first backup device 120 via another device (e.g., a server), which is not limited by the embodiments of the present disclosure.
In step 306, if the target device 140 receives the working data and the first backup data, the working data is used as the target receiving data of the current period, and if the target device 140 does not receive the working data but receives the first backup data, the first backup data is used as the target receiving data of the current period.
For example, the working data may include a working data identification, which may be used to indicate that the working data is from the working device 120; the first backup data may include a backup data identification that may be used to indicate that the first backup data is from the first backup device 160. The target device 140 may identify the working data and the first backup data based on the working data identification and the backup data identification to determine the source of the working data and the first backup data. It should be noted that the target device 140 may also identify the working data and the first backup data based on other manners, which is not limited in this embodiment of the disclosure, for example, in a case that the working data and the first backup data use different data formats (e.g., message formats) or different encoding manners, the target device 140 may identify the working data and the first backup data based on the data formats or encoding manners of the received data.
For example, the target device 140 may receive the working data and the first backup data when both the working device 120 and the first backup device 160 are working normally, in which case the target device 140 preferentially selects the working data from the working device 120 as the target reception data to process.
For another example, when the working device 120 fails but the first backup device 160 works normally, the target device 140 cannot receive the working data but can receive the first backup data, in which case the target device 140 enables the first backup data from the first backup device 160 as target receiving data to process.
In the embodiment of the present disclosure including steps 302 to 306, the working device 120 sends working data to the target device 140 at a first time slice of a cycle period of a current cycle, the first backup device 160 sends first backup data to the target device 140 at a second time slice of the cycle period of the current cycle, if the target device 140 receives the working data and the first backup data, the working data is used as target receiving data of the current cycle, and if the target device 140 does not receive the working data but receives the first backup data, the first backup data is used as target receiving data of the current cycle, in this case, the switching time is a time delay between the first time slice and the second time slice, so that the switching time can be controlled by controlling the time delay between the first time slice and the second time slice, and thus at least the switching time can be controlled to be shorter; in addition, the target apparatus 140 maintains both the communication link with the working apparatus 120 and the communication link with the first backup apparatus 160, and the handover procedure is a handover of the target apparatus 140 to the received data instead of the communication link, thereby at least avoiding a packet loss due to the handover of the communication link.
For example, in one example, where the industrial control network 100 has a predetermined switch time requirement, the interval between the first time slice and the second time slice can be determined based on the switch time requirement of the industrial control network 100.
For another example, in another example, where the switching time requirement of the industrial control network is minimal, the first time slice and the second time slice may be adjacent time slices.
In an embodiment of the present disclosure, the method 300 for redundancy switching in an industrial control network may further include step 308 and step 310 in addition to the above-mentioned steps 302 to 306.
At step 308, the cycle period of the current cycle further includes at least a third time slice, and at the third time slice, the working device 120 sends the working device status data to the first backup device 160.
Regarding the work equipment status data, it is used to indicate the work status of the work equipment 120. For example, the work device status data may be used to indicate whether the work device 120 is operating properly or is malfunctioning. For example, the working device status data may be 1 bit or 1 byte, etc. It should be noted that the length of the working device status data may depend on actual situations, and the embodiment of the disclosure is not limited to this.
With respect to the third time slice, it is used to send the working device status data by the working device 120 to the first backup device 160. For example, the third time slice may be time slice 206 shown in FIG. 2. It should be noted that, the length of the third time slice, the time delay of the third time slice with respect to the first time slice and the second time slice, and the sequence of the third time slice with respect to the first time slice and the second time slice may all be determined depending on the actual situation, and the embodiment of the disclosure is not limited thereto. In addition, since the working device status data is generally short (e.g., the working device status data is 1 bit or 1 byte, etc.), the third time slice may be the shortest time slice allowed by the industrial control network 100 (e.g., the time slice corresponding to 64 bytes of data).
At step 310, if the first backup device 160 does not receive the working device status data from the working device 120 during the periodic time of the current cycle, it switches to the working device of the next cycle during the non-periodic time of the current cycle.
For example, when the working device 120 fails, the first backup device 160 cannot receive the working device status data from the working device 120 during the period of the cycle of the current cycle, and in this case, the first backup device 160 switches to the working device of the next cycle during the non-periodic period of the current cycle and transmits data to the target device as the working device (instead of the backup device) during the next cycle.
In the embodiment of the present disclosure further including steps 308 and 310, the working device 120 indicates the working device's own working status by sending the working device status data to the first backup device 160 at the third time slice, and the first backup device 160 can monitor the working device's 120 working status through the time slice without a dedicated communication cable, so that the use of communication cables in the industrial control network 100 can be at least reduced, and thus the cost and weight can be reduced; the first backup device 160 switches to the working device of the next cycle to occur in the non-periodic period of the current cycle, so that even if the working device 120 fails in the current cycle, the working device 120 is still regarded as the working device in the periodic period of the current cycle, and the first backup device 160 is still regarded as the backup device in the periodic period of the current cycle, thereby at least avoiding affecting the determination of the target receiving data of the target device 140 in the periodic period of the current cycle.
FIG. 4 illustrates a flow diagram of an example method 400 of redundancy switching in an industrial control network in accordance with an embodiment of the disclosure. The method 400 can be performed by a device in the industrial control network 100 shown in FIG. 1, and can also be performed by the electronic device 500 shown in FIG. 5. It should be understood that method 400 may also include additional blocks not shown and/or may omit blocks shown, as the scope of the disclosure is not limited in this respect.
At step 402, the first backup device 160 transmits backup device status data to the working device 120 at a fourth time slice of the cycle period of the current cycle.
Regarding the backup device status data, it is used to indicate the operating status of the first backup device 160. For example, the backup device status data may be used to indicate whether the first backup device 160 is operating properly or is malfunctioning. For example, the backup device status data may be 1 bit or 1 byte, etc. It should be noted that the length of the backup device status data may depend on actual situations, and the embodiment of the present disclosure is not limited to this.
Regarding the fourth time slice, it is used for the first backup device 160 to send backup device status data to the working device 120. For example, the fourth time slice may be a different time slice than each of the first time, the second time slice, and the third time slice. For another example, the fourth time slice may be the same time slice as the third time slice, in which case the working device 120 and the first backup device 160 may monitor the working status of each other through only one time slice.
At step 404, if the working device 120 does not receive backup device status data from the first backup device 160 during the periodic time period of the current cycle, the backup device corresponding to the working device 120 during the next cycle is re-determined during the non-periodic time period of the current cycle.
For example, when the first backup device 160 fails, the working device 120 cannot receive the backup device status data from the first backup device 160 in the periodic period of the current cycle, in which case the working device 120 may re-determine the backup device corresponding to the working device 120 in the next cycle in the non-periodic period of the current cycle.
With respect to the re-determination of the backup device corresponding to the working device 120 at the next cycle, it includes, for example: the working device 120 directly designates one candidate backup device from the plurality of candidate backup devices as the backup device corresponding to the working device 120 in the next cycle. For example, the working device 120 stores a priority list of candidate backup devices in advance, and the working device 120 may designate one candidate backup device as a backup device corresponding to the working device 120 in the next cycle based on the priority list.
With respect to re-determining the backup device corresponding to the working device 120 at the next cycle, this in turn includes, for example: the working device 120 determines a backup device corresponding to the working device 120 at the next cycle based on the IP addresses of the plurality of candidate backup devices. For example, the working device 120 may prioritize the plurality of candidate backup devices based on the sizes of the IP addresses of the plurality of candidate backup devices, and determine a backup device corresponding to the working device 120 at the next cycle based on the result of the prioritization.
It should be noted that the manner of re-determining the backup device corresponding to the working device 120 in the next cycle may depend on actual conditions, and the embodiment of the disclosure is not limited thereto.
In the embodiment described with reference to fig. 4, the first backup device 160 sends the backup device status data to the working device 120 at the fourth time slice to indicate the working status of the first backup device itself, if the working device 120 does not receive the backup device status data from the first backup device 160 in the cycle period of the current cycle, the backup device corresponding to the working device in the next cycle is re-determined in the non-cycle period of the current cycle, and the working device 120 can monitor the working status of the first backup device 160 through the time slices without a dedicated communication cable, so that at least the usage of the communication cable in the industrial control network 100 can be further reduced, and the cost and the weight can be further reduced.
It should be noted that, in the above embodiments of the present disclosure, the first backup device 160 is described as the backup device of the working device 120 in the current cycle, but this is merely exemplary and not a limitation of the present disclosure, for example, the working device 120 may also correspond to a plurality of backup devices in the current cycle.
For example, in some embodiments of the present disclosure, the method of redundant switching in the industrial control network 100 further comprises: in a fifth time slice of the cycle period of the current cycle, the working device sends working device status data to a second backup device (not shown in fig. 1); and in a sixth time slice of the cycle time period of the current cycle, the second backup device sends second backup data corresponding to the working data to the target device. For example, the fifth time slice is different from the first time slice, the second time slice, the third time slice, and the fourth time slice. For another example, the fifth time slice is the same time slice as the third time slice. For example, the sixth time slice is different from the first time slice, the second time slice, the third time slice, the fourth time slice, and the fifth time slice. It should be noted that, for the description of the working device status data, reference may be made to the related description about the working device status data in step 308, which is not described herein again; the second backup data is similar to the first backup data, and reference may be made to the description related to the first backup data in step 304, which is not repeated herein.
In the embodiment of the present disclosure, the working device 120 sends the working device status data to the second backup device 160 at the fifth time slice, and the second backup device sends the second backup data corresponding to the working data to the target device 140 at the sixth time slice of the cycle period of the current cycle, at least, in a case where there are a plurality of backup devices corresponding to the working device 120, the switching time can be controlled to be short and packet loss due to switching of the communication link can be avoided.
Fig. 5 illustrates a block diagram of an exemplary electronic device 500 for implementing embodiments of the present disclosure. For example, various devices in an industrial control network as shown in FIG. 1 can be implemented by the electronic device 500. As shown, electronic device 500 includes a Central Processing Unit (CPU) 502 that can perform various appropriate actions and processes in accordance with computer program instructions stored in a Read Only Memory (ROM) 504 or loaded from a storage unit 516 into a Random Access Memory (RAM) 506. In the random access memory 506, various programs and data necessary for the operation of the electronic device 500 may also be stored. The central processing unit 502, the read only memory 504 and the random access memory 506 are connected to each other by a bus 508. An input/output (I/O) interface 510 is also connected to bus 508.
A number of components in the electronic device 500 are connected to the input/output interface 510, including: an input unit 512 such as a keyboard, a mouse, a microphone, and the like; an output unit 514 such as various types of displays, speakers, and the like; a storage unit 516, such as a magnetic disk, optical disk, or the like; and a communication unit 518, such as a network card, modem, wireless communication transceiver, or the like. The communication unit 518 allows the device 500 to exchange information/data with other devices over a computer network, such as the internet, and/or various telecommunications networks.
The various processes and processes described above, such as methods 300 and 400, may be performed by the central processing unit 502. For example, in some embodiments, methods 300 and 400 may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 516. In some embodiments, some or all of the computer program may be loaded and/or installed onto the electronic device 500 via the read-only memory 504 and/or the communication unit 518. When loaded into random access memory 506 and executed by central processing unit 502, may perform one or more of the actions of methods 300 and 400 described above.
The present disclosure relates to methods, apparatuses, systems, electronic devices, computer-readable storage media and/or computer program products. The computer program product may include computer-readable program instructions for performing various aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, a raised structure in a punch card or recess, for example, having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge computing devices. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
Computer program instructions for carrying out operations of the present disclosure may be assembler instructions, instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the disclosure are implemented by personalizing an electronic circuit, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA), with state information of computer-readable program instructions, which can execute the computer-readable program instructions.
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processing unit of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (12)

1. A method of redundant handover in an industrial control network, the method comprising:
in a first time slice of a cycle time period of a current cycle, the working equipment sends working data to the target equipment, wherein the cycle time period of the current cycle at least comprises the first time slice and a second time slice;
in the second time slice, the first backup device sends first backup data corresponding to the working data to the target device, and the first backup device corresponds to the working device in the current period; and
if the target equipment receives the working data and the first backup data, the working data is used as target receiving data of the current period, and if the target equipment does not receive the working data but receives the first backup data, the first backup data is used as the target receiving data of the current period.
2. The method of claim 1, wherein an interval between the first time slice and the second time slice is determined based on a switching time requirement of the industrial control network.
3. The method of claim 1, wherein the first time slice and the second time slice are adjacent time slices.
4. The method of claim 1, further comprising:
in response to the working data including a working data identification and the first backup data including a backup data identification, the target device identifies the working data and the first backup data based on the working data identification and the backup data identification.
5. The method of claim 1, further comprising:
the cycle time period of the current cycle at least comprises a third time slice, and in the third time slice, the working equipment sends working equipment state data to the first backup equipment; and
and if the first backup device does not receive the working device state data from the working device in the periodic time period of the current cycle, switching to the working device in the next cycle in the non-periodic time period of the current cycle.
6. The method of claim 5, wherein the third time slice is a shortest time slice allowed by the industrial control network.
7. The method of claim 5, further comprising:
in a fourth time slice of the period of the current cycle, the first backup device sends backup device state data to the working device; and
and if the working equipment does not receive the backup equipment state data from the first backup equipment in the periodic time period of the current period, re-determining the backup equipment corresponding to the working equipment in the next period in the non-periodic time period of the current period.
8. The method of claim 7, wherein the fourth time slice is the same time slice as the third time slice.
9. The method of claim 7, wherein re-determining the backup device corresponding to the working device on the next cycle comprises:
directly designating one candidate backup device from a plurality of candidate backup devices as a backup device corresponding to the working device in a next cycle; or
Determining a backup device corresponding to the working device at a next cycle based on the IP addresses of the plurality of candidate backup devices.
10. The method of claim 5, further comprising:
in a fifth time slice of the period of the current cycle, the working equipment sends working equipment state data to the second backup equipment; and
and in a sixth time slice of the period of the current cycle, the second backup device sends second backup data corresponding to the working data to the target device.
11. A computing device, comprising:
at least one processor; and
at least one memory coupled to the at least one processor and storing instructions for execution by the at least one processor, the instructions when executed by the at least one processor causing the computing device to perform the method of any of claims 1-10.
12. A computer readable storage medium having stored thereon computer program code which, when executed, performs the method according to any of claims 1 to 10.
CN202310160460.XA 2023-02-21 2023-02-21 Method, apparatus and storage medium for redundant switching in an industrial control network Active CN115941451B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310160460.XA CN115941451B (en) 2023-02-21 2023-02-21 Method, apparatus and storage medium for redundant switching in an industrial control network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310160460.XA CN115941451B (en) 2023-02-21 2023-02-21 Method, apparatus and storage medium for redundant switching in an industrial control network

Publications (2)

Publication Number Publication Date
CN115941451A true CN115941451A (en) 2023-04-07
CN115941451B CN115941451B (en) 2023-05-09

Family

ID=85835751

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310160460.XA Active CN115941451B (en) 2023-02-21 2023-02-21 Method, apparatus and storage medium for redundant switching in an industrial control network

Country Status (1)

Country Link
CN (1) CN115941451B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117434877A (en) * 2023-12-20 2024-01-23 浙江国利信安科技有限公司 Redundancy control method for periodic communication system, actuator device, and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047487A (en) * 2007-04-24 2007-10-03 中控科技集团有限公司 Method and system for solving equipment redundant in industrial control network
CN101621394A (en) * 2008-06-30 2010-01-06 上海邮电设计咨询研究院有限公司 Disaster-tolerant system for processing telephone traffic data
WO2017177941A1 (en) * 2016-04-13 2017-10-19 中兴通讯股份有限公司 Active/standby database switching method and apparatus
CN111628880A (en) * 2019-02-27 2020-09-04 深圳迈瑞生物医疗电子股份有限公司 Method for transferring failure of in-hospital equipment and monitoring system
WO2021136422A1 (en) * 2019-12-31 2021-07-08 杭州海康威视数字技术股份有限公司 State management method, master and backup application server switching method, and electronic device
CN114936115A (en) * 2022-05-24 2022-08-23 苏州浪潮智能科技有限公司 Data storage backup method and device, computer equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047487A (en) * 2007-04-24 2007-10-03 中控科技集团有限公司 Method and system for solving equipment redundant in industrial control network
CN101621394A (en) * 2008-06-30 2010-01-06 上海邮电设计咨询研究院有限公司 Disaster-tolerant system for processing telephone traffic data
WO2017177941A1 (en) * 2016-04-13 2017-10-19 中兴通讯股份有限公司 Active/standby database switching method and apparatus
CN111628880A (en) * 2019-02-27 2020-09-04 深圳迈瑞生物医疗电子股份有限公司 Method for transferring failure of in-hospital equipment and monitoring system
WO2021136422A1 (en) * 2019-12-31 2021-07-08 杭州海康威视数字技术股份有限公司 State management method, master and backup application server switching method, and electronic device
US20230041089A1 (en) * 2019-12-31 2023-02-09 Hangzhou Hikvision Digital Technology Co., Ltd. State management methods, methods for switching between master application server and backup application server, and electronic devices
CN114936115A (en) * 2022-05-24 2022-08-23 苏州浪潮智能科技有限公司 Data storage backup method and device, computer equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
付厚奎;韩威;: "基于FPGA的双网冗余以太网控制器的设计与实现", 舰船电子工程 *
李晓燕;赵奎;胡晓勤;李国凤;: "一种基于Internet的数据级容灾系统的设计与实现", 计算机安全 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117434877A (en) * 2023-12-20 2024-01-23 浙江国利信安科技有限公司 Redundancy control method for periodic communication system, actuator device, and storage medium
CN117434877B (en) * 2023-12-20 2024-02-23 浙江国利信安科技有限公司 Redundancy control method for periodic communication system, actuator device, and storage medium

Also Published As

Publication number Publication date
CN115941451B (en) 2023-05-09

Similar Documents

Publication Publication Date Title
CN107113194B (en) Method and apparatus for router maintenance
CN113364638B (en) Method, electronic device and storage medium for EPA networking
JP5143286B2 (en) Communication system and communication device state determination method
CN107666415B (en) Optimization method and device of FC-AE-1553 protocol bridge
US10126736B2 (en) Industrial process historian time synchronization of source based timestamp event data
CN115941451B (en) Method, apparatus and storage medium for redundant switching in an industrial control network
CN115426070B (en) Method, apparatus and storage medium for clock resynchronization
CN115589273A (en) EPA communication system
CN113196710B (en) Distribution node, automation network and method for transmitting messages
CN113635919B (en) Method, device and equipment for controlling actuator and automatic driving vehicle
CN109347674B (en) Data transmission method and device and electronic equipment
CN101036344B (en) Communications system
CN115882996B (en) Clock synchronization method, device and medium
CN113346974B (en) Method, apparatus, communication system and storage medium for clock synchronization
CN110855003A (en) Method and device for calling and comparing self-adaptive configuration of main station
US20150156164A1 (en) Communication system, communication control method, communication relay system, and communication relay control method
US11451513B2 (en) Notification device and notification method
CN112217718A (en) Service processing method, device, equipment and storage medium
CN113328917B (en) Method for EPA link diagnosis, EPA device and computer storage medium
CN110764932A (en) Data processing method, system, medium and computing device
CN112235213A (en) SDN switch shunting method, system, terminal and storage medium
CN112148324A (en) Method, apparatus and computer-readable storage medium for upgrading electronic device
CN112787943A (en) Traffic scheduling method and device and computer readable storage medium
CN114257508B (en) Method, gateway, communication system and storage medium for equipment maintenance locking
CN117278471B (en) Method, computing device and storage medium for network communication time scheduling

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant