Redundant switching arbitration method, device and electronic medium

Through the diagnostic information interaction and delayed switching mechanism of multi-channel redundant cards, the problem of unstable card status switching is solved, and the reliability of redundant switching and system stability are achieved.

CN115598961BActive Publication Date: 2025-10-03SUPCON TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211314861.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-26
Publication Date
2025-10-03
Estimated Expiration
2042-10-26

AI Technical Summary

Technical Problem

In distributed control systems, the redundant switching method for multi-channel redundant cards has errors in comparing the fault degrees between cards, resulting in dual working or dual standby states for the cards, affecting system stability. When the fault is quickly eliminated, the card status switches back and forth, causing system jitter.

Method used

The arbitration results are generated through the interactive diagnostic information of each channel. The card status switching is performed only after the results are consistent. A delayed switching mechanism is set to avoid jitter caused by fault occurrence/elimination in a short period of time. Multi-channel arbitration is used to ensure the reliability and stability of switching.

Benefits of technology

It effectively avoids mis-cutting during redundant switching, ensures system stability, avoids frequent switching of card status due to rapid fault elimination, and improves system reliability and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115598961B_ABST
    Figure CN115598961B_ABST
Patent Text Reader

Abstract

The present application relates to a redundant switching arbitration method, device and electronic medium. After all channels on a redundant card exchange diagnostic information, each channel generates its own switching arbitration result to determine whether the card needs to be switched to the working / standby state. The arbitration results are exchanged again, and each channel compares the arbitration results of all channels obtained by the interaction. Only when all channels determine that redundant switching is required will the card be switched to the working / standby state, thereby ensuring the reliability of redundant switching, effectively avoiding mis-cutting and ensuring system stability. At the same time, by setting a delayed switching, the card will not be switched to the working / standby state until the arbitration results of multiple consecutive comparisons between channels are consistent and all need to be switched. By using the delayed switching setting of multiple cycles, when the card encounters a fault in a short period of time, the original working / standby state can be maintained, thereby avoiding the jitter problem caused by the fault recovery in a short period of time and increasing stability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of industrial control technology, and specifically relates to a redundant switching arbitration method, device and electronic medium. Background Art

[0002] With the development of industry, the application of distributed control systems (DCS) in production is increasing. In order to ensure stable control of field controllers, automated safety instrument systems can respond and protect enterprises' production devices and equipment in a timely manner to possible dangers or improper measures that may cause continued deterioration, so that production devices and equipment enter a predefined safe shutdown condition, thereby reducing risks to an acceptable minimum and ensuring the safety of personnel, equipment and production devices.

[0003] For reasons of system security and reliability, some key components or functions are manually configured redundantly. When a system failure occurs, such as a device failure, redundant components can act as backup, promptly taking over the work of the failed component and reducing system downtime. For multi-channel redundant cards, the redundancy switching method compares fault information exchanged between cards and selects the card with the lowest fault severity as the active card. However, when a card fails, this can lead to an erroneous comparison of fault severity between cards, resulting in dual active or dual standby states, impacting system operation.

[0004] At the same time, when a card fails and the fault is quickly eliminated, redundant cards will switch back and forth between working / standby states, causing jitter, which greatly affects system stability. Summary of the Invention

[0005] In view of the above-mentioned shortcomings and deficiencies of the prior art, the present application provides a redundant switching arbitration method, device and electronic medium, which can ensure the stability of redundant switching and avoid the jitter problem of fault occurrence / elimination in a short time.

[0006] To achieve the above objectives, this application adopts the following technical solutions:

[0007] A redundant switching arbitration method for redundant switching of multi-channel cards, comprising:

[0008] S1: Obtain the diagnostic information of the channel itself and interact with other channels to obtain the diagnostic information of all channels;

[0009] S2: Generate an arbitration result for redundancy switching based on the diagnostic information and interact with other channels;

[0010] S3: Compare the arbitration results of all channels. If the results are consistent, the card's working / standby status is switched or maintained according to the arbitration results; if the results are different, the data is discarded and the card's working / standby status is maintained.

[0011] Preferably, when each channel interacts, it will forward the information received from other channels.

[0012] Preferably, in step S1, when each channel interacts with other channels, if it does not receive information from a certain channel, it extracts the information of the channel from the information forwarded by other channels and determines that there is a communication failure between itself and the channel.

[0013] Preferably, in step S2, the method for generating the arbitration result of the redundancy switching includes:

[0014] S201: Classify the diagnostic information by card based on the diagnostic information of all channels;

[0015] S202: Counting the fault degrees included in the diagnostic information of all channels on the card;

[0016] S203: Obtaining the communication fault degree between each channel in the card;

[0017] S204: performing redundancy switching arbitration based on the fault degree of the channel diagnostic information and the communication fault degree to determine the working / standby status of the card;

[0018] S205: Compare the existing working / standby state of the card component with the generated working / standby state, and generate an arbitration result of redundancy switching / maintenance.

[0019] Preferably, the specific method of step S3 includes:

[0020] S301: Obtain arbitration results of all channels and compare them;

[0021] S302: Determine whether the comparison results of all channels are consistent and whether the switching operation is performed on all channels; if so, execute S303; if not, execute S304;

[0022] S303: The card delay switching value k is cumulatively increased by one, and it is determined whether k is greater than n. If so, the card is switched between the working and standby states. If not, the process returns to S301.

[0023] S304: Clear the delay switching value k and return to S301.

[0024] Preferably, each channel performs redundancy switching arbitration periodically.

[0025] The present invention also provides a redundant switching arbitration device, comprising:

[0026] Interaction module: used for information interaction between various channels of the card;

[0027] Arbitration module: performs redundancy switching arbitration based on the arbitration results obtained by the interaction module to determine the working / standby status of the card;

[0028] Execution module: executes the working / standby state switching / maintenance operation of the card according to the arbitration result of the arbitration module.

[0029] Preferably, the interaction module forwards information received from other channels when performing information interaction between channels.

[0030] Preferably, the execution module further includes a delayed switching module. When the execution module generates a redundant switching instruction, the delayed switching value k in the delayed switching module is accumulated and added by one. When k>n, the execution module executes the working / standby state switching of the card component.

[0031] An electronic medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

[0032] The beneficial effects of the present application are as follows: the present application relates to a redundant switching arbitration method, device and electronic medium. After all channels on a redundant card exchange diagnostic information, each channel generates its own switching arbitration result to determine whether it is necessary to switch the card's working / standby state, and exchanges the arbitration results again. Each channel arbitrates based on the arbitration results of all channels obtained through interaction. The working / standby state switching of the card will not be performed until all channels determine that redundant switching is required, thereby ensuring the reliability of redundant switching, effectively avoiding mis-cutting, and ensuring system stability.

[0033] At the same time, this application also sets up delayed switching. Only when the arbitration results of multiple consecutive comparisons between channels are consistent and switching is required, the card will be switched to working / standby status. By using multiple-cycle delayed switching settings, when the card encounters / eliminates a fault in a short period of time, it can maintain the original working / standby status, avoiding the jitter problem caused by the fault recovery in a short time and increasing stability. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The present application is described with the aid of the following drawings:

[0035] Figure 1 A schematic diagram of the redundancy switching arbitration method of the present application is shown;

[0036] Figure 2 Shows a schematic diagram of the dual-channel dual-redundancy card structure of the present application;

[0037] Figure 3 Shows the flowchart of the redundancy switching generation arbitration result of the present application;

[0038] Figure 4 The flowchart of the redundant switching arbitration method of the present application is shown;

[0039] Figure 5 It shows a schematic diagram of the structure of the redundant switching arbitration device of the present application. DETAILED DESCRIPTION

[0040] To better explain the present invention and facilitate understanding, the present invention is described in detail below through specific embodiments in conjunction with the accompanying drawings. It should be understood that the specific embodiments described below are merely for explaining the relevant invention and are not intended to limit the invention. It should also be noted that the embodiments and features in the embodiments of this application can be combined with each other unless there is a conflict; for ease of description, only the parts relevant to the invention are shown in the accompanying drawings.

[0041] like Figure 1 As shown, the present invention discloses a redundant switching arbitration method for redundant switching of multi-channel card components. To more intuitively explain the technical solution of the present invention, this embodiment takes the redundant switching of a dual-channel dual-card redundant system as an example. Other multi-channel multiple redundant systems, such as a three-channel dual redundant system and a three-channel triple redundant system, can also use this method to perform redundant switching arbitration. The specific redundant switching arbitration method includes:

[0042] S1: Get the diagnostic information of the channel itself and interact with other channels to get the diagnostic information of all channels. Figure 2 As shown, in a dual-channel dual-card redundant system, card A includes channels a and b, and card B includes channels a' and b'. After each channel obtains its own diagnostic information, it exchanges this information with other channels to obtain diagnostic information from all other channels. For example, channel a sends its own diagnostic information a to channels b, a', and b', while simultaneously receiving diagnostic information from channels b, a', and b'. At this point, the diagnostic information obtained on channel a includes diagnostic information a generated by the channel itself, and diagnostic information b, a', and b' obtained through interaction. Other channels also obtain diagnostic information from all channels through interaction.

[0043] Furthermore, when each channel interacts, it will forward the information received from other channels. Figure 2As shown, after channel a receives diagnostic information b from channel b through interaction, it forwards diagnostic information b to channels a' and b'. Therefore, when each channel fails to receive information from a particular channel during interaction with other channels, it extracts the information from the information forwarded by the other channel and determines that a communication failure exists between itself and that channel. For example, in card A, if communication between channels a and b fails, channel a will be unable to receive diagnostic information b from channel b during interaction with other channels. By leveraging the inter-channel information forwarding function, both channels a' and b' can receive diagnostic information a and b during this communication cycle. Then, using the inter-channel forwarding function, diagnostic information a is forwarded to channel b. At this point, channel b can still receive diagnostic information a through channels a' and b', indicating that channel a is functioning normally and that only the communication between them is failing. If channel a fails entirely, all other channels will be unable to receive diagnostic information a, confirming that card A has experienced a serious failure. Of course, when channels exchange data, data directly sent from each channel is prioritized.

[0044] S2: Generate the arbitration result of redundant switching based on the diagnostic information and interact with other channels. Figure 3 Shown, including:

[0045] S201: Classify the diagnostic information of all channels by card. After receiving the diagnostic information of all channels, each channel will classify the diagnostic information of the channel according to different card components, that is, classify diagnostic information a with diagnostic information b, and classify diagnostic information a' with diagnostic information b'.

[0046] S202: Counting the fault degrees included in the diagnostic information of all channels on the card.

[0047] S203: Obtain the degree of communication failure between each channel within the card. Each channel determines whether there is a communication failure between channels based on the source of the received data. Since fault comparison between redundant cards only requires card fault comparison, when calculating inter-channel communication statistics, it is only necessary to determine whether there is a communication failure between each channel within the card. That is, it is sufficient to determine whether there is a communication failure between channel a and channel b, and between channel a' and channel b'. Communication failures between card channels are not counted as failures of the card itself.

[0048] S204: Redundancy switching arbitration is performed based on the fault severity of the channel diagnostic information and the communication fault severity, determining the working / standby status of the card. Because diagnostic information is exchanged between channels, each channel contains diagnostic information from all channels of redundant cards. Cards are then merged and the fault severity of each merged card is calculated. The card with the lowest fault severity is then selected as the working card.

[0049] S205: Compare the existing working / standby status of the card with the generated working / standby status to generate an arbitration result for redundant switching / maintaining. Each channel determines whether redundant switching is necessary based on the current working / standby status of each card and the working / standby status generated based on the merged card fault level information, thereby generating an arbitration result for switching / maintaining the card's working / standby status. Because each channel determines whether redundant switching is necessary based on the interactively acquired fault information of each channel, and each channel independently arbitrates for redundant switching without interfering with each other, the accuracy of redundant switching is effectively guaranteed, preventing the occurrence of dual working / dual standby states for the card due to a single channel failure.

[0050] S3: Compare the arbitration results of all channels. If the results are consistent, the card's working / standby status is switched or maintained according to the arbitration results; if the results are different, the data is discarded and the card's working / standby status is maintained.

[0051] like Figure 5 As shown, the method for determining redundant switching is:

[0052] S301: Obtaining arbitration results of all channels and comparing them. Similarly, when communication between two channels fails and the arbitration results cannot be directly obtained, they can be forwarded through other channels to ensure that each channel can obtain the arbitration results of all channels for comparison.

[0053] S302: Determine whether the comparison results of all channels are consistent and the switching operation is performed; if so, execute S303, if not, execute S304. According to the comparison results of all channels, the redundant switching of the card will be triggered only when and only when the comparison results of all channels are consistent and the working / standby state switching of the card needs to be performed. If the comparison results are inconsistent, or the comparison results are to maintain the original working / standby state, no switching will be performed. Using multiple channels to perform redundant switching arbitration separately and then comparing the arbitration results of multiple channels can effectively ensure the reliability of redundant switching, avoid the dual working / dual standby state of redundant cards caused by diagnostic errors in a single channel, and effectively improve system stability.

[0054] S303: The card delay switching value k is accumulated and added by one, and it is determined whether k is greater than n. If so, the card working / standby state switching is executed, otherwise it returns to S301. Among them, the delay switching value k is initially 0, n is a positive integer, and the size of n can be configured according to needs. Through the setting of delayed switching, each time the arbitration result is to execute the switching operation, the delay switching value k is accumulated and added by one. When k is accumulated and greater than n, the system executes the working / standby state switching of the card, otherwise it maintains the existing working / standby state and enters the next cycle to continue the redundant switching arbitration. n can be manually configured. By matching the n value, a delay can be set for the redundant switching. When the arbitration result of each channel is that the card working / standby state switching is required, the original card working / standby state is maintained first, and the redundant switching arbitration of the next cycle continues until the arbitration result requires switching in n consecutive cycles, and then the card working / standby state switching is executed. If the card failure can be quickly recovered, the result of the redundant switching arbitration in the next cycle is to maintain the original working standby state, which can effectively avoid the problem of jitter caused by the system working / standby card switching back and forth due to the occurrence / elimination of the fault in a short period of time.

[0055] S304: Clear the delayed switching value k and return to S301. If the system fault can be quickly recovered, the next redundancy switching arbitration result is to maintain the original working state without switching. At this time, the delayed switching value k is cleared. If the arbitration result again indicates that a switch is required, the delayed switching value k begins to accumulate again. Only after the redundancy switching arbitration results for n cycles have all been switch, will the card's working / standby state switch be performed, further improving system stability.

[0056] In another embodiment, each channel generates the working / standby status of the card according to the fault degree information, and then exchanges the working / standby status information. After the interaction, the generated working / standby status information is used for redundant arbitration to determine whether the working / standby status of the card needs to be switched.

[0057] like Figure 5 As shown, the present invention also provides a redundant switching arbitration device, comprising:

[0058] Interaction module: used for information interaction between various channels of the card.

[0059] Furthermore, when the interaction module exchanges information between channels, it forwards information received from other channels. If communication between two cards fails, the interaction module is unable to exchange information, meaning the channel cannot obtain information about the failed channel. In this case, forwarding information through the interaction modules of other channels ensures that the channel collects relevant information from all channels, ensuring smooth redundancy switching arbitration.

[0060] Arbitration module: performs redundancy switching arbitration based on the diagnostic information obtained by the interaction module to determine the working / standby status of the card.

[0061] Furthermore, the method for redundancy switching arbitration includes:

[0062] S201: Classify the diagnostic information by card based on the diagnostic information of all channels;

[0063] S202: Counting the fault degrees included in the diagnostic information of all channels on the card;

[0064] S203: Obtaining the communication fault degree between each channel in the card;

[0065] S204: performing redundancy switching arbitration based on the fault degree of the channel diagnostic information and the communication fault degree to determine the working / standby status of the card;

[0066] S205: Compare the existing working / standby state of the card component with the generated working / standby state, and generate an arbitration result of redundancy switching / maintenance.

[0067] Execution module: Executes the working / standby state switching / maintenance operation of the card component based on the arbitration result of the arbitration module. The execution module will execute the working / standby state switching of the card component only when the arbitration results of all channels are consistent and all are executing the working / redundant state switching of the card component. If the arbitration results are inconsistent, or all are maintaining the original working state, the execution module only maintains the original working state of the card component and does not perform redundant switching. Using multiple channels to perform redundant switching diagnosis separately and arbitrating the diagnosis results can effectively ensure the accuracy of system switching, avoid the occurrence of dual working / dual standby states of cards due to misdiagnosis, and improve system availability.

[0068] Preferably, the execution module further includes a delayed switching module. When the execution module generates a redundant switching instruction, the delayed switching value k in the delayed switching module is accumulated and added by one. When k>n, the execution module executes the working / standby state switching of the card component.

[0069] By setting the delayed switching module, the delayed switching cycle n can be independently configured. When the switching operation is maintained for n consecutive cycles, the system will execute the working / standby state switching of the card component, effectively avoiding the problem of frequent card status switching caused by the occurrence / elimination of faults in a short time, and avoiding system jitter.

[0070] An electronic medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of a redundant switching arbitration method in this specification are implemented.

[0071] It should be noted that in the claims, any reference signs placed between parentheses should not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claim. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The present invention can be implemented by means of hardware comprising several distinct components and by means of a suitably programmed computer. The use of the words first, second, third, etc. is merely for convenience and does not imply any order. These words should be understood as part of the component name.

[0072] In addition, it should be noted that, in the description of this specification, the description of the terms "one embodiment", "some embodiments", "embodiment", "example", "specific example" or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.

[0073] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments after learning the basic creative concept. Therefore, the claims should be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0074] Obviously, those skilled in the art may make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, if such modifications and variations fall within the scope of the claims and their equivalents, the present invention shall also include such modifications and variations.

Claims

1. A redundant switching arbitration method for redundant switching of multi-channel cards, characterized in that: S1: Obtain the diagnostic information of the channel itself and interact with other channels to obtain the diagnostic information of all channels; S2: Generate an arbitration result for redundancy switching based on the diagnostic information and interact with other channels; S3: Compare the arbitration results of all channels. If the results are consistent, the card's working / standby state is switched or maintained according to the arbitration results. If the results are different, the data is discarded and the card remains in working or standby status. The specific methods include: S301: Obtain arbitration results of all channels and compare them; S302: Determine whether the comparison results of all channels are consistent and whether the switching operation is performed on all channels; if so, execute S303; if not, execute S304; S303: The card delay switching value k is cumulatively increased by one, and it is determined whether k is greater than n. If so, the card is switched between the working and standby states. If not, the process returns to S301. S304: Clear the delay switching value k and return to S301.

2. The method according to claim 1, characterized in that When each channel interacts, it will forward the information received from other channels.

3. The method according to claim 2, characterized in that In step S1, when each channel interacts with other channels, if it does not receive information from a certain channel, it extracts the information of the channel from the information forwarded by other channels and determines whether there is a communication failure between itself and the channel.

4. The method according to claim 3, characterized in that In step S2, the method for generating a redundancy switching arbitration result includes: S201: Classify the diagnostic information by card based on the diagnostic information of all channels; S202: Counting the fault degrees included in the diagnostic information of all channels on the card; S203: Obtaining the communication fault degree between each channel in the card; S204: performing redundancy switching arbitration based on the fault degree of the channel diagnostic information and the communication fault degree to determine the working / standby status of the card; S205: Compare the existing working / standby state of the card component with the generated working / standby state, and generate an arbitration result of redundancy switching / maintenance.

5. The method according to claim 1, wherein Each channel periodically performs redundancy switching arbitration.

6. A redundant switching arbitration device for redundant switching of multi-channel cards, characterized in that: Executing the method according to any one of claims 1 to 5, comprising: Interaction module: used for information interaction between various channels of the card; Arbitration module: performs redundancy switching arbitration based on the diagnostic information obtained by the interaction module to determine the working / standby status of the card; Execution module: According to the arbitration result of the arbitration module, the card component is switched to the working / standby state / maintained. The execution module also includes a delayed switching module. When the execution module generates a redundant switching instruction, the delayed switching value k in the delayed switching module is accumulated and added by one. When k>n, the execution module executes the working / standby state switching of the card component.

7. The device according to claim 6, characterized in that When performing information interaction between channels, the interaction module forwards information received from other channels.

8. An electronic medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Redundant PLC system

    CN101546187A

  • Multiple hot standby redundancy system

    CN114978874A