CN101500005B - Method for access to equipment on server based on iSCSI protocol - Google Patents
Method for access to equipment on server based on iSCSI protocol Download PDFInfo
- Publication number
- CN101500005B CN101500005B CN2008100575573A CN200810057557A CN101500005B CN 101500005 B CN101500005 B CN 101500005B CN 2008100575573 A CN2008100575573 A CN 2008100575573A CN 200810057557 A CN200810057557 A CN 200810057557A CN 101500005 B CN101500005 B CN 101500005B
- Authority
- CN
- China
- Prior art keywords
- server
- group
- client
- equipment
- address
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 239000003999 initiator Substances 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 239000012467 final product Substances 0.000 description 2
- 238000000151 deposition Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention relates to a method for accessing equipment on a server based on an iSCSI protocol, wherein, first all network ports on the server capable of accessing certain equipment are set as an IP group, then a host IP address is defined for each IP group; then a request for accessing certain equipment is provided by a client terminal by using the host IP address to the server; and the network port with smaller load is chosen by the server based on loading condition of each network port in the IP group where the equipment is positioned to set up connection with the client terminal. The adoption of the method can realize load balance and high usability.
Description
Technical field
The present invention relates to a kind of method based on the equipment on the iSCSI protocol access server.
Background technology
ISCSI (Internet Small Computer Systems Interface); Be internet SCSI (Small Computer System Interface; Small computer system interface), be a kind of on the Internet protocol network, the standard of the enterprising line data piece of Ethernet transmission particularly.This transmission occurs between client (Initiator) and the server (Target).
As server; Usually possess a plurality of network interfaces at present, each interface can dispose corresponding IP usually, when client needs the equipment on the access server; At first need be established to the wherein connection of certain IP, and inform the device id (TargetName) of this server preparation visit.If server is more, the distribution of the IP that client is used will become the obstacle of management, and in case run into situation such as network failure, when causing this IP inaccessible, client also will be interrupted the visit of server.
Also depositing the method that visits the equipment on the server through the name service (iSCSI NameService, iSCSI name service) on the iSNS server a kind of in the prior art.If client can be supported the iSNS agreement; And exist on the network under the situation of iSNS server; Can obtain the corresponding relation of device id through the name service on the visit iSNS server so to IP; Like this, client only need know that the address of iSNS server and the device id that will visit get final product.But this method needs to have the iSNS server on the network, and needs client to support this agreement.
Summary of the invention
Given this, this patent proposes a kind of method, and purpose is to make client can not need other agreement support, can only know when client is set that main IP (Master IP) address of server gets final product the equipment on the access server.And server can be selected the less network port of load and connect according to the loading condition of each network port in the IP group (IPGroup) at this equipment place.At last, when certain network interface of server lost efficacy, this method client that connects on the network interface that can also realize losing efficacy reconnected on other available network interface automatically.
For achieving the above object, the present invention provides a kind of method, and this method uses the IP group mode to visit the equipment on the server, and said server is many, and said method comprises the steps:
With the all-network ports-settings that can visit a certain equipment on the said multiple servers is same IP group;
Give each IP group definition a main IP; Obtain primary ip address in turn between the multiple servers in said each IP group group; The method that obtains primary ip address between the multiple servers in said each IP group group in turn is: the server that does not dispose main IP sends arp broadcasting, and whether inquiry has other server to dispose main IP; If any, then inquire about again behind the certain hour at interval; If no, then with oneself being configured to main IP; This server reexamines whether repeated configuration is arranged on the network then; If there is not repeated configuration on the network, then this server finally is configured to main IP with oneself; If repeated configuration is arranged on the network, then this server is the configuration of the main IP of oneself cancellation, and the arp broadcasting of redispatching after waiting for time of one section random-length;
Respectively dispose a member IP (MemberIP) for all addressable network ports of above-mentioned server;
Client uses main IP to propose the request of a certain equipment of visit to server;
Server is selected the IP address of the less member IP of load as the actual use of client according to the loading condition of each network port in the IP group at this equipment place;
Client is through the member IP address of server appointment, and the network port less with said load connects, and visits this equipment.
Further, when the network port connection failure at a certain member IP place, client reconnects primary ip address automatically, and client obtains another available member IP address and connects.
Further, client uses following steps to be implemented to the connection of the network port of appointment:
Client uses primary ip address to land (Login) to server, and specifies the device id that will visit;
Server finds the pairing IP group of this equipment according to client appointed equipment ID;
Server is selected the IP address of the member IP of the less port of load as the actual use of client, and is sent redirect response (Redirect) to client according to the loading condition of each network port in the said IP group;
After client is received the redirect response that server sends, be connected to the network port of appointment according to described member IP address.
Further, specify at least one IP group as acquiescence IP group in this method, when the device id that will visit when client did not dispose corresponding IP group, the IP group of then using acquiescence was as its corresponding IP group.
Further, the client described in this method is used the visit name service on the i SNS server, visits server.
Description of drawings
Fig. 1 is a general flow chart of the present invention.
Fig. 2 is the flow chart of the selected addressable IP address of client for server among the present invention.
Fig. 3 is the network structure of an instantiation of the present invention.
Embodiment
In order to make those skilled in the art can further understand characteristic of the present invention and technology contents, see also followingly about detailed description of the present invention and accompanying drawing, accompanying drawing only provides reference and explanation, is not to be used for limiting the present invention.
Below in conjunction with accompanying drawing, execution mode of the present invention is described.
As shown in Figure 1, in a network, can set up client visit between a certain equipment to the server through following steps and connect based on the iSCSI host-host protocol, wherein, said server is many:
As shown in Figure 2, server can be the selected addressable IP address of client through following steps:
After step 204, client receive the Redirect response that server sends, be connected to the network port of appointment according to described member IP address.
Shown in Figure 3 for adopting the network structure of an instantiation of the present invention.As shown in Figure 3, in network, have four clients and two servers (Target), each server has four network interfaces, and the I P address of server 1 to server 4 is respectively 10.10.1.5-8.The I P address of 4 network interfaces of server 1 is respectively 10.10.1.201-204.The I P address of 4 network interfaces of server 2 is respectively 10.10.1.205-208.
On server 1 and the server 2 can access means I D (Targetname) be the equipment of iqn.2005-07.cn.com.odysys.iscsi:1024 all.
With the all-network ports-settings on server 1 and the server 2 is an IP group (IPGroup), gives this IP group definition main IP (Master IP), for: 10.10.1.200.The member IP of all-network port (member IP) is followed successively by (IP of two servers is staggered to add):
10.10.1.201,10.10.1.205,10.10.1.202,10.10.1.206,10.10.1.203,10.10.1.207,10.10.1.204,10.10.1.208。Promptly eight of two servers network interfaces all can be visited iqn.2005-07.cn.com.odysys.iscsi:1024 equipment.
2 competitions obtain MasterIP with server by server 1, suppose that server 1 at first obtains Master IP, suppose that simultaneously this IP is positioned at first network interface, i.e. 10.10.1.201 place network interface.
All server ips of on Initiatorl to Initiator4, setting are 10.10.1.200, that is Master IP.
Initiator1 connects 10.10.1.200, and send to visit device id be the connection request of iqn.2005-07.cn.com.odysys.iscsi:1024, because 10.10.1.200 is on server 1; Therefore server 1 is accepted this connection request; And according to the configuration of IPGroup, find 10.10.1.201 and can be used for this connection, so server 1 sends the Redirect message to initiator1; Tell initiator1; This device id has been transferred to 10.10.1.201, and like this, initiator1 will be connected on the 10.10.1.201 automatically.
Afterwards, when Initiator2 connects, through same step; Server 1 is found the existing connection of 10.10.1.201; According to the algorithm of load balancing, server 1 can select next MemberIP:10.101.1.205 as response, so Initiator2 reconnects on the 10.10.1.205 automatically.
Same reason, initiator3 can be connected to 10.10.1.202, and initiator4 can be connected to 10.10.1.206.
In service, suppose that the 10.10.1.202 netting twine of server 1 is pulled out, so the connection of initiator3 is interrupted.Initiator3 can ask the connection of main IP 10.10.1.200, and server can distribute 10.10.1.203 to be connected to initiator3 with situation with network interface according to load balancing 1 this moment.So initiator 3 recovers to connect on 10.10.1.203.
Suppose server 1 power down in service again, this moment, Master IP10.10.1.200 was taken in server 2 meetings, supposed the network interface at the 10.10.1.205 place.Initiator1 and initiator3 can attempt reconnecting 10.10.1.200; Server 2 can be used situation according to IPGroup configuration and load balancing and network interface again; Distribute 10.10.1.207 and 10.10.1.208 to give this two Initiator, thereby finally make being connected on the server 2 of Initiator1, Initiator3 recover.
Visible through above-mentioned execution mode, adopt this method can well realize that load balancing is with high available.
In embodiment shown in Figure 3, can find out, when described server is many, can also be same IPGroup with the all-network ports-settings that can visit a certain equipment on the multiple servers.
In said method, can also specify at least one IPGroup as acquiescence IP group, when the device id that will visit when client did not dispose corresponding IPGroup, the IPGroup that then uses acquiescence was as its corresponding IP group.
In addition, described client can also be used the visit name service on iSNS (the iSCSI Name Service) server, visits primary ip address (Master IP).
The above is merely execution mode of the present invention; Be not so promptly limit claim of the present invention; The equivalent transformation that every utilization specification of the present invention and accompanying drawing content are done directly or indirectly is used in other relevant technical field, all in like manner is included in the claim of the present invention.
Claims (6)
1. the method based on the equipment on the iSCSI protocol access server is characterized in that said server is many, and this method may further comprise the steps:
Step 1: with the all-network ports-settings that can visit a certain equipment on the said multiple servers is same IP group;
Step 2: give each IP group definition a primary ip address; Obtain primary ip address in turn between the multiple servers in said each IP group group; The method that obtains primary ip address between the multiple servers in said each IP group group in turn is: the server that does not dispose main IP sends arp broadcasting, and whether inquiry has other server to dispose main IP; If any, then inquire about again behind the certain hour at interval; If no, then with oneself being configured to main IP; This server reexamines whether repeated configuration is arranged on the network then; If there is not repeated configuration on the network, then this server finally is configured to main IP with oneself; If repeated configuration is arranged on the network, then this server is the configuration of the main IP of oneself cancellation, and the arp broadcasting of redispatching after waiting for time of one section random-length;
Step 3: respectively dispose a member IP to all addressable network ports on the above-mentioned server;
Step 4: client uses primary ip address to propose the request of a certain equipment of visit to server;
Step 5: server is selected the IP address of the member IP of the less network port of load as the actual use of client according to the loading condition of each network port in the IP group at this equipment place;
Step 6: client is through the member IP address of server appointment, and the network port less with said load connects, and visits this equipment.
2. a kind of method as claimed in claim 1 is characterized in that, when the network port connection failure at a certain member IP place, client reconnects main IP automatically; Repeating step 5 obtains available member IP up to client and connects to step 6 then.
3. according to claim 1 or claim 2 a kind of method is characterized in that said step 5 further may further comprise the steps:
Step a: client uses main IP to log on server, and specifies the device id that will visit;
Step b: server finds the pairing IP group of this equipment according to client appointed equipment ID;
Step c: server is selected the IP address of the member IP of the less port of load as the actual use of client, and is sent the Redirect response to client according to the loading condition of each network port in the said IP group;
Steps d: after client is received the Redirect response that server sends, be connected to the network port of appointment according to described member IP.
4. according to claim 1 or claim 2 a kind of method is characterized in that, specifies at least one IP group as acquiescence IP group, and when the device id that will visit when client did not dispose corresponding IP group, the IP group of then using acquiescence was as its corresponding IP group.
5. a kind of method as claimed in claim 3 is characterized in that, specifies at least one IP group as acquiescence IP group;
Further comprise among the said step b:, then use the IP group of acquiescence if when server does not find the pairing IP of this equipment group according to client appointed equipment ID.
6. according to claim 1 or claim 2 a kind of method is characterized in that described client uses the visit name service on the iSNS server, visits described primary ip address.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008100575573A CN101500005B (en) | 2008-02-03 | 2008-02-03 | Method for access to equipment on server based on iSCSI protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008100575573A CN101500005B (en) | 2008-02-03 | 2008-02-03 | Method for access to equipment on server based on iSCSI protocol |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101500005A CN101500005A (en) | 2009-08-05 |
CN101500005B true CN101500005B (en) | 2012-07-18 |
Family
ID=40946886
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008100575573A Expired - Fee Related CN101500005B (en) | 2008-02-03 | 2008-02-03 | Method for access to equipment on server based on iSCSI protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101500005B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102118389B (en) * | 2010-12-28 | 2014-01-22 | 深圳市安云信息科技有限公司 | Method for accessing storage device through internet small computer system interface (iSCSI) in multipath manner and storage device |
CN106412039A (en) * | 2016-09-19 | 2017-02-15 | 郑州云海信息技术有限公司 | Distributed storage network integration method and system |
CN108390953B (en) * | 2018-03-23 | 2021-02-26 | 新华三技术有限公司 | Server discovery method and device |
CN109474700B (en) * | 2018-12-18 | 2021-09-24 | 创新科技术有限公司 | Access method of iSCSI client, storage medium, client and storage node |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1403934A (en) * | 2001-09-06 | 2003-03-19 | 华为技术有限公司 | Load balancing method and equipment for convective medium server |
CN1859313A (en) * | 2006-04-30 | 2006-11-08 | 西安交通大学 | Method for realizing two-way load equalizing mechanism in multiple machine servicer system |
CN1968166A (en) * | 2005-11-18 | 2007-05-23 | 联通新时讯通信有限公司 | Network structure-based intelligent terminal application system |
-
2008
- 2008-02-03 CN CN2008100575573A patent/CN101500005B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1403934A (en) * | 2001-09-06 | 2003-03-19 | 华为技术有限公司 | Load balancing method and equipment for convective medium server |
CN1968166A (en) * | 2005-11-18 | 2007-05-23 | 联通新时讯通信有限公司 | Network structure-based intelligent terminal application system |
CN1859313A (en) * | 2006-04-30 | 2006-11-08 | 西安交通大学 | Method for realizing two-way load equalizing mechanism in multiple machine servicer system |
Also Published As
Publication number | Publication date |
---|---|
CN101500005A (en) | 2009-08-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100389392C (en) | Method for realizing load uniform in clustering system, system and storage controller | |
JP3980596B2 (en) | Method and system for remotely and dynamically configuring a server | |
US6249814B1 (en) | Method and apparatus for identifying devices on a network | |
CN101557417B (en) | Method and apparatus for HBA migration | |
US8892689B1 (en) | Method and apparatus for a storage server to automatically discover and join a network storage cluster | |
JP5381998B2 (en) | Cluster control system, cluster control method, and program | |
CN101179527B (en) | Method and apparatus for determining state of a second device using a first device | |
US20070260721A1 (en) | Physical server discovery and correlation | |
CN101795222B (en) | Multi-stage forward service system and method | |
US11489921B2 (en) | Kickstart discovery controller connection command | |
US20070083725A1 (en) | Software agent-based architecture for data relocation | |
KR101480126B1 (en) | Network based high performance sap monitoring system and method | |
EP3331247A1 (en) | Multi-screen control method and device | |
CN101500005B (en) | Method for access to equipment on server based on iSCSI protocol | |
US20210289027A1 (en) | Implicit discovery controller registration of non-volatile memory express (nvme) elements in an nvme-over-fabrics (nvme-of) system | |
CN103095722A (en) | Method for updating network security table and network device and dynamic host configuration protocol (DHCP) server | |
CN103262502B (en) | The DNS proxy service of multi-core platform | |
CN113242299A (en) | Disaster recovery system, method, computer device and medium for multiple data centers | |
CN103858383A (en) | Authentication sharing in a firewall cluster | |
CN105262839A (en) | Remote logging method for specified terminal in mode of load balancing | |
JP2012242994A (en) | Transaction processing system, transaction processing method and transaction processing program | |
WO2016202016A1 (en) | Device management method, apparatus and system | |
JP4683345B2 (en) | Network load balancing apparatus, network load balancing method, and program | |
CN106254103B (en) | A kind of dynamically configurable method and device of RTMP group system | |
US8972535B2 (en) | Automatic configuration of computers in a network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20120718 Termination date: 20130203 |