CN113852514A - Data processing system with uninterrupted service, processing equipment switching method and connecting equipment - Google Patents

Data processing system with uninterrupted service, processing equipment switching method and connecting equipment Download PDF

Info

Publication number
CN113852514A
CN113852514A CN202010820627.7A CN202010820627A CN113852514A CN 113852514 A CN113852514 A CN 113852514A CN 202010820627 A CN202010820627 A CN 202010820627A CN 113852514 A CN113852514 A CN 113852514A
Authority
CN
China
Prior art keywords
processing device
connection
communication link
slave
external
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
CN202010820627.7A
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN113852514A publication Critical patent/CN113852514A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • 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/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • 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/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5041Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a data processing system with uninterrupted service, a processing equipment switching method and a connecting device. The data processing system includes a connection device, a master processing device, and a slave processing device. The master processing device is connected to and provides services for the external device through the connection device, and the master processing device and the slave processing device have the same network address, such as an IP address and a MAC address. When the connection device determines that the master processing device cannot provide the service for the external device, such as the master processing device fails, a communication link between the connection device and the slave processing device is established, so that the processor providing the service for the external device is switched to the slave processing device. When the connection device switches the main processing device to the slave processing device, the MAC address corresponding to the IP address stored in the switch or the external device does not need to be modified, so that the main processing device which can not provide service for the external device can be switched to the slave processing device under the condition that the MAC address corresponding to the IP address does not need to be modified.

Description

Data processing system with uninterrupted service, processing equipment switching method and connecting equipment
The present application claims priority from the chinese patent application filed by the chinese intellectual property office on 28/6/2020 and having application number 202010600055.1 entitled "a fail-over storage array," which is incorporated herein by reference in its entirety.
Technical Field
The embodiment of the application relates to the technical field of network communication, in particular to a data processing system with uninterrupted service, a processing equipment switching method and connecting equipment.
Background
Currently, a plurality of processing devices are often included in a portion of a data processing system to enable the data processing system to provide highly reliable services. For example, when the data processing system is a storage system, the storage system may provide data storage services for external devices (e.g., hosts, etc.) connected to the storage system through a plurality of processing devices. Therefore, when any processing device in the storage system cannot provide corresponding service for the external device, for example, when the processing device fails, the processing device can be automatically switched to other processing devices to continue providing service, so as to ensure that the service is not interrupted.
At present, in order to ensure uninterrupted service, when processing equipment is switched, an IP drift technology is generally adopted, which requires a switch to participate, and for a scenario without a switch, for example, a scenario in which a host is directly connected to a storage system, the IP drift technology cannot be used. In addition, for the switch with security control, the switching of the processing devices cannot be performed by the IP drift technology, so that the service cannot be interrupted.
Disclosure of Invention
The embodiment of the application provides a data processing system with uninterrupted service, a processing device switching method and a connecting device, which are used for realizing that an external device can be connected with a switched processing device, so that the data processing system can provide the service for the external device after part of the processing devices cannot provide the service.
In a first aspect, embodiments of the present application provide a data processing system with uninterrupted service, where the data processing system may include a connection device, a master processing device, and a slave processing device, and the master processing device may be connected to an external device through the connection device, so that the master processing device may provide services, such as storage services, for the external device. The master processing device and the second data processing may have the same network address, so that when the connection device determines that the master processing device cannot provide the service for the external device, the communication link between the connection device and the slave processing device may be established, and the slave processing device may provide the service for the external device based on the same network address as the master processing device configured thereon and the established communication link between the connection device and the slave processing device, that is, the slave processing device may continue to provide the service, which the master processing device stopped providing, for the external device.
Since the master processing device and the slave processing device are each configured with the same network address, and the connection device can switch the communication link with the processing device, this makes it impossible for the master processing device to provide service to the external devices, the connecting device, by establishing its communication link with the slave processing device, the slave processing device may be enabled to continue to provide service to the external device based on the communication link, since both the master processing device and the slave processing device are configured with the same network address, when the processing device for providing service for the external device is switched to the slave processing device, the external device or the switch is not required to be informed and required to modify the network address stored on the external device or the switch (such as modifying the MAC address corresponding to the IP address), therefore, the situation that the slave processing equipment cannot be connected with the external equipment due to the fact that the network address on the external equipment or the switch cannot be modified, and service is interrupted can be avoided.
The connection device may determine that the main processing device cannot provide a service for the external device when a communication failure between the connection device and the main processing device is detected. For example, in the process that the main processing device provides a service for the external device, the connection device may periodically detect whether a heartbeat message sent by the main processing device is received within a preset time period, and if not, the connection device may determine that the main processing device is not failed or a communication link between the connection device and the main processing device is failed. Of course, if the connection device receives the heartbeat message sent by the main processing device within the preset time period, it may be determined that the main processing device fails, and the communication link between the connection device and the main processing device does not fail. Or, there is a hardware pin connection between the connection device and the main processing device, so that the connection device can detect the potential of the hardware pin connected with the main processing device, and determine whether the connection device fails according to the level of the potential.
In other embodiments, the connection device may also establish the communication link between the connection device and the slave processing device by determining that the master processing device cannot continue to provide the service for the external device after receiving the handover instruction for the communication link. For example, the main processing device may send a switching instruction to the connection device when detecting that its load is too high (e.g., CPU occupancy is too high, remaining available storage space is small, etc.); after receiving the switching instruction, the connection device may set the communication link between the connection device and the master processing device to be disabled, and set the communication link between the connection device and the slave processing device to be enabled, so as to switch the communication link, that is, to switch the processing device providing the service.
In a possible implementation manner, when establishing the communication link between the connection device and the slave processing device, the connection device may be specifically configured to set the communication link between the connection device and the master processing device to be disabled, and set the communication link between the connection device and the slave processing device to be enabled. In this way, at the same time, the connecting device may only have an active communication link with the slave processing device, so that the external device may only be connected with one processing device.
In one possible embodiment, the connection device may be further configured to receive an access request from an external device, and may further determine an active communication link, such that the connection device may send the access request over the active communication link. Each time the connection device forwards the access request, it may determine, according to the active or inactive state of the communication link, to forward the access request only from the communication link in the active state, and not forward the access request to the communication link in the inactive state.
In a possible implementation manner, when establishing the communication link between the connection device and the slave processing device, the connection device may specifically set a port of the connection device connected to the slave processing device to be valid, and at the same time, the connection device sets a port of the connection device connected to the master processing device to be invalid. Of course, this embodiment is only an example of setting the communication link to be active or inactive, and in practical applications, other possible embodiments may be adopted.
In a possible implementation, the MAC addresses of the master processing device and the slave processing device may be MAC addresses of the connection devices.
In one possible implementation, when the master processing device and the slave processing device are powered on, the master processing device and the slave processing device may respectively establish a communication link with the connection device, and request the connection device to obtain an AMC address of the connection device based on the communication connection, so that the master processing device and the slave processing device may respectively set the MAC address of the connection device to their own MAC address. In this way, the master processing device and the slave processing device can automatically configure their own MAC addresses as the same MAC address.
In a possible embodiment, the network addresses of the master processing device and the slave processing device may specifically be IP addresses and MAC addresses, so that after the processing device providing the service is switched from the master processing device to the slave processing device, the external device can still use the same IP address and MAC address to achieve connection with the processing device in the data processing system, and thus the IP address and MAC address do not need to be changed.
In a possible implementation manner, when the slave processing device provides a service for the external device based on the same network address as the master processing device, specifically, the slave processing device may receive a data access request sent by the external device, and determine that the slave processing device does not establish a communication connection with the external device based on the data access request, and then the slave processing device may send an IP address of the slave processing device to the external device to establish a communication connection with the external device and provide a service for the external device based on the communication connection. In this embodiment, when the slave processing device receives a data access request from a strange channel, the slave processing device may notify the external device of its own configured IP address so that the external device can establish a communication connection with the slave processing device based on the IP address. Illustratively, when the slave processing device and the external device communicate based on the TCP/IP protocol, the slave processing device may establish a communication connection with the external device by means of three-way handshake or the like.
In one possible implementation, the data processing system may specifically be a storage device, and the master processing device and the slave processing device in the data processing system may specifically be two controllers in the storage device. Of course, the storage device may be a controller including three or more (including three).
In a possible implementation, the data processing system may specifically be a server cluster, and the master processing device and the slave processing device in the data processing system may specifically be two servers in the server cluster. Of course, the server cluster may include three or more (including three) servers.
In a second aspect, an embodiment of the present application further provides a processing device switching method, which is applied to a connection device, where the connection device connects a master processing device and a slave processing device, and connects the master processing device to an external device; the method specifically comprises the following steps: the connection device determines that the main processing device cannot provide a service for the external device, for example, when the connection device detects that the main processing device fails, or detects that a communication link between the connection device and the main processing device fails, or detects that a load of the main processing device is too high, the connection device may determine that the main processing device cannot provide a service for the external device, and at this time, the connection device may establish a communication link between the connection device and the slave processing device. In this way, the slave processing device can continue to provide services for the external device based on the network address of the master processing device and the communication link between the master processing device and the connection device, and in the process, the external device or the switch is not required to be notified and required to modify the network address stored on the external device or the switch (such as modifying the MAC address corresponding to the IP address), so that the situation that the network address on the external device or the switch cannot be modified to cause the slave processing device to be unable to be connected with the external device can be avoided. Moreover, because the network address used by the external device and the data processing system in the connection process does not change along with the switching of the processing device, no additional requirement on the network configuration of the external device and/or the switch is required in the device switching process, and the feasibility of implementation of the scheme is improved.
The connection device may detect whether the main processing device fails or whether a communication link between the connection device and the main processing device fails through heartbeat detection or hardware pin potential. Or, after receiving the switching instruction sent by the main processing device, the connection device determines that the main processing device cannot continue to provide services for the external device, and the like.
In a possible implementation, when establishing the communication link between the connection device and the slave processing device, the connection device may specifically set the communication link between the connection device and the master processing device to be disabled, and set the communication link between the connection device and the slave processing device to be enabled. In this way, the connection device can forward the access request sent by the external device over the active communication link.
In a possible implementation, when forwarding the access request, the connection device may specifically receive the access request of the external device, determine an effective communication link, and then send the access request through the effective communication link.
In a possible implementation manner, the connection device sets a communication link between the connection device and the master processing device to be disabled, specifically, a port of the connection device, which is connected to the master processing device, to be disabled, and correspondingly, the connection device sets a communication link between the connection device and the slave processing device to be enabled, specifically, a port of the connection device, which is connected to the slave processing device, to be enabled. Therefore, when forwarding the access request, the connection device can detect the state of each output port and forward the access request through the effective output port.
In one possible embodiment, the network address includes an internet protocol, IP, address and a media access control, MAC, address. Of course, in other possible embodiments, the network address may also be an address that is capable of identifying a device in the network.
In one possible embodiment, the MAC address is a MAC address of the connection device. For example, the MAC addresses configured on the master processing device and the slave processing device may be MAC addresses on the connection device. For example, after the master processing device and the slave processing device are powered on, a request for accessing and acquiring the MAC address may be sent to the connection device; after receiving the request, the connection device may obtain its own MAC address, and send the MAC address to the master processing device and the slave processing device through communication links between the connection device and the master processing device and the slave processing device, respectively; in this way, the master processing device and the slave processing device can configure their own MAC addresses as the MAC addresses based on the received MAC addresses of the connection devices.
The processing device switching method according to the second aspect corresponds to the data processing system with uninterrupted service according to the first aspect, and therefore, for specific implementation of any one of the embodiments of the second aspect and technical effects achieved by the implementation of the corresponding embodiments of the first aspect and the first aspect, reference may be made to implementation processes and technical effects of the corresponding embodiments of the first aspect and the first aspect, which are not described herein again.
In a third aspect, the embodiments of the present application provide a connection device based on the same inventive concept as the method embodiments of the second aspect. The connection device has a function of realizing the connection device in each embodiment of the second aspect described above. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above.
In a fourth aspect, an embodiment of the present application provides a connection device, where the connection device includes a first port, a second port, a third port, and a processor, where the first port and the second port are respectively used to connect a master processing device and a slave processing device, the connection device connects the master processing device to an external device through the first port and the third port, and the processor is configured to execute the method described in any one of the above second aspects.
In a fifth aspect, an embodiment of the present application provides a connection device, including: a processor and a memory; the memory is configured to store instructions, and when the connection device runs, the processor executes the instructions stored in the memory, so as to enable the connection device to execute the processing device switching method in the second aspect or any implementation method of the second aspect. It should be noted that the memory may be integrated into the processor or may be independent from the processor. The apparatus may also include a bus. Wherein, the processor is connected with the memory through a bus. The memory may include a readable memory and a random access memory, among others.
In a sixth aspect, the present application further provides a readable storage medium, which stores a program or instructions, and when the readable storage medium is run on a computer, the program or instructions cause the processing device switching method in any of the above aspects to be performed.
In a seventh aspect, the present application also provides a computer program product containing instructions, which when run on a computer, cause the computer to execute any of the processing device methods in the above aspects.
In addition, for technical effects brought by any one implementation manner of the second aspect to the seventh aspect, reference may be made to technical effects brought by different implementation manners of the first aspect, and details are not described here.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art according to the drawings.
FIG. 1 is a schematic diagram of a network architecture;
FIG. 2 is a block diagram of an embodiment of a data processing system with uninterrupted service;
FIG. 3 is a block diagram of an embodiment of a data processing system with uninterrupted service;
fig. 4 is a schematic flowchart of a processing device switching method in an embodiment of the present application;
FIG. 5 is a schematic structural diagram of a connecting device according to an embodiment of the present application;
fig. 6 is a schematic hardware structure diagram of a connection device in an embodiment of the present application;
fig. 7 is a schematic hardware structure diagram of another connection device in the embodiment of the present application.
Detailed Description
As shown in FIG. 1, in a presently common network architecture, data processing system 100 is coupled to external devices 120 through switch 110 and network 111 to provide services to external devices 120. The network 111 may be the internet (internet) or a local area network (intranet). The data processing system 100 is, for example, a storage system that provides data storage services for external devices 120 (e.g., hosts, etc.). Data processing system 100 includes a processing device 101 and a processing device 102, where processing device 102 may act as a backup to processing device 101. When the processing device 101 cannot continue to provide service to the external device 120, for example, when the processing device 101 fails or the link with the switch 110 is broken, the processing device providing the service is switched from the processing device 101 to the processing device 102.
Each processing device in data processing system 100 is typically identified by an Internet Protocol (IP) address and a Media Access Control (MAC) address for communicating with other devices in the network. In general, IP addresses and MAC addresses of different processing devices are different from each other. In the process of providing services to the external device 120 by the data processing system 100, the external device 120 may establish a connection with the processing device 101 in the data processing system 100 by using the IP address, so that the processing device 101 provides corresponding services to the external device 120. As an example, the external device 120 may establish a connection with the processing device 101 by sending a connection request to the processing device 101. Specifically, when the network 111 is the internet, the external device 120 generates a connection request, where the connection request carries a destination IP address, that is, an IP address of the processing device 101, and is used to request to establish a connection with the processing device 101, and then the external device 120 sends the connection request to the switch 110. After the switch 110 resolves the destination IP Address in the connection request, it may search a locally stored Address Resolution Protocol (ARP) table or a neighbor cache (neighbor cache) table, where the ARP table or the neighbor cache table includes a corresponding relationship between the IP Address and the MAC Address, so as to determine, through table lookup, the MAC Address of the processing device 101 corresponding to the destination IP Address carried in the connection request, and forward the connection request to the processing device 101 according to the MAC Address, so that the processing device 101 establishes a connection with the external device 120 based on the connection request, and provides corresponding services for the external device 120.
When the network 111 is a local area network, the external device 120 stores an ARP table or a neighbor cache table. When the external device 120 needs to establish a connection with the processing device 101, the external device 120 determines a MAC address corresponding to the IP address of the processing device 101 by looking up the ARP table or the neighbor cache table, and sends a connection request including the MAC address to the switch 110; the switch 110 may forward the connection request to the processing device 101 according to the MAC address in the connection request, so that the processing device 101 establishes a connection with the external device 120 based on the connection request, and provides a corresponding service for the external device 120.
In the related art, when the processing device 101 cannot continue providing a service, for example, when the processing device 101 fails or a link between the processing device 101 and the switch 110 is disconnected, the processing device providing a service is switched from the processing device 101 to the processing device 102 by the technique of IP drift. When the network 111 is a wide area network, the specific method for switching the devices by using the IP drift technology is as follows: the IP address of the processing device 101 is migrated to the processing device 102, and the processing device 102 notifies the switch 110 of modifying the MAC address corresponding to the IP address of the processing device 101 from the MAC address of the processing device 101 to the MAC address of the processing device 102 by broadcasting a gratuitous ARP message or a Neighbor Discovery (ND) message. In this way, the switch 110 may forward the connection request sent by the external device 120 to the switched processing device 102 based on the correspondence between the IP address and the MAC address stored thereon, so that the external device 120 can successfully establish a connection with the switched processing device 102, thereby continuing to provide services for the external device 120 through the processing device 102.
When the network 111 is a local area network, since the correspondence between the IP address and the MAC address is stored in the external device, when the IP drift technique is used, after the IP address of the processing device 101 is drifted to the processing device 102, the processing device 102 notifies the external device 120 by broadcasting a gratuitous ARP message or an ND message to modify the MAC address corresponding to the IP address of the processing device 101 to the MAC address of the processing device 102, so that the processing device 102 establishes a connection with the external device 120 through the IP address of the processing device 101 to continue providing services to the external device 120.
However, in some scenarios, the correspondence between the IP address and the MAC address in the external device 120 or the switch 110 only allows the user to perform static configuration, and does not allow the device to modify itself. For example, based on network security or switch performance considerations, a user will typically configure the switch 110 to ignore gratuitous ARP messages or ND messages, so as to reduce the number of broadcast messages in the network and the duplicate forwarding of gratuitous ARP messages or ND messages by the switch 110. In this way, the correspondence between the IP address of the processing device 101 and the MAC address of the processing device 101 in the external device 120 or the switch 110 cannot be modified to the correspondence between the IP address of the processing device 101 and the MAC address of the processing device 102, so that the processing device 102 cannot establish a connection with the external device 120 based on the IP address of the processing device 101, thereby causing service interruption.
In another scenario, processing device 101 and processing device 102 may not be connected to external device 120 through switch 110, but directly connected to external device 120 through network 111, thus, IP drift techniques cannot be used, and service interruption-free cannot be achieved.
Based on this, the embodiment of the present application provides an uninterrupted-service data processing system, in which a master processing device (e.g., processing device 101 in fig. 1) and a slave processing device (e.g., processing device 102 in fig. 1) as a backup device configure the same network address, such as an IP address and a MAC address. In addition, the data processing system is further configured with a connection device such that the master processing device is connected to an external device (e.g., external device 120 of FIG. 1) via the connection device, the connection device establishing a communication link between the connection device and the slave processing device upon determining that the master processing device is unable to provide services for the external device. Since the network addresses of the master processing device and the slave processing device are the same and the connection device can switch the communication link with the processing device, the slave processing device can continue to provide services for the external device based on the communication link after the communication link between the connection device and the slave processing device is established, and in the process, the MAC address in the switch or the external device does not need to be modified, so that the processing device providing services can be switched from the master processing device to the slave processing device even in a scenario where the processing device is not connected to the external device through the switch or the external device/switch cannot modify the corresponding relationship between the IP address and the MAC address.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, various non-limiting embodiments accompanying the present application examples are described below with reference to the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to FIG. 2, an architecture diagram of an uninterrupted-service data processing system according to an embodiment of the present application is shown. The data processing system 200 of the present embodiment is the data processing system 100 of fig. 1 to which a connection device 203 is added, the connection device 203 is connected to a switch 210, and a master processing device 201 and a slave processing device 202 are simultaneously connected to the connection device 203. The master processing device 201 in the data processing system 200 may refer to the processing device 101, and the slave processing device 202 may refer to the processing device 102.
In the present embodiment, the main processing device 201 can establish a communication connection with the external device 220 through the connection device 203, the switch 210, and the network 211, and provide a service for the external device 220 based on the communication connection. The slave processing device 202 may act as a backup for said master processing device 201, and when there is a communication connection between the master processing device 201 and the external device 220, no communication connection is established between the slave processing device 202 and the external device 220. Illustratively, the data processing system 200 may be an electronic device, such as a memory device, with the master processing device 201 and the slave processing device 202 being controllers within the memory device; it may also be a server cluster comprising a plurality of servers, i.e. the master processing device 201 and the slave processing device 202 are two servers in the server cluster.
When the network 211 shown in fig. 2 is a wide area network, the switch 210 stores a network address of the main processing device 201, so as to transmit a message sent by the external device 220 to the main processing device 201 according to the network address, where the network address may be an IP address, a MAC address, and the like of the main processing device 201 stored in an ARP table or a neighbor cache table, and of course, may also be another network address for implementing connection between the external device 220 and the main processing device 201, because the IP address and the MAC address are mainstream ways for currently identifying devices in the network, the following description will take the IP address and the MAC address as examples. When the network 211 is a local area network, the external device 220 may store the IP address and the MAC address of the main processing device 201, so that the external device 220 sends a message to the main processing device 201 based on the IP address and the MAC address.
It should be noted that, in this embodiment, the data processing system 200 is exemplarily illustrated as including only two processing devices, in other possible embodiments, the data processing system 200 may also include more than three (including three) processing devices, and besides the main processing device 201, other processing devices all serve as backup devices for the main processing device 201, of course, some of the processing devices may also serve as backup devices for the main processing device 201, and this embodiment is not limited thereto.
In the process of providing the external device 220 with a service by the main processing device 201, a device failure may occur, or a communication link between the main processing device 201 and the external device 220 fails, at which point the main processing device 201 may not be able to continue providing the service for the external device 220. For this reason, in the present embodiment, by setting the same IP address and MAC address as those of the master processing apparatus 201 for the slave processing apparatus 202, and when the connection apparatus 203 detects that the master processing apparatus 201 cannot provide a service for the external apparatus 220, the connection apparatus 203 switches the communication link between the external apparatus 220 and the master processing apparatus 201 to the communication link between the slave processing apparatus 202 and the external apparatus 220, so that the slave processing apparatus 202 continues to provide the service for the external apparatus 220 based on the communication link.
In a specific implementation, the connection device 203 may establish a communication link between the connection device 203 and the slave processing device 202 and disconnect the communication link between the connection device 203 and the master processing device 201 when it is determined that the master processing device 201 cannot provide a service for the external device 220, for example, a communication link route disabled (disable) state between the connection device 203 and the master processing device 201 may be set to an enabled (enable) state, and a communication link route enabled (enable) state between the connection device 203 and the master processing device 201 may be set to a disabled (disable) state. After completing the state setting of each communication link, if the connection device 203 receives the access request sent by the external device 220, it may determine the communication link in the valid state, that is, the communication link between the connection device 203 and the slave processing device 202, so that the connection device 202 may send the access request to the processing device 202 through the valid communication link, thereby implementing normal communication between the external device 220 and the slave processing device 203.
As an example, the connection device 203 may specifically set the communication link device between the connection device 203 and the slave processing device 202 to an active state (enable) by setting the state of the port of the connection device 202 from an inactive state (disable) to an active state (enable), and set the communication link device between the connection device 203 and the master processing device 201 to an inactive state by setting the port of the connection device 201 from an active state (enable) to an inactive state (disable). In this way, when the message sent by the external device 220 is transmitted to the connection device 203, the connection device 203 can check the status of each port and forward the message from the port in the valid status, so that the connection device 203 can forward the message to the slave processing device 202 without forwarding the message to the master processing device 201. In the above example, the setting of the validity and the invalidity of the port is taken as an example to describe that the communication link between the connection device 203 and the master processing device 201 or the slave processing device 202 is set to be valid or invalid, in practical application, the communication link may be set to be valid or invalid in other manners, which is not limited in this embodiment.
In addition, when the network 211 shown in fig. 2 is a wide area network, the IP address and the MAC address of a processing device serving the external device 220 in the data processing system 200 are stored on the switch 210. Although the switching of the processing devices providing services occurs in the data processing system 200, since the master processing device 201 and the slave processing device 202 before and after the switching are configured with the same IP address and MAC address, the IP address and its corresponding MAC address stored on the switch 210 do not need to be modified. For the message sent by the external device 220, the switch 210 may still forward the message to the connection device 203 according to the original IP address and MAC address. And the connection device 203 forwards the message to the slave processing device 202 based on the communication link with the slave processing device 202, so as to realize the communication between the external device 220 and the slave processing device 202. Thus, the problem that when a processing device providing service is switched, the MAC address corresponding to the IP address stored in the switch 210 needs to be modified but cannot be modified, so that the external device 220 cannot be connected to the slave processing device 202, thereby causing service interruption, can be avoided.
When network 211 shown in FIG. 2 is a local area network, the IP address and MAC address of the processing device serving external device 220 in data processing system 200 are stored on external device 220. When a switching occurs in a processing apparatus that provides a service in the data processing system 200, since the master processing apparatus 201 and the slave processing apparatus 202 before and after the switching are configured with the same IP address and MAC address, the correspondence relationship between the IP address and MAC address stored on the external apparatus 220 does not need to be modified. The external device 220 may still forward the packet to the connection device 203 through the switch 210 according to the original correspondence between the IP address and the MAC address, and the connection device 203 forwards the packet to the slave processing device 202 based on the communication link between the connection device 203 and the slave processing device 202, so as to implement communication between the external device 220 and the slave processing device 202. In this way, the problem that the connection between the external device 220 and the slave processing device 202 fails because the MAC address corresponding to the IP address stored in the external device 220 needs to be modified but cannot be modified can be avoided.
In this embodiment, when the connection device 203 detects that the main processing device 201 fails, or detects that a communication link between the main processing device 201 and the connection device 203 fails, it is determined that the main processing device 201 cannot continue to provide services for the external device 220.
As an example, the connection device 203 detects whether a heartbeat message sent by the main processing device 201 is received within a preset time period, and if so, the connection device 203 may determine that the main processing device 201 does not malfunction and a communication link between the connection device 203 and the main processing device 201 does not malfunction; if the connection device 203 does not receive the heartbeat message sent by the main processing device 201 for the preset duration, it may be determined that the main processing device 201 fails, or that a communication link between the connection device 203 and the main processing device 201 fails.
In another example, the way in which the connection device 203 detects a communication link failure between the main processing device 201 and the connection device 203 may be: the connection device 203 detects the potential of a hardware pin connected with the main processing device 201, and when the potential of the hardware pin is low, it is determined that the connection between the main processing device 201 and the connection device 203 is disconnected, that is, a communication link fails; and when the potential of the hardware pin is high, it can be determined that the communication link between the main processing device 201 and the connection device is not faulty. In this embodiment, the specific implementation of how the connection device 203 detects whether the main processing device 201 fails is not limited.
In one possible implementation, the MAC address of the master processing device 201 and the MAC address of the slave processing device 202 are both the MAC address of the connection device 203, after the master processing device 201 and the slave processing device 202 are powered on, the master processing device 201 and the slave processing device 202 respectively send requests for acquiring MAC addresses to the connection device 203, and after receiving the MAC address returned by the connection device 203, the master processing device 201 and the slave processing device 202 respectively set the received MAC of the connection device 203 as their own MAC addresses. In this way, the master processing device 201 and the slave processing device 202 may be configured with the same MAC address, and the IP addresses of the master processing device 201 and the slave processing device 202 may be configured by the operation and maintenance personnel.
It is to be noted that, in a traffic scenario in which communication is performed based on Transmission Control Protocol (TCP), after the connection device 203 sets a communication link with the slave processing device 202 to be valid, the slave processing device 202 may receive a data access request sent by the external device from the connection device 203, and the slave processing device 202 may determine, based on a source IP address in the data access request, that it does not establish a communication connection with the external device 220 indicated by the source IP address, and then the slave processing device 202 may send instruction information for reestablishing a connection to the external device 220 based on the source IP address to notify the external device 220 to reestablish a connection with the slave processing device 202 by using the IP address of the slave processing device 202, where the instruction information includes the IP address of the slave processing device. In this way, the external device 220 can establish a communication connection with the slave processing device 202 by means of three-way handshake or the like. An exemplary service scenario for performing communication based on the TCP Protocol may include a scenario based on protocols such as an Internet Small Computer System Interface (iSCSI) Protocol, a Common Internet File System (CIFS) Protocol, an Internet Wide-Area Remote Direct Memory Access (iWARP) Protocol, a HyperText Transfer Protocol (HTTP), and a Secure Shell (SSH) Protocol.
In a service scenario based on the User Datagram Protocol (UDP), after the connection device 203 sets the communication link between the connection device and the slave processing device 202 to be valid and receives the data access request sent by the external device 220, the slave processing device 202 may directly process the data access request sent by the external device 220, so that the service of the external device 220 may not be interrupted. Exemplary service scenarios for performing communication based on the UDP protocol may include service scenarios of protocols such as Network File System (NFS), Common Internet File System (CIFS) protocol, Remote Direct Memory Access over Ethernet (RoCE) protocol based on Converged Ethernet, and the like.
In this embodiment, the data processing system 200 further includes a memory 204, the memory 204 is provided with a logical disk for storing the data of the service, and both the master processing device 201 and the slave processing device 202 mount the logical disk, so that the slave processing device 202 can continue to provide the service that is not completed by the master processing device 201 to the external device 220 after establishing connection with the external device 220.
It should be noted that, in this embodiment, the data processing system 200 and the external device 220 are exemplarily illustrated as being indirectly connected through the switch 210, and of course, in other possible embodiments, the data processing system 200 may also be directly connected with the external device 220 without being connected through the switch 210. That is, the embodiments of the present application may also be applied to a scenario in which the data processing system is connected to an external device through a network, and does not need to be indirectly connected through a switch. As described above, in the related art, in such a scenario, since there is no switch, it is not possible to modify the MAC address corresponding to the IP address of the master processing device 201 to the MAC of the slave processing device 202, and therefore it is not possible to ensure that the service is not interrupted, but according to the technical solution provided in the embodiment of the present invention, since the IP addresses and MAC addresses of the master processing device 201 and the slave processing device 202 are the same, when switching to the slave processing device 202 to provide the external device 220 with the service, it is not necessary to change the MAC address corresponding to the IP address of the master processing device 201, so that in a scenario where the data processing system 200 is not connected to the network 211 through the switch 210, when the master processing device 201 cannot provide the external device 220 with the service, it is also possible to switch to the slave processing device 202 to provide the external device 220 with the service.
In the above-described embodiment, a process of continuing to provide a service to the external device 220 by the slave processing device 202 when the master processing device 201 fails or the communication link between the connection device 203 and the master processing device 201 is disconnected in the data processing system 200 is mainly described. In other possible embodiments, when the load of the master processing device 201 is too high, the connection device 203 may switch the processing device currently providing the service for the external device 220 to the slave processing device 202.
Specifically, based on the network architecture shown in fig. 2, the main processing device 201 in the data processing system 200 may monitor its own load status (e.g., CPU occupancy, remaining available storage space, etc.) in real time. When the load of the main processing device 201 itself exceeds the preset threshold, the main processing device 201 may send a switching instruction to the connection device 203, for instructing the connection device 203 to switch the processing device receiving the packet of the external device 220 from the main processing device 201 to the slave processing device 202. The connection device 203 may set the communication link between it and the master processing device 201 to be disabled and the communication link between it and the slave processing device 202 to be enabled based on the received switching instruction. In this way, the connection device 203 can forward the received data access request sent by the external device 220 to the slave processing device 202 through the communication link between the connection device 203 and the slave processing device 202, and does not forward the message to the master processing device 201, so that the service provided by the master processing device 201 for the external device 220 is transferred to the slave processing device 202, thereby reducing the load of the master processing device 201.
In the above embodiments, the specific implementation process that the slave processing device 202 continues to provide the service for the external device 220 after the master processing device 201 cannot provide the service for the external device 220 is described. The slave processing device 202 may also serve as a master processing device for other external devices. Specifically, on the basis of the data processing system shown in fig. 2, the data processing system may further include other connection devices, and as shown in fig. 3, the data processing system 300 may include a master processing device 301, a slave processing device 302, a connection device 303, and a connection device 304. In the normal operation mode, the connection device 303 and the connection device 304 are connected to the switch 310, and the external device 321 and the external device 322 are connected to the switch 310. When neither the master processing device 301 nor the slave processing device 302 fails, the master processing device 301 may implement connection with the external device 321 through the connection device 303, the switch 310, and the network 311, and provide a first service for the external device 321; the slave processing device 302 can realize connection with the external device 322 through the connection device 304, the switch 310, the network 311, and provide a second service for the external device 322.
It should be noted that, in addition to the same first network address (e.g., the first IP address and the first MAC address), the master processing device 301 and the slave processing device 302 may also be configured with the same second network address (e.g., the second IP address and the second MAC address). That is, the master processing device and the slave processing device may be configured with a plurality of identical network addresses at the same time, and may be connected to a plurality of connection devices to provide services to a plurality of external devices. For example, the main processing device 301 may connect with the external device 321 based on the first network address to provide the first service for the external device 321; and the slave processing device 302 may connect with the external device 322 based on the second network address to provide a second service for the external device 322.
In this embodiment, the master processing device 301 and the slave processing device 302 may be hot standby each other. That is, when the master processing device 301 fails to continue providing the first service to the external device 321 due to a device failure or a communication link failure, etc., the connection device 303 may set the communication link between it and the slave processing device 302 to be active, so that the slave processing device 302 may establish a communication connection with the external device 321 and continue providing the first service to the external device 321, and of course, the slave processing device also provides the second service to the external device 322 at the same time. When the slave processing device 302 cannot continue to provide the second service for the external device 322 due to a device failure or a communication link failure, the connection device 304 may set the communication link between the slave processing device 302 and the slave processing device 301 to be valid, so that the master processing device 301 may establish a communication connection with the external device 322 and continue to provide the second service for the external device 322, and of course, the master processing device 302 also provides the first service for the external device 321.
In addition, an embodiment of the present application further provides a processing device switching method, which may be applied to the data processing system shown in fig. 2 or fig. 3. Taking the application of the method to the data processing system 200 shown in fig. 2 as an example, the processing device switching method provided in the embodiment of the present application may specifically include:
s401: the external device 220 establishes a communication connection with the main processing device 201 based on the network address of the main processing device 201, so that the main processing device 201 provides a service to the external device 220.
As an example, the network address may be an IP address and a MAC address, or may be other addresses for identifying devices in the network, which is not limited in this embodiment.
S402: the connection device 203 determines that the main processing device 201 cannot continue to provide the service for the external device 220.
In the process of providing the external device 220 with the service by the main processing device 201, the main processing device 201 may not continue to provide the service for the external device 220 due to a device failure of the main processing device 201, a failure of a communication link between the main processing device 201 and the connection device 203, an excessive load of the main processing device 201, and the like.
For a detection method of the connection device 203 for a failure of the main processing device 201 or a failure of a communication link between the main processing device 201 and the connection device 203, reference may be made to relevant description in the embodiment shown in fig. 2, which is not described herein again. When the load of the main processing device 201 is too high, the main processing device 201 may send a switching instruction to the connection device 203, and the connection device may determine, according to the switching instruction, that the main processing device 201 cannot continue to provide services for the external device 220.
S403: the connection device 203 establishes a communication link between the connection device 203 and the slave processing device 202.
As an example, when determining that the master processing device 201 cannot continue to provide the service for the external device 220, the connection device 203 may disconnect the communication link between the connection device 203 and the master processing device 201 and establish the communication link between the connection device 203 and the slave processing device 202 by setting a communication link route disabled state between the connection device 203 and the slave processing device 202 to an enabled state and setting a communication link route enabled state between the connection device 203 and the master processing device 201 to a disabled state. The communication link is set to be valid or invalid, which may be described with reference to relevant parts in the embodiment shown in fig. 2, and is not described herein again.
It is noted that the master processing device 201 and the slave processing device 202 may be configured with the same network address, which may be, for example, an IP address and a MAC address. In this way, after switching the processing device connected to the external device 220, the external device 220 can still communicate with the processing device in the data processing system using the same IP address and MAC address. For a specific implementation process that the master processing device 201 and the slave processing device 202 are configured with the same network address, reference may be made to the description of the relevant points in the foregoing embodiment of fig. 2, which is not described herein again.
S404: the external device 220 reestablishes a communication connection with the slave processing device 202.
Since the connection device 203 switches the processing device connected thereto to the slave processing device 202, the connection device 203 can transmit a data access request transmitted by the external device 220 to the slave processing device 202 through an effective communication link. Upon receiving the data access request, the slave processing device 202 instructs the external device 220 to establish a communication connection with the slave processing device 202 again because the IP address of the external device 220 cannot be identified. For example, in a traffic scenario in which communication is performed based on the TCP protocol, the external device 220 may establish a communication connection with the slave processing device 202 through three-way handshake or the like. For a specific implementation process of the external device 220 to reestablish the communication connection with the slave processing device 202, reference may be made to the description of relevant parts in the foregoing embodiments, which is not described herein again.
S405: the connection device 203 transmits the data access request transmitted by the external device 220 to the slave processing device 202 so that the slave processing device 202 continues to provide the service for the external device 220.
In this embodiment, the logical disk in the memory 204 for storing the data of the external device 220 belongs to both the master processing device 201 and the slave processing device 202, and in the process of establishing the connection between the external device 220 and the slave processing device 202, a path through which the slave processing device 202 accesses the logical disk is also reported to the external device 220. Thus, after the processing device 202 establishes a connection with the external device 220, the logical disk that stores the data of the service in the memory 204 can be accessed to continue providing the service for the external device 220.
In this embodiment, the slave processing device 202 is taken as a backup device of the master processing device 201 for example, and in practical application, the slave processing device 202 and the master processing device 201 may be hot-standby with each other. That is, when the slave processing device 202 is serving as a master processing device to provide services for other external devices, if the slave processing device 202 cannot continue to provide services for the other external devices due to device failure or other reasons, the master processing device 201 serving as a backup may continue to provide the services for the other external devices, at this time, the master processing device 201 and the slave processing device 202 may be configured with a plurality of identical IP addresses and MAC addresses at the same time, and a specific implementation process thereof may refer to relevant contents where the master processing device 301 may continue to provide the second services for the external device 322 in the embodiment shown in fig. 3, which is not described herein again.
It should be noted that the data processing system shown in fig. 2 or fig. 3 is only used as an exemplary illustration, and the processing device switching method provided in this embodiment may also be applied to other possible data processing systems, for example, in other possible embodiments, the data processing system may further include more processing devices and more connection devices, which is not limited in this application.
In addition, an embodiment of the present application further provides a connection device, where the connection device is a connection device in the data processing system in fig. 2 and 3. Referring to fig. 5, a functional block diagram of the connection device is shown, and the connection device includes a determination module 501, a communication link establishment module 502, and a communication module 503.
The determining module 501 is configured to determine that the main processing device cannot provide a service for the external device.
For a specific way that the determining module 501 determines that the main processing device cannot provide a service for the external device, please refer to the description of step S402 in fig. 4, which is not described herein again.
The communication link establishing module 502 is configured to establish a communication link between the connection device and the slave processing device.
The communication link establishing module 502 is configured to, when establishing the communication link between the connection device and the slave processing device, specifically, set the communication link between the connection device and the master processing device to be disabled, and set the communication link between the connection device and the master processing device to be enabled, specifically, set the communication link between the connection device and the master processing device to be disabled by setting the port of the connection device connected to the master processing device to be disabled, and set the communication link between the connection device and the master processing device to be enabled by setting the port of the connection device connected to the slave processing device to be enabled, specifically, refer to the related description of step S403 in fig. 4.
The communication module 503 is configured to determine an effective communication link when receiving a data access request sent by the external device 220, and send the data access request to the slave processing device 202 through the effective communication link, so that the slave processing device 202 continues to provide a service for the external device 220, which is described in detail with reference to step S404 in fig. 4.
Fig. 6 shows a first hardware configuration diagram of the connection device.
Connected device 600 may include port 611, port 612, port 613, processor 620 and memory 630. Illustratively, the processor 620 may be, for example, a chip, a CPU, a general-purpose processor, a Digital Signal Processor (DSP), or the like. The actions or functions performed by each of the above-described connected devices in fig. 2-4 may be implemented by processor 620. The processor 620 receives a request, data, etc. sent by an external device through the port 611, and sends the request, data, etc. to the master processing device or the slave processing device through the port 612 and the port 613, thereby implementing any of the methods executed by the connection device 203 described above in fig. 4. In implementation, the steps of the processing flow may implement the method executed by the connection device 203 in fig. 4 through instructions in the form of hardware integrated logic circuits or software in the processor 620. For brevity, no further description is provided herein. Program code executed by processor 620 to implement the above-described methods may be stored in memory 630. The memory 630 is coupled to the processor 620.
The processor may cooperate with the memory. The memory may be a nonvolatile memory, such as a Hard Disk Drive (HDD) or a solid-state drive (SSD), and may also be a volatile memory, such as a random-access memory (RAM). The memory is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such.
The specific connection medium among the ports, the processor and the memory is not limited in the embodiments of the present application. Such as memory, processor, and communication interfaces, may be connected by a bus, such as the thicker black line shown in fig. 6. The bus may be divided into an address bus, a data bus, a control bus, etc.
Any port referred to in the embodiments of the present application may be a circuit, a bus, a transceiver, or any other device that can be used for information interaction. Illustratively, the device connected to the connection device 600 may be, for example, a switch or an external device.
Fig. 7 is a second hardware configuration diagram of the connection device.
Port 711, port 712, port 713, and processor 720 may be included in connection with device 700. The processor 720 may be, for example, an application-specific integrated circuit (ASIC), a Field Programmable Gate Array (FPGA), or other programmable logic device, transistor logic device, hardware component, or any combination thereof. For example, the actions or functions performed by each of the above-described connected devices in fig. 2-4 may be implemented by processor 720. The processor 720 receives requests, data, etc. from external devices through port 711 and transmits requests, data, etc. to the master processing device or slave processing devices through port 712 and port 713, and is configured to implement any of the methods described above for the connection device 203 in fig. 4. For brevity, no further description is provided herein.
The processors involved in the embodiments of the present application may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in a processor.
The connection in the embodiments of the present application is an indirect coupling or communication connection between devices, modules or modules, and may be in an electrical, mechanical or other form, which is used for information interaction between the devices, modules or modules.
Based on the above embodiments, the present application further provides a computer storage medium storing a software program, where the software program is read and executed by one or more processors, and can implement the method performed by the connection device according to any one or more of the above embodiments. The computer storage medium may include: u disk, removable hard disk, read only memory, random access memory, magnetic or optical disk, etc. for storing program codes.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the embodiments of the present application without departing from the scope of the embodiments of the present application. Thus, if such modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to encompass such modifications and variations.

Claims (19)

1. A data processing system comprising a connection device, a master processing device, a slave processing device, said master processing device being connected to an external device through said connection device, said slave processing device having the same network address as said master processing device;
the connection device is used for establishing a communication link between the connection device and the slave processing device when the main processing device is determined not to be capable of providing services for the external device;
the slave processing device is used for providing services for the external device based on the same network address as the master processing device.
2. The data processing system according to claim 1, wherein the connection device, when establishing the communication link between the connection device and the slave processing device, is specifically configured to:
setting a communication link between the connection device and the master processing device to be disabled, and setting a communication link between the connection device and the slave processing device to be enabled.
3. The data processing system of claim 2, further configured to, at the connection device:
receiving an access request of the external device;
determining an active communication link;
the access request is sent over an active communication link.
4. The data processing system according to claim 2 or 3, wherein the setting of the communication link between the connection device and the master processing device to be disabled is setting of a port of the connection device to which the master processing device is connected to be disabled, and the setting of the communication link between the connection device and the master processing device to be disabled is setting of a port of the connection device to which the slave processing device is connected to be enabled.
5. A data processing system according to any one of claims 1 to 4, wherein said network addresses comprise Internet protocol, IP, addresses and media Access control, MAC, addresses.
6. The data processing system of claim 5, wherein, when servicing the external device based on the same network address as the master processing device, the slave processing device is specifically configured to:
receiving a data access request sent by the external equipment;
determining that a communication connection is not established with the external device;
and sending the IP address of the slave processing equipment to the external equipment so as to establish communication connection with the external equipment and provide the service for the external equipment based on the communication connection.
7. The data processing system of claim 5, wherein the MAC address is a MAC address of the connected device.
8. The data processing system of claim 7, wherein the master processing device and the slave processing device are further configured to obtain MAC addresses of the connection devices, and set the MAC addresses of the connection devices as their MAC addresses, respectively.
9. The data processing system of any of claims 1 to 8, wherein the data processing system is a storage device and the master processing device and the slave processing device are two controllers in the storage device.
10. The data processing system of any of claims 1 to 8, wherein the data processing system is a server cluster and the master processing device and the slave processing device are two servers in the server cluster.
11. A processing equipment switching method is characterized in that the method is applied to a connecting device, the connecting device is connected with a main processing device and a slave processing device, and the connecting device is connected with the main processing device to an external device;
the method comprises the following steps:
determining that the primary processing device is unable to provide service for the external device;
establishing a communication link between the connecting device and the slave processing device.
12. The method of claim 11, wherein establishing the communication link between the connection device and the slave processing device comprises:
setting a communication link between the connection device and the master processing device to be invalid, and setting a communication link between the connection device and the slave processing device to be valid.
13. The method of claim 12, further comprising:
receiving an access request of the external device;
determining an active communication link;
the access request is sent over an active communication link.
14. The method according to claim 12 or 13,
the setting the communication link between the connection device and the main processing device to be disabled includes:
setting a port connected with the main processing device in the connecting device to be invalid;
the setting of the communication link between the connection device and the slave processing device to be active includes:
setting a port of the connection device to which the slave processing device is connected to be valid.
15. A connection device is characterized in that the connection device is connected with a main processing device and a slave processing device, and the connection device is connected with the main processing device to an external device;
the connection device includes:
a determining module for determining that the main processing device is unable to provide a service for the external device;
a communication link establishing module for establishing a communication link between the connection device and the slave processing device.
16. The connection device according to claim 15, wherein the communication link establishing module is configured to set a communication link between the connection device and the master processing device to be disabled and set a communication link between the connection device and the slave processing device to be enabled.
17. The connection device of claim 16, wherein the apparatus further comprises a communication module configured to receive an access request from the external device, determine a valid communication link, and send the access request over the valid communication link.
18. The connection device according to claim 16 or 17, wherein the communication link establishing module is specifically configured to set a port of the connection device, which is connected to the master processing device, to be disabled, and set a port of the connection device, which is connected to the slave processing device, to be enabled.
19. A connection device, comprising a first port, a second port, a third port and a processor, wherein the first port and the second port are respectively used for connecting a master processing device and a slave processing device, the connection device connects the master processing device to an external device through the first port and the third port, and the processing device is configured to perform the method of any one of claims 11 to 14.
CN202010820627.7A 2020-06-28 2020-08-14 Data processing system with uninterrupted service, processing equipment switching method and connecting equipment Pending CN113852514A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2020106000551 2020-06-28
CN202010600055 2020-06-28

Publications (1)

Publication Number Publication Date
CN113852514A true CN113852514A (en) 2021-12-28

Family

ID=78972780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010820627.7A Pending CN113852514A (en) 2020-06-28 2020-08-14 Data processing system with uninterrupted service, processing equipment switching method and connecting equipment

Country Status (1)

Country Link
CN (1) CN113852514A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114095420A (en) * 2022-01-20 2022-02-25 苏州浪潮智能科技有限公司 Link aggregation method and device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114095420A (en) * 2022-01-20 2022-02-25 苏州浪潮智能科技有限公司 Link aggregation method and device, electronic equipment and storage medium
CN114095420B (en) * 2022-01-20 2022-05-31 苏州浪潮智能科技有限公司 Link aggregation method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110912780B (en) High-availability cluster detection method, system and controlled terminal
US10567340B2 (en) Data center system
TWI642282B (en) Fail recovery method and internet of things system and charging system using the same
TWI454088B (en) Method, system and computer readable medium for detecting a switch failure and managing switch failover in a fiber channel over ethernet network
AU2004306913B2 (en) Redundant routing capabilities for a network node cluster
US9032240B2 (en) Method and system for providing high availability SCTP applications
US20060256801A1 (en) Gateway system
CN106330475B (en) Method and device for managing main and standby nodes in communication system and high-availability cluster
CN102006189B (en) Primary access server determination method and device for dual-machine redundancy backup
US20150113313A1 (en) Method of operating a server system with high availability
US7813341B2 (en) Overhead reduction for multi-link networking environments
US20070270984A1 (en) Method and Device for Redundancy Control of Electrical Devices
CN111585835B (en) Control method and device for out-of-band management system and storage medium
CN112564983B (en) Data transmission method, device, computer system and medium
JPH1185644A (en) System switching control method for redundancy system
CN113852514A (en) Data processing system with uninterrupted service, processing equipment switching method and connecting equipment
CN108270593B (en) Dual-computer hot backup method and system
JP2005244672A (en) Network failure monitoring process system and its method
CN114268581B (en) Method for realizing high availability and load sharing of network equipment
KR20200072941A (en) Method and apparatus for handling VRRP(Virtual Router Redundancy Protocol)-based network failure using real-time fault detection
JP2009003491A (en) Server switching method in cluster system
CN111181766B (en) Redundant FC network system and method for realizing dynamic configuration of switch
CN111669280B (en) Message transmission method, device and storage medium
KR101401006B1 (en) Method and appratus for performing software upgrade in high availability system
US10652203B2 (en) Network system, communication control device and address setting method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination