Fault-tolerant processing method based on dual-redundancy FC network
By adding data forwarding ports and links between switches of dual-solution FC networks, a fault-tolerant architecture is built and link status table management is solved, and the communication interruption problem of networks in the event of link cross-section failure is improved, and the reliability and fault-tolerantness of the system are improved.
Patent Information
- Application Number
- CN202411810070.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-10
- Publication Date
- 2025-03-28
AI Technical Summary
When the link cross-section of different node machines fails, the double-solution FC network causes communication between nodes to be unable to communicate, affecting the reliability and fault tolerance of the system.
By adding data forwarding ports and links between two switches that are mutually free, a fault-tolerant architecture is built, a link status table is established and whether cross-switch forwarding is required, and fault-tolerant processing of network communication data is realized.
It effectively solves the communication interruption problem caused by link cross-section failure, improves network reliability and fault tolerance, and ensures that the communication function can be maintained when a single link of any node fails.
Smart Images

Figure CN119728610A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of computer network communication, and in particular to a fault-tolerant processing method based on a dual-redundancy FC network. Background Art
[0002] Integrated modular avionics systems (IMA) are gradually being fully applied in new-generation combat aircraft. As a processing platform for diversified tasks, IMA is integrated into an integrated mission processor to achieve high-speed centralized processing and fusion of data. As the backbone network of the avionics system, the FC network adopts a dual-redundancy interconnected star switching architecture in the integrated mission processor. The network contains basic components such as switches, node machines, and link connections. The core of the switching network is two redundant switches. Each node machine has two FC interfaces, which are connected to two switches (A and B channels). In the event of a communication failure in one channel, the redundant network can continue to provide data communication services, thereby improving the overall reliability and fault tolerance of the system. Network architecture such as Figure 1 As shown in the figure, the FC interfaces of M1, M2, M3, M4, M5 and M6 are connected to switch 1 and switch 2 respectively. The node machines can communicate through the ports of switch 1 or switch 2, providing two independent communication paths for the comprehensive task processing platform for system fault tolerance.
[0003] When a link in a dual-redundancy FC network fails, network communication is not affected. However, when one link of different node machines in the network fails on two switches, Figure 2 As shown, it will cause the nodes to be unable to communicate. For this kind of link cross failure, a fault-tolerant method of adding data forwarding ports and links between redundant switches is proposed, so as to further improve the reliability of the network and avoid abnormal operation of network functions between faulty nodes. Summary of the invention
[0004] In view of this, the embodiments of this specification provide a fault-tolerant processing method based on a dual-redundancy FC network, so as to achieve the purpose of enabling communication even when a single link of any node in the dual-redundancy FC network fails.
[0005] The embodiments of this specification provide the following technical solutions:
[0006] A fault-tolerant processing method based on a dual-redundancy FC network, comprising:
[0007] Constructing a fault-tolerant architecture of the first switch and the second switch, wherein the fault-tolerant architecture connects the first switch and the second switch via a primary data forwarding link and a secondary data forwarding link;
[0008] The two channels of the source port and the destination port of the FC data are defined as the first channel link and the second channel link. A link status table is established through the first channel link status and the second channel link status of the source port and the third channel link status and the fourth channel link status of the destination port, and it is determined whether cross-switch forwarding is required, wherein the link status table is the relationship between the channel link status and the data forwarding strategy;
[0009] If cross-switch forwarding is required, determine the type of network communication data, obtain the data forwarding strategy in the link state table, and use the fault-tolerant architecture to perform fault-tolerant processing on the network communication data based on the type of network communication data and the data forwarding strategy.
[0010] Furthermore, a fault-tolerant architecture of the first switch and the second switch is constructed, including:
[0011] Adding a first data forwarding port and a second data port on the first switch;
[0012] Adding a third data forwarding port and a fourth data port on the second switch;
[0013] The first data forwarding port and the third data forwarding port are connected through a primary data forwarding link, and the second data forwarding port and the fourth data forwarding port are connected through a secondary data forwarding link.
[0014] Further, a link status table is established through the first channel link status and the second channel link status of the source port, and the third channel link status and the fourth channel link status of the destination port, including:
[0015] Arrange and combine the first channel link state, the second channel link state, the third channel link state and the fourth channel link state to generate a link state table;
[0016] A forwarding policy is specified for each row in the link state table. The forwarding policy is used to define the data forwarding policy executed by the forwarding operation when the situation in each row occurs.
[0017] Furthermore, determining whether cross-switch forwarding is required includes:
[0018] The forwarding condition that requires cross-switch forwarding is ((A1^A2)&&(B1^B2))==1 and ((A1&B1)|(A2&B2))==0, where A1 is the first channel link state, A2 is the second channel link state, B1 is the third channel link state, and B2 is the fourth channel link state;
[0019] If the forwarding conditions are met, it is necessary to forward across switches. If the forwarding conditions are not met, it is not necessary to forward across switches.
[0020] Further, the type of network communication data is determined, a data forwarding strategy is obtained in the link state table, and fault-tolerant processing is performed on the network communication data using a fault-tolerant architecture according to the type of network communication data and the data forwarding strategy, including:
[0021] If the network communication data is ASM communication data and / or network management data, obtain the data forwarding strategy in the link state table, and perform fault-tolerant processing on the ASM communication data and / or network management data according to the forwarding strategy;
[0022] If the network communication data is a clock synchronization primitive, obtain the port ID of the clock synchronization server, obtain the data forwarding strategy in the link state table, and perform fault tolerance processing on the clock synchronization primitive through the port ID of the clock synchronization server and the data forwarding strategy.
[0023] Further, a data forwarding strategy is obtained in the link state table, and fault-tolerant processing is performed on the ASM communication data and / or the network management data according to the forwarding strategy, including:
[0024] Obtain the source port ID and destination port ID of the ASM communication data and / or network management data, and obtain the source physical port corresponding to the port ID and the destination physical port corresponding to the destination port ID;
[0025] The data forwarding strategy is obtained by querying the link state table through the first channel link state of the source physical port, the second channel link state of the source physical port, the third channel link state of the destination physical port, and the fourth channel link state of the destination physical port, and whether cross-switch forwarding is required is determined according to the data forwarding strategy;
[0026] If cross-switch forwarding is required, on the first switch, the ASM communication data and / or network management data is forwarded to the second switch through the primary data forwarding link or the secondary data forwarding link, and forwarded to the physical port corresponding to the destination port ID.
[0027] Furthermore, it also includes:
[0028] The data forwarding link is determined according to the OX_ID in the ASM communication data and / or the network management data.
[0029] Further, the port ID of the clock synchronization server is obtained, the data forwarding strategy is obtained in the link state table, and the clock synchronization primitive is fault-tolerantly processed by the port ID of the clock synchronization server and the data forwarding strategy, including:
[0030] When the first switch detects the clock synchronization primitive, it reads the port ID of the clock synchronization server and uses the port ID of the clock synchronization server as the source port ID;
[0031] Obtain the destination port ID of the clock synchronization primitive, obtain the source physical port corresponding to the port ID and the destination physical port corresponding to the destination port ID;
[0032] The data forwarding strategy is obtained by querying the link state table through the first channel link state of the source physical port, the second channel link state of the source physical port, the third channel link state of the destination physical port, and the fourth channel link state of the destination physical port, and whether cross-switch forwarding is required is determined according to the data forwarding strategy;
[0033] If cross-switch forwarding is required, on the first switch, the clock synchronization primitive is forwarded to the second switch via the primary data forwarding link;
[0034] On the second switch, the clock synchronization primitive is read and forwarded to the physical port corresponding to the destination port ID.
[0035] Furthermore, it also includes:
[0036] For the clock synchronization primitive, only when the first channel link fails can the clock synchronization primitive be fault-tolerantly processed through the second channel link.
[0037] Compared with the prior art, the at least one technical solution adopted in the embodiments of this specification can achieve the following beneficial effects:
[0038] The fault-tolerant design is adopted by adding data forwarding ports and links between two redundant switches to solve the problem of cross-link failure in dual-redundancy networks. It avoids the failure of communication functions caused by the failure of a single link at any node, and further improves the reliability of the network. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 It is a structural diagram of the existing dual-redundancy FC network architecture;
[0041] Figure 2 It is a schematic diagram of an existing dual-redundancy FC network link model when a cross failure occurs;
[0042] Figure 3 It is a schematic diagram of the structure of a dual-redundancy FC network fault-tolerant architecture according to an embodiment of the present invention. DETAILED DESCRIPTION
[0043] The embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0044] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0045] The technical solution of the present invention is applied in a dual-redundancy FC switching network architecture.
[0046] like Figure 3 As shown, by adding two data forwarding ports on each of the two redundant switches and adding two data forwarding links (a master data forwarding link and a slave data forwarding link) between the switches, the data forwarding link is established and maintained, and the communication data, network management and clock synchronization are fault-tolerantly processed, thereby ensuring the normal operation of the network function when a link cross failure occurs. The method includes: a data forwarding link establishment and maintenance process, after power-on, the two switches complete the initialization and enter the data forwarding link establishment process, and simply and efficiently implement the establishment of the data forwarding link. After the data forwarding link is established, the network link information of the two switches is exchanged through periodic maintenance information;
[0047] The fault-tolerant processing of ASM communication data includes: after a link cross failure occurs, the switch performs fault-tolerant processing on the faulty port through the forwarding strategy, which is simple and reliable.
[0048] The fault-tolerant processing of network management includes: continuously monitoring the link status of the network manager, and performing fault-tolerant processing through the forwarding strategy only when a link of the network manager fails; the fault-tolerant processing of clock synchronization, combining the link status and forwarding strategy of the clock synchronization server, classifies and processes the link failure situations.
[0049] The specific steps of establishing and maintaining a dual-redundancy data forwarding link are as follows:
[0050] Step 1: The connection relationship of the dual-redundancy FC network fault-tolerant architecture is as follows Figure 3 As shown, two data forwarding ports (another one is used as backup) are pre-set on two first switches that are redundant with each other, and two data forwarding links (another one is used as backup) are added between the second switches;
[0051] Step 2: If the data forwarding port is online, the first switch sends a data forwarding link establishment request frame;
[0052] Step 3: After receiving the data forwarding link request frame, parameter negotiation is performed. After the negotiation is successful, a data forwarding link establishment response frame is sent;
[0053] Step 4: After receiving the data forwarding link establishment response frame, the response frame is detected. If it is correct, the primary data forwarding link is selected. If it is wrong, the establishment process is exited;
[0054] Step 5: Configure the data forwarding port information, configure the data forwarding port number and port number into the hardware register, and enable the data forwarding function between switches to complete the data forwarding link establishment process;
[0055] Step 6: After the data forwarding link is established, if the data forwarding port is online, the number of online data forwarding ports is increased by 1, assigned to the data forwarding link port list, and hardware configuration is performed;
[0056] Step 7: If the data forwarding port is offline, the number of online data forwarding ports is reduced by 1, and the number of online data forwarding ports is determined. If it is greater than 0, the data forwarding port list is updated and hardware configuration is performed. If it is equal to 0, the data forwarding path is disconnected;
[0057] Step 8: Data forwarding link maintenance: the two switches periodically send link status frames on the primary data forwarding link.
[0058] Step 9: Configure the switch port status table and the clock synchronization server port number, use the first switch as the peer switch, and use the second switch as the local switch. After the peer switch receives the link status frame, configure the link status value of each F port (switch port) of the peer switch and the clock synchronization server port number into the hardware register, so that the A and B channel link status of each port can be obtained on each switch, providing a basis for the subsequent forwarding strategy;
[0059] Step 10: When no link cross failure occurs, only the exchange link status frame is transmitted on the data forwarding link.
[0060] In step 2, the data structure of the data forwarding link establishment request frame includes the local switch DomainController ID [0xFFFC01, 0xFFFC02], the sending period of the switch link status frame, the logical version number, the software version number, the number of F physical ports used by the data forwarding port, the F physical port number list used by the local switch data forwarding port and the F physical port number list used by the peer switch data forwarding port.
[0061] In step 3, the data structure of the data forwarding link establishment response frame includes the local switch DomainController ID [0xFFFC01, 0xFFFC02], the sending period of the switch link status frame, the logical version number, the software version number, the number of F physical ports used by the data forwarding port, the F physical port number list used by the local switch data forwarding port and the F physical port number list used by the peer switch data forwarding port.
[0062] In step 4, the physical port with the smaller number used by the data forwarding port is selected as the main data forwarding link.
[0063] In step 5, the number of data forwarding ports configured in the hardware register is consistent with the number of physical ports used by the data forwarding port in the data forwarding link request frame, and the data forwarding port number configured in the hardware register is consistent with the list of physical port numbers used by the data forwarding port in the data forwarding link establishment request frame.
[0064] In steps 6 and 7, the hardware configuration includes configuring an online data forwarding port number register, a data forwarding port number register, and a data forwarding port enable register.
[0065] In step 8, the data structure of the link status frame sent periodically by the switch includes the local switch DomainController ID, the network manager PORTID, the clock synchronization server port number, the PORTID of each port (including the F port and the data forwarding port) and the corresponding link status list, where 0 represents that the link is not connected and is in the offline state, and 1 represents that the link is connected normally and is in the online state.
[0066] The specific steps of the data forwarding strategy (which provides a basis for data forwarding between switches when a link cross failure occurs) are as follows:
[0067] Step 1: The switch forwarding strategy needs to be comprehensively judged based on the port link status of the sending source and receiving destination to determine whether there is a link cross failure and whether it needs to be forwarded through the switch data forwarding port.
[0068] The two channels of the source port and the destination port of FC data are represented by A (first channel link) and B (second channel link) respectively. The on and off of the link are represented by 0 and 1. There are 16 link states in total, of which only 2 are link cross failures and should be forwarded through the switch data forwarding port. For details, see the link state table of the source and destination ends.
[0069] Table 1 (Link status table of source and destination)
[0070]
[0071]
[0072] As can be seen from Table 1 above, only when there is a cross-link failure between the source and destination channels does it need to be transferred from the switch data forwarding port. The following formula can be used to determine whether there is a cross-link failure:
[0073] A1 represents the A channel link status of the source end (the first channel link status), B1 represents the B channel link status of the source end (the second channel link status), A2 represents the A channel link status of the destination end (the third channel link status), and B2 represents the B channel link status of the destination end (the fourth channel link status). The conditions for the switch data forwarding port to forward are:
[0074] ((A1^A2)&&(B1^B2))==1 and ((A1&B1)|(A2&B2))==0
[0075] If it does not exist, it is transmitted normally. If it does exist, it is forwarded to the destination port through the switch data forwarding link.
[0076] Step 2: According to the link status frame between switches, determine the link status of the A channel and the B channel of each port. If one channel fails, set the forwarding flag for the port. 0 means that both channels of the port are normal, and 1 means that one channel of the port fails.
[0077] Step 3: After the switch receives the data, it first determines the forwarding flag. If it is 1, it determines whether to forward across switches according to the forwarding strategy. If it needs to be forwarded across switches, it will be processed according to different data classifications; if it is 0, it is transmitted normally.
[0078] When a link cross failure occurs, the switch uses the forwarding strategy to perform fault tolerance processing on the faulty port. The specific steps are as follows:
[0079] Step 1, establish the data forwarding strategy of the switch. When the switch forwards the ASM message or ELS network management frame, it determines the forwarding flag of the input port. If it is 0, the ASM message data is not transmitted on the data forwarding link; if it is 1, the source and destination PORTID in the ASM message frame or ELS frame are extracted, and the local switch and the opposite switch port status table are searched according to the physical ports corresponding to the source and destination PORTIDs, and the link cross fault is determined according to the forwarding strategy;
[0080] Step 2: If there is a link cross failure between the source and destination ports, such as Figure 2As shown, the ASM message frame or ELS frame is forwarded to another switch through the data forwarding link, and then forwarded to the destination port. In order not to overload the main data forwarding link, a load balancing strategy is adopted to determine which pair of data forwarding links the ASM message frame or ELS frame is transmitted on by taking the modulus of the number of online data forwarding ports according to OX_ID;
[0081] Step 3: After receiving the ASM message frame or ELS frame, the peer switch forwards it according to the destination PORTID.
[0082] Step 4: If there is no link cross failure between the source and destination ports, the ASM message data or ELS network management frame is not transmitted on the data forwarding link.
[0083] The fault-tolerant processing of clock synchronization combines the link status and forwarding policy of the clock synchronization server to classify and process link failures. The specific steps are as follows:
[0084] Step 1: Read the register to obtain the port number of the clock synchronization server and transmit it in the link status frame;
[0085] Step 2: After receiving the message, the peer switch configures the port number of the clock synchronization server into the register;
[0086] Step 3: When the switch detects the input of the clock synchronization primitive, it reads the clock synchronization status register to obtain the port number of the clock synchronization server, and checks the port status table of the local switch and the peer switch as the source port, and determines whether there is a situation that needs to be forwarded according to the forwarding strategy;
[0087] Step 4: If there is a need to forward, the clock synchronization primitive is transmitted to the opposite switch on the primary data forwarding link, and then go to step 6;
[0088] Step 5: If there is no need to forward the data, the clock synchronization primitive is not forwarded on the data forwarding link;
[0089] Step 6: The peer switch receives the clock synchronization primitive input from the data forwarding port, reads the clock synchronization server port number, checks the local switch and peer switch port status table as the source port, and distributes the clock synchronization primitive to the destination port that meets the forwarding policy.
[0090] In step 3, there is only one clock server in the dual-redundancy FC network, which periodically sends clock synchronization primitives. The clock synchronization primitives are broadcasted by the switch to synchronize the clock clients, thereby achieving clock synchronization of the entire network. The clock synchronization primitive is sent periodically on channel A by default. If channel A fails, it is sent on channel B. (Only when channel A fails will it be sent on channel B).
[0091] An implementation method of an embodiment of the present invention:
[0092] like Figure 3 , assuming that the switch has 32 ports, of which ports 1 to 28 are F ports, ports 29 and 30 are data forwarding ports, and ports 31 and 32 are monitoring ports. The process of establishing and maintaining a dual-redundancy switch data forwarding link is as follows:
[0093] Step 1: Data forwarding ports 29 and 30 come online, and the switch sends a data forwarding link establishment request frame;
[0094] Step 2: After receiving the data forwarding link request frame, parameter negotiation is performed. After the negotiation is successful, a data forwarding link establishment response frame is sent;
[0095] Step 3: After receiving the data forwarding link establishment response frame, the response frame is detected. If it is correct, the primary data forwarding link is selected. If it is wrong, the establishment process is exited;
[0096] Step 4: Configure the data forwarding port information, configure the data forwarding port number and port number into the hardware register, and enable the data forwarding function to complete the data forwarding link establishment process;
[0097] Step 5: After the data forwarding link is established, if the data forwarding port is online, the number of online data forwarding ports is increased by 1, assigned to the data forwarding port list, and hardware configuration is performed;
[0098] Step 6: If the data forwarding port is offline, the number of online data forwarding ports is reduced by 1, and the number of online data forwarding ports is determined. If it is greater than 0, the data forwarding port list is updated and hardware configuration is performed. If it is equal to 0, the data forwarding path is disconnected;
[0099] Step 7: Data forwarding link maintenance: the two switches send link status frames on the primary data forwarding link at a period of 50 ms.
[0100] Step 8: Configure the switch port status table and the clock synchronization server port number. After the peer switch receives the link status frame, it configures the link status value of each F port of the peer switch and the clock synchronization server port number into the hardware register. Then, the A and B channel link status of each port can be obtained on each switch, providing a basis for subsequent forwarding strategies.
[0101] Step 9: When no link cross failure occurs, only the exchange link status frame is transmitted on the data forwarding link.
[0102] In step 1, the data structure of the data forwarding link establishment request frame includes the local switch DomainController ID [0xFFFC01, 0xFFFC02], the transmission cycle of the switch link status frame, the logical version number, the software version number, the number of F physical ports used by the data forwarding port, the F physical port number list used by the local switch data forwarding port and the F physical port number list used by the peer switch data forwarding port. The data structure of the data forwarding link establishment request frame is shown in Table 2.
[0103] Table 2 (Data structure of data forwarding link establishment request frame)
[0104]
[0105]
[0106] In step 2, the data structure of the data forwarding link establishment response frame includes the local switch DomainController ID [0xFFFC01, 0xFFFC02], the transmission period of the switch link status frame, the logical version number, the software version number, the number of F physical ports used by the data forwarding port, the F physical port number list used by the local switch data forwarding port and the F physical port number list used by the peer switch data forwarding port. The data structure of the data forwarding link establishment response frame is shown in Table 3.
[0107] Table 3 (Data structure of data forwarding link establishment response frame)
[0108]
[0109] In step 3, the physical port with the smaller number used by the data forwarding port is selected as the main data forwarding link.
[0110] In step 4, the number of data forwarding ports configured in the hardware register is consistent with the number of physical ports used by the data forwarding port in the data forwarding link request frame, and the data forwarding port number configured in the hardware register is consistent with the physical port number list used by the data forwarding port in the data forwarding link establishment request frame.
[0111] In steps 5 and 6, the hardware configuration includes configuring an online data forwarding port number register, a data forwarding port number register, and a data forwarding port enable register.
[0112] In step 8, the data structure of the link status frame sent by the switch periodically includes the local switch DomainController ID, the network manager PORTID, the clock synchronization server port number, the PORTID of each port and the corresponding link status list, where 0 represents that the link is not connected and is in the offline state, and 1 represents that the link is connected normally and is in the online state. The data structure of the link status frame is shown in Table 4.
[0113] Table 4 (Link status frame data structure)
[0114]
[0115] like Figure 2 As shown, when a link cross failure occurs in a dual-redundancy FC network, the ASM communication data and network management fault tolerance processing flow of the embodiment is as follows:
[0116] Step 1: Assume that when ASM data or ELS network management frame transmission is performed between M1 and M6, they are connected to port 1 and port 6 on switch 1 and switch 2 respectively. The PORTID of M1 is 0x10000 and the PORTID of M6 is 0x10005.
[0117] Step 2: M1 sends ASM data to M6. After receiving the data from M1 port, switch 2 determines the forwarding flag of input port 1. According to the above rules, the link states of the source A and B channels corresponding to port 1 are 0 and 1 respectively, and the forwarding flag is 1.
[0118] Step 3, if the forwarding flag is 1, the source PORTID in the ASM frame or ELS frame is extracted as 0x10000, and the destination PORTID is 0x10005, which correspond to the physical port 1 and port 6 of the switch respectively. The link states of the A and B channels of the source port 1 of the local switch 2 are 0 and 1 respectively, and the link states of the A and B channels of the destination port 6 of the opposite switch are 1 and 0 respectively. According to the forwarding strategy, the fault is a link cross fault and needs to be forwarded through the switch data forwarding link; if there is no link cross fault, it is transmitted normally in the local switch and is not forwarded through the data forwarding link;
[0119] Step 4: Since there is a link cross failure between the source and destination ports, extract the ASM data according to OX_ID, modulo 2 (the number of online data forwarding ports), 0 is the main data forwarding link, 1 is another data forwarding link, and then forward it to switch 1 through the data forwarding link;
[0120] Step 5: After receiving the ASM data, switch 1 forwards the data to the destination port according to the destination PORTID, completing the ASM data transmission.
[0121] The fault-tolerant processing flow of clock synchronization in the embodiment is as follows:
[0122] Step 1: Assuming that M1 is a clock synchronization server, when all port links are normal, switch 1 detects the input of the clock synchronization primitive, reads the register to obtain the port number of the clock synchronization server, and transmits it in the link status frame;
[0123] Step 2: After receiving the message, the peer switch configures the port number of the clock synchronization server into the register;
[0124] Step 3: If a link to the clock synchronization server fails, such as Figure 2 As shown, check the port status of the opposite switch and determine whether there is a situation that needs to be forwarded according to the forwarding strategy;
[0125] Step 4: If there is a need to forward, the clock synchronization primitive is transmitted to the opposite switch 1 on the primary data forwarding link, and then go to step 6;
[0126] Step 5: If there is no need to forward the data, the clock synchronization primitive is not forwarded on the data forwarding link;
[0127] Step 6: Switch 1 receives the clock synchronization primitive input from the data forwarding port, reads the clock synchronization server port number 1, checks the port status table of the local switch and the peer switch as the source port, and forwards the clock synchronization primitive to the destination port 6 that meets the forwarding policy.
[0128] Beneficial effects of the embodiments of the present invention:
[0129] In the embodiment of the present invention, the two redundant switches have no master-slave relationship in fault tolerance processing, have the same design rules, can be used independently, and do not need to restrict the position of the switches, thereby satisfying the interchangeability of the two switches and being flexible to use; using the two data forwarding ports of the switch solves the link cross failure problem, reduces system resource overhead, and improves communication reliability; establishes a data forwarding channel between switches, and under normal circumstances only has periodic maintenance status frames, and the amount of data between data forwarding ports is small. Only when a link cross failure occurs, data is transmitted through the data forwarding link, thereby reducing the communication pressure and design complexity of the data forwarding link; according to the two channel link status tables of each port established on each switch, when a link cross failure occurs, different situations are classified and processed, and forwarded according to the forwarding strategy, with high processing efficiency and low delay for the fault target, further improving fault tolerance.
[0130] The above is only a specific embodiment of the present invention, and cannot be used to limit the scope of the invention. Therefore, the replacement of equivalent components, or equivalent changes and modifications made according to the scope of protection of the patent of the present invention, should still fall within the scope of this patent. In addition, the technical features of the present invention can be freely combined with each other, with each other, and with each other.
Claims
1. A fault-tolerant processing method based on a dual-redundancy FC network, characterized in that: include: Constructing a fault-tolerant architecture of the first switch and the second switch, wherein the fault-tolerant architecture connects the first switch and the second switch through a primary data forwarding link and a secondary data forwarding link; The two channels of the source port and the destination port of the FC data are defined as the first channel link and the second channel link, and a link status table is established through the first channel link status and the second channel link status of the source port and the third channel link status and the fourth channel link status of the destination port, and it is determined whether cross-switch forwarding is required, wherein the link status table is the relationship between the channel link status and the data forwarding strategy; If cross-switch forwarding is required, determine the type of network communication data, obtain the data forwarding strategy in the link state table, and use the fault-tolerant architecture to perform fault-tolerant processing on the network communication data according to the type of the network communication data and the data forwarding strategy.
2. The fault-tolerant processing method based on a dual-redundancy FC network according to claim 1 is characterized in that: Constructing a fault-tolerant architecture of the first switch and the second switch, including: Adding a first data forwarding port and a second data port on the first switch; Adding a third data forwarding port and a fourth data port on the second switch; The first data forwarding port and the third data forwarding port are connected through the main data forwarding link, and the second data forwarding port and the fourth data forwarding port are connected through the secondary data forwarding link.
3. The fault-tolerant processing method based on a dual-redundancy FC network according to claim 1 is characterized in that: A link state table is established by using the first channel link state and the second channel link state of the source port and the third channel link state and the fourth channel link state of the destination port, including: Arrange and combine the first channel link state, the second channel link state, the third channel link state and the fourth channel link state to generate a link state table; The forwarding strategy is specified for each row in the link state table, and the forwarding strategy is used to define the data forwarding strategy executed by the forwarding operation when the situation of each row occurs.
4. The fault-tolerant processing method based on a dual-redundancy FC network according to claim 1 is characterized in that: Determine whether cross-switch forwarding is required, including: The forwarding condition that requires cross-switch forwarding is ((A1^A2)&&(B1^B2))==1 and ((A1&B1)|(A2&B2))==0, where A1 is the first channel link state, A2 is the second channel link state, B1 is the third channel link state, and B2 is the fourth channel link state; If the forwarding condition is met, cross-switch forwarding is required; if the forwarding condition is not met, cross-switch forwarding is not required.
5. The fault-tolerant processing method based on a dual-redundancy FC network according to claim 1, characterized in that: Determining the type of network communication data, obtaining the data forwarding strategy in the link state table, and performing fault-tolerant processing on the network communication data using the fault-tolerant architecture according to the type of the network communication data and the data forwarding strategy, including: If the network communication data is ASM communication data and / or network management data, obtaining the data forwarding strategy in the link state table, and performing fault-tolerant processing on the ASM communication data and / or the network management data according to the forwarding strategy; If the network communication data is a clock synchronization primitive, obtain the port ID of the clock synchronization server, obtain the data forwarding strategy in the link state table, and perform fault-tolerant processing on the clock synchronization primitive through the port ID of the clock synchronization server and the data forwarding strategy.
6. The fault-tolerant processing method based on a dual-redundancy FC network according to claim 5, characterized in that: Acquiring the data forwarding strategy in the link state table, and performing fault-tolerant processing on the ASM communication data and / or the network management data according to the forwarding strategy, including: Obtain a source port ID and a destination port ID of the ASM communication data and / or the network management data, and obtain a source physical port corresponding to the port ID and a destination physical port corresponding to the destination port ID; The data forwarding strategy is obtained by querying the link state table through the first channel link state of the source physical port, the second channel link state of the source physical port, the third channel link state of the destination physical port, and the fourth channel link state of the destination physical port, and whether cross-switch forwarding is required according to the data forwarding strategy; If cross-switch forwarding is required, on the first switch, the ASM communication data and / or the network management data are forwarded to the second switch through the primary data forwarding link or the secondary data forwarding link, and forwarded to the physical port corresponding to the destination port ID.
7. The fault-tolerant processing method based on a dual-redundancy FC network according to claim 6 is characterized in that: Also includes: A data forwarding link is determined according to the OX_ID in the ASM communication data and / or the network management data.
8. The fault-tolerant processing method based on a dual-redundancy FC network according to claim 5, characterized in that: Acquiring a port ID of a clock synchronization server, acquiring the data forwarding strategy in the link state table, and performing fault-tolerant processing on the clock synchronization primitive by using the port ID of the clock synchronization server and the data forwarding strategy, including: When the first switch detects the clock synchronization primitive, it reads the port ID of the clock synchronization server and uses the port ID of the clock synchronization server as the source port ID; Obtaining a destination port ID of the clock synchronization primitive, and obtaining a source physical port corresponding to the port ID and a destination physical port corresponding to the destination port ID; The data forwarding strategy is obtained by querying the link state table through the first channel link state of the source physical port, the second channel link state of the source physical port, the third channel link state of the destination physical port, and the fourth channel link state of the destination physical port, and whether cross-switch forwarding is required according to the data forwarding strategy; If cross-switch forwarding is required, on the first switch, the clock synchronization primitive is forwarded to the second switch through the primary data forwarding link; On the second switch, the clock synchronization primitive is read and forwarded to the physical port corresponding to the destination port ID.
9. The fault-tolerant processing method based on a dual-redundancy FC network according to claim 7, characterized in that: Also includes: For the clock synchronization primitive, only when the first channel link fails can the clock synchronization primitive be fault-tolerantly processed through the second channel link.