CN101500005A - 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 PDF

Info

Publication number
CN101500005A
CN101500005A CNA2008100575573A CN200810057557A CN101500005A CN 101500005 A CN101500005 A CN 101500005A CN A2008100575573 A CNA2008100575573 A CN A2008100575573A CN 200810057557 A CN200810057557 A CN 200810057557A CN 101500005 A CN101500005 A CN 101500005A
Authority
CN
China
Prior art keywords
server
group
client
equipment
network
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.)
Granted
Application number
CNA2008100575573A
Other languages
Chinese (zh)
Other versions
CN101500005B (en
Inventor
邹志军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING ODYSYS TECHNOLOGY Inc
Original Assignee
BEIJING ODYSYS TECHNOLOGY Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING ODYSYS TECHNOLOGY Inc filed Critical BEIJING ODYSYS TECHNOLOGY Inc
Priority to CN2008100575573A priority Critical patent/CN101500005B/en
Publication of CN101500005A publication Critical patent/CN101500005A/en
Application granted granted Critical
Publication of CN101500005B publication Critical patent/CN101500005B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

A kind of method based on the equipment on the iSCSI protocol access server
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 (SmallComputer 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 equipment on the access server, at first need to 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 by 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 by 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, and client can only be known the equipment of main IP (MasterIP) address of server on can access server when setting.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 invention provides a kind of method, this method uses the IP group mode to visit equipment on the server, comprising following steps:
With the all-network ports-settings that can visit a certain equipment on the server is an IP group;
Give each IP group definition a main IP;
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 by the member IP address of server appointment, and the network port less with described 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 described 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, described server is many, is same IP group with the all-network ports-settings that can visit a certain equipment on the described multiple servers.
Further, obtain main IP between the described multiple servers in turn.
Further, it is as follows to obtain the method for main IP between the described multiple servers in turn:
The server that does not dispose main IP sends arp (address resolution protocol) broadcasting, and whether inquiry has other server to be configured main IP;
If any, then inquire about again behind the certain hour at interval; If no, then oneself is 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 sends arp broadcasting again after waiting for time of one section random-length.
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 iSNS 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 example of the present invention.
Embodiment
In order to make those skilled in the art can further understand feature of the present invention and technology contents, see also following about detailed description of the present invention and accompanying drawing, accompanying drawing only provide with reference to and explanation, be not to be used for limiting the present invention.
Below in conjunction with accompanying drawing, embodiments of the present invention are described.
As shown in Figure 1, in a network, can set up client visit between a certain equipment to the server by following steps and connect based on the iSCSI host-host protocol:
Step 101, be IP group with the all-network ports-settings that can visit a certain equipment on the server;
Step 102, give each IP group definition a primary ip address;
Step 103, respectively dispose a member IP address to all addressable network ports of server;
Step 104, client use primary ip address to propose the request of a certain equipment of visit to server;
Step 105, server are selected the member IP of the less network port of load as client ip address;
Step 106, client are by the member IP address of server appointment, and the network port less with described load connects, and visits this equipment.
As shown in Figure 2, server can be the selected addressable IP address of client by following steps:
Step 201, client use primary ip address to log on server, and specify the device id that will visit;
Step 202, server find the pairing IP group of this equipment according to client appointed equipment ID;
Step 203, server are selected the IP of the member IP address of the less port of load as client, and send the Redirect response to client;
After step 204, client are subjected to Redirect response that server sends, be connected to the network port of appointment according to described member IP address.
Figure 3 shows that the network structure that adopts example of the present invention.As shown in Figure 3, have four clients and two servers (Target) in network, each server has four network interfaces, and server 1 to the IP address of server 4 is respectively 10.10.1.5-8.The IP address of 4 network interfaces of server 1 is respectively 10.10.1.201-204.The IP address of 4 network interfaces of server 2 is respectively 10.10.1.205-208.
Can access means ID (Targetname) be the equipment of iqn.2005-07.cn.com.odysys.iscsi:1024 all on server 1 and the server 2.
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 (MasterIP), for: 10.10.1.200.The member IP (memberIP) of all-network port 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.
MasterIP is obtained by server 1 and server 2 competitions, supposes that server 1 at first obtains MasterIP, supposes that simultaneously this IP is positioned at first network interface, i.e. 10.10.1.201 place network interface.
All server ips of setting on Initiator1 to Initiator4 are 10.10.1.200, that is MasterIP.
Initiator1 connects 10.10.1.200, and transmission visit device id is 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, like this, initiator1 will be connected on the 10.10.1.201 automatically.
Afterwards, when Initiator2 connects, by 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 IP10.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 initiator3 recovers to connect on 10.10.1.203.
Suppose server 1 power down in service again, this moment, MasterIP10.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.
By above-mentioned execution mode as seen, adopt this method can well realize load balancing and high available.
In embodiment shown in Figure 3, as can be seen, 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.
Can also specify at least one IPGroup as acquiescence IP group in said method, 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 (MasterIP).
The above only is embodiments 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 (10)

1. method based on the equipment on the iSCSI protocol access server may further comprise the steps:
Step 1: with the all-network ports-settings that can visit a certain equipment on the server is an IP group;
Step 2: give each IP group definition a primary ip address;
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 by the member IP address of server appointment, and the network port less with described 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. a kind of method as claimed in claim 1 or 2 is characterized in that, described 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 described 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. a kind of method as claimed in claim 3 is characterized in that described server is many, is same IP group with the all-network ports-settings that can visit a certain equipment on the described multiple servers.
5. a kind of method as claimed in claim 1 or 2 is characterized in that described server is many, is same IP group with the all-network ports-settings that can visit a certain equipment on the described multiple servers.
6. a kind of method as claimed in claim 5 is characterized in that, obtains main IP between the described multiple servers in turn.
7. a kind of method as claimed in claim 6 is characterized in that, the method that obtains member IP between the described multiple servers in turn is as follows:
The server that does not dispose main IP sends arp broadcasting, and whether inquiry has other server to be configured main IP;
If any, then inquire about again behind the certain hour at interval; If no, then oneself is 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 sends arp broadcasting again after waiting for time of one section random-length.
8. a kind of method as claimed in claim 1 or 2 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.
9. 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 described 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.
10. a kind of method as claimed in claim 1 or 2 is characterized in that, described client uses the visit name service on the iSNS server, visits described primary ip address.
CN2008100575573A 2008-02-03 2008-02-03 Method for access to equipment on server based on iSCSI protocol Expired - Fee Related CN101500005B (en)

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 true CN101500005A (en) 2009-08-05
CN101500005B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118389A (en) * 2010-12-28 2011-07-06 深圳市创新科信息技术有限公司 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
CN108390953A (en) * 2018-03-23 2018-08-10 新华三技术有限公司 A kind of server discovery method and device
CN109474700A (en) * 2018-12-18 2019-03-15 创新科存储技术有限公司 Cut-in method, storage medium, client and the memory node of iSCSI client

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1158615C (en) * 2001-09-06 2004-07-21 华为技术有限公司 Load balancing method and equipment for convective medium server
CN1968166A (en) * 2005-11-18 2007-05-23 联通新时讯通信有限公司 Network structure-based intelligent terminal application system
CN100435530C (en) * 2006-04-30 2008-11-19 西安交通大学 Method for realizing two-way load equalizing mechanism in multiple machine servicer system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118389A (en) * 2010-12-28 2011-07-06 深圳市创新科信息技术有限公司 Method for accessing storage device through internet small computer system interface (iSCSI) in multipath manner and storage device
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
CN108390953A (en) * 2018-03-23 2018-08-10 新华三技术有限公司 A kind of server discovery method and device
CN108390953B (en) * 2018-03-23 2021-02-26 新华三技术有限公司 Server discovery method and device
CN109474700A (en) * 2018-12-18 2019-03-15 创新科存储技术有限公司 Cut-in method, storage medium, client and the memory node of iSCSI client
CN109474700B (en) * 2018-12-18 2021-09-24 创新科技术有限公司 Access method of iSCSI client, storage medium, client and storage node

Also Published As

Publication number Publication date
CN101500005B (en) 2012-07-18

Similar Documents

Publication Publication Date Title
JP3980596B2 (en) Method and system for remotely and dynamically configuring a server
US9379997B1 (en) Service request management
CA2699314C (en) Failover in a host concurrently supporting multiple virtual ip addresses across multiple adapters
CN102385582B (en) Production test data processing method, server and system
JP5381998B2 (en) Cluster control system, cluster control method, and program
US8892689B1 (en) Method and apparatus for a storage server to automatically discover and join a network storage cluster
CN101179527B (en) Method and apparatus for determining state of a second device using a first device
US8543692B2 (en) Network system
US20070260721A1 (en) Physical server discovery and correlation
US9043492B2 (en) Method to publish remote management services over link local network for zero-touch discovery, provisioning and management
CN101355591A (en) P2P network and scheduling method thereof
EP3331247A1 (en) Multi-screen control method and device
CN101500005B (en) Method for access to equipment on server based on iSCSI protocol
CN103873826A (en) Media stream sending control method and device
EP2656591B1 (en) DNS proxy service for multi-core platforms
CN103095722A (en) Method for updating network security table and network device and dynamic host configuration protocol (DHCP) server
CN101197779B (en) Method, device and system for improving address analysis protocol proxy package efficiency
CN105262839A (en) Remote logging method for specified terminal in mode of load balancing
CN113242299A (en) Disaster recovery system, method, computer device and medium for multiple data centers
JP4683345B2 (en) Network load balancing apparatus, network load balancing method, and program
CN111427703A (en) Industrial data real-time display method and system
US20080301305A1 (en) Method and related system for building up a network connection between clients and servers through a stream fork by utilizing http protocol
WO2009012992A3 (en) Requester-aware domain name system
CN101170544A (en) A communication method in high-availability cluster system based on single practical IP address
CN107508760B (en) Method for load distribution based on line source IP

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