CN106304193A - A kind of realize the method for flow-control, server and terminal - Google Patents
A kind of realize the method for flow-control, server and terminal Download PDFInfo
- Publication number
- CN106304193A CN106304193A CN201510267911.5A CN201510267911A CN106304193A CN 106304193 A CN106304193 A CN 106304193A CN 201510267911 A CN201510267911 A CN 201510267911A CN 106304193 A CN106304193 A CN 106304193A
- Authority
- CN
- China
- Prior art keywords
- flow
- terminal
- server
- preset period
- available
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 66
- 230000000737 periodic effect Effects 0.000 claims description 40
- 230000008859 change Effects 0.000 claims description 31
- 238000012545 processing Methods 0.000 claims description 14
- 235000012054 meals Nutrition 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 4
- 238000013461 design Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 101100509468 Arabidopsis thaliana JASON gene Proteins 0.000 description 1
- 238000013475 authorization Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 239000000344 soap Substances 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0807—Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/10—Flow control between communication endpoints
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Telephonic Communication Services (AREA)
- Meter Arrangements (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses and a kind of realize the method for flow-control, server and terminal, including: when when exceeding predetermined threshold value with flow of user, according to predetermined period server according to bill residual time length and bill residual flow, calculate corresponding cycle utilizable flow;Corresponding for each predetermined period cycle utilizable flow is sent to terminal by server, so that terminal carries out flow-control according to utilizable flow of each predetermined period corresponding cycle.The inventive method is when exceeding predetermined threshold value with flow, cycle utilizable flow is calculated according to predetermined period corresponding bill residual time length and bill residual flow, flow-control is carried out by cycle utilizable flow terminal, ensure that customer flow uses without departing from the flow of user's set meal, it is to avoid terminal exceeds the quata to use flow to cause expensive expense.
Description
Technical Field
The present invention relates to mobile communication technologies, and in particular, to a method, a server, and a terminal for implementing flow control.
Background
Along with the application and popularization of mobile terminals, data flow services are more and more popularized, users obtain flow for data access by purchasing flow packages, operators feed back flow use information to the users irregularly, and when the flow exceeds the packages, the users charge higher than package charging standards according to the exceeding flow.
In order to avoid that the user traffic usage does not exceed the package range, patent publication No. CN104168606A discloses a network speed control method for a mobile terminal, in which when the speed limiting function is determined to be started by the mobile terminal, the mobile terminal obtains an actual network speed, and when the actual network speed is greater than a preset network speed threshold, the mobile terminal limits the actual network speed to be less than or equal to the preset network speed threshold. In addition, the entity operator also discloses a method for realizing the speed limit cancellation. The server informs the terminal of the speed limit control, and if the user confirms to accept the speed limit control, the server limits the speed of the terminal access network. If the user does not accept the speed limit control, the terminal normally accesses the network; and when the terminal terminates the speed limit control, the terminal interacts with the server to cancel the speed limit.
The network speed threshold in the network speed control method of the mobile terminal is preset by the terminal, for a mobile terminal user, setting the network speed threshold is a technical problem of being too professional, the purpose of controlling the flow can not be achieved by setting the network speed threshold if the network speed threshold is too large, and the speed of accessing a network is influenced and the flow cannot be fully used if the network speed threshold is too small. The speed limit control method of the entity operator, carry on the speed limit control through the network side; however, for the virtual operator, to implement the speed limit control, since the virtual operator rents the network including different entity operators, to perform the speed limit control, communication adjustment with each entity operator is required, and the operation cost is too high, which is not favorable for the development and popularization of the virtual operator.
For a mobile terminal user, the problem that the flow does not exceed the flow limit within the package duration is the most concerned problem of the mobile terminal user, and the problem that how to ensure that the flow does not exceed the package flow needs to be solved.
Disclosure of Invention
In order to solve the above technical problems, the present invention provides a method, a server, and a terminal for implementing flow control, which can control the flow used by a user and avoid the cost problem caused by an excess flow.
In order to achieve the object of the present invention, the present invention provides a method for implementing flow control, including:
when the used flow of the user exceeds a preset threshold value, the server calculates the corresponding periodic available flow according to the bill remaining duration and the bill remaining flow according to a preset period;
and the server sends the available periodic flow corresponding to each preset period to the terminal so that the terminal performs flow control according to the available periodic flow corresponding to each preset period.
Further, before the used flow rate does not exceed the preset threshold, the method further comprises:
and the server receives the used flow obtained by local statistics from the terminal in real time.
Further, before calculating the available flow rate in the corresponding period of each preset period, the method further includes:
the server receives the used flow corresponding to each preset period uploaded by the terminal according to the preset period;
and determining the bill remaining duration and the bill remaining flow corresponding to each preset period according to the user package information and the received used flow corresponding to each preset period.
Further, calculating the period available flow corresponding to each preset period includes:
dividing the bill remaining flow rate corresponding to each preset period by the corresponding bill remaining time length to obtain a corresponding unit available flow rate;
and calculating the time length of multiplying each unit available flow by a preset period to obtain the period available flow corresponding to each preset period.
Further, when the terminal service card is changed, the method further comprises:
the server receives change information sent by the terminal, acquires corresponding user package information according to the change information, and receives used flow of a user;
the service card is a Subscriber Identity Module (SIM) card, a Universal Subscriber Identity Module (USIM) card, a soft SIM card or a virtual SIM card;
the change information at least includes terminal identification information.
Further, the terminal identification information is:
the mobile equipment international identity IMEI, and/or the international mobile subscriber identity IMSI, and/or the mobile subscriber directory number MDN.
Further, the method further comprises:
when receiving the used flow sent by the terminal, distributing a corresponding authentication token for the terminal;
and sending the periodic available flow to the terminal for flow control according to the authentication token.
Further, when the used flow of the user exceeds a preset threshold, the method further comprises: and the server sets a corresponding speed limit mark for the terminal.
In another aspect, the present application further provides a method for implementing flow control, including:
when the used flow of the user exceeds a preset threshold value, the terminal sends the used flow to the server according to a preset period, so that the server calculates the available flow of the period corresponding to each preset period according to the used flow and the package information of the user;
and the terminal performs flow control according to the available flow of the period.
Further, when the used flow of the user does not exceed the preset threshold, the method further comprises: and the terminal reports the used flow obtained by local statistics to the server in real time.
Further, when the terminal service card is changed, the method further comprises:
forbidding the terminal to access the network except the server and the recharging webpage;
and when the terminal accesses the server, sending the change information to the terminal so as to trigger the server to perform flow control processing.
Further, when the periodically available flow rate is 0, the method further includes: and forbidding the terminal to access the network except the server and the recharging webpage.
In another aspect, the present application further provides a server for implementing flow control, which at least includes a determining unit and a sending unit; wherein,
the determining unit is used for calculating the corresponding periodic available flow according to the bill remaining duration and the bill remaining flow by the server according to the preset period when the used flow of the user exceeds the preset threshold;
and the sending unit is used for sending the available periodic flow corresponding to each preset period to the terminal so that the terminal performs flow control according to the available periodic flow corresponding to each preset period.
Further, the server further comprises a receiving unit, configured to receive, in real time, the used traffic sent by the terminal.
Further, the determination unit is specifically adapted to,
when the used flow of the user exceeds a preset threshold, according to a preset period and according to the corresponding bill remaining time and the bill remaining flow,
dividing the bill remaining flow rate corresponding to each preset period by the corresponding bill remaining time length to obtain a corresponding unit available flow rate;
and multiplying the unit available flow of each preset period by the duration of the preset period to calculate the corresponding period available flow.
Further, the server further comprises a calculating unit, configured to receive, by the terminal, the used traffic corresponding to each preset period uploaded according to the preset period before determining the available traffic corresponding to each preset period;
and calculating the bill remaining duration and the bill remaining flow corresponding to each preset period according to the user package information and the received used flow corresponding to each preset period.
Further, the computing unit is further configured to, when the terminal is further configured to record that a service card of the terminal is changed, receive change information sent by the terminal, obtain corresponding user package information according to the change information, and receive the used traffic of the user;
the service card is an SIM card, a USIM card, a soft SIM card or a virtual SIM card;
the change information at least comprises terminal identification information of the international identity IMEI of the mobile equipment, and/or the international mobile subscriber identity IMSI, and/or the mobile subscriber directory number MDN.
Furthermore, the server also comprises an authentication unit which is used for distributing a corresponding authentication token for the terminal when receiving the used flow sent by the terminal;
and sending the periodic available flow to the terminal for flow control according to the authentication token.
Further, the server also comprises a marking unit which is used for setting a corresponding speed limit mark for the terminal when the used flow of the user exceeds a preset threshold value.
In another aspect, the present application provides a terminal for implementing flow control, including: a period sending unit and a flow control unit; wherein,
the period sending unit is used for sending the used flow to the server according to the preset period when the used flow exceeds the preset threshold value, so that the server calculates the period available flow corresponding to each preset period according to the used flow and the user package information;
and the flow control unit is used for controlling the flow according to the available periodic flow.
Further, the terminal further comprises a real-time reporting unit, configured to report, in real time, the locally statistically obtained used traffic to the server when the used traffic of the user does not exceed the preset threshold.
Furthermore, the terminal also comprises a change processing unit which is used for recording the service card of the terminal, and when the service card of the terminal is changed, the access to the network except the server and the recharging webpage is forbidden;
and when the server is accessed, sending the change information to the terminal to trigger the server to perform flow control processing.
Further, the flow control unit is further configured to: and when the period available flow is 0, only allowing the network of the server and the recharge webpage to be accessed.
Compared with the prior art, the technical scheme of the application comprises the following steps: when the used flow of the user exceeds a preset threshold value, the server calculates the corresponding periodic available flow according to the bill remaining duration and the bill remaining flow according to a preset period; and the server sends the available periodic flow corresponding to each preset period to the terminal so that the terminal performs flow control according to the available periodic flow corresponding to each preset period. When the used flow exceeds the preset threshold, the method calculates the periodic available flow according to the bill remaining duration and the bill remaining flow corresponding to the preset period, and controls the flow through the periodic available flow terminal, so that the flow used by the user does not exceed the flow of a user package, and the expensive expense caused by the excessive use of the flow by the terminal is avoided.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow chart of a method of implementing flow control in accordance with the present invention;
FIG. 2 is a flow chart of another method of implementing flow control in accordance with the present invention;
FIG. 3 is a block diagram of a server for implementing flow control according to the present invention;
fig. 4 is a block diagram of a terminal implementing flow control according to the present invention;
FIG. 5 is a flow chart of a method according to a first embodiment of the present invention;
FIG. 6 is a flow chart of a method according to a second embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
Fig. 1 is a flowchart of a method for implementing flow control according to the present invention, as shown in fig. 1, including:
step 100, when the used flow of a user exceeds a preset threshold, according to a preset period, the server calculates the corresponding period available flow according to the bill remaining time and the bill remaining flow;
it should be noted that the preset threshold is a numerical value set by a user or an operator customer service staff for the user according to the traffic usage condition in combination with the traffic package type of the user, and generally, when the package contains a large amount of traffic, the preset threshold can set a numerical value of a high percentage of the traffic package as the traffic threshold; on the contrary, when the package flow is less, the preset threshold value is set as the numerical value of the lower percentage of the flow package; for example, if the user package is a 1GB month-packed package, 900MB may be set as the preset threshold; when the package of the user is 100MB, a preset threshold value of about 70MB is set, so that the flow control can be better carried out; the method of the invention makes the flow rate as the service content of the package, writes the preset threshold value into the server after determining the preset threshold value, and judges whether the used flow rate exceeds the preset threshold value. The preset period T is an adjustment period for performing flow control, and generally (6hours < ═ T < ═ 12hours) is set as the preset period, so that when flow control is performed in time, frequent interaction with the server and further excessive load on the server due to too short preset period are avoided. .
Before the used flow rate does not exceed the preset threshold, the method further comprises the following steps:
and the server receives the used flow obtained by local statistics from the terminal in real time.
It should be noted that obtaining the used traffic information of the user from the physical operator by the virtual operator may involve authorization and information security problems, which are relatively difficult; the problem that the used flow cannot be updated in time exists when the entity operator acquires the used flow; therefore, the method of the invention uses the flow as the flow information of the real-time statistics locally obtained by the terminal.
Before calculating the available flow rate of each period corresponding to each preset period, the method of the present invention further comprises:
the server receives the used flow corresponding to each preset period uploaded by the terminal according to the preset period;
and determining the bill remaining duration and the bill remaining flow corresponding to each preset period according to the user package information and the received used flow corresponding to each preset period.
It should be noted that, when performing flow control, default package information of the user and a preset threshold are written into the server, so as to perform flow control on each terminal according to the package information and the preset threshold.
Preferably, the calculating the period available flow corresponding to each preset period includes:
dividing the corresponding bill remaining flow of each preset period by the corresponding bill remaining time to obtain the corresponding unit available flow;
and calculating the time length of multiplying each unit available flow by the preset period to obtain the period available flow corresponding to each preset period.
Step 101, the server sends the available periodic flow corresponding to each preset period to the terminal, so that the terminal performs flow control according to the available periodic flow corresponding to each preset period.
It should be noted that, performing network speed control on a terminal accessing a network in a preset period according to a period available flow corresponding to each preset period belongs to a conventional technical means of a person skilled in the art, and is not described herein again.
When the service card is changed, the method of the invention also comprises the following steps:
the server receives change information sent by the terminal, acquires corresponding user package information according to the change information, and receives used flow of a user;
the service card is a Subscriber Identity Module (SIM) card, a Universal Subscriber Identity Module (USIM) card, a soft SIM card or a virtual SIM card;
note that the soft SIM card or the virtual SIM means that the functions of the UICC including the subscriber identity module are embedded in the terminal software. The user can download the SIM from any operator without fixed selection of services for a particular operator.
The change information comprises at least terminal identification information, where the terminal identification information may be a mobile equipment international identity (IMEI), and/or an International Mobile Subscriber Identity (IMSI), and/or a mobile subscriber directory number (MDN).
The method of the invention also comprises the following steps: when a receiving terminal sends used flow, distributing a corresponding authentication token for the terminal;
and sending the periodic available flow to the terminal for flow control according to the authentication token.
It should be noted that, through the setting of the authentication token, the server can be prevented from being attacked maliciously, and the security is improved.
When the used flow of the user exceeds a preset threshold, the method of the invention further comprises the following steps: the server sets a corresponding speed limit mark for the terminal.
In the method, the interaction between the terminal and the server is based on a hypertext transfer protocol (HTTP), and used flow information reported by the terminal and periodic available flow sent to the terminal can be carried by an HTTP message body; the data format in the message body is implemented by XML, JASON or SOAP protocol, which belongs to the conventional technical means of those skilled in the art and is not described herein again.
The method of the invention calculates the periodic available flow through the server, issues the periodic available flow, and simplifies the processing flow of the terminal through the processing of the server.
When the used flow exceeds the preset threshold, the method calculates the periodic available flow according to the bill remaining duration and the bill remaining flow corresponding to the preset period, and controls the flow through the periodic available flow terminal, so that the flow used by the user does not exceed the flow of a user package, and the expensive expense caused by the excessive use of the flow by the terminal is avoided.
Fig. 2 is a flow chart of another method for implementing flow control according to the present invention, as shown in fig. 2,
200, when the used flow of the user exceeds a preset threshold value, the terminal sends the used flow to the server according to a preset period, so that the server calculates the period available flow corresponding to each preset period according to the used flow and the user package information;
and step 201, the terminal performs flow control according to the available flow of the period.
When the used flow of the user does not exceed the preset threshold, the method of the invention further comprises the following steps: and the terminal reports the used flow obtained by local statistics to the server in real time.
When the terminal service card is changed, the method of the invention also comprises the following steps:
forbidding the terminal to access the network except the server and the recharging webpage;
when the terminal accesses the server, the terminal sends the change information to the terminal so as to trigger the server to perform flow control processing.
When the periodic available flow is 0, the method of the invention further comprises the following steps: and forbidding the terminal to access the network except the server and the recharging webpage.
Fig. 3 is a block diagram of a server for implementing flow control according to the present invention, and as shown in fig. 3, the server at least includes a determining unit and a sending unit; wherein,
the determining unit is used for calculating the corresponding periodic available flow according to the bill remaining duration and the bill remaining flow by the server according to the preset period when the used flow of the user exceeds the preset threshold;
the determination unit is specifically adapted to,
when the used flow of the user exceeds a preset threshold, according to a preset period and according to the corresponding bill remaining time and the bill remaining flow,
dividing the bill remaining flow rate corresponding to each preset period by the corresponding bill remaining time length to obtain a corresponding unit available flow rate;
and multiplying the unit available flow of each preset period by the duration of the preset period to calculate the corresponding period available flow.
And the sending unit is used for sending the available periodic flow corresponding to each preset period to the terminal so that the terminal performs flow control according to the available periodic flow corresponding to each preset period.
The server of the invention also comprises a receiving unit which is used for receiving the used flow sent by the terminal in real time.
The server also comprises a calculating unit, a processing unit and a processing unit, wherein the calculating unit is used for receiving the used flow corresponding to each preset period uploaded by the terminal according to the preset period before determining the available flow corresponding to each preset period;
and calculating the bill remaining duration and the bill remaining flow corresponding to each preset period according to the user package information and the received used flow corresponding to each preset period.
The computing unit is also used for receiving the change information sent by the terminal when the terminal is also used for recording the change of the service card of the terminal, obtaining the corresponding user package information according to the change information and receiving the used flow of the user;
the service card is an SIM card, a USIM card, a soft SIM card or a virtual SIM card; (ii) a
The change information comprises at least terminal identification information of the mobile equipment international identity (IMEI), and/or International Mobile Subscriber Identity (IMSI), and/or mobile subscriber directory number (MDN).
The server also comprises an authentication unit used for distributing a corresponding authentication token for the terminal when the receiving terminal sends the used flow;
and sending the periodic available flow to the terminal for flow control according to the authentication token.
The server also comprises a marking unit which is used for setting a corresponding speed limit mark for the terminal when the used flow of the user exceeds a preset threshold value.
It should be noted that, the server in the system of the present invention may be implemented by a server cluster or a plurality of servers according to the performance requirement of flow control, for example, the determining unit and the sending unit may be implemented by a single server design; the receiving unit is realized by a single server design; the computing unit is realized by a single server design; the marking unit and the authentication unit are designed and realized by a single server; the number of the servers can be classified and set according to the system performance requirement and the flow control processing flow, and the system constructed by reasonable server setting can ensure that the flow control method can be operated to obtain hardware guarantee, so that the system works more stably.
Fig. 4 is a block diagram of a terminal for implementing flow control according to the present invention, as shown in fig. 4, including: a period sending unit and a flow control unit; wherein,
the period sending unit is used for sending the used flow to the server according to the preset period when the used flow exceeds the preset threshold value, so that the server calculates the period available flow corresponding to each preset period according to the used flow and the user package information;
and the flow control unit is used for controlling the flow according to the available periodic flow.
The terminal of the invention also comprises a real-time reporting unit which is used for reporting the used flow obtained by local statistics to the server in real time when the used flow of the user does not exceed the preset threshold.
The terminal of the invention also comprises a change processing unit which is used for recording the service card of the terminal, and forbidding the access to the network except the server and the recharging webpage when the service card of the terminal is changed;
and when accessing the server, sending the change information to the terminal to trigger the server to perform flow control processing.
The flow control unit is further configured to: when the period available flow is 0, only the network of the server and the top-up web page is allowed to be accessed.
The process of the present invention is illustrated in clear detail below by means of specific examples, which are only intended to illustrate the invention and are not intended to limit the scope of the process of the invention.
Example 1
The present embodiment performs the method of the present invention when the terminal data service is available, and assumes that the used traffic of the terminal user exceeds the preset threshold.
Fig. 5 is a flowchart of a method according to a first embodiment of the present invention, as shown in fig. 5, including:
and 500, judging whether the SIM card is changed or not by the terminal. If not, go to step 501; if so, go to step 502; the service card of this embodiment is a SIM card.
Step 501, judging whether a preset period is reached or not by a terminal, and acquiring available periodic flow from a server to control flow when the preset period is reached;
step 502, the terminal accesses the server, sends the change information of the terminal to the server, and the server obtains the corresponding user package information according to the change information and receives the used flow of the user;
step 503, the server judges whether the used flow of the user exceeds a preset threshold value; if the used flow exceeds the preset threshold, the terminal performs flow control according to the step 501; otherwise, step 504 is executed, and the terminal reports the used traffic in real time.
And step 504, the terminal reports the used flow in real time.
Here, the terminal records the service card to determine whether a change has occurred.
When the terminal flow is used up, the method only allows to access the server or the recharge webpage.
Example 2
Fig. 6 is a flowchart of a method according to a second embodiment of the present invention, as shown in fig. 6, including:
and step 600, when receiving the used flow of the user and controlling the flow, extracting the package information of the user.
Step 601, when the used flow exceeds a preset threshold value, setting a speed limit mark TRUE for the terminal, and obtaining the periodic available flow according to the used flow of the user and the package information of the user.
Step 602, the terminal obtains the periodic available flow from the server according to a preset period to perform network speed control, so as to implement flow control.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (23)
1. A method for implementing flow control, comprising:
when the used flow of the user exceeds a preset threshold value, the server calculates the corresponding periodic available flow according to the bill remaining duration and the bill remaining flow according to a preset period;
and the server sends the available periodic flow corresponding to each preset period to the terminal so that the terminal performs flow control according to the available periodic flow corresponding to each preset period.
2. The method of claim 1, wherein before the used flow rate does not exceed a preset threshold, the method further comprises:
and the server receives the used flow obtained by local statistics from the terminal in real time.
3. The method according to claim 1 or 2, wherein before calculating the period available flow rate corresponding to each preset period, the method further comprises:
the server receives the used flow corresponding to each preset period uploaded by the terminal according to the preset period;
and determining the bill remaining duration and the bill remaining flow corresponding to each preset period according to the user package information and the received used flow corresponding to each preset period.
4. The method according to claim 1 or 2, wherein the calculating of the period available flow rate corresponding to each of the preset periods comprises:
dividing the bill remaining flow rate corresponding to each preset period by the corresponding bill remaining time length to obtain a corresponding unit available flow rate;
and calculating the time length of multiplying each unit available flow by a preset period to obtain the period available flow corresponding to each preset period.
5. The method of claim 3, wherein when the terminal service card is changed, the method further comprises:
the server receives change information sent by the terminal, acquires corresponding user package information according to the change information, and receives used flow of a user;
the service card is a Subscriber Identity Module (SIM) card, a Universal Subscriber Identity Module (USIM) card, a soft SIM card or a virtual SIM card;
the change information at least includes terminal identification information.
6. The method of claim 5, wherein the terminal identification information is:
the mobile equipment international identity IMEI, and/or the international mobile subscriber identity IMSI, and/or the mobile subscriber directory number MDN.
7. The method of claim 6, further comprising:
when receiving the used flow sent by the terminal, distributing a corresponding authentication token for the terminal;
and sending the periodic available flow to the terminal for flow control according to the authentication token.
8. The method of claim 1, wherein when the user's used flow exceeds a preset threshold, the method further comprises: and the server sets a corresponding speed limit mark for the terminal.
9. A method for implementing flow control, comprising:
when the used flow of the user exceeds a preset threshold value, the terminal sends the used flow to the server according to a preset period, so that the server calculates the available flow of the period corresponding to each preset period according to the used flow and the package information of the user;
and the terminal performs flow control according to the available flow of the period.
10. The method of claim 9, wherein when the user's used flow does not exceed the preset threshold, the method further comprises: and the terminal reports the used flow obtained by local statistics to the server in real time.
11. The method of claim 9, wherein when the terminal service card is changed, the method further comprises:
forbidding the terminal to access the network except the server and the recharging webpage;
and when the terminal accesses the server, sending the change information to the terminal so as to trigger the server to perform flow control processing.
12. The method of claim 9, wherein when the periodically available flow rate is 0, the method further comprises: and forbidding the terminal to access the network except the server and the recharging webpage.
13. A server for realizing flow control is characterized by at least comprising a determining unit and a sending unit; wherein,
the determining unit is used for calculating the corresponding periodic available flow according to the bill remaining duration and the bill remaining flow by the server according to the preset period when the used flow of the user exceeds the preset threshold;
and the sending unit is used for sending the available periodic flow corresponding to each preset period to the terminal so that the terminal performs flow control according to the available periodic flow corresponding to each preset period.
14. The server according to claim 13, further comprising a receiving unit for receiving the used traffic sent by the terminal in real time.
15. The server according to claim 13 or 14, characterized in that the determining unit is specifically configured to,
when the used flow of the user exceeds a preset threshold, according to a preset period and according to the corresponding bill remaining time and the bill remaining flow,
dividing the bill remaining flow rate corresponding to each preset period by the corresponding bill remaining time length to obtain a corresponding unit available flow rate;
and multiplying the unit available flow of each preset period by the duration of the preset period to calculate the corresponding period available flow.
16. The server according to claim 13 or 14, wherein the server further includes a calculating unit, configured to, before determining the available flow rate for each period corresponding to each preset period, receive an used flow rate corresponding to each preset period uploaded by the terminal according to the preset period;
and calculating the bill remaining duration and the bill remaining flow corresponding to each preset period according to the user package information and the received used flow corresponding to each preset period.
17. The server according to claim 16,
the computing unit is further configured to receive change information sent by the terminal when the terminal is further configured to record that a service card of the terminal is changed, obtain corresponding user package information according to the change information, and receive the used flow of the user;
the service card is an SIM card, a USIM card, a soft SIM card or a virtual SIM card;
the change information at least comprises terminal identification information of the international identity IMEI of the mobile equipment, and/or the international mobile subscriber identity IMSI, and/or the mobile subscriber directory number MDN.
18. The server according to claim 13 or 14, wherein the server further comprises an authentication unit, configured to assign a corresponding authentication token to a terminal when receiving the used traffic sent by the terminal;
and sending the periodic available flow to the terminal for flow control according to the authentication token.
19. The server according to claim 13 or 14, wherein the server further comprises a marking unit for setting a corresponding speed limit mark for the terminal when the used flow of the user exceeds a preset threshold.
20. A terminal for implementing flow control, comprising: a period sending unit and a flow control unit; wherein,
the period sending unit is used for sending the used flow to the server according to the preset period when the used flow exceeds the preset threshold value, so that the server calculates the period available flow corresponding to each preset period according to the used flow and the user package information;
and the flow control unit is used for controlling the flow according to the available periodic flow.
21. The terminal of claim 20, further comprising a real-time reporting unit, configured to report the locally statistically obtained used traffic to the server in real time when the used traffic of the user does not exceed the preset threshold.
22. The terminal of claim 20, further comprising a change processing unit for recording a service card of the terminal, and when the service card of the terminal is changed, prohibiting access to a network other than the server and the charging web page;
and when the server is accessed, sending the change information to the terminal to trigger the server to perform flow control processing.
23. The terminal of claim 20, wherein the flow control unit is further configured to: and when the period available flow is 0, only allowing the network of the server and the recharge webpage to be accessed.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510267911.5A CN106304193A (en) | 2015-05-22 | 2015-05-22 | A kind of realize the method for flow-control, server and terminal |
PCT/CN2016/082860 WO2016188377A1 (en) | 2015-05-22 | 2016-05-20 | Method for implementing traffic control, server and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510267911.5A CN106304193A (en) | 2015-05-22 | 2015-05-22 | A kind of realize the method for flow-control, server and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106304193A true CN106304193A (en) | 2017-01-04 |
Family
ID=57392327
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510267911.5A Pending CN106304193A (en) | 2015-05-22 | 2015-05-22 | A kind of realize the method for flow-control, server and terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106304193A (en) |
WO (1) | WO2016188377A1 (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107682910A (en) * | 2017-09-30 | 2018-02-09 | 广东欧珀移动通信有限公司 | Floating resources sharing method, device, mobile terminal and storage medium |
CN107682832A (en) * | 2017-09-30 | 2018-02-09 | 广东欧珀移动通信有限公司 | Data processing method and device, computer equipment, computer-readable recording medium |
CN107708147A (en) * | 2017-09-30 | 2018-02-16 | 广东欧珀移动通信有限公司 | Information processing method, device, mobile terminal and computer-readable recording medium |
CN107707369A (en) * | 2017-09-30 | 2018-02-16 | 广东欧珀移动通信有限公司 | The method and apparatus of flow order management, computer equipment, readable storage medium storing program for executing |
CN110688615A (en) * | 2019-09-24 | 2020-01-14 | 北京达佳互联信息技术有限公司 | Method, apparatus, device and storage medium for providing resource package service |
CN110719229A (en) * | 2019-09-18 | 2020-01-21 | 深圳市优克联新技术有限公司 | Cloud card flow balancing method, cloud card server and computer readable storage medium |
CN112398745A (en) * | 2020-10-12 | 2021-02-23 | 联通智网科技有限公司 | Flow control method, flow control device, server and storage medium |
CN113395217A (en) * | 2020-03-12 | 2021-09-14 | 中国移动通信集团云南有限公司 | Flow control method and device |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110198275B (en) * | 2018-03-28 | 2022-03-29 | 腾讯科技(深圳)有限公司 | Flow control method, system, server and storage medium |
CN109150746B (en) * | 2018-07-06 | 2022-08-30 | 南京星云数字技术有限公司 | Global flow control method and device |
CN110381456B (en) * | 2019-07-19 | 2020-10-02 | 珠海格力电器股份有限公司 | Flow management system, flow threshold calculation method and air conditioning system |
CN111343100B (en) * | 2020-03-07 | 2023-07-25 | 深圳市中天网景科技有限公司 | Speed limiting method, system and equipment for card-month flow package based on Internet of things |
CN114629733B (en) * | 2022-03-14 | 2024-02-13 | 浙江开心果数智科技有限公司 | Automatic flow recharging method based on AI |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103248756B (en) * | 2013-03-28 | 2016-11-16 | 广东欧珀移动通信有限公司 | A kind of method of the pattern that surfs the web according to residual flow switch mobile phone |
CN103347259B (en) * | 2013-06-03 | 2016-08-17 | 亚信科技(中国)有限公司 | A kind of flow prompt method and system |
CN103686663B (en) * | 2013-12-20 | 2017-01-11 | 海信集团有限公司 | Network flow monitoring method and device |
CN104168606A (en) * | 2014-07-24 | 2014-11-26 | 深圳天珑无线科技有限公司 | Network speed control method of mobile terminal |
CN104202773B (en) * | 2014-09-01 | 2018-07-13 | 努比亚技术有限公司 | Smart card control method and device based on network flow |
CN104349367A (en) * | 2014-11-12 | 2015-02-11 | 深圳市中兴移动通信有限公司 | Mobile terminal and predicting reminding method and device of flow consumption of mobile terminal |
-
2015
- 2015-05-22 CN CN201510267911.5A patent/CN106304193A/en active Pending
-
2016
- 2016-05-20 WO PCT/CN2016/082860 patent/WO2016188377A1/en active Application Filing
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107682910A (en) * | 2017-09-30 | 2018-02-09 | 广东欧珀移动通信有限公司 | Floating resources sharing method, device, mobile terminal and storage medium |
CN107682832A (en) * | 2017-09-30 | 2018-02-09 | 广东欧珀移动通信有限公司 | Data processing method and device, computer equipment, computer-readable recording medium |
CN107708147A (en) * | 2017-09-30 | 2018-02-16 | 广东欧珀移动通信有限公司 | Information processing method, device, mobile terminal and computer-readable recording medium |
CN107707369A (en) * | 2017-09-30 | 2018-02-16 | 广东欧珀移动通信有限公司 | The method and apparatus of flow order management, computer equipment, readable storage medium storing program for executing |
CN107682910B (en) * | 2017-09-30 | 2021-01-26 | Oppo广东移动通信有限公司 | Traffic resource sharing method and device, mobile terminal and storage medium |
CN107682832B (en) * | 2017-09-30 | 2021-03-23 | Oppo广东移动通信有限公司 | Data processing method and device, computer equipment and computer readable storage medium |
CN110719229A (en) * | 2019-09-18 | 2020-01-21 | 深圳市优克联新技术有限公司 | Cloud card flow balancing method, cloud card server and computer readable storage medium |
CN110688615A (en) * | 2019-09-24 | 2020-01-14 | 北京达佳互联信息技术有限公司 | Method, apparatus, device and storage medium for providing resource package service |
CN113395217A (en) * | 2020-03-12 | 2021-09-14 | 中国移动通信集团云南有限公司 | Flow control method and device |
CN112398745A (en) * | 2020-10-12 | 2021-02-23 | 联通智网科技有限公司 | Flow control method, flow control device, server and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2016188377A1 (en) | 2016-12-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106304193A (en) | A kind of realize the method for flow-control, server and terminal | |
CN103916844B (en) | Client identification module card activating method and virtual client identification module card server | |
US9253637B2 (en) | Telecommunications network and method for time-based network access | |
EP3471384A1 (en) | Method for measuring and displaying internet traffic of mobile phone and mobile phone | |
CN104378750A (en) | Charging method and system with multiple terminals sharing balance of account | |
CN108200568B (en) | Mobile communication electronic SIM card data processing method and device | |
EP2905979A1 (en) | Charge control method, device and system for roaming user data service | |
KR20180069470A (en) | Method and apparatus for calculating roaming charge in mobile communication | |
CN103987030B (en) | A kind of method for realizing the number of taking upgrading networking, apparatus and system | |
CN105554730A (en) | Communication method, server and terminal | |
CN101247656B (en) | Method, device and system for implementing differentiated charging | |
CN104703162A (en) | Method, device and system for accessing third-party resource through application | |
CN109479007B (en) | Data service control method, related equipment and system | |
CN101594686A (en) | User Priority is determined method, Apparatus and system in the wireless communication system | |
CN102075386B (en) | Identification method and device | |
CN105722049B (en) | Charge on traffic, record control, application message sending method, apparatus and system | |
CN114338930B (en) | Ticket information processing method, computer device and storage medium | |
JP2008177837A (en) | Radio communication system and charging control method | |
CN106936602B (en) | Network charging method and device based on Internet of things equipment | |
CN104080125A (en) | Triggering method and device based on network load and M2M service priority | |
CN102137379B (en) | Method and device for controlling charging flow | |
CN104254060A (en) | Policy and charging control rule issuing method and equipment | |
US11108914B2 (en) | Method and system for revenue maximization in a communication network | |
CN103906025B (en) | A kind of processing method of third party charging business, apparatus and system | |
CN103501231B (en) | Business service method, network analyzing apparatus and charge system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170104 |