CN104009873A - Processing method and device for iSCSI - Google Patents

Processing method and device for iSCSI Download PDF

Info

Publication number
CN104009873A
CN104009873A CN201410258950.4A CN201410258950A CN104009873A CN 104009873 A CN104009873 A CN 104009873A CN 201410258950 A CN201410258950 A CN 201410258950A CN 104009873 A CN104009873 A CN 104009873A
Authority
CN
China
Prior art keywords
link
object machine
iscsi
business
communicated
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
CN201410258950.4A
Other languages
Chinese (zh)
Inventor
夏冰心
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410258950.4A priority Critical patent/CN104009873A/en
Publication of CN104009873A publication Critical patent/CN104009873A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the invention provides a processing method and device for an iSCSI. The processing method for the iSCSI includes the steps that when an iSCSI service interrupts, the link status between a starter and a target is scanned and detected by the starter, and port information of a link communicated with the target is obtained by the starter; according to the obtained port information, the iSCSI service is switched to the link communicated with the target; the iSCSI service is executed through the link communicated with the target. According to the processing method, the available link can be automatically selected when the iSCSI service interrupts. In this way, the problems that in the prior art, with regard to the method for improving the reliability of the iSCSI service through a redundant link, the redundant link needs to be pre-established manually, and system resources need to be pre-distributed are solved, and the system resources needing to be consumed for operation of the iSCSI service are reduced.

Description

The processing method of network small computer system interface and device
Technical field
The embodiment of the present invention relates to Network storage technology, and (Internet Small Computer System Interface, referred to as processing method iSCSI) and device to relate in particular to a kind of network small computer system interface.
Background technology
ISCSI can be used for developing and managing (the Internet Protocol of net association, referred to as: the IP) interconnection between memory device, client and server, because iscsi technology can provide network environment fast, and saving entreprise cost, therefore, iSCSI agreement is widely used in several scenes.
The major function of iSCSI is at transmission control protocol (Transmission Control Protocol, referred to as: the client in TCP)/IP network (is starter, initiator) and memory device (be object machine, carry out encapsulation and the transmitting process of mass data between target); At present, in order to reduce the iSCSI causing because of network failure, connect the risk that disconnection causes service disconnection, conventionally in iSCSI connects, increase redundant link and improve service reliability; For instance, client comprises starter A and starter B, can with memory device, be between object machine A and object machine B, to set up many iSCSI links to move iSCSI business, many iSCSI links are redundancy each other, when a link occurs fault wherein, business can continue to carry out by other redundant link.
But the redundant link in existing iscsi technology is manually to set up in advance, relevant system resource is also allocated in advance, has increased the system resource that operation iSCSI service needed consumes.
Summary of the invention
The embodiment of the present invention provides a kind of processing method and device of network small computer system interface, to solve the mode that improves iSCSI service reliability in prior art by redundant link, needs manually be set up redundant link in advance, and allocate the problem of system resource in advance.
First aspect, the embodiment of the present invention provides a kind of processing method of network small computer system interface, comprising:
When network small computer system interface iSCSI service disconnection, starter scans the Link State between detection and object machine, obtains the port information of the link being communicated with described object machine;
According to the described port information obtaining, described iSCSI business is switched on the link being communicated with described object machine;
By the link being communicated with described object machine, carry out described iSCSI business.
In the possible implementation of the first of first aspect, in described starter, configure connect hours threshold value; Link State between described starter scanning detection and object machine, before obtaining the port information of the link being communicated with described object machine, also comprises:
When described iSCSI service disconnection, described starter reconnects described iSCSI business by current link;
Described starter scans the Link State between detection and object machine, obtains the port information of the link being communicated with described object machine, comprising:
The connect hours that reconnects described iSCSI business by described current link at described starter is greater than described connect hours during threshold value, described starter scans the Link State between detection and object machine, obtains the port information of the link being communicated with described object machine.
In the possible implementation of the second of first aspect, in described starter, also configure object machine port list; Described starter scans the Link State between detection and object machine, obtains the port information of the link being communicated with described object machine, comprising:
Described starter, according to the Link State between described object machine port list scanning detection and described object machine, obtains the port information of the link being communicated with described object machine.
According in the first of first aspect, first aspect and the possible implementation of the second any one, in the third possible implementation, described when network small computer system interface iSCSI service disconnection, Link State between starter scanning detection and object machine, before obtaining the port information of the link being communicated with described object machine, also comprise:
Described starter creates described iSCSI business by described object machine is initiated to iSCSI agreement.
According to the third possible implementation of first aspect, in the 4th kind of possible implementation, described by the described link having switched, carry out described iSCSI business after, also comprise:
Shown in the link information that is communicated with described object machine of starter record and the port information of described link.
Second aspect, the embodiment of the present invention provides a kind of processing unit of network small computer system interface, comprising:
Scan module, for when the network small computer system interface iSCSI service disconnection, scanning detect and object machine between Link State, obtain the port information of the link being communicated with described object machine;
Handover module, for the port information obtaining according to described scan module, is switched to described iSCSI business on the link being communicated with described object machine;
Executive Module, carries out described iSCSI business for the link being communicated with described object machine after switching by described handover module.
In the possible implementation of the first of second aspect, in described device, configure connect hours threshold value; Described device also comprises:
Link block, the Link State between scan module scanning detection and object machine, before obtaining the port information of the link being communicated with described object machine, reconnects described iSCSI business by current link;
Described scan module, be greater than described connect hours during threshold value specifically for the connect hours that reconnects described iSCSI business by described current link in described link block, scan the Link State between detection and object machine, obtain the port information of the link being communicated with described object machine.
In the possible implementation of the second of second aspect, in described device, also configure object machine port list; Correspondingly,
Described scan module, specifically for according to the Link State between described object machine port list scanning detection and described object machine, obtains the port information of the link being communicated with described object machine.
According in the first of second aspect, second aspect and the possible implementation of the second any one, in the third possible implementation, described device also comprises:
Business is set up module, for the Link State between described scan module scanning detection and object machine, before obtaining the port information of the link being communicated with described object machine, or before described link block reconnects described iSCSI business by described current link, by being initiated to iSCSI agreement, described object machine creates described iSCSI business.
According to the third possible implementation of second aspect, in the 4th kind of possible implementation, described device also comprises:
Memory module, after carrying out described iSCSI business for the link being communicated with described object machine after described Executive Module is by described switching, the link information that record is communicated with described object machine and the port information of described link.
Processing method and the device of the network small computer system interface that the embodiment of the present invention provides, when iSCSI service disconnection, starter by scanning, detect and object machine between Link State, obtain the port information of the link being communicated with described object machine, and iSCSI business is switched on the link being communicated with object machine to carry out this iSCSI business, having realized starter causes after iSCSI service disconnection at physics or network link failure, can automatically select available link to recover this iSCSI business, solved and in prior art, by redundant link, improved the mode of iSCSI service reliability, needs manually be set up redundant link in advance, and allocate the problem of system resource in advance, reduced the system resource that operation iSCSI service needed consumes.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The flow chart of the processing method of a kind of iSCSI that Fig. 1 provides for the embodiment of the present invention one;
A kind of schematic diagram of network link in the iSCSI that Fig. 2 provides for prior art;
The schematic diagram of another kind of network link in the iSCSI that Fig. 3 provides for prior art;
The schematic diagram of another network link in the iSCSI that Fig. 4 provides for prior art;
A kind of schematic diagram of network link in the iSCSI that Fig. 5 provides for the present invention is embodiment illustrated in fig. 1;
The flow chart of the processing method of a kind of iSCSI that Fig. 6 provides for the embodiment of the present invention two;
The structural representation of the processing unit of a kind of iSCSI that Fig. 7 provides for the embodiment of the present invention three;
The structural representation of the processing unit of a kind of iSCSI that Fig. 8 provides for the embodiment of the present invention four;
The structural representation of a kind of terminal equipment that Fig. 9 provides for the embodiment of the present invention five;
The structural representation of the another kind of terminal equipment that Figure 10 provides for the embodiment of the present invention.
Embodiment
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment mono-
The flow chart of the processing method of a kind of iSCSI that Fig. 1 provides for the embodiment of the present invention one.The method that the present embodiment provides is applicable to the situation about reconnecting of the iSCSI business to having interrupted.The method can be carried out by the processing unit of iSCSI, and the processing unit of this iSCSI is realized with the method for hardware and/or software conventionally, can be integrated in the memory of terminal equipment, for example, be integrated in processor chips, for processor, calls execution.The method of the present embodiment comprises the steps:
S110, when iSCSI service disconnection, starter scans the Link State between detection and object machine, obtains the port information of the link being communicated with this object machine.
Iscsi technology is as a kind of storing technology, existing scsi interface can be combined with Ethernet (Ethernet) technology, between server, client and IP memory device, create storage area network (Storage Area Network and SAN Protocols, referred to as: SAN), make server intercourse data with using the storage facilities of IP network.A kind of schematic diagram of network link in the iSCSI that Fig. 2 provides for prior art, the schematic diagram of another kind of network link in the iSCSI that Fig. 3 provides for prior art, the schematic diagram of another network link in the iSCSI that Fig. 4 provides for prior art, the storing process of iSCSI business is specially: server (not shown) by data distributing to main array 10, it is client, thereby starter 11 and starter 12 by main array 10 copy to remote data in memory device, from object machine 21 and the object machine 22 of array 20; As shown in Figure 2 to 4, show respectively the link structure between three kinds of starters and object machine, the starter 11 in Fig. 2 can copy data in object machine 21, and starter 12 can copy data in object machine 22, and these two links are redundant link each other; In Fig. 3, starter 11 can copy to data respectively in object machine 21 and object machine 22, and starter 12 also can copy to data respectively in object machine 21 and object machine 22, and these four links are redundant link each other; In Fig. 4, also there are four links, starter 11 copies data in object machine 21, starter 12 copies data in object machine 22, object machine 22 can obtain the data that starter 11 copies by object machine 21, equally, object machine 21 can obtain the data that starter 12 copies by object machine 22; In prior art, by redundant link, move the mode of iSCSI business, link between above-mentioned starter and object machine is set up in advance, and relevant system resource is also pre-assigned, system resource and human cost that operation iSCSI service needed consumes have been increased.
It should be noted that, the starter in the processing method of the iSCSI that the present embodiment provides and object machine can phase double replacements, and the originating end of iSCSI business is starter, and receiving terminal is object machine; In the present embodiment, take starter place array as main array, initiate iSCSI business, take object machine place array as from array.
ISCSI business in actual applications, may occur that misoperation, netting twine come off, network interface loose contact, network card chip catastrophic failure etc., therefore, because the situations such as network instability and special applications scene may cause network link failure, thereby cause iSCSI and connect disconnection, there is the phenomenon of interrupting in business, due to current iSCSI agreement regulation, the function that iSCSI originating end does not automatically complete routing and recover to connect, thereby conventionally adopt the mode of above-mentioned redundant link to prevent the interruption of iSCSI business.A kind of schematic diagram of network link in the iSCSI that Fig. 5 provides for the present invention is embodiment illustrated in fig. 1, the processing method of the iSCSI that the present embodiment provides, when iSCSI service disconnection, starter can automatic scan and detect and object machine between Link State, link between starter and object machine is physical connection normally, one of port PO RT A~PORT H of one of port PO RT 0~PORT 3 of every corresponding starter of link and object machine, normally, when carrying out store tasks, by link operation iSCSI business wherein, the link in Fig. 51 for example, other link is communicated with physically, it can be the idle link that does not move business, also can be the link that has moved business, when starter scanning detects Link State, can detect and object machine between the link of physical connection, and then obtain the port information of this link.
S120, according to the port information obtaining, is switched to this iSCSI business on the link being communicated with this object machine.
In the present embodiment, starter got with object machine between the port information of the link that is communicated with, port on the object machine that specifically this link is corresponding, for example get with object machine between the link that is communicated be Fig. 5 link 2, corresponding port is PORT B, and starter can be switched to the iSCSI business of current interruption on the link 2 that this PORT B is corresponding.It should be noted that, if the target link switching is idle link, effectively utilized link circuit resource; If the existing business of the target link after switching, the business that realized on this link is shared.
S130, carries out this iSCSI business by the link being communicated with this object machine.
In the present embodiment, after starter is switched to iSCSI business on the link being communicated with object machine, can by the link of this connection, continue to carry out above-mentioned interrupted iSCSI business, make the iSCSI business of moving when interrupting due to reasons such as netting twine disconnection or unstable networks, realized starter automatically by iSCSI business from the link switching that connects fault to making the link of the normal operation of business, guaranteed iSCSI business in have no progeny and can automatically recover, improved the reliability of iSCSI business and the serviceability of system.
It should be noted that, the quantity of the redundant link providing in prior art is normally fixing, and the place one's entire reliance upon setting of redundant link of the reliability of net group, if redundant link all breaks down, cannot continue after iSCSI service disconnection to carry out; The present embodiment is when operation iSCSI business, can move this business by a link, also can move this business by redundant link simultaneously, further improve the reliability of iSCSI business, and when service disconnection, the link of physics and network-in-dialing can detect the switching of carrying out link by the scanning to physical link, so long as can be carried out this iSCSI business; In addition, the processing method of the iSCSI that the present embodiment provides, can apply to use iSCSI to carry out the scene of network data storage under various architectures.
The processing method of the iSCSI that the present embodiment provides, when iSCSI service disconnection, starter by scanning, detect and object machine between Link State, obtain the port information of the link being communicated with described object machine, and iSCSI business is switched on the link being communicated with object machine to carry out this iSCSI business, having realized starter causes after iSCSI service disconnection at physics or network link failure, can automatically select available link to recover this iSCSI business, solved and in prior art, by redundant link, improved the mode of iSCSI service reliability, needs manually be set up redundant link in advance, and allocate the problem of system resource in advance, reduced the system resource that operation iSCSI service needed consumes, further, the method that the present embodiment provides is when carrying out link switching, so long as the link of physics and network-in-dialing can be carried out this iSCSI business, avoided preset whole faults of redundant link in prior art and cannot recover the situation of iSCSI business, having improved the reliability of iSCSI business and the serviceability of system.
Embodiment bis-
The flow chart of the processing method of a kind of iSCSI that Fig. 6 provides for the embodiment of the present invention two.As shown in Figure 6, the method for the present embodiment can comprise:
S210, when iSCSI service disconnection, starter reconnects this iSCSI business by current link, configures connect hours threshold value in this starter.
Normally, the interruption of iSCSI business, the temporary transient interruption that may be the network connection of current link causes, also be likely that physical connection disconnection causes, such as netting twine come off, network interface loose contact or network card chip fault etc., therefore, in iSCSI business, have no progeny, starter first attempts reconnecting this iSCSI business by current link; For instance, if causing the reason of service disconnection is the temporary transient disconnection of network, while reconnecting this iSCSI business, as long as connecting, network recovers can certainly be dynamically connected this iSCSI business, but, if cause the reason of service disconnection, be the disconnection of physical connection, when starter reconnects by current link, cannot recover this iSCSI business, if starter reconnects the link that can not be resumed always, can waste system resource, and flog a dead horse; Therefore, the present embodiment, by configure connect hours threshold value in starter, is stipulated the maximum time limit that this starter reconnects.
S220, the connect hours that reconnects this iSCSI business by current link at this starter is greater than the connect hours during threshold value, this starter scanning detect and object machine between Link State, obtain the port information of the link being communicated with this object machine.
In the present embodiment, the connect hours that starter is reconnected to the iSCSI business of having interrupted by current link arranges a connect hours threshold value, when the connect hours, be greater than this during threshold value connect hours, starter is abandoned by the operation of this iSCSI business of current link-recovery, and then scanning detect with object machine between other Link State of being connected, obtain the port information of the available link being all communicated with on physics and network, the schematic diagram of a kind of network link in the present invention iSCSI providing embodiment illustrated in fig. 6 is provided Fig. 5, starter and same as the previously described embodiments to the mode of the scanning of the link between object machine and detection in the present embodiment, do not repeat them here.
When specific implementation, in starter, can also dispose object machine port list; , in S220, starter, specifically according to the Link State between this object machine port list scanning detection and this object machine, obtains the port information of the link being communicated with this object machine.The network link of take shown in Fig. 5 in iSCSI is explained as example, object machine port list is PORT A~PORT H, the mode that scanning detects for example can be passed through the Internet packets survey meter (Packet Internet Groper, referred to as: PING) bag scans detection to network link, this PING bag is for checking the order of the whether unobstructed or network connection speed of network, particularly, utilize the uniqueness of each IP address of equipment in network, starter sends a packet to this object machine according to the IP address of object machine, require again the other side to return to an onesize packet and determine whether this starter is communicated with the link between object machine, until the link of connection detected.
It should be noted that, in the present embodiment, starter is for the detection of network link between object machine, normally according to port order, detect successively, as shown in Figure 5, when disconnecting, link 1 successively link 2 and link 3 are carried out to the detection of PING bag, if it is PORTB that link 2 is communicated with the port information that obtains this link 2, if link 2 is not communicated with the port information that obtains link 3, be PORT E; Further, iSCSI business recovery while being connection for link 2, if rerun by link 2 in the process of this iSCSI business, this link 2 also disconnects and causes service disconnection, starter can continue other link to scan the link that detects and obtain connection, again to recover this iSCSI business.
S230, according to the port information obtaining, is switched to this iSCSI business on the link being communicated with this object machine.
S240, carries out this iSCSI business by the link being communicated with this object machine.
Particularly, the specific implementation of S230~S240 is with reference to the S120~S130 in embodiment mono-.
In the present embodiment, the recovery to iSCSI business that starter specifically will be realized therefore, also comprised before 210: starter is by initiating iSCSI agreement to create this iSCSI business to object machine.Alternatively, starter reruns after iSCSI business at replacing link, and the link information that moves this iSCSI business changes, so can also comprise after S240: the link information that starter record is communicated with this object machine and the port information of this link.And this starter can also send to server end by the link information of above-mentioned record, so that server knows that starter is to the relevant information of object machine remote copy data, for example data copy to object machine A and/or object machine B from starter A.
Embodiment tri-
The structural representation of the processing unit of a kind of iSCSI that Fig. 7 provides for the embodiment of the present invention three.As shown in Figure 7, the processing unit of the iSCSI that the present embodiment provides, specifically comprises: scan module 11, handover module 12 and Executive Module 13.
Wherein, scan module 11, for when the iSCSI service disconnection, scanning detect and object machine between Link State, obtain the port information of the link being communicated with this object machine.
Handover module 12, for the port information obtaining according to this scan module 11, is switched to this iSCSI business on the link being communicated with object machine.
Executive Module 13, carries out this iSCSI business for the link being communicated with this object machine after switching by this handover module 12.
The processing unit of the iSCSI that the present embodiment provides is applicable to move iSCSI business, iscsi technology for creating SAN between server, client (starter) and IP memory device (object machine), this device is specially the functional module being arranged in starter, for initiating iSCSI business to object machine, make server intercourse data with using the storage facilities of IP network; Wherein, starter and object machine can phase double replacements, and the originating end of iSCSI business is starter, and receiving terminal is object machine.
It should be noted that, in prior art, by redundant link, prevent in the mode of service disconnection, the quantity of redundant link is normally fixing, the place one's entire reliance upon setting of redundant link of the reliability of net group, if redundant link all breaks down, after iSCSI service disconnection, cannot continue to carry out; The present embodiment is when operation iSCSI business, can move this business by a link, also can move this business by redundant link simultaneously, further improve the reliability of iSCSI business, and when service disconnection, the link of physics and network-in-dialing can detect the switching of carrying out link by the scanning to physical link, so long as can be carried out this iSCSI business; In addition, the processing unit of the iSCSI that the present embodiment provides, can apply to use iSCSI to carry out the scene of network data storage under various architectures.
The processing unit of the iSCSI that the embodiment of the present invention provides, for the processing method of the iSCSI that carries out the embodiment of the present invention one and provide, possesses corresponding functional module, and it realizes principle and technique effect is similar, repeats no more herein.
Embodiment tetra-
The structural representation of the processing unit of a kind of iSCSI that Fig. 8 provides for the embodiment of the present invention four.As shown in Figure 8, the device that the present embodiment provides is on the basis of Fig. 7 shown device structure, this device also comprises: link block 14, for the Link State between scan module 11 scanning detections and object machine, before obtaining the port information of the link being communicated with this object machine, by current link, reconnect this iSCSI business, owing to causing the reason of iSCSI service disconnection, it may be the interruption of the network connection of current link, also may be the disconnection of physical connection, particularly, if causing the reason of service disconnection is the temporary transient disconnection of network, when this device reconnects this iSCSI business, as long as connecting, network recovers can certainly be dynamically connected this iSCSI business, but, if causing the reason of service disconnection is the disconnection of physical connection, when this device reconnects by current link, cannot recover this iSCSI business, if reconnecting the link that can not be resumed always, this device can waste system resource, and flog a dead horse, therefore, the present embodiment, by configure connect hours threshold value in the processing unit of iSCSI, is stipulated the maximum time limit that this device reconnects, correspondingly, scan module 11 is greater than this during threshold value specifically for the connect hours that reconnects this iSCSI business by this current link in this link block 14 connect hours, scan the Link State between detection and object machine, obtain the port information of the link being communicated with this object machine.
In specific implementation, in this device, also configure object machine port list; Correspondingly, scan module 11, specifically for according to the Link State between this object machine port list scanning detection and object machine, obtains the port information of the link being communicated with this object machine.For instance, scan module 11 can be wrapped network link is scanned to detection by PING, this PING bag is for checking the order of the whether unobstructed or network connection speed of network, particularly, utilize the uniqueness of each IP address of equipment in network, this device sends a packet to this object machine according to the IP address of object machine, then requires the other side to return to an onesize packet to determine whether this starter is communicated with the link between object machine, until the link of connection detected.
The device that the present embodiment provides, the restore funcitons to iSCSI business that specifically will realize, therefore, before iSCSI service disconnection, in system, there is the iSCSI business having created, be that the device that the present embodiment provides also comprises: business is set up module 15, for the Link State between these scan module 11 scanning detections and object machine, before obtaining the port information of the link being communicated with this object machine, or before this link block 14 reconnects this iSCSI business by current link, by being initiated to iSCSI agreement, this object machine creates this iSCSI business.
Alternatively, the device that the present embodiment provides can also comprise: memory module 16, for after this Executive Module 13 is carried out this iSCSI business by the link being communicated with this object machine after switching, the link information that record is communicated with this object machine and the port information of this link.And this device can also send to server end by the link information of above-mentioned record, so that server knows that starter is to the relevant information of object machine remote copy data.
The processing unit of the iSCSI that the embodiment of the present invention provides, for the processing method of the iSCSI that carries out the embodiment of the present invention two and provide, possesses corresponding functional module, and it realizes principle and technique effect is similar, repeats no more herein.
Embodiment five
The structural representation of a kind of terminal equipment that Fig. 9 provides for the embodiment of the present invention five.As shown in Figure 9, the terminal equipment that the present embodiment provides, specifically comprises: scanner 21 and processor 22.
Wherein, scanner 21, for when the iSCSI service disconnection, scanning detect and object machine between Link State, obtain the port information of the link being communicated with this object machine.
Processor 22, for the port information obtaining according to this scanner 21, is switched to this iSCSI business on the link being communicated with object machine.
This processor 22, also for carrying out this iSCSI business by the link being communicated with this object machine after switching.
The terminal equipment that the present embodiment provides is applicable to move iSCSI business, iscsi technology for creating SAN between server, client (starter) and IP memory device (object machine), this terminal equipment is specially starter, for initiating iSCSI business to object machine, make server intercourse data with using the storage facilities of IP network; Wherein, starter and object machine can phase double replacements, and the originating end of iSCSI business is starter, and receiving terminal is object machine.
It should be noted that, in prior art, by redundant link, prevent in the mode of service disconnection, the quantity of redundant link is normally fixing, the place one's entire reliance upon setting of redundant link of the reliability of net group, if redundant link all breaks down, after iSCSI service disconnection, cannot continue to carry out; The present embodiment is when operation iSCSI business, can move this business by a link, also can move this business by redundant link simultaneously, further improve the reliability of iSCSI business, and when service disconnection, the link of physics and network-in-dialing can detect the switching of carrying out link by the scanning to physical link, so long as can be carried out this iSCSI business; In addition, the terminal equipment that the present embodiment provides, can apply to use iSCSI to carry out the scene of network data storage under various architectures.
The terminal equipment that the embodiment of the present invention provides, for the processing method of the iSCSI that carries out the embodiment of the present invention one and provide, possesses corresponding entity apparatus, and it realizes principle and technique effect is similar, repeats no more herein.
Further, in the terminal equipment that the present embodiment provides, processor 22, also for the Link State between scanner 21 scanning detections and object machine, before obtaining the port information of the link being communicated with this object machine, by current link, reconnect this iSCSI business, owing to causing the reason of iSCSI service disconnection, it may be the interruption of the network connection of current link, also may be the disconnection of physical connection, particularly, if causing the reason of service disconnection is the temporary transient disconnection of network, when this terminal equipment reconnects this iSCSI business, as long as connecting, network recovers can certainly be dynamically connected this iSCSI business, but, if causing the reason of service disconnection is the disconnection of physical connection, when this terminal equipment reconnects by current link, cannot recover this iSCSI business, if reconnecting the link that can not be resumed always, this terminal equipment can waste system resource, and flog a dead horse, therefore, the present embodiment, by configure connect hours threshold value in terminal equipment, is stipulated the maximum time limit that this terminal equipment reconnects, correspondingly, scanner 21 is greater than this during threshold value specifically for the connect hours that reconnects this iSCSI business by this current link at this processor 22 connect hours, scan the Link State between detection and object machine, obtain the port information of the link being communicated with this object machine.
In specific implementation, in this terminal equipment, also configure object machine port list; Correspondingly, processor 22, specifically for according to the Link State between this object machine port list scanning detection and object machine, obtains the port information of the link being communicated with this object machine.For instance, processor 22 can be wrapped network link is scanned to detection by PING, this PING bag is for checking the order of the whether unobstructed or network connection speed of network, particularly, utilize the uniqueness of each IP address of equipment in network, this terminal equipment sends a packet to this object machine according to the IP address of object machine, then requires the other side to return to an onesize packet to determine whether this starter is communicated with the link between object machine, until the link of connection detected.
The terminal equipment that the present embodiment provides, the restore funcitons to iSCSI business that specifically will realize, therefore, before iSCSI service disconnection, in system, there is the iSCSI business having created, be that processor 22 is also for the Link State between scanning detection and object machine, before obtaining the port information of the link being communicated with this object machine, or before reconnecting this iSCSI business by current link, by being initiated to iSCSI agreement, this object machine creates this iSCSI business.
The structural representation of the another kind of terminal equipment that alternatively, Figure 10 provides for the embodiment of the present invention.On the basis of terminal equipment shown in above-mentioned Fig. 9, the terminal equipment that the present embodiment provides can also comprise: memory 23, for after this processor 22 is carried out this iSCSI business by the link being communicated with this object machine after switching, the link information that record is communicated with this object machine and the port information of this link.And this terminal equipment can also send to server end by the link information of above-mentioned record, so that server knows that starter is to the relevant information of object machine remote copy data.
The terminal equipment that the embodiment of the present invention provides, for the processing method of the iSCSI that carries out the embodiment of the present invention two and provide, possesses corresponding entity apparatus, and it realizes principle and technique effect is similar, repeats no more herein.
One of ordinary skill in the art will appreciate that: all or part of step that realizes above-mentioned each embodiment of the method can complete by the relevant hardware of program command.Aforesaid program can be stored in a computer read/write memory medium.This program, when carrying out, is carried out the step that comprises above-mentioned each embodiment of the method; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
Finally it should be noted that: each embodiment, only in order to technical scheme of the present invention to be described, is not intended to limit above; Although the present invention is had been described in detail with reference to aforementioned each embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or some or all of technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a processing method for network small computer system interface, is characterized in that, comprising:
When network small computer system interface iSCSI service disconnection, starter scans the Link State between detection and object machine, obtains the port information of the link being communicated with described object machine;
According to the described port information obtaining, described iSCSI business is switched on the link being communicated with described object machine;
By the link being communicated with described object machine, carry out described iSCSI business.
2. method according to claim 1, is characterized in that, configures connect hours threshold value in described starter; Link State between described starter scanning detection and object machine, before obtaining the port information of the link being communicated with described object machine, also comprises:
When described iSCSI service disconnection, described starter reconnects described iSCSI business by current link;
Described starter scans the Link State between detection and object machine, obtains the port information of the link being communicated with described object machine, comprising:
The connect hours that reconnects described iSCSI business by described current link at described starter is greater than described connect hours during threshold value, described starter scans the Link State between detection and object machine, obtains the port information of the link being communicated with described object machine.
3. method according to claim 1, is characterized in that, also configures object machine port list in described starter; Described starter scans the Link State between detection and object machine, obtains the port information of the link being communicated with described object machine, comprising:
Described starter, according to the Link State between described object machine port list scanning detection and described object machine, obtains the port information of the link being communicated with described object machine.
4. according to the method described in any one in claim 1~3, it is characterized in that, described when network small computer system interface iSCSI service disconnection, the Link State between starter scanning detection and object machine, before obtaining the port information of the link being communicated with described object machine, also comprise:
Described starter creates described iSCSI business by described object machine is initiated to iSCSI agreement.
5. method according to claim 4, is characterized in that, described by the described link having switched, carry out described iSCSI business after, also comprise:
Shown in the link information that is communicated with described object machine of starter record and the port information of described link.
6. a processing unit for network small computer system interface, is characterized in that, comprising:
Scan module, for when the network small computer system interface iSCSI service disconnection, scanning detect and object machine between Link State, obtain the port information of the link being communicated with described object machine;
Handover module, for the port information obtaining according to described scan module, is switched to described iSCSI business on the link being communicated with described object machine;
Executive Module, carries out described iSCSI business for the link being communicated with described object machine after switching by described handover module.
7. device according to claim 6, is characterized in that, configures connect hours threshold value in described device; Described device also comprises:
Link block, the Link State between scan module scanning detection and object machine, before obtaining the port information of the link being communicated with described object machine, reconnects described iSCSI business by current link;
Described scan module, be greater than described connect hours during threshold value specifically for the connect hours that reconnects described iSCSI business by described current link in described link block, scan the Link State between detection and object machine, obtain the port information of the link being communicated with described object machine.
8. device according to claim 6, is characterized in that, also configures object machine port list in described device; Correspondingly,
Described scan module, specifically for according to the Link State between described object machine port list scanning detection and described object machine, obtains the port information of the link being communicated with described object machine.
9. according to the device described in any one in claim 6~8, it is characterized in that, also comprise:
Business is set up module, for the Link State between described scan module scanning detection and object machine, before obtaining the port information of the link being communicated with described object machine, or before described link block reconnects described iSCSI business by described current link, by being initiated to iSCSI agreement, described object machine creates described iSCSI business.
10. device according to claim 9, is characterized in that, also comprises:
Memory module, after carrying out described iSCSI business for the link being communicated with described object machine after described Executive Module is by described switching, the link information that record is communicated with described object machine and the port information of described link.
CN201410258950.4A 2014-06-11 2014-06-11 Processing method and device for iSCSI Pending CN104009873A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410258950.4A CN104009873A (en) 2014-06-11 2014-06-11 Processing method and device for iSCSI

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410258950.4A CN104009873A (en) 2014-06-11 2014-06-11 Processing method and device for iSCSI

Publications (1)

Publication Number Publication Date
CN104009873A true CN104009873A (en) 2014-08-27

Family

ID=51370369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410258950.4A Pending CN104009873A (en) 2014-06-11 2014-06-11 Processing method and device for iSCSI

Country Status (1)

Country Link
CN (1) CN104009873A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017032147A1 (en) * 2015-08-25 2017-03-02 中兴通讯股份有限公司 Method and apparatus for switching internet small computer system interface session link
CN112579007A (en) * 2020-12-26 2021-03-30 中国建设银行股份有限公司 Method and device for acquiring full storage link and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101237314A (en) * 2008-01-16 2008-08-06 杭州华三通信技术有限公司 A method and access device for guaranteeing duplication service transmission

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101237314A (en) * 2008-01-16 2008-08-06 杭州华三通信技术有限公司 A method and access device for guaranteeing duplication service transmission

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017032147A1 (en) * 2015-08-25 2017-03-02 中兴通讯股份有限公司 Method and apparatus for switching internet small computer system interface session link
CN112579007A (en) * 2020-12-26 2021-03-30 中国建设银行股份有限公司 Method and device for acquiring full storage link and electronic equipment

Similar Documents

Publication Publication Date Title
US11194679B2 (en) Method and apparatus for redundancy in active-active cluster system
KR101513863B1 (en) Method and system for network element service recovery
US6594776B1 (en) Mechanism to clear MAC address from Ethernet switch address table to enable network link fail-over across two network segments
TWI383616B (en) Method and system for assigning a plurality of macs to a plurality of processors
EP1697843B1 (en) System and method for managing protocol network failures in a cluster system
US20210011813A1 (en) Information Backup Method and Related Device
US20030005368A1 (en) Method and apparatus for recovery from faults in a loop network
CN112398689B (en) Network recovery method and device, storage medium and electronic equipment
CN111835685B (en) Method and server for monitoring running state of Nginx network isolation space
CN101951345A (en) Message transmitting method and equipment
CN113169895A (en) N +1 redundancy for virtualization services with low latency failover
CN112612769A (en) File processing method, device and storage medium
CN107948063B (en) Method for establishing aggregation link and access equipment
CN101262479B (en) A network file share method, server and network file share system
KR20150111608A (en) Method for duplication of virtualization server and Virtualization control apparatus thereof
CN104009873A (en) Processing method and device for iSCSI
CN115801642B (en) RDMA communication management module, method, equipment and medium based on state control
CN110661599B (en) HA implementation method, device and storage medium between main node and standby node
CN105245387A (en) Method and system for processing message
US11757987B2 (en) Load balancing systems and methods
KR102286913B1 (en) Network management apparatus and control method thereof
CN103037031A (en) Internet protocol (IP) address administration method of internet small computer system interface (ISCSI) target device
CN105426118A (en) Method for heartbeat channel backup by using serial port in double control system
CN112131201A (en) Method, system, equipment and medium for high availability of network additional storage
US10750383B2 (en) Method of providing management and control of hotspots with reduced messaging

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140827

RJ01 Rejection of invention patent application after publication