CN117675535A - Dual-redundancy communication method and device based on port routing management and computer equipment - Google Patents

Dual-redundancy communication method and device based on port routing management and computer equipment Download PDF

Info

Publication number
CN117675535A
CN117675535A CN202311719194.6A CN202311719194A CN117675535A CN 117675535 A CN117675535 A CN 117675535A CN 202311719194 A CN202311719194 A CN 202311719194A CN 117675535 A CN117675535 A CN 117675535A
Authority
CN
China
Prior art keywords
information
transmitted
destination address
switch
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311719194.6A
Other languages
Chinese (zh)
Inventor
洪家华
李龙威
陈彬
谢京州
谢鹏
崔炳林
刘振华
李强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Tasson Science and Technology Co Ltd
Original Assignee
Beijing Tasson Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Tasson Science and Technology Co Ltd filed Critical Beijing Tasson Science and Technology Co Ltd
Priority to CN202311719194.6A priority Critical patent/CN117675535A/en
Publication of CN117675535A publication Critical patent/CN117675535A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application relates to a dual redundancy communication method, a dual redundancy communication device, a dual redundancy communication computer device and a dual redundancy storage medium based on port routing management. The method comprises the following steps: receiving information to be transmitted, wherein the information to be transmitted carries a destination address; checking the communication condition of the current switch and the node corresponding to the destination address; under the condition that the current switch is not communicated with the node corresponding to the destination address, inquiring a target switch communicated with the node corresponding to the destination address; and sending the information to be transmitted to the target switch to instruct the target switch to forward the information to be transmitted to a node corresponding to the destination address. The method can complete double-redundancy communication with low cost.

Description

Dual-redundancy communication method and device based on port routing management and computer equipment
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a dual redundancy communication method, apparatus, computer device, and storage medium based on port routing management.
Background
The high-speed serial transmission bus Fiber Channel (FC) has the advantages of Channel and network, high bandwidth, high reliability, electromagnetic interference resistance and the like, can provide very stable and reliable fiber connection, and is easy to construct a large-scale data transmission and communication network.
FC switches act as core devices in the FC network, contributing decisively to the data exchange of the whole FC network. With the rapid development of FC switching networks, more and more scenarios are applied to FC switching networks. In some application scenarios where the type of the transmission data is complex and the working environment is worse, the data transmission is required to have high reliability and high stability.
In a conventional dual redundant switching network, if a communication link between a node and one of the switches is broken, and a communication link between the other node and the other switch is also broken, the two nodes cannot communicate. In the related art, the problem of communication link interruption is solved by providing a standby switch, but using the standby switch results in higher use and maintenance costs.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a dual redundancy communication method, apparatus, computer device, and computer-readable storage medium based on port routing management that can accomplish dual redundancy communication at low cost.
In a first aspect, the present application provides a dual redundancy communication method based on port routing management, the method being used for a current switch; the method comprises the following steps:
receiving information to be transmitted, wherein the information to be transmitted carries a destination address;
checking the communication condition of the current switch and the node corresponding to the destination address;
under the condition that the current switch is not communicated with the node corresponding to the destination address, inquiring a target switch communicated with the node corresponding to the destination address;
and sending the information to be transmitted to the target switch to instruct the target switch to forward the information to be transmitted to a node corresponding to the destination address.
In one embodiment, a state monitoring interface exists between the current switch and the plurality of candidate switches, and the state monitoring interface is used for continuously monitoring the communication state of the candidate switches and the plurality of candidate nodes; the target switch for inquiring the node which is communicated with the destination address comprises:
determining a target node according to the destination address;
acquiring the communication states of a plurality of candidate switches and the target node through the state monitoring interface;
and selecting a target switch from a plurality of candidate switches according to the communication state.
In one embodiment, the current switch includes a plurality of alternate communication interfaces; the sending the information to be transmitted to the target switch to instruct the target switch to forward the information to be transmitted to the node corresponding to the destination address includes:
according to the target switch, any one of the plurality of alternative communication interfaces is selected as a redundant communication interface, wherein the redundant communication interface is communicated with the target switch;
and sending the information to be transmitted to the target switch through the redundant communication interface so as to instruct the target switch to forward the information to be transmitted to the node corresponding to the destination address.
In one embodiment, after receiving the information to be transmitted, the method further includes:
judging whether the information to be transmitted comes from the redundant communication interface or not;
and executing the step of checking the communication condition of the current switch and the node corresponding to the destination address in the case that the information to be transmitted is not from the redundant communication interface.
In one embodiment, after determining whether the information to be transmitted is from the redundant communication interface, the method further includes:
if the information to be transmitted is from the redundant communication interface, carrying out routing query according to the destination address so as to obtain a target node;
and sending the information to be transmitted to the target node.
In one embodiment, the information to be transmitted is a fibre channel FC frame.
In one embodiment, the checking the connectivity condition of the node corresponding to the destination address and the current switch includes:
extracting frame header information of the FC frame to obtain a destination address;
performing routing query according to the destination address to obtain a target node;
and checking whether an interface of the current switch communicated with the target node is in a working state or not so as to obtain a communication condition.
In a second aspect, the present application further provides a dual-redundancy communication device based on port routing management, the device being used for a current switch; the device comprises:
the information receiving module is used for receiving information to be transmitted, wherein the information to be transmitted carries a destination address;
the connectivity verification module is used for checking the connectivity condition of the node corresponding to the destination address and the current switch;
the redundancy query module is used for querying a target switch communicated with a node corresponding to the destination address under the condition that the current switch is not communicated with the node corresponding to the destination address;
and the information forwarding module is used for sending the information to be transmitted to the target switch so as to instruct the target switch to forward the information to be transmitted to the node corresponding to the destination address.
In a third aspect, the present application also provides a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
receiving information to be transmitted, wherein the information to be transmitted carries a destination address;
checking the communication condition of the current switch and the node corresponding to the destination address;
under the condition that the current switch is not communicated with the node corresponding to the destination address, inquiring a target switch communicated with the node corresponding to the destination address;
and sending the information to be transmitted to the target switch to instruct the target switch to forward the information to be transmitted to a node corresponding to the destination address.
In a fourth aspect, the present application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
receiving information to be transmitted, wherein the information to be transmitted carries a destination address;
checking the communication condition of the current switch and the node corresponding to the destination address;
under the condition that the current switch is not communicated with the node corresponding to the destination address, inquiring a target switch communicated with the node corresponding to the destination address;
and sending the information to be transmitted to the target switch to instruct the target switch to forward the information to be transmitted to a node corresponding to the destination address.
According to the dual-redundancy communication method, the device, the computer equipment and the storage medium based on the port routing management, the communication condition of the current switch and the node corresponding to the destination address is checked by identifying and analyzing the destination address in the information to be transmitted, so that whether the current communication link is in a normal working state is judged. Under the condition that the current switch is not communicated with the node corresponding to the destination address, an alternative communication link can be obtained by inquiring the target switch communicated with the node corresponding to the destination address, and then the information to be transmitted is sent to the target switch according to the inquiring result, so that the target switch can be instructed to forward the information to be transmitted to the node corresponding to the destination address. Under the condition that the communication link of the current switch fails and the like, the information to be transmitted can be forwarded by the target switch by inquiring the link available for communication, so that the information transmission is smoothly completed. The current switch and the target switch are in a normal working state, the standby switch is not arranged, and the target switch capable of forwarding information to be transmitted can be searched only when the current switch fails and the checking result is displayed as not being communicated, so that a new information forwarding link is established. Therefore, the redundant communication under the fault state can be completed only by deployment in the network of the switches, and the redundant switches are not required to be preset, so that the information forwarding can be successfully completed, and the use and maintenance cost is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the related art, the drawings that are required to be used in the embodiments or the related technical descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for a person having ordinary skill in the art.
FIG. 1 is an application environment diagram of a dual redundancy communication method based on port routing management in one embodiment;
FIG. 2 is a flow diagram of a dual redundancy communication method based on port routing management in one embodiment;
FIG. 3 is a flow chart of step S206 in a dual redundancy communication method based on port routing management according to one embodiment;
FIG. 4 is a block diagram of a dual redundant communication apparatus based on port routing management in one embodiment;
FIG. 5 is an internal block diagram of a computer device in one embodiment;
fig. 6 is an internal structural view of a computer device in another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The dual-redundancy communication method based on port routing management provided by the embodiment of the application can be applied to an application environment shown in fig. 1. The terminal 102 communicates with the server 104 through a network, where the terminal 102 may be used as a transmitting node or a receiving node, and the server 104 may be disposed on one switch or a control system that controls a switch network formed by a plurality of switches. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104 or may be located on a cloud or other network server. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, where the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In an exemplary embodiment, as shown in fig. 2, a dual redundancy communication method based on port routing management is provided, and the method is applied to the server 104 in fig. 1, and is described in the current example, and the server 104 deploys on a current switch, where the current switch exists in a switch cluster including a plurality of switches. The method includes the following steps S202 to S208. Wherein:
step S202, receiving information to be transmitted.
The information to be transmitted is information from a transmitting node, and the information carries a destination address.
Illustratively, the information to be transmitted may be FC frames of the fibre channel. In Fibre Channel (FC), FC frames refer to frames in the Fibre Channel protocol. Fibre channel is a high performance, high rate network technology that is used primarily in storage area networks and other applications requiring high performance data transmission. In fibre channel, data is split into frames for transmission. Each frame contains control information, data and a check field for error detection. Fibre channel protocols define the structure of frames and how data is transferred. Further, the general structure of the FC frame includes frame header information, frame control information, data payload, and a check field.
Step S204, checking the connection condition of the current switch and the node corresponding to the destination address.
Wherein the node corresponding to the destination address is a data receiving node.
For example, in the case that the current switch is in a normal working state and no failure occurs, the information to be transmitted should be sent by the sending node, and sent directly to the node corresponding to the target address, that is, the data receiving node, through the current switch, and the server 104 may obtain the checking result by checking whether the sending port that is in communication with the node corresponding to the target address is in a normal working state. Further, the server 104 may extract frame header information of the FC frame to obtain a destination address, and perform routing query according to the destination address to obtain a destination node, and check whether an interface between the current switch and the destination node is in a working state to obtain a connection condition.
In step S206, in the case that the current switch is not connected to the node corresponding to the destination address, the target switch connected to the node corresponding to the destination address is queried.
For example, the server 104 may continuously monitor a plurality of switches and continuously periodically obtain port operational status information from the plurality of switches, wherein the port operational status information is used to characterize the operational status of the communication ports between the switches and the nodes. In the case that the current switch is not connected to the node corresponding to the destination address, the server 104 may query, according to the historically obtained switch port working state information, the target switch connected to the node corresponding to the destination address. In addition, the server 104 may also temporarily obtain port working state information when the current switch is not connected to the node corresponding to the destination address, so as to query the target switch connected to the node corresponding to the destination address.
Step S208, the information to be transmitted is sent to the target switch, so as to instruct the target switch to forward the information to be transmitted to the node corresponding to the destination address.
For example, the server 104 may send the information to be transmitted to the target switch, where the target switch is still in a normal working state, and when the target switch receives the information to be transmitted sent by the current switch, the target switch also identifies a destination address in the information to be transmitted, and sends the information to be transmitted to a node corresponding to the destination address according to the destination address.
In the dual-redundancy communication method based on port routing management, the communication condition of the current switch and the node corresponding to the destination address is checked by identifying and analyzing the destination address in the information to be transmitted, so that whether the current communication link is in a normal working state is judged. Under the condition that the current switch is not communicated with the node corresponding to the destination address, an alternative communication link can be obtained by inquiring the target switch communicated with the node corresponding to the destination address, and then the information to be transmitted is sent to the target switch according to the inquiring result, so that the target switch can be instructed to forward the information to be transmitted to the node corresponding to the destination address. Under the condition that the communication link of the current switch fails and the like, the information to be transmitted can be forwarded by the target switch by inquiring the link available for communication, so that the information transmission is smoothly completed. The current switch and the target switch are in a normal working state, the standby switch is not arranged, and the target switch capable of forwarding information to be transmitted can be searched only when the current switch fails and the checking result is displayed as not being communicated, so that a new information forwarding link is established. Therefore, the redundant communication under the fault state can be completed only by deployment in the network of the switches, and the redundant switches are not required to be preset, so that the information forwarding can be successfully completed, and the use and maintenance cost is reduced.
In an exemplary embodiment, as shown in fig. 3, step S206 includes steps S302 to S306. Wherein:
step S302, determining a target node according to the destination address.
The target node refers to a receiving node indicated by a destination address and receiving information to be transmitted. For example, the server 104 may call a preset mapping table, and query the target node according to the destination address carried in the information to be transmitted.
Step S304, the communication states of a plurality of candidate switches and the target node are obtained through the state monitoring interface.
In a communication network including a plurality of switches, a state monitoring interface exists between a current switch and a plurality of candidate switches, the state monitoring interface being for continuously monitoring a communication state of the candidate switches with the plurality of candidate nodes. For example, the server 104 may learn, according to the information returned by the state monitoring interface and indicating the communication state between the candidate switch and the plurality of candidate nodes, that any one candidate switch can replace the current switch to forward the information.
Step S306, selecting a target switch from the plurality of candidate switches according to the communication state.
The server 104, after acquiring the connection states of the plurality of candidate switches and the plurality of candidate nodes, can determine which candidate switch is connected to the target node, so that a suitable switch can be selected from the plurality of candidate switches as the target switch, and forwarding of the information to be transmitted is completed through the target switch.
In an exemplary embodiment, the current switch includes a plurality of alternative communication interfaces, and step S208 includes: according to the target switch, selecting one from a plurality of alternative communication interfaces as a redundant communication interface, wherein the redundant communication interface is communicated with the target switch; and sending the information to be transmitted to the target switch through the redundant communication interface so as to instruct the target switch to forward the information to be transmitted to the node corresponding to the destination address.
For example, the server 104 may obtain the working states of each standby communication interface of the target switch when the switches are in the normal working states at the same time, and then use any standby communication interface that is not currently in the working states of the target switch as a redundant communication interface to receive the information to be transmitted from the current switch, and send the information to be transmitted to the target switch through the redundant communication interface, so as to instruct the target switch to forward the information to be transmitted to the node corresponding to the destination address.
In an exemplary embodiment, step S202 further includes determining whether the information to be transmitted is from a redundant communication interface.
For example, in the case where the information to be transmitted is not from the redundant communication interface, it may be considered that the current switch receives the information to be transmitted from the transmitting node, and the current switch has a possibility of being unable to communicate with the node corresponding to the destination address, so that it is necessary to determine whether the information to be transmitted needs to be forwarded to the target switch through the above steps; on the contrary, in the case that the information to be transmitted is not from the redundant communication interface, it can be considered that the current switch receives the information to be transmitted from other switches, and in the preamble step, the switch sending the information to be transmitted has completed the above-mentioned judging process, and the current switch only needs to send the information to be transmitted to the node corresponding to the destination address.
For example, after the server 104 obtains the determination result, the step of checking the connectivity of the current switch and the node corresponding to the destination address may be performed if the information to be transmitted is not from the redundant communication interface; the route inquiry can be carried out according to the destination address to obtain the target node under the condition that the information to be transmitted is from the redundant communication interface; and sending the information to be transmitted to the target node.
In another embodiment, the server 104 is disposed on each switch in the switch network, and the switch network includes a plurality of switches, and a redundant communication interface and a status monitoring interface exist between each two switches, wherein the redundant communication interface is any one of the plurality of alternative communication interfaces of the switches.
When a switch receives information to be transmitted from a sending node of a terminal 102, a server 104 of the current switch analyzes a destination address in the information to be transmitted and judges whether an interface on the current switch, which is used for being communicated with a node corresponding to the destination address, is in a normal working state, and under the condition that the interface works normally, the server 104 directly sends the information to be transmitted to the destination address through the interface to be transmitted; if the interface is not in a normal working state, the server 104 obtains the communication condition of other candidate switches in the network and nodes corresponding to the destination address through the state monitoring interface, thereby selecting a target switch which meets the requirement, and selecting an alternative communication interface which is not in a working state at the current moment as a redundant communication interface, thereby sending information to be transmitted to the target switch through the redundant communication interface.
When the target switch receives the information to be transmitted from the redundant communication interface, the target switch identifies and analyzes the destination address in the information to be transmitted, so as to obtain a target node corresponding to the information to be transmitted, and the information to be transmitted is sent to the target node to finish smooth sending of the information to be transmitted.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a dual-redundancy communication device based on port route management, which is used for realizing the dual-redundancy communication method based on port route management. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of the dual redundancy communication device based on the port routing management provided below may be referred to the limitation of the dual redundancy communication method based on the port routing management hereinabove, and will not be repeated herein.
In one exemplary embodiment, as shown in FIG. 4, a dual redundant communication apparatus based on port routing management is provided for a current switch; comprising the following steps: an information receiving module 402, a connectivity verification module 404, a redundancy query module 406, and an information forwarding module 408, wherein:
an information receiving module 402, configured to receive information to be transmitted, where the information to be transmitted carries a destination address;
the connectivity verification module 404 is configured to check connectivity conditions of nodes corresponding to the current switch and the destination address;
a redundancy query module 406, configured to query, in a case where the current switch is not connected to a node corresponding to the destination address, a target switch that is connected to the node corresponding to the destination address;
the information forwarding module 408 is configured to send the information to be transmitted to the target switch, so as to instruct the target switch to forward the information to be transmitted to a node corresponding to the destination address.
In one embodiment, a state monitoring interface exists between the current switch and the plurality of candidate switches, and the state monitoring interface is used for continuously monitoring the communication state between the candidate switches and the plurality of candidate nodes; the redundant query module 406 includes:
the node determining unit is used for determining a target node according to the destination address;
the state determining unit is used for acquiring the communication states of the plurality of candidate switches and the target node through the state monitoring interface;
and the switch selecting unit is used for selecting one target switch from the plurality of candidate switches according to the communication state.
In one embodiment, the current switch includes a plurality of alternate communication interfaces; the information forwarding module 408 includes:
the interface selection unit is used for arbitrarily selecting one from a plurality of standby communication interfaces as a redundant communication interface according to the target switch, wherein the redundant communication interface is communicated with the target switch;
and the information forwarding unit is used for sending the information to be transmitted to the target switch through the redundant communication interface so as to instruct the target switch to forward the information to be transmitted to the node corresponding to the destination address.
In one embodiment, the apparatus further comprises:
the interface judging module is used for judging whether the information to be transmitted comes from the redundant communication interface or not;
and the initial information receiving module is used for executing the step of checking the connection condition of the current switch and the node corresponding to the destination address in the case that the information to be transmitted is not from the redundant communication interface.
In one embodiment, after determining whether the information to be transmitted is from the redundant communication interface, the method further includes:
the redundant information receiving module is used for carrying out routing query according to the destination address to obtain the target node under the condition that the information to be transmitted is from the redundant communication interface;
and the information sending module is used for sending the information to be transmitted to the target node.
In one embodiment, the information to be transmitted is a fibre channel FC frame.
In one embodiment, connectivity verification module 404 includes:
an information extraction unit for extracting frame header information of the FC frame to obtain a destination address;
the route inquiry unit is used for carrying out route inquiry according to the destination address so as to obtain a target node;
and the result output unit is used for checking whether the interface of the current switch communicated with the target node is in a working state or not so as to obtain the communication condition.
The respective modules in the dual redundancy communication apparatus based on the port routing management described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one exemplary embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing mapping data between interfaces of individual switches in the switch network and the end nodes. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a dual redundancy communication method based on port routing management.
In an exemplary embodiment, a computer device, which may be a terminal, is provided, and an internal structure diagram thereof may be as shown in fig. 6. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program, when executed by a processor, implements a dual redundancy communication method based on port routing management.
It will be appreciated by those skilled in the art that the structure shown in fig. 6 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one exemplary embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of: receiving information to be transmitted, wherein the information to be transmitted carries a destination address; checking the communication condition of the node corresponding to the current switch and the destination address; under the condition that the current switch is not communicated with the node corresponding to the destination address, inquiring the target switch communicated with the node corresponding to the destination address; and sending the information to be transmitted to the target switch to instruct the target switch to forward the information to be transmitted to the node corresponding to the destination address.
In one embodiment, the processor when executing the computer program further performs the steps of: determining a target node according to the destination address; acquiring the communication states of a plurality of candidate switches and a target node through a state monitoring interface; and selecting one target switch from the plurality of candidate switches according to the communication state.
In one embodiment, the processor when executing the computer program further performs the steps of: judging whether the information to be transmitted comes from a redundant communication interface or not; and in the case that the information to be transmitted is not from the redundant communication interface, performing the step of checking the connectivity condition of the current switch and the node corresponding to the destination address.
In one embodiment, the processor when executing the computer program further performs the steps of: under the condition that the information to be transmitted is from a redundant communication interface, carrying out route inquiry according to the destination address so as to obtain a target node; and sending the information to be transmitted to the target node.
In one embodiment, the processor when executing the computer program further performs the steps of: extracting frame header information of the FC frame to obtain a destination address; performing route inquiry according to the destination address to obtain a target node; and checking whether an interface of the current switch communicated with the target node is in a working state or not so as to obtain a communication condition.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of: receiving information to be transmitted, wherein the information to be transmitted carries a destination address; checking the communication condition of the node corresponding to the current switch and the destination address; under the condition that the current switch is not communicated with the node corresponding to the destination address, inquiring the target switch communicated with the node corresponding to the destination address; and sending the information to be transmitted to the target switch to instruct the target switch to forward the information to be transmitted to the node corresponding to the destination address.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining a target node according to the destination address; acquiring the communication states of a plurality of candidate switches and a target node through a state monitoring interface; and selecting one target switch from the plurality of candidate switches according to the communication state.
In one embodiment, the computer program when executed by the processor further performs the steps of: judging whether the information to be transmitted comes from a redundant communication interface or not; and in the case that the information to be transmitted is not from the redundant communication interface, performing the step of checking the connectivity condition of the current switch and the node corresponding to the destination address.
In one embodiment, the computer program when executed by the processor further performs the steps of: under the condition that the information to be transmitted is from a redundant communication interface, carrying out route inquiry according to the destination address so as to obtain a target node; and sending the information to be transmitted to the target node.
In one embodiment, the computer program when executed by the processor further performs the steps of: extracting frame header information of the FC frame to obtain a destination address; performing route inquiry according to the destination address to obtain a target node; and checking whether an interface of the current switch communicated with the target node is in a working state or not so as to obtain a communication condition.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (10)

1. A dual redundancy communication method based on port routing management, characterized in that the method is used for a current switch; the method comprises the following steps:
receiving information to be transmitted, wherein the information to be transmitted carries a destination address;
checking the communication condition of the current switch and the node corresponding to the destination address;
under the condition that the current switch is not communicated with the node corresponding to the destination address, inquiring a target switch communicated with the node corresponding to the destination address;
and sending the information to be transmitted to the target switch to instruct the target switch to forward the information to be transmitted to a node corresponding to the destination address.
2. The method of claim 1, wherein a state monitoring interface exists between the current switch and the plurality of candidate switches, the state monitoring interface being configured to continuously monitor a connectivity state of the candidate switches with the plurality of candidate nodes; the target switch for inquiring the node which is communicated with the destination address comprises:
determining a target node according to the destination address;
acquiring the communication states of a plurality of candidate switches and the target node through the state monitoring interface;
and selecting a target switch from a plurality of candidate switches according to the communication state.
3. The method of claim 1, wherein the current switch comprises a plurality of alternate communication interfaces; the sending the information to be transmitted to the target switch to instruct the target switch to forward the information to be transmitted to the node corresponding to the destination address includes:
according to the target switch, any one of the plurality of alternative communication interfaces is selected as a redundant communication interface, wherein the redundant communication interface is communicated with the target switch;
and sending the information to be transmitted to the target switch through the redundant communication interface so as to instruct the target switch to forward the information to be transmitted to the node corresponding to the destination address.
4. A method according to claim 3, wherein after receiving the information to be transmitted, further comprising:
judging whether the information to be transmitted comes from the redundant communication interface or not;
and executing the step of checking the communication condition of the current switch and the node corresponding to the destination address in the case that the information to be transmitted is not from the redundant communication interface.
5. The method of claim 4, further comprising, after determining whether the information to be transmitted is from the redundant communication interface:
if the information to be transmitted is from the redundant communication interface, carrying out routing query according to the destination address so as to obtain a target node;
and sending the information to be transmitted to the target node.
6. The method according to any of claims 1 to 5, wherein the information to be transmitted is fibre channel FC frames.
7. The method of claim 6, wherein the checking connectivity of the current switch with the node corresponding to the destination address comprises:
extracting frame header information of the FC frame to obtain a destination address;
performing routing query according to the destination address to obtain a target node;
and checking whether an interface of the current switch communicated with the target node is in a working state or not so as to obtain a communication condition.
8. A dual redundant communication device based on port routing management, wherein the device is used for a current switch; the device comprises:
the information receiving module is used for receiving information to be transmitted, wherein the information to be transmitted carries a destination address;
the connectivity verification module is used for checking the connectivity condition of the node corresponding to the destination address and the current switch;
the redundancy query module is used for querying a target switch communicated with a node corresponding to the destination address under the condition that the current switch is not communicated with the node corresponding to the destination address;
and the information forwarding module is used for sending the information to be transmitted to the target switch so as to instruct the target switch to forward the information to be transmitted to the node corresponding to the destination address.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN202311719194.6A 2023-12-14 2023-12-14 Dual-redundancy communication method and device based on port routing management and computer equipment Pending CN117675535A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311719194.6A CN117675535A (en) 2023-12-14 2023-12-14 Dual-redundancy communication method and device based on port routing management and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311719194.6A CN117675535A (en) 2023-12-14 2023-12-14 Dual-redundancy communication method and device based on port routing management and computer equipment

Publications (1)

Publication Number Publication Date
CN117675535A true CN117675535A (en) 2024-03-08

Family

ID=90086268

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311719194.6A Pending CN117675535A (en) 2023-12-14 2023-12-14 Dual-redundancy communication method and device based on port routing management and computer equipment

Country Status (1)

Country Link
CN (1) CN117675535A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040081087A1 (en) * 2002-09-09 2004-04-29 Shea Michael John Method, apparatus and program storage device for verifying existence of a redundant fibre channel path
CN102171973A (en) * 2008-10-20 2011-08-31 国际商业机器公司 Redundant intermediary switch solution for detecting and managing fibre channel over Ethernet (FCOE) switch failures
CN110673799A (en) * 2019-09-26 2020-01-10 苏州浪潮智能科技有限公司 Cluster partnership establishment method, system, equipment and computer medium
CN111683021A (en) * 2020-07-17 2020-09-18 合肥国科天迅科技有限公司 Multi-protocol terminal with double-path redundant output for switch
CN112995041A (en) * 2021-04-21 2021-06-18 北京国科天迅科技有限公司 Network communication method, device, electronic equipment and storage medium
CN116614458A (en) * 2023-05-25 2023-08-18 浪潮思科网络科技有限公司 Information synchronization method, equipment and medium based on RoCE-SAN
CN116781648A (en) * 2023-07-14 2023-09-19 南京全信传输科技股份有限公司 High-stability redundant FC switch system based on FC protocol

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040081087A1 (en) * 2002-09-09 2004-04-29 Shea Michael John Method, apparatus and program storage device for verifying existence of a redundant fibre channel path
CN102171973A (en) * 2008-10-20 2011-08-31 国际商业机器公司 Redundant intermediary switch solution for detecting and managing fibre channel over Ethernet (FCOE) switch failures
CN110673799A (en) * 2019-09-26 2020-01-10 苏州浪潮智能科技有限公司 Cluster partnership establishment method, system, equipment and computer medium
CN111683021A (en) * 2020-07-17 2020-09-18 合肥国科天迅科技有限公司 Multi-protocol terminal with double-path redundant output for switch
CN112995041A (en) * 2021-04-21 2021-06-18 北京国科天迅科技有限公司 Network communication method, device, electronic equipment and storage medium
CN116614458A (en) * 2023-05-25 2023-08-18 浪潮思科网络科技有限公司 Information synchronization method, equipment and medium based on RoCE-SAN
CN116781648A (en) * 2023-07-14 2023-09-19 南京全信传输科技股份有限公司 High-stability redundant FC switch system based on FC protocol

Similar Documents

Publication Publication Date Title
EP3353952B1 (en) Managing groups of servers
US8270306B2 (en) Fault management apparatus and method for identifying cause of fault in communication network
CN108173691B (en) Cross-device aggregation method and device
CN111049765B (en) Aggregation port switching method, device, chip, switch and storage medium
WO2019085975A1 (en) Network topology display method and network management device
US11310139B2 (en) Fault detection for LACP packet timeout
CN102185764B (en) Method and device for receiving and processing OAM (operation, administration and maintenance) messages in link layer and switch
CN112637010B (en) Equipment checking method and device
US11258632B2 (en) Unavailable inter-chassis link storage area network access system
CN116760745A (en) Network exception handling method, apparatus, device, storage medium and program product
CN117675535A (en) Dual-redundancy communication method and device based on port routing management and computer equipment
US9787533B2 (en) Obstruction determination device
CN111510321B (en) Network fault processing method, device, computer equipment and storage medium
US10277700B2 (en) Control plane redundancy system
CN116708532B (en) Local area network connection method, device, computer equipment and readable storage medium
CN115086173B (en) Reliability guarantee method and device in network upgrading process
JP2014170985A (en) Communication device, communication method, and communication program
CN114356830B (en) Bus terminal control method, device, computer equipment and storage medium
CN117880225B (en) Network monitoring method, device, switch, computer equipment, storage medium and computer program product
CN114785631B (en) Communication protocol stack multiplexing method, communication method, computer device and medium
US11528204B2 (en) Monitoring device, network fault monitoring system, and monitoring method
CN116052583A (en) Control method and device of LED control system, computer equipment and storage medium
CN117354267A (en) Link failure processing method, device, equipment, storage medium and program product
CN118764448A (en) Data transmission method, device, electronic equipment, storage medium and program product
CN116232952A (en) Abnormality identification method and device for network topology and computer equipment

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