CN103905335A - Flow control method and device - Google Patents

Flow control method and device Download PDF

Info

Publication number
CN103905335A
CN103905335A CN201410151421.4A CN201410151421A CN103905335A CN 103905335 A CN103905335 A CN 103905335A CN 201410151421 A CN201410151421 A CN 201410151421A CN 103905335 A CN103905335 A CN 103905335A
Authority
CN
China
Prior art keywords
flow control
precedence information
access message
hard disk
permissible
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410151421.4A
Other languages
Chinese (zh)
Other versions
CN103905335B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410151421.4A priority Critical patent/CN103905335B/en
Publication of CN103905335A publication Critical patent/CN103905335A/en
Application granted granted Critical
Publication of CN103905335B publication Critical patent/CN103905335B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a flow control method and device. The flow control method comprises the steps that an IP hard disk receives access information transmitted by a host machine, wherein the access information comprises the priority information of application programs and information of data packages; the flow control grade which the access information belongs to is judged according to the internal storage occupancy rate of the IP hard disk; permissive flow corresponding to the priority information is obtained according to the priority information and the flow control grade which the access information belongs to; flow control is carried out on the access information according to the permissive flow corresponding to the priority information. Therefore, the effect that access operations of the high-grade application programs are preferentially fed back fast can be achieved effectively.

Description

Flow control methods and device
Technical field
The present invention relates to moving communicating field, relate in particular to a kind of flow control methods and device.
Background technology
Internet protocol (Internet Protocol, IP) hard disk is concentrated central processor (Central Processing Unit, CPU), internal memory, hard disk, network service is integrated, and is the memory cell taking object as storage cell.In storage system, IP hard disk and main frame are the relations of multi-to-multi, an IP hard disk can be accessed by multiple host, a main frame also can connect multiple IP hard disks, and the same object of same hard disk also may be accessed by multiple host simultaneously, be very easy to like this occur the situation of single-deck focus.And application program in the main frame of access IP hard disk normally has priority difference, therefore just there is in the time that high priority applications is accessed hot disk demand that can rapid feedback to the accessing operation of high priority applications.
In prior art, be Cache at IP hard disk, disk directly returns successfully writing after Cache success, after can repeatedly writing Cache to focus object, timing flushes to persistence in IP hard disk again, but it is high that above-mentioned this mode realizes cost, and can not effectively solve the problem of preferentially accessing operation of high-level application program being carried out rapid feedback.
Summary of the invention
The embodiment of the present invention provides a kind of flow control methods and device, can effectively solve the problem of preferentially accessing operation of high-level application program being carried out rapid feedback.
First aspect, provides a kind of flow control methods, and described method is applied to storage system, described storage system comprises main frame and Internet protocol IP hard disk, described main frame and described IP hard disk communicate by IP agreement, and described main frame comprises application program, and described method comprises:
Described IP hard disk receives the access message that described main frame sends, and described access message comprises: the precedence information of described application program and the information of packet;
Judge the Flow Control grade under described access message according to the memory usage of described IP hard disk;
According to the Flow Control grade under described precedence information and described access message, obtain the permissible flow that described precedence information is corresponding;
The permissible flow corresponding according to described precedence information carries out flow control to described access message.
In conjunction with first aspect, in the first implementation of first aspect, described storage system also comprises AUC, and described precedence information sends to described main frame by described AUC.
In conjunction with the first implementation of first aspect or first aspect, in the second implementation of first aspect,
The described memory usage according to described IP hard disk judges that the Flow Control grade under described access message comprises:
In the time that the memory usage of described IP hard disk is greater than the first predetermined threshold value, the Flow Control grade under described access message is one-level Flow Control;
In the time that the memory usage of described IP hard disk is greater than the second predetermined threshold value and is less than the first predetermined threshold value, the Flow Control grade under described access message is secondary Flow Control;
Described according to the Flow Control grade under described precedence information and described access message, obtain the permissible flow that described precedence information is corresponding and comprise:
In the time that the Flow Control grade under described access message is one-level Flow Control, in the mapping table of default precedence information and flow control parameters, inquire about the one-level flow control parameters that described precedence information is corresponding, calculate according to described one-level flow control parameters the permissible flow that described precedence information is corresponding;
In the time that the Flow Control grade under described access message is secondary Flow Control, in the mapping table of default precedence information and flow control parameters, inquire about the secondary flow control parameters that described precedence information is corresponding, according to permissible flow corresponding to precedence information described in described secondary Flow Control calculation of parameter.
In conjunction with the second implementation of first aspect, in the third implementation of first aspect,
Describedly calculate according to described one-level flow control parameters the permissible flow that described precedence information is corresponding and comprise:
Calculate corresponding permissible flow according to following formula:
Count N=Count N-1×(1-Rate(i)) N≥1,i=1
Wherein, N is precedence information, Rate(i) be the flow control parameters in the Flow Control grade corresponding with precedence information N, in the time of i=1, Rate(1) be the one-level flow control parameters corresponding with precedence information N, Count nfor permissible flow corresponding to precedence information N.
In conjunction with the second implementation of first aspect, in the 4th kind of implementation of first aspect,
Describedly comprise according to permissible flow corresponding to precedence information described in described secondary Flow Control calculation of parameter:
Calculate corresponding permissible flow according to following formula:
Count N=Count N-1×(1-Rate(i)) N≥1,i=2
Wherein, N is precedence information, Rate(i) be the flow control parameters in the Flow Control grade corresponding with precedence information N, in the time of i=2, Rate(2) be the secondary flow control parameters corresponding with precedence information N, Count nfor permissible flow corresponding to precedence information N.
Second aspect, a kind of volume control device is provided, described application of installation is in storage system, described storage system comprises main frame and Internet protocol IP hard disk, described main frame and described IP hard disk communicate by IP agreement, described main frame comprises application program, and described device comprises: receiving element, judging unit, acquiring unit and control unit;
Described receiving element, the access message sending for receiving described main frame, described access message comprises: the precedence information of described application program and the information of packet;
Described judging unit, for judging the Flow Control grade under described access message according to the memory usage of described IP hard disk;
Described acquiring unit, for according to the Flow Control grade under described precedence information and described access message, obtains the permissible flow that described precedence information is corresponding;
Described control unit, for carrying out flow control according to permissible flow corresponding to described precedence information to described access message.
In conjunction with second aspect, in the first implementation of second aspect, described storage system also comprises AUC, and described precedence information sends to described main frame by described AUC.
In conjunction with the first implementation of second aspect or second aspect, in the second implementation of second aspect,
Described judging unit specifically for: in the time that the memory usage of described IP hard disk is greater than the first predetermined threshold value, the Flow Control grade under described access message is one-level Flow Control;
In the time that the memory usage of described IP hard disk is greater than the second predetermined threshold value and is less than the first predetermined threshold value, the Flow Control grade under described access message is secondary Flow Control;
Described acquiring unit specifically for: in the time that the Flow Control grade under described access message is one-level Flow Control, in the mapping table of default precedence information and flow control parameters, inquire about the one-level flow control parameters that described precedence information is corresponding, calculate according to described one-level flow control parameters the permissible flow that described precedence information is corresponding;
In the time that the Flow Control grade under described access message is secondary Flow Control, in the mapping table of default precedence information and flow control parameters, inquire about the secondary flow control parameters that described precedence information is corresponding, according to permissible flow corresponding to precedence information described in described secondary Flow Control calculation of parameter.
In conjunction with the second implementation of second aspect, in the third implementation of second aspect,
Described acquiring unit specifically for:
Calculate corresponding permissible flow according to following formula:
Count N=Count N-1×(1-Rate(i)) N≥1,i=1
Wherein, N is precedence information, Rate(i) be the flow control parameters in the Flow Control grade corresponding with precedence information N, in the time of i=1, Rate(1) be the one-level flow control parameters corresponding with precedence information N, Count nfor permissible flow corresponding to precedence information N.
In conjunction with the second implementation of second aspect, in the 4th kind of implementation of second aspect,
Described acquiring unit specifically for:
Calculate corresponding permissible flow according to following formula:
Count N=Count N-1×(1-Rate(i)) N≥1,i=2
Wherein, N is precedence information, Rate(i) be the flow control parameters in the Flow Control grade corresponding with precedence information N, in the time of i=2, Rate(2) be the secondary flow control parameters corresponding with precedence information N, Count nfor permissible flow corresponding to precedence information N.
The flow control methods that the embodiment of the present invention provides and device, in IP hard disk, can store the precedence information of application program, and receive the speed of the access message of application program according to this precedence information control, thereby can effectively solve the problem of preferentially accessing operation of high-level application program being carried out rapid feedback.
Brief description of the drawings
Fig. 1 is the schematic diagram of storage system provided by the invention;
Fig. 2 is the structural representation of IP hard disk provided by the invention;
The flow control methods flow chart that Fig. 3 provides for the embodiment of the present invention one;
The information interaction figure of Fig. 4 flow control methods provided by the invention;
The volume control device schematic diagram that Fig. 5 provides for the embodiment of the present invention two.
Embodiment
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Flow control methods provided by the invention, be mainly used in the schematic diagram of the storage system shown in Fig. 1, this storage system comprises main frame and memory device, this memory device is specially IP hard disk, main frame and IP hard disk communicate by transmission control protocol (Transmission Control Protocol, TCP)/IP/ Gigabit Ethernet (Gigabit Ethernet, GbE) agreement, and above-mentioned main frame also comprises multiple application programs, the precedence information that each application program is corresponding different, above-mentioned storage system can also comprise AUC, this AUC is specially server, in application program to before IP hard-disc storage data, application program first sends authentication request message to AUC, be that each application program is gone certification by signing in to AUC with own corresponding username and password, in the time that this application program has authority to carry out stores service on IP hard disk, AUC from this locality (for instance, database) obtain precedence information corresponding to above-mentioned application program setting in advance, different precedence information correspondences the different grades of service, precedence information is that 0 expression is the highest, 1 secondly precedence information is, successively decrease successively, the precedence information getting is sent to above-mentioned application program by last AUC.
Fig. 2 is the structural representation of IP hard disk, this IP hard disk comprises: remote procedure call protocol (Remote Procedure Call Protocol, RPC) server, NOSQL database, file system (FILE SYSTEM), disc driver (DISC DRIVER), LBA pattern (Logical Block Addressing, LBA) database, CPU and bootstrap memory (Boot ROM), possess independently Flow Control ability.IP hard disk and traditional small computer system interface connected in series (Serial Attached SCSI(Small Computer System Interface), SAS)/Serial Advanced Technology Attachment (Serial Advanced Technology Attachment, SATA) hard disk is the same, it is all the minimum memory hardware cell in storage system, be the memory cell taking object as storage cell, there is following features:
1) provide the object data access interface based on Key-Value;
2) adopt the networking of Ethernet+ICP/IP protocol mode, System Expansion is convenient, cost is low;
3) between IP hard disk, can realize data passes mutually;
4) provide independently data reliability fault tolerant mechanism, effectively protected user data.
The flow control methods flow chart that Fig. 3 provides for the embodiment of the present invention one.The executive agent of described method is IP hard disk, and as shown in Figure 3, described method specifically comprises:
S310, described IP hard disk receives the access message that described main frame sends, and described access message comprises: the precedence information of described application program and the information of packet.
The information interaction figure of flow control methods shown in Figure 4, application program 1 first sends authentication request message to AUC, application program 1 respective user name 1 and password 1, AUC is in the time judging that application program 1 has authority to carry out stores service, obtain the precedence information 0 of application program 1 correspondence setting in advance from this locality, transmit a reply message to application program 1, this reply message carries by information and the precedence information 0 of certification, application program 1 is after receiving above-mentioned reply message, send access message to IP hard disk, this access message comprises the information of precedence information and the packet of application program 1, be exemplified as, the information of this packet can be specially Put(key1, value1), the precedence information of application program 1 is 0.
In Fig. 4, IP hard disk is after receiving the precedence information of application program 1 and the information of packet, by Put(key1, value1) information and precedence information 0 be written in the 1st row of queue of internal memory; The information Delete(key2 of the packet in like manner application program 2 being sent) and precedence information 1 be written in the next line of queue of internal memory, the information Put(key1 of the packet that application program 3 is sent, value1) and precedence information 2 be written in the 3rd row of queue of internal memory, such the like.Herein, the precedence information of application program 2 and application program 3 correspondences is distributed by AUC equally.Following institute after the information of the packet of the each application program of queue record of IP hard disk internal memory and precedence information
Message content Priority
Put(key1,value1) 0
Delete(key2) 1
Put(key1,value1) 2
Get(key3) 0
…………… …………….
……………. …………….
S320, judges the Flow Control grade under described access message according to the memory usage of described IP hard disk.
It should be noted that, the information of packet that receives application program when IP hard disk is when very fast, and itself lower wall is when slower, such as writing the speed of data to hard disk when slower, can cause overstocked the getting more and more of information number of the packet of queue buffer memory, therefore, the speed that need to receive the information of the packet of above-mentioned application program to IP hard disk is controlled, and also the speed that receives the access message that application program sends is controlled.Particularly, set in advance the first predetermined threshold value and the second predetermined threshold value, in the time that the memory usage of IP hard disk is greater than the first predetermined threshold value, the Flow Control grade under described access message is one-level Flow Control, this first predetermined threshold value can but be not defined as 90%; In the time that the memory usage of IP hard disk is greater than the second predetermined threshold value and is less than the first predetermined threshold value, the Flow Control grade under described access message is secondary Flow Control, the size of this second predetermined threshold value can but be not defined as 80%.Herein, memory usage refers to the ratio of information number and the queue total length of the packet of having stored in the queue of internal memory, and wherein, the length of queue can be configured according to the size of practical IP hard disk internal memory.
S330, according to the Flow Control grade under described precedence information and described access message, obtains the permissible flow that described precedence information is corresponding.
It should be noted that, also need to set in advance the mapping table of precedence information and flow control parameters, wherein, Flow Control is to adjust permissible flow by fixing stride, the Flow Control dynamics of different stage is different, ensures that the application program that priority level is higher is higher to the percent of pass of IP hard disk transmission access message.In the mapping table of precedence information and flow control parameters, comprise two Flow Control grades, in different Flow Control grades, precedence information is different from the corresponding relation of flow control parameters, specific as follows shown in:
Figure BDA0000491196250000081
Particularly, in the time that the Flow Control grade under described access message is one-level Flow Control, in the mapping table of default precedence information and flow control parameters, inquire about the one-level flow control parameters that described precedence information is corresponding, calculate according to described one-level flow control parameters the permissible flow that described precedence information is corresponding.
It should be noted that, get after secondary flow control parameters, calculate corresponding permissible flow according to following formula:
Count n=Count n-1× (1-Rate (i)) N>=1, i=2 (formula 1)
Wherein, N is precedence information, Rate(i) be the flow control parameters in the Flow Control grade corresponding with precedence information N, in the time of i=2, Rate(2) be the secondary flow control parameters corresponding with precedence information N, Count nfor permissible flow corresponding to precedence information N, be also the number that receives the access message of the application program of precedence information N in the unit interval, wherein the unit interval can but be not defined as second, millisecond etc.
In the time that the Flow Control grade under described access message is secondary Flow Control, in the mapping table of default precedence information and flow control parameters, inquire about the secondary flow control parameters that described precedence information is corresponding, according to permissible flow corresponding to precedence information described in described secondary Flow Control calculation of parameter.
It should be noted that, get after one-level flow control parameters, calculate corresponding permissible flow according to following formula:
Count n=Count n-1× (1-Rate (i)) N>=1, i=1 (formula 2)
Wherein, N is precedence information, Rate(i) be the flow control parameters in the Flow Control grade corresponding with precedence information N, in the time of i=1, Rate(1) be the one-level flow control parameters corresponding with precedence information N, Count nfor permissible flow corresponding to precedence information N, be also the number that receives the access message of the application program of precedence information N in the unit interval, wherein the unit interval can but be not defined as second, millisecond etc.
S340, the permissible flow corresponding according to described precedence information carries out flow control to described access message.
It should be noted that, access message is carried out to flow control and the speed that receives access message is controlled.Describe as an example of Fig. 4 example, if the first predetermined threshold value is 80%, the second predetermined threshold value is 90%, and suppose the speed of access message that IP hard disk receives each application program with different priorities information be 100/per second, so in the time that the occupancy of queue is greater than 80%, Flow Control grade under the access message that each application program sends is secondary Flow Control, the access message sending for application program 1 so, because the precedence information of application program 1 is that 0(has the highest precedence information), can inquire the secondary flow control parameters that this precedence information is corresponding is 0%, known according to formula 1, do not carry out Flow Control, the speed that is the access message of IP hard disk to receive precedence information be 0 application program be still 100/per second, the access message sending for application program 2, because the precedence information of application program 2 is 1, can inquire the secondary flow control parameters that this precedence information is corresponding is 10%, formula 1 can specifically be classified as: 100 × (1-10%), the speed that can calculate IP hard disk to receive precedence information be 1 the access message of application program be 90/per second, in like manner, can calculate the speed of the access message of the application program that IP hard disk reception precedence information is 3.
In above-mentioned example, when the number of the information of packet in queue continues to increase, i.e., when the occupancy of queue is greater than 90%, the Flow Control grade under the access message that each application program sends is one-level Flow Control; In one-level Flow Control, in order to ensure the success rate of high-level application program access IP hard disc data, the speed of the access message of the application program that is not 0 to IP hard disk reception precedence information is controlled, and for the application program of other precedence informations, because the flow control parameters in the one-level Flow Control corresponding with other precedence informations is 100%, so formula 2 is specifically classified as: 100 × (1-100%), IP hard disk is rejected the access message of the application program of other precedence informations.
The flow control methods that the embodiment of the present invention provides, in IP hard disk, can store the precedence information of application program, and receive the speed of the access message of application program according to this precedence information control, thereby can effectively solve the problem of preferentially accessing operation of high-level application program being carried out rapid feedback.
The volume control device schematic diagram that Fig. 5 provides for the embodiment of the present invention two.Described device can be for the method described in execution graph 1.Described application of installation is in storage system, described storage system comprises main frame and Internet protocol IP hard disk, described main frame and described IP hard disk communicate by IP agreement, described main frame comprises application program, and described device comprises: receiving element 501, judging unit 502, acquiring unit 503 and control unit 504.
Receiving element 501, the access message sending for receiving described main frame, described access message comprises: the precedence information of described application program and the information of packet.
Judging unit 502, for judging the Flow Control grade under described access message according to the memory usage of described IP hard disk.
Judging unit 502 specifically for: in the time that the memory usage of described IP hard disk is greater than the first predetermined threshold value, the Flow Control grade under described access message is one-level Flow Control; In the time that the memory usage of described IP hard disk is greater than the second predetermined threshold value and is less than the first predetermined threshold value, the Flow Control grade under described access message is secondary Flow Control.
Acquiring unit 503, for according to the Flow Control grade under described precedence information and described access message, obtains the permissible flow that described precedence information is corresponding.
Acquiring unit 503 specifically for: in the time that the Flow Control grade under described access message is one-level Flow Control, in the mapping table of default precedence information and flow control parameters, inquire about the one-level flow control parameters that described precedence information is corresponding, calculate according to described one-level flow control parameters the permissible flow that described precedence information is corresponding; In the time that the Flow Control grade under described access message is secondary Flow Control, in the mapping table of default precedence information and flow control parameters, inquire about the secondary flow control parameters that described precedence information is corresponding, according to permissible flow corresponding to precedence information described in described secondary Flow Control calculation of parameter.
Acquiring unit 503 also specifically for:
Calculate corresponding permissible flow according to following formula:
Count N=Count N-1×(1-Rate(i)) N≥1,i=1
Wherein, N is precedence information, Rate(i) be the flow control parameters in the Flow Control grade corresponding with precedence information N, in the time of i=1, Rate(1) be the one-level flow control parameters corresponding with precedence information N, Count nfor permissible flow corresponding to precedence information N.
Acquiring unit 503 also specifically for:
Calculate corresponding permissible flow according to following formula:
Count N=Count N-1×(1-Rate(i)) N≥1,i=2
Wherein, N is precedence information, Rate(i) be the flow control parameters in the Flow Control grade corresponding with precedence information N, in the time of i=2, Rate(2) be the secondary flow control parameters corresponding with precedence information N, Count nfor permissible flow corresponding to precedence information N.
Control unit 504, for carrying out flow control according to permissible flow corresponding to described precedence information to described access message.
Alternatively, described storage system also comprises AUC, and described precedence information sends to described main frame by described AUC.
The device that the embodiment of the present invention two provides has been implanted the method that the embodiment of the present invention one provides, and therefore, the specific works process of device provided by the invention, does not repeat again at this.
To sum up, the volume control device that the embodiment of the present invention provides, in IP hard disk, can store the precedence information of application program, and receive the speed of the access message of application program according to this precedence information control, thereby can effectively solve the problem of preferentially accessing operation of high-level application program being carried out rapid feedback.
Professional should further recognize, unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein, can realize with electronic hardware, computer software or the combination of the two, for the interchangeability of hardware and software is clearly described, composition and the step of each example described according to function in the above description in general manner.These functions are carried out with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can realize described function with distinct methods to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
The software module that the method for describing in conjunction with embodiment disclosed herein or the step of algorithm can use hardware, processor to carry out, or the combination of the two is implemented.Software module can be placed in the storage medium of any other form known in random asccess memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
Above-described embodiment; object of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the foregoing is only the specific embodiment of the present invention; the protection range being not intended to limit the present invention; within the spirit and principles in the present invention all, any amendment of making, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. a flow control methods, is characterized in that, described method is applied to storage system, described storage system comprises main frame and Internet protocol IP hard disk, described main frame and described IP hard disk communicate by IP agreement, and described main frame comprises application program, and described method comprises:
Described IP hard disk receives the access message that described main frame sends, and described access message comprises: the precedence information of described application program and the information of packet;
Judge the Flow Control grade under described access message according to the memory usage of described IP hard disk;
According to the Flow Control grade under described precedence information and described access message, obtain the permissible flow that described precedence information is corresponding;
The permissible flow corresponding according to described precedence information carries out flow control to described access message.
2. method according to claim 1, is characterized in that, described storage system also comprises AUC, and described precedence information sends to described main frame by described AUC.
3. method according to claim 1 and 2, is characterized in that, the described memory usage according to described IP hard disk judges that the Flow Control grade under described access message comprises:
In the time that the memory usage of described IP hard disk is greater than the first predetermined threshold value, the Flow Control grade under described access message is one-level Flow Control;
In the time that the memory usage of described IP hard disk is greater than the second predetermined threshold value and is less than the first predetermined threshold value, the Flow Control grade under described access message is secondary Flow Control;
Described according to the Flow Control grade under described precedence information and described access message, obtain the permissible flow that described precedence information is corresponding and comprise:
In the time that the Flow Control grade under described access message is one-level Flow Control, in the mapping table of default precedence information and flow control parameters, inquire about the one-level flow control parameters that described precedence information is corresponding, calculate according to described one-level flow control parameters the permissible flow that described precedence information is corresponding;
In the time that the Flow Control grade under described access message is secondary Flow Control, in the mapping table of default precedence information and flow control parameters, inquire about the secondary flow control parameters that described precedence information is corresponding, according to permissible flow corresponding to precedence information described in described secondary Flow Control calculation of parameter.
4. method according to claim 3, is characterized in that, describedly calculates according to described one-level flow control parameters the permissible flow that described precedence information is corresponding and comprises:
Calculate corresponding permissible flow according to following formula:
Count N=Count N-1×(1-Rate(i)) N≥1,i=1
Wherein, N is precedence information, Rate(i) be the flow control parameters in the Flow Control grade corresponding with precedence information N, in the time of i=1, Rate(1) be the one-level flow control parameters corresponding with precedence information N, Count nfor permissible flow corresponding to precedence information N.
5. method according to claim 3, is characterized in that, describedly comprises according to permissible flow corresponding to precedence information described in described secondary Flow Control calculation of parameter:
Calculate corresponding permissible flow according to following formula:
Count N=Count N-1×(1-Rate(i)) N≥1,i=2
Wherein, N is precedence information, Rate(i) be the flow control parameters in the Flow Control grade corresponding with precedence information N, in the time of i=2, Rate(2) be the secondary flow control parameters corresponding with precedence information N, Count nfor permissible flow corresponding to precedence information N.
6. a volume control device, it is characterized in that, described application of installation is in storage system, described storage system comprises main frame and Internet protocol IP hard disk, described main frame and described IP hard disk communicate by IP agreement, described main frame comprises application program, and described device comprises: receiving element, judging unit, acquiring unit and control unit;
Described receiving element, the access message sending for receiving described main frame, described access message comprises: the precedence information of described application program and the information of packet;
Described judging unit, for judging the Flow Control grade under described access message according to the memory usage of described IP hard disk;
Described acquiring unit, for according to the Flow Control grade under described precedence information and described access message, obtains the permissible flow that described precedence information is corresponding;
Described control unit, for carrying out flow control according to permissible flow corresponding to described precedence information to described access message.
7. device according to claim 6, is characterized in that, described storage system also comprises AUC, and described precedence information sends to described main frame by described AUC.
8. according to the device described in claim 6 or 7, it is characterized in that, described judging unit specifically for: in the time that the memory usage of described IP hard disk is greater than the first predetermined threshold value, the Flow Control grade under described access message is one-level Flow Control;
In the time that the memory usage of described IP hard disk is greater than the second predetermined threshold value and is less than the first predetermined threshold value, the Flow Control grade under described access message is secondary Flow Control;
Described acquiring unit specifically for: in the time that the Flow Control grade under described access message is one-level Flow Control, in the mapping table of default precedence information and flow control parameters, inquire about the one-level flow control parameters that described precedence information is corresponding, calculate according to described one-level flow control parameters the permissible flow that described precedence information is corresponding;
In the time that the Flow Control grade under described access message is secondary Flow Control, in the mapping table of default precedence information and flow control parameters, inquire about the secondary flow control parameters that described precedence information is corresponding, according to permissible flow corresponding to precedence information described in described secondary Flow Control calculation of parameter.
9. device according to claim 8, is characterized in that, described acquiring unit specifically for:
Calculate corresponding permissible flow according to following formula:
Count N=Count N-1×(1-Rate(i)) N≥1,i=1
Wherein, N is precedence information, Rate(i) be the flow control parameters in the Flow Control grade corresponding with precedence information N, in the time of i=1, Rate(1) be the one-level flow control parameters corresponding with precedence information N, Count nfor permissible flow corresponding to precedence information N.
10. device according to claim 8, is characterized in that, described acquiring unit specifically for:
Calculate corresponding permissible flow according to following formula:
Count N=Count N-1×(1-Rate(i)) N≥1,i=2
Wherein, N is precedence information, Rate(i) be the flow control parameters in the Flow Control grade corresponding with precedence information N, in the time of i=2, Rate(2) be the secondary flow control parameters corresponding with precedence information N, Count nfor permissible flow corresponding to precedence information N.
CN201410151421.4A 2014-04-15 2014-04-15 Flow control methods and device Active CN103905335B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410151421.4A CN103905335B (en) 2014-04-15 2014-04-15 Flow control methods and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410151421.4A CN103905335B (en) 2014-04-15 2014-04-15 Flow control methods and device

Publications (2)

Publication Number Publication Date
CN103905335A true CN103905335A (en) 2014-07-02
CN103905335B CN103905335B (en) 2017-03-08

Family

ID=50996490

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410151421.4A Active CN103905335B (en) 2014-04-15 2014-04-15 Flow control methods and device

Country Status (1)

Country Link
CN (1) CN103905335B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106385386A (en) * 2016-08-31 2017-02-08 成都飞鱼星科技股份有限公司 Application servo-actuated intelligent floe control method
US20170102900A1 (en) * 2014-06-24 2017-04-13 Huawei Technologies Co., Ltd. IP Hard Disk and Storage System, and Data Operation Methods Therefor
CN107037977A (en) * 2016-10-14 2017-08-11 惠州Tcl移动通信有限公司 A kind of data write-in control method and system based on mobile terminal
CN108282411A (en) * 2017-12-29 2018-07-13 北京五八信息技术有限公司 A kind of access current-limiting method, device, equipment and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101257454A (en) * 2008-03-21 2008-09-03 北京星网锐捷网络技术有限公司 Apparatus and method for managing band width
CN101610220A (en) * 2009-06-18 2009-12-23 中兴通讯股份有限公司 A kind of method and system of controlling service sending flow rate
CN102035748A (en) * 2010-12-31 2011-04-27 深圳市深信服电子科技有限公司 Application-based traffic control method and controller

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101257454A (en) * 2008-03-21 2008-09-03 北京星网锐捷网络技术有限公司 Apparatus and method for managing band width
CN101610220A (en) * 2009-06-18 2009-12-23 中兴通讯股份有限公司 A kind of method and system of controlling service sending flow rate
CN102035748A (en) * 2010-12-31 2011-04-27 深圳市深信服电子科技有限公司 Application-based traffic control method and controller

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170102900A1 (en) * 2014-06-24 2017-04-13 Huawei Technologies Co., Ltd. IP Hard Disk and Storage System, and Data Operation Methods Therefor
US9965213B2 (en) * 2014-06-24 2018-05-08 Huawei Technologies Co., Ltd. IP hard disk and storage system, and data operation methods therefor
CN106385386A (en) * 2016-08-31 2017-02-08 成都飞鱼星科技股份有限公司 Application servo-actuated intelligent floe control method
CN106385386B (en) * 2016-08-31 2019-04-12 成都飞鱼星科技股份有限公司 Using servo-actuated smart flow control method
CN107037977A (en) * 2016-10-14 2017-08-11 惠州Tcl移动通信有限公司 A kind of data write-in control method and system based on mobile terminal
CN108282411A (en) * 2017-12-29 2018-07-13 北京五八信息技术有限公司 A kind of access current-limiting method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN103905335B (en) 2017-03-08

Similar Documents

Publication Publication Date Title
US20230011387A1 (en) Data processing method and nvme storage device
EP3367251B1 (en) Storage system and solid state hard disk
CN106407830B (en) Cloud-based database detection method and device
CN101364930A (en) Session control method, apparatus and system
CN101647025A (en) File server pipeline with denial of service mitigation
CN103812849A (en) Local cache updating method and system, client and server
CN103763209A (en) Scheduling method and device of CDN servers
US20160330283A1 (en) Data Storage Method and Network Interface Card
CN106713028B (en) Service degradation method and device and distributed task scheduling system
CN101741730A (en) Method and equipment for downloading file and method and system for providing file downloading service
CN106375471B (en) Edge node determination method and device
CN104601696A (en) Service processing method and service invoking frame, device and architecture
KR101959970B1 (en) Contents delivery service method using contents sharing, and cache apparatus therefor
CN103905335A (en) Flow control method and device
US20160070475A1 (en) Memory Management Method, Apparatus, and System
CN110837479B (en) Data processing method, related equipment and computer storage medium
CN113342746A (en) File management system, file management method, electronic device, and storage medium
CN104793982A (en) Method and device for establishing virtual machine
WO2019161547A1 (en) Dynamic configuration method, terminal device, network device and computer storage medium
US8725868B2 (en) Interactive service management
CN107516048B (en) Method and equipment for controlling file access in distributed file system
CN102523267A (en) Cloud backup system and method
WO2017008658A1 (en) Storage checking method and system for text data
CN105207993A (en) Data access and scheduling method in CDN, and system
CN112104729A (en) Storage system and caching method thereof

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