CN103037031A - Internet protocol (IP) address administration method of internet small computer system interface (ISCSI) target device - Google Patents

Internet protocol (IP) address administration method of internet small computer system interface (ISCSI) target device Download PDF

Info

Publication number
CN103037031A
CN103037031A CN201210540300XA CN201210540300A CN103037031A CN 103037031 A CN103037031 A CN 103037031A CN 201210540300X A CN201210540300X A CN 201210540300XA CN 201210540300 A CN201210540300 A CN 201210540300A CN 103037031 A CN103037031 A CN 103037031A
Authority
CN
China
Prior art keywords
address
iscsi
target device
starter
message
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
CN201210540300XA
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.)
Shenzhen Anyun Information Technology Co., Ltd.
Original Assignee
SHENZHEN ANYUN INFORMATION TECHNOLOGY Co Ltd
Clouds Creators Information Technology (tianjin) 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 SHENZHEN ANYUN INFORMATION TECHNOLOGY Co Ltd, Clouds Creators Information Technology (tianjin) Co Ltd filed Critical SHENZHEN ANYUN INFORMATION TECHNOLOGY Co Ltd
Priority to CN201210540300XA priority Critical patent/CN103037031A/en
Publication of CN103037031A publication Critical patent/CN103037031A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses an internet protocol (IP) address administration method of an internet small computer system interface (ISCSI) target device. The method comprises the following steps: A, receiving first information from an ISCSI starter, wherein a source address in the first information is an IP address of the ISCSI starter and a destination address of the first information is a virtual IP address of the ISCSI target device; B, based on the Hash algorithm, choosing a physical internet access from multiple physical internet accesses of the ISCSI target device according to the IP address of the ISCSI starter in the first information and the virtual IP address of the ISCSI target device in the first information, and recording a corresponding relation between the IP address of the ISCSI starter and an IP address of the chosen physical internet access; and C, replacing the destination address in the first information by the IP address of the chosen physical internet access according to the corresponding relation, and then sending the first information.

Description

A kind of IP address management method of iscsi target device
Technical field
The application relates to computer and network technology, relates in particular to the IP address management method of a kind of Internet Small Computer Systems Interface (iSCSI, Internet Small Computer System Interface) object machine.
Background technology
Internet Small Computer Systems Interface (iSCSI, Internet Small Computer System Interface) be a kind of agreement based on TCP/IP, be used for developing and managing interconnecting between IP memory device and the client etc., and create storage area network (SAN).SAN is so that the SCSI protocol application becomes possibility in high speed data transmission networks, and this transmission is carried out between a plurality of data storage networks with data block rank (block-level).
The SCSI structure is based on customer end/server mode, and its common applied environment is: equipment is adjacent to each other, and these equipment are connected by SCSI bus.The major function of iSCSI is encapsulation and the transmitting process of carrying out mass data between the client on the TCP/IP network (starter initiator) and memory device (object machine target).In addition, iSCSI provides at IP network encapsulation scsi command, and operates on the TCP.
In order to increase device bandwidth, dispose a plurality of network interfaces often for the network storage equipment based on iscsi technology, each network interface has IP address separately, like this, different iSCSI starters can be connected to the different network interfaces of same iscsi target device, reaches the purpose of flow equalization.But, in the many situations of the number of iSCSI starter, need Admin Administration iSCSI starter to be connected corresponding relation with the IP of iscsi target device, this has brought the extra work amount to the keeper, and the mode of this manual intervention differs and guarantees surely the load balancing of flow between a plurality of network interfaces fully.
Summary of the invention
The application provides a kind of IP address management method of iscsi target device, can guarantee that the connection of different iSCSI starters is evenly distributed on the different physical internet ports of iscsi target device.
The IP address management method of a kind of iscsi target device that the application provides comprises:
A, receive the first message from the iSCSI starter, the source address in described the first message is the IP address of iSCSI starter, and destination address is the virtual ip address of iscsi target device;
B, according to the IP address of the iSCSI starter in described the first message and the virtual ip address of iscsi target device, from a plurality of physical internet ports of iscsi target device, select a physical internet ports based on hash algorithm, the corresponding relation of the IP address of record iSCSI starter and the IP address of selected physical internet ports;
C, according to described corresponding relation, the destination address in the first message is replaced with the IP address of selected physical internet ports, then send described the first message.
Preferably, after the described step C, further comprise:
Reception is from the second message of iscsi target device, and the source address of described the second message is the IP address of some physical internet ports of iscsi target device, and destination address is the IP address of iSCSI starter;
The source address of the second message is replaced with the virtual ip address of iscsi target device, then send described the second message.
Preferably, the method further comprises:
When certain physical internet ports that detects the iscsi target device breaks down, calculate according to virtual ip address and the IP address that is connected to the iSCSI starter of the described physical internet ports that breaks down, iSCSI connection migration that will be related with described iSCSI starter is to other normal physical internet ports of iscsi target device.
As can be seen from the above technical solutions, the iscsi target device externally provides a unique virtual ip address, and this virtual ip address is used for the iSCSI starter and sets up the iSCSI connection; And inner at the iscsi target device, based on IP address and the virtual ip address of iSCSI starter, according to certain hash algorithm, will connect from the iSCSI of iSCSI starter and be redirected on certain physical internet ports of iscsi target device.By selecting suitable hash algorithm, can guarantee that the connection of different iSCSI starters is evenly distributed on the different physical internet ports of iscsi target device.Further; if certain physical internet ports on the iscsi target device breaks down when service can not be provided; can recomputate cryptographic Hash according to the IP address, the iSCSI connection migration on the fault network interface to other normal network interfaces, is reached the purpose of path redundancy protection.
Description of drawings
The IP address management method flow diagram of a kind of iscsi target device that Fig. 1 provides for the embodiment of the present application.
Embodiment
This programme proposes a kind of IP address management method of iscsi target device, and namely the iscsi target device externally provides a unique virtual ip address, and this virtual ip address is used for the iSCSI starter and sets up the iSCSI connection; And inner at the iscsi target device, based on IP address and the virtual ip address of iSCSI starter, according to certain hash algorithm, will connect from the iSCSI of iSCSI starter and be redirected on certain physical internet ports of iscsi target device.By selecting suitable hash algorithm, can guarantee that the connection of different iSCSI starters is evenly distributed on the different physical internet ports of iscsi target device.
Further; if certain physical internet ports on the iscsi target device breaks down when service can not be provided; can recomputate cryptographic Hash according to the IP address, the iSCSI connection migration on the fault network interface to other normal network interfaces, is reached the purpose of path redundancy protection.
Clearer for the know-why, characteristics and the technique effect that make the present techniques scheme, below in conjunction with specific embodiment the present techniques scheme is described in detail.
The IP address management method flow of a kind of iscsi target device that Fig. 1 provides for the embodiment of the present application comprises the steps:
Step 101: receive the first message from the iSCSI starter, the source address in described the first message is the IP address of iSCSI starter, and destination address is the virtual ip address of iscsi target device;
Step 102: according to the IP address of the iSCSI starter in described the first message and the virtual ip address of iscsi target device, from a plurality of physical internet ports of iscsi target device, select a physical internet ports based on hash algorithm, the corresponding relation of the IP address of record iSCSI starter and the IP address of selected physical internet ports;
Step 103: according to described corresponding relation, the destination address in the first message is replaced with the IP address of selected physical internet ports, then send described the first message.
Through above-mentioned steps, a concrete physical internet ports that being connected between iSCSI starter and the iscsi target device is redirected to the iscsi target device, after this, if the iscsi target device is then carried out following steps to iSCSI starter transmission message:
Step 104: receive the second message from the iscsi target device, the source address of described the second message is the IP address of some physical internet ports of iscsi target device, and destination address is the IP address of iSCSI starter;
Step 105: the source address of the second message is replaced with the virtual ip address of iscsi target device, then send described the second message.
If when certain physical internet ports that detects the iscsi target device breaks down, calculate according to virtual ip address and the IP address that is connected to the iSCSI starter of the described physical internet ports that breaks down, iSCSI connection migration that will be related with described iSCSI starter is to other normal physical internet ports of iscsi target device.
The IP address of the virtual ip address in the present techniques scheme and the physical internet ports of iscsi target device mainly contains following purposes at the phase same network segment:
As the external unique IP interface of whole iscsi target device, when the iSCSI starter required to connect, destination address was this virtual ip address;
Carry out Hash operation with the source IP address of client, according to the Hash operation result, the iSCSI starter is connected a physical internet ports that is redirected to the iscsi target device with iSCSI between the iscsi target device;
When certain physical internet ports of iscsi target device breaks down, utilize the IP address of virtual ip address and iSCSI starter to recomputate after, with iSCSI connection migration other normal physical internet ports to the iscsi target device.
By using the present techniques scheme, can be achieved as follows technique effect:
Automatically set up the connection between iSCSI starter and the iscsi target device, reduce keeper's workload; When having a large amount of iSCSI starter, can automatic equalization iSCSI be connected to the distribution on a plurality of physical internet ports of iscsi target device according to hash algorithm, thus the iSCSI flow adaptively on a plurality of physical internet ports of balanced iscsi target device.Further, the application's scheme can also provide iSCSI to connect function of redundancy protection.
The above only is the application's preferred embodiment; not in order to limit the application's protection range; all within the spirit and principle of present techniques scheme, any modification of making, be equal to replacement, improvement etc., all should be included within the scope of the application's protection.

Claims (3)

1. the IP address management method of an Internet Small Computer Systems Interface iscsi target device is characterized in that, comprising:
A, receive the first message from the iSCSI starter, the source address in described the first message is the IP address of iSCSI starter, and destination address is the virtual ip address of iscsi target device;
B, according to the IP address of the iSCSI starter in described the first message and the virtual ip address of iscsi target device, from a plurality of physical internet ports of iscsi target device, select a physical internet ports based on hash algorithm, the corresponding relation of the IP address of record iSCSI starter and the IP address of selected physical internet ports;
C, according to described corresponding relation, the destination address in the first message is replaced with the IP address of selected physical internet ports, then send described the first message.
2. method according to claim 1 is characterized in that, after the described step C, further comprises:
Reception is from the second message of iscsi target device, and the source address of described the second message is the IP address of some physical internet ports of iscsi target device, and destination address is the IP address of iSCSI starter;
The source address of the second message is replaced with the virtual ip address of iscsi target device, then send described the second message.
3. method according to claim 1 is characterized in that, the method further comprises:
When certain physical internet ports that detects the iscsi target device breaks down, calculate according to virtual ip address and the IP address that is connected to the iSCSI starter of the described physical internet ports that breaks down, iSCSI connection migration that will be related with described iSCSI starter is to other normal physical internet ports of iscsi target device.
CN201210540300XA 2012-12-14 2012-12-14 Internet protocol (IP) address administration method of internet small computer system interface (ISCSI) target device Pending CN103037031A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210540300XA CN103037031A (en) 2012-12-14 2012-12-14 Internet protocol (IP) address administration method of internet small computer system interface (ISCSI) target device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210540300XA CN103037031A (en) 2012-12-14 2012-12-14 Internet protocol (IP) address administration method of internet small computer system interface (ISCSI) target device

Publications (1)

Publication Number Publication Date
CN103037031A true CN103037031A (en) 2013-04-10

Family

ID=48023499

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210540300XA Pending CN103037031A (en) 2012-12-14 2012-12-14 Internet protocol (IP) address administration method of internet small computer system interface (ISCSI) target device

Country Status (1)

Country Link
CN (1) CN103037031A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105515969A (en) * 2015-12-03 2016-04-20 华为技术有限公司 Method and device for establishing link and method and device for sending notification
CN105450755B (en) * 2015-12-01 2018-12-14 深圳市迪菲特科技股份有限公司 A kind of method and device of the more host network port performances of equilibrium based on ipsan
CN110034951A (en) * 2019-03-06 2019-07-19 平安科技(深圳)有限公司 The failure switching method and iSCSI major heading device of iscsi target device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1554055A (en) * 2001-07-23 2004-12-08 �Ƚ�΢װ�ù�˾ High-availability cluster virtual server system
CN1909478A (en) * 2006-08-29 2007-02-07 乌永胜 Method for realizing management of multiple disks storage array through exchange or management server
CN1312889C (en) * 2003-12-17 2007-04-25 浪潮电子信息产业股份有限公司 Single address traffic distributor of cluster network
CN102111436A (en) * 2010-12-20 2011-06-29 深圳市创新科信息技术有限公司 Storage device and method for accessing storage device through internet small computer system interface (iSCSI)

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1554055A (en) * 2001-07-23 2004-12-08 �Ƚ�΢װ�ù�˾ High-availability cluster virtual server system
CN1312889C (en) * 2003-12-17 2007-04-25 浪潮电子信息产业股份有限公司 Single address traffic distributor of cluster network
CN1909478A (en) * 2006-08-29 2007-02-07 乌永胜 Method for realizing management of multiple disks storage array through exchange or management server
CN102111436A (en) * 2010-12-20 2011-06-29 深圳市创新科信息技术有限公司 Storage device and method for accessing storage device through internet small computer system interface (iSCSI)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105450755B (en) * 2015-12-01 2018-12-14 深圳市迪菲特科技股份有限公司 A kind of method and device of the more host network port performances of equilibrium based on ipsan
CN105515969A (en) * 2015-12-03 2016-04-20 华为技术有限公司 Method and device for establishing link and method and device for sending notification
CN105515969B (en) * 2015-12-03 2018-11-20 华为技术有限公司 A kind of method and apparatus for establishing link and a kind of method and apparatus for sending notice
CN110034951A (en) * 2019-03-06 2019-07-19 平安科技(深圳)有限公司 The failure switching method and iSCSI major heading device of iscsi target device

Similar Documents

Publication Publication Date Title
US10257066B2 (en) Interconnect congestion control in a storage grid
US9253100B2 (en) Asynchronous virtual machine replication
US9942158B2 (en) Data traffic policy management system
US9983813B2 (en) Maintenance of a fabric priority during synchronous copy operations
CN108023967B (en) Data balancing method and device and management equipment in distributed storage system
CN105025053A (en) Distributed file upload method based on cloud storage technology and system
US10198212B2 (en) Distributed backup system
JP2008529167A (en) Collaborative shared storage architecture
JP2008542887A5 (en)
US8359379B1 (en) Method of implementing IP-based proxy server for ISCSI services
CN107819891A (en) Data processing method, device, computer equipment and storage medium
US20160269439A1 (en) Deploying a security appliance system in a high availability environment without extra network burden
CN108055338B (en) ISCSI access load balancing method
JP5034495B2 (en) Storage system, program and method
KR20100094312A (en) File system and method for delivering contents in file system
CN102111436B (en) Storage device and method for accessing storage device through internet small computer system interface (iSCSI)
CN103037031A (en) Internet protocol (IP) address administration method of internet small computer system interface (ISCSI) target device
US10623341B2 (en) Configuration of a set of queues for multi-protocol operations in a target driver
CN103019847A (en) Method and system for migrating data of virtual machine
US10673801B2 (en) Dynamic communication session management
CN113411363A (en) Uploading method of image file, related equipment and computer storage medium
CN107666401A (en) A kind of configuration information obtaining method and terminal
US10798159B2 (en) Methods for managing workload throughput in a storage system and devices thereof
US20090216886A1 (en) Method of multi-path accessing remote logic device under linux system
CN102118389B (en) Method for accessing storage device through internet small computer system interface (iSCSI) in multipath manner and storage device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: SHENZHEN ANYUN INFORMATION TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: COOL CLOUDZ INFORMATION TECHNOLOGY (TIANJIN) CO., LTD.

Effective date: 20150619

Free format text: FORMER OWNER: SHENZHEN ANYUN INFORMATION TECHNOLOGY CO., LTD.

Effective date: 20150619

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20150619

Address after: 518057 Guangdong city of Shenzhen province Nanshan District Hing Road two No. 6 Shenzhen building B403 - III University Wuhan University

Applicant after: Shenzhen Anyun Information Technology Co., Ltd.

Address before: 300350 9, Xing Xing Road, Haihe Industrial Zone, Tianjin, 8013

Applicant before: Clouds creators information technology (Tianjin) Co., Ltd.

Applicant before: Shenzhen Anyun Information Technology Co., Ltd.

C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130410