CN107027109B - Method for adjusting user flow quota, online charging system and gateway - Google Patents

Method for adjusting user flow quota, online charging system and gateway Download PDF

Info

Publication number
CN107027109B
CN107027109B CN201610077175.1A CN201610077175A CN107027109B CN 107027109 B CN107027109 B CN 107027109B CN 201610077175 A CN201610077175 A CN 201610077175A CN 107027109 B CN107027109 B CN 107027109B
Authority
CN
China
Prior art keywords
bearer
ocs
quota
traffic
gateway
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610077175.1A
Other languages
Chinese (zh)
Other versions
CN107027109A (en
Inventor
朱旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Group Liaoning Co Ltd
Original Assignee
China Mobile Group Liaoning 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 China Mobile Group Liaoning Co Ltd filed Critical China Mobile Group Liaoning Co Ltd
Priority to CN201610077175.1A priority Critical patent/CN107027109B/en
Publication of CN107027109A publication Critical patent/CN107027109A/en
Application granted granted Critical
Publication of CN107027109B publication Critical patent/CN107027109B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/64On-line charging system [OCS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/80Rating or billing plans; Tariff determination aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/80Rating or billing plans; Tariff determination aspects
    • H04M15/8027Rating or billing plans; Tariff determination aspects based on network load situation

Abstract

The embodiment of the invention discloses a method for adjusting user flow quota, which comprises the following steps: receiving flow quota application information corresponding to a first bearer of a first terminal, which is sent by a gateway, wherein the flow quota application information comprises the average consumption speed of the first bearer on a flow quota and the number of bearers activated by all terminals connected with the gateway; acquiring the number of gateways accessing the OCS and the number of bearers activated by all terminals connected with each gateway; calculating to obtain a flow quota distributed for a first bearer according to the flow quota application information; and sending flow quota response information to the gateway, wherein the flow quota response information comprises the flow quota distributed for the first bearer. Furthermore, the embodiment of the invention also discloses an online charging system, another method for adjusting the user flow quota and a gateway.

Description

Method for adjusting user flow quota, online charging system and gateway
Technical Field
The present invention relates to a traffic configuration technology in the field of communications, and in particular, to a method for adjusting a user traffic quota, an online charging system, and a gateway.
Background
With the development of wireless communication networks, high-speed data transmission is realized between the network and the terminal, so that the popularization of the application of large-flow mobile terminals such as online video watching, handheld games and the like becomes possible.
In the prior art, an Online Charging System (OCS) network element is added in a communication network to implement allocation and charging of terminal traffic, when a terminal of a prepaid user establishes a bearer on the internet each time, the terminal needs to send a traffic quota application to the OCS, after receiving the traffic quota application, the OCS sends traffic quota response information to the gateway, where the traffic quota response information includes a fixed traffic quota allocated by the OCS for the bearer, and then the gateway monitors the traffic consumption of each bearer in the terminal, and when the remaining value of the traffic quota response information is reduced to a threshold value, triggers a next traffic quota application process.
However, different capacities of the terminal for bearing consumed traffic are different, for example, if the terminal downloads a high-definition movie online, the traffic is consumed faster; if the terminal uses the instant messaging software, the consumption of the flow is slow. If the differences of different bearers are not considered, and the OCS allocates the same traffic quota for each bearer, the bearers with fast traffic consumption frequently send traffic quota applications to the OCS, so that the signaling network load is high, delay of traffic quota response messages is easily caused, and further, a rate jitter phenomenon is serious, and user experience is poor.
Disclosure of Invention
In order to solve the above technical problems, embodiments of the present invention desirably provide a method for adjusting a user traffic quota, an online charging system, and a gateway, which can adaptively adjust a traffic quota allocated to a bearer, reduce a signaling network load, reduce a rate jitter phenomenon, and improve user experience.
The technical scheme of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for adjusting a user traffic quota, where the method is applied to an online charging system OCS, and includes:
receiving traffic quota application information corresponding to a first bearer of a first terminal, which is sent by a gateway, wherein the traffic quota application information comprises an average consumption speed of the first bearer on a traffic quota and the number of bearers activated by all terminals connected with the gateway;
acquiring the number of gateways accessing the OCS and the number of bearers activated by all terminals connected with each gateway;
calculating to obtain a flow quota allocated to the first bearer according to an average consumption speed of the first bearer on the flow quota, the number of bearers activated by all terminals connected to the gateway, the number of gateways accessing the OCS, the sum of the number of bearers activated by all terminals connected to all gateways accessing the OCS, and the signaling message processing capacity of the OCS per second;
and sending flow quota response information to the gateway, wherein the flow quota response information comprises the flow quota distributed for the first bearer.
Optionally, the calculating to obtain the traffic quota allocated to the first bearer includes:
calculating a traffic quota ζ allocated for the first bearer according to formula (1);
the formula (1) is
Figure BDA0000920958220000021
Wherein v' is an average consumption speed of the first bearer on a traffic quota, N is the number of gateways accessing the OCS, and ω isiAnd the number of activated bearers for all terminals connected with the ith gateway is less than the signaling message processing capacity of the OCS per second.
Optionally, the traffic quota application information further includes a sum of maximum uplink and downlink transmission rates signed by the first terminal and the core network, and a maximum time delay of the traffic quota response information sent by the OCS, which is obtained by the gateway within a preset time period;
the method further comprises the following steps:
calculating to obtain a traffic quota application trigger threshold of the first bearer according to a sum of maximum uplink and downlink transmission rates signed by the first terminal and the core network and a maximum time delay of traffic quota response information sent by the OCS and obtained by the gateway within a preset time period;
the flow quota response information further includes a flow quota application trigger threshold of the first bearer.
Optionally, the obtaining of the traffic quota application trigger threshold of the first bearer by calculation includes:
calculating a traffic quota application trigger threshold η of the first bearer according to formula (2);
the formula (2) is η ═ v × τ, where v is a sum of maximum uplink and downlink transmission rates signed by the first terminal and the core network, and τ is a maximum time delay of the gateway obtaining the traffic quota response information sent by the OCS within the preset time period.
In a second aspect, an embodiment of the present invention provides an OCS, including:
a receiving unit, configured to receive traffic quota application information corresponding to a first bearer of a first terminal, where the traffic quota application information includes an average consumption speed of the first bearer on a traffic quota and the number of bearers activated by all terminals connected to a gateway;
a first obtaining unit, configured to obtain the number of gateways accessing the OCS and the number of bearers activated by all terminals connected to each gateway;
a first calculating unit, configured to calculate, according to an average consumption speed of a first bearer on a traffic quota, a number of bearers activated by all terminals connected to the gateway, a number of gateways accessing the OCS, a sum of numbers of bearers activated by all terminals connected to all gateways accessing the OCS, and a signaling message processing capability of the OCS per second, to obtain a traffic quota allocated to the first bearer;
a sending unit, configured to send traffic quota response information to the gateway, where the traffic quota response information includes a traffic quota allocated for the first bearer.
Optionally, the first computing unit is specifically configured to:
calculating a traffic quota ζ allocated for the first bearer according to formula (1);
the formula (1) is
Figure BDA0000920958220000031
Wherein v' is an average consumption speed of the first bearer on a traffic quota, N is the number of gateways accessing the OCS, and ω isiAnd the number of activated bearers for all terminals connected with the ith gateway is less than the signaling message processing capacity of the OCS per second.
Optionally, the traffic quota application information further includes a sum of maximum uplink and downlink transmission rates signed by the first terminal and the core network, and a maximum time delay of the traffic quota response information sent by the OCS, which is obtained by the gateway within a preset time period;
the OCS further comprises:
a second calculating unit, configured to calculate a traffic quota application trigger threshold of the first bearer according to a sum of maximum uplink and downlink transmission rates signed by the first terminal and the core network and a maximum time delay of traffic quota response information sent by the OCS, where the maximum time delay is obtained by the gateway within a preset time period;
the traffic quota response information sent by the sending unit further includes a traffic quota application trigger threshold of the first bearer.
Optionally, the second calculating unit is specifically configured to:
calculating a traffic quota application trigger threshold η of the first bearer according to formula (2);
the formula (2) is η ═ v × τ, where v is a sum of maximum uplink and downlink transmission rates signed by the first terminal and the core network, and τ is a maximum time delay of the gateway obtaining the traffic quota response information sent by the OCS within the preset time period.
In a third aspect, an embodiment of the present invention provides a method for adjusting a user traffic quota, including:
sending flow quota application information corresponding to a first bearer of a first terminal to an Online Charging System (OCS), wherein the flow quota application information comprises the average consumption speed of the first bearer on flow quota and the number of bearers activated by all terminals connected with a gateway.
And receiving flow quota response information sent by the OCS, wherein the flow quota response information comprises a flow quota allocated to the first bearer.
Optionally, the traffic quota application information further includes a sum of maximum uplink and downlink transmission rates signed by the first terminal and the core network, and a maximum time delay of the traffic quota response information sent by the OCS, which is obtained by the gateway within a preset time period;
the flow quota response information further includes a flow quota application trigger threshold of the first bearer.
In a fourth aspect, an embodiment of the present invention provides a gateway, including:
the device comprises a sending unit, a receiving unit and an online charging system OCS, wherein the sending unit is used for sending flow quota application information corresponding to a first bearer of a first terminal to the online charging system OCS, and the flow quota application information comprises the average consumption speed of the first bearer on flow quota and the number of bearers activated by all terminals connected with a gateway.
A receiving unit, configured to receive traffic quota response information sent by the OCS, where the traffic quota response information includes a traffic quota allocated for the first bearer.
Optionally, the traffic quota application information further includes a sum of maximum uplink and downlink transmission rates signed by the first terminal and the core network, and a maximum time delay of the traffic quota response information sent by the OCS, which is obtained by the gateway within a preset time period;
the flow quota response information further includes a flow quota application trigger threshold of the first bearer.
The embodiment of the invention provides a method for adjusting user flow quota, an online charging system and a gateway, wherein the method for adjusting user flow quota comprises the following steps: receiving traffic quota application information corresponding to a first bearer of a first terminal, which is sent by a gateway, wherein the traffic quota application information comprises an average consumption speed of the first bearer on a traffic quota and the number of bearers activated by all terminals connected with the gateway; acquiring the number of gateways accessing the OCS and the number of bearers activated by all terminals connected with each gateway; calculating to obtain a flow quota allocated to the first bearer according to an average consumption speed of the first bearer on the flow quota, the number of bearers activated by all terminals connected to the gateway, the number of gateways accessing the OCS, the sum of the number of bearers activated by all terminals connected to all gateways accessing the OCS, and the signaling message processing capacity of the OCS per second; and sending flow quota response information to the gateway, wherein the flow quota response information comprises the flow quota distributed for the first bearer. Compared with the prior art, the flow quota can be allocated to the bearer according to the consumption speed of the bearer to the flow quota, the total activated bearer number of the OCS and the signaling processing capacity of the OCS, the size of the flow quota allocated to each bearer can be adjusted in a self-adaptive manner, so that the flow quota allocated to the bearer with higher consumption speed is larger, the frequency of applying the flow quota by the bearer with higher consumption speed is reduced, the load of a signaling network is further reduced, meanwhile, the response speed of the OCS is improved due to the reduction of the load of the signaling network, the rate jitter phenomenon is reduced, and the user experience is improved.
Drawings
Fig. 1 is a flowchart 1 of a method for adjusting a user traffic quota according to an embodiment of the present invention;
fig. 2 is an interaction diagram of a method for adjusting a user traffic quota according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram 1 of an online charging system according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an online charging system according to an embodiment of the present invention, which is shown in fig. 2;
fig. 5 is a flowchart 2 of a method for adjusting a user traffic quota according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a gateway according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
The embodiment of the present invention provides a method for adjusting a user traffic quota, which is applied to an online charging system (online charging system, OCS), as shown in fig. 1, and includes:
step 101, receiving traffic quota application information corresponding to a first bearer of a first terminal sent by a gateway, where the traffic quota application information includes an average consumption speed of the first bearer on a traffic quota and the number of bearers activated by all terminals connected to the gateway.
For example, the Gateway may be a GGSN (Gateway GPRS Support Node) or an SAEGW (System Architecture Evolution Gateway) in a core network, and the first terminal may be a mobile phone, a tablet computer, or a wireless network card, which is not limited in this embodiment of the present invention. The bearer may be understood as a logical path from the core network to the UE, for example, a bearer from the UE to the core network in the 4G network is called an Evolved Packet System bearer (EPS bearer). One terminal can activate multiple bearers, for example, when the terminal downloads an online high definition movie, one bearer can be activated, and when the terminal uses a data core network to perform a VOLTE (voice over lte) voice call, another bearer can be activated, where the VOLTE is a voice service based on an IMS (IP multimedia Subsystem). The OCS allocates traffic quotas on a bearer basis, that is, the OCS allocates a corresponding traffic quota to each bearer, and when the bearer consumes the allocated traffic quota to the trigger threshold, the OCS is applied again to allocate traffic quotas.
Specifically, the embodiment of the present invention is described by taking a first bearer of a first terminal as an example, where the first terminal is any one of all terminals connected to the gateway, and the first bearer is any one of multiple bearers activated by the first terminal. When a first terminal creates a first bearer, sending a bearer activation request to a gateway, and sending flow quota application information corresponding to the first bearer to an OCS by the gateway according to the bearer activation request; or the gateway monitors the traffic usage of the first bearer, and when the first bearer consumes the traffic quota allocated in the last traffic quota allocation process to the trigger threshold, the gateway sends traffic quota application information corresponding to the first bearer to the OCS. The traffic quota application information includes an average consumption speed of the first bearer to the traffic quota and the number of bearers activated by all terminals connected to the gateway, so that the OCS can calculate the traffic quota allocated to the first bearer in the current traffic quota allocation flow, and the average consumption speed of the first bearer to the traffic quota can be the average consumption speed of the traffic quota allocated to the first bearer in the last traffic quota allocation flow. When the first terminal creates the first bearer, the traffic quota allocated in the previous traffic quota allocation process does not exist, at this time, the traffic quota application information may include a sum of Maximum uplink and downlink transmission rates (AMBR) signed by the first terminal and the core network and a number of bearers activated by all terminals connected to the gateway, and if the user is not signed by the core network, the traffic quota application information may include a sum of Maximum uplink and downlink numbers signed by the general core network and a number of bearers activated by all terminals connected to the gateway.
And 102, acquiring the number of gateways accessing the OCS and the number of the activated bearers of all terminals connected with each gateway.
For example, a plurality of OCSs may be set in the core network, and each OCS is responsible for charging traffic of one area. Each region includes a plurality of gateways, and each gateway includes the number of bearers activated by all terminals connected to the corresponding gateway in the traffic quota application information sent to the OCS. The OCS may preset a bearer number list, where the bearer number list records the number of gateways accessing the OCS and the number of bearers activated by the terminal connected to each gateway, and updates the bearer number list according to the received flow quota application information each time. When the OCS needs to acquire the number of gateways and the number of bearers, the OCS can acquire the number of gateways and the number of bearers by querying the bearer number list.
Step 103, calculating to obtain the flow quota allocated to the first bearer according to the average consumption speed of the first bearer on the flow quota, the number of bearers activated by all terminals connected to the gateway, the sum of the number of bearers activated by all terminals connected to all gateways accessing the OCS, and the signaling message processing capacity of the OCS per second.
For example, a traffic quota ζ allocated for the first bearer may be calculated according to formula (1); the formula (1) is
Figure BDA0000920958220000071
Wherein v' is an average consumption speed of the first bearer on a traffic quota, N is the number of gateways accessing the OCS, and ω isiAnd the number of activated bearers for all terminals connected with the ith gateway is less than the signaling message processing capacity of the OCS per second.
Step 104, sending a traffic quota response message to the gateway, where the traffic quota response message includes a traffic quota allocated for the first bearer.
For example, after the OCS calculates the traffic quota allocated to the first bearer, the OCS may generate traffic quota response information, where the traffic quota response information includes the traffic quota allocated to the first bearer, and sends the traffic quota response information to the gateway, and after receiving the traffic quota response information, the gateway allows the first bearer to continue to access the service, and monitors the usage of the traffic quota of the first bearer.
Therefore, because the flow quota can be allocated to the bearer according to the consumption speed of the bearer to the flow quota, the total activated bearer number of the OCS, and the signaling processing capability of the OCS, the size of the flow quota allocated to each bearer can be adaptively adjusted, so that the flow quota allocated to the bearer with higher consumption speed is larger, the number of times of applying the flow quota by the bearer with higher consumption speed is reduced, and the load of the signaling network is further reduced.
Further, the traffic quota application information may further include a sum of maximum uplink and downlink transmission rates signed by the first terminal and the core network, and a maximum time delay of the traffic quota response information sent by the OCS, which is obtained by the gateway within a preset time period. The OCS may further calculate a traffic quota application trigger threshold of the first bearer according to a sum of maximum uplink and downlink transmission rates signed by the first terminal and the core network and a maximum time delay of the traffic quota response information sent by the OCS and obtained by the gateway within a preset time period, and send the traffic quota application trigger threshold of the first bearer to the gateway, for example, the traffic quota response information sent by the OCS to the gateway may further include the traffic quota application trigger threshold of the first bearer. The time delay of the gateway obtaining the flow quota response information sent by the OCS is the time delay between the time when the gateway sends the flow quota application information and the time when the flow quota response information sent by the OCS is received. In practical applications, the preset time period may be adjusted according to specific situations, which is not limited in the embodiments of the present invention.
For example, the OCS allocates a traffic quota for the first bearer according to the traffic quota consumption degree of the first bearer, and in order to avoid a rate jitter phenomenon caused when the first bearer waits for the next traffic quota after consuming the applied traffic quota, the OCS sets a traffic quota application trigger threshold, and when the first bearer consumes the allocated traffic quota to the traffic quota application trigger threshold, the next traffic quota allocation procedure is triggered, that is, the gateway monitors the traffic consumption condition of the first bearer, and when the first bearer consumes the allocated traffic quota to the traffic quota application trigger threshold, the gateway sends traffic quota application information to the OCS, so that the OCS allocates the traffic quota for the first bearer again. However, in the prior art, the traffic quota application trigger thresholds of each bearer are the same, and the difference between bearers due to different consumption speeds of traffic is not considered. If the flow quota application trigger threshold is set to be lower, the bearer with higher flow consumption is easy to cause speed jitter when waiting for flow distribution; if the traffic quota application trigger threshold is set higher, it is easy to cause the situation that the bearer with slower traffic consumption is allocated more traffic, and the bearer with faster traffic consumption has no traffic available.
For adaptively adjusting a traffic quota application trigger threshold of a first bearer, when a gateway sends traffic quota application information to an OCS, the gateway may carry a sum of maximum uplink and downlink transmission rates signed by a first terminal and a core network and a maximum time delay of the traffic quota response information sent by the OCS, so that the OCS determines the traffic quota application trigger threshold of the first bearer according to the sum of the maximum uplink and downlink transmission rates signed by the first terminal and the core network and the maximum time delay of the traffic quota response information sent by the OCS obtained by the gateway within a preset time period, and carries the traffic quota application trigger threshold of the first bearer in the traffic quota response information to send to the gateway, and the gateway monitors the usage of the traffic quota of the first bearer. And when the residual flow is reduced to the flow quota application trigger threshold of the first bearer, sending flow quota application information to the OCS again.
Optionally, the traffic quota application trigger threshold η of the first bearer may be calculated according to a formula (2), where the formula (2) is η ═ v × τ, where v is a sum of maximum uplink and downlink transmission rates at which the first terminal is subscribed to the core network, and τ is a maximum time delay at which the gateway obtains traffic quota response information sent by the OCS within the preset time period.
The embodiment of the invention provides a method for adjusting user flow quota, which comprises the following steps: receiving traffic quota application information corresponding to a first bearer of a first terminal, which is sent by a gateway, wherein the traffic quota application information comprises an average consumption speed of the first bearer on a traffic quota and the number of bearers activated by all terminals connected with the gateway; the first terminal is any one of all terminals connected with the gateway, and the first bearer is any one of a plurality of bearers activated by the first terminal; acquiring the number of gateways accessing the OCS and the number of bearers activated by all terminals connected with each gateway; and calculating the flow quota distributed for the first bearer according to the average consumption speed of the first bearer on the flow quota, the number of bearers activated by all terminals connected with the gateway, the number of gateways accessing the OCS, the sum of the number of bearers activated by all terminals connected with all gateways accessing the OCS, and the signaling message processing capacity of the OCS per second. Compared with the prior art, the flow quota can be allocated to the bearer according to the consumption speed of the bearer to the flow quota, the total activated bearer number of the OCS and the signaling processing capacity of the OCS, the size of the flow quota allocated to each bearer can be adjusted in a self-adaptive manner, so that the flow quota allocated to the bearer with higher consumption speed is larger, the frequency of applying the flow quota by the bearer with higher consumption speed is reduced, the load of a signaling network is further reduced, meanwhile, the response speed of the OCS is improved due to the reduction of the load of the signaling network, the rate jitter phenomenon is reduced, and the user experience is improved.
The embodiment of the invention provides a method for adjusting user traffic quota, which takes the gateway as GGSN or SAEGW as an example for explanation. As shown in fig. 2, the method for adjusting the user traffic quota includes:
step 201, the first terminal sends a bearer activation request of the first bearer to the GGSN/sae gw.
For example, suppose that a first terminal needs to activate a first bearer when performing high-definition movie downloading online, at this time, the first terminal sends a bearer activation request of the first bearer to the GGSN/sae gw, where the bearer activation request may be a signaling "ActivatePDP Context request".
Step 202, the GGSN/SAEGW sends traffic quota application information corresponding to the first bearer to the OCS according to the bearer activation request.
Illustratively, after receiving a bearer activation request sent by a first terminal, a GGSN/SAEGW sends traffic quota application information corresponding to a first bearer to an OCS according to the bearer activation request, where the traffic quota application information includes the number of bearers activated by all terminals connected to the GGSN/SAEGW, the sum of maximum uplink and downlink transmission rates subscribed by the first terminal and the core network, and the maximum delay of traffic quota response information sent by the OCS, which is obtained by the gateway within a preset time period, so that the OCS calculates a traffic quota allocated for the first bearer and a traffic quota application trigger threshold of the first bearer. The traffic quota application information may be CCR-I. And if the user does not sign with the core network, the flow quota application information comprises the sum of the maximum uplink and downlink quantity signed by the universal core network and the quantity of the load activated by all terminals connected with the gateway.
For example, the number of bearers activated by all terminals connected to the GGSN/SAEGW may be 300000, the sum of maximum uplink and downlink transmission rates subscribed by the first terminal and the core network may be 20M/s (mega per second), and the maximum delay of the gateway obtaining the traffic quota response information sent by the OCS within a preset time period is 150ms (millisecond). During initialization, a format of the traffic quota application information may be preset, for example, a first group of data in the traffic quota application information is used to indicate the number of bearers activated by all terminals connected to the GGSN/sae gw, a second group of data is used to indicate the sum of maximum uplink and downlink transmission rates subscribed by the first terminal and the core network, and a third group of data is used to indicate that the GGSN/sae gw obtains the maximum delay of the traffic quota response information sent by the OCS within a preset time period, where the traffic quota application information may include 300000, 20, and 150, and after receiving the traffic quota application information, the OCS may determine the meaning of each data according to the position of the data. The preset time period may be 10 seconds(s), or 5s, and may be set according to specific situations in practical applications, which is not limited in the embodiment of the present invention.
In step 203, the OCS obtains the number of GGSNs/SAEGWs currently accessing the OCS and the number of bearers activated by all terminals connected to each GGSN/SAEGW.
For example, during initialization, the OCS may preset a bearer quantity list, where the bearer quantity list is used to record the number of gateways accessing the OCS and the number of bearers activated by a terminal connected to each gateway, and each traffic quota application message sent to the OCS includes the number of bearers activated by a terminal connected to a corresponding GGSN/SAEGW, so that each time the OCS receives one traffic quota application message, the OCS records the number of bearers activated by a terminal connected to a GGSN/SAEGW included in the traffic quota application message in the bearer quantity list, and updates the bearer quantity list according to the received traffic quota application message. When the OCS needs to acquire the number of gateways and the number of bearers, the OCS can acquire the number of gateways and the number of bearers by querying the bearer number list.
Step 204, the OCS obtains the traffic quota allocated for the first bearer.
Optionally, the OCS may obtain the traffic quota allocated to the first bearer according to the sum of the maximum uplink and downlink transmission rates subscribed by the first terminal and the core network, the number of GGSNs/SAEGWs accessing the OCS, and the number of bearers activated by all terminals connected to each GGSN/SAEGW. Specifically, a traffic quota ζ allocated to the first bearer may be calculated according to formula (1); the formula (1) is
Figure BDA0000920958220000121
Wherein, since the first bearer is created for the first time, v 'may be v, that is, the sum of maximum uplink and downlink transmission rates subscribed by the first terminal and the core network, and if the user is not subscribed to the core network, v' may also be a general core networkThe sum of maximum signed uplink and downlink numbers, where N is the number of gateways in the core network accessing the OCS, and ω is the number of gateways in the core network accessing the OCSiAnd the number of activated bearers for all terminals connected with the ith gateway is less than the signaling message processing capacity of the OCS per second.
For example, the GGSN/SAEGW accessing the OCS has 3 total, i.e., N ═ 3. Wherein the number of bearers activated by all terminals of the first GGSN/SAEGW connection is 300000, i.e. ω1300000; the number of bearers activated by all terminals of the second GGSN/SAEGW connection is 330000, i.e.. omega2330000; the number of all terminal activated bearers of the third GGSN/SAEGW connection is 315000, i.e. ω3315000. The sum of the maximum uplink and downlink transmission rates contracted by the first terminal with the core network is 20M/s, that is, v is 20M/s, and by setting a lower γ value, the purpose of reducing the signaling network load can be achieved, and preferably, γ is less than or equal to 50% of the signaling message processing capacity of the OCS per second. Preferably, γ may be 30% to 40% of the signaling message processing capability of the OCS per second, and γ is 200000 in the embodiment of the present invention. The flow quota allocated for the first bearing at this time
Figure BDA0000920958220000122
Figure BDA0000920958220000123
That is, the traffic quota allocated by the OCS for the first bearer is 94.5M.
Step 205, the OCS acquires the traffic quota application trigger threshold of the first bearer.
Specifically, the traffic quota application trigger threshold η of the first bearer may be calculated according to a formula (2), where the formula (2) is η ═ v τ, where v is the sum of the maximum uplink and downlink transmission rates signed by the first terminal and the core network, and τ is the maximum time delay of the traffic quota response information sent by the OCS obtained by the gateway within the preset time period.
For example, the sum of the maximum uplink and downlink transmission rates subscribed by the first terminal to the core network is 20M/s, that is, v is 20M/s, and the maximum time delay of the gateway for obtaining the traffic quota response information sent by the OCS within the preset time period is 150ms, that is, τ is 150ms is 0.15s, where the traffic quota application trigger threshold η of the first bearer is v τ is 20.15M.
Step 206, OCS sends flow quota response information to GGSN/SAEGW.
For example, after the OCS calculates the traffic quota allocated to the first bearer and the traffic quota application trigger threshold of the first bearer, the OCS may generate traffic quota response information, where the traffic quota response information includes the traffic quota allocated to the first bearer and the traffic quota application trigger threshold of the first bearer, and send the traffic quota response information to the GGSN/SAEGW, and the traffic quota response information may be CCA-I.
In practical application, a format of the traffic quota response information may be preset, for example, the first group of data is used to represent the traffic quota allocated to the first bearer, the second group of data is used to represent the traffic quota application trigger threshold of the first bearer, that is, the traffic quota response information includes 94.5 and 3, and after receiving the traffic quota response information, the GGSN/sae gw may determine the meaning of each data according to the position of the data.
Step 207, the GGSN/sae gw sends a session setup response for the first bearer to the first terminal.
For example, after the GGSN/SAEGW receives the traffic quota response information, it indicates that the OCS allocates a corresponding traffic quota to the first bearer, and the first bearer may perform service access by using the traffic quota, at this time, the GGSN/SAEGW may send a session establishment response of the first bearer to the first terminal, where the session establishment response is used to indicate that the first bearer of the first terminal is activated and may perform service access, and the session establishment response may be a signaling "Activate PDP Context Accept".
Step 208, the first bearer of the first terminal initiates an access service request.
For example, the first terminal may use the traffic quota allocated for the first bearer upon receiving the session establishment response of the first bearer sent by the GGSN/sae gw, for example, may Start performing an online high definition movie download Service, and the access Service request may be a signaling "Service Start request".
Step 209, the GGSN/SAEGW monitors the traffic consumption of the first bearer, and sends the traffic quota application information to the OCS again when the traffic consumption of the first bearer reaches the traffic quota application trigger threshold.
For example, when a first city of a first terminal accesses a service, the GGSN/SAEGW monitors a traffic consumption condition of a first bearer, and when the traffic of the first bearer is consumed to a traffic quota application trigger threshold, it indicates that a traffic quota of the first bearer will be used up, and a traffic quota needs to be applied to the OCS again, at this time, the GGSN/SAEGW may send traffic quota application information to the OCS again, where the traffic quota application information includes an average consumption speed of the traffic quota allocated to the first bearer in a last traffic quota allocation process, a number of bearers activated by all terminals connected to the GGSN/SAEGW, a sum of maximum uplink and downlink transmission rates subscribed by the first terminal and the core network, and a maximum delay of traffic quota response information sent by the OCS obtained by the gateway within a preset time period, so that the OCS can calculate the traffic quota allocated to the first bearer and the traffic quota application trigger threshold of the first bearer again, the traffic quota application information may be CCR-U.
For example, in the last flow of allocating the traffic quota, an average consumption speed v 'of the traffic quota allocated for the first bearer is (ζ - η)/t, where t is a time interval between two adjacent traffic quota applications, where ζ is 94.5M, η is 3M, and t is 7s, and v' is (94.5-3)/7 is 13.1M/s, the number of bearers activated by all terminals connected to the GGSN/SAEGW is 300000, the sum of the maximum uplink and downlink transmission rates subscribed by the first terminal to the core network is 20M/s, and the maximum time delay of the gateway obtaining the traffic quota response information sent by the OCS within a preset time period is 160 ms.
In step 210, the OCS obtains the number of GGSNs/SAEGWs currently accessing the OCS and the number of bearers activated by all terminals connected to each GGSN/SAEGW again.
For example, the OCS may obtain the number of GGSNs/SAEGWs currently accessing the OCS and the number of bearers activated by all terminals connected to each GGSN/SAEGW again by querying the bearer number list, where N is 3. Wherein, ω is1=300000,ω2=330000,ω3=315000。
Step 211, the OCS acquires the traffic quota allocated for the first bearer again.
For example, the OCS may obtain the traffic quota allocated for the first bearer again according to the average consumption speed of the traffic quota allocated for the first bearer in the last traffic quota allocation procedure, the number of GGSNs/SAEGWs accessing the OCS, and the number of bearers activated by all terminals connected to each GGSN/SAEGW. Specifically, the OCS may calculate the current traffic quota allocated to the first bearer according to formula (1), that is, the OCS may calculate the traffic quota allocated to the first bearer again
Figure BDA0000920958220000141
That is, the OCS allocates traffic quota for the first bearer again as 63.21M.
Step 212, the OCS acquires the traffic quota application trigger threshold of the first bearer again.
Specifically, the OCS may calculate the traffic quota application trigger threshold of the first bearer again according to formula (2), that is, the traffic quota application trigger threshold η ═ v τ ═ 20 ═ 0.16 ═ 3.2M of the first bearer.
Step 213, the OCS sends the traffic quota response message to the GGSN/SAEGW again.
For example, after acquiring the traffic quota allocated to the first bearer and the traffic quota application trigger threshold of the first bearer again, the OCS may send traffic quota response information to the GGSN/SAEGW again, where the traffic quota response information includes the traffic quota 63.21M allocated to the first bearer and the traffic quota application trigger threshold of the first bearer, which are acquired by the OCS again. The traffic quota response message may be a CCA-U.
It should be noted that, because the first terminal has a limitation of the traffic packet, when the OCS obtains again that the traffic quota allocated to the first bearer is greater than the remaining traffic of the traffic packet of the first terminal, the traffic quota allocated to the first bearer in the traffic quota response information is the remaining traffic of the traffic packet of the first terminal. For example, the traffic quota allocated to the first bearer and obtained again by the OCS is 64.5M, the remaining traffic of the traffic packet of the first terminal is 20M, and at this time, the traffic quota allocated to the first bearer and obtained by the traffic quota response information is 20M.
Step 214, GGSN/SAEGW allows the first bearer to continue to access the service.
For example, when the GGSN/SAEGW receives the traffic quota response message sent by the OCS, indicating that the OCS allocates the traffic quota for the first bearer again, the GGSN/SAEGW may allow the first bearer to continue to access the service. And the GGSN/SAEGW continues to monitor the consumption of the traffic quota of the first bearer, and starts the traffic quota application flow again when the consumption of the traffic quota of the first bearer reaches the traffic quota application trigger threshold of the first bearer.
Step 215, the first terminal sends a bearer deactivation request to the GGSN/sae gw.
For example, when the first terminal stops using the first bearer access service, the first terminal may send a bearer deactivation request to the GGSN/sae gw, where the bearer deactivation request may be a signaling "Deactivate PDP Context request".
Step 216, the GGSN/SAEGW sends a bearer deactivation response to the first terminal.
For example, after receiving the bearer deactivation request sent by the first terminal, the GGSN/sae gw may send a bearer deactivation response to the first terminal, where the bearer deactivation response is used to notify that the service access of the first bearer of the first terminal is ended, and the bearer deactivation response may be a signaling "deactivation PDP Context Accept".
Step 217, GGSN/SAEGW terminates the service of the first bearer.
Illustratively, the GGSN/sae gw stops the service access process of the first bearer according to a bearer deactivation request sent by the first terminal.
Step 218, GGSN/SAEGW sends a credit control end request to OCS.
Illustratively, the credit control end request includes remaining traffic of the traffic quota of the first bearer. Assuming that the last time the OCS allocated 64.21M traffic quota for the first bearer, but the first bearer only used 25M and the remainder 64.21-25-39.21M was not used, the GGSN/SAEGW may issue a credit control end request to the OCS, where the credit control end request includes the remaining traffic 39.21M for the traffic quota of the first bearer, and the credit control end request may be CCR-T.
Step 219, the OCS increases the remaining traffic in the traffic packet of the first terminal according to the remaining traffic of the traffic quota of the first bearer.
For example, after receiving the credit control end request sent by GGSN/SAEGW, the OCS knows that the first bearer has 39.21M of traffic quota unused, i.e. the first bearer shares (94.5+25) M of traffic. Assuming that the first terminal still has 500M traffic before establishing the first bearer, after the first allocation of the traffic quota, the first terminal still has (500-94.5) ═ 405.5M traffic, and after the second allocation of the traffic quota, the first terminal still has (500-94.5-64.21) ═ 341.29M traffic, and since 39.21M of the remaining traffic in the second allocated traffic quota is not used, the first terminal still has (341.29+39.21) ═ 380.5M traffic for other bearers after using the first bearer.
Step 220, the OCS sends an end success response to the GGSN/SAEGW.
For example, the end success response may be CCA-T.
It should be noted that, the order of the steps of the method for adjusting the user traffic quota according to the embodiment of the present invention may be appropriately adjusted, and the steps may also be increased or decreased according to the situation, and any method that can be easily changed by a person skilled in the art within the technical scope disclosed in the present invention should be included in the protection scope of the present invention, and therefore, no further description is given.
Compared with the prior art, the method for adjusting the user flow quota can adaptively adjust the flow quota allocated to each bearer according to the consumption speed of the bearer to the flow quota, the total activated bearer number of the OCS and the signaling processing capacity of the OCS, so that the flow quota allocated to the bearer with higher consumption speed is larger, the frequency of applying the flow quota by the bearer with higher consumption speed is reduced, the signaling network load is further reduced, and meanwhile, the response speed of the OCS is improved due to the reduction of the signaling network load, so that the rate jitter phenomenon is also reduced, and the user experience is improved.
An embodiment of the present invention provides an online charging system OCS30, as shown in fig. 3, including:
a receiving unit 301, configured to receive traffic quota application information corresponding to a first bearer of a first terminal sent by a gateway, where the traffic quota application information includes an average consumption speed of the first bearer on a traffic quota and the number of bearers activated by all terminals connected to the gateway.
The first terminal is any one of all terminals connected to the gateway, and the first bearer is any one of multiple bearers activated by the first terminal.
A first obtaining unit 302, configured to obtain the number of gateways accessing the OCS30 and the number of bearers activated by all terminals connected to each gateway.
A first calculating unit 303, configured to calculate, according to an average consumption speed of the first bearer on a traffic quota, a number of bearers activated by all terminals connected to the gateway, a number of gateways accessing the OCS, a sum of numbers of bearers activated by all terminals connected to all gateways accessing the OCS, and a signaling message processing capability of the OCS per second, a traffic quota allocated to the first bearer.
A sending unit 304, configured to send traffic quota response information to the gateway, where the traffic quota response information includes a traffic quota allocated for the first bearer.
Therefore, because the flow quota can be allocated to the bearer according to the consumption speed of the bearer to the flow quota, the total activated bearer number of the OCS, and the signaling processing capability of the OCS, the size of the flow quota allocated to each bearer can be adaptively adjusted, so that the flow quota allocated to the bearer with higher consumption speed is larger, the number of times of applying the flow quota by the bearer with higher consumption speed is reduced, and the load of the signaling network is further reduced.
Optionally, the first calculating unit 303 is specifically configured to calculate a traffic quota ζ allocated to the first bearer according to a formula (1).
The formula (1) is
Figure BDA0000920958220000181
Wherein v' is an average consumption speed of the first bearer on a traffic quota, N is the number of gateways accessing the OCS, and ω isiAnd the number of activated bearers for all terminals connected with the ith gateway is less than the signaling message processing capacity of the OCS per second.
Optionally, the traffic quota application information further includes a sum of maximum uplink and downlink transmission rates signed by the first terminal and the core network, and a maximum time delay of the traffic quota response information sent by the OCS, which is obtained by the gateway within a preset time period.
As shown in fig. 4, the OCS30 further includes: a second calculating unit 305, configured to calculate to obtain a traffic quota application trigger threshold of the first bearer according to a sum of maximum uplink and downlink transmission rates signed by the first terminal and the core network and a maximum time delay of the traffic quota response information sent by the OCS and obtained by the gateway within a preset time period. At this time, the traffic quota response information sent by the sending unit 304 further includes a traffic quota application trigger threshold of the first bearer.
Optionally, the second calculating unit 305 is specifically configured to calculate the traffic quota application trigger threshold η of the first bearer according to a formula (2).
The formula (2) is η ═ v × τ, where v is a sum of maximum uplink and downlink transmission rates signed by the first terminal and the core network, and τ is a maximum time delay of the gateway obtaining the traffic quota response information sent by the OCS within the preset time period.
It should be noted that, for convenience and brevity of description, it may be clearly understood by those skilled in the art that, for the specific working process of the system and the unit of the OCS described above, reference may be made to the corresponding process in the foregoing method embodiment, and details are not described here again.
Secondly, in practical applications, the first obtaining Unit 302, the first calculating Unit 303 and the second calculating Unit 305 may be implemented by a Central Processing Unit (CPU), a microprocessor Unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like, which are located in the online charging system OCS 30. The receiving unit 301 may be implemented by a wireless receiving module or a wired receiving module located in the online charging system OCS 30. The transmitting unit 304 may be implemented by a wireless transmitting module or a wired transmitting module located in the online charging system OCS 30.
An embodiment of the present invention provides an OCS, including: a receiving unit, configured to receive traffic quota application information corresponding to a first bearer of a first terminal, where the traffic quota application information includes an average consumption speed of the first bearer on a traffic quota and the number of bearers activated by all terminals connected to a gateway; a first obtaining unit, configured to obtain the number of gateways accessing the OCS and the number of bearers activated by all terminals connected to each gateway; a first calculating unit, configured to calculate, according to an average consumption speed of a first bearer on a traffic quota, a number of bearers activated by all terminals connected to the gateway, a number of gateways accessing the OCS, a sum of numbers of bearers activated by all terminals connected to all gateways accessing the OCS, and a signaling message processing capability of the OCS per second, to obtain a traffic quota allocated to the first bearer; a sending unit, configured to send traffic quota response information to the gateway, where the traffic quota response information includes a traffic quota allocated for the first bearer. Compared with the prior art, the flow quota can be allocated to the bearer according to the consumption speed of the bearer to the flow quota, the total activated bearer number of the OCS and the signaling processing capacity of the OCS, the size of the flow quota allocated to each bearer can be adjusted in a self-adaptive manner, so that the flow quota allocated to the bearer with higher consumption speed is larger, the frequency of applying the flow quota by the bearer with higher consumption speed is reduced, the load of a signaling network is further reduced, meanwhile, the response speed of the OCS is improved due to the reduction of the load of the signaling network, the rate jitter phenomenon is reduced, and the user experience is improved.
An embodiment of the present invention provides a method for adjusting a user traffic quota, which is applied to a gateway, and as shown in fig. 5, the method includes:
step 501, sending traffic quota application information corresponding to a first bearer of a first terminal to an OCS, where the traffic quota application information includes an average consumption speed of the first bearer on a traffic quota and the number of bearers activated by all terminals connected to the gateway.
For example, the embodiment of the present invention is described by taking a first bearer of a first terminal as an example, when the first terminal creates the first bearer, a bearer activation request is sent to a gateway, the gateway sends traffic quota application information corresponding to the first bearer to an OCS according to the bearer activation request, and the gateway sends the traffic quota application information corresponding to the first bearer to the OCS. The traffic quota application information includes an average consumption speed of the first bearer to the traffic quota and the number of bearers activated by all terminals connected to the gateway, so that the OCS can calculate the traffic quota allocated to the first bearer in the current traffic quota allocation flow, and the average consumption speed of the first bearer to the traffic quota can be the average consumption speed of the traffic quota allocated to the first bearer in the last traffic quota allocation flow. When the first terminal creates the first bearer, the traffic quota allocated in the previous traffic quota allocation process does not exist, at this time, the traffic quota application information may include a sum of Maximum uplink and downlink transmission rates (AMBR) signed by the first terminal and the core network and a number of bearers activated by all terminals connected to the gateway, and if the user is not signed by the core network, the traffic quota application information may include a sum of Maximum uplink and downlink numbers signed by the general core network and a number of bearers activated by all terminals connected to the gateway.
Step 502, receiving traffic quota response information sent by the OCS, where the traffic quota response information includes a traffic quota allocated for the first bearer.
For example, after calculating the traffic quota allocated to the first bearer, the OCS may generate traffic quota response information, where the traffic quota response information includes the traffic quota allocated to the first bearer, and sends the traffic quota response information to the gateway, and after receiving the traffic quota response information, the gateway allows the first bearer to access the service, and monitors a usage of the traffic quota of the first bearer.
Therefore, the flow quota distributed to each bearer can be adaptively adjusted, so that the traffic quota distributed to the bearer with higher consumption speed is larger, the frequency of applying the flow quota by the bearer with higher consumption speed is reduced, and the load of the signaling network is reduced.
Further, the traffic quota application information may further include a sum of maximum uplink and downlink transmission rates signed by the first terminal and the core network, and a maximum time delay of the traffic quota response information sent by the OCS, which is obtained by the gateway within a preset time period. At this time, the traffic quota response information sent by the OCS to the gateway further includes a traffic quota application trigger threshold of the first bearer.
For example, to avoid a rate jitter phenomenon caused when the first bearer waits for the next traffic quota after consuming the requested traffic quota, the OCS sets a traffic quota application trigger threshold, and when the first bearer consumes the allocated traffic quota to the traffic quota application trigger threshold, the OCS triggers the next traffic quota allocation procedure, that is, the gateway monitors the traffic consumption of the first bearer, and when the first bearer consumes the allocated traffic quota to the traffic quota application trigger threshold, the gateway sends traffic quota application information to the OCS, so that the OCS allocates the traffic quota for the first bearer again. For adaptively adjusting the traffic quota application triggering threshold of the first bearer, when the gateway sends the traffic quota application information to the OCS, the gateway may carry the sum of the maximum uplink and downlink transmission rates signed by the first terminal and the core network and the maximum time delay of the traffic quota response information sent by the OCS, so that the OCS determines the traffic quota application triggering threshold of the first bearer.
The embodiment of the invention provides a method for adjusting user flow quota, which comprises the following steps: sending flow quota application information corresponding to a first bearer of a first terminal to an Online Charging System (OCS), wherein the flow quota application information comprises the average consumption speed of the first bearer on flow quota and the number of bearers activated by all terminals connected with a gateway. And receiving flow quota response information sent by the OCS, wherein the flow quota response information comprises a flow quota allocated to the first bearer. Compared with the prior art, the method has the advantages that the flow quota distributed to each bearer can be adaptively adjusted, so that the bearer with higher consumption speed has more flow quota, the frequency of applying the flow quota by the bearer with higher consumption speed is reduced, and the load of the signaling network is further reduced.
An embodiment of the present invention provides a gateway 60, as shown in fig. 6, including:
a sending unit 601, configured to send traffic quota application information corresponding to a first bearer of a first terminal to an online charging system OCS, where the traffic quota application information includes an average consumption speed of the first bearer on a traffic quota and a number of bearers activated by all terminals connected to the gateway 60.
A receiving unit 602, configured to receive traffic quota response information sent by the OCS, where the traffic quota response information includes a traffic quota allocated for the first bearer.
Further, the traffic quota application information may further include a sum of maximum uplink and downlink transmission rates signed by the first terminal and the core network, and a maximum time delay of the traffic quota response information sent by the OCS, which is obtained by the gateway 60 within a preset time period. At this time, the traffic quota response information further includes a traffic quota application trigger threshold of the first bearer.
It should be noted that, for convenience and brevity of description, it may be clearly understood by those skilled in the art that, for the specific working process of the system and the unit of the gateway described above, reference may be made to the corresponding process in the foregoing method embodiment, and details are not described here again.
Second, in practical applications, the transmitting unit 601 may be implemented by a wireless transmitting module or a wired transmitting module located in the gateway 60. The receiving unit 602 may be implemented by a wireless receiving module or a wired receiving module located in the gateway 60.
An embodiment of the present invention provides a gateway, including: the device comprises a sending unit, a receiving unit and an online charging system OCS, wherein the sending unit is used for sending flow quota application information corresponding to a first bearer of a first terminal to the online charging system OCS, and the flow quota application information comprises the average consumption speed of the first bearer on flow quota and the number of bearers activated by all terminals connected with a gateway. A receiving unit, configured to receive traffic quota response information sent by the OCS, where the traffic quota response information includes a traffic quota allocated for the first bearer. Therefore, the flow quota distributed to each bearer can be adaptively adjusted, so that the traffic quota distributed to the bearer with higher consumption speed is larger, the frequency of applying the flow quota by the bearer with higher consumption speed is reduced, and the load of the signaling network is reduced.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (10)

1. A method for adjusting user flow quota is applied to an Online Charging System (OCS), and is characterized by comprising the following steps:
receiving traffic quota application information corresponding to a first bearer of a first terminal, which is sent by a gateway, wherein the traffic quota application information comprises an average consumption speed of the first bearer on a traffic quota and the number of bearers activated by all terminals connected with the gateway;
acquiring the number of gateways accessing the OCS and the number of bearers activated by all terminals connected with each gateway;
calculating to obtain a flow quota allocated to the first bearer according to an average consumption speed of the first bearer on the flow quota, the number of bearers activated by all terminals connected to the gateway, the number of gateways accessing the OCS, the sum of the number of bearers activated by all terminals connected to all gateways accessing the OCS, and the signaling message processing capacity of the OCS per second;
calculating a traffic quota ζ allocated for the first bearer according to the following formula;
Figure FDA0002277164740000011
wherein v' is an average consumption speed of the first bearer on a traffic quota, N is the number of gateways accessing the OCS, and ω isiThe number of activated bearers for all terminals connected to the ith gateway, γ being smaller than the signaling of the OCS per secondA message processing capability;
and sending flow quota response information to the gateway, wherein the flow quota response information comprises the flow quota distributed for the first bearer.
2. The method of claim 1,
the traffic quota application information further includes a sum of maximum uplink and downlink transmission rates signed by the first terminal and a core network, and a maximum time delay of the traffic quota response information sent by the OCS, which is obtained by the gateway within a preset time period;
the method further comprises the following steps:
calculating to obtain a traffic quota application trigger threshold of the first bearer according to a sum of maximum uplink and downlink transmission rates signed by the first terminal and the core network and a maximum time delay of traffic quota response information sent by the OCS and obtained by the gateway within a preset time period;
the flow quota response information further includes a flow quota application trigger threshold of the first bearer.
3. The method of claim 2, wherein the calculating the traffic quota application trigger threshold for the first bearer comprises:
calculating a traffic quota application trigger threshold η for the first bearer according to the following formula;
η=v*τ;
wherein v is a sum of maximum uplink and downlink transmission rates signed by the first terminal and the core network, and τ is a maximum time delay of the flow quota response information sent by the OCS and obtained by the gateway within the preset time period.
4. An OCS (online charging System), comprising:
a receiving unit, configured to receive traffic quota application information corresponding to a first bearer of a first terminal, where the traffic quota application information includes an average consumption speed of the first bearer on a traffic quota and the number of bearers activated by all terminals connected to a gateway;
a first obtaining unit, configured to obtain the number of gateways accessing the OCS and the number of bearers activated by all terminals connected to each gateway;
a first calculating unit, configured to calculate, according to an average consumption speed of a first bearer on a traffic quota, a number of bearers activated by all terminals connected to the gateway, a number of gateways accessing the OCS, a sum of numbers of bearers activated by all terminals connected to all gateways accessing the OCS, and a signaling message processing capability of the OCS per second, to obtain a traffic quota allocated to the first bearer;
calculating a traffic quota ζ allocated for the first bearer according to the following formula;
Figure FDA0002277164740000031
wherein v' is an average consumption speed of the first bearer on a traffic quota, N is the number of gateways accessing the OCS, and ω isiThe number of activated bearers for all terminals connected to the ith gateway, wherein gamma is smaller than the signaling message processing capability of the OCS per second;
a sending unit, configured to send traffic quota response information to the gateway, where the traffic quota response information includes a traffic quota allocated for the first bearer.
5. The OCS of claim 4,
the traffic quota application information further includes a sum of maximum uplink and downlink transmission rates signed by the first terminal and a core network, and a maximum time delay of the traffic quota response information sent by the OCS, which is obtained by the gateway within a preset time period;
the OCS further comprises:
a second calculating unit, configured to calculate a traffic quota application trigger threshold of the first bearer according to a sum of maximum uplink and downlink transmission rates signed by the first terminal and the core network and a maximum time delay of traffic quota response information sent by the OCS, where the maximum time delay is obtained by the gateway within a preset time period;
the traffic quota response information sent by the sending unit further includes a traffic quota application trigger threshold of the first bearer.
6. The OCS of claim 5,
the second computing unit is specifically configured to:
calculating a traffic quota application trigger threshold η for the first bearer according to the following formula;
η=v*τ;
wherein v is a sum of maximum uplink and downlink transmission rates signed by the first terminal and the core network, and τ is a maximum time delay of the flow quota response information sent by the OCS and obtained by the gateway within the preset time period.
7. A method for adjusting user traffic quota, comprising:
sending flow quota application information corresponding to a first bearer of a first terminal to an Online Charging System (OCS), wherein the flow quota application information comprises the average consumption speed of the first bearer on flow quota and the number of bearers activated by all terminals connected with a gateway;
receiving traffic quota response information sent by the OCS, wherein the traffic quota response information comprises traffic quota allocated to the first bearer;
the flow quota is calculated according to the average consumption speed of the first bearer to the flow quota, the number of bearers activated by all terminals connected with the gateway, the number of gateways accessing the OCS, the sum of the number of bearers activated by all terminals connected with all gateways accessing the OCS, and the signaling message processing capacity of the OCS per second;
calculating a traffic quota ζ allocated to the first bearer according to the following formula;
Figure FDA0002277164740000041
wherein v' is an average consumption speed of the first bearer on a traffic quota, N is the number of gateways accessing the OCS, and ω isiAnd the number of activated bearers for all terminals connected with the ith gateway is less than the signaling message processing capacity of the OCS per second.
8. The method according to claim 7, wherein the traffic quota application information further includes a sum of maximum uplink and downlink transmission rates signed by the first terminal and a core network, and a maximum time delay of the gateway obtaining the traffic quota response information sent by the OCS within a preset time period;
the flow quota response information further includes a flow quota application trigger threshold of the first bearer.
9. A gateway, comprising:
a sending unit, configured to send, to an online charging system OCS, traffic quota application information corresponding to a first bearer of a first terminal, where the traffic quota application information includes an average consumption speed of the first bearer on a traffic quota and a number of bearers activated by all terminals connected to a gateway;
a receiving unit, configured to receive traffic quota response information sent by the OCS, where the traffic quota response information includes a traffic quota allocated for the first bearer;
the flow quota is calculated according to the average consumption speed of the first bearer to the flow quota, the number of bearers activated by all terminals connected with the gateway, the number of gateways accessing the OCS, the sum of the number of bearers activated by all terminals connected with all gateways accessing the OCS, and the signaling message processing capacity of the OCS per second;
calculating a traffic quota ζ allocated to the first bearer according to the following formula;
Figure FDA0002277164740000051
wherein v' is an average consumption speed of the first bearer on a traffic quota, N is the number of gateways accessing the OCS, and ω isiAnd the number of activated bearers for all terminals connected with the ith gateway is less than the signaling message processing capacity of the OCS per second.
10. The gateway according to claim 9, wherein the traffic quota application information further includes a sum of maximum uplink and downlink transmission rates signed by the first terminal and a core network, and a maximum time delay of the gateway obtaining the traffic quota response information sent by the OCS within a preset time period;
the flow quota response information further includes a flow quota application trigger threshold of the first bearer.
CN201610077175.1A 2016-02-02 2016-02-02 Method for adjusting user flow quota, online charging system and gateway Active CN107027109B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610077175.1A CN107027109B (en) 2016-02-02 2016-02-02 Method for adjusting user flow quota, online charging system and gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610077175.1A CN107027109B (en) 2016-02-02 2016-02-02 Method for adjusting user flow quota, online charging system and gateway

Publications (2)

Publication Number Publication Date
CN107027109A CN107027109A (en) 2017-08-08
CN107027109B true CN107027109B (en) 2020-03-17

Family

ID=59524007

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610077175.1A Active CN107027109B (en) 2016-02-02 2016-02-02 Method for adjusting user flow quota, online charging system and gateway

Country Status (1)

Country Link
CN (1) CN107027109B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11949524B2 (en) * 2017-12-21 2024-04-02 Telefonaktiebolaget Lm Ericsson (Publ) Methods and systems for automated quota determination based on resource selection in online charging systems
CN111356103B (en) * 2018-12-21 2021-08-31 中国移动通信集团山西有限公司 Flow quota distribution method and device, server and computer storage medium
CN110519336A (en) * 2019-08-01 2019-11-29 北京浪潮数据技术有限公司 Distributed memory system quota state updating method and distributed memory system
CN111314869B (en) * 2020-02-18 2021-06-29 中国联合网络通信集团有限公司 Flow quota distribution method and device, electronic equipment and storage medium
CN113068277B (en) * 2021-03-18 2022-07-26 国网浙江省电力有限公司宁波供电公司 Power system communication gateway based on 5G module

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101783846A (en) * 2009-01-15 2010-07-21 中兴通讯股份有限公司 Charging service processing method and charging gateway
CN102612086A (en) * 2012-04-06 2012-07-25 华为技术有限公司 Method, device and system for authorizing data service flow of terminal
CN103929316A (en) * 2013-01-11 2014-07-16 阿尔卡特朗讯 Communication quota distribution method and corresponding on-line billing system
CN103974221A (en) * 2013-01-25 2014-08-06 中国移动通信集团广东有限公司 Method and device for distributing packet domain real-time charging flow quotas

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101783846A (en) * 2009-01-15 2010-07-21 中兴通讯股份有限公司 Charging service processing method and charging gateway
CN102612086A (en) * 2012-04-06 2012-07-25 华为技术有限公司 Method, device and system for authorizing data service flow of terminal
CN103929316A (en) * 2013-01-11 2014-07-16 阿尔卡特朗讯 Communication quota distribution method and corresponding on-line billing system
CN103974221A (en) * 2013-01-25 2014-08-06 中国移动通信集团广东有限公司 Method and device for distributing packet domain real-time charging flow quotas

Also Published As

Publication number Publication date
CN107027109A (en) 2017-08-08

Similar Documents

Publication Publication Date Title
CN107027109B (en) Method for adjusting user flow quota, online charging system and gateway
US10715680B2 (en) Charging method and device involved in a protocol data unit (PDU) session
US9357359B2 (en) Dynamic quality of service (QoS) for services over cellular
US8200236B2 (en) Method and apparatus for triggering a state change for a communication device
EP2628332B1 (en) Method and computer program for quality of service adjustments to improve network utilization
US10674330B2 (en) Charging method and device
JP6468502B2 (en) Billing session management method and apparatus
EP3162138B1 (en) Guaranteed download time
KR102055198B1 (en) Recording medium recording program for method of providing augmented reality contents during video call service, and apparatus teherfor
WO2011026440A1 (en) Method, device and communication system for processing group policy and charging rules
US20160373590A1 (en) Method, system and apparatus for adaptive quota determination for shared resources
RU2751096C1 (en) Method and a device for data distribution as well as a storage medium and a corresponding system
WO2022156752A1 (en) Data transmission method, terminal and network side device
CN105493533B (en) Online charging method, gateway equipment and online charging equipment
US9397908B2 (en) Method, apparatus, and system for acquiring quality of service QoS control information
CN101540719A (en) Method and equipment for re-locating serving gateway
WO2017101121A1 (en) Method and device for signaling transport, data transmission, and establishing gtp tunnel
CN110048861B (en) Service data stream processing method and related equipment thereof
CN109565615B (en) Mobile video optimization
CN108616833B (en) Method, device and system for processing PCC conversation, PGW and PCRF
TW560214B (en) Quality of service
CN108270578B (en) Session-related network capability API charging method and device
US9049590B1 (en) Communication usage control for a group of users
EP3177067B1 (en) Network controller, system, and method for resource allocation
EP2925074B1 (en) Application aware communication system

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
GR01 Patent grant
GR01 Patent grant