CN102081386A - System for carrying out link synchronization on dual controllers supporting iSCSI (internet small computer system interface) equipment - Google Patents
System for carrying out link synchronization on dual controllers supporting iSCSI (internet small computer system interface) equipment Download PDFInfo
- Publication number
- CN102081386A CN102081386A CN2009102523898A CN200910252389A CN102081386A CN 102081386 A CN102081386 A CN 102081386A CN 2009102523898 A CN2009102523898 A CN 2009102523898A CN 200910252389 A CN200910252389 A CN 200910252389A CN 102081386 A CN102081386 A CN 102081386A
- Authority
- CN
- China
- Prior art keywords
- controller
- sas
- sas controller
- synchronization link
- dual
- 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
Links
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Information Transfer Systems (AREA)
Abstract
The invention discloses a system for carrying out link synchronization on dual controllers supporting iSCSI (internet small computer system interface) equipment. The system comprises a first SAS (serial attached SCSI) controller arranged in a first controller and a second SAS controller arranged in a second controller, wherein the second SAS controller is connected with the first SAS controller via an SAS bus; and link synchronization is carried out on the dual controllers according to an inquiry command sent by the first SAS controller/the second SAS controller to the opposite second SAS controller/first SAS controller and/or an inquiry command response sent by the second SAS controller/the first SAS controller. By utilizing the system, the synchronization of the dual controllers can be rapidly and dynamically achieved.
Description
Technical field
The present invention relates to a kind of dual controller, particularly a kind of synchronization link system that supports the dual controller of iscsi device.
Background technology
At present, has the slow shortcoming of transmission speed based on the bidirectional data transfers under the dual controller (Dual-Controller).System for serial small computer interface (SAS, Serial Attached SCSI) has the bidirectional transmit-receive pattern, therefore utilizes the SAS controller to serve as data transmission link, carries out the data rate that bidirectional data transfers can improve dual controller.
If two SAS controllers are without synchronously, these two SAS controllers can't carry out two and transfer to data.
In addition, under the Dual-Controller environment, operations such as hot plug are carried out in permission to single Controller, so the state of SAS controller must dynamically update.
Therefore, it is more reasonable need to propose a kind of employing, and mode fast realizes synchronous between two SAS controllers.In addition, at under the various situations (as: single controller, dual controller differ start-up time to, hot-swapping controller etc.), also can solve SAS controller state stationary problem under two controllers fast, to realize dynamically, to reflect fast, really the actual available situation of transmission link.
Summary of the invention
Technical matters to be solved by this invention provides a kind of synchronization link system that can realize the dual controller of synchronous iscsi device fast.
To achieve these goals, the invention provides a kind of synchronization link system of dual controller of iscsi device, wherein, described synchronization link system comprises:
Be arranged on the SAS controller in first controller of dual controller;
Be arranged on the 2nd SAS controller in second controller of dual controller, described the 2nd SAS controller is connected by the SAS bus with a described SAS controller; Wherein
To the inquiry instruction that described the 2nd SAS controller of opposite end/a described SAS controller sends, and/or inquiry repeat-back that described the 2nd SAS controller/a described SAS controller sends carries out link synchronization to described dual controller according to a described SAS controller/described the 2nd SAS controller.
Above-mentioned synchronization link system, wherein, after described first controller/described second controller starts, send described inquiry instruction to the target device of described the 2nd a SAS controller/described SAS controller of opposite end by the original equipment of a described SAS controller/described the 2nd SAS controller.
Above-mentioned synchronization link system, wherein, the target device of described the 2nd a SAS controller/described SAS controller of opposite end obtains the upstate of a described SAS controller/described the 2nd SAS controller according to described inquiry instruction.
Above-mentioned synchronization link system, wherein, the target device of described the 2nd a SAS controller/described SAS controller of opposite end is obtaining a described SAS controller/when described the 2nd SAS controller is down state, starts corresponding original equipment and resend the inquiry instruction.
Above-mentioned synchronization link system wherein, carries the upstate of the 2nd SAS/ the one SAS controller of a local SAS/ the 2nd SAS controller of correspondence and corresponding far-end respectively in the described inquiry instruction.
Above-mentioned synchronization link system, wherein, the original equipment of a described SAS controller/described the 2nd SAS controller obtains the upstate of described the 2nd a SAS controller/described SAS controller of opposite end according to the request-reply of described target device.
Above-mentioned synchronization link system wherein, carries the upstate of second/the one SAS controller of a local SAS/ the 2nd SAS controller of correspondence and corresponding far-end respectively during described request is replied.
Above-mentioned synchronization link system, wherein, during by hot removal, described the 2nd SAS controller of opposite end/described SAS controller is set to down state according to the described SAS controller of hot removal incident/described the 2nd SAS controller that receives at described first controller/described second controller.
Above-mentioned synchronization link system, wherein, when the operation of single described first controller/described second controller, a described SAS controller/described the 2nd SAS controller is set to down state according to mutual described the 2nd SAS controller/described SAS controller with described the 2nd SAS controller/described SAS controller of opposite end.
According to an aspect of the present invention, the embodiment of the invention has proposed a kind of synchronization link system of dual controller of iscsi device, and described synchronization link system comprises: be arranged on the SAS controller in first controller of dual controller; Be arranged on the 2nd SAS controller in second controller of dual controller, described the 2nd SAS controller is connected by the SAS bus with a described SAS controller; Wherein according to a described SAS controller/described the 2nd SAS controller to the inquiry instruction that described the 2nd SAS controller of opposite end/a described SAS controller sends, and/or inquiry repeat-back that described the 2nd SAS controller/a described SAS controller sends carries out link synchronization to described dual controller.
The further embodiment according to the present invention, after described first controller/described second controller starts, send described inquiry instruction to the target device of described the 2nd a SAS controller/described SAS controller of opposite end by the original equipment of a described SAS controller/described the 2nd SAS controller.
The further embodiment according to the present invention, the target device of described the 2nd a SAS controller/described SAS controller of opposite end obtain the upstate of a described SAS controller/described the 2nd SAS controller according to described inquiry instruction.
The further embodiment according to the present invention carries the upstate of the 2nd SAS/ the one SAS controller of a corresponding local SAS/ the 2nd SAS controller and corresponding far-end respectively in the described inquiry instruction.
The further embodiment according to the present invention, during by hot removal, described the 2nd SAS controller of opposite end/described SAS controller is set to down state according to the described SAS controller of hot removal incident/described the 2nd SAS controller that receives at described first controller/described second controller.
The further embodiment according to the present invention, when the operation of single described first controller/described second controller, a described SAS controller/described the 2nd SAS controller is set to down state according to mutual described the 2nd SAS controller/described SAS controller with described the 2nd SAS controller/described SAS controller of opposite end.
Technique effect of the present invention is: The present invention be directed to and utilize the SAS controller to work as physical transmission link, realize the short distance high speed data transfer, and state quick, dynamic synchronization SAS controller.The present invention need not realize that the SAS controller state is synchronous by outside other link, and dynamic is good, and synchronous speed is fast.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Description of drawings
Fig. 1 a and Fig. 1 b are the synchronization link system architecture schematic diagram of dual controller of the iscsi device of the embodiment of the invention;
Fig. 2 is the inquiry order format synoptic diagram of the embodiment of the invention;
Fig. 3 is the inquiry repeat-back form synoptic diagram of the embodiment of the invention;
Fig. 4 is the synchronization link system works schematic diagram of dual controller of the iscsi device of the embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing structural principle of the present invention and principle of work are done concrete description:
Describe embodiments of the invention below in detail, the example of described embodiment is shown in the drawings, and wherein identical from start to finish or similar label is represented identical or similar assembly or the assembly with identical or similar functions.Below by the embodiment that is described with reference to the drawings is exemplary, only is used to explain the present invention, and can not be interpreted as limitation of the present invention.
With reference now to Fig. 1 a and Fig. 1 b,, the figure illustrates the synchronization link system architecture of dual controller of the iscsi device of the embodiment of the invention.
As shown in Figure 1a, the dual controller of the embodiment of the invention is made of first controller 10 and second controller 20, wherein comprise a SAS controller 12 in first controller 10, comprise the 2nd SAS controller 22 in second controller 20, it is by the SAS bus that the 2nd SAS controller 22 is connected with hardware between the SAS controller 12, shown in Fig. 1 b.The SAS bus is the scsi interface of serial, and therefore, dual controller of the present invention can be supported the foundation of this communication link.
Particularly, Initiator1 (first original equipment)/Target1 (first target device) constitutes the SAS controller 12 on first controller 10, and Initiator2 (second original equipment)/Target2 (second target device) constitutes the 2nd SAS controller 22 on second controller 20.First, second SAS controller 12,22 serves as physical transmission link and realizes data transmit-receive, therefore needs before sending data through synchronously.
The SAS controller is promptly synchronously: before the transceive data, at first must wait to guarantee that local SAS controller can be to the SAS controller read-write of far-end, and far-end SAS controller also can be to local SAS controller read-write.Such two controllers all must be obtained the state of two SAS controllers, could determine whether bidirectional data communication is available.
Each SAS controller is provided with two Status Flags, represents local (local) and far-end (Remote) SAS controller state respectively, and optional value is Ready (TRUE) and NoReady (FALSE), and initial value all is changed to NoReady.Wherein Ready represents that controller can use, and NoReady represents that controller is unavailable, these two marks, promptly the boolean of local and Remote and the result be the virtual condition of transmission link, two are Ready and represent that then two SAS controls are synchronous.
The one SAS controller 12/ the 2nd SAS controller 22 starts the inquiry instruction that the back sends to the 2nd SAS controller 22/ SAS controller 12 of opposite end, and/or the inquiry repeat-back that sends of the 2nd SAS controller 22/ a SAS controller 12 is carried out link synchronization to first controller and described second controller.
Specifically, when each controller 10 or 20 starts, send inquiry (Inquiry) by wherein Initiator to opposite end Target and instruct.In one embodiment, the Inquiry instruction is the CDB (instruction description piece, Command descriptor block) of 6 bytes, is the CDB form (Fig. 2 is seen in CDB form and definition thereof) of SICS standard agreement.
Before sending Inquiry, active controller itself carries out scanning motion, if another controller can be scanned and (not represent this equipment to use but can sweep to, be that state value is ready), then active controller can enumerate the device number (IDlun) of this another controller, next sends inquiry with this device number.
Carrying above-mentioned two marks in the 3rd byte that the inquiry of CDB form is instructed, promptly high 4 are carried the Local mark, and low 4 are carried Remote mark (state).Certainly, except first byte, other byte all can be used, and is not limited to this specific embodiment here.
Then, the SAS controller 22 of opposite end or 12 reception Inquiry reply.Reply if can normally receive, and obtain device number, then upgrade the local virtual device number, and the Local mark is changed to Ready by scanning.Carry this two marks during Inquiry replys too, can be positioned at the 36th byte (certainly, the from the 8th to the 36th byte increases and can use, and Fig. 3 is seen in request instruction response-Inquiry Response form and definition thereof).According to the equipment state mark that carries in responding, whether active controller can be judged side controller available.
After the Target end is received Inquiry, from CDB, take out far-end state (being high 4), upgrade the Remote mark, check that then Local marks whether to be Ready, if be NoReady, then open a thread notice Initiator again and resend Inquiry.
When two status indications of two SAS controllers are Ready, finish synchronously.
Fig. 4 describes the synchronization link system works principle of dual controller of the iscsi device of the embodiment of the invention in detail, is assumed to be first controller 10 in the legend and preferentially starts.
As shown in the figure, the Initiator1 that is arranged on the SAS controller 12 on first controller 10 goes out request instruction Inquiry, and (Local:NoReady Remote:NoReady) gives the Initiator2 (step 102) of the 2nd SAS controller 22 on second controller 20.Because at this moment second controller 20 does not start as yet, so can't provide response to this request instruction.
When second controller 20 starts, the Initiator2 of the 2nd SAS controller 22 sends request instruction Inquiry (Local:NoReady too, Remote:NoReady) give the Target1 (step 104) of a SAS controller 12, at this moment first controller 10 normally starts, and can normally return request instruction and respond (Inquiry Response) to second controller 20 (step 106).Wherein carry the device number of first controller 10 in this request-reply.At this moment, will to put local mark position be Ready state (step 108) to second controller 20.
Target1 returns after the Response, restarts thread notice Initiator1 far-end second controller 20 and has started available (step 110).Initiator1 sends request instruction Inquiry (Local:NoReady once more, Remote:NoReady) obtain the state (step 112) of Target2, Target2 responds request instruction (step 114) to Initiator1, includes the device number of second controller during this request instruction is responded.Initiator1 is made as Ready (step 116) with this ground mark and distal marker after receiving response.
Target2 returns after the Response, finds that this moment, state was NoReady still, and restarting a current far-end state of thread notice Initiator2 is NoReady (step 118).Initiator2 sends request instruction (step 120) to Target1 once more, thereby obtain Inquiry Response (step 122) by request instruction, the Local that identifies first controller is labeled as Ready, and the Remote that second controller is set is labeled as Ready (step 124).
The present invention utilizes the SAS controller to serve as physical transmission link, realizes data transmit-receive.Thereby after carrying out synchronously, the Initiator of an end SAS controller carries data block by SCSI (small computer system interface, SmallComputer System Interface) read/write instruction, sends to the Target end of far-end SAS controller.
Under the situation of single controller operation, above-mentioned mechanism also can operate as normal.First Inquiry that sends as Initiator returns failure, directly stops mutual.If after this far-end does not start, local Target end will can not be received the Inquiry request.Just do not have again mutual yet.The Local/Remote mark all is NoReady.
When two controls moved, heat was dialled and is removed a controller, during owing to the disconnection of SAS link, can receive that a heat removes incident.At this moment, two Local/Remote status indications of running controller must be changed to NoReady.When this controller turns back to again, can repeat above synchronizing process again, and upgrade virtual device number.
The present invention be directed to and utilize the SAS controller to work as physical transmission link, realize the short distance high speed data transfer, and state quick, dynamic synchronization SAS controller.The present invention need not realize that the SAS controller state is synchronous by outside other link, and dynamic is good, and synchronous speed is fast.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.
Claims (9)
1. the synchronization link system of the dual controller of an iscsi device is characterized in that, described synchronization link system comprises:
Be arranged on the SAS controller in first controller of dual controller;
Be arranged on the 2nd SAS controller in second controller of dual controller, described the 2nd SAS controller is connected by the SAS bus with a described SAS controller; Wherein
To the inquiry instruction that described the 2nd SAS controller of opposite end/a described SAS controller sends, and/or inquiry repeat-back that described the 2nd SAS controller/a described SAS controller sends carries out link synchronization to described dual controller according to a described SAS controller/described the 2nd SAS controller.
2. synchronization link as claimed in claim 1 system, it is characterized in that, after described first controller/described second controller starts, send described inquiry instruction to the target device of described the 2nd a SAS controller/described SAS controller of opposite end by the original equipment of a described SAS controller/described the 2nd SAS controller.
3. synchronization link as claimed in claim 2 system, it is characterized in that the target device of described the 2nd a SAS controller/described SAS controller of opposite end obtains the upstate of a described SAS controller/described the 2nd SAS controller according to described inquiry instruction.
4. synchronization link as claimed in claim 3 system, it is characterized in that, the target device of described the 2nd a SAS controller/described SAS controller of opposite end is obtaining a described SAS controller/when described the 2nd SAS controller is down state, starts corresponding original equipment and resend the inquiry instruction.
5. synchronization link as claimed in claim 1 system is characterized in that, carries the upstate of the 2nd SAS/ the one SAS controller of a corresponding local SAS/ the 2nd SAS controller and corresponding far-end in the described inquiry instruction respectively.
6. synchronization link as claimed in claim 2 system, it is characterized in that the original equipment of a described SAS controller/described the 2nd SAS controller obtains the upstate of described the 2nd a SAS controller/described SAS controller of opposite end according to the request-reply of described target device.
7. synchronization link as claimed in claim 6 system is characterized in that, carries the upstate of second/the one SAS controller of a corresponding local SAS/ the 2nd SAS controller and corresponding far-end during described request is replied respectively.
8. synchronization link as claimed in claim 1 system, it is characterized in that, during by hot removal, described the 2nd SAS controller of opposite end/described SAS controller is set to down state according to the described SAS controller of hot removal incident/described the 2nd SAS controller that receives at described first controller/described second controller.
9. synchronization link as claimed in claim 1 system, it is characterized in that, when the operation of single described first controller/described second controller, a described SAS controller/described the 2nd SAS controller is set to down state according to mutual described the 2nd SAS controller/described SAS controller with described the 2nd SAS controller/described SAS controller of opposite end.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009102523898A CN102081386A (en) | 2009-11-30 | 2009-11-30 | System for carrying out link synchronization on dual controllers supporting iSCSI (internet small computer system interface) equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009102523898A CN102081386A (en) | 2009-11-30 | 2009-11-30 | System for carrying out link synchronization on dual controllers supporting iSCSI (internet small computer system interface) equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102081386A true CN102081386A (en) | 2011-06-01 |
Family
ID=44087391
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009102523898A Pending CN102081386A (en) | 2009-11-30 | 2009-11-30 | System for carrying out link synchronization on dual controllers supporting iSCSI (internet small computer system interface) equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102081386A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102325163A (en) * | 2011-07-18 | 2012-01-18 | 福建星网锐捷网络有限公司 | Routing updating method, device and relevant equipment |
CN102662803A (en) * | 2012-03-13 | 2012-09-12 | 深圳华北工控股份有限公司 | Double-controlled double-active redundancy equipment |
CN105007307A (en) * | 2015-06-18 | 2015-10-28 | 浪潮(北京)电子信息产业有限公司 | Storage control method and system |
-
2009
- 2009-11-30 CN CN2009102523898A patent/CN102081386A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102325163A (en) * | 2011-07-18 | 2012-01-18 | 福建星网锐捷网络有限公司 | Routing updating method, device and relevant equipment |
CN102325163B (en) * | 2011-07-18 | 2014-08-27 | 福建星网锐捷网络有限公司 | Routing updating method, device and relevant equipment |
CN102662803A (en) * | 2012-03-13 | 2012-09-12 | 深圳华北工控股份有限公司 | Double-controlled double-active redundancy equipment |
CN105007307A (en) * | 2015-06-18 | 2015-10-28 | 浪潮(北京)电子信息产业有限公司 | Storage control method and system |
CN105007307B (en) * | 2015-06-18 | 2019-02-22 | 浪潮(北京)电子信息产业有限公司 | A kind of storage controlling method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8738815B2 (en) | System and method for virtualizing the peripherals in a terminal device to enable remote management via removable portable media with processing capability | |
US8520697B2 (en) | System and method for connecting bluetooth-enabled devices to a personal computer | |
JP5395824B2 (en) | Memory system | |
JP5939819B2 (en) | COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, COMMUNICATION SYSTEM, PROGRAM | |
EP2563091B1 (en) | Wireless internet-accessing module, host, communication method thereof, and data card | |
US20070006020A1 (en) | Inter-host data transfer method, program, and system | |
CN107908589B (en) | I3C communication verification system and method for verifying slave device and master-slave device | |
US20110111698A1 (en) | Electronic apparatus and access control method | |
KR101748318B1 (en) | Method and apparatus for executing application of mobile terminal | |
WO2012149767A1 (en) | Method and system for accessing storage device | |
CN103257941A (en) | Multi-protocol storage controller and system | |
CN105007329A (en) | PCIe-based network sharing storage system and storage method thereof | |
US9832279B2 (en) | Station, target apparatus, initiator apparatus, communication system, and communication method | |
CN102081386A (en) | System for carrying out link synchronization on dual controllers supporting iSCSI (internet small computer system interface) equipment | |
EP2485144A1 (en) | 3-file information system management system and method | |
CN112380151A (en) | NVMe-oF heterogeneous storage system and access method | |
CN101242575A (en) | Control system and method for combined GSM/GPRS wireless terminal and GPS | |
WO2019104989A1 (en) | Terminal and communication method | |
CN111726848B (en) | Equipment binding method, target starting device, fixed terminal and storage medium | |
CN103024087B (en) | Support massive store and the system and method for ethernet communication simultaneously | |
JP4826201B2 (en) | Relay device, storage device, and storage system | |
US20100215052A1 (en) | Iscsi network interface card with arp/icmp resolution function | |
JP4792361B2 (en) | Response device, response method, and response program | |
KR102509982B1 (en) | Apparatus and method for recogniting usb and method for operating of reader therefor | |
US9317248B2 (en) | Information processing device, subsystem, information processing method, and recording medium storing information processing program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20110601 |