CN103905335B - Flow control methods and device - Google Patents
Flow control methods and device Download PDFInfo
- Publication number
- CN103905335B CN103905335B CN201410151421.4A CN201410151421A CN103905335B CN 103905335 B CN103905335 B CN 103905335B CN 201410151421 A CN201410151421 A CN 201410151421A CN 103905335 B CN103905335 B CN 103905335B
- Authority
- CN
- China
- Prior art keywords
- precedence information
- flow
- control
- stream
- hard disk
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention relates to a kind of flow control methods and device, including:Described IP hard disk receives the access message that described main frame sends, and described access message includes:The information of the precedence information data bag of described application program;The described stream control grade accessing belonging to message is judged according to the memory usage of described IP hard disk;Stream control grade according to belonging to described precedence information and described access message, obtains described precedence information corresponding permission flow;Flow-control is carried out to described access message according to described precedence information corresponding permission flow.Thus, it is possible to effectively solving preferentially operates, to accessing of high-level application program, the problem carrying out rapid feedback.
Description
Technical field
The present invention relates to moving communicating field, more particularly, to a kind of flow control methods and device.
Background technology
Internet protocol(Internet Protocol, IP)Hard disk collection central processing unit(Central Processing
Unit, CPU), internal memory, hard disk, network service is integrated, and is the memory element with object as storage cell.Within the storage system,
IP hard disk and main frame are the relations of multi-to-multi, and that is, an IP hard disk can be accessed by multiple host, and a main frame can also connect
Multiple IP hard disks, and the same object of same hard disk is likely to be accessed by multiple host simultaneously, is so very easy to out
The situation of existing single-deck focus.And the application program accessing in the main frame of IP hard disk typically has priority difference, therefore just have
When high priority applications access hot disk, the need that rapid feedback is capable of in operation are accessed to high priority applications
Ask.
In prior art, it is Cache in IP hard disk, disk directly returns successfully, to focus object after writing Cache success
After Cache can repeatedly being write, timing flushes to persistence in IP hard disk again, but above-mentioned this mode cost of implementation is high, and not
Effectively solving preferentially the problem carrying out rapid feedback can be operated to accessing of high-level application program.
Content of the invention
Embodiments provide a kind of flow control methods and device, can be with effectively solving preferentially to high-level application
Accessing of program operates the problem carrying out rapid feedback.
A kind of first aspect, there is provided flow control methods, methods described is applied to storage system, described storage system bag
Include main frame and Internet protocol IP hard disk, described main frame and described IP hard disk are communicated by IP agreement, and described main frame includes
Application program, methods described includes:
Described IP hard disk receives the access message that described main frame sends, and described access message includes:Described application program
The information of precedence information data bag;
The described stream control grade accessing belonging to message is judged according to the memory usage of described IP hard disk;
Stream control grade according to belonging to described precedence information and described access message, obtains described precedence information pair
The permission flow answered;
Flow-control is carried out to described access message according to described precedence information corresponding permission flow.
In conjunction with a first aspect, in the first implementation of first aspect, described storage system also includes AUC,
Described precedence information is to be sent 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 described stream control grade accessing belonging to message includes:
When the memory usage of described IP hard disk is more than the first predetermined threshold value, the stream control grade belonging to described access message
It is one-level stream control;
When the memory usage of described IP hard disk is more than the second predetermined threshold value and is less than the first predetermined threshold value, described access
Stream control grade belonging to message is secondary streams control;
Described stream control grade according to belonging to described precedence information and described access message, obtains described priority letter
Breath corresponding permission flow includes:
When the described stream control grade accessing belonging to message is one-level stream control, in default precedence information and flow control parameters
Mapping table in inquire about described precedence information corresponding one-level flow control parameters, according to described one-level flow control parameters calculate institute
State precedence information corresponding permission flow;
When the described stream control grade accessing belonging to message is secondary streams control, in default precedence information and flow control parameters
Mapping table in inquire about described precedence information corresponding secondary streams control parameter, according to described secondary streams control parameter calculate institute
State precedence information corresponding permission flow.
In conjunction with the second implementation of first aspect, in the third implementation of first aspect,
Described according to described one-level flow control parameters calculate described precedence information corresponding allow flow include:
Corresponding permission flow is calculated according to equation below:
CountN=CountN-1×(1-Rate(i)) N≥1,i=1
Wherein, N is precedence information, Rate(i)It is the flow control parameters in stream control grade corresponding with precedence information N,
As i=1, Rate(1)It is one-level flow control parameters corresponding with precedence information N, CountNPermit for precedence information N is corresponding
Permitted flow.
In conjunction with the second implementation of first aspect, in the 4th kind of implementation of first aspect,
Described according to described secondary streams control parameter calculate described precedence information corresponding allow flow include:
Corresponding permission flow is calculated according to equation below:
CountN=CountN-1×(1-Rate(i)) N≥1,i=2
Wherein, N is precedence information, Rate(i)It is the flow control parameters in stream control grade corresponding with precedence information N,
As i=2, Rate(2)It is secondary streams control parameter corresponding with precedence information N, CountNPermit for precedence information N is corresponding
Permitted flow.
A kind of second aspect, there is provided volume control device, described device is applied to storage system, described storage system bag
Include main frame and Internet protocol IP hard disk, described main frame and described IP hard disk are communicated by IP agreement, and described main frame includes
Application program, described device includes:Receiving unit, judging unit, acquiring unit and control unit;
Described receiving unit, for receiving the access message that described main frame sends, described access message includes:Described application
The information of the precedence information data bag of program;
Described judging unit, for judging the described stream control accessing belonging to message according to the memory usage of described IP hard disk
Grade;
Described acquiring unit, for the stream control grade according to belonging to described precedence information and described access message, obtains
Take described precedence information corresponding permission flow;
Described control unit, for flowing to described access message according to described precedence information corresponding permission flow
Amount controls.
In conjunction with second aspect, in the first implementation of second aspect, described storage system also includes AUC, institute
Stating precedence information is to be sent 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:When the memory usage of described IP hard disk is more than the first predetermined threshold value, described
The stream control grade accessing belonging to message is one-level stream control;
When the memory usage of described IP hard disk is more than the second predetermined threshold value and is less than the first predetermined threshold value, described access
Stream control grade belonging to message is secondary streams control;
Described acquiring unit specifically for:When the described stream control grade accessing belonging to message is one-level stream control, default
Precedence information one-level flow control parameters corresponding with inquiring about described precedence information in the mapping table of flow control parameters, according to
Described one-level flow control parameters calculate described precedence information corresponding permission flow;
When the described stream control grade accessing belonging to message is secondary streams control, in default precedence information and flow control parameters
Mapping table in inquire about described precedence information corresponding secondary streams control parameter, according to described secondary streams control parameter calculate institute
State precedence information corresponding permission flow.
In conjunction with the second implementation of second aspect, in the third implementation of second aspect,
Described acquiring unit specifically for:
Corresponding permission flow is calculated according to equation below:
CountN=CountN-1×(1-Rate(i)) N≥1,i=1
Wherein, N is precedence information, Rate(i)It is the flow control parameters in stream control grade corresponding with precedence information N,
As i=1, Rate(1)It is one-level flow control parameters corresponding with precedence information N, CountNPermit for precedence information N is corresponding
Permitted flow.
In conjunction with the second implementation of second aspect, in the 4th kind of implementation of second aspect,
Described acquiring unit specifically for:
Corresponding permission flow is calculated according to equation below:
CountN=CountN-1×(1-Rate(i)) N≥1,i=2
Wherein, N is precedence information, Rate(i)It is the flow control parameters in stream control grade corresponding with precedence information N,
As i=2, Rate(2)It is secondary streams control parameter corresponding with precedence information N, CountNPermit for precedence information N is corresponding
Permitted flow.
Flow control methods provided in an embodiment of the present invention and device, can store the priority of application program in IP hard disk
Information, and control the speed of the access message receiving application program according to this precedence information, excellent such that it is able to effectively solving
First the problem carrying out rapid feedback is operated to accessing of high-level application program.
Brief description
The schematic diagram of the storage system that Fig. 1 provides for the present invention;
The structural representation of the IP hard disk that Fig. 2 provides for the present invention;
The flow control methods flow chart that Fig. 3 provides for the embodiment of the present invention one;
The information exchange figure of the flow control methods that Fig. 4 present invention provides;
The volume control device schematic diagram that Fig. 5 provides for the embodiment of the present invention two.
Specific embodiment
Below by drawings and Examples, technical scheme is described in further detail.
The flow control methods that the present invention provides, are mainly used in the schematic diagram of the storage system shown in Fig. 1, this storage
System includes main frame and storage device, and this storage device is specially IP hard disk, and main frame and IP hard disk pass through transmission control protocol
(Transmission Control Protocol, TCP)/ IP/ GBIC(Gigabit Ethernet, GbE)Agreement
Communicated, and above-mentioned main frame is also included multiple application programs, the different precedence information of each application program correspondence;Above-mentioned deposit
Storage system can also include AUC, and this AUC is specially server, application program to IP hard-disc storage data it
Before, application program first sends authentication request message to AUC, and that is, each application program is by user name corresponding with oneself
Go certification with password login to AUC, when this application program have permission carry out storage service on IP hard disk when, in authentication
The heart is from local(For example, data base)Obtain the corresponding precedence information of above-mentioned application program pre-setting, different is excellent
First level information has corresponded to the different grades of service, and precedence information is 0 expression highest, and for 1 secondly precedence information, is passed successively
Subtract;The precedence information getting is sent to above-mentioned application program by last AUC.
Fig. 2 is the structural representation of IP hard disk, and this IP hard disk includes:Remote procedure call protocol(Remote
Procedure Call Protocol, RPC)Server, NOSQL data base, file system(FILE SYSTEM), disk drive
Device(DISC DRIVER), Logical Block Addressing mode(Logical Block Addressing, LBA)Data base, CPU and guiding
Memorizer(Boot ROM), possess independent stream control ability.The minicomputer system of IP hard disk and traditional serial connection connects
Mouthful(Serial Attached SCSI(Small Computer System Interface), SAS)/ serial advanced technology attachment
Part(Serial Advanced Technology Attachment, SATA)Hard disk is the same, is all that the minimum in storage system is deposited
Storage hardware cell, is the memory element with object as storage cell, has following features:
1)Object data access interface based on Key-Value is provided;
2)Using Ethernet+ICP/IP protocol mode networking, System Expansion is convenient, low cost;
3)Data can be realized between IP hard disk mutually pass;
4)Provide independent data reliability fault tolerant mechanism, effective protection user data.
The flow control methods flow chart that Fig. 3 provides for the embodiment of the present invention one.The executive agent of methods described is that IP is hard
Disk, as shown in figure 3, methods described specifically includes:
S310, described IP hard disk receives the access message that described main frame sends, and described access message includes:Described application journey
The information of the precedence information data bag of sequence.
The information exchange figure of flow control methods shown in Figure 4, application program 1 first sends certification to AUC please
Seek message, the corresponding user name 1 of application program 1 and password 1, AUC carries out storage service judging that application program 1 has permission
When, from locally obtaining the corresponding precedence information 0 of application program 1 pre-setting, send to application program 1 and reply message, should
Reply message information and the precedence information 0 carrying by certification, application program 1 after receiving above-mentioned replying message,
Send to IP hard disk and access message, this access message includes the information of the precedence information data bag of application program 1, citing
For 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 after the information of precedence information data bag receiving application program 1, by Put
(key1,value1)In the 1st row of queue that information and precedence information 0 are written to internal memory;In the same manner application program 2 is sent
Information Delete of packet(key2)In the next line of the queue being written to internal memory with precedence information 1, by application program 3
Information Put of the packet sending(key1,value1)In the 3rd row of the queue that precedence information 2 is written to internal memory, so according to
Secondary analogize.Herein, application program 2 and the corresponding precedence information of application program 3 are equally distributed by AUC.IP hard disk internal memory
The information of packet of each application program of queue record and precedence information after following institute
Message content | Priority |
Put(key1,value1) | 0 |
Delete(key2) | 1 |
Put(key1,value1) | 2 |
Get(key3) | 0 |
…………… | ……………. |
……………. | ……………. |
S320, judges the described stream control grade accessing belonging to message according to the memory usage of described IP hard disk.
It should be noted that when IP hard disk receive the information of the packet of application program than very fast when, and itself lower wall
When slower, such as to hard disk write data speed slower when, can lead to that the information number of the packet of queue caching overstocks more
Come more, accordingly, it would be desirable to the speed that IP hard disk is received with the information of the packet of above-mentioned application program is controlled, namely docking
The speed receiving the access message that application program sends is controlled.Specifically, pre-set the first predetermined threshold value and second to preset
Threshold value, when the memory usage of IP hard disk is more than the first predetermined threshold value, the stream control grade belonging to described access message is one-level
Stream control, this first predetermined threshold value can but be not limited to 90%;When the memory usage of IP hard disk is more than the second predetermined threshold value and little
When the first predetermined threshold value, the stream control grade belonging to described access message is secondary streams control, the big I of this second predetermined threshold value
With but be not limited to 80%.Herein, memory usage refers to the information number of the packet of storage and queue in the queue of internal memory
The ratio of total length, wherein, the length of queue can be configured according to the size of practical IP hard disk internal memory.
S330, the stream control grade according to belonging to described precedence information and described access message, obtain described priority
Information corresponding permission flow.
It should be noted that also needing to pre-set the mapping table of precedence information and flow control parameters, wherein, stream control
That permission flow is adjusted by fixing stride, the stream control dynamics of different stage different it is ensured that priority level is higher
The percent of pass that application program sends access message to IP hard disk is higher.Mapping table in precedence information and flow control parameters
In, including two stream control grades, in different stream control grades, precedence information is different from the corresponding relation of flow control parameters
, specific as follows shown:
Specifically, when described access message belonging to stream control grade be one-level stream control when, default precedence information with
Inquire about described precedence information corresponding one-level flow control parameters in the mapping table of flow control parameters, joined according to described one-level stream control
Number calculates described precedence information corresponding permission flow.
It should be noted that after getting secondary streams control parameter, corresponding permission flow is calculated according to equation below:
CountN=CountN-1×(1-Rate(i)) N≥1,i=2 (Formula 1)
Wherein, N is precedence information, Rate(i)It is the flow control parameters in stream control grade corresponding with precedence information N,
As i=2, Rate(2)It is secondary streams control parameter corresponding with precedence information N, CountNPermit for precedence information N is corresponding
Permitted in flow, namely unit interval, to receive the number of the access message of application program of precedence information N, the wherein unit interval can
With but be not limited to the second, millisecond etc..
When the described stream control grade accessing belonging to message is secondary streams control, in default precedence information and flow control parameters
Mapping table in inquire about described precedence information corresponding secondary streams control parameter, according to described secondary streams control parameter calculate institute
State precedence information corresponding permission flow.
It should be noted that after getting one-level flow control parameters, corresponding permission flow is calculated according to equation below:
CountN=CountN-1×(1-Rate(i)) N≥1,i=1 (Formula 2)
Wherein, N is precedence information, Rate(i)It is the flow control parameters in stream control grade corresponding with precedence information N,
As i=1, Rate(1)It is one-level flow control parameters corresponding with precedence information N, CountNPermit for precedence information N is corresponding
Permitted in flow, namely unit interval, to receive the number of the access message of application program of precedence information N, the wherein unit interval can
With but be not limited to the second, millisecond etc..
S340, carries out flow-control according to described precedence information corresponding permission flow to described access message.
It should be noted that flow-control is carried out to access message being controlled to the speed receiving access message.With
Illustrate as a example Fig. 4, if the first predetermined threshold value is 80%, the second predetermined threshold value is 90%, and assume that the reception of IP hard disk has
The speed of the access message of each application program of different priorities information be 100/per second, then when the occupancy of queue is more than
When 80%, the stream control grade belonging to access message that each application program sends is secondary streams control, then send for application program 1
Access message for, due to application program 1 precedence information be 0(There is highest precedence information), can inquire about
It is 0% to this precedence information corresponding secondary streams control parameter, according to formula 1, do not carry out stream control, that is, the reception of IP hard disk is excellent
First level information be the access message of 0 application program speed remain as 100/per second;The access that application program 2 is sent
For message, the precedence information due to application program 2 is 1, can inquire this precedence information corresponding secondary streams control ginseng
Number is 10%, and formula 1 can specifically be classified as:100×(1-10%), you can be calculated IP hard disk receive precedence information be 1 should
With the speed of the access message of program be 90/per second, in the same manner, can be calculated IP hard disk receive precedence information be 3 should
Speed with the access message of program.
In the above example, when the number of the information of packet in queue persistently increases, that is, the occupancy of queue is more than 90%
When, the stream control grade belonging to access message that each application program sends is one-level stream control;In one-level stream control, senior in order to ensure
Other application program accesses the success rate of IP hard disc data, and IP hard disk is not received with the access of the application program that precedence information is 0
The speed of message is controlled, and the application program for other precedence informations, due to corresponding with other precedence informations
Flow control parameters in one-level stream control are 100%, so formula 2 is specifically classified as:100×(1-100%), i.e. IP hard disk rejection
The access message of the application program of other precedence informations.
Flow control methods provided in an embodiment of the present invention, can store the precedence information of application program in IP hard disk,
And control the speed of the access message receiving application program according to this precedence information, such that it is able to effectively solving preferentially to height
Accessing of level applications program operates the problem carrying 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 used for executing Fig. 1 institute
The method stated.Described device is applied to storage system, and described storage system includes main frame and Internet protocol IP hard disk, described master
Machine and described IP hard disk are communicated by IP agreement, and described main frame includes application program, and described device includes:Receiving unit
501st, judging unit 502, acquiring unit 503 and control unit 504.
Receiving unit 501, for receiving the access message that described main frame sends, described access message includes:Described application
The information of the precedence information data bag of program.
Judging unit 502, for judging the described stream control accessing belonging to message according to the memory usage of described IP hard disk
Grade.
Judging unit 502 specifically for:When the memory usage of described IP hard disk is more than the first predetermined threshold value, described visit
Ask that the stream control grade belonging to message is one-level stream control;When the memory usage of described IP hard disk is more than the second predetermined threshold value and is less than
During the first predetermined threshold value, the stream control grade belonging to described access message is secondary streams control.
Acquiring unit 503, for the stream control grade according to belonging to described precedence information and described access message, obtains
The corresponding permission flow of described precedence information.
Acquiring unit 503 specifically for:When the described stream control grade accessing belonging to message is one-level stream control, default
Precedence information one-level flow control parameters corresponding with inquiring about described precedence information in the mapping table of flow control parameters, according to institute
State one-level flow control parameters and calculate described precedence information corresponding permission flow;When the described stream control grade accessing belonging to message is
During secondary streams control, corresponding with inquiring about described precedence information in the mapping table of flow control parameters in default precedence information
Secondary streams control parameter, calculates described precedence information corresponding permission flow according to described secondary streams control parameter.
Acquiring unit 503 also particularly useful for:
Corresponding permission flow is calculated according to equation below:
CountN=CountN-1×(1-Rate(i)) N≥1,i=1
Wherein, N is precedence information, Rate(i)It is the flow control parameters in stream control grade corresponding with precedence information N,
As i=1, Rate(1)It is one-level flow control parameters corresponding with precedence information N, CountNPermit for precedence information N is corresponding
Permitted flow.
Acquiring unit 503 also particularly useful for:
Corresponding permission flow is calculated according to equation below:
CountN=CountN-1×(1-Rate(i)) N≥1,i=2
Wherein, N is precedence information, Rate(i)It is the flow control parameters in stream control grade corresponding with precedence information N,
As i=2, Rate(2)It is secondary streams control parameter corresponding with precedence information N, CountNPermit for precedence information N is corresponding
Permitted flow.
Control unit 504, for flowing to described access message according to described precedence information corresponding permission flow
Amount controls.
Alternatively, described storage system also includes AUC, and described precedence information is to be sent by described AUC
To described main frame.
The method that the device that the embodiment of the present invention two provides implants the embodiment of the present invention one offer, therefore, the present invention carries
For device specific work process, here do not repeat again.
To sum up, volume control device provided in an embodiment of the present invention, can store the priority of application program in IP hard disk
Information, and control the speed of the access message receiving application program according to this precedence information, excellent such that it is able to effectively solving
First the problem carrying out rapid feedback is operated to accessing of high-level application program.
Professional should further appreciate that, each example describing in conjunction with the embodiments described herein
Unit and algorithm steps, can be hard in order to clearly demonstrate with electronic hardware, computer software or the two be implemented in combination in
Part and the interchangeability of software, generally describe composition and the step of each example in the above description according to function.
These functions to be executed with hardware or software mode actually, the application-specific depending on technical scheme and design constraint.
Professional and technical personnel can use different methods to each specific application realize described function, but this realization
It is not considered that it is beyond the scope of this invention.
The step of the method in conjunction with the embodiments described herein description or algorithm can be with hardware, computing device
Software module, or the combination of the two is implementing.Software module can be placed in random access memory(RAM), internal memory, read only memory
(ROM), electrically programmable ROM, electrically erasable ROM, depositor, hard disk, moveable magnetic disc, CD-ROM or technical field
In interior known any other form of storage medium.
Above-described specific embodiment, has been carried out to the purpose of the present invention, technical scheme and beneficial effect further
Describe in detail, be should be understood that the specific embodiment that the foregoing is only the present invention, be not intended to limit the present invention
Protection domain, all any modification, equivalent substitution and improvement within the spirit and principles in the present invention, done etc., all should comprise
Within protection scope of the present invention.
Claims (8)
1. it is characterised in that methods described is applied to storage system, described storage system includes main frame to a kind of flow control methods
With Internet protocol IP hard disk, described main frame and described IP hard disk communicated by IP agreement, and described main frame includes applying journey
Sequence, methods described includes:
Described IP hard disk receives the access message that described main frame sends, and described access message includes:Described application program preferential
The information of level information data bag;
When the memory usage of described IP hard disk is more than the first predetermined threshold value, determine the described stream control grade accessing belonging to message
It is one-level stream control;
In default precedence information one-level stream corresponding with inquiring about described precedence information in the mapping table of flow control parameters
Control parameter, calculates described precedence information corresponding permission flow according to described one-level flow control parameters;
When the memory usage of described IP hard disk is more than the second predetermined threshold value and is less than the first predetermined threshold value, determine described access
Stream control grade belonging to message is secondary streams control;
In default precedence information secondary streams corresponding with inquiring about described precedence information in the mapping table of flow control parameters
Control parameter, calculates described precedence information corresponding permission flow according to described secondary streams control parameter;
Flow-control is carried out to described access message according to described precedence information corresponding permission flow.
2. method according to claim 1 is it is characterised in that described storage system also includes AUC, described preferential
Level information is to be sent to described main frame by described AUC.
3. method according to claim 2 it is characterised in that described calculated according to described one-level flow control parameters described preferential
Level information is corresponding to allow flow to include:
Corresponding permission flow is calculated according to equation below:
CountN=CountN-1× (1-Rate (i)) N >=1, i=1
Wherein, N is precedence information, and Rate (i) is the flow control parameters in stream control grade corresponding with precedence information N, works as i=
When 1, Rate (1) is one-level flow control parameters corresponding with precedence information N, CountNAllow stream for precedence information N is corresponding
Amount.
4. method according to claim 2 it is characterised in that described calculated according to described secondary streams control parameter described preferential
Level information is corresponding to allow flow to include:
Corresponding permission flow is calculated according to equation below:
CountN=CountN-1× (1-Rate (i)) N >=1, i=2
Wherein, N is precedence information, and Rate (i) is the flow control parameters in stream control grade corresponding with precedence information N, works as i=
When 2, Rate (2) is secondary streams control parameter corresponding with precedence information N, CountNAllow stream for precedence information N is corresponding
Amount.
5. it is characterised in that described device is applied to storage system, described storage system includes main frame to a kind of volume control device
With Internet protocol IP hard disk, described main frame and described IP hard disk communicated by IP agreement, and described main frame includes applying journey
Sequence, described device includes:Receiving unit, judging unit, acquiring unit and control unit;
Described receiving unit, for receiving the access message that described main frame sends, described access message includes:Described application program
Precedence information data bag information;
Described judging unit specifically for:When the memory usage of described IP hard disk is more than the first predetermined threshold value, determine described
The stream control grade accessing belonging to message is one-level stream control;
Described acquiring unit specifically for:When described judging unit determines that the described stream control grade accessing belonging to message is one-level stream
During control, in default precedence information one-level stream corresponding with inquiring about described precedence information in the mapping table of flow control parameters
Control parameter, calculates described precedence information corresponding permission flow according to described one-level flow control parameters;
Described judging unit is specifically for when the memory usage of described IP hard disk is more than the second predetermined threshold value and pre- less than first
If during threshold value, determine that the described stream control grade accessing belonging to message is secondary streams control;
Described acquiring unit specifically for:When described judging unit determines that the described stream control grade accessing belonging to message is secondary streams
During control, in default precedence information secondary streams corresponding with inquiring about described precedence information in the mapping table of flow control parameters
Control parameter, calculates described precedence information corresponding permission flow according to described secondary streams control parameter;
Described control unit, for carrying out flow control according to described precedence information corresponding permission flow to described access message
System.
6. device according to claim 5 is it is characterised in that described storage system also includes AUC, described preferential
Level information is to be sent to described main frame by described AUC.
7. device according to claim 5 it is characterised in that described acquiring unit specifically for:
Corresponding permission flow is calculated according to equation below:
CountN=CountN-1× (1-Rate i ()) N >=i=1,1
Wherein, N is precedence information, and Rate (i) is the flow control parameters in stream control grade corresponding with precedence information N, works as i=
When 1, Rate (1) is one-level flow control parameters corresponding with precedence information N, CountNAllow stream for precedence information N is corresponding
Amount.
8. device according to claim 5 it is characterised in that described acquiring unit specifically for:
Corresponding permission flow is calculated according to equation below:
CountN=CountN-1× (1-Rate i ()) N >=i=1,2
Wherein, N is precedence information, and Rate (i) is the flow control parameters in stream control grade corresponding with precedence information N, works as i=
When 2, Rate (2) is secondary streams control parameter corresponding with precedence information N, CountNAllow stream for precedence information N is corresponding
Amount.
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 CN103905335A (en) | 2014-07-02 |
CN103905335B true 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) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104077239B (en) * | 2014-06-24 | 2017-04-26 | 华为技术有限公司 | IP hard disk, and memory system and data operation method thereof |
CN106385386B (en) * | 2016-08-31 | 2019-04-12 | 成都飞鱼星科技股份有限公司 | Using servo-actuated smart flow control method |
CN107037977B (en) * | 2016-10-14 | 2020-04-07 | 惠州Tcl移动通信有限公司 | Data writing control method and system based on mobile terminal |
CN108282411B (en) * | 2017-12-29 | 2022-07-29 | 北京五八信息技术有限公司 | Access current limiting method, device, equipment and computer readable storage medium |
Citations (3)
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 |
-
2014
- 2014-04-15 CN CN201410151421.4A patent/CN103905335B/en active Active
Patent Citations (3)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN103905335A (en) | 2014-07-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103905335B (en) | Flow control methods and device | |
US8223640B2 (en) | Synchronous traffic shaping | |
US20150117199A1 (en) | Multi-Level iSCSI QoS for Target Differentiated Data in DCB Networks | |
CN103731413B (en) | A kind of method for handling abnormal login | |
US20160323190A1 (en) | High-performance quality-of-service packet scheduling for multiple packet processing engines | |
CN104954271B (en) | Data package processing method and device in SDN network | |
CN104811473B (en) | A kind of method, system and management system for creating virtual non-volatile storage medium | |
CN105100015B (en) | A kind of method and device for acquiring internet access data | |
US20150032837A1 (en) | Hard Disk and Data Processing Method | |
US11379836B2 (en) | Methods and systems for recording data based on plurality of blockchain networks | |
CN104348841B (en) | Content distribution method, analysis and managing and control system and content distribution network system | |
CN105516302B (en) | A kind of data processing method and the network equipment | |
US20170132161A1 (en) | I/o request processing method and storage system | |
CN101163161A (en) | United resource localizer address filtering method and intermediate transmission equipment | |
JP2013533536A (en) | Leader arbitration for provisioning services | |
CN106648938A (en) | Linux system application program memory management method and system | |
CN107786669A (en) | A kind of method of load balance process, server, device and storage medium | |
CN108282516A (en) | A kind of distributed storage cluster load balancing method and device based on iSCSI | |
CN104348711B (en) | Message receiving apparatus and method | |
CN107707597A (en) | One kind burst focus accesses equalization processing method and device | |
CN108241696A (en) | Obtain the method, apparatus and system of map datum | |
US20140289407A1 (en) | Group co-ownership of internet-accessible resources | |
CN106254444A (en) | The content buffering method of a kind of content center network and device | |
US20130080598A1 (en) | Determining the physical location of a client | |
CN105991467B (en) | A kind of message forwarding method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |