WO2009012662A1 - A method and system for data communication and an internet small computer systems interface controller - Google Patents

A method and system for data communication and an internet small computer systems interface controller Download PDF

Info

Publication number
WO2009012662A1
WO2009012662A1 PCT/CN2008/070521 CN2008070521W WO2009012662A1 WO 2009012662 A1 WO2009012662 A1 WO 2009012662A1 CN 2008070521 W CN2008070521 W CN 2008070521W WO 2009012662 A1 WO2009012662 A1 WO 2009012662A1
Authority
WO
WIPO (PCT)
Prior art keywords
iscsi
controller
mirrored
iscsi controller
address
Prior art date
Application number
PCT/CN2008/070521
Other languages
French (fr)
Chinese (zh)
Inventor
Liyao Chen
Bin Xiao
Mingjun Xu
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.
Priority to US12/176,187 priority Critical patent/US20090025014A1/en
Publication of WO2009012662A1 publication Critical patent/WO2009012662A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/40Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass for recovering from a failure of a protocol instance or entity, e.g. service redundancy protocols, protocol state redundancy or protocol service redirection
    • 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/631Small computer system interface [SCSI] addresses

Definitions

  • the present invention relates to the field of data communication technologies, and in particular, to a data communication method and system, and an interface controller for an internet small computer system.
  • iSCSI Internet Small Computer Systems Interface
  • IETF Internet Engineering Task Force
  • Figure 1 shows the existing flow chart for data communication using iSCSI technology. As shown in Figure 1, the specific steps are as follows:
  • Step 101 The iSCSI controller runs the iSCSI target service program on the IP address of the service network port.
  • Step 102 The iSCSI host sends a login request message to the iSCSI controller according to the IP address and port number of the iSCSI controller configured.
  • Step 103 The iSCSI controller receives the login request message, performs login related processing, and completes the processing, and notifies the iSCSI host that the login is successful.
  • Step 104 The iSCSI host performs data communication with the iSCSI controller.
  • An iSCSI host can write data to an iSCSI controller or read data from an iSCSI controller.
  • the iSCSI target uses a single controller mode, that is, the iSCSI host only Can establish a connection with an iSCSI controller.
  • the connection link between the iSCSI host and the iSCSI controller fails or the iSCSI controller itself fails, data consistency and service continuity cannot be guaranteed, and data communication stability and Poor reliability.
  • Embodiments of the present invention provide a data communication method and system, and an iSCSI controller to improve reliability of data communication between an iSCSI host and an iSCSI controller.
  • the iSCSI controller b is a mirrored iSCSI controller of the iSCSI controller a
  • the iSCSI controller a is referred to as the mirrored iSCSI controller of the iSCSI controller b.
  • a data communication method that pre-sets at least one mirrored iSCSI controller for each iSCSI controller, including:
  • the mirrored iSCSI controller detects that the mirrored iSCSI controller corresponding to the mirrored iSCSI controller is invalid;
  • the mirrored iSCSI controller receives a login request sent by an iSCSI host originally logged into the mirrored iSCSI controller;
  • the mirrored iSCSI controller performs data communication with the iSCSI host based on the service information.
  • a data communication system comprising:
  • the iSCSI host is configured to re-initiate the login request, log in to the mirrored iSCSI controller corresponding to the mirrored iSCSI controller, and perform data with the mirrored iSCSI controller when the detected mirrored iSCSI controller fails to be logged in.
  • Mirroring the iSCSI controller configured to add the service information of the mirrored iSCSI controller to itself, and receive the original login to the mirrored iSCSI controller, when detecting that the mirrored iSCSI controller corresponding thereto fails
  • the login request sent by the iSCSI host communicates with the iSCSI host originally logged into the mirrored iSCSI controller according to the service information.
  • An iSCSI controller that includes:
  • Mirror failure handling module used to detect the mirrored iSCSI controller corresponding to itself Adding the service information of the mirrored iSCSI controller to itself;
  • a data processing module is configured to perform data communication with an iSCSI host that is originally logged into the mirrored iSCSI controller.
  • the embodiment of the present invention sets at least one mirrored iSCSI controller for each iSCSI controller in advance, and when the mirrored iSCSI controller finds that its mirrored iSCSI controller fails, the mirrored iSCSI controller is
  • the service information is added to itself, receives a login request sent from the iSCSI host that is logged in to the mirrored iSCSI controller, accepts the login request, and performs data communication with the iSCSI host according to the service information. Improve the reliability of data communication.
  • Figure 1 is a flow chart of data communication using the existing iSCSI technology
  • FIG. 2 is a flowchart of an iSCSI host logging in to an iSCSI controller and performing data communication according to an embodiment of the present invention
  • FIG. 3 is a flowchart of data communication when a home iSCSI controller fails according to an embodiment of the present invention
  • FIG. 4 is a flow chart of data communication after a home iSCSI controller returns to normal according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of a typical networking diagram of data communication using iSCSI technology according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a data communication system according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a mirror failure processing module in an iSCSI controller according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a mirror recovery processing module in an iSCSI controller according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a recovery processing module in an iSCSI controller according to an embodiment of the present invention.
  • each iSCSI controller for each iSCSI controller, at least one iSCSI controller is selected in advance among all other iSCSI controllers as a mirrored iSCSI controller of the iSCSI controller, for each iSCSI controller and its mirror.
  • iSCSI controller sets different IP addresses, will iSCSI host
  • the IP address and port number of an accessible iSCSI controller are configured on the iSCSI host and can have the same name for each iSCSI controller and its mirrored iSCSI controller; a home iSCSI control can be set for each iSCSI host
  • the iSCSI controller maintains the association between the iSCSI host ID (eg, the initiator name) and the IP address of the home iSCSI controller.
  • iSCSI controller B is the mirrored iSCSI controller of iSCSI controller A
  • iSCSI controller A is the home iSCSI controller of iSCSI host 1
  • IP address and port number of iSCSI controller B are configured on iSCSI host 1 as
  • the embodiments of the present invention are described in detail.
  • FIG. 2 is a flowchart of an iSCSI host logging in to an iSCSI controller and performing data communication according to an embodiment of the present invention. As shown in FIG. 2, the specific steps are as follows:
  • Step 201 The iSCSI controller A is started, and the iSCSI target server service program is run on the IP address of all the service network ports; the iSCSI controller B is started, and the iSCSI target server service program is run on the IP address of all the service network ports.
  • Step 202 The iSCSI host 1 establishes a temporary discovery session with the iSCSI controller B according to the IP address of its own iSCSI controller B: IPB1, and obtains the name of the iSCSI controller B through the session.
  • Step 203 The iSCSI host 1 sends a login request message to the iSCSI controller B, which carries the initiator name of the iSCSI host 1.
  • the iSCSI host 1 can be configured with an IP address of the iSCSI controller B. It can also be configured with two or more IP addresses of the iSCSI controller B. The iSCSI host 1 can be configured to initiate a login request at any of its own IP addresses. .
  • Step 204 The iSCSI controller B receives the login request message, and obtains the iSCSI host 1 attributed iSCSI host 1 according to the initiator name of the iSCSI host 1 carried in the message and the association between the saved initiator name and the IP address of the home iSCSI controller. IP address of the controller: IPA1.
  • the association between the initiator name of the iSCSI host and the IP address of the home iSCSI controller can be: An algorithm for calculating the IP address of the home iSCSI controller by using the initiator name of the iSCSI host as a parameter.
  • Step 205 The iSCSI controller B detects that the IP address of the IPA1 is not the IP address of the iSCSI host 1, and sends the IPA1 to the iSCSI host 1 in the redirect request message.
  • the IP address of the iSCSI host 1 login is IPB1 used by iSCSI host 1 to initiate a login request in step 202.
  • Step 206 The iSCSI host 1 receives the redirect request message, and establishes a temporary discovery session with the iSCSI controller A pointed to by the IPA1 according to the IPA1 carried by the message, and obtains the name of the iSCSI controller A through the session.
  • Step 207 The iSCSI host 1 sends a login request message to the iSCSI controller A pointed to by the IPA1, where the message carries the initiator name of the iSCSI host 1.
  • Step 208 The iSCSI controller A receives the login request message, and obtains the iSCSI control of the iSCSI host 1 according to the initiator name of the iSCSI host 1 carried by the message and the association between the name of the initialized initiator and the IP address of the home iSCSI controller.
  • IP address of device A IPA1.
  • Step 209 The iSCSI controller A detects that the IP address of the iSCSI host is the IP address of the iSCSI host 1 and performs the login related processing. After the processing is completed, the iSCSI host 1 is notified that the login is successful.
  • the login related processing includes: processing of parameter negotiation, security authentication, and the like.
  • Step 210 The iSCSI host 1 performs data communication with the iSCSI controller A.
  • the iSCSI controller A stores the data sent from the iSCSI host 1 to the storage medium accessible to both the iSCSI controller A and the iSCSI controller B.
  • the iSCSI host 1 can read data from the storage medium.
  • each iSCSI host has a home iSCSI controller.
  • the iSCSI host logs in to the home iSCSI controller. This ensures that all iSCSI host traffic is evenly distributed.
  • load sharing between iSCSI controllers is implemented.
  • FIG. 3 is a flowchart of data communication when a home iSCSI controller fails according to an embodiment of the present invention. As shown in FIG. 3, the specific steps are as follows:
  • Step 301 The iSCSI controller B detects that the iSCSI controller A is invalid, and adds the IP address of all service network ports of the iSCSI controller A to the service network port of the controller.
  • the failure of iSCSI controller A in this step means that iSCSI controller A cannot communicate with the iSCSI host that logs in to itself.
  • the failure of iSCSI controller A may be caused by the failure of some functions of iSCSI controller A, or it may be caused by the restart of iSCSI controller A. For the former, iSCSI controller A will notify iSCSI controller B in time after detecting its own failure; for the latter, iSCSI controller B will know the iSCSI controller because it has not received the handshake message from iSCSI controller A. A is invalid.
  • the IP address information on the service network port of each iSCSI controller is stored in the storage space accessible by the iSCSI controller and its mirrored iSCSI controller. Therefore, the iSCSI controller B can be used from both the iSCSI controller A and the iSCSI controller A. Obtain the IP address of all service network ports of iSCSI controller A in the storage space.
  • the iSCSI controller A determines that it is invalid, it stops the iSCSI target service program running on the IP address of all its service network ports and deletes the IP addresses on all its service network ports.
  • the IP addresses of the service network ports of iSCSI controller B are: IPA1+IPA2+... and IPB1+IPB2+... , where IPA1+IPA2+... is all on the original iSCSI controller A. IP address on the service network port, IPB1+IPB2+... is the IP address of all service network ports on iSCSI controller B.
  • Step 302 The iSCSI controller B runs the iSCSI target service program on the newly added IP address of the service network port: IPA1+IPA2+.
  • Step 303 The iSCSI host 1 detects that the session connection with the iSCSI controller A is disconnected, and uses the IP address of the last successful login as the destination address. Specifically, in this embodiment, the login request message is re-initiated through IPA1. The message carries the initiator name of iSCSI host 1.
  • iSCSI host 1 initiates a login request based on the IP address that was used when the last login was successful.
  • Step 304 The iSCSI controller B receives the login request message, and obtains the iSCSI host 1 attributed iSCSI host 1 according to the initiator name of the iSCSI host 1 carried in the message and the association between the saved initiator name and the IP address of the home iSCSI controller. IP address of the controller: IPA1.
  • Step 305 The iSCSI controller B detects that the IP address of the iSCSI host 1 is the IP address of the iSCSI host 1 and performs the login related processing. After the processing is completed, the iSCSI host 1 is notified that the login is successful.
  • Step 306 The iSCSI host 1 performs data communication with the iSCSI controller B.
  • the iSCSI controller B stores the data sent from the iSCSI host 1 to the storage medium accessible to both the iSCSI controller B and the iSCSI controller A, from which the iSCSI host can read data.
  • the mirrored iSCSI controller (iSCSI controller B) of the iSCSI controller A passes through the service network port of the iSCSI controller A.
  • the IP address is added to the service network port of the controller, and the iSCSI target server service program is run on the newly added IP address, and then the iSCSI host 1 re-initiates the login request, logs in to the mirrored iSCSI controller, and the image is mirrored.
  • the iSCSI controller communicates data to ensure data consistency and business continuity.
  • iSCSI controller A After the home iSCSI controller (iSCSI controller A) of iSCSI host 1 is restored to normal, in order to ensure load sharing, iSCSI controller B disconnects the session from the iSCSI host that was originally logged into iSCSI controller A. The iSCSI host 1 logs back in to the iSCSI controller A.
  • the data communication embodiment when the home iSCSI controller returns to normal is given below.
  • FIG. 4 is a flow chart of data communication after the home iSCSI controller returns to normal according to an embodiment of the present invention. As shown in FIG. 4, the specific steps are as follows:
  • Step 401 The iSCSI controller B detects that the iSCSI controller A is back to normal, disconnects the session connection with all the iSCSI hosts that are originally logged into the iSCSI controller A, and shuts down all the IP addresses running on the original iSCSI controller A. iSCSI target service program.
  • Step 402 The iSCSI controller B deletes all IP addresses of the iSCSI controller A configured on the service network port.
  • Step 403 The iSCSI controller A detects that it is back to normal, configures the IP address of the iSCSI controller A on all its service network ports, and runs the iSCSI target server service program on the configured IP address.
  • IP address configured on each service network port of each iSCSI controller is stored in the storage space accessible by the iSCSI controller and its mirrored iSCSI controller. Therefore, iSCSI controller A can be both from itself and iSCSI controller B. Obtain the IP address configured on each service network port of iSCSI controller A in the accessible storage space.
  • Step 404 The iSCSI host 1 detects that the session connection with the iSCSI controller B is disconnected.
  • the login request message is re-initiated according to IPA1, and the message carries the initiator name of iSCSI host 1.
  • Step 405 The iSCSI controller A receives the login request message, and obtains the iSCSI host 1's iSCSI according to the initiator name of the iSCSI host 1 carried in the message and the association between the saved initiator name and the IP address of the home iSCSI controller.
  • IP address of controller A IPA1.
  • Step 406 The iSCSI controller A detects that the IP address of the iSCSI host 1 is the IP address of the iSCSI host 1 and performs the login related processing. After the processing is completed, the iSCSI host 1 is notified that the login is successful.
  • Step 407 The iSCSI host 1 performs data communication with the iSCSI controller A.
  • the iSCSI controller B is a mirrored iSCSI controller of the iSCSI controller A.
  • the iSCSI controller A can also be set as the iSCSI controller B.
  • the mirrored iSCSI controller, at this time, iSCSI controller A and iSCSI controller B can be referred to as the peer iSCSI controller.
  • iSCSI Controller A has only one mirrored iSCSI controller: iSCSI Controller B.
  • each iSCSI controller can also have two or more mirrored iSCSI controllers.
  • Each iSCSI controller mirrors the data sent by the iSCSI host to all its mirrored iSCSI controllers.
  • a mirrored iSCSI controller can be selected in the working mirrored iSCSI controller to replace the iSCSI controller with the iSCSI host originally logged into the iSCSI controller for data communication, and the selected mirror iSCSI is selected.
  • the controller can be the least loaded of all mirrored iSCSI controllers. For example, if there are multiple mirrored iSCSI controllers, you can arbitrate to determine which mirrored iSCSI controller takes over the failed iSCSI controller.
  • FIG. 5 shows a typical networking diagram of data storage using the iSCSI technology provided by the embodiment of the present invention. As shown in FIG. 5, the controller A and the controller B controller are shown.
  • the iSCSI target server running the image on N, iSCSI host 1, iSCSI host 2 iSCSI host m is established with iSCSI controller through wide i or network (WAN, Wide Area Network) or local area network (LAN, Local Area Network) Conversation. Only one session is established between the iSCSI host and the iSCSI target (including the mirrored iSCSI controller and the mirrored iSCSI controller). As shown in Figure 5, for iSCSI host 1, the session of iSCSI host 1 is established under iSCSI control. A or iSCSI controller B, iSCSI host 1 sees the same name, so iSCSI host 1 will not I learned that the iSCSI controller has changed.
  • FIG. 6 is a schematic diagram showing the structure of a data storage system according to an embodiment of the present invention. As shown in FIG. 6, the method mainly includes: an iSCSI host and an iSCSI controller, where:
  • iSCSI host At startup, according to the IP address of the iSCSI controller configured to obtain the name of the iSCSI controller pointed to by the IP address, send a login request carrying the initiator name of the iSCSI host to the iSCSI controller pointed to by the IP address.
  • the message if receiving the redirect request message carrying the IP address sent by the iSCSI controller, obtains the name of the iSCSI controller pointed to by the IP address carried in the redirect request message, and points to the IP address carried in the redirect request message.
  • the iSCSI controller sends a login request message, receives a login success notification sent by the iSCSI controller pointed by the IP address carried by the redirect request message, and performs data communication with the iSCSI controller pointed to by the IP address carried by the redirect request message.
  • the login request message is re-initiated, for example, the login request message may be re-initiated according to the IP address successfully used by the last login.
  • the iSCSI controller mainly includes: a login processing module 61, a mirror failure processing module 62, a mirror recovery processing module 63, and a data processing module 64, wherein:
  • the login processing module 61 receives the login request message sent by the iSCSI host, and calculates the home iSCSI of the iSCSI host according to the initiator name of the iSCSI host carried in the message and the association between the name of the initiator and the IP address of the home iSCSI controller. If the IP address of the controller is the IP address of the iSCSI host, the login process is performed. The processing is complete, and the iSCSI host is notified that the login is successful. Otherwise, the calculated IP address is carried in the redirect request message. iSCSI host.
  • the image failure processing module 62 detects that the mirrored iSCSI controller of the controller fails, adds the IP address of the service network port of the mirrored iSCSI controller to the IP address of the controller, and runs the iSCSI target on the IP address. Service program.
  • the mirror recovery processing module 63 detects that the mirrored iSCSI controller of the controller is restored to normal, disconnects the session between the controller and the iSCSI host that is originally logged into the mirrored iSCSI controller, and stops at the controller.
  • the iSCSI target service program on the IP address of the mirrored iSCSI controller on the service network port, and delete the IP address on the service network port of the controller.
  • the data processing module 64 receives the original iSCSI controller that is logged into the controller.
  • the data sent from the iSCSI host is saved to the cache (Cache).
  • the image failure processing module 62 mainly includes: a mirror failure detection module 621 and an IP address adding module 622, where:
  • the mirror failure detection module 621 detects that the mirrored iSCSI controller of the controller fails, and sends a mirror failure indication to the IP address adding module 622.
  • the IP address adding module 622 receives the mirroring invalidation indication sent by the mirroring failure detecting module 621, adds the IP address of the mirrored iSCSI controller of the controller to the service network port of the controller, and runs iSCSI on each IP address. Target server service program.
  • the image recovery processing module 63 mainly includes: a image recovery detection module 631, a session connection disconnection module 632, and an IP address deletion module 633, where:
  • the image recovery detection module 631 is configured to send a mirror recovery indication to the session connection disconnection module 632 and the IP address deletion module 633 after detecting that the mirrored iSCSI controller of the controller is restored.
  • the session connection disconnection module 632 is configured to disconnect the session between the controller and all iSCSIs on the mirrored iSCSI controller that is originally logged into the controller after receiving the image recovery indication sent by the image recovery detection module 631. connection.
  • the IP address deletion module 633 is configured to stop the iSCSI target service program on the IP address of the mirrored iSCSI controller of the service network port of the controller after receiving the image recovery indication sent by the image recovery detection module 631, and Delete the IP address of the mirrored iSCSI controller configured on the service network port of the controller.
  • the iSCSI controller in the embodiment of the present invention may further include: a failure processing module and a recovery processing module, where:
  • the local failure processing module is used to stop all the service network ports of the user when determining that the controller is invalid.
  • the iSCSI target server running on the IP address and delete the IP address on all its service network ports.
  • the local recovery processing module When the local recovery processing module detects that the controller is recovering from failure, configure an IP address on all service network ports of the controller and run the iSCSI target service program on the IP address of the service network port of the controller.
  • the local recovery processing module mainly includes: a local recovery detection module 651 and an IP address configuration module 652, wherein: The local recovery detection module 651 is configured to send a failure recovery indication to the IP address configuration module 652 upon detecting that the controller is recovering from failure.
  • the IP address configuration module 652 is configured to configure an IP address on all service network ports of the controller after receiving the failure recovery indication sent by the recovery detection module 651, and run the iSCSI target service program on each IP address.
  • the mirrored iSCSI controller of the iSCSI controller adds the IP address of the service network port of the iSCSI controller to its own service network port, and at each IP address.
  • the iSCSI target server service program runs on the address, and then the iSCSI host logs in to the mirrored iSCSI controller to perform data communication with the mirrored iSCSI controller, achieving data consistency and service continuity, and improving data communication reliability. And stability.
  • load sharing is achieved by setting up a home iSCSI controller for each iSCSI host.
  • the iSCSI controller and the mirrored iSCSI controller use the same name, making the iSCSI controller switching process transparent to the user.

Abstract

A method for data communication and an Internet Small Computer Systems Interface controller are provide. The method includes: at least one mirroring iSCSI controller is preset for each iSCSI controller; the mirroring iSCSI controller detects that the mirrored iSCSI controller corresponding to the mirroring iSCSI controller is failure; then the service information of the mirrored iSCSI controller is added into the mirroring iSCSI controller; the mirroring iSCSI controller receives the register request sent by the iSCSI host to register to the mirrored iSCSI controller originally; the mirroring iSCSI controller communicates the data with the iSCSI host according to the service information.

Description

数据通信方法、 系统及互联网小型计算机系统接口控制器 本申请要求于 2007 年 7 月 20 日提交中国专利局、 申请号为 200710129984.3、 发明名称为"数据通信方法、 系统及互联网小型计算机系统 接口控制器"的中国专利申请的优先权,其全部内容通过引用结合在本申请中。 技术领域  Data communication method, system and internet small computer system interface controller The application claims to be submitted to the Chinese Patent Office on July 20, 2007, the application number is 200710129984.3, and the invention name is "data communication method, system and internet small computer system interface controller" The priority of the Chinese Patent Application, the entire contents of which is incorporated herein by reference. Technical field
本发明涉及数据通信技术领域, 具体涉及一种数据通信方法、 系统及互联 网小型计算机系统接口控制器。  The present invention relates to the field of data communication technologies, and in particular, to a data communication method and system, and an interface controller for an internet small computer system.
背景技术 Background technique
步入信息时代后信息量激增, 对存储设备的容量、 性能、 可靠性提出了更 高的要求。 出于资源共享、 集中管理和安全方面的考虑, 主机和存储设备之间 常需釆用分布式组网,在这种组网方式下支持高带宽、远距离的连接技术就显 得特别重要。  After entering the information age, the amount of information has surged, placing higher demands on the capacity, performance, and reliability of storage devices. For resource sharing, centralized management, and security considerations, it is often necessary to use distributed networking between hosts and storage devices. Supporting high-bandwidth, long-distance connection technologies in this networking mode is particularly important.
互联网小型计算机系统接口 (iSCSI, Internet Small Computer Systems Interface )是 2003年互联网工程任务组( IETF, Internet Engineering Task Force ) 制订的一项标准, 用于将 SCSI数据块映射成以太网数据包。 iSCSI可以用以 太网来构建 IP存储局域网。通过这种方法, iSCSI克服了直接连接存储的局限 性, 实现了跨不同服务器, 跨地域共享存储资源, 并可在不停机状态下扩充存 储容量。  The Internet Small Computer Systems Interface (iSCSI) is a standard developed by the Internet Engineering Task Force (IETF) in 2003 to map SCSI data blocks into Ethernet data packets. iSCSI can be used to build an IP storage area network. In this way, iSCSI overcomes the limitations of direct-attached storage, enabling storage resources across different servers and across geographies, and expanding storage capacity without downtime.
图 1给出了现有的釆用 iSCSI技术进行数据通信的流程图, 如图 1所示, 其具体步骤如下:  Figure 1 shows the existing flow chart for data communication using iSCSI technology. As shown in Figure 1, the specific steps are as follows:
步骤 101 : iSCSI控制器在业务网口的 IP地址上运行 iSCSI目标器服务程 序。  Step 101: The iSCSI controller runs the iSCSI target service program on the IP address of the service network port.
步骤 102: iSCSI主机根据配置在自身的 iSCSI控制器的 IP地址和端口号, 向 iSCSI控制器发送登录请求消息。  Step 102: The iSCSI host sends a login request message to the iSCSI controller according to the IP address and port number of the iSCSI controller configured.
步骤 103: iSCSI控制器收到该登录请求消息, 进行登录相关处理, 处理 完毕, 通知 iSCSI主机登录成功。  Step 103: The iSCSI controller receives the login request message, performs login related processing, and completes the processing, and notifies the iSCSI host that the login is successful.
步骤 104: iSCSI主机与 iSCSI控制器进行数据通信。  Step 104: The iSCSI host performs data communication with the iSCSI controller.
iSCSI主机可向 iSCSI控制器写数据, 也可从 iSCSI控制器读数据。  An iSCSI host can write data to an iSCSI controller or read data from an iSCSI controller.
从以上流程可以看出: iSCSI目标器釆用单控制器模式, 即 iSCSI主机只 能与一个 iSCSI控制器建立连接, 当 iSCSI主机与 iSCSI控制器之间的连接链 路发生故障或 iSCSI控制器自身发生故障时,不能保证数据的一致性和业务的 连续性, 数据通信稳定性和可靠性较差。 As can be seen from the above process: The iSCSI target uses a single controller mode, that is, the iSCSI host only Can establish a connection with an iSCSI controller. When the connection link between the iSCSI host and the iSCSI controller fails or the iSCSI controller itself fails, data consistency and service continuity cannot be guaranteed, and data communication stability and Poor reliability.
发明内容 Summary of the invention
本发明实施例提供一种数据通信方法及系统、 以及一种 iSCSI控制器, 以 提高 iSCSI主机和 iSCSI控制器之间数据通信的可靠性。  Embodiments of the present invention provide a data communication method and system, and an iSCSI controller to improve reliability of data communication between an iSCSI host and an iSCSI controller.
本发明实施例的技术方案是这样实现的:  The technical solution of the embodiment of the present invention is implemented as follows:
需要指出的是, 在本发明实施例中, 若 iSCSI控制器 b为 iSCSI控制器 a 的镜像 iSCSI控制器, 则称 iSCSI控制器 a为 iSCSI控制器 b的被镜像 iSCSI 控制器。  It should be noted that, in the embodiment of the present invention, if the iSCSI controller b is a mirrored iSCSI controller of the iSCSI controller a, the iSCSI controller a is referred to as the mirrored iSCSI controller of the iSCSI controller b.
一种数据通信方法, 该方法预先为每个 iSCSI控制器设置至少一个镜像 iSCSI控制器, 包括:  A data communication method that pre-sets at least one mirrored iSCSI controller for each iSCSI controller, including:
镜像 iSCSI控制器检测到与该镜像 iSCSI控制器对应的被镜像 iSCSI控制 器失效;  The mirrored iSCSI controller detects that the mirrored iSCSI controller corresponding to the mirrored iSCSI controller is invalid;
将所述被镜像 iSCSI控制器的业务信息添加到该镜像 iSCSI控制器; 所述镜像 iSCSI控制器接收原登录到所述被镜像 iSCSI控制器上的 iSCSI 主机发送的登录请求;  Adding the service information of the mirrored iSCSI controller to the mirrored iSCSI controller; the mirrored iSCSI controller receives a login request sent by an iSCSI host originally logged into the mirrored iSCSI controller;
所述镜像 iSCSI控制器根据所述业务信息进行与所述 iSCSI主机之间的数 据通信。  The mirrored iSCSI controller performs data communication with the iSCSI host based on the service information.
一种数据通信系统, 包括:  A data communication system comprising:
iSCSI主机, 用于在检测到登录到的被镜像 iSCSI控制器失效时, 重新发 起登录请求, 登录到所述被镜像 iSCSI控制器对应的镜像 iSCSI控制器上, 与 所述镜像 iSCSI控制器进行数据通信;  The iSCSI host is configured to re-initiate the login request, log in to the mirrored iSCSI controller corresponding to the mirrored iSCSI controller, and perform data with the mirrored iSCSI controller when the detected mirrored iSCSI controller fails to be logged in. Communication
镜像 iSCSI控制器, 用于在检测到与其对应的所述被镜像 iSCSI控制器失 效时, 将所述被镜像 iSCSI控制器的业务信息添加到自身, 接收原登录到所述 被镜像 iSCSI控制器上的 iSCSI主机发来的登录请求,根据该业务信息与原登 录到该被镜像 iSCSI控制器上的 iSCSI主机进行数据通信。  Mirroring the iSCSI controller, configured to add the service information of the mirrored iSCSI controller to itself, and receive the original login to the mirrored iSCSI controller, when detecting that the mirrored iSCSI controller corresponding thereto fails The login request sent by the iSCSI host communicates with the iSCSI host originally logged into the mirrored iSCSI controller according to the service information.
一种 iSCSI控制器, 包括:  An iSCSI controller that includes:
镜像失效处理模块,用于在检测到与自身相对应的被镜像 iSCSI控制器失 效时, 将所述被镜像 iSCSI控制器的业务信息添加到自身; Mirror failure handling module, used to detect the mirrored iSCSI controller corresponding to itself Adding the service information of the mirrored iSCSI controller to itself;
数据处理模块, 用于与原登录到所述被镜像 iSCSI控制器上的 iSCSI主机 进行数据通信。  A data processing module is configured to perform data communication with an iSCSI host that is originally logged into the mirrored iSCSI controller.
与现有技术相比,本发明实施例通过预先为每个 iSCSI控制器设置至少一 个镜像 iSCSI控制器, 当镜像 iSCSI控制器发现自身的被镜像 iSCSI控制器失 效时, 将该被镜像 iSCSI控制器的业务信息添加到自身, 接收到原登录到所述 被镜像 iSCSI控制器上的 iSCSI主机发来的登录请求, 接受该登录请求, 根据 所述业务信息进行与所述 iSCSI主机之间的数据通信,提高了数据通信的可靠 性。  Compared with the prior art, the embodiment of the present invention sets at least one mirrored iSCSI controller for each iSCSI controller in advance, and when the mirrored iSCSI controller finds that its mirrored iSCSI controller fails, the mirrored iSCSI controller is The service information is added to itself, receives a login request sent from the iSCSI host that is logged in to the mirrored iSCSI controller, accepts the login request, and performs data communication with the iSCSI host according to the service information. Improve the reliability of data communication.
附图说明 DRAWINGS
图 1为现有的釆用 iSCSI技术进行数据通信的流程图;  Figure 1 is a flow chart of data communication using the existing iSCSI technology;
图 2为本发明实施例提供的 iSCSI主机登录归属 iSCSI控制器并进行数据 通信的流程图;  2 is a flowchart of an iSCSI host logging in to an iSCSI controller and performing data communication according to an embodiment of the present invention;
图 3为本发明实施例提供的归属 iSCSI控制器失效时的数据通信流程图; 图 4为本发明实施例提供的归属 iSCSI控制器恢复正常后的数据通信流程 图;  FIG. 3 is a flowchart of data communication when a home iSCSI controller fails according to an embodiment of the present invention; FIG. 4 is a flow chart of data communication after a home iSCSI controller returns to normal according to an embodiment of the present invention;
图 5为本发明实施例提供的釆用 iSCSI技术进行数据通信的典型组网示意 图;  FIG. 5 is a schematic diagram of a typical networking diagram of data communication using iSCSI technology according to an embodiment of the present invention; FIG.
图 6为本发明实施例提供的数据通信系统组成示意图;  6 is a schematic structural diagram of a data communication system according to an embodiment of the present invention;
图 7为本发明实施例提供的 iSCSI控制器中的镜像失效处理模块的结构示 意图;  FIG. 7 is a schematic structural diagram of a mirror failure processing module in an iSCSI controller according to an embodiment of the present invention;
图 8为本发明实施例提供的 iSCSI控制器中的镜像恢复处理模块的结构示 意图;  FIG. 8 is a schematic structural diagram of a mirror recovery processing module in an iSCSI controller according to an embodiment of the present invention;
图 9为本发明实施例提供的 iSCSI控制器中的恢复处理模块的结构示意 图。  FIG. 9 is a schematic structural diagram of a recovery processing module in an iSCSI controller according to an embodiment of the present invention.
具体实施方式 detailed description
在本发明实施例中, 对于每个 iSCSI控制器来说, 预先在所有其它 iSCSI 控制器中选择至少一个 iSCSI控制器作为该 iSCSI控制器的镜像 iSCSI控制器, 为每个 iSCSI控制器及其镜像 iSCSI控制器设置不同的 IP地址,将 iSCSI主机 可访问的一个 iSCSI控制器的 IP地址和端口号配置在该 iSCSI主机上, 并可 为每个 iSCSI控制器及其镜像 iSCSI控制器设置相同的名称; 可为每个 iSCSI 主机设置一个归属 iSCSI控制器, 各 iSCSI控制器保存 iSCSI主机标识(如: initiator名称) 与归属 iSCSI控制器的 IP地址之间的关联关系。 In the embodiment of the present invention, for each iSCSI controller, at least one iSCSI controller is selected in advance among all other iSCSI controllers as a mirrored iSCSI controller of the iSCSI controller, for each iSCSI controller and its mirror. iSCSI controller sets different IP addresses, will iSCSI host The IP address and port number of an accessible iSCSI controller are configured on the iSCSI host and can have the same name for each iSCSI controller and its mirrored iSCSI controller; a home iSCSI control can be set for each iSCSI host The iSCSI controller maintains the association between the iSCSI host ID (eg, the initiator name) and the IP address of the home iSCSI controller.
以下以 iSCSI控制器 B为 iSCSI控制器 A的镜像 iSCSI控制器、 且 iSCSI 控制器 A为 iSCSI主机 1的归属 iSCSI控制器,且 iSCSI主机 1上配置有 iSCSI 控制器 B的 IP地址及端口号为例, 对本发明实施例进行详细说明。  The following iSCSI controller B is the mirrored iSCSI controller of iSCSI controller A, and iSCSI controller A is the home iSCSI controller of iSCSI host 1, and the IP address and port number of iSCSI controller B are configured on iSCSI host 1 as For example, the embodiments of the present invention are described in detail.
图 2为本发明实施例提供的 iSCSI主机登录归属 iSCSI控制器并进行数据 通信的流程图, 如图 2所示, 其具体步骤如下:  2 is a flowchart of an iSCSI host logging in to an iSCSI controller and performing data communication according to an embodiment of the present invention. As shown in FIG. 2, the specific steps are as follows:
步骤 201 : iSCSI控制器 A启动, 在自身所有业务网口的 IP地址上运行 iSCSI目标器服务程序; iSCSI控制器 B启动, 在自身所有业务网口的 IP地址 上运行 iSCSI目标器服务程序。  Step 201: The iSCSI controller A is started, and the iSCSI target server service program is run on the IP address of all the service network ports; the iSCSI controller B is started, and the iSCSI target server service program is run on the IP address of all the service network ports.
每个 iSCSI控制器上至少有一个业务网口,每个业务网口上至少配置有一 个 IP地址。  There is at least one service network port on each iSCSI controller, and at least one IP address is configured on each service network port.
步骤 202: iSCSI主机 1根据配置在自身的 iSCSI控制器 B的 IP地址: IPB1 , 与 iSCSI控制器 B建立临时发现会话,通过该会话获取 iSCSI控制器 B的名称。  Step 202: The iSCSI host 1 establishes a temporary discovery session with the iSCSI controller B according to the IP address of its own iSCSI controller B: IPB1, and obtains the name of the iSCSI controller B through the session.
步骤 203: iSCSI主机 1向 iSCSI控制器 B发送登录请求消息, 该消息携 带 iSCSI主机 1的 initiator名称。  Step 203: The iSCSI host 1 sends a login request message to the iSCSI controller B, which carries the initiator name of the iSCSI host 1.
iSCSI主机 1上可配置有 iSCSI控制器 B的一个 IP地址,也可配置有 iSCSI 控制器 B的两个或两个以上 IP地址, iSCSI主机 1可通过配置在自身的任意 一个 IP地址发起登录请求。  The iSCSI host 1 can be configured with an IP address of the iSCSI controller B. It can also be configured with two or more IP addresses of the iSCSI controller B. The iSCSI host 1 can be configured to initiate a login request at any of its own IP addresses. .
步骤 204: iSCSI控制器 B收到该登录请求消息,根据该消息携带的 iSCSI 主机 1的 initiator名称以及自身保存的 initiator名称与归属 iSCSI控制器的 IP 地址的关联关系, 得到 iSCSI主机 1归属的 iSCSI控制器的 IP地址: IPA1。  Step 204: The iSCSI controller B receives the login request message, and obtains the iSCSI host 1 attributed iSCSI host 1 according to the initiator name of the iSCSI host 1 carried in the message and the association between the saved initiator name and the IP address of the home iSCSI controller. IP address of the controller: IPA1.
iSCSI主机的 initiator名称与归属 iSCSI控制器的 IP地址的关联关系可以 为: 由 iSCSI主机的 initiator名称为参数计算得到归属 iSCSI控制器的 IP地址 的算法。  The association between the initiator name of the iSCSI host and the IP address of the home iSCSI controller can be: An algorithm for calculating the IP address of the home iSCSI controller by using the initiator name of the iSCSI host as a parameter.
步骤 205: iSCSI控制器 B检测到 IPA1不为 iSCSI主机 1登录的 IP地址, 则将 IPA1携带在重定向请求消息中发送给 iSCSI主机 1。 iSCSI主机 1登录的 IP地址即:步骤 202中 iSCSI主机 1发起登录请求时 使用的 IPB1。 Step 205: The iSCSI controller B detects that the IP address of the IPA1 is not the IP address of the iSCSI host 1, and sends the IPA1 to the iSCSI host 1 in the redirect request message. The IP address of the iSCSI host 1 login is IPB1 used by iSCSI host 1 to initiate a login request in step 202.
步骤 206: iSCSI主机 1收到该重定向请求消息,根据该消息携带的 IPA1 , 与该 IPA1指向的 iSCSI控制器 A建立临时发现会话, 通过该会话获取 iSCSI 控制器 A的名称。  Step 206: The iSCSI host 1 receives the redirect request message, and establishes a temporary discovery session with the iSCSI controller A pointed to by the IPA1 according to the IPA1 carried by the message, and obtains the name of the iSCSI controller A through the session.
步骤 207: iSCSI主机 1向 IPA1指向的 iSCSI控制器 A发送登录请求消息, 该消息携带 iSCSI主机 1的 initiator名称。  Step 207: The iSCSI host 1 sends a login request message to the iSCSI controller A pointed to by the IPA1, where the message carries the initiator name of the iSCSI host 1.
步骤 208: iSCSI控制器 A收到该登录请求消息,根据该消息携带的 iSCSI 主机 1的 initiator名称以及自身保存的 initiator名称与归属 iSCSI控制器 IP地 址的关联关系, 得到 iSCSI主机 1归属的 iSCSI控制器 A的 IP地址: IPA1。  Step 208: The iSCSI controller A receives the login request message, and obtains the iSCSI control of the iSCSI host 1 according to the initiator name of the iSCSI host 1 carried by the message and the association between the name of the initialized initiator and the IP address of the home iSCSI controller. IP address of device A: IPA1.
步骤 209: iSCSI控制器 A检测到 IPA1为 iSCSI主机 1登录的 IP地址, 进行登录相关处理, 处理完毕, 通知 iSCSI主机 1登录成功。  Step 209: The iSCSI controller A detects that the IP address of the iSCSI host is the IP address of the iSCSI host 1 and performs the login related processing. After the processing is completed, the iSCSI host 1 is notified that the login is successful.
登录相关处理包括: 运行参数协商、 安全认证等处理。  The login related processing includes: processing of parameter negotiation, security authentication, and the like.
步骤 210: iSCSI主机 1与 iSCSI控制器 A进行数据通信。  Step 210: The iSCSI host 1 performs data communication with the iSCSI controller A.
iSCSI控制器 A会将 iSCSI主机 1发来的数据存储到 iSCSI控制器 A和 iSCSI控制器 B都可访问的存储介质中, iSCSI主机 1可从该存储介质中读取 数据。  The iSCSI controller A stores the data sent from the iSCSI host 1 to the storage medium accessible to both the iSCSI controller A and the iSCSI controller B. The iSCSI host 1 can read data from the storage medium.
从图 2所示流程可以看出, 每个 iSCSI主机都有一个归属 iSCSI控制器, 在初始登录时, iSCSI主机都登录到归属 iSCSI控制器上, 这样就保证了所有 iSCSI主机的流量均匀分担到各 iSCSI控制器上, 实现了 iSCSI控制器之间的 负荷分担。  As shown in the process shown in Figure 2, each iSCSI host has a home iSCSI controller. When the initial login, the iSCSI host logs in to the home iSCSI controller. This ensures that all iSCSI host traffic is evenly distributed. On each iSCSI controller, load sharing between iSCSI controllers is implemented.
以下给出当 iSCSI主机 1与归属 iSCSI控制器,即 iSCSI控制器 A之间的 连接链路发生故障或 iSCSI控制器 A自身发生故障后, 即: iSCSI控制器 A失 效后, 由 iSCSI控制器 A的镜像 iSCSI控制器,即 iSCSI控制器 B,接替 iSCSI 控制器 A与原登录到 iSCSI控制器 A的 iSCSI主机进行数据通信的过程。  The following is given when the connection link between iSCSI host 1 and the home iSCSI controller, ie iSCSI controller A, fails or iSCSI controller A itself fails, ie: iSCSI controller A fails, by iSCSI controller A The mirrored iSCSI controller, iSCSI controller B, takes over the process of data communication between iSCSI controller A and the iSCSI host that was originally logged into iSCSI controller A.
图 3为本发明实施例提供的归属 iSCSI控制器失效时的数据通信流程图, 如图 3所示, 其具体步骤如下:  FIG. 3 is a flowchart of data communication when a home iSCSI controller fails according to an embodiment of the present invention. As shown in FIG. 3, the specific steps are as follows:
步骤 301: iSCSI控制器 B检测到 iSCSI控制器 A失效, 将 iSCSI控制器 A的所有业务网口上的 IP地址添加到本控制器的业务网口上。 本步骤中的 iSCSI控制器 A失效指的是, iSCSI控制器 A无法与登录到自 身的 iSCSI主机进行数据通信。 iSCSI控制器 A失效可能是由于 iSCSI控制器 A的部分功能失效引起的,也可能是由于 iSCSI控制器 A重启引起的。对于前 者, iSCSI控制器 A会在检测到自身失效后, 及时通知 iSCSI控制器 B; 对于 后者, iSCSI控制器 B会由于没有收到 iSCSI控制器 A发来的握手消息而得知 iSCSI控制器 A失效。 Step 301: The iSCSI controller B detects that the iSCSI controller A is invalid, and adds the IP address of all service network ports of the iSCSI controller A to the service network port of the controller. The failure of iSCSI controller A in this step means that iSCSI controller A cannot communicate with the iSCSI host that logs in to itself. The failure of iSCSI controller A may be caused by the failure of some functions of iSCSI controller A, or it may be caused by the restart of iSCSI controller A. For the former, iSCSI controller A will notify iSCSI controller B in time after detecting its own failure; for the latter, iSCSI controller B will know the iSCSI controller because it has not received the handshake message from iSCSI controller A. A is invalid.
每个 iSCSI控制器的业务网口上的 IP地址信息都保存在该 iSCSI控制器 和其镜像 iSCSI控制器都可访问的存储空间中, 因此, iSCSI控制器 B可从自 身与 iSCSI控制器 A都可访问的存储空间中获取 iSCSI控制器 A的所有业务 网口上的 IP地址。  The IP address information on the service network port of each iSCSI controller is stored in the storage space accessible by the iSCSI controller and its mirrored iSCSI controller. Therefore, the iSCSI controller B can be used from both the iSCSI controller A and the iSCSI controller A. Obtain the IP address of all service network ports of iSCSI controller A in the storage space.
iSCSI控制器 A确定自身失效时, 会停止运行在自身所有业务网口的 IP 地址上的 iSCSI目标器服务程序, 并删除自身所有业务网口上的 IP地址。  When the iSCSI controller A determines that it is invalid, it stops the iSCSI target service program running on the IP address of all its service network ports and deletes the IP addresses on all its service network ports.
执行完本步骤后, iSCSI控制器 B的业务网口的 IP地址为: IPA1+IPA2+... 和 IPB1+IPB2+... , 其中, IPA1+IPA2+...为原 iSCSI控制器 A上的所有业务网 口上的 IP地址, IPB1+IPB2+...为 iSCSI控制器 B上的所有业务网口上的 IP 地址。  After this step, the IP addresses of the service network ports of iSCSI controller B are: IPA1+IPA2+... and IPB1+IPB2+... , where IPA1+IPA2+... is all on the original iSCSI controller A. IP address on the service network port, IPB1+IPB2+... is the IP address of all service network ports on iSCSI controller B.
步骤 302: iSCSI控制器 B在业务网口新添加的 IP地址: IPA1+IPA2+…上 运行 iSCSI目标器服务程序。  Step 302: The iSCSI controller B runs the iSCSI target service program on the newly added IP address of the service network port: IPA1+IPA2+.
步骤 303: iSCSI主机 1检测到与 iSCSI控制器 A之间的会话连接断开, 将最近一次登陆成功时的 IP地址作为目的地址,具体到该实施例中,通过 IPA1 重新发起登录请求消息, 该消息携带 iSCSI主机 1的 initiator名称。  Step 303: The iSCSI host 1 detects that the session connection with the iSCSI controller A is disconnected, and uses the IP address of the last successful login as the destination address. Specifically, in this embodiment, the login request message is re-initiated through IPA1. The message carries the initiator name of iSCSI host 1.
通常, iSCSI主机 1会根据最近一次登录成功时所使用的 IP地址,发起登 录请求。  Typically, iSCSI host 1 initiates a login request based on the IP address that was used when the last login was successful.
步骤 304: iSCSI控制器 B接收到该登录请求消息,根据该消息携带的 iSCSI 主机 1的 initiator名称以及自身保存的 initiator名称与归属 iSCSI控制器的 IP 地址的关联关系, 得到 iSCSI主机 1归属的 iSCSI控制器的 IP地址: IPA1。  Step 304: The iSCSI controller B receives the login request message, and obtains the iSCSI host 1 attributed iSCSI host 1 according to the initiator name of the iSCSI host 1 carried in the message and the association between the saved initiator name and the IP address of the home iSCSI controller. IP address of the controller: IPA1.
步骤 305: iSCSI控制器 B检测到 IPA1为 iSCSI主机 1登录的 IP地址, 进行登录相关处理, 处理完毕, 通知 iSCSI主机 1登录成功。  Step 305: The iSCSI controller B detects that the IP address of the iSCSI host 1 is the IP address of the iSCSI host 1 and performs the login related processing. After the processing is completed, the iSCSI host 1 is notified that the login is successful.
本步骤中提到的登录相关处理与步骤 209相同。 步骤 306: iSCSI主机 1与 iSCSI控制器 B进行数据通信。 The login related processing mentioned in this step is the same as step 209. Step 306: The iSCSI host 1 performs data communication with the iSCSI controller B.
iSCSI控制器 B会将 iSCSI主机 1发来的数据存储到 iSCSI控制器 B和 iSCSI控制器 A都可访问的存储介质中, iSCSI主机可从该存储介质中读取数 据。  The iSCSI controller B stores the data sent from the iSCSI host 1 to the storage medium accessible to both the iSCSI controller B and the iSCSI controller A, from which the iSCSI host can read data.
从图 3所示流程可以看出:当 iSCSI主机 1登录的 iSCSI控制器 A失效后, 该 iSCSI控制器 A的镜像 iSCSI控制器 ( iSCSI控制器 B )通过将该 iSCSI控 制器 A的业务网口上的 IP地址添加到本控制器的业务网口上, 并在该新添加 的 IP地址上运行 iSCSI目标器服务程序, 然后 iSCSI主机 1重新发起登录请 求, 登录到该镜像 iSCSI控制器上, 与该镜像 iSCSI控制器进行数据通信, 从 而保证了数据的一致性和业务的连续性。  As shown in the flow shown in Figure 3, after the iSCSI controller A that is logged in to iSCSI host 1 fails, the mirrored iSCSI controller (iSCSI controller B) of the iSCSI controller A passes through the service network port of the iSCSI controller A. The IP address is added to the service network port of the controller, and the iSCSI target server service program is run on the newly added IP address, and then the iSCSI host 1 re-initiates the login request, logs in to the mirrored iSCSI controller, and the image is mirrored. The iSCSI controller communicates data to ensure data consistency and business continuity.
当 iSCSI主机 1的归属 iSCSI控制器(iSCSI控制器 A )恢复正常后, 为 了保证负荷分担, iSCSI控制器 B会断开与原登录到 iSCSI控制器 A上的 iSCSI 主机之间的会话连接,使得 iSCSI主机 1重新登录到 iSCSI控制器 A上。 以下 给出当归属 iSCSI控制器恢复正常时的数据通信实施例。  After the home iSCSI controller (iSCSI controller A) of iSCSI host 1 is restored to normal, in order to ensure load sharing, iSCSI controller B disconnects the session from the iSCSI host that was originally logged into iSCSI controller A. The iSCSI host 1 logs back in to the iSCSI controller A. The data communication embodiment when the home iSCSI controller returns to normal is given below.
图 4为本发明实施例提供的归属 iSCSI控制器恢复正常后的数据通信的流 程图, 如图 4所示, 其具体步骤如下:  FIG. 4 is a flow chart of data communication after the home iSCSI controller returns to normal according to an embodiment of the present invention. As shown in FIG. 4, the specific steps are as follows:
步骤 401 : iSCSI控制器 B检测到 iSCSI控制器 A恢复正常, 断开与原登 录到 iSCSI控制器 A上的所有 iSCSI主机之间的会话连接, 并关闭运行在原 iSCSI控制器 A的所有 IP地址上的 iSCSI目标器服务程序。  Step 401: The iSCSI controller B detects that the iSCSI controller A is back to normal, disconnects the session connection with all the iSCSI hosts that are originally logged into the iSCSI controller A, and shuts down all the IP addresses running on the original iSCSI controller A. iSCSI target service program.
步骤 402: iSCSI控制器 B删除在自身业务网口上配置的 iSCSI控制器 A 的所有 IP地址。  Step 402: The iSCSI controller B deletes all IP addresses of the iSCSI controller A configured on the service network port.
步骤 403: iSCSI控制器 A检测到自身恢复正常, 在自身所有业务网口上 配置 iSCSI控制器 A的 IP地址, 并在配置的 IP地址上运行 iSCSI目标器服务 程序。  Step 403: The iSCSI controller A detects that it is back to normal, configures the IP address of the iSCSI controller A on all its service network ports, and runs the iSCSI target server service program on the configured IP address.
每个 iSCSI控制器的各业务网口上配置的 IP地址都保存在该 iSCSI控制 器和其镜像 iSCSI控制器都可访问的存储空间中, 因此, iSCSI控制器 A可从 自身与 iSCSI控制器 B都可访问的存储空间中获取 iSCSI控制器 A的各业务 网口上配置的 IP地址。  The IP address configured on each service network port of each iSCSI controller is stored in the storage space accessible by the iSCSI controller and its mirrored iSCSI controller. Therefore, iSCSI controller A can be both from itself and iSCSI controller B. Obtain the IP address configured on each service network port of iSCSI controller A in the accessible storage space.
步骤 404: iSCSI主机 1检测到与 iSCSI控制器 B之间的会话连接断开, 根据 IPA1重新发起登录请求消息, 该消息携带 iSCSI主机 1的 initiator名称。 步骤 405: iSCSI控制器 A收到该登录请求消息,根据该消息携带的 iSCSI 主机 1的 initiator名称以及自身保存的 initiator名称与归属 iSCSI控制器的 IP 地址的关联关系, 得到 iSCSI主机 1归属的 iSCSI控制器 A的 IP地址: IPA1。 Step 404: The iSCSI host 1 detects that the session connection with the iSCSI controller B is disconnected. The login request message is re-initiated according to IPA1, and the message carries the initiator name of iSCSI host 1. Step 405: The iSCSI controller A receives the login request message, and obtains the iSCSI host 1's iSCSI according to the initiator name of the iSCSI host 1 carried in the message and the association between the saved initiator name and the IP address of the home iSCSI controller. IP address of controller A: IPA1.
步骤 406: iSCSI控制器 A检测到 IPA1为 iSCSI主机 1登录的 IP地址, 进行登录相关处理, 处理完毕, 通知 iSCSI主机 1登录成功。  Step 406: The iSCSI controller A detects that the IP address of the iSCSI host 1 is the IP address of the iSCSI host 1 and performs the login related processing. After the processing is completed, the iSCSI host 1 is notified that the login is successful.
本步骤中提到的登录相关处理与步骤 209相同。  The login related processing mentioned in this step is the same as step 209.
步骤 407: iSCSI主机 1与 iSCSI控制器 A进行数据通信。  Step 407: The iSCSI host 1 performs data communication with the iSCSI controller A.
在图 2~4所示实施例中给出的是 iSCSI控制器 B为 iSCSI控制器 A的镜 像 iSCSI控制器的情形,在实际应用中,也可同时设定 iSCSI控制器 A为 iSCSI 控制器 B的镜像 iSCSI控制器, 此时, iSCSI控制器 A和 iSCSI控制器 B可互 称为对端 iSCSI控制器。  In the embodiment shown in FIG. 2 to FIG. 4, the iSCSI controller B is a mirrored iSCSI controller of the iSCSI controller A. In practical applications, the iSCSI controller A can also be set as the iSCSI controller B. The mirrored iSCSI controller, at this time, iSCSI controller A and iSCSI controller B can be referred to as the peer iSCSI controller.
另外, 在图 2~4所示实施例中, iSCSI控制器 A只有一个镜像 iSCSI控制 器: iSCSI控制器 B。 在实际应用中, 每个 iSCSI控制器也可有两个或两个以 上的镜像 iSCSI控制器, 每个 iSCSI控制器会将 iSCSI主机发来的数据镜像到 自身所有镜像 iSCSI控制器上, 同时, 当该 iSCSI控制器失效时, 可在正常工 作的镜像 iSCSI控制器中选择一个镜像 iSCSI控制器接替该 iSCSI控制器与原 登录到该 iSCSI控制器上的 iSCSI主机进行数据通信, 所选择的镜像 iSCSI控 制器可以是所有镜像 iSCSI控制器中负荷最小的一个。 比如, 如果有多个镜像 iSCSI控制器, 可以通过仲裁方式来决定由哪个镜像 iSCSI控制器接替失效 iSCSI控制器的业务。  In addition, in the embodiment shown in Figures 2 through 4, iSCSI Controller A has only one mirrored iSCSI controller: iSCSI Controller B. In practical applications, each iSCSI controller can also have two or more mirrored iSCSI controllers. Each iSCSI controller mirrors the data sent by the iSCSI host to all its mirrored iSCSI controllers. When the iSCSI controller fails, a mirrored iSCSI controller can be selected in the working mirrored iSCSI controller to replace the iSCSI controller with the iSCSI host originally logged into the iSCSI controller for data communication, and the selected mirror iSCSI is selected. The controller can be the least loaded of all mirrored iSCSI controllers. For example, if there are multiple mirrored iSCSI controllers, you can arbitrate to determine which mirrored iSCSI controller takes over the failed iSCSI controller.
根据图 2~4所示实施例,图 5给出了本发明实施例提供的釆用 iSCSI技术 进行数据存储的典型组网图, 如图 5所示, 控制器 A、 控制器 B 控制器 According to the embodiment shown in FIG. 2 to FIG. 4, FIG. 5 shows a typical networking diagram of data storage using the iSCSI technology provided by the embodiment of the present invention. As shown in FIG. 5, the controller A and the controller B controller are shown.
N上运行镜像的 iSCSI目标器服务程序, iSCSI主机 1、 iSCSI主机 2 iSCSI 主机 m通过广 i或网 (WAN, Wide Area Network )或局 i或网 (LAN, Local Area Network )与 iSCSI控制器建立会话。 iSCSI主机和 iSCSI目标器(包括被镜像 iSCSI控制器和镜像 iSCSI控制器)之间只会建立一个会话, 如图 5所示, 对 于 iSCSI主机 1来说,无论 iSCSI主机 1的会话建立在 iSCSI控制器 A还是 iSCSI 控制器 B上, iSCSI主机 1看到的都是同一个名称, 因此, iSCSI主机 1不会 得知 iSCSI控制器发生了改变。 The iSCSI target server running the image on N, iSCSI host 1, iSCSI host 2 iSCSI host m is established with iSCSI controller through wide i or network (WAN, Wide Area Network) or local area network (LAN, Local Area Network) Conversation. Only one session is established between the iSCSI host and the iSCSI target (including the mirrored iSCSI controller and the mirrored iSCSI controller). As shown in Figure 5, for iSCSI host 1, the session of iSCSI host 1 is established under iSCSI control. A or iSCSI controller B, iSCSI host 1 sees the same name, so iSCSI host 1 will not I learned that the iSCSI controller has changed.
图 6给出了本发明实施例提供的数据存储系统组成示意图, 如图 6所示, 其主要包括: iSCSI主机和 iSCSI控制器, 其中:  FIG. 6 is a schematic diagram showing the structure of a data storage system according to an embodiment of the present invention. As shown in FIG. 6, the method mainly includes: an iSCSI host and an iSCSI controller, where:
iSCSI主机: 在启动时, 根据配置在自身的 iSCSI控制器的 IP地址, 获取 该 IP地址指向的 iSCSI控制器的名称, 向该 IP地址指向的 iSCSI控制器发送 携带 iSCSI主机的 initiator名称的登录请求消息, 若接收到 iSCSI控制器发来 的携带 IP地址的重定向请求消息, 则获取该重定向请求消息携带的 IP地址指 向的 iSCSI控制器的名称, 向该重定向请求消息携带的 IP地址指向的 iSCSI 控制器发送登录请求消息, 接收到该重定向请求消息携带的 IP 地址指向的 iSCSI控制器发来的登录成功通知,与该重定向请求消息携带的 IP地址指向的 iSCSI控制器进行数据通信;在检测到与 iSCSI控制器之间的会话连接断开时, 重新发起登录请求消息, 比如, 可根据自身最近一次登录成功使用的 IP地址 重新发起登录请求消息。  iSCSI host: At startup, according to the IP address of the iSCSI controller configured to obtain the name of the iSCSI controller pointed to by the IP address, send a login request carrying the initiator name of the iSCSI host to the iSCSI controller pointed to by the IP address. The message, if receiving the redirect request message carrying the IP address sent by the iSCSI controller, obtains the name of the iSCSI controller pointed to by the IP address carried in the redirect request message, and points to the IP address carried in the redirect request message. The iSCSI controller sends a login request message, receives a login success notification sent by the iSCSI controller pointed by the IP address carried by the redirect request message, and performs data communication with the iSCSI controller pointed to by the IP address carried by the redirect request message. When the session connection with the iSCSI controller is disconnected, the login request message is re-initiated, for example, the login request message may be re-initiated according to the IP address successfully used by the last login.
如图 6所示, iSCSI控制器主要包括: 登录处理模块 61、 镜像失效处理模 块 62、 镜像恢复处理模块 63和数据处理模块 64, 其中:  As shown in FIG. 6, the iSCSI controller mainly includes: a login processing module 61, a mirror failure processing module 62, a mirror recovery processing module 63, and a data processing module 64, wherein:
登录处理模块 61接收到 iSCSI主机发来的登录请求消息, 根据该消息携 带的 iSCSI主机的 initiator名称以及自身保存的 initiator名称和归属 iSCSI控制 器的 IP地址的关联关系,计算得到 iSCSI主机的归属 iSCSI控制器的 IP地址, 若该 IP地址为 iSCSI主机登录的 IP地址, 则进行登录相关处理, 处理完毕, 通知 iSCSI主机登录成功; 否则, 将计算得到的 IP地址携带在重定向请求消 息中发送给 iSCSI主机。  The login processing module 61 receives the login request message sent by the iSCSI host, and calculates the home iSCSI of the iSCSI host according to the initiator name of the iSCSI host carried in the message and the association between the name of the initiator and the IP address of the home iSCSI controller. If the IP address of the controller is the IP address of the iSCSI host, the login process is performed. The processing is complete, and the iSCSI host is notified that the login is successful. Otherwise, the calculated IP address is carried in the redirect request message. iSCSI host.
镜像失效处理模块 62检测到本控制器的被镜像 iSCSI控制器失效, 将被 镜像 iSCSI控制器的业务网口上的 IP地址添加到本控制器的 IP地址上, 并在 该 IP地址上运行 iSCSI目标器服务程序。  The image failure processing module 62 detects that the mirrored iSCSI controller of the controller fails, adds the IP address of the service network port of the mirrored iSCSI controller to the IP address of the controller, and runs the iSCSI target on the IP address. Service program.
镜像恢复处理模块 63检测到本控制器的被镜像 iSCSI控制器恢复正常, 断开本控制器与原登录到该被镜像 iSCSI控制器上的 iSCSI主机之间的会话连 接,停止在本控制器的业务网口上的被镜像 iSCSI控制器的 IP地址上的 iSCSI 目标器服务程序, 并删除本控制器的业务网口上的该 IP地址。  The mirror recovery processing module 63 detects that the mirrored iSCSI controller of the controller is restored to normal, disconnects the session between the controller and the iSCSI host that is originally logged into the mirrored iSCSI controller, and stops at the controller. The iSCSI target service program on the IP address of the mirrored iSCSI controller on the service network port, and delete the IP address on the service network port of the controller.
数据处理模块 64 接收到原登录到本控制器的被镜像 iSCSI控制器上的 iSCSI主机发来的数据, 将该数据保存到高速緩冲存储器(Cache ) 中。 The data processing module 64 receives the original iSCSI controller that is logged into the controller. The data sent from the iSCSI host is saved to the cache (Cache).
如图 7所示, 镜像失效处理模块 62主要包括: 镜像失效检测模块 621和 IP地址添加模块 622, 其中:  As shown in FIG. 7, the image failure processing module 62 mainly includes: a mirror failure detection module 621 and an IP address adding module 622, where:
镜像失效检测模块 621检测到本控制器的被镜像 iSCSI控制器失效,向 IP 地址添加模块 622发送镜像失效指示。  The mirror failure detection module 621 detects that the mirrored iSCSI controller of the controller fails, and sends a mirror failure indication to the IP address adding module 622.
IP地址添加模块 622接收到镜像失效检测模块 621发来的镜像失效指示, 将本控制器的被镜像 iSCSI控制器的 IP地址添加到本控制器的业务网口上, 并在各 IP地址上运行 iSCSI目标器服务程序。  The IP address adding module 622 receives the mirroring invalidation indication sent by the mirroring failure detecting module 621, adds the IP address of the mirrored iSCSI controller of the controller to the service network port of the controller, and runs iSCSI on each IP address. Target server service program.
如图 8所示, 镜像恢复处理模块 63主要包括: 镜像恢复检测模块 631、 会话连接断开模块 632和 IP地址删除模块 633 , 其中:  As shown in FIG. 8, the image recovery processing module 63 mainly includes: a image recovery detection module 631, a session connection disconnection module 632, and an IP address deletion module 633, where:
镜像恢复检测模块 631用于在检测到本控制器的被镜像 iSCSI控制器恢复 正常后,向会话连接断开模块 632和 IP地址删除模块 633发送镜像恢复指示。  The image recovery detection module 631 is configured to send a mirror recovery indication to the session connection disconnection module 632 and the IP address deletion module 633 after detecting that the mirrored iSCSI controller of the controller is restored.
会话连接断开模块 632用于在收到镜像恢复检测模块 631发来的镜像恢复 指示后, 断开本控制器与原登录到本控制器的被镜像 iSCSI控制器上的所有 iSCSI之间的会话连接。  The session connection disconnection module 632 is configured to disconnect the session between the controller and all iSCSIs on the mirrored iSCSI controller that is originally logged into the controller after receiving the image recovery indication sent by the image recovery detection module 631. connection.
IP地址删除模块 633用于在收到镜像恢复检测模块 631发来的镜像恢复 指示后, 停止在本控制器的业务网口的被镜像 iSCSI控制器的 IP地址上的 iSCSI目标器服务程序, 并删除本控制器的业务网口上配置的被镜像 iSCSI控 制器的 IP地址。  The IP address deletion module 633 is configured to stop the iSCSI target service program on the IP address of the mirrored iSCSI controller of the service network port of the controller after receiving the image recovery indication sent by the image recovery detection module 631, and Delete the IP address of the mirrored iSCSI controller configured on the service network port of the controller.
另外, 本发明实施例中的 iSCSI控制器还可包括: 失效处理模块和恢复处 理模块, 其中:  In addition, the iSCSI controller in the embodiment of the present invention may further include: a failure processing module and a recovery processing module, where:
本机失效处理模块用于在确定本控制器失效时,停止自身所有业务网口的 The local failure processing module is used to stop all the service network ports of the user when determining that the controller is invalid.
IP地址上运行的 iSCSI目标器服务程序, 并删除自身所有业务网口上的 IP地 址。 The iSCSI target server running on the IP address and delete the IP address on all its service network ports.
本机恢复处理模块当检测到本控制器由失效恢复正常时,在本控制器的所 有业务网口上配置 IP地址, 在本控制器业务网口的 IP地址上运行 iSCSI目标 器服务程序。  When the local recovery processing module detects that the controller is recovering from failure, configure an IP address on all service network ports of the controller and run the iSCSI target service program on the IP address of the service network port of the controller.
如图 9所示, 本机恢复处理模块主要包括: 本机恢复检测模块 651和 IP 地址配置模块 652, 其中: 本机恢复检测模块 651 用于在检测到本控制器由失效恢复正常时, 向 IP 地址配置模块 652发送失效恢复指示。 As shown in FIG. 9, the local recovery processing module mainly includes: a local recovery detection module 651 and an IP address configuration module 652, wherein: The local recovery detection module 651 is configured to send a failure recovery indication to the IP address configuration module 652 upon detecting that the controller is recovering from failure.
IP地址配置模块 652用于在收到恢复检测模块 651发来的失效恢复指示 后, 在本控制器的所有业务网口上配置 IP地址, 并在各 IP地址上运行 iSCSI 目标器服务程序。  The IP address configuration module 652 is configured to configure an IP address on all service network ports of the controller after receiving the failure recovery indication sent by the recovery detection module 651, and run the iSCSI target service program on each IP address.
从上述实施例可以看出, 当 iSCSI控制器失效时, 该 iSCSI控制器的镜像 iSCSI控制器会将该 iSCSI控制器的业务网口上的 IP地址添加到自身的业务网 口上, 并在每个 IP地址上运行 iSCSI 目标器服务程序, 此后 iSCSI主机登录 到该镜像 iSCSI控制器上, 与该镜像 iSCSI控制器进行数据通信, 实现了数据 的一致性和业务的连续性, 提高了数据通信的可靠性和稳定性。 并且, 通过为 每个 iSCSI主机设置一个归属 iSCSI控制器, 实现了负荷分担。 另外, iSCSI 控制器和镜像 iSCSI控制器使用同一名称,使得 iSCSI控制器切换过程对用户 是透明的。  It can be seen from the above embodiment that when the iSCSI controller fails, the mirrored iSCSI controller of the iSCSI controller adds the IP address of the service network port of the iSCSI controller to its own service network port, and at each IP address. The iSCSI target server service program runs on the address, and then the iSCSI host logs in to the mirrored iSCSI controller to perform data communication with the mirrored iSCSI controller, achieving data consistency and service continuity, and improving data communication reliability. And stability. Also, load sharing is achieved by setting up a home iSCSI controller for each iSCSI host. In addition, the iSCSI controller and the mirrored iSCSI controller use the same name, making the iSCSI controller switching process transparent to the user.
以上所述仅为本发明的过程及方法实施例, 并不用以限制本发明, 凡在本 发明的精神和原则之内所做的任何修改、 等同替换、 改进等, 均应包含在本发 明的保护范围之内。  The above is only the embodiment of the process and method of the present invention, and is not intended to limit the present invention. Any modifications, equivalents, improvements, etc. made within the spirit and principles of the present invention should be included in the present invention. Within the scope of protection.

Claims

权 利 要 求 Rights request
1、 一种数据通信方法, 其特征在于, 预先为每个互联网小型计算机系统 接口 iSCSI控制器设置至少一个镜像 iSCSI控制器, 该方法包括:  A data communication method, characterized in that at least one mirrored iSCSI controller is provided in advance for each Internet small computer system interface iSCSI controller, the method comprising:
镜像 iSCSI控制器检测到与该镜像 iSCSI控制器对应的被镜像 iSCSI控制 器失效;  The mirrored iSCSI controller detects that the mirrored iSCSI controller corresponding to the mirrored iSCSI controller is invalid;
将所述被镜像 iSCSI控制器的业务信息添加到该镜像 iSCSI控制器; 所述镜像 iSCSI控制器接收原登录到所述被镜像 iSCSI控制器上的 iSCSI 主机发送的登录请求;  Adding the service information of the mirrored iSCSI controller to the mirrored iSCSI controller; the mirrored iSCSI controller receives a login request sent by an iSCSI host originally logged into the mirrored iSCSI controller;
所述镜像 iSCSI控制器根据所述业务信息进行与所述 iSCSI主机之间的数 据通信。  The mirrored iSCSI controller performs data communication with the iSCSI host based on the service information.
2、 如权利要求 1所述的方法, 其特征在于, 所述方法进一步包括: 预先 设置使每个 iSCSI主机归属于一个所述被镜像 iSCSI控制器;  2. The method according to claim 1, wherein the method further comprises: presetting that each iSCSI host belongs to one of the mirrored iSCSI controllers;
所述镜像 iSCSI控制器检测到与该镜像 iSCSI控制器对应的被镜像 iSCSI 控制器失效之前进一步包括:  The mirrored iSCSI controller further includes: before detecting that the mirrored iSCSI controller corresponding to the mirrored iSCSI controller fails:
所述 iSCSI主机登录到自身归属的被镜像 iSCSI控制器上, 并与归属的被 镜像 iSCSI控制器进行数据通信。  The iSCSI host logs into the mirrored iSCSI controller to which it belongs and performs data communication with the home mirrored iSCSI controller.
3、 如权利要求 2所述的方法, 其特征在于, 所述方法进一步包括: 所述 被镜像 iSCSI控制器检测到自身失效, 停止运行自身所有业务网口的 IP地址 上的 iSCSI目标器服务程序。  The method according to claim 2, wherein the method further comprises: the mirrored iSCSI controller detects that it is invalid, and stops running the iSCSI target server program on the IP address of all its service network ports. .
4、 如权利要求 3所述的方法, 其特征在于, 所述方法进一步包括: 所述被镜像 iSCSI控制器检测到自身由失效恢复正常,在自身的所有业务 网口上配置 IP地址, 并在各 IP地址上运行 iSCSI目标器服务程序。  The method of claim 3, wherein the method further comprises: the mirrored iSCSI controller detects that it has recovered from failure, and configures an IP address on all of its service network ports, and Run the iSCSI Target Service program on the IP address.
5、 如权利要求 3或 4所述的方法, 其特征在于, 所述方法进一步包括: 所述 iSCSI主机检测到与所述镜像 iSCSI控制器之间的数据通信断开, 重 新发起登录请求, 登录到所述 iSCSI控制器上, 与所述 iSCSI控制器进行数据 通信。  The method according to claim 3 or 4, wherein the method further comprises: the iSCSI host detecting disconnection of data communication with the mirrored iSCSI controller, re-initiating a login request, logging in Data communication with the iSCSI controller is performed on the iSCSI controller.
6、 如权利要求 1所述的方法, 其特征在于, 所述将被镜像 iSCSI控制器 的业务信息添加到该镜像 iSCSI控制器包括:将所述被镜像 iSCSI控制器的 IP 地址添加到所述镜像 iSCSI控制器的业务网口上, 并在添加的每个 IP地址上 运行 iSCSI目标器服务程序。 6. The method of claim 1, wherein the adding the service information of the mirrored iSCSI controller to the mirrored iSCSI controller comprises: adding an IP address of the mirrored iSCSI controller to the Mirror the iSCSI controller's service network port and add it to each IP address. Run the iSCSI target server.
7、 如权利要求 6所述的方法, 其特征在于, 所述方法进一步包括: 所述镜像 iSCSI控制器检测到所述被镜像 iSCSI控制器恢复正常; 所述镜像 iSCSI控制器断开与原登录到所述被镜像 iSCSI控制器的 iSCSI 主机之间的数据通信,停止运行在自身业务网口的所述被镜像 iSCSI控制器的 IP地址上的 iSCSI目标器服务程序, 删除自身业务网口上的所述被镜像 iSCSI 控制器的 IP地址。  The method according to claim 6, wherein the method further comprises: the mirrored iSCSI controller detecting that the mirrored iSCSI controller is restored to normal; the mirroring iSCSI controller is disconnected from the original login The data communication between the iSCSI host of the mirrored iSCSI controller is stopped, and the iSCSI target service program running on the IP address of the mirrored iSCSI controller of the service network port is stopped, and the service port on the service network port is deleted. The IP address of the mirrored iSCSI controller.
8、 如权利要求 1所述的方法, 其特征在于, 所述方法进一步包括: 预先 为所述 iSCSI控制器及其对应的镜像 iSCSI控制器设置相同的名称。  8. The method of claim 1, wherein the method further comprises: pre-setting the same name for the iSCSI controller and its corresponding mirrored iSCSI controller.
9、 一种数据通信系统, 其特征在于, 包括:  9. A data communication system, comprising:
iSCSI主机, 用于在检测到登录到的被镜像 iSCSI控制器失效时, 重新发 起登录请求, 登录到所述被镜像 iSCSI控制器对应的镜像 iSCSI控制器上, 与 所述镜像 iSCSI控制器进行数据通信;  The iSCSI host is configured to re-initiate the login request, log in to the mirrored iSCSI controller corresponding to the mirrored iSCSI controller, and perform data with the mirrored iSCSI controller when the detected mirrored iSCSI controller fails to be logged in. Communication
镜像 iSCSI控制器, 用于在检测到与其对应的所述被镜像 iSCSI控制器失 效时, 将所述被镜像 iSCSI控制器的业务信息添加到自身, 接收原登录到所述 被镜像 iSCSI控制器上的 iSCSI主机发来的登录请求,根据该业务信息与原登 录到所述被镜像 iSCSI控制器上的 iSCSI主机进行数据通信。  Mirroring the iSCSI controller, configured to add the service information of the mirrored iSCSI controller to itself, and receive the original login to the mirrored iSCSI controller, when detecting that the mirrored iSCSI controller corresponding thereto fails The login request sent by the iSCSI host performs data communication with the iSCSI host originally logged into the mirrored iSCSI controller according to the service information.
10、 一种 iSCSI控制器, 其特征在于, 包括:  10. An iSCSI controller, comprising:
镜像失效处理模块,用于在检测到与自身相对应的被镜像 iSCSI控制器失 效时, 将所述被镜像 iSCSI控制器的业务信息添加到自身;  a mirror failure processing module, configured to add the service information of the mirrored iSCSI controller to itself when detecting that the mirrored iSCSI controller corresponding to itself fails;
数据处理模块, 用于与原登录到所述被镜像 iSCSI控制器上的 iSCSI主机 进行数据通信。  A data processing module is configured to perform data communication with an iSCSI host that is originally logged into the mirrored iSCSI controller.
11、 如权利要求 10述的 iSCSI控制器, 其特征在于, 所述镜像失效处理 模块包括:  The iSCSI controller according to claim 10, wherein the mirror failure processing module comprises:
镜像失效检测模块,用于在检测到与自身相对应的被镜像 iSCSI控制器失 效时, 发送镜像失效指示;  a mirror failure detection module, configured to send a mirror failure indication when detecting that the mirrored iSCSI controller corresponding to itself fails;
IP地址添加模块, 用于接收所述镜像失效检测模块发送的镜像失效指示, 将所述被镜像 iSCSI控制器的 IP地址添加到本控制器的业务网口上, 并在各 IP地址上运行 iSCSI目标器服务程序。 The IP address adding module is configured to receive the mirroring invalidation indication sent by the mirroring failure detecting module, add the IP address of the mirrored iSCSI controller to the service network port of the controller, and run the iSCSI target on each IP address. Service program.
12、 权利要求 10所述的 iSCSI控制器, 其特征在于, 所述 iSCSI控制器 进一步包括: The iSCSI controller of claim 10, wherein the iSCSI controller further comprises:
镜像恢复处理模块, 用于在检测到所述被镜像 iSCSI控制器恢复正常时, 断开与原登录到所述被镜像 iSCSI控制器上的 iSCSI主机之间的数据通信连 接, 删除所述 iSCSI控制器上的所述被镜像 iSCSI控制器的业务信息。  a mirror recovery processing module, configured to: when detecting that the mirrored iSCSI controller returns to normal, disconnect a data communication connection with an iSCSI host that is originally logged into the mirrored iSCSI controller, and delete the iSCSI control The service information of the mirrored iSCSI controller on the device.
13、 如权利要求 12所述的 iSCSI控制器, 其特征在于, 所述镜像恢复处 理模块包括:  The iSCSI controller of claim 12, wherein the image restoration processing module comprises:
镜像恢复检测模块, 用于在检测到所述被镜像 iSCSI控制器恢复正常时, 向会话连接断开模块和 IP地址删除模块发送镜像恢复指示;  a mirror recovery detection module, configured to send a mirror recovery indication to the session connection disconnection module and the IP address deletion module when detecting that the mirrored iSCSI controller returns to normal;
会话连接断开模块, 用于在收到所述镜像恢复指示后, 断开所述 iSCSI控 制器与原登录到所述被镜像 iSCSI控制器上的所有 iSCSI主机之间的数据通信 连接;  a session connection disconnecting module, configured to: after receiving the image recovery indication, disconnect a data communication connection between the iSCSI controller and all iSCSI hosts originally logged into the mirrored iSCSI controller;
IP地址删除模块, 用于在收到所述镜像恢复指示后, 停止在所述 iSCSI 控制器的业务网口的被镜像 iSCSI控制器的 IP地址上的所述 iSCSI 目标器服 务程序, 并删除所述 iSCSI控制器的业务网口上配置的被镜像 iSCSI控制器的 IP地址。  The IP address deletion module is configured to: after receiving the image recovery indication, stop the iSCSI target service program on the IP address of the mirrored iSCSI controller of the service network port of the iSCSI controller, and delete the Indicates the IP address of the mirrored iSCSI controller configured on the service network port of the iSCSI controller.
14、 如权利要求 10所述的 iSCSI控制器, 其特征在于, 所述 iSCSI控制 器进一步包括:  The iSCSI controller according to claim 10, wherein the iSCSI controller further comprises:
失效处理模块, 用于在检测到本控制器失效时, 停止运行在本 iSCSI控制 器所有业务网口的 IP地址上的 iSCSI 目标器服务程序, 并删除所有业务网口 上的 IP地址。  The failure processing module is configured to stop the iSCSI target service program running on the IP address of all the service network ports of the iSCSI controller when the controller fails, and delete the IP addresses on all service network ports.
15、 如权利要求 10或 14所述的 iSCSI控制器, 其特征在于, 所述 iSCSI 控制器进一步包括:  The iSCSI controller according to claim 10 or 14, wherein the iSCSI controller further comprises:
本机恢复处理模块, 用于在检测到所述 iSCSI控制器由失效恢复正常后, 在所述 iSCSI控制器上配置业务信息。  The local recovery processing module is configured to configure service information on the iSCSI controller after detecting that the iSCSI controller is restored to normal by failure.
16、 如权利要求 15所述的 iSCSI控制器, 其特征在于, 所述本机恢复处 理模块包括:  The iSCSI controller according to claim 15, wherein the local recovery processing module comprises:
本机恢复检测模块, 用于在检测到所述 iSCSI控制器由失效恢复正常后, 发送失效恢复指示; IP地址配置模块, 用于接收所述恢复检测模块发送的失效恢复指示, 并 在所述 iSCSI控制器的所有业务网口上配置 IP地址, 并在各 IP地址上运行 iSCSI目标器服务程序。 The local recovery detection module is configured to send a failure recovery indication after detecting that the iSCSI controller recovers from failure; The IP address configuration module is configured to receive the failure recovery indication sent by the recovery detection module, configure an IP address on all service network ports of the iSCSI controller, and run an iSCSI target service program on each IP address.
PCT/CN2008/070521 2007-07-20 2008-03-18 A method and system for data communication and an internet small computer systems interface controller WO2009012662A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US12/176,187 US20090025014A1 (en) 2007-07-20 2008-07-18 Data transfer method and system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200710129984.3A CN101076012B (en) 2007-07-20 2007-07-20 Date telecommunication system and method and interface controller of Internet microcomputer system
CN200710129984.3 2007-07-20

Publications (1)

Publication Number Publication Date
WO2009012662A1 true WO2009012662A1 (en) 2009-01-29

Family

ID=38976836

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/070521 WO2009012662A1 (en) 2007-07-20 2008-03-18 A method and system for data communication and an internet small computer systems interface controller

Country Status (2)

Country Link
CN (1) CN101076012B (en)
WO (1) WO2009012662A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101076012B (en) * 2007-07-20 2010-12-15 华为技术有限公司 Date telecommunication system and method and interface controller of Internet microcomputer system
CN104468677B (en) * 2013-09-25 2018-08-03 中国科学院声学研究所 The double-deck iscsi target device system based on generic server and embedded server

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1925402A (en) * 2006-09-15 2007-03-07 杭州华为三康技术有限公司 iSCSI identifying method, its initiating equipment and target equipment and identifying method
CN101076012A (en) * 2007-07-20 2007-11-21 华为技术有限公司 Date telecommunication system and method and interface controller of Internet microcomputer system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE602004010111T2 (en) * 2003-05-28 2008-09-11 Symbol Technologies, Inc. BACKUP CONTROL CELLS
CN100389392C (en) * 2006-05-29 2008-05-21 杭州华三通信技术有限公司 Method for realizing load uniform in clustering system, system and storage controller

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1925402A (en) * 2006-09-15 2007-03-07 杭州华为三康技术有限公司 iSCSI identifying method, its initiating equipment and target equipment and identifying method
CN101076012A (en) * 2007-07-20 2007-11-21 华为技术有限公司 Date telecommunication system and method and interface controller of Internet microcomputer system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
GUO T. ET AL.: "Design and Implement of Remote Mirroring Based on iSCSI", MINI-MICRO SYSTEMS, vol. 27, no. 1, 31 January 2006 (2006-01-31), pages 72 - 75 *

Also Published As

Publication number Publication date
CN101076012A (en) 2007-11-21
CN101076012B (en) 2010-12-15

Similar Documents

Publication Publication Date Title
JP5255858B2 (en) Method and apparatus for managing virtual ports on a storage system
US7680953B2 (en) Computer system, storage device, management server and communication control method
US8627136B2 (en) Non-disruptive failover of RDMA connection
US8171125B2 (en) Scalable distributed storage and delivery
WO2016202051A1 (en) Method and device for managing active and backup nodes in communication system and high-availability cluster
JP5091833B2 (en) Monitored device management system, management server, and monitored device management method
US10360237B2 (en) Secure data replication
US20060064466A1 (en) Data migration method
WO2013097485A1 (en) Disk array, storage system, and method for switching data storage paths
JP2004102374A (en) Information processing system having data transition device
WO2012149750A1 (en) User service migration method, device and system
US6880013B2 (en) Permanent TCP connections across system reboots
WO2020057445A1 (en) Communication system, method, and device
JP2012175199A (en) Network system and communication recovery method
WO2009012662A1 (en) A method and system for data communication and an internet small computer systems interface controller
WO2018094686A1 (en) Smb service failure handling method, and storage device
JP4757670B2 (en) System switching method, computer system and program thereof
WO2011143888A1 (en) Method and system for backing up protocol state between devices
WO2018113633A1 (en) Packet forwarding method, packet forwarding controller, bras, and computer storage medium
CN106101240B (en) Data communication continuous connection method and device
US20090025014A1 (en) Data transfer method and system
CN115208813B (en) Method, device, equipment and storage medium for migrating border gateway protocol
JP2018116524A (en) Image forming apparatus, access support method, and computer program
KR20090072638A (en) Apparatus and method for duplexing access control router(acr) in mobile internet
CN114785761A (en) Advanced k8s cluster intercommunication method in Internet of things operating system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 08715257

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 08715257

Country of ref document: EP

Kind code of ref document: A1