CN118433014A - Reliability transmission method and device applied to frame type equipment - Google Patents

Reliability transmission method and device applied to frame type equipment Download PDF

Info

Publication number
CN118433014A
CN118433014A CN202410493788.8A CN202410493788A CN118433014A CN 118433014 A CN118433014 A CN 118433014A CN 202410493788 A CN202410493788 A CN 202410493788A CN 118433014 A CN118433014 A CN 118433014A
Authority
CN
China
Prior art keywords
control information
service module
message
control
master
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.)
Pending
Application number
CN202410493788.8A
Other languages
Chinese (zh)
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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN202410493788.8A priority Critical patent/CN118433014A/en
Publication of CN118433014A publication Critical patent/CN118433014A/en
Pending legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Abstract

The application relates to a reliability transmission method and a device applied to frame type equipment. The method comprises the following steps: the master control generates control information; the master control sends the control information to a service module; the service module extracts attribute parameters from the control information; the service module generates a message according to the control information; and the service module executes preset operation according to the attribute parameters so as to send the message to the corresponding panel port. The method and the device for transmitting the reliability applied to the frame equipment can keep the message transmission in the period of time when the main control and the single board are disconnected during the main/standby switching, so as to ensure the reliable information transmission and improve the capability of the channel for transmitting the reliability.

Description

Reliability transmission method and device applied to frame type equipment
Technical Field
The disclosure relates to the field of computer information processing, and in particular relates to a reliability transmission method and device applied to frame equipment.
Background
Large frame network devices are designed with a distributed system, meaning that the functionality of the system is broken up into multiple independent modules or nodes, which may be in different physical locations. Each node is responsible for performing specific tasks and communicating and cooperating over a network to perform the functions of the overall system.
In a large frame type equipment system, a main control controls an exchange chip through a CPU. The switching chip is a key component in the network equipment and is responsible for realizing the switching and forwarding functions of the data packets. The main control configures, manages and controls the exchange chip through the CPU, thereby realizing the control and communication between the single boards. In order to improve the reliability and fault tolerance of the device, a dual-master redundancy mode is generally adopted. Namely, two main controls are arranged in the system, one is the main control, and the other is the standby main control. The master is responsible for actual control and operation, and the standby master is in a standby state and monitors the operating state of the master.
If the master control is abnormal, the slave master control can detect the abnormality and take over the responsibility of the master control, and control and management of the equipment are started. This process is called active-standby switching. When the active-standby is switched, the original active master control needs to be restarted to restore normal operation. In this process, a situation may occur in which the connection between the master and the board is disconnected for a while.
Disconnection between the master and the board means that the device loses control and management of it by the master for a period of time. This may result in temporary failure of some of the functions of the device and reduced forwarding and processing capabilities of the data packets. During this time, the device may be in an unstable operating state, but since the standby master takes over the role of the master, the device as a whole can still remain reliably operating until the master is restarted and the connection with the board is re-established.
The above information disclosed in the background section is only for enhancement of understanding of the background of the application and therefore it may contain information that does not form the prior art that is already known to a person of ordinary skill in the art.
Disclosure of Invention
In view of this, the present application provides a method and apparatus for transmitting reliability applied to a frame device, which can keep sending a message during the period of time when the main control and the single board are disconnected during the active/standby switching, so as to ensure reliable information transmission, and improve the capability of the channel for reliable transmission.
Other features and advantages of the application will be apparent from the following detailed description, or may be learned by the practice of the application.
According to an aspect of the present application, there is provided a reliability transmission method applied to a frame device, the method comprising: the master control generates control information; the master control sends the control information to a service module; the service module extracts attribute parameters from the control information; the service module generates a message according to the control information; and the service module executes preset operation according to the attribute parameters so as to send the message to the corresponding panel port.
In an exemplary embodiment of the present application, the master generates control information, including: before the main control and the standby main control of the frame type equipment are switched, the main control generates the control information; and/or in a pre-restarting stage of the master control device, the master control generates the control information.
In an exemplary embodiment of the present application, the master generates control information, including: the master control acquires control parameters, wherein the control parameters comprise: time interval, attribute parameters, message content, keywords, network interface index number; the control information is generated based on the control parameters.
In an exemplary embodiment of the present application, the master control sends the control information to the service module, including: and the main control transmits the control information to the service module through the interface board channel.
In an exemplary embodiment of the present application, the service module extracts attribute parameters from the control information, including: the service module analyzes the control information and extracts attribute parameters; and storing the control information through a linked list.
In an exemplary embodiment of the present application, the service module generates a packet according to the control information, including: the service module extracts the message content from the control information; and generating a message according to the message content.
In an exemplary embodiment of the present application, the service module performs a predetermined operation according to the attribute parameter to send the message to a corresponding panel port, including: the service module extracts a time interval from the control information; when the attribute parameter is 1, the service module circularly traverses a linked list based on the time interval; transmitting the message in the linked list to the corresponding panel port; and (5) until the message with the attribute parameter of 1 in the control information in the linked list is sent.
In an exemplary embodiment of the present application, the service module performs a predetermined operation according to the attribute parameter to send the message to a corresponding panel port, including: the service module extracts a time interval from the control information; when the attribute parameter is not 1, the service module sends the message based on the time interval; until the control information in the linked list is deleted.
In an exemplary embodiment of the present application, until the control information in the linked list is deleted, the method includes: switching between the main master control and the standby master control; and the standby master control deletes the control information in the linked list.
According to an aspect of the present application, there is provided a reliability transmission apparatus applied to a frame device, the apparatus comprising: the information module is used for generating control information by the main control; the sending module is used for sending the control information to the service module by the main control; the extraction module is used for extracting attribute parameters from the control information by the service module; the message module is used for generating a message according to the control information by the service module; and the operation module is used for executing preset operation according to the attribute parameters by the service module so as to send the message to the corresponding panel port.
According to an aspect of the present application, there is provided an electronic device including: one or more processors; a storage means for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the methods as described above.
According to an aspect of the application, a computer-readable medium is proposed, on which a computer program is stored, which program, when being executed by a processor, implements a method as described above.
According to the reliability transmission method and the device applied to the frame type equipment, control information is generated through the main control; the master control sends the control information to a service module; the service module extracts attribute parameters from the control information; the service module generates a message according to the control information; the service module executes the preset operation according to the attribute parameters to send the message to the corresponding panel port, so that the message can be kept to be sent in the period of time when the main control and the single board are disconnected during the main/standby switching, thereby ensuring the reliable information transmission and improving the capability of the channel for reliable transmission.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application as claimed.
Drawings
The above and other objects, features and advantages of the present application will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings. The drawings described below are only some embodiments of the present application and other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art.
Fig. 1 is a system block diagram illustrating a reliability transmission method and apparatus applied to a frame device according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating a reliability transmission method applied to a frame device according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating a reliability transmission method applied to a frame device according to another exemplary embodiment.
Fig. 4 is a flowchart illustrating a reliability transmission method applied to a frame device according to another exemplary embodiment.
Fig. 5 is a block diagram illustrating a reliability transmission apparatus applied to a frame device according to an exemplary embodiment.
Fig. 6 is a block diagram of an electronic device, according to an example embodiment.
Fig. 7 is a block diagram of a computer-readable medium shown according to an example embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments can be embodied in many forms and should not be construed as 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 concept of the example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. It will be appreciated, however, by one skilled in the art that the inventive aspects may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be used. In other instances, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the application.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
It will be understood that, although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one element from another element. Accordingly, a first component discussed below could be termed a second component without departing from the teachings of the present inventive concept. As used herein, the term "and/or" includes any one of the associated listed items and all combinations of one or more.
Those skilled in the art will appreciate that the drawings are schematic representations of example embodiments and that the modules or flows in the drawings are not necessarily required to practice the application and therefore should not be taken to limit the scope of the application.
The technical abbreviations involved in the present application are explained as follows:
linked list (LINKED LIST): is a non-continuous, non-sequential storage structure on physical storage units, the logical order of data elements being achieved by the order of pointer links in a linked list. The linked list is one of data structures, wherein data are arranged linearly, and the addition and deletion of the data in the linked list are convenient.
Message (message): is the data unit exchanged and transmitted in the network, i.e. the data block to be transmitted by the station at one time. The message contains the complete data information to be sent, and has inconsistent length and unlimited and variable length. The struct sk_buffer is a structure for managing messages in a linux TCP/IP stack, and is abbreviated as SKB.
System channel: methods for inter-board communication and inter-device communication, referred to as channels, on frame devices.
Distributed system: the system composed of a plurality of computers is connected and cooperated through a network, and is called as a distributed system for short.
After the applicant of the present application has studied in many ways, it is found that, in the current dual master control device, after detecting that the master control is powered off, after switching the dual master control, a new master control establishes a channel with the single board, and then a message is sent.
The scheme in the prior art can meet the requirements of most business modules. But there are traffic modules such as: the heartbeat module of the double-machine can require the main control to send messages immediately after restarting and at regular time intervals.
In general, a dual heartbeat module may require: ten or more messages are continuously transmitted at a frequency of 1s at time intervals, and the sequence of the messages cannot be changed. The scheme in the prior art can not meet the requirement of a double-movement-hop module. Because the new master control needs time to build with the single board, in the time, the continuous sending of more than ten messages can not be completed, and when the situation is met, the frame device has the problem of packet loss.
The reliability transmission method applied to the frame equipment can solve the problem that when the main control and the standby main control are switched, the main control and the single board are disconnected for a period of time and cannot receive and transmit packets, and the service module also transmits configuration during the period, so that the reliability transmission capability of a channel during the main/standby switching is improved.
The present application will be described in detail with the aid of specific examples.
Fig. 1 is a system block diagram illustrating a reliability transmission method and apparatus applied to a frame device according to an exemplary embodiment.
As shown in fig. 1, the system architecture 10 may include a master 101, a slave 102, a board 103, and other devices 104.
When the frame device is started, the master control 101 and the slave master control 102 are started and initialized simultaneously. They may communicate over an internal communication link to ensure that they have all completed the start-up procedure.
During normal operation of the device, the master 101, the slave 102 will together monitor the status and operation of the other devices 104. They may for example be synchronized in state periodically to ensure that the state between them remains consistent. In most cases, both master controllers will perform the same task at the same time to ensure redundancy and reliability of the system.
When the master 101 detects that itself or a device controlled by it fails, it will first attempt to recover the failure, and if it cannot recover, it will send failure information to the slave 102. The master 101 that received the failure information initiates a failover procedure.
In the event of a failure, the normal functioning standby master 102 will take over all device control functions. This may involve reconfiguring system resources, reassigning tasks, etc. The switching process is fast and seamless to minimize impact on device performance and functionality.
More specifically, before the master 101 and the standby master 102 of the frame device switch, the master 101 may, for example, generate the control information; and/or during a pre-reboot phase of the master 101, the master 101 generates the control information. The master control 101 sends the control information to a service module; the service module extracts attribute parameters from the control information; the service module generates a message according to the control information; and the service module executes a preset operation according to the attribute parameters to send the message to the corresponding other devices 104.
Upon failure, a system administrator or maintenance personnel typically intervene to repair or replace the failed host controller or the equipment it controls. Once the fault is repaired, the system administrator may manually switch the device back to the dual master mode, or the system may automatically detect the repair and re-establish the redundant configuration.
Fig. 2 is a flowchart illustrating a reliability transmission method applied to a frame device according to an exemplary embodiment. The reliability transmission method 20 applied to the frame device includes at least steps S202 to S210.
As shown in fig. 2, in S202, the master generates control information. The master may, for example, generate the control information prior to a switch between the master and the slave of the frame device; the master may also generate the control information, for example, during a pre-reboot phase of the master device.
In S204, the master sends the control information to the service module. The master controller generates control information that typically encompasses device status, instructions, configuration, etc. Such information may be digitized instructions, analog signals, or packets of data in a particular format, depending on the communication protocol employed and the requirements of the service module.
The master may, for example, obtain control parameters including: time interval, attribute parameters, message content, keywords, network interface index number; the control information is generated based on the control parameters.
More specifically, the master control sends the control information to the service module through the interface board channel. The interface board is a key component connecting the main controller and the service module. It typically has a variety of interfaces including digital input/output, analog input/output, ethernet interfaces, etc. to communicate with various types of traffic modules. The master controller generates control information that typically encompasses device status, instructions, configuration, etc. Such information may be digitized instructions, analog signals, or packets of data in a particular format, depending on the communication protocol employed and the requirements of the service module.
Communication between the host controller and the traffic modules is typically performed using a particular communication protocol. This may be a standard communication protocol such as Modbus, profibus, CAN (controller area network) or the like, as well as a vendor specific protocol.
In S206, the service module extracts attribute parameters from the control information. The service module may, for example, parse the control information and extract attribute parameters; and storing the control information through a linked list.
In S208, the service module generates a message according to the control information. The service module may extract the message content from the control information, for example; and generating a message according to the message content.
In S210, the service module performs a predetermined operation according to the attribute parameter to send the message to the corresponding panel port.
In one embodiment, the traffic module may extract a time interval from the control information, for example; when the attribute parameter is 1, the service module circularly traverses a linked list based on the time interval; transmitting the message in the linked list to the corresponding panel port; and (5) until the message with the attribute parameter of 1 in the control information in the linked list is sent.
In one embodiment, the traffic module may extract a time interval from the control information, for example; when the attribute parameter is not 1, the service module sends the message based on the time interval; until the control information in the linked list is deleted. More specifically, the switching of the master control and the standby master control is completed; and the standby master control deletes the control information in the linked list.
According to the reliability transmission method applied to the frame type equipment, control information is generated through the main control; the master control sends the control information to a service module; the service module extracts attribute parameters from the control information; the service module generates a message according to the control information; the service module executes the preset operation according to the attribute parameters to send the message to the corresponding panel port, so that the message can be kept to be sent in the period of time when the main control and the single board are disconnected during the main/standby switching, thereby ensuring the reliable information transmission and improving the capability of the channel for reliable transmission.
It should be clearly understood that the present application describes how to make and use specific examples, but the principles of the present application are not limited to any details of these examples. Rather, these principles can be applied to many other embodiments based on the teachings of the present disclosure.
Fig. 3 is a flowchart illustrating a reliability transmission method applied to a frame device according to another exemplary embodiment. The flow 30 shown in fig. 3 is a detailed description of S202 "master generation control information" in the flow shown in fig. 2.
As shown in fig. 3, in S302, control parameters are acquired. The master first needs to acquire control parameters, which may include, but are not limited to:
time interval: the time interval for generating the control information is specified to ensure timeliness and periodicity of the information.
Attribute parameters: properties of the object to be controlled, such as temperature, pressure, speed, etc., are described.
The message content is as follows: the specific content of the control information may be instructions, configuration data, status updates, etc.
Keyword: keywords or identifiers for identifying and processing control information.
Network interface index number: if network communications are involved, it may be desirable to specify an index number for the target network interface.
In S304, control information is generated. The master generates control information based on the acquired control parameters. This may include generating control information periodically according to time intervals, or generating control information according to a specific event trigger.
The control information may need to be encoded in a specific format to ensure compatibility with the receiving end.
In S306, control information is transmitted to the service module. The main control sends the generated control information to the service module through the interface board channel.
More specifically, before the main control and the standby main control are switched, in a pre-restarting stage, the service module sends the stored message to the corresponding interface board through the interface board channel, and the service module negotiates the transferred parameters in advance: the method comprises the steps of sending a time (slice), a module (module), message content (skb), a packet sending identifier, number (key), ifindex and the like to an interface board, sending the packet sending identifier through the interface board according to the negotiated time and sending the packet sending identifier to a corresponding end master control through a switching chip according to a specified time interval.
The master may, for example, select the correct communication interface on the interface board, configure the parameters, and then transmit the data to the target traffic module. The master may also need to perform some necessary checks to ensure the integrity and accuracy of the data before sending the control information.
The master control may, for example, send information such as a time interval (slice), a module (module), a message content (skb), a key (unique identifier of a message), ifindex (designated moudle _id and port_id) to a designated interface board through an interface board channel, and when the parameter module delivered by the service module is 1, represent sending a message with different content, and when this time, a key value needs to be added, and a flag and a corresponding time interval (slice).
When the parameter module transmitted by the service module is other value, the same message content is sent. The interface board can circularly send according to the time interval sent by the main control only by calling the service module for 1 time until the service module calls the transmission deleting message interface to stop sending.
Fig. 4 is a flowchart illustrating a reliability transmission method applied to a frame device according to another exemplary embodiment. The process 40 shown in fig. 4 is a detailed description of S210 "the service module performs a predetermined operation according to the attribute parameter to send the message to the corresponding panel port" in the process shown in fig. 2.
As shown in fig. 4, in S402, it is determined whether the linked list is empty. The interface board receives the message sent by the main control and stores the message by using the linked list. In order to prevent data errors caused by concurrent access, a locking mode is adopted to protect the atomicity and thread security of linked list operation.
In S404, it is determined whether the attribute parameter is 1. After the panel port receives the message, the message is sent to the opposite terminal equipment through the interface board channel. And the service module analyzes and processes the message after receiving the message so as to execute corresponding operation according to the content of the message.
In S406, the message is sent based on the time interval until the message with the attribute parameter of 1 in the control information in the linked list is sent. The interface board realizes the transmission of the messages stored in the linked list to the appointed panel port according to the time interval parameters transmitted by the main control by creating threads.
If the parameter module sent by the master is 1, the interface board sends the message according to the time interval and releases the message after the sending is completed, and the master is not required to send a deletion command.
In S408, the message is sent based on the time interval until the control information in the linked list is deleted. The interface board realizes the transmission of the messages stored in the linked list to the appointed panel port according to the time interval parameters transmitted by the main control by creating threads.
If the parameter module is other value, the interface board will send the message according to the appointed time interval, but will not release the message until the main control sends the command of deleting the node.
In the scheme of the application, the method for sending and receiving the message by the interface board proxy is provided, so that frame equipment can reliably transmit in the period of time when the main control and the single board are disconnected during the main/standby switching, and the capability of reliably transmitting the channel is improved.
Those skilled in the art will appreciate that all or part of the steps implementing the above described embodiments are implemented as a computer program executed by a CPU. When executed by a CPU, performs the functions defined by the above-described method provided by the present application. The program may be stored in a computer readable storage medium, which may be a read-only memory, a magnetic disk or an optical disk, etc.
Furthermore, it should be noted that the above-described figures are merely illustrative of the processes involved in the method according to the exemplary embodiment of the present application, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
The following are examples of the apparatus of the present application that may be used to perform the method embodiments of the present application. For details not disclosed in the embodiments of the apparatus of the present application, please refer to the embodiments of the method of the present application.
Fig. 5 is a block diagram illustrating a reliability transmission apparatus applied to a frame device according to an exemplary embodiment. As shown in fig. 5, the reliability transmission apparatus 50 applied to the frame device includes: information module 502, sending module 504, extracting module 506, message module 508, operation module 510.
The information module 502 is used for generating control information by the master control; the information module 502 is further configured to obtain control parameters by the master control, where the control parameters include: time interval, attribute parameters, message content, keywords, network interface index number; the control information is generated based on the control parameters.
The sending module 504 is configured to send the control information to a service module by using a master control; and the main control transmits the control information to the service module through the interface board channel.
The extracting module 506 is configured to extract attribute parameters from the control information by using a service module; the service module analyzes the control information and extracts attribute parameters; and storing the control information through a linked list.
The message module 508 is configured to generate a message according to the control information by using the service module; the service module extracts the message content from the control information; and generating a message according to the message content.
The operation module 510 is configured to perform a predetermined operation according to the attribute parameter, so as to send the message to a corresponding panel port. The service module extracts a time interval from the control information; when the attribute parameter is 1, the service module circularly traverses a linked list based on the time interval; transmitting the message in the linked list to the corresponding panel port; and (5) until the message with the attribute parameter of 1 in the control information in the linked list is sent. The service module extracts a time interval from the control information; when the attribute parameter is not 1, the service module sends the message based on the time interval; until the control information in the linked list is deleted. Switching between the main master control and the standby master control; and the standby master control deletes the control information in the linked list.
In general, the present disclosure solves the problem that when a master control is switched with a standby master control, the master control and a single board are disconnected for a period of time, and packets cannot be received and transmitted, and a service module needs to transmit configuration during the period, so that the reliable transmission capability of a channel during the master/standby switching is improved. The invention aims to solve the problem that a main control and a standby main control are disconnected for a period of time and cannot transmit messages when being switched, thereby improving the transmission capacity of a channel to a service module and the stability of the environment of frame type double main control equipment. Specifically, in the pre-restarting stage before the switching between the main control and the standby main control, the service module sends the stored message to the corresponding interface board through the interface board channel, and the service module negotiates the transferred parameters in advance: the method comprises the steps of sending a time (slice), a module (module), message content (skb), a packet sending identifier, number (key), ifindex and the like to an interface board, sending the packet sending identifier through the interface board according to the negotiated time and sending the packet sending identifier to a corresponding end master control through a switching chip according to a specified time interval. The sender master control sends information such as a time interval (slice), a module (module), message content (skb), a key (unique identifier of a message), ifindex (designated moudle _id and port_id) and the like to a designated interface board through an interface board channel by using parameters transmitted by a service module, when the parameter module transmitted by the service module is 1, the message of different contents is sent, and when the parameter module transmitted by the service module is 1, a key value is needed, and a mark and a corresponding time interval (slice) are added. When the parameter module transmitted by the service module is other value, the same message content is sent. The interface board can circularly send according to the time interval sent by the main control only by calling the service module for 1 time until the service module calls the transmission deleting message interface to stop sending. The receiving interface board receives the message sent by the main control, stores the message by using a linked list (the linked list is prevented from being concurrent by locking), adopts a thread creation mode, sends the message to a designated panel port through a switching chip according to the time interval (slice) parameter transmitted by the main control, and sends the message to the opposite terminal equipment through an interface board channel after the panel port receives the message, and the service module processes and analyzes the message. If the parameter module sent by the master is 1, the interface board sends a message to the corresponding panel port according to the time interval transmitted by the master, and then a message is released by sending a message, and the master is not required to send a deletion command for deletion. if the parameter module sent by the master is received as other values, the interface board will also send the message according to the designated time cycle, but will not release the message until the master sends a command to delete the node, and the message will be released, which means that the sending is completed. Thus, the reliable channel transmission is carried out in the period of switching off the main control channel and the standby main control channel, and the stability of the frame type double main control equipment is improved.
According to the reliability transmission device applied to the frame type equipment, control information is generated through the main control; the master control sends the control information to a service module; the service module extracts attribute parameters from the control information; the service module generates a message according to the control information; the service module executes the preset operation according to the attribute parameters to send the message to the corresponding panel port, so that the message can be kept to be sent in the period of time when the main control and the single board are disconnected during the main/standby switching, thereby ensuring the reliable information transmission and improving the capability of the channel for reliable transmission.
Fig. 6 is a block diagram of an electronic device, according to an example embodiment.
An electronic device 600 according to this embodiment of the application is described below with reference to fig. 6. The electronic device 600 shown in fig. 6 is merely an example, and should not be construed as limiting the functionality and scope of use of embodiments of the present application.
As shown in fig. 6, the electronic device 600 is in the form of a general purpose computing device. Components of electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one memory unit 620, a bus 630 connecting the different system components (including the memory unit 620 and the processing unit 610), a display unit 640, etc.
Wherein the storage unit stores program code that is executable by the processing unit 610 such that the processing unit 610 performs steps according to various exemplary embodiments of the present application described in the present specification. For example, the processing unit 610 may perform the steps as shown in fig. 2,3, and 4.
The memory unit 620 may include readable media in the form of volatile memory units, such as Random Access Memory (RAM) 6201 and/or cache memory unit 6202, and may further include Read Only Memory (ROM) 6203.
The storage unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 630 may be a local bus representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more external devices 600' (e.g., keyboard, pointing device, bluetooth device, etc.), devices that enable a user to interact with the electronic device 600, and/or any devices (e.g., routers, modems, etc.) that the electronic device 600 can communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 650. Also, electronic device 600 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 over the bus 630. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 600, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, as shown in fig. 7, the technical solution according to the embodiment of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, or a network device, etc.) to perform the above-described method according to the embodiment of the present application.
The software product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable storage medium may also be any readable medium that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The computer-readable medium carries one or more programs, which when executed by one of the devices, cause the computer-readable medium to perform the functions of: the master control generates control information; the master control sends the control information to a service module; the service module extracts attribute parameters from the control information; the service module generates a message according to the control information; and the service module executes preset operation according to the attribute parameters so as to send the message to the corresponding panel port.
Those skilled in the art will appreciate that the modules may be distributed throughout several devices as described in the embodiments, and that corresponding variations may be implemented in one or more devices that are unique to the embodiments. The modules of the above embodiments may be combined into one module, or may be further split into a plurality of sub-modules.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the method according to the embodiments of the present application.
The exemplary embodiments of the present application have been particularly shown and described above. It is to be understood that this application is not limited to the precise arrangements, instrumentalities and instrumentalities described herein; on the contrary, the application is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (10)

1. A reliability transmission method applied to a frame device, comprising:
The master control generates control information;
The master control sends the control information to a service module;
the service module extracts attribute parameters from the control information;
The service module generates a message according to the control information;
and the service module executes preset operation according to the attribute parameters so as to send the message to the corresponding panel port.
2. The method of claim 1, wherein the master generates the control information comprising:
Before the main control and the standby main control of the frame type equipment are switched, the main control generates the control information; and/or
And in a pre-restarting stage of the master control equipment, the master control generates the control information.
3. The method of claim 1, wherein the master generates the control information comprising:
the master control acquires control parameters, wherein the control parameters comprise: time interval, attribute parameters, message content, keywords, network interface index number;
The control information is generated based on the control parameters.
4. The method of claim 1, wherein the master sends the control information to a service module, comprising:
and the main control transmits the control information to the service module through the interface board channel.
5. The method of claim 1, wherein the service module extracts attribute parameters from the control information, comprising:
The service module analyzes the control information and extracts attribute parameters;
and storing the control information through a linked list.
6. The method of claim 1, wherein the service module generating a message according to the control information comprises:
the service module extracts the message content from the control information;
And generating a message according to the message content.
7. The method of claim 1, wherein the service module performing a predetermined operation to send the message to the corresponding panel port according to the attribute parameter comprises:
The service module extracts a time interval from the control information;
when the attribute parameter is 1, the service module circularly traverses a linked list based on the time interval;
transmitting the message in the linked list to the corresponding panel port;
And (5) until the message with the attribute parameter of 1 in the control information in the linked list is sent.
8. The method of claim 1, wherein the service module performing a predetermined operation to send the message to the corresponding panel port according to the attribute parameter comprises:
The service module extracts a time interval from the control information;
when the attribute parameter is not 1, the service module sends the message based on the time interval;
until the control information in the linked list is deleted.
9. The method of claim 8, comprising, until control information in the linked list is deleted:
Switching between the main master control and the standby master control;
and the standby master control deletes the control information in the linked list.
10. A reliability transmission apparatus applied to a frame device, comprising:
The information module is used for generating control information by the main control;
the sending module is used for sending the control information to the service module by the main control;
The extraction module is used for extracting attribute parameters from the control information by the service module;
the message module is used for generating a message according to the control information by the service module;
And the operation module is used for executing preset operation according to the attribute parameters by the service module so as to send the message to the corresponding panel port.
CN202410493788.8A 2024-04-23 2024-04-23 Reliability transmission method and device applied to frame type equipment Pending CN118433014A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410493788.8A CN118433014A (en) 2024-04-23 2024-04-23 Reliability transmission method and device applied to frame type equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410493788.8A CN118433014A (en) 2024-04-23 2024-04-23 Reliability transmission method and device applied to frame type equipment

Publications (1)

Publication Number Publication Date
CN118433014A true CN118433014A (en) 2024-08-02

Family

ID=92315380

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410493788.8A Pending CN118433014A (en) 2024-04-23 2024-04-23 Reliability transmission method and device applied to frame type equipment

Country Status (1)

Country Link
CN (1) CN118433014A (en)

Similar Documents

Publication Publication Date Title
US9331870B2 (en) Switch, information processing apparatus, and information processing system
CN101908980B (en) Network management upgrading method and system
CN104408071A (en) Distributive database high-availability method and system based on cluster manager
CN110780615B (en) System and method for transmitting data on high availability industrial control system
US7093013B1 (en) High availability system for network elements
CN104243205A (en) Message processing method and device used during virtual switch fault
CN107666415B (en) Optimization method and device of FC-AE-1553 protocol bridge
CN104486128B (en) A kind of system and method for realizing redundancy heartbeat between dual controller node
CN110868278B (en) Method for dual-computer redundancy of communication front-end processor of rail transit comprehensive monitoring system
CN112583931A (en) Message processing method, message middleware, electronic device and storage medium
CN103532753A (en) Double-computer hot standby method based on memory page replacement synchronization
CN112527567A (en) System disaster tolerance method, device, equipment and storage medium
CN115589273A (en) EPA communication system
CN116699964A (en) Redundant operation method and system for industrial process controller
CN111651320A (en) High-concurrency connection method and system
CN112217718A (en) Service processing method, device, equipment and storage medium
CN118433014A (en) Reliability transmission method and device applied to frame type equipment
JP4806382B2 (en) Redundant system
CN105550065A (en) Database server communication management method and device
CN114124803B (en) Device management method and device, electronic device and storage medium
US6496863B1 (en) Method and system for communication in a heterogeneous network
CN107995319A (en) Virtual unit collocation method and the network equipment
CN114422335A (en) Communication method, communication device, server and storage medium
CN116074187A (en) Main-standby link switching method and device, electronic equipment and storage medium
WO2019216210A1 (en) Service continuation system and service continuation method

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