CN114003441A - Hot backup redundancy processing method and device for switch - Google Patents
Hot backup redundancy processing method and device for switch Download PDFInfo
- Publication number
- CN114003441A CN114003441A CN202111656198.5A CN202111656198A CN114003441A CN 114003441 A CN114003441 A CN 114003441A CN 202111656198 A CN202111656198 A CN 202111656198A CN 114003441 A CN114003441 A CN 114003441A
- Authority
- CN
- China
- Prior art keywords
- data
- module
- preset
- path
- hot backup
- 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
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 22
- 238000012545 processing Methods 0.000 claims abstract description 142
- 238000000034 method Methods 0.000 claims abstract description 46
- 238000006243 chemical reaction Methods 0.000 claims description 55
- 238000011084 recovery Methods 0.000 claims description 45
- 238000004590 computer program Methods 0.000 claims description 13
- 101100283411 Arabidopsis thaliana GMII gene Proteins 0.000 description 9
- 238000004891 communication Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000003139 buffering effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 125000004122 cyclic group Chemical group 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/20—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
- G06F11/2002—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where interconnections or communication control functionality are redundant
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/20—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
- G06F11/202—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/20—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
- G06F11/2053—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where persistent mass storage functionality or persistent mass storage control functionality is redundant
- G06F11/2089—Redundant storage control functionality
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Hardware Redundancy (AREA)
Abstract
The invention provides a hot backup redundancy processing method and device for a switch. Wherein the method comprises the following steps: in the process of hot backup processing of the switch, a data frame sent by a media access controller is forwarded to a physical interface transceiver based on a preset data distribution module; and receiving two paths of signals obtained by encoding of the physical interface transceiver based on a preset hot backup redundancy processing module, and performing full-byte redundancy removal comparison processing on the two paths of signals based on the hot backup redundancy processing module to obtain target data after redundancy processing. By adopting the method provided by the invention, the data frame sent by the media access controller is shunted by arranging the data shunting module, and the redundancy processing is carried out on the corresponding signal coded by the physical interface transceiver based on the hot backup redundancy processing module, so that the redundancy removing time of the switch can be effectively reduced, and the data forwarding delay in the hot backup process is reduced.
Description
Technical Field
The invention relates to the technical field of Ethernet communication, in particular to a hot backup redundancy processing method and device for a switch. In addition, an electronic device and a processor-readable storage medium are also related.
Background
In recent years, with the rapid development of computer technology, network communication systems implemented based on ethernet have grown to maturity. As a mature computer local area network bus technology, ethernet has the advantages of large throughput, support of optical fiber transmission, flexible topology structure, and the like, and network communication systems based on ethernet are increasingly widely used. However, in the hot backup process of the switch of the conventional network communication system, the performance and real-time performance of the network are affected by the data forwarding delay. The existing hot backup implementation process processes redundant data after a Media Access Control (MAC) chip, and this processing method consumes too long time, increases forwarding delay, and requires a large number of MACs.
Therefore, how to implement reduction of data forwarding delay and fast data forwarding aiming at a hot backup redundancy processing scheme of a switch becomes a difficult problem to be solved urgently at present.
Disclosure of Invention
Therefore, the invention provides a hot backup redundancy processing method and a hot backup redundancy processing device for an exchanger, and aims to solve the problems of longer redundancy removing time and data forwarding delay caused by higher limitation of a hot backup redundancy processing scheme for the exchanger in the prior art.
In a first aspect, the present invention provides a hot backup redundancy processing method for a switch, including:
in the process of hot backup processing of the switch, a data frame sent by a media access controller is forwarded to a physical interface transceiver based on a preset data distribution module;
and receiving two paths of signals obtained by encoding of the physical interface transceiver based on a preset hot backup redundancy processing module, and performing full-byte redundancy removal comparison processing on the two paths of signals based on the hot backup redundancy processing module to obtain target data after redundancy processing.
Further, based on the hot backup redundancy processing module, performing full-byte redundancy removal comparison processing on the two paths of signals to obtain target data after redundancy processing, specifically including:
forwarding a first path of signals to a first bit width conversion module based on a first interface preset in the hot backup redundancy processing module, and performing bit width conversion on the first path of signals based on the first bit width conversion module to obtain a first path of data frame to be transmitted; recording and caching the first path of data frame based on a preset first receiving caching module;
forwarding a second path of signals to a second bit width conversion module based on a second interface preset in the hot backup redundancy processing module, and performing bit width conversion on the second path of signals based on the second bit width conversion module to obtain a second path of data frames to be transmitted; recording and caching the second path of data frame based on a preset second receiving and caching module;
based on a preset full-frame comparison and port comparison mode, repeatedly identifying the first receiving cache module or the second receiving cache module with historical data recorded by the repeated data identification module respectively, and storing a target data frame meeting a preset condition after repeated identification to a data recovery cache module; performing bit width conversion processing on the stored target data frame by using a preset bit width recovery module to obtain target data subjected to Ethernet hot backup redundancy processing; the two paths of signals comprise the first path of signals and the second path of signals.
Further, the storing the target data frame which meets the preset condition after the repeated identification to the data recovery cache module specifically includes:
after repeated identification, when the data frames are determined to be different, the data frames are stored in a data recovery cache module; when the data frame and the port are determined to be the same, storing the data frame to a data recovery cache module; when the data frames are determined to be the same and the ports are different, the data frames are forbidden to be stored in a data recovery cache module; the data frames comprise a first path of data frame or a second path of data frame and data frames in historical data.
Further, the data frame in the history data is the data frame already stored in the data recovery cache module.
Further, the two signals are obtained by encoding the converted serial stream data by the physical interface transceiver based on a preset encoding rule of a physical layer.
Further, the step of accessing the data frame sent by the media access controller based on the preset data offloading module specifically includes:
processing the data frame sent by the media access controller into two parallel data frames based on the data distribution module, and forwarding the two parallel data frames to the physical interface transceiver; the two parallel data frames respectively correspond to the two signals.
In a second aspect, the present invention further provides a hot backup redundancy processing apparatus for a switch, including:
the parallel data distribution processing unit is used for forwarding a data frame sent by the media access controller to the physical interface transceiver based on a preset data distribution module in the hot backup processing process of the switch;
and the data redundancy processing unit is used for receiving the two paths of signals obtained by encoding of the physical interface transceiver based on a preset hot backup redundancy processing module, and carrying out full byte redundancy removal comparison processing on the two paths of signals based on the hot backup redundancy processing module to obtain target data after redundancy processing.
Further, the data redundancy processing unit is specifically configured to:
forwarding a first path of signals to a first bit width conversion module based on a first interface preset in the hot backup redundancy processing module, and performing bit width conversion on the first path of signals based on the first bit width conversion module to obtain a first path of data frame to be transmitted; recording and caching the first path of data frame based on a preset first receiving caching module;
forwarding a second path of signals to a second bit width conversion module based on a second interface preset in the hot backup redundancy processing module, and performing bit width conversion on the second path of signals based on the second bit width conversion module to obtain a second path of data frames to be transmitted; recording and caching the second path of data frame based on a preset second receiving and caching module;
based on a preset full-frame comparison and port comparison mode, repeatedly identifying the first receiving cache module or the second receiving cache module with historical data recorded by the repeated data identification module respectively, and storing a target data frame meeting a preset condition after repeated identification to a data recovery cache module; performing bit width conversion processing on the stored target data frame by using a preset bit width recovery module to obtain target data subjected to Ethernet hot backup redundancy processing; the two paths of signals comprise the first path of signals and the second path of signals.
Further, the storing the target data frame which meets the preset condition after the repeated identification to the data recovery cache module specifically includes:
after repeated identification, when the data frames are determined to be different, the data frames are stored in a data recovery cache module; when the data frame and the port are determined to be the same, storing the data frame to a data recovery cache module; when the data frames are determined to be the same and the ports are different, the data frames are forbidden to be stored in a data recovery cache module; the data frames comprise a first path of data frame or a second path of data frame and data frames in historical data.
Further, the data frame in the history data is the data frame already stored in the data recovery cache module.
Further, the two signals are obtained by encoding the converted serial stream data by the physical interface transceiver based on a preset encoding rule of a physical layer.
Further, the parallel data splitting processing unit is specifically configured to:
processing the data frame sent by the media access controller into two parallel data frames based on the data distribution module, and forwarding the two parallel data frames to the physical interface transceiver; the two parallel data frames respectively correspond to the two signals.
In a third aspect, the present invention also provides an electronic device, including: the hot backup redundancy processing method for the switch comprises a memory, a processor and a computer program stored on the memory and running on the processor, wherein the processor executes the computer program to realize the steps of the hot backup redundancy processing method for the switch.
In a fourth aspect, the present invention further provides a processor-readable storage medium, having stored thereon a computer program, which when executed by a processor, implements the steps of the hot-standby redundancy processing method for a switch as described in any one of the above.
According to the hot backup redundancy processing method for the switch, provided by the embodiment of the invention, the data frame sent by the media access controller is shunted by the data shunting module, and the corresponding signal coded by the physical interface transceiver is subjected to redundancy processing based on the hot backup redundancy processing module, so that the redundancy removing time of the switch can be effectively reduced, and the data forwarding delay in the hot backup process is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a hot backup redundancy processing method for a switch according to an embodiment of the present invention;
fig. 2 is an application schematic diagram of a hot backup redundancy processing method for a switch according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of performing full-byte redundancy elimination comparison processing in the hot backup redundancy processing method for the switch according to the embodiment of the present invention;
fig. 4 is a schematic structural diagram of a hot-standby redundancy processing apparatus for a switch according to an embodiment of the present invention;
fig. 5 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following describes an embodiment of a hot backup redundancy processing method for a switch according to the present invention in detail. As shown in fig. 1, which is a schematic flowchart of a hot backup redundancy processing method for a switch according to an embodiment of the present invention, a specific implementation process includes the following steps:
step 101: and in the hot backup processing process of the switch, forwarding the data frame sent by the media access controller to the physical interface transceiver based on a preset data distribution module.
Specifically, the Switch (FC) is a high-speed network transmission relay device. In the embodiment of the present invention, during the hot backup processing of the switch, a data frame sent by a media access controller may be acquired at a front segment of the media access controller based on a preset data splitting module through a Field Programmable Gate Array (FPGA) chip, and the data frame is forwarded to a physical interface transceiver, that is, full-byte redundancy removal comparison processing is performed between the media access controller and the physical interface transceiver, so that a high-speed parallel characteristic is improved, the redundancy removal time is reduced, the forwarding delay is reduced, and the hot backup processing of the switch can be implemented only by one media access controller in a specific implementation process. The Media Access controller refers to a Media Access Control (MAC) chip of the ethernet card, and the Physical interface transceiver refers to a Physical layer (PHY) chip of the ethernet card.
Step 102: and receiving two paths of signals obtained by encoding of the physical interface transceiver based on a preset hot backup redundancy processing module, and performing full-byte redundancy removal comparison processing on the two paths of signals based on the hot backup redundancy processing module to obtain target data after redundancy processing.
In the embodiment of the present invention, the hot backup redundancy processing module performs full-byte redundancy removal comparison processing on the two paths of signals to obtain target data after redundancy processing, and the specific implementation process includes: forwarding a first path of signals to a first bit width conversion module based on a first interface preset in the hot backup redundancy processing module, and performing bit width conversion on the first path of signals based on the first bit width conversion module to obtain a first path of data frame to be transmitted; recording and caching the first path of data frame based on a preset first receiving caching module; forwarding a second path of signals to a second bit width conversion module based on a second interface preset in the hot backup redundancy processing module, and performing bit width conversion on the second path of signals based on the second bit width conversion module to obtain a second path of data frames to be transmitted; recording and caching the second path of data frame based on a preset second receiving and caching module; based on a preset full-frame comparison and port comparison mode, repeatedly identifying the first receiving cache module or the second receiving cache module with historical data recorded by the repeated data identification module respectively, and storing a target data frame meeting a preset condition after repeated identification to a data recovery cache module; and performing bit width conversion processing on the stored target data frame by using a preset bit width recovery module to obtain target data subjected to Ethernet hot backup redundancy processing. The two paths of signals comprise the first path of signals, the second path of signals and the like. The first interface and the second interface are both preset Gigabit media independent interfaces (GMII interfaces). The two paths of signals are obtained by encoding the converted serial stream data by the physical interface transceiver based on a preset encoding rule of a physical layer.
The target data frame which meets the preset condition after repeated identification is stored in the data recovery cache module, and the specific implementation process comprises the following steps: after repeated identification, analyzing whether a target data frame meeting a preset condition exists or not, and storing the data frame to a data recovery cache module when the data frame is determined to be different; when the data frame and the port are determined to be the same, storing the data frame to a data recovery cache module; and when the data frames are determined to be the same and the ports are not the same, the data frames are forbidden to be stored in the data recovery cache module. The data frames comprise a first path of data frame or a second path of data frame and data frames in historical data. And the data frame in the historical data is the data frame stored in the data recovery cache module.
In the embodiment of the invention, in the receiving direction of the data frame, redundancy processing is carried out between the Ethernet physical interface transceiver and the media access controller, and the data with the same two ports is discarded. In the data frame sending direction, the data frame of the media access controller is directly distributed to two physical interface transceiver interfaces, which are configured as shown in fig. 2.
Two-way data is taken as an example for explanation, and the physical interface transceiver includes a physical interface transceiver 1 and a physical interface transceiver 2. The data frame to be transmitted by the media access controller is directly divided into two paths of identical data by a data splitting module (such as a one-to-two module) and transmitted to the physical interface transceiver 1 and the physical interface transceiver 2. And the physical interface transceiver 1 and the physical interface transceiver 2 acquire the data shunted by the data shunting module and then encode the data, and acquire two corresponding paths of signals through the hot backup redundancy processing module to perform full byte redundancy removal comparison processing, so as to obtain target data after redundancy processing. The one-to-two module is used for directly dividing the data frame to be sent by the media access controller into two paths of identical data, and the design is simple and is not described in detail herein. The hot backup redundancy processing module needs to implement receiving processing of two paths of data, and discards the same data frame on two paths of ports, which is implemented as shown in fig. 3.
In an embodiment of the present invention, the hot backup redundancy processing module may include sub-modules such as a GMII _ a (i.e., a first interface), a GMII _ B (i.e., a second interface), a first bit width conversion module, a second bit width conversion module, an a-way cache (i.e., the first receiving cache module), a B-way cache (i.e., a second receiving cache module), a duplicate data identification module (e.g., including a polling cache, a query history, a data comparison), a temporary data cache, history data (n pieces), a data recovery cache module, a bit width recovery module, and a GMII interface. The GMII interface in the figure is an exemplary interface adapted between the PHY chip and the MAC chip, but is not limited to using this type of interface. In a specific implementation process, the data frame from the GMII _ a module can be received and subjected to bit width conversion based on the first bit width conversion module; and the second bit width conversion module receives the data frame from the GMII _ B module and performs bit width conversion, so that data carrying processing of subsequent modules is facilitated. Receiving a data frame from the first bit width conversion module for bit width conversion based on the A-way cache, and caching; and receiving the data frame subjected to bit width conversion from the second bit width conversion module based on the B-path cache for caching. And comparing the cached data in the A-way cache or the B-way cache based on the repeated data identification module, and performing repeated identification on the data and the historical data of the query history record. And buffering the data frame when the full frame comparison is carried out based on the temporary data buffering module. And caching the data frames meeting the preset conditions after comparison by a data recovery-based caching module. And performing bit width conversion processing on the cache data based on the bit width recovery module to convert the cache data into the GMII data bit width.
Wherein, the whole-byte redundancy removal comparison processing flow specifically comprises: and after bit width conversion is carried out on the data received by each path, caching is carried out, and in order to match the bandwidth and reduce the delay, the bit width of the data can be properly increased. And repeatedly identifying the data received by the A-way cache or the B-way cache and the historical data of the query history record of the repeated data identification module by adopting a full-frame comparison and port comparison mode. Specifically, under the condition that the data frames are inconsistent, allowing the data frames to enter a data recovery cache module; under the condition that the port is consistent with the data frame, allowing the data frame to enter a data recovery cache module; and under the condition that the data frames are consistent and the ports are not consistent, the data frames are not allowed to enter the data recovery buffer module. Meanwhile, historical data are stored in the data sent to the data recovery cache module, each record adopts an independent storage space and a port identifier, a historical cyclic record is designed, and the historical storage can be updated after n frames. And finally, performing bit width conversion on the compared data to convert the compared data into the GMII data bit width.
It should be noted that, in the specific implementation process, the physical interface transceiver in the present invention includes, but is not limited to, a physical interface transceiver 1 and a physical interface transceiver 2, and may further include other physical interface transceivers, that is, based on a preset hot backup redundancy processing module, at least two signals obtained by the physical interface transceiver can be received, and full byte redundancy removal comparison processing is performed on the at least two signals, so as to obtain target data after redundancy processing. The specific implementation process is similar to the processing process of the two signals, and is not repeated here.
According to the hot backup redundancy processing method for the switch, provided by the embodiment of the invention, the data frame sent by the media access controller is shunted by the data shunting module, and the corresponding signal coded by the physical interface transceiver is subjected to redundancy processing based on the hot backup redundancy processing module, so that the redundancy removing time of the switch can be effectively reduced, and the data forwarding delay in the hot backup process is reduced.
Corresponding to the hot backup redundancy processing method for the switch, the invention also provides a hot backup redundancy processing device for the switch. Since the embodiment of the apparatus is similar to the above method embodiment, so that the description is relatively simple, and please refer to the description of the above method embodiment, the following description of the embodiment of the hot backup redundancy processing apparatus for a switch is only illustrative.
Fig. 4 is a schematic structural diagram of a hot standby redundancy processing apparatus for a switch according to an embodiment of the present invention.
The hot backup redundancy processing device aiming at the switch comprises the following parts:
the parallel data offloading processing unit 401 is configured to forward a data frame sent by the media access controller to the physical interface transceiver based on a preset data offloading module in a hot standby processing process of the switch;
and the data redundancy processing unit 402 is configured to receive the two paths of signals obtained by encoding the physical interface transceiver based on a preset hot backup redundancy processing module, and perform full-byte redundancy removal comparison processing on the two paths of signals based on the hot backup redundancy processing module to obtain target data after redundancy processing.
The parallel data distribution processing unit is used for forwarding a data frame sent by the media access controller to the physical interface transceiver based on a preset data distribution module in the hot backup processing process of the switch;
and the data redundancy processing unit is used for receiving the two paths of signals obtained by encoding of the physical interface transceiver based on a preset hot backup redundancy processing module, and carrying out full byte redundancy removal comparison processing on the two paths of signals based on the hot backup redundancy processing module to obtain target data after redundancy processing.
Further, the data redundancy processing unit is specifically configured to:
forwarding a first path of signals to a first bit width conversion module based on a first interface preset in the hot backup redundancy processing module, and performing bit width conversion on the first path of signals based on the first bit width conversion module to obtain a first path of data frame to be transmitted; recording and caching the first path of data frame based on a preset first receiving caching module;
forwarding a second path of signals to a second bit width conversion module based on a second interface preset in the hot backup redundancy processing module, and performing bit width conversion on the second path of signals based on the second bit width conversion module to obtain a second path of data frames to be transmitted; recording and caching the second path of data frame based on a preset second receiving and caching module;
based on a preset full-frame comparison and port comparison mode, repeatedly identifying the first receiving cache module or the second receiving cache module with historical data recorded by the repeated data identification module respectively, and storing a target data frame meeting a preset condition after repeated identification to a data recovery cache module; performing bit width conversion processing on the stored target data frame by using a preset bit width recovery module to obtain target data subjected to Ethernet hot backup redundancy processing; the two paths of signals comprise the first path of signals and the second path of signals.
Further, the storing the target data frame which meets the preset condition after the repeated identification to the data recovery cache module specifically includes:
after repeated identification, when the data frames are determined to be different, the data frames are stored in a data recovery cache module; when the data frame and the port are determined to be the same, storing the data frame to a data recovery cache module; when the data frames are determined to be the same and the ports are different, the data frames are forbidden to be stored in a data recovery cache module; the data frames comprise a first path of data frame or a second path of data frame and data frames in historical data.
Further, the data frame in the history data is the data frame already stored in the data recovery cache module. The two paths of signals are obtained by encoding the converted serial stream data by the physical interface transceiver based on a preset encoding rule of a physical layer. The first interface and the second interface are both preset gigabit media independent interfaces.
According to the hot backup redundancy processing device for the switch, provided by the embodiment of the invention, the data frame sent by the media access controller is shunted by the data shunting module, and the corresponding signal coded by the physical interface transceiver is subjected to redundancy processing based on the hot backup redundancy processing module, so that the redundancy removing time of the switch can be effectively reduced, and the data forwarding delay in the hot backup process is reduced.
Corresponding to the hot backup redundancy processing method for the switch, the invention also provides electronic equipment. Since the embodiment of the electronic device is similar to the above method embodiment, the description is simple, and please refer to the description of the above method embodiment, and the electronic device described below is only schematic. Fig. 5 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention. The electronic device may include: a processor (processor) 501, a memory (memory) 502 and a communication bus 503, wherein the processor 501 and the memory 502 communicate with each other through the communication bus 503 and communicate with the outside through a communication interface 504. Processor 501 may invoke logic instructions in memory 502 to perform a hot standby redundancy handling method for the switch. The method comprises the following steps: in the process of hot backup processing of the switch, a data frame sent by a media access controller is forwarded to a physical interface transceiver based on a preset data distribution module; and receiving two paths of signals obtained by encoding of the physical interface transceiver based on a preset hot backup redundancy processing module, and performing full-byte redundancy removal comparison processing on the two paths of signals based on the hot backup redundancy processing module to obtain target data after redundancy processing.
Furthermore, the logic instructions in the memory 502 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a Memory chip, a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In another aspect, embodiments of the present invention further provide a computer program product, where the computer program product includes a computer program stored on a processor-readable storage medium, where the computer program includes program instructions, and when the program instructions are executed by a computer, the computer is capable of executing the hot-backup redundancy processing method for a switch provided by the above-mentioned method embodiments. The method comprises the following steps: in the process of hot backup processing of the switch, a data frame sent by a media access controller is forwarded to a physical interface transceiver based on a preset data distribution module; and receiving two paths of signals obtained by encoding of the physical interface transceiver based on a preset hot backup redundancy processing module, and performing full-byte redundancy removal comparison processing on the two paths of signals based on the hot backup redundancy processing module to obtain target data after redundancy processing.
In still another aspect, an embodiment of the present invention further provides a processor-readable storage medium, where a computer program is stored on the processor-readable storage medium, and the computer program is implemented to perform the hot backup redundancy processing method for a switch provided in the foregoing embodiments when executed by a processor. The method comprises the following steps: in the process of hot backup processing of the switch, a data frame sent by a media access controller is forwarded to a physical interface transceiver based on a preset data distribution module; and receiving two paths of signals obtained by encoding of the physical interface transceiver based on a preset hot backup redundancy processing module, and performing full-byte redundancy removal comparison processing on the two paths of signals based on the hot backup redundancy processing module to obtain target data after redundancy processing.
The processor-readable storage medium can be any available medium or data storage device that can be accessed by a processor, including, but not limited to, magnetic memory (e.g., floppy disks, hard disks, magnetic tape, magneto-optical disks (MOs), etc.), optical memory (e.g., CDs, DVDs, BDs, HVDs, etc.), and semiconductor memory (e.g., ROMs, EPROMs, EEPROMs, non-volatile memory (NAND FLASH), Solid State Disks (SSDs)), etc.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A hot backup redundancy processing method for a switch is characterized by comprising the following steps:
in the process of hot backup processing of the switch, a data frame sent by a media access controller is forwarded to a physical interface transceiver based on a preset data distribution module;
and receiving two paths of signals obtained by encoding of the physical interface transceiver based on a preset hot backup redundancy processing module, and performing full-byte redundancy removal comparison processing on the two paths of signals based on the hot backup redundancy processing module to obtain target data after redundancy processing.
2. The method for processing hot backup redundancy for an exchange as claimed in claim 1, wherein the performing full byte redundancy removal comparison processing on the two signals based on the hot backup redundancy processing module to obtain target data after redundancy processing specifically comprises:
forwarding a first path of signals to a first bit width conversion module based on a first interface preset in the hot backup redundancy processing module, and performing bit width conversion on the first path of signals based on the first bit width conversion module to obtain a first path of data frame to be transmitted; recording and caching the first path of data frame based on a preset first receiving caching module;
forwarding a second path of signals to a second bit width conversion module based on a second interface preset in the hot backup redundancy processing module, and performing bit width conversion on the second path of signals based on the second bit width conversion module to obtain a second path of data frames to be transmitted; recording and caching the second path of data frame based on a preset second receiving and caching module;
based on a preset full-frame comparison and port comparison mode, repeatedly identifying the first receiving cache module or the second receiving cache module with historical data recorded by the repeated data identification module respectively, and storing a target data frame meeting a preset condition after repeated identification to a data recovery cache module; performing bit width conversion processing on the stored target data frame by using a preset bit width recovery module to obtain target data subjected to Ethernet hot backup redundancy processing; the two paths of signals comprise the first path of signals and the second path of signals.
3. The method according to claim 2, wherein the step of storing the target data frame that satisfies the preset condition after repeated identification in the data recovery cache module specifically includes:
after repeated identification, when the data frames are determined to be different, the data frames are stored in a data recovery cache module; when the data frame and the port are determined to be the same, storing the data frame to a data recovery cache module; when the data frames are determined to be the same and the ports are different, the data frames are forbidden to be stored in a data recovery cache module; the data frames comprise a first path of data frame or a second path of data frame and data frames in historical data.
4. The method according to claim 3, wherein the data frames in the history data are data frames already stored in the data recovery cache module.
5. The method according to claim 1, wherein the two signals are obtained by encoding the converted serial stream data by the physical interface transceiver based on a preset encoding rule of a physical layer.
6. The method according to claim 1, wherein the processing of the hot backup redundancy for the switch based on the data frame sent by the media access controller by the preset data offloading module specifically includes:
processing the data frame sent by the media access controller into two parallel data frames based on the data distribution module, and forwarding the two parallel data frames to the physical interface transceiver; the two parallel data frames respectively correspond to the two signals.
7. A hot standby redundancy handling apparatus for a switch, comprising:
the parallel data distribution processing unit is used for forwarding a data frame sent by the media access controller to the physical interface transceiver based on a preset data distribution module in the hot backup processing process of the switch;
and the data redundancy processing unit is used for receiving the two paths of signals obtained by encoding of the physical interface transceiver based on a preset hot backup redundancy processing module, and carrying out full byte redundancy removal comparison processing on the two paths of signals based on the hot backup redundancy processing module to obtain target data after redundancy processing.
8. The apparatus for processing hot standby redundancy for a switch according to claim 7, wherein the data redundancy processing unit is specifically configured to:
forwarding a first path of signals to a first bit width conversion module based on a first interface preset in the hot backup redundancy processing module, and performing bit width conversion on the first path of signals based on the first bit width conversion module to obtain a first path of data frame to be transmitted; recording and caching the first path of data frame based on a preset first receiving caching module;
forwarding a second path of signals to a second bit width conversion module based on a second interface preset in the hot backup redundancy processing module, and performing bit width conversion on the second path of signals based on the second bit width conversion module to obtain a second path of data frames to be transmitted; recording and caching the second path of data frame based on a preset second receiving and caching module;
based on a preset full-frame comparison and port comparison mode, repeatedly identifying the first receiving cache module or the second receiving cache module with historical data recorded by the repeated data identification module respectively, and storing a target data frame meeting a preset condition after repeated identification to a data recovery cache module; performing bit width conversion processing on the stored target data frame by using a preset bit width recovery module to obtain target data subjected to Ethernet hot backup redundancy processing; the two paths of signals comprise the first path of signals and the second path of signals.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and running on the processor, wherein the processor when executing the computer program implements the steps of the hot-standby redundancy handling method for a switch according to any of claims 1 to 6.
10. A processor readable storage medium having a computer program stored thereon, wherein the computer program when executed by a processor implements the steps of the hot-standby redundancy handling method for a switch according to any of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111656198.5A CN114003441B (en) | 2021-12-31 | 2021-12-31 | Hot backup redundancy processing method and device for switch |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111656198.5A CN114003441B (en) | 2021-12-31 | 2021-12-31 | Hot backup redundancy processing method and device for switch |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114003441A true CN114003441A (en) | 2022-02-01 |
CN114003441B CN114003441B (en) | 2022-06-21 |
Family
ID=79932409
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111656198.5A Active CN114003441B (en) | 2021-12-31 | 2021-12-31 | Hot backup redundancy processing method and device for switch |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114003441B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101212287A (en) * | 2006-12-30 | 2008-07-02 | 北京三星通信技术研究有限公司 | Port based redundant backup method |
WO2019085634A1 (en) * | 2017-11-01 | 2019-05-09 | 中兴通讯股份有限公司 | Method for processing data in ethernet, physical layer chip, and a storage medium |
CN110212983A (en) * | 2018-02-28 | 2019-09-06 | 中航光电科技股份有限公司 | A kind of conversion method and device of FC signal and ethernet signal |
CN110380916A (en) * | 2019-08-26 | 2019-10-25 | 上海航天测控通信研究所 | The Ethernet crossing redundancy standby system and method adaptively switched |
CN111683021A (en) * | 2020-07-17 | 2020-09-18 | 合肥国科天迅科技有限公司 | Multi-protocol terminal with double-path redundant output for switch |
-
2021
- 2021-12-31 CN CN202111656198.5A patent/CN114003441B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101212287A (en) * | 2006-12-30 | 2008-07-02 | 北京三星通信技术研究有限公司 | Port based redundant backup method |
WO2019085634A1 (en) * | 2017-11-01 | 2019-05-09 | 中兴通讯股份有限公司 | Method for processing data in ethernet, physical layer chip, and a storage medium |
CN110212983A (en) * | 2018-02-28 | 2019-09-06 | 中航光电科技股份有限公司 | A kind of conversion method and device of FC signal and ethernet signal |
CN110380916A (en) * | 2019-08-26 | 2019-10-25 | 上海航天测控通信研究所 | The Ethernet crossing redundancy standby system and method adaptively switched |
CN111683021A (en) * | 2020-07-17 | 2020-09-18 | 合肥国科天迅科技有限公司 | Multi-protocol terminal with double-path redundant output for switch |
Also Published As
Publication number | Publication date |
---|---|
CN114003441B (en) | 2022-06-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20170163506A1 (en) | Event-triggered, graph-centric predictive cache priming | |
CN108259127B (en) | PCIE dual-redundancy ten-gigabit network IP core | |
US7194661B1 (en) | Keep alive buffers (KABs) | |
US9647852B2 (en) | Selective single-ended transmission for high speed serial links | |
KR102230236B1 (en) | SerDes link parameter debugging method, device and computer storage medium | |
US20190044657A1 (en) | Method and apparatus to manage undersized network packets in a media access control (mac) sublayer | |
US10637509B2 (en) | Methods for reducing data errors in transceiving of a flash storage interface and apparatuses using the same | |
DE102019128383A1 (en) | METHOD AND DEVICE FOR SYNCHRONIZING SIGNALING BETWEEN LINK PARTNERS IN A HIGH-SPEED CONNECTION | |
WO2022222370A1 (en) | Control method and apparatus for fc switch, and fc switch and storage medium | |
CN111399766B (en) | Data storage method, data reading method, device and system in storage system | |
WO2017052975A1 (en) | Technologies for receive side message inspection and filtering | |
CN114003441B (en) | Hot backup redundancy processing method and device for switch | |
US8369223B2 (en) | Packet processing apparatus, interface unit and method thereof | |
CN112714077B (en) | Message duplicate removal method and device, convergence and distribution equipment and storage medium | |
US10187365B2 (en) | Method for exchanging numerical data frames and associated communication system | |
CN110572228B (en) | Synchronous information transmission method, device, related equipment and storage medium | |
CN111538772B (en) | Data exchange processing method and device, electronic equipment and storage medium | |
JP3075809B2 (en) | Received data transfer control device in data transmission system | |
CN102662609B (en) | The method of video access and device | |
CN111682966B (en) | Network communication device with fault active reporting function, system and method thereof | |
US11139830B2 (en) | Bit inversion for data transmission | |
US6987761B2 (en) | Inbound data stream controller with pre-recognition of frame sequence | |
CN115412420B (en) | Method, device, equipment and medium for managing inter-frame trunking communication | |
CN112463521B (en) | Fault-tolerant method and device for improving reliability of serial high-speed bus equipment | |
CN112965467B (en) | Three-redundancy signal monitoring method suitable for unmanned aerial vehicle |
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 | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 701, 7th Floor, Building 6, Courtyard 8, Kegu 1st Street, Beijing Economic and Technological Development Zone, Daxing District, Beijing, 100176 Patentee after: Beijing Tasson Technology Ltd. Address before: Room 701, 7 / F, building 6, courtyard 8, KEGU 1st Street, Beijing Economic and Technological Development Zone, Daxing District, Beijing 100176 Patentee before: BEIJING TASSON TECHNOLOGY Ltd. |