CN105827543B - A flow control method and electronic device - Google Patents
A flow control method and electronic device Download PDFInfo
- Publication number
- CN105827543B CN105827543B CN201510000992.2A CN201510000992A CN105827543B CN 105827543 B CN105827543 B CN 105827543B CN 201510000992 A CN201510000992 A CN 201510000992A CN 105827543 B CN105827543 B CN 105827543B
- Authority
- CN
- China
- Prior art keywords
- quota
- update
- offset
- queue
- updated
- 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
- 238000000034 method Methods 0.000 title claims abstract description 30
- 230000005540 biological transmission Effects 0.000 claims description 17
- 238000010586 diagram Methods 0.000 description 5
- 238000013523 data management Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
本发明实施例公开了一种流量控制方法及电子设备,当流量消耗满足第一预设条件时,发起配额更新请求;接收所述配额更新请求,根据预存储的配额参数、配额更新条件、以及配额更新规则,更新与所述配额更新条件相对应的配额更新队列,得到更新后的配额更新队列;根据所述更新后的配额更新队列中的配额数据,反馈配额更新响应。
Embodiments of the present invention disclose a traffic control method and electronic device, when traffic consumption meets a first preset condition, initiate a quota update request; receive the quota update request, according to pre-stored quota parameters, quota update conditions, and The quota update rule is to update the quota update queue corresponding to the quota update condition to obtain an updated quota update queue; and feed back a quota update response according to the quota data in the updated quota update queue.
Description
技术领域technical field
本发明涉及数据管理技术,尤其涉及一种流量控制方法及电子设备。The invention relates to data management technology, in particular to a flow control method and electronic equipment.
背景技术Background technique
目前,通行的流量控制方法存在如下两种:第一种属于离线控制,即对单位时间内的流量额度不予控制,而是定期通过流量传输设备的传输日志等历史记录来分析传输数据,决策是否需要控制流量,发现控制条件成立时则通过停止流量传输等手段实现流量配额管理,而决策过程流量传输正常执行;第二种属于实时控制,即通过控制单位时间内可用流量配额,实现流量额度的实时控制。然而,在离线控制中,流量额度控制不及时,不精准;同样,在实时控制中,流量配额粒度控制难度大,导致流量额度控制不及时、不精准或配额控制过于频繁的问题。At present, there are two common traffic control methods: the first is offline control, that is, the traffic quota per unit time is not controlled. Whether it is necessary to control the flow, when it is found that the control conditions are established, the flow quota management is realized by means such as stopping the flow transmission, and the flow transmission in the decision-making process is executed normally; the second type is real-time control, that is, by controlling the available flow quota per unit time, the flow quota is realized real-time control. However, in offline control, traffic quota control is not timely and accurate; similarly, in real-time control, it is difficult to control traffic quota granularity, resulting in untimely and inaccurate traffic quota control or too frequent quota control.
综上所述,上述流量控制方法不够合理,使得流量配额控制效率较低,从而严重影响流量传输的质量和效率。To sum up, the above flow control method is not reasonable enough, so that the flow quota control efficiency is low, thereby seriously affecting the quality and efficiency of flow transmission.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本发明实施例期望提供一种流量控制方法及电子设备,能够有效解决流量配额控制效率较低的问题。In view of this, the embodiments of the present invention expect to provide a flow control method and electronic device, which can effectively solve the problem of low flow quota control efficiency.
为达到上述目的,本发明实施例的技术方案是这样实现的:In order to achieve the above-mentioned purpose, the technical scheme of the embodiment of the present invention is realized as follows:
本发明实施例提供一种流量控制方法,该方法包括:An embodiment of the present invention provides a flow control method, which includes:
当流量消耗满足第一预设条件时,发起配额更新请求;When the traffic consumption satisfies the first preset condition, initiate a quota update request;
接收所述配额更新请求,根据预存储的配额参数、配额更新条件、以及配额更新规则,更新与所述配额更新条件相对应的配额更新队列,得到更新后的配额更新队列;Receive the quota update request, update the quota update queue corresponding to the quota update condition according to the pre-stored quota parameters, quota update conditions, and quota update rules, and obtain an updated quota update queue;
根据所述更新后的配额更新队列中的配额数据,反馈配额更新响应。A quota update response is fed back according to the updated quota data in the quota update queue.
上述方案中,所述配额更新请求中携带有当前的流量配额信息;In the above solution, the quota update request carries the current traffic quota information;
所述接收所述配额更新请求,根据预存储的配额参数、配额更新条件、以及配额更新规则,更新与所述配额更新条件相对应的配额更新队列,得到更新后的配额更新队列,包括:The receiving the quota update request, according to the pre-stored quota parameters, quota update conditions, and quota update rules, update the quota update queue corresponding to the quota update conditions, and obtain the updated quota update queue, including:
接收并解析所述配额更新请求,获得所述流量配额信息;receiving and parsing the quota update request to obtain the traffic quota information;
根据预存储的配额参数确定所述流量配额信息满足配额更新条件时,向与所述配额更新条件相对应的配额更新队列中写入更新通知;When it is determined according to the pre-stored quota parameters that the traffic quota information satisfies the quota update condition, write an update notification to the quota update queue corresponding to the quota update condition;
接收所述更新通知,并从所述配额更新队列中读取配额数据;receiving the update notification, and reading quota data from the quota update queue;
根据预设配额更新规则更新所述配额数据,将更新后的配额数据写入所述配额更新队列中,得到更新后的配额更新队列。The quota data is updated according to a preset quota update rule, and the updated quota data is written into the quota update queue to obtain an updated quota update queue.
上述方案中,所述方法还包括:In the above scheme, the method also includes:
在等待反馈配额更新响应期间,流量传输会正常执行直至配额正向偏移消耗完毕后进入完全等待状态。While waiting for the feedback quota update response, the traffic transmission will be performed normally until the quota forward offset is consumed and enters the full wait state.
上述方案中,所述方法还包括:当所述完全等待状态的持续时间超过配额占用时间时,则重新发起配额更新请求。In the above solution, the method further includes: when the duration of the complete waiting state exceeds the quota occupation time, re-initiating the quota update request.
上述方案中,所述方法还包括:In the above scheme, the method also includes:
根据所反馈的配额更新响应校正配额消耗初始值;当配额偏移为零且校正后的配额消耗初始值大于等于可用额度时,结束流量传输。Correct the initial value of quota consumption according to the feedback of the quota update response; when the quota offset is zero and the corrected initial value of quota consumption is greater than or equal to the available quota, the traffic transmission is ended.
本发明实施例还提供一种电子设备,所述电子设备包括执行控制器、调制器和配额正算器;其中,An embodiment of the present invention further provides an electronic device, the electronic device includes an execution controller, a modulator, and a quota calculator; wherein,
所述执行控制器,用于当流量消耗满足第一预设条件时,发起配额更新请求;the execution controller, configured to initiate a quota update request when the traffic consumption satisfies the first preset condition;
所述调制器,用于接收所述配额更新请求,根据预存储的配额参数、配额更新条件、以及配额更新规则,更新与所述配额更新条件相对应的配额更新队列,得到更新后的配额更新队列;The modulator is configured to receive the quota update request, update the quota update queue corresponding to the quota update condition according to pre-stored quota parameters, quota update conditions, and quota update rules, and obtain the updated quota update queue;
所述配额正算器,用于根据所述更新后的配额更新队列中的配额数据,向所述执行控制器反馈配额更新响应。The quota calculator is configured to feed back a quota update response to the execution controller according to the quota data in the updated quota update queue.
上述方案中,所述配额更新请求中携带有当前的流量配额信息;In the above solution, the quota update request carries the current traffic quota information;
所述调控器包括配额反算器和参数调整控制器;其中,The regulator includes a quota inverse calculator and a parameter adjustment controller; wherein,
所述配额反算器,用于接收并解析所述配额更新请求,获得所述流量配额信息;根据预存储的配额参数确定所述流量配额信息满足配额更新条件时,向与所述配额更新条件相对应的配额更新队列中写入更新通知;The quota inverse calculator is configured to receive and parse the quota update request to obtain the traffic quota information; when it is determined that the traffic quota information satisfies the quota update condition according to the pre-stored quota parameters, send the request to the quota update condition with the quota update condition. Write an update notification to the corresponding quota update queue;
所述参数调整控制器,用于接收所述更新通知,并从所述配额更新队列中读取配额数据;根据预设配额更新规则更新所述配额数据,将更新后的配额数据写入所述配额更新队列中,得到更新后的配额更新队列。The parameter adjustment controller is configured to receive the update notification, and read quota data from the quota update queue; update the quota data according to preset quota update rules, and write the updated quota data into the In the quota update queue, the updated quota update queue is obtained.
上述方案中,所述执行控制器在等待反馈配额更新响应期间处于半等待状态,直至配额正向偏移消耗完毕后进入完全等待状态。In the above solution, the execution controller is in a semi-waiting state while waiting for a feedback quota update response, and enters a full-waiting state after the quota forward offset is consumed.
上述方案中,所述执行控制器,还用于当所述完全等待状态的持续时间超过配额占用时间时,重新发起配额更新请求。In the above solution, the execution controller is further configured to re-initiate the quota update request when the duration of the complete waiting state exceeds the quota occupation time.
上述方案中,所述执行控制器,还用于根据所反馈的配额更新响应校正配额消耗初始值;当配额偏移为零且校正后的配额消耗初始值大于等于可用额度时,结束流量传输。In the above solution, the execution controller is further configured to correct the initial value of quota consumption according to the feedback quota update response; when the quota offset is zero and the corrected initial value of quota consumption is greater than or equal to the available quota, the traffic transmission is ended.
本发明实施例所提供的流量控制方法及电子设备,当流量消耗满足第一预设条件时,发起配额更新请求;接收所述配额更新请求,根据预存储的配额参数、配额更新条件、以及配额更新规则,更新与所述配额更新条件相对应的配额更新队列,得到更新后的配额更新队列;根据所述更新后的配额更新队列中的配额数据,反馈配额更新响应。如此,能够有效解决流量配额控制效率较低的问题,从而提高流量传输质量和效率,提升用户体验。In the traffic control method and electronic device provided by the embodiments of the present invention, when the traffic consumption satisfies the first preset condition, a quota update request is initiated; after receiving the quota update request, according to the pre-stored quota parameters, quota update conditions, and quota Updating the rule, updating the quota update queue corresponding to the quota update condition to obtain an updated quota update queue; and feeding back a quota update response according to the quota data in the updated quota update queue. In this way, the problem of low traffic quota control efficiency can be effectively solved, thereby improving the quality and efficiency of traffic transmission and improving user experience.
附图说明Description of drawings
图1为本发明实施例流量控制方法的实现流程示意图一;FIG. 1 is a schematic diagram 1 of a realization flow of a flow control method according to an embodiment of the present invention;
图2为本发明实施例更新配额更新队列的实现流程示意图;2 is a schematic flowchart of an implementation of updating a quota update queue according to an embodiment of the present invention;
图3为本发明实施例流量控制方法的实现流程示意图二;FIG. 3 is a second implementation flowchart of the flow control method according to an embodiment of the present invention;
图4为本发明实施例电子设备的组成结构示意图;4 is a schematic diagram of the composition and structure of an electronic device according to an embodiment of the present invention;
图5为本发明实施例电子设备中调控器的组成结构示意图。FIG. 5 is a schematic diagram of the composition and structure of a regulator in an electronic device according to an embodiment of the present invention.
具体实施方式Detailed ways
在本发明实施例中,当流量消耗满足第一预设条件时,发起配额更新请求;接收所述配额更新请求,根据预存储的配额参数、配额更新条件、以及配额更新规则,更新与所述配额更新条件相对应的配额更新队列,得到更新后的配额更新队列;根据所述更新后的配额更新队列中的配额数据,反馈配额更新响应。In the embodiment of the present invention, when the traffic consumption satisfies the first preset condition, a quota update request is initiated; the quota update request is received, and according to the pre-stored quota parameters, quota update conditions, and quota update rules, the A quota update queue corresponding to the quota update condition is obtained, and an updated quota update queue is obtained; and a quota update response is fed back according to the quota data in the updated quota update queue.
下面结合附图及具体实施例对本发明再作进一步详细的说明。The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
实施例一Example 1
图1为本发明实施例流量控制方法的实现流程示意图一,如图1所示,本发明实施例流量控制方法包括:FIG. 1 is a schematic diagram 1 of the implementation flow of the flow control method according to the embodiment of the present invention. As shown in FIG. 1 , the flow control method according to the embodiment of the present invention includes:
步骤S101:当流量消耗满足第一预设条件时,发起配额更新请求;Step S101: when the traffic consumption satisfies the first preset condition, initiate a quota update request;
其中,所述配额更新请求中携带有当前的流量配额信息。Wherein, the quota update request carries the current traffic quota information.
这里,所述第一预设条件为流量消耗大于等于配额偏移下限Δt-Δt1。所述当前的流量配额信息包括流量消耗,所述流量消耗包括配额Δt消耗、配额正向偏移Δt2消耗及配额负向偏移Δt1消耗等;所述当前的流量配额信息还可以包括更新时间戳、配额占用时间等信息。Here, the first preset condition is that the traffic consumption is greater than or equal to the lower limit of the quota offset Δt-Δt1. The current traffic quota information includes traffic consumption, and the traffic consumption includes quota Δt consumption, quota positive offset Δt2 consumption, and quota negative offset Δt1 consumption, etc.; the current traffic quota information may also include an update timestamp. , quota occupation time and other information.
具体地,执行控制器实时监控流量传输,当流量消耗大于等于配额偏移下限Δt-Δt1时,执行控制器就会向配额反算器发起配额更新请求。Specifically, the execution controller monitors traffic transmission in real time, and when the traffic consumption is greater than or equal to the lower limit of the quota offset Δt-Δt1, the execution controller initiates a quota update request to the quota inverse calculator.
步骤S102:接收所述配额更新请求,根据预存储的配额参数、配额更新条件、以及配额更新规则,更新与所述配额更新条件相对应的配额更新队列,得到更新后的配额更新队列;Step S102: Receive the quota update request, and update the quota update queue corresponding to the quota update condition according to pre-stored quota parameters, quota update conditions, and quota update rules, to obtain an updated quota update queue;
其中,预存储的配额参数包括配额负向偏移Δt1、配额正向偏移Δt2、配额下限t1、配额上限t2、可用额度t、以及可用额度t的偏移t3、以及可用额度t的最小额度偏移t3min。The pre-stored quota parameters include a negative quota offset Δt1, a positive quota offset Δt2, a lower quota t1, an upper quota t2, an available quota t, an offset t3 of the available quota t, and a minimum quota of the available quota t. Offset t3 min .
具体地,调控器接收所述配额更新请求,根据与存储的配额参数、配额更新条件、以及配额更新规则,更新与所述配额更新条件相对应的配额更新队列,得到更新后的配额更新队列;其中,所述调控器包括参数调整控制器和配额反算器;所述参数调整控制器可以包括配额门限控制器、可用额度偏移控制器和配额偏移控制器。Specifically, the controller receives the quota update request, and updates the quota update queue corresponding to the quota update condition according to the stored quota parameters, quota update conditions, and quota update rules, and obtains an updated quota update queue; Wherein, the regulator includes a parameter adjustment controller and a quota inverse calculator; the parameter adjustment controller may include a quota threshold controller, an available quota offset controller, and a quota offset controller.
图2为本发明实施例更新配额更新队列的实现流程示意图,在一实施例中,如图2所示,所述调控器接收所述配额更新请求,根据与存储的配额参数、配额更新条件、以及配额更新规则,更新与所述配额更新条件相对应的配额更新队列,得到更新后的配额更新队列,包括:FIG. 2 is a schematic flowchart of an implementation of updating a quota update queue according to an embodiment of the present invention. In an embodiment, as shown in FIG. 2 , the controller receives the quota update request, according to the stored quota parameters, quota update conditions, And the quota update rule, update the quota update queue corresponding to the quota update condition, and obtain the updated quota update queue, including:
步骤S1021:接收并解析所述配额更新请求,获得所述流量配额信息;Step S1021: Receive and parse the quota update request to obtain the traffic quota information;
具体地,配额反算器接收所述配额更新请求后,解析所述配额更新请求,获得所述流量配额信息。Specifically, after receiving the quota update request, the quota inverse calculator parses the quota update request to obtain the traffic quota information.
步骤S1022:根据预存储的配额参数确定所述流量配额信息满足配额更新条件时,向与所述配额更新条件相对应的配额更新队列中写入更新通知;Step S1022: when it is determined according to the pre-stored quota parameters that the traffic quota information satisfies the quota update condition, write an update notification to the quota update queue corresponding to the quota update condition;
具体地,配额反算器根据预存储的配额参数确定所述流量配额信息满足配额更新条件时,向与所述配额更新条件相对应的配额更新队列中写入更新通知,包括如下四种情况:Specifically, when the quota inverse calculator determines that the traffic quota information satisfies the quota update conditions according to the pre-stored quota parameters, it writes an update notification to the quota update queue corresponding to the quota update conditions, including the following four situations:
A、当确定所述流量配额信息满足第一子配额更新条件,即可用额度t-配额Δt消耗-配额正向偏移Δt2消耗<可用额度t的偏移t3+配额正向偏移Δt2+配额上限t2,或配额首次鉴权,则配额反算器向与所述第一子配额更新条件相对应的可用额度偏移更新队列写入可用额度偏移更新通知;A. When it is determined that the traffic quota information satisfies the first sub-quota update condition, that is, available quota t - quota Δt consumption - quota forward offset Δt2 consumption < offset t3 of available quota t + quota forward offset Δt2 + quota upper limit t2 , or the quota is authenticated for the first time, the quota inverse calculator writes an available quota offset update notification to the available quota offset update queue corresponding to the first sub-quota update condition;
B、当确定所述流量配额信息满足第二子配额更新条件,即可用额度t的偏移t3<配额正向偏移Δt2+配额上限t2-配额负向偏移Δt1消耗时,则配额反算器向与所述第二子配额更新条件相对应的配额门限更新队列写入门限更新通知;B. When it is determined that the traffic quota information satisfies the second sub-quota update condition, that is, the offset t3 of the available quota t < the quota positive offset Δt2 + the quota upper limit t2 - the quota negative offset Δt1 is consumed, the quota inverse calculator writing a threshold update notification to the quota threshold update queue corresponding to the second sub-quota update condition;
C、当确定所述流量配额信息满足第三子配额更新条件,即可用额度t-配额上限t2-配额正向偏移Δt2-可用额度偏移t3<配额正向偏移Δt2-配额正向偏移Δt2消耗时,则配额反算器向与所述第三子配额更新条件相对应的配额偏移更新队列写入偏移更新通知;C. When it is determined that the traffic quota information satisfies the third sub-quota update condition, that is, available quota t - quota upper limit t2 - quota forward offset Δt2 - available quota offset t3 < quota forward offset Δt2 - quota forward offset When the shift Δt2 is consumed, the quota inverse calculator writes an offset update notification to the quota offset update queue corresponding to the third sub-quota update condition;
D、当确定所述流量配额信息满足第四子配额更新条件,即可用额度t-配额Δt消耗-配额正向偏移Δt2消耗≤0,或者存在预设可用额度t的最小额度偏移t3min且配额Δt消耗-配额正向偏移Δt2消耗≤可用额度t的最小额度偏移t3min时,则配额反算器向与所示第四子配额更新条件相对应的配额更新通知队列中写入零配额更新通知。D. When it is determined that the traffic quota information satisfies the fourth sub-quota update condition, that is, the available quota t - quota Δt consumption - quota forward offset Δt2 consumption ≤ 0, or there is a minimum quota offset t3 min of the preset available quota t And quota Δt consumption - quota forward offset Δt2 consumption ≤ the minimum quota offset t3 min of the available quota t, the quota inverse calculator writes to the quota update notification queue corresponding to the fourth sub-quota update condition shown Zero quota update notifications.
需要补充说明的是,当经确定为A至C任一种情况时,配额反算器在向与所述配额更新条件相对应的配额更新队列中写入更新通知的同时,也会向配额更新通知队列写入待偏移更新通知。It should be added that when it is determined to be any of the cases from A to C, the quota inverse calculator will also update the quota while writing an update notification to the quota update queue corresponding to the quota update condition. The notification queue writes notifications for pending offset updates.
步骤S1023~S1024:接收所述更新通知,并从所述配额更新队列中读取配额数据;根据预设配额更新规则更新所述配额数据,将更新后的配额数据写入所述配额更新队列中,得到更新后的配额更新队列。Steps S1023-S1024: Receive the update notification, and read quota data from the quota update queue; update the quota data according to preset quota update rules, and write the updated quota data into the quota update queue to get the updated quota update queue.
具体地,当经步骤S1022确定为情况A时,参数调整控制器中的配额门限控制器接收所述更新通知,并从所述配额更新队列中读取配额数据;进一步地,根据预设配额更新规则更新所述配额数据,将更新后的配额数据写入所述配额更新队列中,得到更新后的配额更新队列,包括:当所述配额更新为非首次鉴权通知且可用额度t-配额Δt消耗-配额正向偏移Δt2消耗<配额上限t2时,更新所述配额数据,即可用额度t的偏移t3=0;否则,可用额度t的偏移t3=配额正向偏移Δt2+配额负向偏移Δt1-配额负向偏移Δt1消耗,并将更新后的配额数据写入所述配额更新队列中,得到更新后的配额更新队列。Specifically, when it is determined as the case A through step S1022, the quota threshold controller in the parameter adjustment controller receives the update notification, and reads the quota data from the quota update queue; further, according to the preset quota update The rules update the quota data, write the updated quota data into the quota update queue, and obtain the updated quota update queue, including: when the quota update is not the first authentication notification and the available quota t-quota Δt Consumption-quota positive offset Δt2 When consumption < quota upper limit t2, update the quota data, that is, the offset t3 of the available quota t = 0; otherwise, the offset t3 of the available quota t = the positive quota offset Δt2 + the negative quota Consume toward the offset Δt1 - the negative offset Δt1 of the quota, and write the updated quota data into the quota update queue to obtain the updated quota update queue.
需要补充说明的是,当所述配额更新为首次鉴权通知时,则可以遵循可用配额偏移初始移动规则对可用配额t的偏移t3进行赋值处理,得到配额更新后的配额数据,并将更新后的配额数据写入所述配额更新队列中,得到更新后的配额更新队列。It should be supplemented that when the quota is updated to the first authentication notification, the offset t3 of the available quota t can be assigned according to the initial movement rule of the available quota offset to obtain the quota data after the quota update, and the The updated quota data is written into the quota update queue to obtain the updated quota update queue.
具体地,当经步骤S1022确定为情况B时,参数调整控制器中的可用额度偏移控制器接收所述更新通知,并从所述配额更新队列中读取配额数据;进一步地,根据预设配额更新规则更新所述配额数据,将更新后的配额数据写入所述配额更新队列中,得到更新后的配额更新队列,包括:1)当配额更新为非首次鉴权通知且可用额度t的偏移t3=0且可用额度t-配额Δt消耗-配额正向偏移Δt2消耗≥0时,更新所述配额数据,即配额下限t1=0且配额上限t2=可用额度t-配额Δt消耗-配额正向偏移Δt2消耗;2)当可用额度t的偏移t3=0且可用额度t-配额Δt消耗-配额正向偏移Δt2消耗<0时,更新所述配额数据,即配额上限t2=0且配额下限t1=可用额度t-配额Δt消耗-配额正向偏移Δt2消耗;3)当可用额度t的偏移t3>0时,更新所述配额数据,即配额下限t1=配额正向偏移Δt2+配额负向偏移Δt1-配额正向偏移Δt2消耗-配额负向偏移Δt1消耗且配额上限t2=配额下限t1+可用额度t-配额Δt消耗-配额正向偏移Δt2消耗-可用额度t的偏移t3。进一步地,将更新后的配额数据写入所述配额更新队列中,得到更新后的配额更新队列。Specifically, when it is determined as the case B through step S1022, the available quota offset controller in the parameter adjustment controller receives the update notification, and reads quota data from the quota update queue; further, according to a preset The quota update rule updates the quota data, writes the updated quota data into the quota update queue, and obtains the updated quota update queue, including: 1) when the quota update is not the first authentication notification and the available quota is t When offset t3=0 and available quota t-quota Δt consumption-quota positive offset Δt2 consumption ≥ 0, update the quota data, that is, quota lower limit t1=0 and quota upper limit t2=available quota t-quota Δt consumption- Quota forward offset Δt2 consumption; 2) When the offset t3 of the available quota t=0 and the available quota t-quota Δt consumption-quota forward offset Δt2 consumption<0, update the quota data, that is, the quota upper limit t2 = 0 and the quota lower limit t1 = available quota t - quota Δt consumption - quota positive offset Δt2 consumption; 3) When the offset t3 of the available quota t > 0, update the quota data, that is, the quota lower limit t1 = quota positive Toward offset Δt2 + quota negative offset Δt1 - quota positive offset Δt2 consumption - quota negative offset Δt1 consumption and quota upper limit t2 = quota lower limit t1 + available quota t - quota Δt consumption - quota positive offset Δt2 consumption - Offset t3 of available credit t. Further, the updated quota data is written into the quota update queue to obtain the updated quota update queue.
需要补充说明的是,当所述配额更新为首次鉴权通知时,则可以遵循配额门限初始移动规则对配额下限t1和配额上限t2进行赋值处理,得到配额更新后的配额数据,并将更新后的配额数据写入所述配额更新队列中,得到更新后的配额更新队列。It should be supplemented that when the quota is updated to the first authentication notification, the quota lower limit t1 and the quota upper limit t2 can be assigned values according to the quota threshold initial movement rules to obtain the quota data after the quota update, and the updated quota data can be obtained. The quota data is written into the quota update queue to obtain the updated quota update queue.
具体地,当经步骤S1022确定为情况C时,参数调整控制器中的配额偏移控制器接收所述更新通知,并从所述配额更新队列中读取配额数据;进一步地,根据预设配额更新规则更新所述配额数据,将更新后的配额数据写入所述配额更新队列中,得到更新后的配额更新队列,包括:1)当配额更新为非首次鉴权通知且配额上限t2=0或配额下限t1=0时,更新所述配额数据,即配额负向偏移Δt1=配额正向偏移Δt2=0;2)当配额下限t1>可用额度t的偏移t3=0时,更新所述配额数据,即配额正向偏移Δt2=可用额度t-配额上限t2-配额Δt消耗-配额正向偏移Δt2消耗,配额负向偏移Δt1=配额正向偏移Δt2-配额正向偏移Δt2消耗;3)当可用额度t的偏移t3>0时,更新所述配额数据,即配额正向偏移Δt2=配额上限t2-配额Δt消耗-配额正向偏移Δt2消耗-可用额度t的偏移t3,配额负向偏移Δt1=最近一次的配额正向偏移Δt2-配额正向偏移Δt2消耗。进一步地,将更新后的配额数据写入所述配额更新队列中,得到更新后的配额更新队列。Specifically, when the case C is determined in step S1022, the quota offset controller in the parameter adjustment controller receives the update notification, and reads the quota data from the quota update queue; further, according to the preset quota The update rule updates the quota data, writes the updated quota data into the quota update queue, and obtains the updated quota update queue, including: 1) when the quota update is not the first authentication notification and the quota upper limit t2=0 Or when the quota lower limit t1=0, update the quota data, that is, the quota negative offset Δt1 = the quota positive offset Δt2=0; 2) when the quota lower limit t1 > the offset t3=0 of the available quota t, update The quota data, that is, quota positive offset Δt2 = available quota t - quota upper limit t2 - quota Δt consumption - quota positive offset Δt2 consumption, quota negative offset Δt1 = quota positive offset Δt2 - quota positive Offset Δt2 consumption; 3) When the offset t3 of the available quota t>0, update the quota data, that is, quota forward offset Δt2 = quota upper limit t2 - quota Δt consumption - quota forward offset Δt2 consumption - available The offset t3 of the quota t, the negative quota offset Δt1 = the last positive quota offset Δt2 - the consumption of the quota positive offset Δt2. Further, the updated quota data is written into the quota update queue to obtain the updated quota update queue.
需要补充说明的是,当所述配额更新为首次鉴权通知时,则可以遵循配额偏移初始移动规则对配额负向偏移Δt1和配额正向偏移Δt2进行赋值处理,得到配额更新后的配额数据,并将更新后的配额数据写入所述配额更新队列中,得到更新后的配额更新队列。It should be added that when the quota is updated to the first authentication notification, the quota negative offset Δt1 and the quota positive offset Δt2 can be assigned according to the quota offset initial movement rule to obtain the updated quota. Quota data, and write the updated quota data into the quota update queue to obtain the updated quota update queue.
步骤S103:根据所述更新后的配额更新队列中的配额数据,反馈配额更新响应。Step S103: Feed back a quota update response according to the updated quota data in the quota update queue.
具体地,配额正算控制器从参数调整控制器获取更新后的配额更新队列,并根据所述更新后的配额更新队列中的配额数据向执行控制器反馈配额更新响应。Specifically, the quota correcting controller obtains the updated quota update queue from the parameter adjustment controller, and feeds back a quota update response to the execution controller according to the quota data in the updated quota update queue.
这里,执行控制器在等待反馈配额更新响应期间处于半等待状态,流量传输会正常执行,直至配额正向偏移Δt2消耗完毕后进入完全等待状态。进一步地,当所述完全等待状态的持续时间超过配额占用时间时,执行控制器重新发起配额更新请求。Here, the execution controller is in a semi-waiting state while waiting for a feedback quota update response, and traffic transmission will be executed normally until the quota forward offset Δt2 is consumed and enters a full-waiting state. Further, when the duration of the complete waiting state exceeds the quota occupation time, the execution controller re-initiates the quota update request.
如此,通过本发明实施例所述流量控制方法,能够有效解决流量配额控制效率较低的问题,从而提高流量传输质量和效率,提升用户体验。In this way, the traffic control method according to the embodiment of the present invention can effectively solve the problem of low efficiency of traffic quota control, thereby improving the quality and efficiency of traffic transmission and improving user experience.
实施例二Embodiment 2
图3为本发明实施例流量控制方法的实现流程示意图二,如图3所示,本发明实施例流量控制方法包括:FIG. 3 is a schematic diagram 2 of the implementation flow of the flow control method according to the embodiment of the present invention. As shown in FIG. 3 , the flow control method according to the embodiment of the present invention includes:
步骤S101:当流量消耗满足第一预设条件时,发起配额更新请求,所述配额更新请求中携带有当前的流量配额信息;Step S101: when the traffic consumption satisfies the first preset condition, initiate a quota update request, and the quota update request carries the current traffic quota information;
步骤S102:接收所述配额更新请求,根据预存储的配额参数、配额更新条件、以及配额更新规则,更新与所述配额更新条件相对应的配额更新队列,得到更新后的配额更新队列;Step S102: Receive the quota update request, and update the quota update queue corresponding to the quota update condition according to pre-stored quota parameters, quota update conditions, and quota update rules, to obtain an updated quota update queue;
步骤S103:根据所述更新后的配额更新队列中的配额数据,反馈配额更新响应;Step S103: Feeding back a quota update response according to the updated quota data in the quota update queue;
本发明实施例二中的步骤S101至步骤S103可以分别对应地参见实施例一中的步骤S101至步骤S103,为节约篇幅,这里不再赘述。Steps S101 to S103 in Embodiment 2 of the present invention may refer to Steps S101 to S103 in Embodiment 1, respectively. To save space, details are not repeated here.
步骤S201~S202:根据所反馈的配额更新响应校正配额消耗初始值;当配额偏移为零且校正后的配额消耗初始值大于等于可用额度时,结束流量传输。Steps S201-S202: Correct the initial value of quota consumption according to the feedback of the quota update response; when the quota offset is zero and the corrected initial value of quota consumption is greater than or equal to the available quota, the traffic transmission is ended.
具体地,执行控制器接收从配额正算器反馈的配额更新响应,并根据所反馈的配额更新响应校正配额消耗初始值;进一步地,当配额偏移为零且校正后的配额消耗初始值大于等于可用额度t时,结束流量传输;其中,所述配额偏移包括配额正向偏移Δt2和配额负向偏移Δt1。需要说明的是,所述校正配额消耗初始值的过程可以参照现有技术进行校正处理,这里不再赘述。Specifically, the execution controller receives the quota update response fed back from the quota corrector, and corrects the initial value of quota consumption according to the fed back quota update response; further, when the quota offset is zero and the corrected initial value of quota consumption is greater than When it is equal to the available quota t, the traffic transmission is ended; wherein, the quota offset includes a positive quota offset Δt2 and a negative quota offset Δt1. It should be noted that, the process of calibrating the initial value of quota consumption can be corrected with reference to the prior art, and details are not described here.
如此,通过本发明实施例所述流量控制方法,能够有效解决流量配额控制效率较低的问题,从而提高流量传输质量和效率,提升用户体验。In this way, the traffic control method according to the embodiment of the present invention can effectively solve the problem of low efficiency of traffic quota control, thereby improving the quality and efficiency of traffic transmission and improving user experience.
实施例三Embodiment 3
图4为一种电子设备,所述第一电子设备包括执行控制器401、调制器402和配额正算器403;其中,FIG. 4 is an electronic device, the first electronic device includes an execution controller 401, a modulator 402 and a quota calculator 403; wherein,
所述执行控制器401,用于当流量消耗满足第一预设条件时,发起配额更新请求;The execution controller 401 is configured to initiate a quota update request when the traffic consumption satisfies the first preset condition;
其中,所述配额更新请求中携带有当前的流量配额信息。Wherein, the quota update request carries the current traffic quota information.
所述调制器402,用于接收所述配额更新请求,根据预存储的配额参数、配额更新条件、以及配额更新规则,更新与所述配额更新条件相对应的配额更新队列,得到更新后的配额更新队列;The modulator 402 is configured to receive the quota update request, and update the quota update queue corresponding to the quota update condition according to pre-stored quota parameters, quota update conditions, and quota update rules, to obtain an updated quota update queue;
所述配额正算器403,用于根据所述更新后的配额更新队列中的配额数据,向所述执行控制器401反馈配额更新响应。The quota calculator 403 is configured to feed back a quota update response to the execution controller 401 according to the quota data in the updated quota update queue.
这里,所述执行控制器401在等待反馈配额更新响应期间处于半等待状态,直至配额正向偏移消耗完毕后进入完全等待状态。Here, the execution controller 401 is in a semi-waiting state while waiting for a feedback quota update response, and enters a full-waiting state after the quota forward offset is consumed.
在一实施例中,所述执行控制器401,还用于当所述完全等待状态的持续时间超过配额占用时间时,重新发起配额更新请求。In an embodiment, the execution controller 401 is further configured to re-initiate the quota update request when the duration of the complete waiting state exceeds the quota occupation time.
在一实施例中,所述执行控制器401,还用于根据所反馈的配额更新响应校正配额消耗初始值;当配额偏移为零且校正后的配额消耗初始值大于等于可用额度时,结束流量传输。In one embodiment, the execution controller 401 is further configured to correct the initial value of quota consumption according to the feedback quota update response; when the quota offset is zero and the corrected initial value of quota consumption is greater than or equal to the available quota, the process ends traffic transmission.
在一实施例中,如图5所示,所述调控器402包括配额反算器4021和参数调整控制器4022;所述参数调整控制器可以包括配额门限控制器4022a、可用额度偏移控制器4022b和配额偏移控制器4022c;其中,In one embodiment, as shown in FIG. 5 , the regulator 402 includes a quota inverse calculator 4021 and a parameter adjustment controller 4022; the parameter adjustment controller may include a quota threshold controller 4022a, an available quota offset controller 4022b and a quota offset controller 4022c; where,
所述配额反算器4021,用于接收并解析所述配额更新请求,获得所述流量配额信息;根据预存储的配额参数确定所述流量配额信息满足配额更新条件时,向与所述配额更新条件相对应的配额更新队列中写入更新通知;The quota inverse calculator 4021 is configured to receive and parse the quota update request, and obtain the traffic quota information; when it is determined that the traffic quota information satisfies the quota update condition according to the pre-stored quota parameters, it will update the quota to the quota update request. Write an update notification in the quota update queue corresponding to the condition;
具体地,所述配额反算器4021根据预存储的配额参数确定所述流量配额信息满足配额更新条件时,向与所述配额更新条件相对应的配额更新队列中写入更新通知,包括如下四种情况:Specifically, when the quota inverse calculator 4021 determines that the traffic quota information satisfies the quota update condition according to the pre-stored quota parameter, it writes an update notification to the quota update queue corresponding to the quota update condition, including the following four case:
A、当确定所述流量配额信息满足第一子配额更新条件,即可用额度t-配额Δt消耗-配额正向偏移Δt2消耗<可用额度t的偏移t3+配额正向偏移Δt2+配额上限t2,或配额首次鉴权,则配额反算器向与所述第一子配额更新条件相对应的可用额度偏移更新队列写入可用额度偏移更新通知;A. When it is determined that the traffic quota information satisfies the first sub-quota update condition, that is, available quota t - quota Δt consumption - quota forward offset Δt2 consumption < offset t3 of available quota t + quota forward offset Δt2 + quota upper limit t2 , or the quota is authenticated for the first time, the quota inverse calculator writes an available quota offset update notification to the available quota offset update queue corresponding to the first sub-quota update condition;
B、当确定所述流量配额信息满足第二子配额更新条件,即可用额度t的偏移t3<配额正向偏移Δt2+配额上限t2-配额负向偏移Δt1消耗时,则配额反算器向与所述第二子配额更新条件相对应的配额门限更新队列写入门限更新通知;B. When it is determined that the traffic quota information satisfies the second sub-quota update condition, that is, the offset t3 of the available quota t < the quota positive offset Δt2 + the quota upper limit t2 - the quota negative offset Δt1 is consumed, the quota inverse calculator writing a threshold update notification to the quota threshold update queue corresponding to the second sub-quota update condition;
C、当确定所述流量配额信息满足第三子配额更新条件,即可用额度t-配额上限t2-配额正向偏移Δt2-可用额度偏移t3<配额正向偏移Δt2-配额正向偏移Δt2消耗时,则配额反算器向与所述第三子配额更新条件相对应的配额偏移更新队列写入偏移更新通知;C. When it is determined that the traffic quota information satisfies the third sub-quota update condition, that is, available quota t - quota upper limit t2 - quota forward offset Δt2 - available quota offset t3 < quota forward offset Δt2 - quota forward offset When the shift Δt2 is consumed, the quota inverse calculator writes an offset update notification to the quota offset update queue corresponding to the third sub-quota update condition;
D、当确定所述流量配额信息满足第四子配额更新条件,即可用额度t-配额Δt消耗-配额正向偏移Δt2消耗≤0,或者存在预设可用额度t的最小额度偏移t3min且配额Δt消耗-配额正向偏移Δt2消耗≤可用额度t的最小额度偏移t3min时,则配额反算器向与所示第四子配额更新条件相对应的配额更新通知队列中写入零配额更新通知。D. When it is determined that the traffic quota information satisfies the fourth sub-quota update condition, that is, the available quota t - quota Δt consumption - quota forward offset Δt2 consumption ≤ 0, or there is a minimum quota offset t3 min of the preset available quota t And quota Δt consumption - quota forward offset Δt2 consumption ≤ the minimum quota offset t3 min of the available quota t, the quota inverse calculator writes to the quota update notification queue corresponding to the fourth sub-quota update condition shown Zero quota update notifications.
需要补充说明的是,当经确定为A至C任一种情况时,配额反算器在向与所述配额更新条件相对应的配额更新队列中写入更新通知的同时,也会向配额更新通知队列写入待偏移更新通知。It should be added that when it is determined to be any of the cases from A to C, the quota inverse calculator will also update the quota while writing an update notification to the quota update queue corresponding to the quota update condition. The notification queue writes notifications for pending offset updates.
所述参数调整控制器4022,用于接收所述更新通知,并从所述配额更新队列中读取配额数据;根据预设配额更新规则更新所述配额数据,将更新后的配额数据写入所述配额更新队列中,得到更新后的配额更新队列。The parameter adjustment controller 4022 is configured to receive the update notification and read the quota data from the quota update queue; update the quota data according to the preset quota update rule, and write the updated quota data into all the quota data. In the above quota update queue, get the updated quota update queue.
具体地,当经配额反算器4021确定为情况A时,参数调整控制器4022中的配额门限控制器4022a接收所述更新通知,并从所述配额更新队列中读取配额数据;进一步地,根据预设配额更新规则更新所述配额数据,将更新后的配额数据写入所述配额更新队列中,得到更新后的配额更新队列,包括:当所述配额更新为非首次鉴权通知且可用额度t-配额Δt消耗-配额正向偏移Δt2消耗<配额上限t2时,更新所述配额数据,即可用额度t的偏移t3=0;否则,可用额度t的偏移t3=配额正向偏移Δt2+配额负向偏移Δt1-配额负向偏移Δt1消耗,并将更新后的配额数据写入所述配额更新队列中,得到更新后的配额更新队列。Specifically, when the situation A is determined by the quota inverse calculator 4021, the quota threshold controller 4022a in the parameter adjustment controller 4022 receives the update notification, and reads the quota data from the quota update queue; further, Update the quota data according to the preset quota update rule, write the updated quota data into the quota update queue, and obtain the updated quota update queue, including: when the quota update is not the first authentication notification and is available Quota t - quota Δt consumption - quota positive offset Δt2 consumption < quota upper limit t2, update the quota data, that is, the offset t3 of the available quota t = 0; otherwise, the offset t3 of the available quota t = quota forward The offset Δt2 + the negative quota offset Δt1 - the negative quota offset Δt1 is consumed, and the updated quota data is written into the quota update queue to obtain the updated quota update queue.
需要补充说明的是,当所述配额更新为首次鉴权通知时,则可以遵循可用配额偏移初始移动规则对可用配额t的偏移t3进行赋值处理,得到配额更新后的配额数据,并将更新后的配额数据写入所述配额更新队列中,得到更新后的配额更新队列。It should be supplemented that when the quota is updated to the first authentication notification, the offset t3 of the available quota t can be assigned according to the initial movement rule of the available quota offset to obtain the quota data after the quota update, and the The updated quota data is written into the quota update queue to obtain an updated quota update queue.
具体地,当经配额反算器4021确定为情况B时,参数调整控制器4022中的可用额度偏移控制器4022b接收所述更新通知,并从所述配额更新队列中读取配额数据;进一步地,根据预设配额更新规则更新所述配额数据,将更新后的配额数据写入所述配额更新队列中,得到更新后的配额更新队列,包括:1)当配额更新为非首次鉴权通知且可用额度t的偏移t3=0且可用额度t-配额Δt消耗-配额正向偏移Δt2消耗≥0时,更新所述配额数据,即配额下限t1=0且配额上限t2=可用额度t-配额Δt消耗-配额正向偏移Δt2消耗;2)当可用额度t的偏移t3=0且可用额度t-配额Δt消耗-配额正向偏移Δt2消耗<0时,更新所述配额数据,即配额上限t2=0且配额下限t1=可用额度t-配额Δt消耗-配额正向偏移Δt2消耗;3)当可用额度t的偏移t3>0时,更新所述配额数据,即配额下限t1=配额正向偏移Δt2+配额负向偏移Δt1-配额正向偏移Δt2消耗-配额负向偏移Δt1消耗且配额上限t2=配额下限t1+可用额度t-配额Δt消耗-配额正向偏移Δt2消耗-可用额度t的偏移t3。进一步地,将更新后的配额数据写入所述配额更新队列中,得到更新后的配额更新队列。Specifically, when it is determined as the case B by the quota inverse calculator 4021, the available quota offset controller 4022b in the parameter adjustment controller 4022 receives the update notification, and reads quota data from the quota update queue; further where the quota data is updated according to the preset quota update rule, and the updated quota data is written into the quota update queue to obtain the updated quota update queue, including: 1) when the quota update is a non-first-time authentication notification And when the offset t3=0 of the available quota t and the available quota t-quota Δt consumption-quota positive offset Δt2 consumption ≥ 0, update the quota data, that is, the quota lower limit t1=0 and the quota upper limit t2=available quota t - quota Δt consumption - quota forward offset Δt2 consumption; 2) when the offset t3 of the available quota t = 0 and the available quota t - quota Δt consumption - quota forward offset Δt2 consumption < 0, update the quota data , that is, the upper limit of quota t2 = 0 and the lower limit of quota t1 = available quota t - quota Δt consumption - quota forward offset Δt2 consumption; 3) When the offset t3 of the available quota t > 0, update the quota data, that is, the quota Lower limit t1 = quota positive offset Δt2 + quota negative offset Δt1 - quota positive offset Δt2 consumption - quota negative offset Δt1 consumption and quota upper limit t2 = quota lower limit t1 + available quota t - quota Δt consumption - quota positive Offset Δt2 consumption - offset t3 of available credit t. Further, the updated quota data is written into the quota update queue to obtain the updated quota update queue.
需要补充说明的是,当所述配额更新为首次鉴权通知时,则可以遵循配额门限初始移动规则对配额下限t1和配额上限t2进行赋值处理,得到配额更新后的配额数据,并将更新后的配额数据写入所述配额更新队列中,得到更新后的配额更新队列。It should be supplemented that when the quota is updated to the first authentication notification, the quota lower limit t1 and the quota upper limit t2 can be assigned values according to the quota threshold initial movement rules to obtain the quota data after the quota update, and the updated quota data can be obtained. The quota data is written into the quota update queue to obtain the updated quota update queue.
具体地,当经配额反算器4021确定为情况C时,参数调整控制器4022中的配额偏移控制器4022c接收所述更新通知,并从所述配额更新队列中读取配额数据;进一步地,根据预设配额更新规则更新所述配额数据,将更新后的配额数据写入所述配额更新队列中,得到更新后的配额更新队列,包括:1)当配额更新为非首次鉴权通知且配额上限t2=0或配额下限t1=0时,更新所述配额数据,即配额负向偏移Δt1=配额正向偏移Δt2=0;2)当配额下限t1>可用额度t的偏移t3=0时,更新所述配额数据,即配额正向偏移Δt2=可用额度t-配额上限t2-配额Δt消耗-配额正向偏移Δt2消耗,配额负向偏移Δt1=配额正向偏移Δt2-配额正向偏移Δt2消耗;3)当可用额度t的偏移t3>0时,更新所述配额数据,即配额正向偏移Δt2=配额上限t2-配额Δt消耗-配额正向偏移Δt2消耗-可用额度t的偏移t3,配额负向偏移Δt1=最近一次的配额正向偏移Δt2-配额正向偏移Δt2消耗。进一步地,将更新后的配额数据写入所述配额更新队列中,得到更新后的配额更新队列。Specifically, when the case C is determined by the quota inverse calculator 4021, the quota offset controller 4022c in the parameter adjustment controller 4022 receives the update notification, and reads quota data from the quota update queue; further , update the quota data according to the preset quota update rule, write the updated quota data into the quota update queue, and obtain the updated quota update queue, including: 1) when the quota update is a non-first authentication notification and When the quota upper limit t2 = 0 or the quota lower limit t1 = 0, the quota data is updated, that is, the quota negative offset Δt1 = the quota positive offset Δt2 = 0; 2) When the quota lower limit t1 > the offset t3 of the available quota t When = 0, update the quota data, that is, quota positive offset Δt2 = available quota t - quota upper limit t2 - quota Δt consumption - quota positive offset Δt2 consumption, quota negative offset Δt1 = quota positive offset Δt2 - quota forward offset Δt2 consumption; 3) when the offset t3 of the available quota t > 0, update the quota data, that is, quota forward offset Δt2 = quota upper limit t2 - quota Δt consumption - quota forward offset Shift Δt2 consumption - offset t3 of available quota t, quota negative offset Δt1 = last time quota positive offset Δt2 - quota positive offset Δt2 consumption. Further, the updated quota data is written into the quota update queue to obtain the updated quota update queue.
需要补充说明的是,当所述配额更新为首次鉴权通知时,则可以遵循配额偏移初始移动规则对配额负向偏移Δt1和配额正向偏移Δt2进行赋值处理,得到配额更新后的配额数据,并将更新后的配额数据写入所述配额更新队列中,得到更新后的配额更新队列。It should be added that when the quota is updated to the first authentication notification, the quota negative offset Δt1 and the quota positive offset Δt2 can be assigned according to the quota offset initial movement rule to obtain the updated quota. Quota data, and write the updated quota data into the quota update queue to obtain the updated quota update queue.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above descriptions are merely preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510000992.2A CN105827543B (en) | 2015-01-04 | 2015-01-04 | A flow control method and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510000992.2A CN105827543B (en) | 2015-01-04 | 2015-01-04 | A flow control method and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105827543A CN105827543A (en) | 2016-08-03 |
CN105827543B true CN105827543B (en) | 2019-02-26 |
Family
ID=56986794
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510000992.2A Active CN105827543B (en) | 2015-01-04 | 2015-01-04 | A flow control method and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105827543B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109901923B (en) * | 2017-12-07 | 2022-10-21 | 财付通支付科技有限公司 | Frequency limiting method, frequency limiting device and readable storage medium |
CN114390058B (en) * | 2022-02-24 | 2024-03-08 | 百果园技术(新加坡)有限公司 | Service management system, method, device and storage medium |
CN116074135B (en) * | 2023-01-31 | 2024-05-03 | 中国联合网络通信集团有限公司 | Quota configuration method and quota configuration device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101330391A (en) * | 2007-07-24 | 2008-12-24 | 中兴通讯股份有限公司 | Method for switching prepayment rate based on flux point |
US8705062B2 (en) * | 2012-02-27 | 2014-04-22 | Ricoh Company, Ltd. | Quotas in distributed scan management systems |
CN103929316A (en) * | 2013-01-11 | 2014-07-16 | 阿尔卡特朗讯 | Communication quota distribution method and corresponding on-line billing system |
CN103974221A (en) * | 2013-01-25 | 2014-08-06 | 中国移动通信集团广东有限公司 | Method and device for distributing packet domain real-time charging flow quotas |
-
2015
- 2015-01-04 CN CN201510000992.2A patent/CN105827543B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101330391A (en) * | 2007-07-24 | 2008-12-24 | 中兴通讯股份有限公司 | Method for switching prepayment rate based on flux point |
US8705062B2 (en) * | 2012-02-27 | 2014-04-22 | Ricoh Company, Ltd. | Quotas in distributed scan management systems |
CN103929316A (en) * | 2013-01-11 | 2014-07-16 | 阿尔卡特朗讯 | Communication quota distribution method and corresponding on-line billing system |
CN103974221A (en) * | 2013-01-25 | 2014-08-06 | 中国移动通信集团广东有限公司 | Method and device for distributing packet domain real-time charging flow quotas |
Also Published As
Publication number | Publication date |
---|---|
CN105827543A (en) | 2016-08-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105827543B (en) | A flow control method and electronic device | |
US10735554B1 (en) | System for controlling use of a network | |
CN110545315B (en) | Heartbeat interval adjustment method based on changes in the number of data blocks and bandwidth changes | |
CN107222412B (en) | SDN mixed mode flow table issuing method and device based on network topology judgment | |
CN110362517B (en) | Techniques for dynamically adjusting the manner in which I/O requests are transferred between a computing device and a storage device | |
US20180123817A1 (en) | Method and system for optimizing information pushing time according to alarm clock | |
US11140089B2 (en) | Data writing method, system, device and computer-readable storage medium | |
US9377966B2 (en) | Method and apparatus for efficiently processing storage commands | |
CN103092663A (en) | A method and device for installing an application program in a terminal | |
CN105721901A (en) | Video transcoder adaption method, device and system | |
WO2017012401A1 (en) | Abnormal contact information detection method, server and system | |
JPWO2013080419A1 (en) | Traffic management apparatus, system, method, and traffic management program | |
US11902167B2 (en) | Communication apparatus having delay guarantee shaping function | |
JPWO2018212085A1 (en) | Transmission device, available bandwidth estimation device, available bandwidth estimation system, method | |
RU2010144530A (en) | VIDEO BIT TRANSFER SPEED CONTROL METHOD, VIDEO BIT SPEED CONTROL DEVICE, VIDEO BIT SPEED CONTROL PROGRAM, VIDEO AND AUTOMATICALLY RESPECTED CARRIER | |
CN103677694A (en) | Printing management method and mobile terminal | |
US20210342089A1 (en) | Method, electronic device, and computer program product for processing data | |
US20130061072A1 (en) | Power saving node controller | |
CN117151903A (en) | Policy printing method and device, electronic equipment and storage medium | |
CN106919461B (en) | Method and device for adjusting broadcast receiver queue and terminal equipment | |
US8791981B2 (en) | Bit rate control apparatus and method thereof | |
CN109059219B (en) | Control method of WIFI module of air conditioner, air conditioner and storage medium | |
US20200265277A1 (en) | Information processing apparatus, non-transitory computer readable recording medium that records information processing program, and information processing method | |
JP7453258B2 (en) | Network quality recovery method and device | |
CN113377277A (en) | Method, apparatus and computer program product for managing memory |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |