CN109274602A - Flow managing method, device, computer equipment and storage medium - Google Patents

Flow managing method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN109274602A
CN109274602A CN201811141693.0A CN201811141693A CN109274602A CN 109274602 A CN109274602 A CN 109274602A CN 201811141693 A CN201811141693 A CN 201811141693A CN 109274602 A CN109274602 A CN 109274602A
Authority
CN
China
Prior art keywords
flow
flow cell
cell
residual
terminal device
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.)
Pending
Application number
CN201811141693.0A
Other languages
Chinese (zh)
Inventor
成健
刘杰
罗智奕
陈腾彪
詹威鹏
吴彦志
胡力广
陈显
刘文东
吴寅郎
许朋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Power Supply Bureau Co Ltd
Original Assignee
Shenzhen Power Supply Bureau Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Power Supply Bureau Co Ltd filed Critical Shenzhen Power Supply Bureau Co Ltd
Priority to CN201811141693.0A priority Critical patent/CN109274602A/en
Publication of CN109274602A publication Critical patent/CN109274602A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions

Abstract

Above-mentioned flow managing method, device, computer equipment and storage medium, preset total flow is assigned to different flow cells according to the different purposes of flow by terminal, and the residual flow in each flow cell is calculated according to the flow service condition of each flow cell, the uninterrupted in each flow cell is then adjusted according to residual flow dynamic.When the multiple business on terminal device uses flow simultaneously, since flow has been assigned to different flow cells according to the purposes of flow, therefore terminal device can obtain the residual flow in each flow cell, when a kind of flow cell underfed that business uses, terminal device adjusts the uninterrupted in each flow cell by dynamic, terminal device flow can be avoided to deplete and lead to lost contact for greater flexibility, ensure that the communication of terminal device and system management platform is normal;At the same time it can also allow user intuitively to understand the service condition of different business down-off, the intelligence of human-computer interaction is improved.

Description

Flow managing method, device, computer equipment and storage medium
Technical field
This application involves field of terminal technology, more particularly to a kind of flow managing method, device, computer equipment and deposit Storage media.
Background technique
Currently, the video camera accessed by carrier network, on traffic management, general carries out the prompting of residual flow, It can not effectively be instructed to the subsequent operation of user, it is likely that cause user to deplete flow, make video camera in system pipes In lost contact state, (video camera passes through and system management platform communication, reports specifically to system management platform in real time in platform Monitoring content), and it is that equipment fault or other reasons cause that user, which is difficult quick determination, and it is unnecessary to cause to user Trouble.
To prevent flow from depleting, when currently used method is available to the different application setting flow in terminal Long, when a certain application program is under flow enabled mode, using duration progress timing, (i.e. this applies journey after timing The flow of sequence has been more than set flow available duration using duration), it is that flow disables mode by the application setting, from And the use of flow is controlled, prevent flow from depleting, equipment lost contact.
But in traditional technology, when multiple application programs use flow simultaneously, avoid the mode of equipment lost contact inadequate Flexibly, and often the basic communication of video camera and system management platform is not can guarantee.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of flow managing method, device, computer equipment and Storage medium.
A kind of flow managing method, which comprises
Preset total flow is assigned to different flow cells according to the different purposes of flow;Wherein, the purposes of flow with It needs related using the type of service of flow;
The residual flow in each flow cell is calculated according to the flow service condition of each flow cell;
The uninterrupted in each flow cell is adjusted according to the residual flow dynamic.
A kind of flow management device, described device include:
Distribution module, for preset total flow to be assigned to different flow cells according to the different purposes of flow;Wherein, The purposes of flow to need it is related using the type of service of flow;
Computing module calculates the residual flow in each flow cell for the flow service condition according to each flow cell;
Module is adjusted, for adjusting the uninterrupted in each flow cell according to the residual flow dynamic.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing Device performs the steps of when executing the computer program
Preset total flow is assigned to different flow cells according to the different purposes of flow;Wherein, the purposes of flow with It needs related using the type of service of flow;
The residual flow in each flow cell is calculated according to the flow service condition of each flow cell;
The uninterrupted in each flow cell is adjusted according to the residual flow dynamic.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor It is performed the steps of when row
Preset total flow is assigned to different flow cells according to the different purposes of flow;Wherein, the purposes of flow with It needs related using the type of service of flow;
The residual flow in each flow cell is calculated according to the flow service condition of each flow cell;
The uninterrupted in each flow cell is adjusted according to the residual flow dynamic.
Above-mentioned flow managing method, device, computer equipment and storage medium, terminal will be pre- according to the different purposes of flow If total flow be assigned to different flow cells, and the residue in each flow cell is calculated according to the flow service condition of each flow cell Then flow adjusts the uninterrupted in each flow cell according to residual flow dynamic.When the multiple business on terminal device simultaneously When using flow, since flow has been assigned to different flow cells according to the purposes of flow, terminal device can be obtained Residual flow in each flow cell, when a kind of flow cell underfed that business uses, terminal device is adjusted by dynamic Uninterrupted in each flow cell can avoid for greater flexibility terminal device flow from depleting and lead to lost contact, ensure that terminal is set Standby and system management platform communication is normal;At the same time it can also allow user intuitively to understand making for different business down-off With situation, the intelligence of human-computer interaction is improved.
Detailed description of the invention
Fig. 1 is the applied environment figure of flow managing method in one embodiment;
Fig. 2 is the flow diagram of flow managing method in one embodiment;
Fig. 3 is the flow diagram of flow managing method in another embodiment;
Fig. 4 is the flow diagram of flow managing method in another embodiment;
Fig. 5 is the flow diagram of flow managing method in another embodiment;
Fig. 6 is the flow diagram of flow managing method in another embodiment;
Fig. 7 is the flow diagram of flow managing method in another embodiment;
Fig. 8 is the structural block diagram of flow management device in one embodiment;
Fig. 9 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
Flow managing method provided by the invention can be applied in application environment as shown in Figure 1.Wherein, terminal is set Standby 110 are connect by network with system management platform 120, are communicated by network.Wherein, terminal device 110 can with but not It is limited to be various personal computers, laptop, smart phone, tablet computer, access web camera and portable wear Equipment is worn, system management platform 120 can be with the server cluster of the either multiple server compositions of independent server come real It is existing.
It should be noted that the executing subject of the embodiment of the present invention can be flow management device, can by software, The mode of hardware or software and hardware combining is implemented as some or all of of terminal device.Following methods embodiment is to execute Main body is illustrated for terminal device.
In one embodiment, as shown in Fig. 2, providing a kind of flow managing method, it is applied in Fig. 1 in this way It is illustrated for terminal device, comprising the following steps:
S101, preset total flow is assigned to different flow cells according to the different purposes of flow;Wherein, the use of flow Way to need it is related using the type of service of flow.
Specifically, terminal device has a certain size total flow, which refers to that terminal device is passed by internet Spent byte number when defeated business datum.When distributing flow, terminal device will be preset total according to the different purposes of flow Assignment of traffic is to different flow cells.In the present embodiment, the purposes of flow to need related using the type of service of flow, need It can be the different application in terminal device using the type of service of flow, can also be the different business of the same application, It can also be according to different data types is transmitted and classify, for example be divided into picture business and view according to transmission picture, video Frequency business etc..It should be noted that different flow cells corresponds to different types of service, for example, the corresponding data of data service Flow cell, picture business correspond to picture flow cell, and video traffic corresponds to video flow pond.
Wherein, the different purposes according to flow in flow cell distribute flow when, can in conjunction with user demand and The purposes of flow is distributed, for example, user desires to more points of some flows of picture flow cell, divides some streams less to video flow pond Amount, then terminal device carries out the distribution of flow according to the instruction of user and the purposes of flow;Alternatively, terminal device can also root Distributed according to the flow service condition of each different service types, the method for salary distribution of flow in the present embodiment without limitation, only It to be allocated in conjunction with the purposes of flow.
By taking a kind of video camera for accessing internet as an example, above-mentioned video camera includes picture, view using the type of service of flow Frequency and the communication data between system management platform.According to above-mentioned different type of service, total flow can be divided into figure Piece flow cell, video flow pond and data traffic pond.Assuming that the total flow of every month is 3GB, distributes and tie according to user demand Fruit may is that picture flow cell is 576MB, and video flow pond is 2400MB, and data traffic pond is 120MB.
S102, residual flow in each flow cell is calculated according to the flow service condition of each flow cell.
Specifically, after terminal device uses certain time length, the size of each flow cell can change, therefore After S101 is executed, the residual flow in each flow cell can be calculated according to flow service condition.Residual flow can be with It is that the flow that flow cell pre-allocates subtracts the used flow of the corresponding business of the flow cell;Above-mentioned used flow, terminal Equipment can spend flow multiplied by having used number of days to calculate acquisition daily by business, can also be direct by system control panel It obtains, the calculation of residual flow is it is not limited here.
Continue by taking a kind of video camera for accessing internet as an example, after above-mentioned video camera was using 10 days, each flow cell Residual flow may is that picture flow cell is 385MB, and video flow pond is 1400MB, and data traffic pond is 80MB.
S103, the uninterrupted in each flow cell is adjusted according to the residual flow dynamic.
Specifically, terminal device is by assignment of traffic to different flow cells and after calculating the residual flow of each flow cell, According to the residual flow of each flow cell, user can be directly acquainted with the flow service condition of each flow cell.When one of stream When underfed occurs in amount pond, the flow of other flow cells can be adjusted in above-mentioned flow cell by terminal device in time.
Terminal device is when carrying out flow adjustment, in order to meet the different demands of client, dynamic adjustment mode can be by It is adjusted according to the demand of user, is also possible to voluntarily be adjusted according to residual flow situation.For example, can be by the stream more than residual flow Flow in amount pond is adjusted to other flow cells, or ensures the flow in one of flow cell, by other flows The flow in pond is adjusted in the flow cell.
Continue by taking a kind of video camera for accessing internet as an example, when data traffic pond underfed, to guarantee that data are logical Letter is normal, the flow in video flow pond can be adjusted in data traffic pond, can also be by the flow in picture flow cell It is adjusted in data traffic pond.
Preset total flow can be assigned to not by above-mentioned flow managing method, terminal device according to the different purposes of flow Same flow cell, and the residual flow in each flow cell is calculated according to the flow service condition of each flow cell, then according to residue Flow dynamics adjust the uninterrupted in each flow cell.In the present embodiment, due to terminal device by total flow according to the use of flow Assignment of traffic has been arrived different flow cells by way, and with the continuous progress of the business on terminal device, obtains each stream in real time The residual flow in pond is measured, when a kind of flow cell underfed that business uses, terminal device adjusts each flow by dynamic Uninterrupted in pond can avoid for greater flexibility terminal device flow from depleting and lead to lost contact, ensure that terminal device and be The communication of platform under the overall leadership is normal;At the same time it can also allow user intuitively to understand the service condition of different business down-off, Improve the intelligence of human-computer interaction.
Fig. 3 is the flow managing method flow diagram that another embodiment provides.The present embodiment is related to terminal device root A kind of optional process of the uninterrupted in flow cell is adjusted according to remaining use value.On that basi of the above embodiments, such as Fig. 3 Shown, S103 includes:
S201, the remaining use value that each flow cell is calculated according to the residual flow of each flow cell.
Specifically, the remaining use value refers to according to the residual flow size in flow cell, additionally it is possible to the flow of completion The workload of the corresponding business in pond.When type of service is distinguished according to the application difference in terminal device, remaining use value It can be according to residual flow and apply flow spent by unit time using this, obtain what the application can also continue to use Residue uses duration;When flow cell is picture flow cell, remaining use value be can be according to the residual flow in picture flow cell Remaining shooting picture number is calculated with the size of every picture;When flow cell is video flow pond, remaining use value be can be Viewing or record are calculated according to the data traffic that the residual flow in video flow pond and video file use within the unit time The residue of video processed uses duration;When flow cell is data traffic pond, remaining use value be can be according in data traffic pond The size of flow needed for residual flow and data communication are per second calculates the residue in data traffic pond using duration, can also be According to the quantity of the calculated data packet transmitted of the size of residual flow and transmitted single data packet, remaining use value Concrete form is it is not limited here.
Continue so that terminal device is to access the video camera of internet as an example, data traffic pond is mainly used for video camera to system Control platform sends the data of heartbeat packet and sensor, and one day data traffic used of data service can be 4MB, work as data flow When the residual flow for measuring pond is 80MB, corresponding residue use value be can be 20 days;Picture flow cell is for shooting picture, it is assumed that The default picture for capturing 16,000,000 pixels, the flow that every picture transmission needs is 1.6MB, then, picture flow cell residual stream When amount is 385MB, the corresponding residual stream magnitude of the flow cell can be 240 pictures;Video flow pond can be used for watching view Frequency file, it is assumed that video code flow 2Mb, when residual flow is 1400MB, then, the remaining use value in video flow pond can be with It is 93.3 minutes.
S202, the remaining use value according to each flow cell, dynamically adjust the uninterrupted in each flow cell.
Specifically, terminal device is when carrying out flow dynamics adjustment, can according to the remaining use value of each flow cell come It carries out, family can be used and more intuitively see flow service condition in flow cell.It is similar to the situation in S103, in order to meet The different demands of client, dynamic adjustment mode can be terminal device according to the demand of user to adjust, and be also possible to according to each The remaining use value of a flow cell is voluntarily adjusted.For example, the flow in the high flow cell of remaining use value can be adjusted To other flow cells, or ensure the remaining use value in one of flow cell, the flow of other flow cells is equal It is adjusted in the flow cell;The mode of flow dynamics adjustment is in the present embodiment without limitation.
Continue so that terminal device is a kind of video camera of access internet as an example, when the remaining use value in data traffic pond When insufficient, to guarantee data communication, the partial discharge in video flow pond can be adjusted in data traffic pond by video camera.
In above-mentioned flow managing method, terminal device calculates remaining use value according to the residual flow of flow cell, then The uninterrupted in flow cell is adjusted according to remaining use value.In the present embodiment, since terminal device obtains each flow The remaining use value in pond, then, user can more intuitively judge the flow service condition of each flow cell, when a kind of business makes When the remaining use value deficiency of flow cell, the uninterrupted of each flow cell can be adjusted more in time, prevents flow from depleting And lead to lost contact, guarantee that the communication of terminal device and system management platform is normal.
Above-mentioned several embodiments, which mainly describe terminal device, to be made according to the residual flow or residue of each flow cell The uninterrupted that each flow cell is dynamically adjusted with value is introduced specific following primarily by Fig. 4-embodiment shown in Fig. 7 Dynamic adjustment flow process, i.e., specifically introduce the process of above-mentioned S202.Referring specifically to following:
Fig. 4 is the flow managing method flow diagram that another embodiment provides.The present embodiment is related to terminal device root The process of flow dynamics adjustment is carried out according to the priority of flow cell.On the basis of the above embodiments, as shown in figure 4, S202 can To include:
S301, the priority for obtaining each flow cell.
Specifically, the priority of above-mentioned flow cell is the sequence that each flow cell preferentially uses flow.Obtaining flow cell Priority when, terminal device can directly set to obtain by user, for example, user can according to their own needs, Highest priority is set by most important business in terminal device;Alternatively, terminal device can also be according to different business Type sets itself.The acquisition modes of priority, the present embodiment always without limitation.
Wherein, above-mentioned acquired priority, can be the number or serial number for indicating priority height, optionally, also It can be the relational sequence for indicating priority height.
Continue by taking a kind of video camera for accessing internet as an example, user, which can according to need, presets the preferential of each flow cell Grade, such as can be set are as follows: data traffic pond > picture flow cell > video flow pond.
S302, when the remaining use value of the flow cell of the first priority is more than the upper limit of default use value, by described the Partial discharge in the flow cell of one priority is assigned in the flow cell of the second priority;Wherein, first priority is high In second priority.
Specifically, terminal device can preset the use value upper limit to the flow cell that priority is high, when remaining for above-mentioned flow cell When remaining use value is higher than the preset use value upper limit, it is low the partial discharge in above-mentioned flow cell can be assigned to other priority Flow cell in.Conversely, when judging the remaining use value of the flow cell lower than the preset use value upper limit, in order to guarantee the stream The flow for measuring pond is sufficient, then cannot adjust the flow of the flow cell into other flow cells.
Continue by taking a kind of video camera for accessing internet as an example, the default use value upper limit in data traffic pond can be 10 It, the remaining use value upper limit of picture flow cell can be set to 300, can be with since the priority in video flow pond is minimum The default use value upper limit is not set.If the residue in data traffic pond is more than 10 days using duration, then can be by partial discharge tune It uses in picture flow cell or video flow pond, and when the residue in data traffic pond used duration less than 10 days, in order to Guarantee that data communication is normal, it is not possible to which the flow for reducing data traffic pond adjusts flow to other flow cells.
In above-mentioned flow managing method, by obtaining the priority of each flow cell, terminal device can be according to flow cell The remaining use value upper limit of priority and flow cell carries out the dynamic adjustment of uninterrupted in each flow cell.The present embodiment In, since terminal device obtains the priority of each flow cell, so that it may when carrying out flow dynamics adjustment, preferentially guarantee excellent The uninterrupted of the high flow cell of first grade, so that the flow of the flow cell can satisfy corresponding business demand, it can be to avoid excellent The low business consuming more various flow of first grade, and the business cisco unity malfunction for causing priority high.
Fig. 5 is the flow managing method flow diagram that another embodiment provides.The present embodiment is related to terminal device root The process of flow dynamics adjustment is carried out according to the priority of remaining total flow and each flow cell.On the basis of above-described embodiment On, as shown in figure 5, S202 includes:
S401, the priority for obtaining each flow cell.
Specifically, the step is identical as above-mentioned S301, and details are not described herein.
S402, remaining total flow is calculated;Wherein, the remaining total flow is equal to the sum of the residual flow of each flow cell.
Specifically, after terminal device uses certain time length, the size of remaining total flow can change.Therefore, exist After S101 is executed, remaining total flow size can be calculated according to the residual flow size of each flow cell, this is surplus Remaining total flow is equal to the sum of the residual flow of each flow cell.
Continue by taking a kind of video camera for accessing internet as an example, after above-mentioned video camera was using 10 days, each flow cell Residual flow may is that picture flow cell is 385MB, and video flow pond is 1400MB, and data traffic pond is 80MB, then remaining Total flow is 1865MB.
S403, when the remaining total flow is lower than the first preset value, the remaining total flow is completely used for priority Highest flow cell.
Specifically, the first preset value of above-mentioned remaining total flow is the corresponding industry of flow cell to guarantee highest priority The threshold value for normal work of being engaged in.When the remaining total flow of flow cell is lower than first preset value, terminal device can close excellent The low flow cell of first grade all adjusts all residual flows to the flow cell of highest priority, for guaranteeing priority most High business works normally.
Continue by taking a kind of video camera for accessing internet as an example, when judging that remaining total flow is less than 20MB, terminal device The function that picture is captured and watches video can be closed, all flows of video flow pond and picture flow cell are completely used for Data traffic pond guarantees that data communication is normal.
Further, when the remaining total flow is lower than the first preset value, the remaining total flow is completely used for excellent After the first highest flow cell of grade, can also include:
S404, judge whether the remaining total flow is lower than the second preset value, second preset value is default less than first Value;
Specifically, above-mentioned second preset value is the alarming threshold value of the corresponding vocational work of flow cell of highest priority, When remaining total flow is lower than above-mentioned alarming threshold value, even if remaining total flow is completely used for highest priority by terminal device After flow cell, the problem of business of highest priority is also likely to be present underfed.
S405, warning message is sent to user if so, being spaced preset time.
Specifically, when the remaining total flow of the flow cell of highest priority is lower than the second preset value, illustrate current remain Remaining total flow has remained at low levels, and terminal device can be spaced preset time at this time, sends warning message to user, prevents Fluid stopping amount is depleted, and leads to system lost contact.When presetting above-mentioned interval time, terminal device can be set according to user demand It is fixed, it can also be determined according to the flow service condition of the flow cell of highest priority.
Specifically, the warning message that terminal device is sent to user can be used for reminding customer flow insufficient, need in time It supplements with money.
Continue by taking a kind of video camera for accessing internet as an example, it is above-mentioned remaining total when judging remaining total flow for 10MB Flow corresponding residue use value in data traffic pond is 2.5 days, at this point, device end interval half an hour sends one to user Secondary warning message, message content are " underfed is please supplemented with money in time ".
Above-mentioned flow managing method, terminal device is judged by obtaining remaining total flow, when remaining total flow is low When the first preset value, the remaining total flow can be completely used for the flow cell of highest priority, further, interval is pre- If continue to judge whether remaining total flow is lower than the second preset value after the time, if then sending warning message to user.This reality It applies in example, since terminal device timely judges remaining total flow, feelings that can be less in terminal device utilizable flow Under condition, all flows are directly completely used for the flow cell of highest priority, preferentially ensure that the flow cell pair of highest priority It answers business to have utilizable flow, is further ensured that flow is not depleted, and lead to system lost contact;Meanwhile it sending report to user in time Alert information, reminds user to supplement with money, further improves the intelligence of human-computer interaction.
Fig. 6 is the flow managing method flow diagram that another embodiment provides.The present embodiment is related to terminal device root The process of the dynamic adjustment of flow cell is carried out according to the use value lower limit of flow cell.It should be noted that the embodiment of Fig. 6 is with one It is illustrated for flow cell, the present embodiment is identical for the operation of each flow cell.On the basis of above-described embodiment On, as shown in fig. 6, S202 includes:
S501, to judge whether the remaining use value of the flow cell is lower than the flow cell corresponding using lower limit value.
It specifically, can be by judging above-mentioned flow when terminal device carries out flow dynamics adjustment according to remaining use value It is preset using lower limit value whether the remaining use value in pond (being assumed to be flow cell A) is lower than, to carry out the dynamic adjustment of flow. Wherein, it is above-mentioned using lower limit value be in the case where meeting the corresponding business of flow cell A and working normally, above-mentioned flow cell it is minimum Remaining use value.
S502, if so, adjusting some or all of residual flow in other flow cells into the flow cell.
Specifically, when the remaining usage amount of one of flow cell is corresponding lower than above-mentioned flow cell A uses lower limit value, Terminal device can adjust the flow in other flow cells to flow cell A, to guarantee the normal work of the corresponding business of flow cell A Make.For above-mentioned adjustment mode, terminal device can all be adjusted the flow in other flow cells to flow cell A, can also be with Partial discharge is adjusted to flow cell A.
Continue by taking a kind of video camera for accessing internet as an example, when the remaining use value in data traffic pond is lower than under use At limit value 2 days, terminal device can be adjusted the 40MB flow in radio frequency flow cell to data traffic pond, for guaranteeing that data are logical Letter is normal;It, can be by the data tune in picture flow cell when use value remaining in video flow pond is less than using lower limit value 10s It is whole to video flow pond.
Above-mentioned flow managing method, terminal device is by judging whether the remaining use value of flow cell is lower than above-mentioned flow cell It is corresponding to use lower limit value, then determine whether to adjust some or all of residual flow in other flow cells to the stream It measures in pond.In the present embodiment, due to terminal device being judged using lower limit value to flow cell, when the residue of flow cell makes It is gradually reduced with value to when using lower limit value, terminal device can adjust the uninterrupted of flow cell in time, can be more flexible Ground avoids terminal device flow from depleting and lead to lost contact, ensure that the communication of terminal device and system management platform is normal.
Fig. 7 is the flow managing method flow diagram that another embodiment provides.The present embodiment is related to terminal device root Another optional way of the flow adjustment of flow cell is carried out according to the use value lower limit of flow cell.In above-mentioned embodiment illustrated in fig. 6 On the basis of, as shown in fig. 7, S502 includes:
S601, reminder message is sent to user.
Specifically, after terminal device judges the remaining use value of flow cell use lower limit value corresponding lower than flow cell, Reminder message can be sent to user, for reminding customer flow insufficient, can also directly remind the surplus of the above-mentioned flow cell of user Remaining usage amount size.
S602, judge the feedback message that user whether is received in the first preset duration.
Specifically, terminal device presets the first preset duration, after sending reminder message to user, judges default first Whether the feedback message of user is received in duration;Above-mentioned feedback message can be the flow adjustment instruction of user, include how It calls flow and calls the information such as the size of flow.
S603, if so, according to the feedback message from other flow cells call flow.
Specifically, when receiving the feedback message of user in the first preset duration, then according to the feedback message of user The adjustment of flow is carried out, so that the above-mentioned flow cell A is can satisfy the normal work of corresponding business, for example, when user feedback is from view Frequency flow cell calls in flow to flow cell A, and feeds back the size for calling in flow, then terminal device can be according to field feedback It is adjusted.
S604, if it is not, then closing the flow cell.
Specifically, if be not received by the feedback message of user in the first preset duration, it is considered as user and is not required to Flow adjustment is carried out, then, terminal device will close above-mentioned remaining use value lower than the flow cell A using lower limit value.
Optionally, terminal device according to feedback message from other flow cells call flow after, i.e., it is above-mentioned after S603 Method can also include:
Judge whether the remaining use value of the flow cell is lower than the use again after S605, the second preset duration of interval Lower limit value.
Specifically, after terminal device completes flow adjustment according to user feedback message, it is spaced the second preset duration, is sentenced again It is above-mentioned using lower limit value whether the remaining use value for above-mentioned flow cell of breaking is lower than, above-mentioned after being used to judge the second preset time Whether flow cell there is the problem of underfed.S604 is executed if so, returning, closes the flow cell.That is, when interval second After preset duration, when the remaining use value of above-mentioned flow cell still is below using lower limit value, then no longer from other flow cells Flow is called in, and directly closes above-mentioned flow cell.
Continue by taking a kind of video camera for accessing internet as an example, if the remaining use value in video flow pond is lower than under use At limit value 10 seconds, terminal device issues the user with prompting " can at most watch 10 seconds videos ", has received use being spaced in 5 seconds The feedback message at family, terminal device call in the flow of 10MB according to the message of user feedback from picture flow cell;After being spaced 30 seconds, Judge that the remaining use value in video flow pond still is below 10 seconds again, then no longer calls in flow from other flow cells, but it is straight It connects and closes video flow pond.
In above-mentioned flow managing method, provide it is a kind of judged according to the remaining use value lower limit value of flow cell, so The method that flow dynamics adjustment is carried out according to the instruction of user afterwards.In the present embodiment, reminded since terminal device is sent to user Message, and according to the feedback information of the user received, to carry out the dynamic adjustment of flow, it is possible to meet for greater flexibility The different demands of user improve the intelligence of human-computer interaction.
It in another embodiment, further include according to described surplus after calculating remaining use value according to the residual flow Remaining use value calculates daily use threshold value, and the threshold value is sent to client.
Specifically, it is corresponding daily using threshold can to calculate the flow cell according to the remaining use value of flow cell for terminal device Value can make client carry out reasonable flow according to the threshold value used daily and use planning for carrying out suggestion to client.For example, Terminal device can calculate each flow cell pair according to the usable duration for the flow and the flow that each flow cell is distributed It is corresponding to calculate above-mentioned flow cell then further according to averagely daily workable flow for the average flow workable daily answered Average daily usable value, as daily use threshold value.Above-mentioned calculating be averaged daily use value mode and S201 class Seemingly.
Terminal device calculates daily using after threshold value, and above-mentioned threshold value can be sent to client by way of report, Client can also be sent to by way of data, it is not limited here.
Continue by taking a kind of video camera for accessing internet as an example, it is 120MB that flow is allocated in data traffic pond, which in advance, flow Service life is 1 month, then average daily utilizable flow is 4MB;It is 2400MB that flow is allocated in video flow pond, which in advance, then average Usable flow is 80MB daily, the use of threshold value is daily 5.3 minutes in the case of video code flow is 2Mb;Picture flow cell is preparatory The flow of distribution is 576MB, and the picture size of every 16,000,000 pixels is 1.6MB, then using threshold value daily is 12 pictures.For User is facilitated to check flow service condition, the daily following report of dynamic generation is sent to user.
The real-time report of X X month X daily flow data
The method of above-mentioned traffic management, it is corresponding every that terminal device according to the remaining use value of flow cell calculates the flow cell It uses threshold value, is used to client and carries out suggestion, and client is allow to carry out reasonable flow according to the threshold value used daily Use planning.
It should be understood that although each step in the flow chart of Fig. 2-7 is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-7 Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately It executes.
In one embodiment, as shown in figure 8, providing a kind of flow management device, comprising: distribution module 10 calculates Module 20 and adjustment module 30, in which:
Distribution module 10, for preset total flow to be assigned to different flow cells according to the different purposes of flow;Its In, the purposes of flow to need it is related using the type of service of flow;
Computing module 20 calculates the residual flow in each flow cell for the flow service condition according to each flow cell;
Module 30 is adjusted, for adjusting the uninterrupted in each flow cell according to the residual flow dynamic.
Flow management device provided in an embodiment of the present invention can execute above method embodiment, realization principle and skill Art effect is similar, and details are not described herein.
In one embodiment, adjustment module includes computing unit and adjustment unit, in which:
Computing unit, for calculating the remaining use value of each flow cell according to the residual flow of each flow cell;
Adjustment unit dynamically adjusts the uninterrupted in each flow cell for the remaining use value according to each flow cell.
In one embodiment, adjustment unit is specifically used for: obtaining the priority of each flow cell;When the first priority When the remaining use value of flow cell is more than the upper limit of default use value, by the partial discharge in the flow cell of first priority It is assigned in the flow cell of the second priority;Wherein, first priority is higher than second priority.
In another embodiment, adjustment unit 302 is specifically used for: obtaining the priority of each flow cell;It calculates remaining Total flow;Wherein, the remaining total flow is equal to the sum of the residual flow of each flow cell;When the remaining total flow is lower than the When one preset value, the remaining total flow is completely used for the flow cell of highest priority.
In another embodiment, adjustment unit can be also used for judging whether the remaining total flow is lower than second and presets Value, second preset value is less than the first preset value;If so, interval preset time sends warning message to user.
In another embodiment, adjustment unit is specifically used for judging whether the remaining use value of the flow cell is lower than institute It is corresponding using lower limit value to state flow cell;If so, adjusting some or all of residual flow in other flow cells to institute It states in flow cell.
In another embodiment, adjustment unit is specifically used for sending reminder message to user;Judge the first preset duration Inside whether receive the feedback message of user;If so, calling flow from other flow cells according to the feedback message;If it is not, Then close the flow cell.
In another embodiment, adjustment unit judges the flow cell after being specifically used for the second preset duration of interval again Remaining use value whether be lower than it is described using lower limit value;If so, closing the flow cell.
Flow management device provided in an embodiment of the present invention can execute above method embodiment, realization principle and skill Art effect is similar, and details are not described herein.
Specific about flow management device limits the restriction that may refer to above for flow managing method, herein not It repeats again.Modules in above-mentioned flow management device can be realized fully or partially through software, hardware and combinations thereof.On Stating each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also store in a software form In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be terminal, internal structure Figure can be as shown in Figure 9.The computer equipment includes processor, the memory, network interface, display connected by system bus Screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment is deposited Reservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system and computer journey Sequence.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The network interface of machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor with Realize a kind of flow managing method.The display screen of the computer equipment can be liquid crystal display or electric ink display screen, The input unit of the computer equipment can be the touch layer covered on display screen, be also possible to be arranged on computer equipment shell Key, trace ball or Trackpad, can also be external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Fig. 9, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, is stored in memory Computer program, the processor perform the steps of when executing computer program
Preset total flow is assigned to different flow cells according to the different purposes of flow;Wherein, the purposes of flow with It needs related using the type of service of flow;
The residual flow in each flow cell is calculated according to the flow service condition of each flow cell;
The uninterrupted in each flow cell is adjusted according to the residual flow dynamic.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of when being executed by processor
Preset total flow is assigned to different flow cells according to the different purposes of flow;Wherein, the purposes of flow with It needs related using the type of service of flow;
The residual flow in each flow cell is calculated according to the flow service condition of each flow cell;
The uninterrupted in each flow cell is adjusted according to the residual flow dynamic.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (11)

1. a kind of flow managing method characterized by comprising
Preset total flow is assigned to different flow cells according to the different purposes of flow;Wherein, the purposes and needs of flow It is related using the type of service of flow;
The residual flow in each flow cell is calculated according to the flow service condition of each flow cell;
The uninterrupted in each flow cell is adjusted according to the residual flow dynamic.
2. the method according to claim 1, wherein described adjust each flow cell according to the residual flow dynamic In uninterrupted, comprising:
The remaining use value of each flow cell is calculated according to the residual flow of each flow cell;
According to the remaining use value of each flow cell, the uninterrupted in each flow cell is dynamically adjusted.
3. flow managing method according to claim 2, which is characterized in that described to be used according to the residue of each flow cell Value, dynamically adjusts the uninterrupted in each flow cell, comprising:
Obtain the priority of each flow cell;
When the remaining use value of the flow cell of the first priority is more than the upper limit of default use value, by first priority Partial discharge in flow cell is assigned in the flow cell of the second priority;Wherein, first priority is higher than described second Priority.
4. flow managing method according to claim 2, which is characterized in that described to be used according to the residue of each flow cell Value, dynamically adjusts the uninterrupted in each flow cell, comprising:
Obtain the priority of each flow cell;
Calculate remaining total flow;Wherein, the remaining total flow is equal to the sum of the residual flow of each flow cell;
When the remaining total flow is lower than the first preset value, the remaining total flow is completely used for the flow of highest priority Pond.
5. flow managing method according to claim 4, which is characterized in that described when the remaining total flow is lower than first When preset value, the remaining total flow is used for after the flow cell of highest priority, further includes:
Judge whether the remaining total flow is lower than the second preset value, second preset value is less than the first preset value;
If so, interval preset time sends warning message to user.
6. flow managing method according to claim 2, which is characterized in that described to be used according to the residue of each flow cell Value, dynamically adjusts the uninterrupted in each flow cell, comprising:
It is corresponding using lower limit value to judge whether the remaining use value of the flow cell is lower than the flow cell;
If so, adjusting some or all of residual flow in other flow cells into the flow cell.
7. flow managing method according to claim 6, which is characterized in that the part by other flow cells or Whole residual flows are adjusted into the flow cell, comprising:
Reminder message is sent to user;
Judge the feedback message that user whether is received in the first preset duration;
If so, calling flow from other flow cells according to the feedback message;
If it is not, then closing the flow cell.
8. flow managing method according to claim 7, which is characterized in that described to be flowed according to the feedback message from other It calls after flow in amount pond, further includes:
It is spaced that judge whether the remaining use value of the flow cell is lower than after the second preset duration again described using lower limit value;
If so, closing the flow cell.
9. a kind of flow management device, which is characterized in that described device includes:
Distribution module, for preset total flow to be assigned to different flow cells according to the different purposes of flow;Wherein, flow Purposes to need it is related using the type of service of flow;
Computing module calculates the residual flow in each flow cell for the flow service condition according to each flow cell;
Module is adjusted, for adjusting the uninterrupted in each flow cell according to the residual flow dynamic.
10. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 8 the method when executing the computer program.
11. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any item of the claim 1 to 8 is realized when being executed by processor.
CN201811141693.0A 2018-09-28 2018-09-28 Flow managing method, device, computer equipment and storage medium Pending CN109274602A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811141693.0A CN109274602A (en) 2018-09-28 2018-09-28 Flow managing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811141693.0A CN109274602A (en) 2018-09-28 2018-09-28 Flow managing method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109274602A true CN109274602A (en) 2019-01-25

Family

ID=65198762

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811141693.0A Pending CN109274602A (en) 2018-09-28 2018-09-28 Flow managing method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109274602A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110719229A (en) * 2019-09-18 2020-01-21 深圳市优克联新技术有限公司 Cloud card flow balancing method, cloud card server and computer readable storage medium
CN111277508A (en) * 2020-01-07 2020-06-12 上海飞旗网络技术股份有限公司 Dynamic flow pool configuration method based on data transmission
CN112804163A (en) * 2021-03-19 2021-05-14 智道网联科技(北京)有限公司 Flow data processing method, device and equipment
CN113660098A (en) * 2021-08-25 2021-11-16 蒋妙法 Information authentication storage method and system based on big data
CN114553744A (en) * 2021-12-31 2022-05-27 山东有人物联网股份有限公司 OTA (over the air) upgrading flow reservation method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105828390A (en) * 2016-04-01 2016-08-03 乐视控股(北京)有限公司 Flow sharing method and apparatus
CN106982167A (en) * 2017-04-19 2017-07-25 深圳金三立视频科技股份有限公司 Flow managing method and its system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105828390A (en) * 2016-04-01 2016-08-03 乐视控股(北京)有限公司 Flow sharing method and apparatus
CN106982167A (en) * 2017-04-19 2017-07-25 深圳金三立视频科技股份有限公司 Flow managing method and its system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110719229A (en) * 2019-09-18 2020-01-21 深圳市优克联新技术有限公司 Cloud card flow balancing method, cloud card server and computer readable storage medium
CN111277508A (en) * 2020-01-07 2020-06-12 上海飞旗网络技术股份有限公司 Dynamic flow pool configuration method based on data transmission
CN112804163A (en) * 2021-03-19 2021-05-14 智道网联科技(北京)有限公司 Flow data processing method, device and equipment
CN112804163B (en) * 2021-03-19 2021-07-27 智道网联科技(北京)有限公司 Flow data processing method, device and equipment
CN113660098A (en) * 2021-08-25 2021-11-16 蒋妙法 Information authentication storage method and system based on big data
CN114553744A (en) * 2021-12-31 2022-05-27 山东有人物联网股份有限公司 OTA (over the air) upgrading flow reservation method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109274602A (en) Flow managing method, device, computer equipment and storage medium
US10380488B2 (en) Methods and system for managing predictive models
US11146502B2 (en) Method and apparatus for allocating resource
CN105403836B (en) Battery consumption monitoring
US20190238438A1 (en) Network resource management with prediction
CN103181222B (en) The system and method for the process of mobile device is managed based on available power resource
US9100448B2 (en) Communication device for throttling transmitted data
US10847986B2 (en) Systems and methods to determine time at which battery is to be charged
CN108845816A (en) Application program update method, system, computer equipment and storage medium
US10061366B2 (en) Schedule-based energy storage device selection
US10129718B2 (en) Data usage analytics application for dynamic control of data usage on a client device
CN106982167A (en) Flow managing method and its system
CN111159612B (en) Countdown method, system, device, computer equipment and storage medium
CN112199193A (en) Resource scheduling method and device, electronic equipment and storage medium
CN109710330A (en) Method for determining operation parameters, device, terminal and the storage medium of application program
CN105511880A (en) Transparent computing based intelligent software starting method
US9197581B2 (en) Method and apparatus for diverting operational load on networks through entitlement profile incentives
WO2023231861A1 (en) Data preloading method and device, terminal, and storage medium
CN110570257B (en) Multimedia data delivery method, device and computer readable storage medium
CN104133782A (en) Adaptive management method and device of digital monitoring platform memory
EP2618541B1 (en) A communication device for throttling transmitted data
CN115062921A (en) Carbon emission quota adjusting method and device, storage medium and electronic equipment
CN114240416A (en) Data processing method, data processing device, computer equipment and storage medium
CN106027309B (en) The acquisition methods and device of device status information
CN111611123B (en) Data processing method, data processing system and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190125

RJ01 Rejection of invention patent application after publication