CN101694611B - Starter, target device and information piggybacking method - Google Patents

Starter, target device and information piggybacking method Download PDF

Info

Publication number
CN101694611B
CN101694611B CN2009102088124A CN200910208812A CN101694611B CN 101694611 B CN101694611 B CN 101694611B CN 2009102088124 A CN2009102088124 A CN 2009102088124A CN 200910208812 A CN200910208812 A CN 200910208812A CN 101694611 B CN101694611 B CN 101694611B
Authority
CN
China
Prior art keywords
information
message
incidentally
starter
memory space
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.)
Active
Application number
CN2009102088124A
Other languages
Chinese (zh)
Other versions
CN101694611A (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.)
Chengdu Huawei Technology Co Ltd
Original Assignee
Huawei Symantec 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 Symantec Technologies Co Ltd filed Critical Huawei Symantec Technologies Co Ltd
Priority to CN2009102088124A priority Critical patent/CN101694611B/en
Publication of CN101694611A publication Critical patent/CN101694611A/en
Application granted granted Critical
Publication of CN101694611B publication Critical patent/CN101694611B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention relates to a starter, a target device and an information piggybacking method. The method comprises the following steps: receiving a piggybacking message sent by the starter, wherein next information to be sent of the piggybacking message in a sending queue of the starter is a writing request message; detecting remaining storage space; and sending feedback information corresponding to the piggybacking message to the starter, wherein the feedback information comprises the detected remaining storage space information. The embodiment of the invention shortens the processing time of the whole SCSI writing request process and improves the writing request efficiency.

Description

Starter, object machine and information piggybacking method
Technical field
The present invention relates to the communications field, particularly starter, object machine and information piggybacking method.
Background technology
Minicomputer interface (Small Computer System Interface, hereinafter to be referred as: SCSI) be a kind of universal interface standard of intelligence.It is the interface standard between various computing machines and the external unit.Along with fast development of information technology, the SCSI bus frequency improves constantly, and the interference of signal reduces greatly, and stability also strengthens thereupon.At present, write in the processing of request process, need carry out twice between starter and the object machine and could accomplish the transmission of writing request message alternately at SCSI.Be specially: when starter need write data in the object machine, starter sent to object machine and writes request message, to apply for corresponding storage space.When object machine receives this when writing request message, detect the residual memory space of self, when residual memory space satisfies when writing request message, then return and write the request feedback.Then, starter is write request message to the object machine transmission, and after writing the request message transmission end, object machine is accomplished the transfer process of writing request message to starter return data feedback information.
In realizing process of the present invention; The inventor finds that there is following defective at least in prior art: existing SCSI writes in the request process, utilizes twice mutual process of accomplishing the request of writing between starter and the object machine, and cost is higher; And whole to write request processing time long, and efficient is low.
Summary of the invention
The embodiment of the invention provides a kind of starter, object machine and information piggybacking method, writes in the request process in order to be implemented in SCSI, shortens the whole request processing time of writing, and improves and writes request efficiency.
The embodiment of the invention provides a kind of information piggybacking method, is applied to minicomputer interface and writes in the processing of request process, and said method comprises:
Receive the incidentally message that starter sends, described in the transmit queue of starter incidentally the information next to be sent of message be to write request message;
Detect residual memory space;
Send the corresponding feedback information of said incidentally message to said starter; Write request message so that said starter judges whether to send according to the residual memory space information in the said feedback information, said feedback information comprises said detected residual memory space information.
The embodiment of the invention provides a kind of information piggybacking method, is applied to minicomputer interface and writes in the processing of request process, and said method comprises:
Send incidentally message to object machine, described in the transmit queue of starter incidentally the information next to be sent of message be to write request message;
Receive the corresponding feedback information of said incidentally message that said object machine sends, said feedback information comprises the detected residual memory space information of said object machine;
To indicate the residual memory space size of said object machine to satisfy said when writing the corresponding request space of request message when said residual memory space information, sends data to said object machine.
The embodiment of the invention provides a kind of information incidentally to install, and is applied to minicomputer interface and writes in the processing of request process, and said device comprises:
First receiver module is used to receive the incidentally message that starter sends, described in the transmit queue of starter incidentally the information next to be sent of message be to write request message;
Detection module is used to detect the residual memory space of object machine;
First sending module; Be used for sending the corresponding feedback information of said incidentally message to said starter; Write request message so that said starter judges whether to send according to the residual memory space information in the said feedback information, said feedback information comprises said detected residual memory space information.
The embodiment of the invention provides a kind of information incidentally to install, and is applied to minicomputer interface and writes in the processing of request process, and said device comprises:
Second sending module is used for sending incidentally message to object machine, described in the transmit queue of starter incidentally the information next to be sent of message be to write request message;
Second receiver module is used to receive the corresponding feedback information of said incidentally message that said object machine sends, and said feedback information comprises the detected residual memory space information of said object machine;
The 3rd sending module is used for that to indicate the residual memory space size of said object machine to satisfy said when writing the corresponding request space of request message when said residual memory space information, sends data to said object machine.
The embodiment of the invention provides incidentally system of a kind of information, is applied to minicomputer interface and writes in the processing of request process, and said system comprises:
The first information incidentally installs with second information and incidentally installs, wherein:
The said first information incidentally device comprises:
First receiver module is used to receive the incidentally message that starter sends, described in the transmit queue of starter incidentally the information next to be sent of message be to write request message;
Detection module is used to detect the residual memory space of object machine;
First sending module; Be used for sending the corresponding feedback information of said incidentally message to said starter; Write request message so that said starter judges whether to send according to the residual memory space information in the said feedback information, said feedback information comprises said detected residual memory space information;
Said second information incidentally device comprises:
Second sending module is used for sending incidentally message to object machine, described in the transmit queue of starter incidentally the information next to be sent of message be to write request message;
Second receiver module is used to receive the corresponding feedback information of said incidentally message that said object machine sends, and said feedback information comprises the detected residual memory space information of said object machine;
The 3rd sending module is used for that to indicate the residual memory space size of said object machine to satisfy said when writing the corresponding request space of request message when said residual memory space information, sends data to said object machine.
Can know by technique scheme; Object machine receives the incidentally message that starter sends in the embodiment of the invention, in the transmit queue of starter this incidentally the message next to be sent of message be to write request message, object machine is through detecting the size of self residual storage space; And the information that will comprise residual memory space size incidentally sends to starter in the corresponding feedback information of message incidentally; Make starter under the prompting of this message, send to write the data that request message is corresponding, thereby once mutual through between starter and the object machine realized that SCSI writes request process; Shortened the whole processing time of writing request process, improved and write request efficiency.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention; The accompanying drawing of required use is done an introduction simply in will describing embodiment below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
The schematic flow sheet of the information piggybacking method that Fig. 1 provides for the embodiment of the invention one;
The schematic flow sheet of the information piggybacking method that Fig. 2 provides for the embodiment of the invention two
The signaling diagram of the information piggybacking method that Fig. 3 provides for the embodiment of the invention three;
The schematic flow sheet of the information piggybacking method that Fig. 4 provides for the embodiment of the invention four;
The schematic flow sheet of the information piggybacking method that Fig. 5 provides for the embodiment of the invention five;
The signaling diagram of the information piggybacking method that Fig. 6 provides for the embodiment of the invention six;
The structural representation of the object machine that Fig. 7 provides for the embodiment of the invention seven;
The structural representation of the starter that Fig. 8 provides for the embodiment of the invention eight;
The information that Fig. 9 provides for the embodiment of the invention nine is the structural representation of system incidentally.
Embodiment
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention; The accompanying drawing of required use is done an introduction simply in will describing embodiment below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
The schematic flow sheet of the information piggybacking method that Fig. 1 provides for the embodiment of the invention one.As shown in Figure 1, present embodiment can may further comprise the steps:
Step 400, receive the incidentally message that starter sends, described in the transmit queue of starter incidentally the information next to be sent of message be to write request message;
This incidentally message be in the transmit queue of starter, to write the message previous to be sent of request message, it can be a starter according to existing SCSI agreement to the read request message that object machine sends, and also can be to write request message.
Step 401, detection residual memory space;
Step 402, send the corresponding feedback information of said incidentally message to said starter, said feedback information comprises said detected residual memory space information.
The information piggybacking method that present embodiment provides can be applied in the system that constitutes through scsi interface, but is not limited to the system that scsi interface constitutes.Can comprise starter and a plurality of object machine that is connected to this starter simultaneously in the system through the scsi interface formation; Wherein, Starter can for server, PC (Personal Computer, hereinafter to be referred as: PC) wait equipment, object machine can be memory devices such as disk array, hard disk
When object machine receives the incidentally message of starter transmission; Object machine can incidentally send to starter through the corresponding feedback information of above-mentioned incidentally message with the residual memory space information of expression self residual storage size, is judged whether to send according to the residual memory space size of object machine by starter and writes request message.
After starter receives the residual memory space information that object machine incidentally sends through the corresponding feedback information of message incidentally; This starter judges according to this residual memory space information whether the residual memory space in the object machine is not less than the required storage space of data to be sent; If then directly send data to object machine.If not, then starter resends this according to existing SCSI agreement and writes request message, and the feedback information according to object machine sends the data to be written that this writes the request message correspondence then.
Present embodiment incidentally sends to starter through feedback information with residual memory space information; Make this starter directly to send data according to this residual memory space information to object machine; Thereby once mutual through between starter and the object machine; Realized that SCSI writes request process, shortened the whole processing time of writing request process, improved and write request efficiency.
The schematic flow sheet of the information piggybacking method that Fig. 2 provides for the embodiment of the invention two.As shown in Figure 2, present embodiment can may further comprise the steps:
Step 601, send incidentally message to object machine, described in the transmit queue of starter incidentally the information next to be sent of message be to write request message;
The corresponding feedback information of said incidentally message that step 602, the said object machine of reception send, said feedback information comprises the detected residual memory space information of said object machine;
Step 603, to indicate the residual memory space size of said object machine to satisfy said when writing the corresponding request space of request message when said residual memory space information, sends data to said object machine.
Present embodiment is identical with the system that information piggybacking method was suitable for that the foregoing description one provides, and all is the system that scsi interface constitutes.Wherein, Incidentally message can be read request message, also can be for writing request message, wherein; Read request message is the request message that initiator request is sent when reading a certain data in the object machine, and data message is the data that starter need be with data storage be sent during to object machine.
At first send incidentally message according to existing SCSI agreement to object machine by starter; When object machine receives this incidentally after the message; Indication executable operations according to this message; Complete successfully the operation of this message indication when object machine after, object machine detects the residual memory space of self, and will represent that the residual memory space information of self residual storage size incidentally sends to starter through the corresponding feedback information of this message.
After starter receives the residual memory space information that object machine incidentally sends through the corresponding feedback information of this message; This starter judges according to this residual memory space information whether the residual memory space in the object machine satisfies the required storage space of data to be sent; If then this starter directly sends data to object machine.If not, then starter sends this according to existing SCSI agreement and writes request message, and the feedback information according to object machine sends the data to be written that this writes the request message correspondence then.
After starter receives incidentally the residual memory space information in the corresponding feedback information of message incidentally in the present embodiment; When this residual memory space information confirms that the residual memory space size of object machine satisfies the request space of request message correspondence; Send data to object machine, thereby once mutual through between starter and the object machine realized that SCSI writes request process; Shortened the whole processing time of writing request process, improved and write request efficiency.
The signaling diagram of the information piggybacking method that Fig. 3 provides for the embodiment of the invention three, present embodiment can may further comprise the steps:
Step 501, object machine receive the read request message that starter sends.
Need to prove that the request message in the present embodiment is that example describes with the read request message, but is not limited to read request message.Read request message in the present embodiment can repeat no more with reference to the description of the foregoing description one here.
Step 502, object machine are according to the indication reading of data of this read request message.
What object machine received in the present embodiment is read request message, and then object machine reads the data of this read request message indication.
Further, if when object machine is according to the indication reading of data of this read request message in this step, read failure, then process ends.
Step 503, object machine detect the residual memory space of self.
Step 504, object machine incidentally send to starter through this read request feedback information with Status codes:50h.
Because the request message in the present embodiment is a read request message, then after object machine successfully reads the data of this read request message indication, need returns reading of data to starter and return the read request feedback information.Further, successfully detect the residual memory space of self when object machine after, then object machine will represent that the Status codes:50h that read request message runs succeeded with residual memory space incidentally sends to starter through the read request feedback information.
The Status codes:50h that step 505, starter incidentally send according to the read request feedback information judges whether the residual memory space of object machine is not less than the required occupation space of data to be sent, if then execution in step 506; If not, execution in step 507 then.
Starter receives the Status codes:50h that object machine incidentally sends through the read request feedback information; And judge the empty size of asking of residue storage of object machine according to this Status codes:50h; When this residual memory space was not less than the required occupation space of data to be sent, then execution in step 506; When this residual memory space during less than the required occupation space of data to be sent, then execution in step 507.
Step 506, starter directly send to object machine and write request message.
Step 507, starter resend this length information of writing request message.
In the present embodiment Status codes:50h is incidentally sent to starter through the read request feedback information; Judge according to Status codes:50h whether the residual memory space of object machine is not less than the required occupation space of generation transmission data by starter; If; Then starter directly sends to object machine and writes request message, thereby once mutual through between starter and the object machine realized that SCSI writes request process; Shortened the whole processing time of writing request process, improved and write request efficiency.
Further, the Status codes:50h in the present embodiment can also incidentally send to starter through writing the corresponding data feedback information of request message, and concrete execution in step and request message are that the execution in step of read request message is identical, repeat no more here.
The schematic flow sheet of the information piggybacking method that Fig. 4 provides for the embodiment of the invention four.Shown in figure four, present embodiment can may further comprise the steps:
The incidentally message that step 101, the said starter of reception send; In the transmit queue of starter; This incidentally the information next to be sent of message for writing request message; Said incidentally message comprises the said length information of writing request message, and the said length information of writing request message is used to indicate the size in the space of said initiator request;
Step 102, judge according to the said length information of writing request message whether the residual memory space of object machine is not less than the space of said initiator request; When the residual memory space of said object machine is not less than the space of said initiator request; Then return the said corresponding state feedback information of request message of writing to said starter, said state feedback information is used to indicate said starter to send the said corresponding data of request message of writing.
The information piggybacking method that present embodiment provides can be applied in the system that constitutes through scsi interface, but is not limited to the system that scsi interface constitutes.Can comprise starter and a plurality of object machine that is connected to this starter simultaneously in the system through the scsi interface formation; Wherein, Starter can be server, PC (Personal Computer; Hereinafter to be referred as: PC) wait equipment, object machine can be memory devices such as disk array, hard disk.
In the present embodiment; Starter can be with the information to be sent formation transmit queue that sorts; Two continuous information to be sent are respectively incidentally message and write request message in transmit queue; And this sending order of writing request message is positioned at this incidentally after the message time, and then this starter is carried at this incidentally in the message with this length information of writing request message, makes that writing the length information of request message sends to object machine simultaneously with message incidentally.Wherein, this incidentally message can be read request message, also can be for writing request message.
When object machine receives this incidentally after the message; This object machine judges according to the length information that carries in the message incidentally whether the residual memory space of self is not less than the size in space that starter is asked; If then return this and write the corresponding state feedback information of request message to starter.Wherein, this state feedback information is used to indicate starter to send the data to be written that this writes the request message correspondence.
When starter receives the state feedback information that this object machine returns,, directly send and write the corresponding data to be written of request message to object machine according to this state feedback information.Thereby once mutual through between starter and the object machine realized that SCSI writes request process.
Present embodiment when the information next to be sent of the incidentally message in the transmit queue of starter when writing request message; Starter incidentally sends to object machine with this length information of writing request message through message incidentally; Make object machine to determine whether to indicate this starter to send the first data to be written of writing the request message correspondence of this transmit queue according to this length information of writing request message; Thereby reduced mutual between one-shot device and the object machine; Shortened the whole processing time of writing request process, improved and write request efficiency.
The schematic flow sheet of the information piggybacking method that Fig. 5 provides for the embodiment of the invention five.As shown in Figure 5, present embodiment can may further comprise the steps:
Step 301, when the information next to be sent of the incidentally message in the transmit queue when writing request message; The said length information of writing request message is incidentally incidentally being sent to object machine in the message, distributing the said corresponding space of length information of writing request message to ask said object machine;
The said corresponding state feedback information of request message of writing that step 302, the said object machine of reception return;
Step 303, send the said corresponding data of request message of writing to object machine according to said state feedback information.
Present embodiment is identical with the system that information piggybacking method was suitable for that the foregoing description one provides, and all is the system that scsi interface constitutes.Can comprise starter and a plurality of object machine that is connected to this starter simultaneously in the system through the scsi interface formation, wherein, starter and object machine are described in detail in the foregoing description one, are not giving unnecessary details here.
In the present embodiment; In the transmit queue of starter, exist two continuous information to be sent to be respectively incidentally message and write request message; And the sending order of writing request message is positioned at this incidentally after the message time; This starter is carried at this incidentally in the message with this length information of writing request message, makes that writing the length information of request message sends to object machine simultaneously with message incidentally.Write request message with the request target device for this and distribute corresponding space.Wherein, incidentally message can be read request message, also can be for writing request message.Read request message, write request message, the length information of writing request message specifies in the foregoing description one, repeat no more here.
When object machine receives this incidentally after the message, at first according to this indication executable operations of message incidentally, for example: when incidentally message was read request message, this object machine was according to the indication reading corresponding data of this read request message; If incidentally message is when writing request message for this, then this object machine is stored data according to this indication of writing request message.
If object machine is according to the indication executable operations failure of message incidentally, then this incidentally the length information of writing request message in the message will not be processed, flow process finishes; If executable operations success, then object machine can to this incidentally the executing state of message feed back, particularly, if after object machine is accomplished data read operation according to read request message, return the read request feedback information to starter; If object machine is according to after writing request message completion data storage operations, to starter return data feedback information.
In the present embodiment; After object machine is accomplished corresponding operating according to the indication of message incidentally; Object machine judges according to the length information that carries in the message incidentally whether the residual memory space of self is not less than the size in space that starter is asked, and with expression write request message application space whether successful state feedback information be carried at corresponding executing state and send to starter in feeding back.State feedback information comprises success status information and status of fail information, and success status information and status of fail information specify in the foregoing description two, repeat no more here.
When starter receives read request feedback information that this object machine returns or data feedback information; This starter determines whether that according to the state feedback information in read request feedback information or the data feedback information needs send the next corresponding data to be written of request message of writing to object machine; When if this state feedback information is success status information, then starter directly sends the next corresponding data to be written of request message of writing to object machine; If this state feedback information is during for status of fail information incidentally, process ends then.
In the present embodiment when the information next to be sent of the incidentally message in the transmit queue of starter when writing request message; Starter incidentally sends to object machine with this length information of writing request message through message incidentally; And the state feedback information of returning according to object machine is sent and is write the corresponding data of request message; Thereby reduced mutual between one-shot device and the object machine, shortened the whole processing time of writing request process, improved and write request efficiency.
The signaling diagram of the information piggybacking method that Fig. 6 provides for the embodiment of the invention six, present embodiment is the basis with the information piggybacking method that the foregoing description one provides, and further embodiment of the invention information piggybacking method is elaborated.As shown in Figure 6, present embodiment can may further comprise the steps:
In message incidentally, further be provided with in the present embodiment command description piece (CommandDescription Block, hereinafter to be referred as: CDB), be used for incidentally writing the length information of request message.Set CDB has taken 16 bytes in the present embodiment, and (Logical Block Address is hereinafter to be referred as LBA) field to have comprised reservation (Reserved) field and LBA among this CDB.Need to prove; This incidentally can also carry incidentally log-on message in the message; Be used to indicate object machine whether to start piggy mechanism, incidentally log-on message in the present embodiment is that example describes with this Reserved field, but is not limited to the Reserved field; The length information of writing request message of present embodiment is that example describes with the LBA field, but is not limited to the LBA field.
The Reserved fields account is with the 1st byte in the CDB of present embodiment; The LBA fields account is used the 2-9 byte; Wherein, the address value that this length information of writing request message of 2-5 byte representation is asked, this writes the size in the length information request space of request message the 6-9 byte representation.The hypothetical target device is LUN (Logical Unit Number; Hereinafter to be referred as: LUN) equipment; And the storage size of this LUN equipment is no more than 2T; The LBA field length of representing the 2T space so is 32 of needs only, and therefore, CDB is that 16 bytes can satisfy the demand of LBA field to length in the present embodiment.
Need to prove that the incidentally message in the present embodiment is that example describes to write request message, but is not limited to write request message.Flow process when incidentally message is read request message is that flow process when writing request message is identical with message incidentally, no longer chases after said here.
Step 201, object machine receive the request message of writing of starter transmission, and this is write incidentally has Reserved field and LBA field in the request message.
Step 202, object machine are write the indication storage data of request message according to this.
When object machine receives this incidentally after the message, at first according to this indication executable operations of message incidentally, be specially: if this is when incidentally message is read request message, then this object machine is according to the indication of this read request message, reading corresponding data; If incidentally message is when writing request message for this, then this object machine is stored data according to this indication of writing request message.
What object machine received in the present embodiment is to write request message, and then object machine is preserved this and write the data in the request message.
Further, in the present embodiment if object machine according to the indication executable operations failure of message incidentally, then this incidentally the length information of writing request message in the message will not be processed.For example: when object machine is write the indication storage data of request message according to this in this step, storage failure, then process ends.
Step 203, object machine judge whether this Reserved field of writing in the request message indicates the startup piggy mechanism, if then execution in step 204; If not, then object machine carries Status codes:50h to starter return data feedback information in this data feedback information.
Need to prove, after object machine is accomplished corresponding operating according to the indication of message incidentally, object machine can to this incidentally the executing state of message feed back.In feedback, carry and write the whether successful state feedback information in request message application space executing state.Wherein, state feedback information comprises success status information and status of fail information, and the residual memory space of object machine is not less than the initiator request space, and then object machine returns success status information to starter; The residual memory space of object machine is less than the initiator request space, and then object machine returns status of fail information to starter.
For example: if object machine is carried out the read data success according to the indication of read request message, and residual memory space is when being not less than the initiator request space, and then object machine returns the read request feedback information to starter, carries success status information in this read request message; If object machine is carried out the success of storage data according to the indication of writing request message, and residual memory space is during less than the initiator request space, and then object machine carries status of fail information to starter return data feedback information in this data feedback information
Further, the state feedback information in the present embodiment is that example describes with state encoding (Status codes), but is not limited to Status codes.Incidentally success status information in the present embodiment is that example describes with 00h, but is not limited to 00h.This 00h representes that incidentally message runs succeeded and residual memory space is not less than the request space.Be provided with a new Status codes:50h in the present embodiment, incidentally status of fail information is that example describes with 50h, but is not limited to 50h.This 50 represent also incidentally that message runs succeeded and residual memory space less than the request space.
In this step, object machine reads this incidentally Reserved field in the message, if this Reserved field indication starts piggy mechanism, then execution in step 204; If when this Reserved field indication did not start piggy mechanism, then object machine carried Statuscodes:50h to starter return data feedback information in this data feedback information.
Further, after starter receives Status codes:50h, finish current flow process, and resend according to existing SCSI agreement and to write request message.
Step 204, object machine are resolved this and are write request message, obtain this and write the LBA field in the request message.
Wherein, the LBA field is used to indicate the size in initiator request space.
Step 205, object machine judge according to this LBA field whether residual memory space is not less than the space of initiator request, if then execution in step 206; If not, then object machine carries Status codes:50h to starter return data feedback information in this data feedback information.
Object machine detects the residual memory space of self, and judges according to the LBA field whether current residual memory space is not less than the size in request space.
Step 206, object machine carry Status codes:00h to starter return data feedback information in this data feedback information.
Because the incidentally message in the present embodiment is for writing request message, then after object machine is successfully stored this and is write request message, need be to starter return data feedback information.Further; When object machine judged that the residual memory space of self is not less than the request space, the Status codes:00h that then object machine writes with expression that request message runs succeeded and residual memory space is not less than the request space was carried in this data feedback information and sends to starter.
Need to prove, when being read request message, then after object machine successfully reads a certain data of storing in self, need return the read request feedback information to starter as if the incidentally message in the present embodiment.Further; When object machine judges that the residual memory space of self is not less than the request space, then object machine will represent that read request message runs succeeded and residual memory space is not less than the Status codes:00h that asks the space and is carried at this read request feedback information and sends to starter.
Step 207, starter receive the data feedback information that carries Status codes:00h, and send data according to Status codes:00h to object machine.
When starter receives the data feedback information that object machine returns,, directly send data to object machine according to the Status codes:00h that carries in this data feedback information.
Need to prove; If the Status codes that carries in this data feedback information writes for expression that request message runs succeeded and residual memory space during less than the 50h in request space; Then need resend the length information that this writes request message according to existing SCSI agreement; Write request message accordingly according to the feedback information transmission of object machine then, carry out the operation that data write object machine.
In the present embodiment Reserved field and LBA field are incidentally sent to object machine through writing request message; Judge according to Reserved field and LBA field whether residual memory space is not less than the request space by object machine; If; Then return the data feedback information that carries Status codes:00h, thereby once mutual through between starter and the object machine realized that SCSI writes request process to starter; Shortened the whole processing time of writing request process, improved and write request efficiency.
The structural representation of the object machine that Fig. 7 provides for the embodiment of the invention seven.As shown in Figure 7, the present embodiment object machine comprises:
First receiver module 711 is used to receive the incidentally message that starter sends, in the transmit queue of starter this incidentally the information next to be sent of message be to write request message;
Detection module 712 is used to detect residual memory space;
First sending module 713 is used for sending this incidentally corresponding feedback information of message to starter, and this feedback information comprises detected residual memory space information.
Present embodiment incidentally sends to starter through feedback information with residual memory space information; Make this starter directly to send data according to this residual memory space information to object machine; Thereby once mutual through between starter and the object machine; Realized that SCSI writes request process, shortened the whole processing time of writing request process, improved and write request efficiency.
The structural representation of the starter that Fig. 8 provides for the embodiment of the invention eight.As shown in Figure 8, the present embodiment object machine comprises:
Second sending module 811 is used for sending incidentally message to object machine, in the transmit queue of starter this incidentally the information next to be sent of message be to write request message;
Second receiver module 812, this that is used for that the receiving target device sends be the corresponding feedback information of message incidentally, and this feedback information comprises the detected residual memory space information of object machine;
The 3rd sending module 813 is used for when residual memory space information indicates the residual memory space size of said object machine to satisfy this request space of writing the request message correspondence, sending data to object machine.
After starter receives incidentally the residual memory space information in the corresponding feedback information of message incidentally in the present embodiment; When this residual memory space information confirms that the residual memory space size of object machine satisfies the request space of request message correspondence; Send data to object machine, thereby once mutual through between starter and the object machine realized that SCSI writes request process; Shortened the whole processing time of writing request process, improved and write request efficiency.
The information that Fig. 9 provides for the embodiment of the invention nine is the structural representation of system incidentally.As shown in Figure 9, present embodiment comprises: object machine 911 and starter 912;
Object machine 911 is used to receive the incidentally message that starter sends, described in the transmit queue of starter incidentally the information next to be sent of message be to write request message; Detect residual memory space; Send the corresponding feedback information of said incidentally message to said starter, said feedback information comprises said detected residual memory space information;
Starter 912 is used for sending incidentally message to object machine, described in the transmit queue of starter incidentally the information next to be sent of message be to write request message; Receive the corresponding feedback information of said incidentally message that said object machine sends, said feedback information comprises the detected residual memory space information of said object machine; To indicate the residual memory space size of said object machine to satisfy said when writing the corresponding request space of request message when said residual memory space information, sends data to said object machine.
Object machine 911 receives the incidentally message that starter 912 sends in the embodiment of the invention; In the transmit queue of starter 912 this incidentally the message next to be sent of message be to write request message; Object machine 911 is through detecting the size of self residual storage space, and the information that will comprise the residual memory space size incidentally sends to starter in the corresponding feedback information of message incidentally, makes starter 912 under the prompting of this message, send to write the data of request message correspondence; Thereby once mutual through between starter 912 and the object machine 911; Realized that SCSI writes request process, shortened the whole processing time of writing request process, improved and write request efficiency.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be accomplished through the relevant hardware of programmed instruction; Aforesaid program can be stored in the computer read/write memory medium; This program the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
What should explain at last is: above embodiment is only in order to explaining technical scheme of the present invention, but not to its restriction; Although with reference to previous embodiment the present invention has been carried out detailed explanation, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these are revised or replacement, do not make the spirit and the scope of the essence disengaging various embodiments of the present invention technical scheme of relevant art scheme.

Claims (9)

1. an information piggybacking method is characterized in that, is applied to minicomputer interface and writes in the processing of request process, and said method comprises:
Receive the incidentally message that starter sends, described in the transmit queue of starter incidentally the information next to be sent of message be to write request message;
Detect residual memory space;
Send the corresponding feedback information of said incidentally message to said starter; Write request message so that said starter judges whether to send according to the residual memory space information in the said feedback information, said feedback information comprises said detected residual memory space information.
2. method according to claim 1 is characterized in that, said incidentally message comprises the said length information of writing request message, and the said length information of writing request message is used to indicate the size in the space of said initiator request;
Said detection residual memory space comprises: judge according to the said length information of writing request message whether the residual memory space of object machine satisfies the space of said initiator request;
The said feedback information that sends said incidentally message correspondence to said starter; Said feedback information comprises that said detected residual memory space information comprises: when the residual memory space of said object machine satisfies the space of said initiator request; Return the corresponding feedback information of said incidentally message to said starter; Said feedback information comprises said detected residual memory space information, is used to indicate said starter to send the said corresponding data of request message of writing; Perhaps; When the residual memory space of said object machine does not satisfy the space of said initiator request; Then return the corresponding feedback information of said incidentally message to said starter; Said feedback information comprises said detected residual memory space information, is used to indicate said starter can not directly send the said corresponding data of request message of writing.
3. an information piggybacking method is characterized in that, is applied to minicomputer interface and writes in the processing of request process, and said method comprises:
Send incidentally message to object machine, described in the transmit queue of starter incidentally the information next to be sent of message be to write request message;
Receive the corresponding feedback information of said incidentally message that said object machine sends, said feedback information comprises the detected residual memory space information of said object machine;
To indicate the residual memory space size of said object machine to satisfy said when writing the corresponding request space of request message when said residual memory space information, sends data to said object machine.
4. method according to claim 3 is characterized in that, said incidentally message comprises the said length information of writing request message, and the said length information of writing request message is used to indicate the size in the space of said initiator request.
5. an information is incidentally installed, and it is characterized in that, is applied to minicomputer interface and writes in the processing of request process, and said device comprises:
First receiver module is used to receive the incidentally message that starter sends, described in the transmit queue of starter incidentally the information next to be sent of message be to write request message;
Detection module is used to detect the residual memory space of object machine;
First sending module; Be used for sending the corresponding feedback information of said incidentally message to said starter; Write request message so that said starter judges whether to send according to the residual memory space information in the said feedback information, said feedback information comprises said detected residual memory space information.
6. information according to claim 5 is incidentally installed, and it is characterized in that, said incidentally message comprises the said length information of writing request message, and the said length information of writing request message is used to indicate the size in the space of said initiator request;
Said detection residual memory space comprises: judge according to the said length information of writing request message whether the residual memory space of object machine satisfies the space of said initiator request;
The said feedback information that sends said incidentally message correspondence to said starter; Said feedback information comprises that said detected residual memory space information comprises: when the residual memory space that detects said object machine when detection module satisfies the space of said initiator request; Return the corresponding feedback information of said incidentally message to said starter; Said feedback information comprises said detected residual memory space information, is used to indicate said starter to send the said corresponding data of request message of writing; Perhaps; When the residual memory space that detects said object machine when detection module does not satisfy the space of said initiator request; Then return the corresponding feedback information of said incidentally message to said starter; Said feedback information comprises said detected residual memory space information, is used to indicate said starter can not directly send the said corresponding data of request message of writing.
7. an information is incidentally installed, and it is characterized in that, is applied to minicomputer interface and writes in the processing of request process, and said device comprises:
Second sending module is used for sending incidentally message to object machine, described in the transmit queue of starter incidentally the information next to be sent of message be to write request message;
Second receiver module is used to receive the corresponding feedback information of said incidentally message that said object machine sends, and said feedback information comprises the detected residual memory space information of said object machine;
The 3rd sending module is used for that to indicate the residual memory space size of said object machine to satisfy said when writing the corresponding request space of request message when said residual memory space information, sends data to said object machine.
8. information according to claim 7 is incidentally installed, and it is characterized in that, said incidentally message comprises the said length information of writing request message, and the said length information of writing request message is used to indicate the size in the space of said initiator request.
9. information system incidentally is characterized in that be applied to minicomputer interface and write in the processing of request process, said system comprises:
The first information incidentally installs with second information and incidentally installs, wherein:
The said first information incidentally device comprises:
First receiver module is used to receive the incidentally message that starter sends, described in the transmit queue of starter incidentally the information next to be sent of message be to write request message;
Detection module is used to detect the residual memory space of object machine;
First sending module; Be used for sending the corresponding feedback information of said incidentally message to said starter; Write request message so that said starter judges whether to send according to the residual memory space information in the said feedback information, said feedback information comprises said detected residual memory space information;
Said second information incidentally device comprises:
Second sending module is used for sending incidentally message to object machine, described in the transmit queue of starter incidentally the information next to be sent of message be to write request message;
Second receiver module is used to receive the corresponding feedback information of said incidentally message that said object machine sends, and said feedback information comprises the detected residual memory space information of said object machine;
The 3rd sending module is used for that to indicate the residual memory space size of said object machine to satisfy said when writing the corresponding request space of request message when said residual memory space information, sends data to said object machine.
CN2009102088124A 2009-10-29 2009-10-29 Starter, target device and information piggybacking method Active CN101694611B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009102088124A CN101694611B (en) 2009-10-29 2009-10-29 Starter, target device and information piggybacking method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009102088124A CN101694611B (en) 2009-10-29 2009-10-29 Starter, target device and information piggybacking method

Publications (2)

Publication Number Publication Date
CN101694611A CN101694611A (en) 2010-04-14
CN101694611B true CN101694611B (en) 2012-01-04

Family

ID=42093585

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009102088124A Active CN101694611B (en) 2009-10-29 2009-10-29 Starter, target device and information piggybacking method

Country Status (1)

Country Link
CN (1) CN101694611B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075401B (en) * 2011-01-28 2013-08-07 华为技术有限公司 Method, equipment and system for transmitting message on peripheral component interface express (PCIE) bus
CN105955916B (en) * 2016-04-29 2019-09-20 华为技术有限公司 A kind of method that writing immediate, equipment and system

Also Published As

Publication number Publication date
CN101694611A (en) 2010-04-14

Similar Documents

Publication Publication Date Title
CN102063320B (en) Work mode switching methods, USB (Universal Serial Bus) equipment and host machine equipment
US20080195833A1 (en) Systems, methods and computer program products for operating a data processing system in which a file system's unit of memory allocation is coordinated with a storage system's read/write operation unit
US9081662B2 (en) Memory storage device, memory controller thereof, and method for programming data thereof
JP2004157966A (en) End point memory control method and device, usb device, and storage medium
KR20110010707A (en) Direct data transfer between slave devices
CN103955431A (en) Data management method and apparatus in flash memory storage device
CN1825294A (en) Computer system and control method of the same
US20130042028A1 (en) Universal serial bus (usb) device and a usb system including the same
CN102955751A (en) Storer storage device, storer controller and data write-in method
CN101694611B (en) Starter, target device and information piggybacking method
CN102866900A (en) Method and system for updating configuration data of FPGA (Field Programmable Gate Array) control unit
CN103955416A (en) Hard disk management method, device and system
CN104484205A (en) IO (Input/Output) equipment firmware upgrading device and IO equipment firmware upgrading method
CN103389941A (en) Memorizer formatting method, memorizer controller and memorizer memory device
WO2024066438A1 (en) Firmware upgrade method and apparatus
CN105868121B (en) A kind of information processing method and electronic equipment
CN101894052B (en) Upgrading method, system and controller
CN101241478B (en) Data transfer method
CN113568559B (en) Method, device, equipment and medium for processing hard disk write errors
CN111371799B (en) Method, device and equipment for controlling data receiving and transmitting of MCTP (Multi-channel media Port) controller
CN103973534A (en) Analog U disk sharing method and analog U disk sharing equipment
CN114356811A (en) Communication link updating method, device and related equipment
CN102375698B (en) Method for assigning and transmitting data strings, memory controller and memory storage device
CN100356307C (en) Disk drive connected to host system via memory interface circuit, and interface connecting method
CN103514126B (en) The method of reseptance of a kind of data, system and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee

Owner name: HUAWEI DIGITAL TECHNOLOGY (CHENGDU) CO., LTD.

Free format text: FORMER NAME: CHENGDU HUAWEI SYMANTEC TECHNOLOGIES CO., LTD.

CP01 Change in the name or title of a patent holder

Address after: 611731 Chengdu high tech Zone, Sichuan, West Park, Qingshui River

Patentee after: HUAWEI DIGITAL TECHNOLOGIES (CHENG DU) Co.,Ltd.

Address before: 611731 Chengdu high tech Zone, Sichuan, West Park, Qingshui River

Patentee before: CHENGDU HUAWEI SYMANTEC TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220831

Address after: No. 1899 Xiyuan Avenue, high tech Zone (West District), Chengdu, Sichuan 610041

Patentee after: Chengdu Huawei Technologies Co.,Ltd.

Address before: 611731 Qingshui River District, Chengdu hi tech Zone, Sichuan, China

Patentee before: HUAWEI DIGITAL TECHNOLOGIES (CHENG DU) Co.,Ltd.