Disclosure of Invention
In view of the above, the main objective of the present invention is to provide a system and a method for guaranteeing network storage service quality, which can provide QoS guarantee for the critical application of a network storage system and are suitable for the network storage system.
In order to achieve the purpose, the technical scheme provided by the invention is as follows:
a method for guaranteeing network storage service quality, the method comprising:
registering a key application program in a host, and when available resources of the host, a storage device and a network can meet the service quality requirement of the key application program or a key application program class to which the key application program belongs, reserving resources for the key application program or the key application program class on the host, the storage device and the network according to a preset service strategy to establish a resource reservation path;
processing the critical application program by utilizing the corresponding reserved resources on the host computer of the resource reserved path, and transmitting the data to be transmitted to the storage equipment through the resource reserved path;
and when the storage equipment judges that the received data is transmitted through the resource reservation path, processing the data by using the corresponding reserved resources on the storage equipment by using the resource reservation path, and transmitting the new data to be transmitted to the host through the resource reservation path.
Preferably, the registering critical applications in the host further comprises:
and the host judges that the application program is a critical application program according to the attribute information and the QoS (quality of service) parameter of the application program.
Preferably, the registering of the critical application in the host is:
attributes of critical applications and quality of service QoS parameters are recorded in the host, the QoS parameters including storage input/output I/O bandwidth reservation information of the host.
Preferably, said registering the critical application in the host further comprises:
the host determines storage I/O bandwidth reservation information and network bandwidth reservation information of the storage device according to the attributes of the critical application program, and records the storage I/O bandwidth reservation information and the network bandwidth reservation information as QoS parameters of the critical application program in the host.
Preferably, the service policy is:
the service policy for resource reservation in units of a single critical application or the service policy for resource reservation in units of a critical application class.
Preferably, when the service policy is a service policy for performing resource reservation in units of a single critical application program, and when available resources of the host, the storage device, and the network can all meet the quality of service requirement of the critical application program, resources are reserved for the critical application program on the host, the storage device, and the network according to a preset service policy, and a resource reservation path is established as follows:
determining the resource reservation requirement of the key application program according to the attribute and QoS parameter of the key application program and a preset resource reservation requirement strategy;
judging whether the resource reservation requirement can be met or not according to the resource state information of the host, if so, generating a reservation request message supporting a host protocol, wherein the reservation request message carries the attribute and QoS parameter of a key application program, otherwise, exiting the process of establishing a resource reservation path for the key application program;
converting the reservation request message into a reservation request message of a network layer signaling protocol supporting a reservation mechanism, and transmitting the reservation request message of the network layer signaling protocol to a storage device through a network supporting the reservation mechanism;
the storage device converts the received reservation request message of the network layer signaling protocol supporting the reservation mechanism into a reservation request message supporting a storage device protocol;
the storage device determines the resource reservation requirement of the key application program according to the attribute and QoS parameter of the key application program carried by the reservation request message supporting the storage device protocol and a preset resource reservation requirement strategy;
judging whether the resource reservation requirement can be met or not according to the resource state information of the storage equipment, if so, reserving corresponding resources on the storage equipment according to the resource reservation requirement and recording a corresponding resource reservation path to generate a reservation response message supporting a network layer signaling protocol, transmitting the reservation response message to a host through a network supporting a reservation mechanism, and reserving corresponding network resources by the network according to the reservation response message;
and the host reserves corresponding resources on the host according to the received reservation response message and the determined resource reservation requirement of the key application program, and determines a resource reservation path.
Preferably, when the service policy is a service policy for performing resource reservation in units of a critical application class, and when available resources of the host, the storage device, and the network can all meet the quality of service requirement of the critical application program, according to a preset service policy, resources are reserved on the host, the storage device, and the network for the critical application class to which the critical application program belongs, and a resource reservation path is established as follows:
x1, judging whether resource reservation is carried out for the key application program class to which the key application program belongs, if so, switching to a step x2, otherwise, switching to a step x 9;
x2, determining the resource reservation requirement of the key application program according to the attribute and QoS parameter of the key application program and the preset resource reservation requirement strategy;
x3, according to the resource status information of the host, judging whether the idle reserved resource of the key application program in the host can meet the resource reservation requirement of the key application program, if so, exiting the process of establishing the resource reservation path; otherwise, creating a reservation adjustment message, wherein the reservation adjustment message carries the information of the I/O bandwidth needing to be expanded and reserved, and the information of the I/O bandwidth needing to be expanded and reserved comprises the information of the storage I/O bandwidth of the host or the information of the storage I/O bandwidth of the host and the storage equipment and the corresponding network bandwidth information;
x4, converting the reservation adjustment message into a reservation adjustment message of a network layer signaling protocol supporting a reservation mechanism, transmitting the reservation adjustment message of the network layer signaling protocol supporting the reservation mechanism to a storage device through a network supporting the reservation mechanism, and expanding the resource reservation path established for the critical application program class by the network according to the reservation adjustment message;
x5, the storage device converts the received reservation adjustment message of the network layer signaling protocol supporting the reservation mechanism into a reservation adjustment message supporting the storage device protocol;
x6, the storage device determines the resource reservation and expansion requirement of the critical application program according to the storage I/O bandwidth information which is carried by the reservation adjustment message supporting the storage device protocol and needs to expand the reservation;
x7, determining whether the resource reservation expansion requirement can be satisfied according to the resource state information of the storage device, if so, further reserving corresponding bandwidth resources for the key application program class on the storage device according to the resource reservation expansion requirement, generating a reservation adjustment response message of a network layer signaling protocol supporting a reservation mechanism, and transmitting the reservation adjustment response message of the network layer signaling protocol to the host through the network supporting the reservation mechanism;
x8, the host computer further reserves corresponding bandwidth resources for the critical application program class according to the received reservation adjustment response message; exiting the process of establishing the resource reservation path;
x9, determining the resource reservation requirement of the key application program class according to the attribute and QoS parameter of the key application program and the preset resource requirement strategy; judging whether the resource reservation requirement of the key application program class can be met or not according to the resource state information of the host, if so, generating a reservation request message supporting a host protocol, wherein the reservation request message carries the attribute and QoS parameter of the key application program, otherwise, exiting the process of establishing a resource reservation path for the key application program class;
x10, converting the reservation request message into a reservation request message of a network layer signaling protocol supporting a reservation mechanism, and transmitting the reservation request message of the network layer signaling protocol to a storage device through a network supporting the reservation mechanism;
x11, the storage device converts the received reservation request message of the network layer signaling protocol supporting the reservation mechanism into a reservation request message supporting the storage device protocol;
x12, the storage device determines the resource reservation requirement of the key application program class according to the attribute and QoS parameter of the key application program carried by the reservation request message supporting the storage device protocol and the preset resource requirement strategy;
x13, judging whether the resource reservation requirement can be met according to the resource state information of the storage device, if so, reserving corresponding resources on the storage device according to the resource reservation requirement and recording a corresponding resource reservation path, generating a reservation response message of a network layer signaling protocol supporting a reservation mechanism, and transmitting the reservation response message to the host through the network supporting the reservation mechanism;
x14, reserving the corresponding resource on the host according to the received reservation response message and the determined resource reservation requirement of the critical application program class by the host.
Preferably, the processing the critical application program by using the corresponding reserved resource on the host computer by the resource reserved path, and transmitting the data to be transmitted to the storage device through the resource reserved path is:
after judging that the application program to be processed is a key application program, the host determines whether a resource reservation path is established for the key application program or a key application program class to which the key application program belongs, if so, the host processes the key application program by using the corresponding reserved resource of the established resource reservation path on the host, and sends data needing to be transmitted to the storage device through the resource reservation path, otherwise, the host applies for the resource for the application program on the host and processes the application program by using the resource.
Preferably, when the storage device determines that the received data is transmitted through the resource reservation path, processing the data by using the corresponding reserved resource on the storage device through the resource reservation path, and sending new data to be transmitted to the host through the resource reservation path:
the storage device judges whether the received data are transmitted through a resource reservation path, if so, the data are processed by using the corresponding reserved resources on the storage device of the resource reservation path, and the new data needing to be transmitted to the host are sent to the host according to the resource reservation path, otherwise, the data are processed by using the resources for applying for the resources on the storage device for the data.
Preferably, the network is an internet protocol, IP, network;
the host is a starting end of an Internet small computer system interface iSCSI storage system, and the storage equipment is a target end of the iSCSI storage system;
the processing the critical application program by using the corresponding reserved resource on the host computer of the resource reserved path, and transmitting the data to be transmitted to the storage device through the resource reserved path is as follows:
the host generates an event for the critical application program through an SCSI layer event generator of the system, stores the event by using the storage resource determined by the corresponding reserved resource on the host through the resource reserved path, and encapsulates the event into a SCSI CDB (Small computer System interface control data block);
acquiring kernel process scheduling according to the reserved resources, encapsulating the SCSI CDB into an Internet small computer system interface protocol data unit (iSCSI PDU) on an iSCSI layer, and adding the iSCSI PDU into a reserved connection queue determined by the reserved resources;
acquiring kernel process scheduling according to the reserved bandwidth information determined by the reserved resources; mapping the iSCSI PDUs into network protocol data units supporting a reservation mechanism; and transmitting the network protocol data unit supporting the reservation mechanism to a storage device through the resource reservation path by utilizing the kernel process scheduling.
Preferably, the processing the data by using the corresponding reserved resource on the storage device by using the resource reserved path, and transmitting the new data to be transmitted to the host by using the resource reserved path is:
the storage equipment decapsulates the received network protocol data unit supporting the reservation mechanism into iSCSI PDU;
adding the iSCSI PDU to the connection resources determined by the reserved resources;
decapsulating the iSCSI PDU into a SCSI CDB, and adding the SCSI CDB into the system resource determined by the reserved resource;
processing the SCSI CDB by utilizing the kernel process scheduling to generate a new SCSI CDB, and adding the new SCSI CDB into the system resource determined by the reserved resource;
encapsulating the new SCSI CDB into a new iSCSI PDU, and adding the new iSCSI PDU into the connection resource determined by the reserved resource;
acquiring kernel process scheduling according to the reserved resources, and determining scheduling time according to the reserved bandwidth resources determined by the reserved resources;
and converting the new iSCSI PUD into a new network protocol data unit supporting a reservation mechanism, and sending the new network protocol data unit supporting the reservation mechanism to a host according to the resource reservation path by utilizing the kernel process scheduling.
A system for guaranteeing network storage quality of service, the system comprising: a host, a storage device, and a network supporting a reservation mechanism, wherein,
the host is used for registering a key application program, triggering a network and a storage device to respectively reserve corresponding resources for the key application program or a key application program class to which the key application program belongs according to a preset service strategy when the service quality requirement of the key application program can be met, reserving the corresponding resources on the host, and establishing a resource reservation path; processing the critical application program by utilizing the corresponding reserved resources on the host computer of the resource reserved path, and performing data interaction with the storage equipment by utilizing the resource reserved path;
the storage device is used for reserving resources for the critical application program or the critical application program class to which the critical application program belongs according to a preset service strategy; when the received data is judged to be transmitted through the resource reservation path, processing the data by using the corresponding reserved resources on the storage equipment by using the resource reservation path; performing data interaction with a host by using the resource reservation path;
and the network is used for establishing a resource reservation path between the host and the storage equipment for the key application program and realizing data transmission between the host and the storage equipment.
Preferably, the host includes a critical application processing module, an application interface module, and a QoS management module, wherein,
the application program interface module is used for identifying a critical application program from the application programs and registering the critical application program in the QoS management module; judging whether a resource reservation path is established for the key application program or the key application program class to which the key application program belongs according to the resource reservation path information of the key application program in the QoS management module, and if so, triggering a key application program processing module to process the application program by using the corresponding reserved resources on the host computer of the resource reservation path;
the QoS management module comprises a classifier, a scheduler and a controller, wherein:
the classifier is used for recording the attribute, the QoS parameter and the resource reservation path information of the key application program and triggering a reservation manager in a scheduler to create a reservation request message supporting a host protocol;
the scheduler, including a reservation manager and a resource manager, wherein,
the reservation manager is used for determining the resource reservation requirement of the key application program or the key application program class to which the key application program belongs according to the attribute and the QoS parameter of the key application program and a preset resource reservation requirement strategy; the system comprises a resource manager, a controller and a storage device, wherein the resource manager is used for judging whether a resource reservation requirement of a key application program or a key application program class to which the key application program belongs can be met according to resource state information in the resource manager, if so, a reservation request message supporting a host protocol is generated and sent to the controller, and the reservation request message carries attributes and QoS parameters of the key application program, wherein the QoS parameters comprise storage I/O bandwidth reservation information of a host or storage I/O bandwidth reservation information and network bandwidth reservation information of the host and the storage device; according to the reservation response message sent by the controller, instructing the resource manager to reserve resources according to the resource reservation requirement of the key application program or the key application program class to which the key application program belongs, and instructing the classifier to record a corresponding resource reservation path; the system comprises a resource manager, a host and a storage device, wherein the resource manager is used for judging whether idle reserved resources of a key application program class to which the key application program belongs in the host can meet the resource reservation requirement of the key application program according to resource state information in the resource manager, and if the idle reserved resources can not meet the resource reservation requirement of the key application program, determining bandwidth information which needs to be expanded and reserved by the key application program class according to the resource reservation requirement of the key application program, wherein the bandwidth information which needs to be expanded and reserved comprises storage I/O (input/output) bandwidth information of the host or storage I/O bandwidth information of the host and the storage device and corresponding network bandwidth information; creating a reservation adjustment message carrying the bandwidth information; according to the reservation adjustment response message sent by the controller, indicating the resource manager to reserve resources according to the resource reservation expansion requirement of the key application program class; according to a preset maintenance period, periodically sending the reservation request message supporting the host protocol to a controller, and maintaining a successfully established resource reservation path in a classifier;
the resource manager is used for storing reserved resource information in the host, managing the resources of the host and sending resource state information to the reserved manager; performing resource reservation according to the indication of the reservation manager;
the controller is used for converting the reservation request message sent by the reservation manager into a reservation request message of a network layer signaling protocol supporting a reservation mechanism and transmitting the reservation request message supporting the network layer protocol to the storage device through a network supporting the reservation mechanism; converting the reservation adjustment message sent by the reservation manager into a reservation adjustment message supporting a network layer signaling protocol, converting a reservation response message or a reservation adjustment response message supporting a network protocol into a reservation response message or a reservation adjustment response message supporting a host protocol, and sending the reservation response message or the reservation adjustment response message to the reservation manager in the scheduler; converting iSCSI PDU generated by the key application program processing module into a network protocol data unit supporting a reservation mechanism, and sending the network protocol data unit to the key application program processing module;
the key application program processing module is used for processing the key application program or the key application program similar to the key application program by utilizing reserved resources of the key application program on the host computer and sending data needing to be transmitted to the storage device through a resource reserved path of the key application program; converting the generated iSCSI PDU into a network protocol data unit supporting a reservation mechanism by using a controller in a QoS management module, and transmitting the network protocol data unit to storage equipment by using a network supporting the reservation mechanism;
the network is used for establishing or maintaining a resource reservation path according to the reservation request message; for augmenting the established resource reservation path according to the reservation adjustment message.
Preferably, the storage device includes: a QoS management module and a critical application processing module, wherein:
a QoS management module comprising a controller and a scheduler, wherein,
the controller is used for converting the received reservation request message or reservation adjustment message supporting the network layer protocol into a reservation request message supporting a storage device protocol, sending the reservation request message to a reservation manager of the scheduler, converting a reservation response message or reservation adjustment response message sent by the reservation manager into a reservation response message or reservation adjustment response message supporting the network layer protocol, and sending the reservation response message or reservation adjustment response message to the host through a network supporting a reservation mechanism; the device comprises a key application program processing module, a reserved path transmission module, a de-encapsulation module and a data transmission module, wherein the key application program processing module is used for receiving data transmitted by the reserved path from a server;
a scheduler comprising a reservation manager and a resource manager, wherein,
the reservation manager is used for determining the resource reservation requirement of the key application program according to the attribute and the QoS parameter of the key application program carried by the reservation request message received from the controller and according to a preset resource reservation requirement strategy; judging whether the storage equipment can meet the resource reservation requirement according to the resource state information in the resource manager, if so, indicating the resource manager to reserve the resource according to the resource reservation requirement, recording the reserved resource and a corresponding resource reservation path, generating a reservation response message supporting a storage equipment protocol and sending the reservation response message to the controller; judging whether resource reservation can be carried out according to the storage I/O bandwidth information carried by the reservation adjustment message received from the slave controller, if so, indicating a resource manager to further reserve resources for the key application program class according to the storage I/O bandwidth information, generating a reservation adjustment response message supporting a storage device protocol, and sending the reservation adjustment response message to the controller;
the resource manager is used for sending resource state information to the reservation manager; reserving resources on the storage device according to the indication of the reservation manager;
the key application program processing module is used for determining corresponding reserved resources on the storage equipment according to the resource reserved path of the transmission data by inquiring the resource manager of the scheduler; and processing the data sent by the controller by using the reserved resources, converting the new data obtained after processing into a network protocol data unit supporting a reservation mechanism by using the controller of the QoS management module, and sending the network protocol data unit to the host through a network supporting the reservation mechanism.
In summary, the system and method for guaranteeing network storage service quality provided by the present invention realize the joint reservation of the storage I/O bandwidth and the network transmission bandwidth based on the reservation mechanism, thereby providing end-to-end deterministic service quality guarantee for critical network storage applications.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
The basic idea of the invention is: based on the IntServ model, a reservation mechanism is utilized to simultaneously guarantee storage I/O bandwidth and network transmission bandwidth required by the critical network storage application, thereby providing deterministic service quality guarantee for the critical network storage application.
Fig. 1 is a schematic structural diagram of a system for guaranteeing network storage service quality according to the present invention, as shown in fig. 1, the system includes: a host 1, a storage device 2, and a network 3 supporting a reservation mechanism, wherein,
the system comprises a host 1, a network 3 and a storage device 2, wherein the host 1 is used for registering a key application program, and when the service quality requirement of the key application program can be met, the network 3 and the storage device 2 which support a reservation mechanism are triggered to respectively reserve corresponding resources for the key application program or a key application program class to which the key application program belongs according to a preset service strategy, reserve corresponding resources on the host 1 and establish a resource reservation path; processing the critical application program by using the corresponding reserved resources on the host 1 of the resource reserved path, and performing data interaction with the storage device by using the resource reserved path;
the storage device 2 is configured to reserve resources for the critical application program or a critical application program class to which the critical application program belongs according to a preset service policy; when judging that the received data is transmitted through the resource reservation path, processing the data by using the corresponding reserved resources on the storage device 2 by using the resource reservation path; performing data interaction with the host 1 by using the reserved path;
and the network 3 is used for establishing a resource reservation path between the host 1 and the storage device 2 for the critical application program and realizing data transmission between the host 1 and the storage device 2.
The present invention is applicable to a Storage Area Network (SAN) storage system using a network interconnection supporting a reservation mechanism, and the following takes an iSCSI storage system in the SAN storage system and an Internet Protocol (IP) network supporting the reservation mechanism as an example to describe the system structure of the present invention in detail. It should be noted that the host of the present invention is the initiator of the iSCSI storage system, and the storage device is the target of the iSCSI storage system.
As shown in fig. 1, the host 1 mainly includes an application interface module 11, a QoS management module 12, and a critical application processing module 13, wherein,
the application program interface module 11 is used for identifying a critical application program from the application programs and registering the critical application program in the QoS management module 12; according to the resource reservation path information of the critical application program in the QoS management module 12, determining whether a resource reservation path has been established for the critical application program or a critical application program class to which the critical application program belongs, and if so, triggering the critical application program processing module 13 to process the application program by using the corresponding reserved resource on the host 11 of the resource reservation path;
the QoS management module 12, including a classifier 121, a scheduler 122 and a controller 123,
wherein,
the classifier 121 is configured to record attributes, QoS parameters, and resource reservation path information of the key application, and trigger the reservation manager 1221 in the scheduler 122 to create a reservation request message supporting a host protocol;
scheduler 122, including reservation manager 1221 and resource manager 1222, wherein,
the reservation manager 1221 is configured to determine, according to the attribute and the QoS parameter of the critical application program and according to a preset resource reservation requirement policy, a resource reservation requirement of the critical application program or a critical application program class to which the critical application program belongs; the system comprises a resource manager, a controller 123 and a controller, wherein the resource manager is used for judging whether a resource reservation requirement of a critical application program or a critical application program class to which the critical application program belongs can be met according to resource state information in the resource manager, if so, a reservation request message supporting a host protocol is generated and sent to the controller 123, and the reservation request message carries attributes and QoS parameters of the critical application program, wherein the QoS parameters comprise storage I/O bandwidth reservation information of the host or storage I/O bandwidth reservation information and network bandwidth reservation information of the host and storage equipment; instructing the resource manager 1222 to reserve resources according to the resource reservation requirement of the critical application or the critical application class to which the critical application belongs, and instructing the classifier 121 to record the corresponding resource reservation path, according to the reservation response message sent by the controller 123; the system is used for judging whether the idle reserved resources of the key application program class to which the key application program belongs in the host 1 can meet the resource reservation requirement of the key application program according to the resource state information in the resource manager 1222, and if the idle reserved resources cannot meet the resource reservation requirement of the key application program, determining that the key application program class needs to expand the reserved bandwidth information according to the resource reservation requirement of the key application program, wherein the bandwidth information needing to expand the reservation comprises the storage I/O bandwidth information of the host or the storage I/O bandwidth information of the host and the storage device and the corresponding network bandwidth information; creating a reservation adjustment message carrying the bandwidth information; instructing the resource manager 1222 to reserve resources according to the resource reservation extension requirement of the critical application class according to the reservation adjustment response message sent by the controller 123; according to a preset maintenance period, maintaining the successfully established resource reservation path in the classifier 121 by periodically sending the reservation request message supporting the host protocol to the controller 123;
the resource manager 1222 is configured to store reserved resource information in the host 1, manage resources of the host 1, and send resource status information to the reservation manager 1221; resource reservation is performed according to the instruction of the reservation manager 1221;
the controller 123 is configured to convert the reservation request message sent by the reservation manager 1221 into a reservation request message of a network layer signaling protocol supporting a reservation mechanism, and transmit the reservation request message supporting the network layer signaling protocol to the storage device 2 through the network supporting the reservation mechanism; converting a reservation adjustment message sent by a reservation manager into a reservation adjustment message supporting a network layer signaling protocol, wherein the conversion comprises mapping storage I/O bandwidth information carried by the reservation adjustment message into corresponding network bandwidth information; converting the reservation response message or the reservation adjustment response message supporting the network protocol into a reservation response message or a reservation adjustment response message supporting the host protocol, and transmitting the reservation response message or the reservation adjustment response message to the reservation manager 1221 in the scheduler 122; the iSCSI PDU generated by the key application program processing module is converted into a network protocol data unit supporting a reservation mechanism and is sent to the key application program processing module 13;
a critical application processing module 13, configured to utilize reserved resources of a critical application on the host 1, process the critical application or a critical application similar to the critical application, and send data to be transmitted to the storage device 2 through a resource reserved path of the critical application; the generated iscsip du is converted into a network protocol data unit supporting the reservation mechanism by the controller 123 in the QoS management module 12, and is sent to the storage device 2 by the network supporting the reservation mechanism.
The storage device 2 includes: a QoS management module 21 and a critical application processing module 22, wherein:
the QoS management module 21 includes a controller 211 and a scheduler 212, wherein,
the controller 211 is configured to convert the received reservation request message or reservation adjustment message supporting the network layer protocol into a reservation request message supporting a storage device protocol, and send the reservation request message or reservation adjustment message to the reservation manager 2121 of the scheduler 202; converting the reservation response message or the reservation adjustment response message sent by the reservation manager 2121 into a reservation response message or a reservation adjustment response message supporting a network layer protocol, and sending the reservation response message or the reservation adjustment response message to the host 1 through the network 3 supporting a reservation mechanism; the device comprises a key application program processing module, a reserved path transmission module, a de-encapsulation module and a data transmission module, wherein the key application program processing module is used for receiving data transmitted by the reserved path from a server;
scheduler 212, including reservation manager 2121 and resource manager 2122, wherein,
a reservation manager 2121, configured to determine, according to the attribute and the QoS parameter of the critical application program carried in the reservation request message received from the controller 211, a resource reservation requirement of the critical application program according to a preset resource reservation requirement policy; judging whether the storage device 2 can meet the resource reservation requirement according to the resource state information in the resource manager 2122, if so, instructing the resource manager 2122 to reserve resources according to the resource reservation requirement, recording the reserved resources and the corresponding resource reservation path, generating a reservation response message supporting a storage device protocol, and sending the reservation response message to the controller 211; judging whether resource reservation can be performed according to the storage I/O bandwidth information carried by the reservation adjustment message received from the controller 211, if so, indicating the resource manager 2122 to further reserve resources for the critical application program according to the storage I/O bandwidth information, generating a reservation adjustment response message supporting a storage device protocol, and sending the reservation adjustment response message to the controller;
a resource manager 2122, configured to send resource status information to the reservation manager 2121; reserving resources on the storage device 2 according to the instruction of the reservation manager 2122;
the critical application processing module 22 is configured to determine, by querying the resource manager 2122 of the scheduler 212, a corresponding reserved resource on the storage device 2 according to the resource reservation path for transmitting data; the reserved resources are used for processing the data sent by the controller, the controller 211 of the QoS management module 21 is used for converting the new data obtained after processing into a network protocol data unit supporting the reservation mechanism, and the network protocol data unit is sent to the host 1 through the network supporting the reservation mechanism.
The network 3 is used for establishing or maintaining the resource reservation path according to the reservation request message and expanding the established resource reservation path according to the reservation adjustment message.
Aiming at the system for guaranteeing the network storage service quality, the invention also provides a method for guaranteeing the network storage service quality. As shown in fig. 2, the method mainly includes:
step 201, registering a critical application program in a host, and when available resources of the host, a storage device and a network can all meet a service quality requirement of the critical application program, reserving resources on the host, the storage device and the network for the critical application program or a critical application program class to which the critical application program belongs according to a preset service policy, and establishing a resource reservation path between the host and the storage device.
In practical application, before registering a critical application program in a host, the host needs to determine whether the application program is the critical application program according to a preset critical application program partition rule and according to attribute information and QoS parameters of the application program, so as to reserve resources for the critical application program in subsequent steps, thereby ensuring the service quality of the critical application program.
Registering the critical application in the host is to record the attributes and QoS parameters of the critical application in the host. The QoS parameter at least comprises storage I/O bandwidth reservation information of the host, so that the storage I/O bandwidth reservation information and the network bandwidth reservation information of the corresponding storage device can be determined according to the storage I/O bandwidth reservation information in the subsequent steps, and resource reservation on the network and the storage device is realized.
In practical applications, the storage I/O bandwidth reservation information and the network bandwidth reservation information of the corresponding storage device may also be determined in the registration process, and stored in the host as the QoS parameter, and correspondingly, the registering the critical application program in the host further includes:
the host determines storage I/O bandwidth reservation information and network bandwidth reservation information of the storage device according to the attributes of the critical application program, and records the storage I/O bandwidth reservation information and the network bandwidth reservation information as QoS parameters of the critical application program in the host,
in this way, in the subsequent steps, the QoS parameters are directly carried in the message for establishing the reserved path, that is, the storage I/O bandwidth reservation information of the storage device and the network bandwidth reservation information can be notified to the storage device and the network, so as to implement resource reservation on the network and the storage device.
In practical applications, the preset service policy may have two types:
a is with the service strategy that single key application program is the unit to carry on the resource reservation, the resource that is reserved on the basis of the service strategy can meet the resource reservation needs of the single key application program, the concrete resource reservation quantity, is decided by the demand strategy of reservation of the preset resource;
the other is a service strategy for reserving resources by taking a key application program class as a unit, resources reserved based on the service strategy can meet the requirements of a plurality of key application programs in the key application program class, and the specific resource reservation quantity is determined by a preset resource reservation requirement strategy. The policy may allow multiple critical applications with some common characteristics, i.e., multiple critical applications belonging to the same critical application class, to share the successfully established resource reservation path and reserved resources on the host and storage devices.
It should be noted that the preset service policy and the resource reservation requirement policy are both known to the host and the storage device.
When the service policy is to reserve resources in units of a single critical application, the specific implementation method of this step may be:
recording attributes and QoS parameters of a critical application program in a host, wherein the QoS parameters comprise storage I/O bandwidth reservation information of the host or storage I/O bandwidth reservation information of the host and a storage device and corresponding network bandwidth reservation information;
determining the resource reservation requirement of the key application program according to the attribute and QoS parameter of the key application program and a preset resource reservation requirement strategy;
judging whether the resource reservation requirement can be met or not according to the resource state information of the host, if so, generating a reservation request message supporting a host protocol, wherein the reservation request message carries the attribute and QoS parameter of a key application program, otherwise, exiting the process of establishing a resource reservation path for the key application program;
converting the reservation request message into a reservation request message of a network layer signaling protocol supporting a reservation mechanism, and transmitting the reservation request message supporting the network layer signaling protocol to a storage device through a network supporting the reservation mechanism;
here, through the conversion, the reservation request message supporting the network layer signaling protocol not only carries the attribute and QoS parameter of the critical application program, but also carries the corresponding network bandwidth reservation information.
It should be noted that, if the corresponding network bandwidth reservation information is determined in the process of registering the critical application program, that is, the QoS parameter carries the network bandwidth reservation information, in the conversion process, the network bandwidth reservation information needs to be extracted from the QoS parameter and separately put into the reservation request message supporting the network layer signaling protocol, so that the network directly reserves the corresponding network bandwidth according to the network bandwidth reservation information in the reservation request message in the subsequent step; if the corresponding network bandwidth reservation information is not determined in the process of registering the critical application program, that is, the QoS parameter does not carry the network bandwidth reservation information, in the conversion process, the storage I/O bandwidth reservation information of the host in the QoS parameter carried by the reservation request message needs to be mapped into the corresponding network bandwidth reservation information.
Here, the mapping between the storage I/O bandwidth and the corresponding network bandwidth may be implemented according to the formula Y ═ X × R × 8. Wherein X is the storage bandwidth and the unit is MB/s; y is network bandwidth with the unit of Mb/s; r is a proportionality coefficient and is set by the system according to the network flow; x is proportional to Y. The conversion between the storage I/O bandwidth and the corresponding network bandwidth, which will be described later, can be implemented according to the above method, and is not described again.
The storage device converts the received reservation request message supporting the network layer signaling protocol into a reservation request message supporting a storage device protocol;
here, it should be noted that, if the QoS parameter carried by the reservation request message supporting the network layer signaling protocol includes storage I/O bandwidth reservation information of a storage device, in the above conversion process, the storage I/O bandwidth reservation information of the storage device needs to be extracted from the QoS parameter and separately placed in the reservation request message supporting the storage device protocol; if the QoS parameter does not carry the storage I/O bandwidth reservation information of the storage device, in the conversion process, the network bandwidth reservation information carried by the reservation request message supporting the network layer signaling protocol needs to be mapped to the storage I/O bandwidth reservation information of the corresponding storage device.
The storage device determines the resource reservation requirement of the key application program according to the attribute and QoS parameter of the key application program carried by the reservation request message supporting the storage device protocol and a preset resource reservation requirement strategy;
judging whether the resource reservation requirement can be met according to the resource state information of the storage equipment, if so, reserving corresponding resources on the storage equipment according to the resource reservation requirement and recording a corresponding resource reservation path, generating a reservation response message supporting a network protocol, and transmitting the reservation response message to the host through a network supporting a reservation mechanism;
and the host reserves corresponding resources on the host according to the received reservation response message and the determined resource reservation requirement of the key application program, and records the resource reservation path information of the key application program.
When the service policy is a service policy for resource reservation in units of a critical application class, the specific implementation method of this step may be:
step x1, judging whether resource reservation is already carried out for the key application program class to which the key application program belongs, if so, switching to step x2, otherwise, switching to step x 9;
step x2, determining the resource reservation requirement of the critical application program according to the attribute and QoS parameter of the critical application program and the preset resource reservation requirement strategy;
step x3, according to the resource status information of the host, judging whether the idle reserved resource of the key application program in the host can meet the resource reservation requirement of the key application program, if so, exiting the process of establishing the resource reservation path; otherwise, creating a reservation adjustment message;
in practical applications, due to the sharing of reserved resources by multiple similar critical applications, there may be a case where the idle reserved resources of the critical application class in the host cannot meet the resource reservation requirement of the critical application, and at this time, the reserved resources need to be expanded to meet the requirement of the critical application. In practical application, the storage I/O bandwidth resources are mainly expanded, and the number of the reserved resources to be expanded specifically can be determined by the system according to actual needs, as long as the expanded reserved resources of the critical application program class can meet the needs of the critical application program. In this step, a process of expanding reserved resources for the critical application program class is initiated by creating a reservation adjustment message, so that the critical application program class obtains more reserved resources, thereby ensuring the needs of the critical application program.
In addition, in practical application, the situation that the idle reserved resource of the key application program class that has successfully performed resource reservation cannot meet the requirement of the key application program can also be avoided in a manner that the host monitors the use state of the reserved resource, and the specific method may be as follows: when the usage proportion of the reserved resources of the key application program class exceeds a preset threshold value, a process of expanding the reserved resources for the key application program class is initiated by creating a reservation adjustment message, so that the reserved resource state of the key application program class is adjusted to a state capable of meeting the needs of the key application program.
Here, the reservation adjustment message at least carries storage I/O bandwidth information of the host that needs to expand the reservation, and in practical application, may further carry corresponding network bandwidth information and storage IO bandwidth information of the storage device, so that mapping between the storage I/O bandwidth information and the corresponding network bandwidth information is not required to be performed in subsequent steps.
Step x4, converting the reservation adjustment message into a reservation adjustment message supporting network layer signaling protocol, transmitting the reservation adjustment message supporting network layer signaling protocol to a storage device through a network supporting a reservation mechanism, and the network expanding the resource reservation path established for the critical application program class according to the reservation adjustment message;
here, when the reservation adjustment message does not carry corresponding network bandwidth information, the converting includes mapping storage I/O bandwidth information carried by the reservation adjustment message to corresponding network bandwidth information.
Step x5, the storage device converts the received reservation adjustment message supporting the network layer signaling protocol into a reservation adjustment message supporting the storage device protocol;
here, when the reservation adjustment message does not carry storage I/O bandwidth information of a storage device, the converting includes mapping network bandwidth information carried by the reservation adjustment message supporting the network layer protocol to storage I/O bandwidth information;
step x6, the storage device determines the resource reservation and expansion requirement of the critical application program according to the storage I/O bandwidth information which needs to expand the reservation and is carried by the reservation adjustment message supporting the storage device protocol;
step x7, according to the resource status information of the storage device, judging whether the resource reservation expansion requirement can be satisfied, if so, further reserving the corresponding bandwidth resource for the key application program class on the storage device according to the resource reservation expansion requirement, generating a reservation adjustment response message supporting a network protocol, and transmitting the reservation adjustment response message to the host through the network supporting a reservation mechanism;
step x8, the host computer further reserves corresponding bandwidth resources for the critical application program class according to the received reservation adjustment response message; exiting the process of establishing the resource reservation path;
step x9, determining the resource reservation requirement of the key application program class according to the attribute and QoS parameter of the key application program and the preset resource requirement strategy; judging whether the resource reservation requirement of the key application program class can be met or not according to the resource state information of the host, if so, generating a reservation request message supporting a host protocol, wherein the reservation request message carries the attribute and QoS parameter of the key application program, otherwise, exiting the process of establishing a resource reservation path for the key application program class;
step x10, converting the reservation request message into a reservation request message of a network layer signaling protocol supporting a reservation mechanism, and transmitting the reservation request message of the network layer signaling protocol to a storage device through a network supporting the reservation mechanism;
here, if the QoS parameter carried by the reservation request message includes the network bandwidth reservation information, in the above conversion process, the network bandwidth reservation information needs to be extracted from the QoS parameter and separately placed into the reservation request message supporting the network layer signaling protocol, and if the QoS parameter carried by the reservation request message does not include the network bandwidth reservation information, in the above conversion process, the storage I/O bandwidth information of the host in the QoS parameter needs to be mapped into the corresponding network bandwidth information.
Step x11, the storage device converts the received reservation request message of the network layer signaling protocol supporting the reservation mechanism into a reservation request message supporting the storage device protocol;
here, if the QoS parameter carried by the reservation request message of the network layer signaling protocol supporting the reservation mechanism includes storage I/O bandwidth reservation information of a storage device, in the above conversion process, the storage I/O bandwidth reservation information of the storage device needs to be extracted from the QoS parameter and separately put into the reservation request message supporting the storage device protocol, and if the QoS parameter does not include the storage I/O bandwidth reservation information of the storage device, in the above conversion process, the network bandwidth reservation information carried by the reservation request message of the network layer signaling protocol supporting the reservation mechanism needs to be mapped into the storage I/O bandwidth reservation information of the corresponding storage device;
step x12, the storage device determines the resource reservation requirement of the key application program class according to the attribute and QoS parameter of the key application program carried by the reservation request message supporting the storage device protocol and the preset resource requirement strategy;
step x13, according to the resource status information of the storage device, judging whether the resource reservation requirement can be satisfied, if so, reserving the corresponding resource on the storage device according to the resource reservation requirement and recording the corresponding resource reservation path, generating a reservation response message of the network layer signaling protocol supporting the reservation mechanism, and transmitting the reservation response message to the host through the network supporting the reservation mechanism;
step x14, the host reserves the corresponding resource on the host according to the received reservation response message and the determined resource reservation requirement of the critical application program class, and records the resource reservation path information of the critical application program class.
Through the scheme, the resource reservation path can be established for the key application program or the key application program class, in practical application, according to the network requirement supporting the reservation request mechanism, after the resource reservation path is successfully established, the host needs to periodically generate the reservation request message according to the preset maintenance period, and the network is notified to maintain the resource reservation path by using the reservation request message.
Step 202, processing the critical application program by using the corresponding reserved resource on the host computer of the resource reserved path, and transmitting the data to be transmitted to the storage device through the resource reserved path.
In practical application, when a host needs to process an application program, it is first required to determine whether the application program to be processed is a critical application program, if so, determine whether a resource reservation path has been established for the critical application program or the critical application program class to which the critical application program belongs by querying resource reservation path information of the critical application program, and if so, process the critical application program by using a corresponding reserved resource on the host of the established resource reservation path. Thus, if the application to be processed is a critical application and the system has successfully established a resource reservation path for the critical application or the critical application class to which the critical application belongs, the system processes the critical application using the corresponding reserved resources on the host or the storage device of the resource reservation path.
In practical application, when it is determined that the application program to be processed is a non-critical application program, or although the application program is a critical application program, the resource reservation path cannot be successfully established for the application program or the critical application program class to which the application program belongs, the system may process the application programs in a normal manner, that is, it is necessary to wait for resources first, obtain corresponding resources, and then process the applications by using the resources.
In practical application, if the host and the storage device are respectively a start end and a target end of an iSCSI storage system, and the network is an IP network supporting a reservation mechanism, the specific method of this step may be:
the host generates an event for the critical application program through an SCSI layer event generator of the system, stores the event by using the storage resource determined by the corresponding reserved resource on the host through the resource reserved path, and encapsulates the event into a SCSI CDB (Small computer System interface control data block);
acquiring kernel process scheduling according to the reserved resources, encapsulating the SCSI CDB into an Internet small computer system interface protocol data unit (iSCSI PDU) on an iSCSI layer, and adding the iSCSI PDU into a reserved connection queue determined by the reserved resources;
acquiring kernel process scheduling according to the reserved bandwidth information determined by the reserved resources; mapping the iSCSI PDUs into network protocol data units supporting a reservation mechanism; and transmitting the network protocol data unit supporting the reservation mechanism to a storage device through the resource reservation path by utilizing the kernel process scheduling.
And 203, when the storage device judges that the received data is transmitted through the resource reservation path, processing the data by using the corresponding reserved resource on the storage device through the resource reservation path, and transmitting the new data to be transmitted to the host through the resource reservation path.
In practical application, after receiving data, the storage device needs to first determine whether the data is transmitted through a resource reservation path, if so, the data is processed by using a corresponding reserved resource on the storage device through the resource reservation path, and new data to be transmitted to a host is sent to the host according to the resource reservation path.
When the received data is judged not to be transmitted from the resource reservation path, the data is processed according to a normal mode, namely, the resource is required to be applied first, and the corresponding resource is obtained and then is processed by utilizing the resource.
In practical application, if the host and the storage device are respectively a start end and a target end of an iSCSI storage system, and the network is an IP network supporting a reservation mechanism, the specific method in this step is as follows:
the storage equipment decapsulates the received network protocol data unit supporting the reservation mechanism into iSCSI PDU;
adding the iSCSI PDU to the connection resources determined by the reserved resources;
decapsulating the iSCSI PDU into a SCSI PDU and adding the SCSI PDU into the system resource determined by the reserved resource;
processing the SCSI CDB by utilizing the kernel process scheduling to generate a new SCSI CDB, and adding the new SCSI CDB into the system resource determined by the reserved resource;
encapsulating the new SCSI CDB into a new iSCSI PDU, and adding the new iSCSI PDU into the connection resource determined by the reserved resource;
acquiring kernel process scheduling according to the reserved resources, and determining scheduling time according to the reserved bandwidth resources determined by the reserved resources;
and converting the new iSCSI PUD into a new network protocol data unit supporting a reservation mechanism, and sending the new network protocol data unit supporting the reservation mechanism to a host according to the resource reservation path by utilizing the kernel process scheduling.
The following describes in detail a specific method for guaranteeing the network storage service quality based on the system for guaranteeing the network storage service quality of the present invention, by using a first embodiment of the method of the present invention. In the first embodiment, an internet small computer system interface iSCSI storage system is taken as an example, a network between a host and a storage device is an IP network supporting a reservation mechanism, a start-up end of the iSCSI storage system is the host of the present invention, a target end of the iSCSI storage system is the storage device of the present invention, and an adopted service policy is a service policy for resource reservation in units of a single critical application program. As shown in fig. 3, the first embodiment mainly includes:
step 301, the host initiates a process to perform resource reservation for critical applications.
As shown in fig. 4, the specific method of this step is:
step 401, the application program interface module of the host computer determines whether the application program is a critical application program, if so, step 402 is executed, otherwise, the process of creating the resource reservation path is exited.
In this step, the application program interface module of the host determines whether the application program is a critical application program according to the preset rule and the attribute information and the QoS parameter of the application program.
Step 402, the application program interface module of the host registers the critical application program in the classifier in the QoS management module of the host and triggers the reservation manager in the scheduler of the host to create a reservation request message supporting the host protocol.
In this step, the registering the critical application in the classifier is: recording the attribute and QoS parameter of the critical application program in the classifier, and initializing the corresponding resource reservation path information field to be null.
Step 403, the reservation manager in the scheduler of the host determines the resource reservation requirement of the critical application program according to the attribute and QoS parameter of the critical application program;
step 404, the reservation manager in the scheduler of the host determines whether the resource reservation requirement of the critical application program can be met according to the resource state information in the resource manager, if so, step 405 is executed, otherwise, the process of creating the resource reservation path is exited.
Step 405, a reservation manager in a scheduler of the host generates a reservation request message supporting a host protocol and sends the reservation request message to a controller of the host, wherein the reservation request message carries attributes of a critical application program and QoS parameters, and the QoS parameters include storage input/output bandwidth reservation information of the host.
Step 406, the controller of the host converts the reservation request message into a reservation request message supporting a network layer signaling protocol, and transmits the reservation request message supporting the network layer signaling protocol to the storage device through the network supporting the reservation mechanism.
In this step, the converting includes mapping storage input/output I/O bandwidth information of the host in the QoS parameter carried by the reservation request message to corresponding network bandwidth information, so that the network reserves network resources according to the message.
Step 407, the controller of the storage device converts the received reservation request message supporting the network layer protocol into a reservation request message supporting the storage device protocol, and sends the reservation request message to the reservation manager of the scheduler of the storage device.
In this step, the converting includes mapping the network bandwidth information carried in the reservation request message supporting the network layer protocol to the storage input/output bandwidth information of the storage device, so that the reservation manager of the storage device determines the resource reservation requirement and performs the corresponding resource reservation in the subsequent steps.
Step 408, the reservation manager of the storage device determines the resource reservation requirement of the critical application program according to the attribute and the QoS parameter of the critical application program carried by the reservation request message received from the controller of the storage device;
step 409, the reservation manager of the storage device judges whether the storage device can meet the resource reservation requirement according to the resource state information in the resource manager, if so, step 409 is executed.
In practical application, when the storage device determines that the resource reservation requirement cannot be met, the host may be notified that the resource reservation for the critical application program cannot be successfully performed by sending a reservation response message carrying path establishment failure information to the host, or may not send a reservation response message to the host, and the host may know that the resource reservation for the critical application program cannot be successfully performed after not receiving the reservation response message sent by the storage device within a preset time. Here, the create resource reservation path process is exited when the storage device is unable to satisfy the resource reservation requirement.
Step 410, the reservation manager of the storage device instructs the resource manager of the storage device to reserve resources according to the resource reservation requirement, records the reserved resources and the corresponding resource reservation path, generates a reservation response message supporting the storage device protocol, and sends the reservation response message to the controller of the storage device.
When the step is implemented specifically, the reservation manager records the reserved resources and the corresponding resource reservation paths in the reserved resource and resource reservation path relation table stored by the reservation manager.
Step 411, the controller of the storage device converts the reservation response message into a reservation response message supporting a network layer protocol, and sends the reservation response message to the host through the network supporting the reservation mechanism.
Step 412, the controller of the host converts the reservation response message supporting the network protocol into a reservation response message supporting the host protocol, and sends the reservation response message to the reservation manager in the scheduler of the host.
Step 413, the reservation manager of the host instructs the resource manager to reserve resources according to the resource reservation requirement of the critical application program according to the reservation response message sent by the controller, and instructs the classifier to record corresponding resource reservation path information.
Step 414, the resource manager of the host performs resource reservation according to the indication of the reservation manager and the resource reservation requirement of the critical application program; and the classifier of the host records corresponding resource reservation path information in the resource reservation path information field of the key application program according to the indication of the reservation manager.
Step 302, the host and the storage device process the critical application using the reserved resources of the respective critical application, respectively.
As shown in fig. 5, the specific implementation method of this step is:
step 501, the application program interface module of the host determines that the application program to be processed is a critical application program and has established a resource reservation path for the critical application program, and triggers the critical application program processing module of the host to process the critical application program by using the reserved resource corresponding to the resource reservation path.
In this step, after the application program interface module of the host determines that the application program is a critical application program, it determines whether a resource reservation path has been successfully created for the critical application program by querying a reserved resource path information field of the critical application program in a classifier of the QoS management module. If the reserved resource path information field is empty, judging that the resource reserved path cannot be successfully established for the key application program, and then only processing the application program according to the existing application program processing mode since no reserved resource can be used; if the information field is not empty, the critical application program is judged to have successfully established a resource reservation path for the critical application program, and then the critical application program processing module is triggered to process the critical application program by utilizing the reserved resources corresponding to the path information by notifying the critical application program and the path information in the resource reservation path information field to the critical application program processing module of the host.
Step 502, the critical application program processing module of the host computer processes the critical application program by using the reserved resource corresponding to the resource reserved path on the host computer, and transmits the data to be transmitted to the storage device through the resource reserved path.
The specific method of the step is as follows:
the critical application program processing module acquires reserved resources corresponding to the resource reserved path from the reservation management of the scheduler according to the resource reserved path information;
the critical application program processing module generates an event for the critical application program through an SCSI layer event generator of the system, stores the event by using the storage resource determined by the reserved resource, and encapsulates the event into a small computer system interface control data block (SCSI CDB); obtaining kernel process scheduling according to the reserved resources, encapsulating the SCSI CDB into small computer system interface protocol data units (iSCSI PDU) on an iSCSI layer, and adding the iSCSI PDU into a reserved connection queue determined by the reserved resources; acquiring kernel process scheduling according to the reserved bandwidth information determined by the reserved resources;
the critical application program processing module maps the iSCSI PDU into a network protocol data unit supporting a reservation mechanism by using a controller in a QoS management module of the host;
and the key application program processing module transmits the network protocol data unit supporting the reservation mechanism to the storage device through the resource reservation path by utilizing the kernel process scheduling.
Step 503, the controller of the storage device determines that the received data is the data transmitted by the resource reservation path, decapsulates the data, and sends the decapsulated data to the critical application processing module of the storage device.
In this step, the received network protocol data unit supporting the reservation mechanism is decapsulated into iSCSI PDU through decapsulation operation of the storage device.
Here, how to determine the transmission path of the received data is well known to those skilled in the art, and will not be described in detail here.
Step 504, the critical application program processing module of the storage device uses the corresponding reserved resource on the storage device by the resource reserved path to process the data of the critical application program, and transmits the new data to be transmitted to the host by using the resource reserved path.
The specific method of the step is as follows:
adding the iSCSI PDU into the corresponding resource determined by the reserved resource by a critical application program processing module of the storage device;
decapsulating the iSCSI PDU into SCSI PDU and adding the SCSI PDU into the corresponding resource determined by the reserved resource;
acquiring kernel process scheduling according to the reserved resources, and determining processing time according to the reserved bandwidth resources determined by the reserved resources;
decapsulating the SCSI PDU into a SCSI CDB, and adding the SCSI CDB into the corresponding resource determined by the reserved resource;
processing the SCSI CDB by utilizing the kernel process scheduling to generate a new SCSI CDB, and adding the new SCSI CDB into the corresponding resource determined by the reserved resource;
encapsulating the new SCSI CDB into a new iSCSI PDU, and adding the new iSCSI PDU into the corresponding resource determined by the reserved resource;
acquiring kernel process scheduling according to the reserved resources, and determining scheduling time according to the reserved bandwidth resources determined by the reserved resources;
and converting the new iSCSI PUD into a new network protocol data unit supporting a reservation mechanism by using a controller of a storage device, and transmitting the new network protocol data unit supporting the reservation mechanism to a host according to the resource reservation path by using the kernel process scheduling.
Through the technical scheme, the invention realizes the reservation of the resources required by the critical network storage application by utilizing the reservation mechanism and respectively arranging the corresponding QoS management modules on the host and the storage equipment, thereby simultaneously ensuring the processing resources required by the critical network storage application, and further providing deterministic service quality guarantee for the critical network storage application.
In summary, the above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.