WO2016107374A1 - Bandwidth control method, apparatus and system - Google Patents

Bandwidth control method, apparatus and system Download PDF

Info

Publication number
WO2016107374A1
WO2016107374A1 PCT/CN2015/096439 CN2015096439W WO2016107374A1 WO 2016107374 A1 WO2016107374 A1 WO 2016107374A1 CN 2015096439 W CN2015096439 W CN 2015096439W WO 2016107374 A1 WO2016107374 A1 WO 2016107374A1
Authority
WO
WIPO (PCT)
Prior art keywords
group
bandwidth
notification message
online
traffic
Prior art date
Application number
PCT/CN2015/096439
Other languages
French (fr)
Chinese (zh)
Inventor
毛钱永
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2016107374A1 publication Critical patent/WO2016107374A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, device, and system for bandwidth control.
  • the Traffic Monitoring System of the 3rd Generation Partnership Project (3GPP) includes Policy and Charging Enforcement Function (PCEF) entity, Policy and Charging Rule Function (PCRF). ) Entity and Online Charging System (OCS).
  • PCEF Policy and Charging Enforcement Function
  • PCF Policy and Charging Rule Function
  • OCS Online Charging System
  • the PCEF When the user uses the data service, the PCEF first applies for the available bandwidth to the PCRF.
  • the PCRF obtains the bandwidth reference factor level from the OCS, calculates the bandwidth according to the level, and returns the bandwidth to the PCEF.
  • the PCEF reports the charging request to the OCS completion fee. Reserved and deducted.
  • the OCS monitors the counter-level change corresponding to the counter-ID it will send the updated Counter-Level to the PCRF entity through the Spending-Notification-Request (SNR) message, instructing it to recalculate the bandwidth and A Re-Authentication Request (RAR) message is sent to the PCEF for bandwidth control re-authentication.
  • SNR Spending-Notification-Request
  • RAR Re-Authentication Request
  • the OCS needs to use the group.
  • Each user in the middle sends an Expiration Notification SNR message to the PCRF entity.
  • the PCRF entity sends a RAR message to the PCEF entity for each user in the group, which causes a large increase in the SNR request message and the RAR message, resulting in a large occupation of system resources.
  • the embodiment of the invention provides a method for bandwidth control, which can reduce the number of notification messages between the OCS and the PCRF when the bandwidth usage policy of the group user changes, thereby improving the utilization of system resources.
  • the embodiments of the present invention also provide corresponding devices and systems.
  • a first aspect of the present invention provides a method for bandwidth control, where the method is applied to an online charging system OCS of a traffic monitoring system, where the traffic monitoring system further includes a policy and charging execution function PCEF entity and a policy and charging rule function.
  • PCRF entity the method comprising:
  • the notification message carries the identifiers of all the online users and the indication information that the total usage of the group exceeds a preset threshold.
  • the total traffic usage of the group is obtained. Also includes:
  • the notification message is an SNR message.
  • a second aspect of the present invention provides a method for bandwidth control, the method being applied to a policy and charging rule function PCRF entity of a traffic monitoring system, the traffic monitoring system further comprising a policy and charging execution function PCEF entity and online charging System OCS, the method includes:
  • the determining, according to the indication information, the adjusted bandwidth corresponding to the all online users includes:
  • the second notification message is a RAR message.
  • a third aspect of the present invention provides a method for bandwidth control, which is applied to an online charging system OCS of a traffic monitoring system, where the traffic monitoring system further includes a policy and charging execution function PCEF entity and a policy and charging rule function.
  • PCRF entity the method comprising:
  • a notification message is sent to the PCRF entity, and the notification message corresponding to each packet carries a bandwidth level corresponding to each packet, and an identifier of the online user in each packet.
  • the acquiring at least one bandwidth level corresponding to the preset threshold, and the group and the location The identifier of the online user corresponding to the at least one bandwidth level, including:
  • a fourth aspect of the present invention provides a method for bandwidth control, the method being applied to a traffic monitoring system
  • the policy and charging rule function is a PCRF entity
  • the traffic monitoring system further includes a policy and charging execution function PCEF entity and an online charging system OCS, the method comprising:
  • a fifth aspect of the present invention provides a bandwidth control apparatus, where the apparatus is applied to an online charging system OCS of a traffic monitoring system, and the traffic monitoring system further includes a policy and charging execution function PCEF entity and a policy and charging rule function.
  • PCRF entity the device comprising:
  • a first acquiring unit configured to acquire, according to the usage amount of the group traffic of the data service of the user in the group reported by the PCEF entity, the total traffic usage of the group;
  • a second acquiring unit configured to acquire, when the total usage of the traffic of the group acquired by the first acquiring unit exceeds a preset threshold, an identifier of all online users in the group;
  • a sending unit configured to send, to the PCRF entity, a notification message, where the notification message carries an indication that the identifiers of all online users acquired by the second acquiring unit and the total usage of the group exceed a preset threshold information.
  • the device further includes:
  • a receiving unit configured to receive, by the first acquiring unit, the credit reported by the PCEF before acquiring the total traffic usage of the group according to the usage of the data traffic of the data service of the user in the group reported by the PCEF entity And controlling the request message, where the credit control request message carries the usage of the group service traffic of the data service of a user in the group.
  • a sixth aspect of the present invention provides a bandwidth control apparatus, where the apparatus is applied to a policy and charging rule function PCRF entity of a traffic monitoring system, and the traffic monitoring system further includes a policy and charging execution function PCEF entity and online charging.
  • System OCS the device includes:
  • a receiving unit configured to receive a first notification message that is sent by the OCS, where the first notification message carries an identifier of all online users in the group, and an indication that a total usage of the group exceeds a preset threshold information;
  • a determining unit configured to determine, according to the indication information received by the receiving unit, an adjusted bandwidth corresponding to all online users
  • a sending unit configured to send a second notification message to the PCEF entity, where the second notification message carries the identifiers of all online users and the adjusted bandwidth determined by the determining unit.
  • the determining unit is specifically configured to search for a bandwidth adjustment rule corresponding to the group according to the indication information, and determine an adjusted bandwidth corresponding to all online users in the group.
  • a seventh aspect of the present invention provides a bandwidth control apparatus, where the apparatus is applied to an online charging system OCS of a traffic monitoring system, and the traffic monitoring system further includes a policy and charging execution function PCEF entity and a policy and charging rule function.
  • PCRF entity the device comprising:
  • a first acquiring unit configured to acquire, according to the usage amount of the group traffic of the data service of the user in the group reported by the PCEF entity, the total traffic usage of the group;
  • a second acquiring unit configured to acquire at least one bandwidth level corresponding to the preset threshold, and the group when the total traffic usage of the group acquired by the first acquiring unit exceeds a preset threshold
  • a sending unit configured to send, to the PCRF entity, a notification message, where the notification message carries the at least one bandwidth level acquired by the second acquiring unit, and corresponding to the at least one bandwidth level in the group respectively The identity of the online user.
  • the device further includes:
  • a grouping unit configured to divide an identifier of an online user in the group according to the bandwidth level group
  • the sending unit is configured to send, to the PCRF entity, a notification message for each packet that is divided by the packet unit, where the notification message corresponding to each packet carries a bandwidth level corresponding to each packet, and The identity of the online user in each group.
  • the second acquiring unit is configured to obtain at least one bandwidth level corresponding to the preset threshold, and obtain the at least one bandwidth level in the group, respectively, from a correspondence between a traffic threshold and a bandwidth level. And corresponding identifiers of the online users corresponding to the at least one bandwidth level in the group are obtained according to the pre-recorded state of the user in the group.
  • An eighth aspect of the present invention provides a bandwidth control apparatus, where the apparatus is applied to a policy and charging rule function PCRF entity of a traffic monitoring system, and the traffic monitoring system further includes a policy and charging execution function PCEF entity and online charging.
  • System OCS the device includes:
  • a receiving unit configured to receive a first notification message that is sent by the OCS, where the first notification message carries at least one bandwidth level and an identifier of an online user corresponding to the at least one bandwidth level in the group;
  • a determining unit configured to determine a bandwidth respectively corresponding to the at least one bandwidth level received by the receiving unit
  • a sending unit configured to send, to the PCEF entity, a second notification message, where the second notification message carries a bandwidth corresponding to the at least one bandwidth level determined by the determining unit, and the at least one of the group and the at least one The identifier of an online user corresponding to a bandwidth level.
  • the apparatus further includes:
  • a grouping unit configured to group identifiers of online users in the group according to the bandwidth level
  • the sending unit is configured to: send, for each packet, a second notification message corresponding to each of the packets to the PCEF entity, where the second notification message corresponding to each packet carries the each packet The bandwidth corresponding to the bandwidth level and the identity of the online user in each of the packets.
  • a ninth aspect of the present invention provides a traffic monitoring system, including: an online charging system OCS, a policy and charging execution function PCEF entity, and a policy and charging rule function PCRF entity.
  • the OCS is used to:
  • the PCRF entity is used to:
  • a tenth aspect of the present invention provides a traffic monitoring system, including: an online charging system OCS, a policy and charging execution function PCEF entity, and a policy and charging rule function PCRF entity.
  • the OCS is used to:
  • the PCRF entity is used to:
  • the bandwidth control method can reduce the number of notification messages between the OCS and the PCRF when the bandwidth usage policy of the group user changes, thereby improving the utilization of system resources.
  • FIG. 1 is a schematic diagram of an embodiment of a traffic monitoring system according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of an embodiment of a method for bandwidth control in an embodiment of the present invention
  • FIG. 3 is a schematic diagram of another embodiment of a method for bandwidth control in an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of another embodiment of a method for bandwidth control in an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of another embodiment of a method for bandwidth control according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of another embodiment of a method for bandwidth control in an embodiment of the present invention.
  • FIG. 7A is a schematic diagram of another embodiment of a method for bandwidth control in an embodiment of the present invention.
  • FIG. 7B is a schematic diagram of another embodiment of a method for bandwidth control according to an embodiment of the present invention.
  • FIG. 7C is a schematic diagram of another embodiment of a method for bandwidth control in an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of another embodiment of a method for bandwidth control according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of another embodiment of a method for bandwidth control according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of an embodiment of a device for bandwidth control according to an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of an embodiment of a device for bandwidth control according to an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of another embodiment of an apparatus for bandwidth control according to an embodiment of the present invention.
  • FIG. 13 is a schematic diagram of another embodiment of an apparatus for bandwidth control according to an embodiment of the present invention.
  • FIG. 14 is a schematic diagram of an embodiment of a device for bandwidth control according to an embodiment of the present invention.
  • FIG. 15 is a schematic diagram of another embodiment of an apparatus for bandwidth control according to an embodiment of the present invention.
  • 16 is a schematic diagram of another embodiment of an apparatus for bandwidth control according to an embodiment of the present invention.
  • FIG. 17 is a schematic diagram of another embodiment of an apparatus for bandwidth control according to an embodiment of the present invention.
  • FIG. 18 is a schematic diagram of another embodiment of an apparatus for bandwidth control according to an embodiment of the present invention.
  • FIG. 19 is a schematic diagram of another embodiment of a traffic monitoring system according to an embodiment of the present invention.
  • the embodiment of the invention provides a method for bandwidth control, which can reduce the number of notification messages between the OCS and the PCRF when the bandwidth usage policy of the group user changes, thereby improving the utilization of system resources.
  • the embodiments of the present invention also provide corresponding devices and systems. The details are described below separately.
  • an embodiment of a traffic monitoring system includes: an online charging system OCS, a policy and charging execution function PCEF entity, and a policy and charging rule function PCRF entity, and a PCRF entity and an OCS are adopted.
  • the Sy interface communicates between the PCEF entity and the PCRF entity through the Gx interface.
  • the PCEF entity communicates with the OCS through the Gy interface.
  • the PCEF entity first applies for the available bandwidth to the PCRF through the Gx interface; the PCRF passes the Sy.
  • the interface obtains a bandwidth reference factor from the OCS, such as a counter-count and a counter-level, and calculates a bandwidth that the user can use, for example, 2 Mbps or 1 Mbps, and then The user-usable bandwidth is returned to the PCEF entity.
  • the PCEF entity allocates bandwidth to the user according to the bandwidth that the user can use.
  • the PCEF entity reports the charging request to the OCS to complete the reservation and deduction of the cost through the Gy interface.
  • the notification message may be a payment notification request (Spending-Notification-Request, SNR) message
  • the first notification message may be an SNR message
  • the second notification message may be a re-authentication request (RAR) ) message.
  • SNR message and the RAR message may be other notification messages in the existing protocol, which are not specifically limited in the embodiment of the present invention.
  • the notification message is an SNR message
  • the first notification message is an SNR message
  • the second notification message is an RAR message.
  • the group in the embodiment of the present invention may be a group user, for example, an enterprise user.
  • the bandwidth for the users in the group may change the usage of the bandwidth due to the change in the total amount of traffic usage. For example, if a company has a total of 1000 people, the corporate legal person A applies for 100G to the telecom operator. The traffic is used every month for the daily work of the employees. But in order to prevent To exceed the total usage of the business, it is required to reduce the bandwidth after the total usage of the traffic reaches 80% this month. Before the total usage of the traffic reaches 80% this month, the bandwidth is 2Mbps. When the total usage of the traffic reaches 80% this month. After that, when the remaining 20G, the bandwidth becomes 1Mbps. After exhaustion, the operator can provide free but lower bandwidth 512kbps for employees in the enterprise.
  • the bandwidth of the employee B0 needs to be modified, and the bandwidth of all other online employees needs to be modified. Assuming all online employees (B0, B1, B2, B3, ... Bn) are 800, OCS needs to send payment notifications to the PCRF entity for all online employees (B0, B1, B2, B3, ... Bn) 800 people. Requesting a (Spending-Notification-Request, SNR) message, and then sending a Re-Authentication Request (RAR) message to the PCEF entity by the PCRF entity for all online employees (B0, B1, B2, B3, ... Bn) Then, the PCEF entity modifies the bandwidth of all online employees.
  • SNR SNR
  • RAR Re-Authentication Request
  • the method for delivering the SNR message and the RAR message in the scenario of the group user can be understood as:
  • the identifier of the online user in the extended parameter group is added in the SNR/RAR message, and the identifier of the online user in the group is used to uniquely identify the user terminal under the shared counter.
  • the shared counter means that the users in the group share a Counter-ID, and the identifier of the online user in the group may be a session identifier (SessionID), a mobile subscriber international number (Mobile Subscriber International ISDN/PSTN number, MSISDN), and an international mobile subscriber identity code.
  • the OCS can notify the PCRF entity by sending the identifier of the online user in the group, or the PCRF can also send the RAR message to the PCEF entity in the RAR message.
  • the identifier of the online user in the group is carried, so that the PCRF entity determines the bandwidth usage of all online users in the group when determining the bandwidth usage policy, and the PCEF entity updates all online users in the group when updating the bandwidth policy. Information. This ensures that the SNR message and the RAR message between the PCRF and the OCS and the PCEF and the PCRF are reduced.
  • the SNR message and the RAR message are not required to be sent to each user in the group, thereby greatly reducing the SNR message and the RAR message, and improving the utilization of system resources. In particular, the utilization of network bandwidth resources and CPU resources is improved.
  • FIG. 2 is a schematic diagram of an embodiment of a method for bandwidth control:
  • CCR charging control request
  • the OCS deducts the fee according to the usage of the traffic, and reserves, and calculates a new CounterLevel of the CounterID.
  • the CounterID is a bandwidth.
  • step S115 If the CounterLevel calculated in step S105 is changed, and the group of the group is a shared counter, it is necessary to find the SessionID of all other users sharing the Counter, and then send an SNR message to the PCRF. At the same time, the SNR request carries the SessionID of other users.
  • the bandwidth policy of the current user is not only executed, but also the bandwidth decision of other users is required.
  • the PCRF sends a Payment Notification Acknowledge (SNA) message to the OCS after the decision.
  • SNA Payment Notification Acknowledge
  • the PCRF needs to instruct the PCEF to perform bandwidth control after the decision, and the PCRF sends a RAR request to the PCEF for the same bandwidth usage policy caused by the same SNR request, and carries the SessionID of all online users in the RAR. The corresponding bandwidth.
  • the PCEF performs the indication of the PCRF, and not only needs to execute the wide usage policy rule of the current session, but also needs to extract the associated SessionID to update the wide usage policy of other online users in the group.
  • a PCEF Re-Authentication Acknowledge (RAA) message is sent to the PCRF.
  • RAA PCEF Re-Authentication Acknowledge
  • an SNR message and an RAR message are not required to be sent to each user in the group, thereby greatly reducing SNR messages and RAR messages, and improving system resources. Utilization rate.
  • the SNR message is not limited to only one SNR message.
  • the session ID of the online user in the group may be divided into groups according to the number of online users in the group, and then the SNR corresponding to the number of packets is sent. For example, when a group has 800 people online, you can divide the SessionID of 800 online users into 8 groups, each group has 100 SessionIDs, then the OCS only needs to send 8 SNR messages, thus avoiding SNR messages. Large, causing problems with transmission anomalies.
  • the message parameter extension is concentrated on the SNR message of the Sy interface and the RAR cancellation of the Gx.
  • the SNR message and the RAR message respectively extend the parameter of the online user's identity in the group.
  • the processing logic on each network element side is defined as follows:
  • the application logic on the OCS side may include the following steps for the extension of step S115, as shown in FIG. 3:
  • step S115-1 When the SessionID0 of the session is initiated, the CounterLevel is changed.
  • the OCS checks whether the package of the group to which the user belongs is a shared counter. When it is the shared counter, step S115-2 is performed. When the Counter is shared, step S115-7 is performed.
  • S115-2 Query the session identifiers (SessionID1 to SessionIDn) of other online users sharing the Counter.
  • the embodiment of the present invention is not limited to the SessionID, and may also be an MSISDN or an IMSI.
  • step S115-3 It is confirmed whether the number of SessionIDs of all online users is greater than 1. If it is greater than 1, step S115-4 is performed, and if it is not greater than 1, step S115-7 is performed.
  • S115-4 Determine whether the number of SessionIDs of all online users is greater than N. If it is greater than N, perform step S115-5. If it is not greater than N, perform step S115-6.
  • S115-5 in units of N, splits the number of all online SessionIDs into multiple groups.
  • N-1 in addition to setting a primary SessionID in each SNR, N-1 associated SessionIDs are set.
  • the principle in N is the same as above.
  • S115-6 Set N SessionIDs in each SNR message.
  • the method for bandwidth control provided by the embodiment of the present invention can reduce the number of SNR messages between the OCS and the PCRF when the bandwidth usage policy of the group user changes, thereby improving the utilization of system resources.
  • the application logic on the PCRF side may include the following steps for the extension of step S120, as shown in FIG. 4:
  • S120-2 Analyze the number of SessionIDs in the SNR. When the SessionID is greater than 1, perform steps. S120-3, if it is not greater than 1, step S125 is performed.
  • the bandwidth usage policy may include a quality of service (QoS), that is, a value of available bandwidth.
  • QoS quality of service
  • the PCRF sends a Payment Notification Acknowledge (SNA) message to the OCS after the decision.
  • SNA Payment Notification Acknowledge
  • step S130 the processing logic for the identification of all online users in the group when transmitting the RAR message to the PCEF is as shown in FIG. 5 for the extension of step S130:
  • S130-1 and the PCRF obtain the bandwidth usage policy of all the SessionIDs.
  • step S130-2 Determine whether only one session session needs to be updated this time. If there is not only one, step S130-3 is performed, and if only one needs to be updated, step S130-8 is performed.
  • step S130-4 Determine whether the number of SessionIDs in each group is greater than 1. If it is greater than 1, step S130-5 is performed, and if it is not greater than 1, step S130-8 is performed.
  • S130-5 Determine whether the number of SessionIDs in each packet is greater than N. If it is greater than N, perform step S130-6.
  • S130-6 in units of N, splits the number of all online SessionIDs into multiple groups.
  • S130-7 Set N SessionIDs and corresponding bandwidth usage policies in each RAR message.
  • the method for bandwidth control provided by the embodiment of the present invention can reduce the number of RAR messages between the PCRF and the PCEF when the bandwidth usage policy of the group user changes, thereby improving the utilization of system resources.
  • step S1335 the processing logic for all online users in the group is extended for step S135, as shown in FIG. 6:
  • S135-1 Perform a bandwidth usage policy of the session (SessionID0).
  • step S135-2 Analyze the number of SessionIDs in the RAR. When the SessionID is greater than 1, step S135-3 is performed. If it is not greater than 1, step S140 is performed.
  • a PCEF Re-Authentication Acknowledge (RAA) message is sent to the PCRF.
  • RAA PCEF Re-Authentication Acknowledge
  • a method for bandwidth control provided by an embodiment of the present invention includes:
  • the S200 and the PCEF entity report a charging control request (CCR) to the OCS, and the CCR message can carry the usage of the traffic.
  • CCR charging control request
  • the OCS deducts the fee according to the usage of the traffic, and reserves, and obtains the total traffic usage of the group.
  • the OCS sends an SNR message to the PCRF, and the SNR request carries the identifiers of all online users and the indication that the total usage of the group exceeds a preset threshold.
  • the total usage of the traffic is carried in the SNR message, and the bandwidth is determined by the PCRF according to the total usage of the traffic. For example, the total usage is 80 G, and the corresponding bandwidth is 1 Mbps.
  • S220 and PCRF perform bandwidth decision.
  • the PCRF may determine the corresponding bandwidth according to the indication information that the total usage exceeds the preset threshold. For example, when the indication information is 1, the corresponding bandwidth is determined to be 2 Mbps, and when the indication information is 2, the corresponding bandwidth is determined to be 1 Mbps.
  • S225 The PCRF sends a Payment Notification Acknowledge (SNA) message to the OCS after the decision.
  • SNA Payment Notification Acknowledge
  • the PCRF needs to instruct the PCEF to perform bandwidth control after the decision, and the PCRF sends a RAR request to the PCEF for the same bandwidth usage policy caused by the same SNR request, and carries the session ID of all online users in the RAR. The corresponding bandwidth.
  • the PCEF performs the indication of the PCRF, and not only needs to execute the wide usage policy rule of the current session, but also needs to extract the associated SessionID to update the wide usage policy of other online users in the group.
  • a PCEF Re-Authentication Acknowledge (RAA) message is sent to the PCRF.
  • RAA PCEF Re-Authentication Acknowledge
  • an SNR message and an RAR message are not required to be sent to each user in the group, thereby greatly reducing SNR messages and RAR messages, and improving system resources. Utilization rate.
  • a method for bandwidth control is applied to a traffic monitoring system.
  • the online charging system OCS the traffic monitoring system further includes a policy and charging execution function PCEF entity and a policy and charging rule function PCRF entity, the method comprising:
  • the bandwidth control method provided by the embodiment of the present invention can reduce the number of notification messages between the OCS and the PCRF when the bandwidth usage policy of the group user changes, thereby improving the utilization of system resources.
  • a data service pair of a user in the group reported by the PCEF entity may also include:
  • the notification message is an SNR message, on the basis of the foregoing embodiment or the optional embodiment.
  • a method for bandwidth control is applied to a policy and charging rule function PCRF entity of a traffic monitoring system, where the traffic monitoring system further includes a policy and charging execution function PCEF entity and an online charging system.
  • the method includes:
  • the usage or subscription trigger of a user in the group reaches the condition that the bandwidth policy needs to be changed, then a RAR message needs to be sent to each user in the group.
  • the RAR message is greatly increased.
  • the number of notification messages between the PCRF and the PCEF can be reduced when the bandwidth usage policy of the group user changes, thereby improving the system. Utilization of resources.
  • the determining, according to the indication information, determining the adjusted bandwidth corresponding to all online users can include:
  • the second notification message is a RAR message, on the basis of the foregoing embodiment or the optional embodiment.
  • a method for bandwidth control is applied to an online charging system OCS of a traffic monitoring system, where the traffic monitoring system further includes a policy and charging execution function PCEF entity and a policy and charging rule function PCRF.
  • the method can include:
  • the process of obtaining the total traffic usage of the group may be calculated by adding the reported group traffic to the used group traffic.
  • the preset threshold in the embodiment of the present invention is usually a percentage, for example, 80%. For example, when the total usage of the traffic exceeds 80% of the predetermined total amount, the identifiers of all online users in the group are obtained and described. At least one bandwidth level corresponding to the preset threshold.
  • the preset threshold may have one or more, and the bandwidth level corresponding to each threshold may also have at least one.
  • the preset threshold can be a percentage or a specific value of the total usage of the traffic, such as a threshold of 80G instead of a percentage.
  • bandwidth level 1 corresponds to 2 Mbps bandwidth
  • bandwidth level 2 corresponds to 1 M bps bandwidth
  • the bandwidth level can be represented by 1, 2, etc.
  • the method for bandwidth control provided by the embodiment of the present invention is applied to an online charging system OCS of a traffic monitoring system, where the traffic monitoring system further includes a policy and charging execution function PCEF entity and a policy and charging rule function PCRF entity,
  • the method includes: acquiring, according to the usage of the group traffic by the data service of a user in the group reported by the PCEF entity, the total traffic usage of the group; and when the total traffic usage of the group exceeds the preset At the threshold, acquiring at least one bandwidth level corresponding to the preset threshold, and an identifier of the online user corresponding to the at least one bandwidth level in the group; sending a notification message to the PCRF entity, the notification The message carries the at least one bandwidth level and an identifier of the online user corresponding to the at least one bandwidth level in the group.
  • the bandwidth control method can reduce the number of notification messages between the OCS and the PCRF when the bandwidth usage policy of the group user changes, thereby improving the utilization of system resources.
  • the notification message carries the at least one bandwidth level
  • the group Before the identifier of the online user corresponding to the at least one bandwidth level in the group, the method further includes:
  • a notification message is sent to the PCRF entity, and the notification message corresponding to each packet carries a bandwidth level corresponding to each packet, and an identifier of the online user in each packet.
  • the identifiers of all online users are split, so that the SNR message is too large, and the transmission fails.
  • the acquiring at least one corresponding to the preset threshold is performed on the basis of the foregoing embodiment or the optional embodiment of FIG.
  • the identifier of the online user corresponding to the at least one bandwidth level in the group may include:
  • At least one bandwidth level may be included in a policy, and each bandwidth level may have a corresponding user group, and then the identifier of the online user corresponding to each bandwidth level may be determined according to the online state of the user. .
  • the method for controlling the bandwidth provided by the embodiment or the optional embodiment of the present invention can be understood by referring to the description in the parts of FIG. 1 to FIG. 6 , and no further description is provided herein.
  • a method for bandwidth control is applied to a policy and charging rule function PCRF entity of a traffic monitoring system, where the traffic monitoring system further includes a policy and charging execution function PCEF entity and an online charging system.
  • the method includes:
  • the bandwidth control method provided by the embodiment of the present invention is applied to a policy and charging rule function PCRF entity of a traffic monitoring system, where the traffic monitoring system further includes a policy and charging execution function PCEF entity and an online charging system OCS,
  • the method includes: receiving a first notification message sent by the OCS, where the first notification message carries at least one bandwidth level and an identifier of an online user corresponding to the at least one bandwidth level in the group; determining and at least a bandwidth corresponding to a bandwidth level; sending a second notification message to the PCEF entity, where the second notification message carries a bandwidth corresponding to the at least one bandwidth level and the at least one bandwidth level in the group Corresponding online user IDs.
  • the bandwidth control method can reduce the number of notification messages between the PCRF and the PCEF when the bandwidth usage policy of the group user changes, thereby improving the utilization of system resources.
  • the bandwidth control provided by the embodiment of the present invention is provided on the basis of the foregoing embodiment corresponding to FIG.
  • the sending, by the PCEF entity, a second notification message, where the second notification message carries a bandwidth corresponding to the at least one bandwidth level and the at least one of the group and the at least one Before the identifier of the online user corresponding to the bandwidth level the method may further include:
  • the method for controlling the bandwidth provided by the embodiment or the optional embodiment of the present invention can be understood by referring to the description in the parts of FIG. 1 to FIG. 6 , and no further description is made herein.
  • the bandwidth control apparatus 50 provided by the embodiment of the present invention is applied to an online charging system OCS of a traffic monitoring system, and the traffic monitoring system further includes a policy and charging execution function PCEF entity and a policy and charging rule function.
  • the PCRF entity, the device 50 includes:
  • the first obtaining unit 511 is configured to acquire, according to the usage amount of the group traffic of the data service of the user in the group reported by the PCEF entity, the total traffic usage of the group;
  • the second obtaining unit 512 is configured to acquire, when the total usage of the traffic of the group acquired by the first acquiring unit 511 exceeds a preset threshold, an identifier of all online users in the group;
  • the sending unit 513 is configured to send a notification message to the PCRF entity, where the identifier of the all online users that is acquired by the second acquiring unit 512 and the total usage of the group exceed a preset threshold. Instructions.
  • the bandwidth control device provided by the embodiment of the present invention can reduce the number of notification messages between the OCS and the PCRF when the bandwidth usage policy of the group user changes, thereby improving the utilization of system resources.
  • the apparatus 50 further includes:
  • the receiving unit 514 is configured to receive the PCEF report before the first acquiring unit 511 obtains the total traffic usage of the group according to the usage of the group traffic by the data service of the user in the group reported by the PCEF entity. Credit control request message, the credit control request message carrying a user in the group The amount of data traffic used by the group traffic.
  • a bandwidth control apparatus 60 is applied to a policy and charging rule function PCRF entity of a traffic monitoring system, where the traffic monitoring system further includes a policy and charging execution function PCEF entity and an online charging system.
  • the device 60 includes:
  • the receiving unit 611 is configured to receive a first notification message that is sent by the OCS, where the first notification message carries an identifier of all online users in the group, and a total usage of the group exceeds a preset threshold. Indication information;
  • a determining unit 612 configured to determine, according to the indication information received by the receiving unit 611, an adjusted bandwidth corresponding to all online users;
  • the sending unit 613 is configured to send a second notification message to the PCEF entity, where the second notification message carries the identifiers of all online users and the adjusted bandwidth determined by the determining unit 612.
  • the device for bandwidth control provided by the embodiment of the present invention can reduce the number of notification messages between the PCRF and the PCEF when the bandwidth usage policy of the group user changes, thereby improving the utilization of system resources.
  • the determining unit 612 is specifically configured to search for a bandwidth adjustment rule corresponding to the group according to the indication information, and determine an adjusted bandwidth corresponding to all online users in the group.
  • the bandwidth control apparatus 50 provided by the embodiment of the present invention is applied to an online charging system OCS of a traffic monitoring system, and the traffic monitoring system further includes a policy and charging execution function PCEF entity and a policy and charging rule function.
  • the PCRF entity, the device 50 includes:
  • the first obtaining unit 501 is configured to acquire, according to the usage amount of the group traffic of the data service of the user in the group reported by the PCEF entity, the total traffic usage of the group;
  • the second obtaining unit 502 is configured to acquire, when the total usage of the traffic of the group acquired by the first acquiring unit 501 exceeds a preset threshold, at least one bandwidth level corresponding to the preset threshold, and the An identifier of an online user corresponding to the at least one bandwidth level in the group;
  • the sending unit 503 is configured to send a notification message to the PCRF entity, where the notification message is carried in the notification message.
  • the bandwidth control device 50 provided by the embodiment of the present invention is applied to an online charging system OCS of a traffic monitoring system, where the traffic monitoring system further includes a policy and charging execution function PCEF entity and a policy and charging rule function PCRF entity.
  • the device 50 includes: a first obtaining unit 501, configured to acquire, according to the usage amount of the group traffic of the data service of a user in the group reported by the PCEF entity, the total traffic usage of the group;
  • the unit 502 is configured to acquire, when the total usage of the traffic of the group acquired by the first acquiring unit 501 exceeds a preset threshold, at least one bandwidth level corresponding to the preset threshold, and in the group And an identifier of the online user corresponding to the at least one bandwidth level;
  • the sending unit 503 is configured to send a notification message to the PCRF entity, where the notification message carries the at least one bandwidth acquired by the second obtaining unit 502 a level and an identifier of the online user corresponding to the at least one bandwidth level in the group, and
  • a grouping unit 504 configured to group identifiers of online users in the group according to the bandwidth level
  • the sending unit 503 is specifically configured to send, to the PCRF entity, a notification message for each packet that is divided by the grouping unit 504, where the notification message corresponding to each packet carries a bandwidth level corresponding to each packet. And an identification of the online user in each of the groups.
  • the second obtaining unit 502 is configured to acquire at least one bandwidth level corresponding to the preset threshold, and obtain the at least one bandwidth level in the group, and the corresponding relationship between the traffic threshold and the bandwidth level. Corresponding user identifiers are obtained; and the identifiers of the online users corresponding to the at least one bandwidth level in the group are obtained according to the pre-recorded state of the user in the group.
  • the device for controlling the bandwidth provided by the embodiment or the optional embodiment of the present invention can be understood by referring to the description in the parts of FIG. 1 to FIG. 6 , and no further description is made herein.
  • a device 60 for bandwidth control is applied to a traffic monitoring system.
  • the policy and charging rule function is a PCRF entity.
  • the traffic monitoring system further includes a policy and charging execution function PCEF entity and an online charging system OCS.
  • the device 60 includes:
  • the receiving unit 601 is configured to receive a first notification message that is sent by the OCS, where the first notification message carries at least one bandwidth level and an identifier of an online user corresponding to the at least one bandwidth level in the group respectively;
  • a determining unit 602 configured to determine a bandwidth respectively corresponding to the at least one bandwidth level received by the receiving unit 601;
  • the sending unit 603 is configured to send, to the PCEF entity, a second notification message, where the second notification message carries a bandwidth corresponding to the at least one bandwidth level determined by the determining unit 602, and a location and a location in the group The identifier of the online user corresponding to the at least one bandwidth level.
  • the bandwidth control device 60 provided by the embodiment of the present invention is applied to a policy and charging rule function PCRF entity of a traffic monitoring system, where the traffic monitoring system further includes a policy and charging execution function PCEF entity and an online charging system OCS.
  • the device 60 includes: the receiving unit 601 receiving the first notification message sent by the OCS, where the first notification message carries at least one bandwidth level and an identifier of an online user corresponding to the at least one bandwidth level in the group;
  • the determining unit 602 determines a bandwidth respectively corresponding to the at least one bandwidth level received by the receiving unit 601; the sending unit 603 sends a second notification message to the PCEF entity, where the determining unit 602 is carried in the second notification message.
  • the device for bandwidth control provided by the embodiment of the present invention can reduce the number of notification messages between the PCRF and the PCEF when the bandwidth usage policy of the group user changes, thereby improving the utilization of system resources.
  • the apparatus 60 further includes:
  • a grouping unit 604 configured to group identifiers of online users in the group according to the bandwidth level
  • the sending unit 603 is specifically configured to: send, for each packet, a second notification message corresponding to each of the packets to the PCEF entity, where the second notification message corresponding to each packet carries the each The bandwidth corresponding to the bandwidth level of the packet and the identity of the online user in each of the packets.
  • the apparatus for bandwidth control provided by the embodiment or the optional embodiment of the present invention may be understood by referring to the description of the parts in FIG. 1 to FIG. 6 and FIG. 8 , and no further description is made herein.
  • FIG. 17 is a schematic structural diagram of a device 50 for bandwidth control according to an embodiment of the present invention.
  • the online charging system OCS applied to the traffic monitoring system the traffic monitoring system further includes a policy and charging execution function PCEF entity and a policy and charging rule function PCRF entity, and the bandwidth control device 50 may include an input device 510 and an output device. 520.
  • Memory 540 can include read only memory and random access memory and provides instructions and data to processor 530. A portion of memory 540 may also include non-volatile random access memory (NVRAM).
  • NVRAM non-volatile random access memory
  • Memory 540 stores the following elements, executable modules or data structures, or subsets thereof, or their extended sets:
  • Operation instructions include various operation instructions for implementing various operations.
  • Operating system Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
  • the processor 530 performs the following operations by calling an operation instruction stored in the memory 540 (the operation instruction can be stored in the operating system):
  • the device for bandwidth control provided by the embodiment of the present invention can reduce the number of notification messages between the OCS and the PCRF when the bandwidth usage policy of the group user changes, thereby improving the utilization of system resources.
  • the processor 530 is controlled to operate as a bandwidth controlled device 50, which may also be referred to as a CPU (Central Processing Unit).
  • Memory 540 can include read only memory and random access memory and provides instructions and data to processor 530.
  • a portion of memory 540 may also include non-volatile random access memory (NVRAM).
  • NVRAM non-volatile random access memory
  • the various components of the bandwidth controlled device 50 are coupled together by a bus system 550, which may include, in addition to the data bus, a power bus, a control bus, a status signal bus, and the like. However, for clarity of description, various buses are labeled as bus system 550 in the figure.
  • Processor 530 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 530 or an instruction in a form of software.
  • the processor 530 described above may be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or discrete hardware. Component.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA off-the-shelf programmable gate array
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present invention may be implemented or carried out.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 540, and the processor 530 reads the information in the memory 540 and performs the steps of the above method in combination with its hardware.
  • the processor 530 is further configured to group identifiers of online users in the group according to the bandwidth level;
  • the output device 520 is specifically configured to: send, for each packet, a notification message to the PCRF entity, where the notification message corresponding to each packet carries a bandwidth level corresponding to each packet, and an online user in each packet Logo.
  • processor 530 is specifically configured to:
  • the processor 530 performs the following operations by calling an operation instruction stored in the memory 540 (the operation instruction can be stored in the operating system):
  • the input device 510 is configured to receive a PCEF report before the total traffic usage of the group is obtained by using the data traffic of the user in the group reported by the PCEF entity to obtain the total traffic usage of the group.
  • the credit control request message carries the usage of the data traffic of a user in the group to the group traffic.
  • FIG. 18 is a schematic structural diagram of a device 60 for bandwidth control according to an embodiment of the present invention.
  • the device is applied to a policy and charging rule function PCRF entity of a traffic monitoring system, the traffic monitoring system further includes a policy and charging execution function PCEF entity and an online charging system OCS, and the bandwidth controlling device 60 may include an input device 610.
  • Memory 640 can include read only memory and random access memory and provides instructions and data to processor 630. A portion of the memory 640 may also include non-volatile random access memory (NVRAM).
  • NVRAM non-volatile random access memory
  • the memory 640 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof:
  • Operation instructions include various operation instructions for implementing various operations.
  • Operating system Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
  • the processor 630 performs the following operations by calling an operation instruction stored in the memory 640 (the operation instruction can be stored in the operating system):
  • the device for bandwidth control provided by the embodiment of the present invention can reduce the number of notification messages between the PCRF and the PCEF when the bandwidth usage policy of the group user changes, thereby improving the utilization of system resources.
  • the processor 630 controls the operation of the bandwidth controlled device 60, which may also be referred to as a CPU (Central Processing Unit).
  • Memory 640 can include read only memory and random access memory and provides instructions and data to processor 630. A portion of the memory 640 may also include non-volatile random access memory (NVRAM).
  • NVRAM non-volatile random access memory
  • the various components of the bandwidth controlled device 60 are coupled together by a bus system 650, which may include, in addition to the data bus, a power bus, a control bus, a status signal bus, and the like. However, for clarity of description, various buses are labeled as bus system 650 in the figure.
  • Processor 630 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 630 or an instruction in a form of software.
  • the processor 630 described above may be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or discrete hardware. Component.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA off-the-shelf programmable gate array
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present invention may be implemented or carried out.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 640, and the processor 630 reads the information in the memory 640 and completes it in combination with hardware. The steps of the above method.
  • the processor 630 is further configured to group identifiers of online users in the group according to the bandwidth level;
  • the output device 620 is specifically configured to: send, for each packet, a second notification message corresponding to each of the packets to the PCEF entity, where the second notification message corresponding to each packet carries the each packet The bandwidth corresponding to the bandwidth level and the identity of the online user in each of the packets.
  • FIG. 18 of the embodiment of the present invention can be understood by referring to the contents of the parts in FIG. 1 to FIG. 6 , and the details are not described herein.
  • the processor 630 performs the following operations by calling an operation instruction stored in the memory 640 (the operation instruction can be stored in the operating system):
  • the input device 610 Receiving, by the input device 610, the first notification message that is sent by the OCS, where the first notification message carries the identifier of all online users in the group and the indication information that the total usage of the group exceeds a preset threshold. ;
  • the second notification message is sent to the PCEF entity by the output device 620, where the identifier of the online user and the adjusted bandwidth are carried in the second notification message.
  • the processor 630 searches for a bandwidth adjustment rule corresponding to the group according to the indication information, and determines an adjusted bandwidth corresponding to all online users in the group.
  • the second notification message is a RAR message.
  • an embodiment of a traffic monitoring system includes: an online charging system OCS70, a policy and charging execution function PCEF entity 80, and a policy and charging rule function PCRF entity 90.
  • the OCS70 is used to:
  • the PCRF entity 90 is used to:
  • the traffic monitoring system does not need to send an SNR message and a RAR message for each user in the group, thereby greatly reducing the SNR message and the RAR message, and improving the utilization of system resources.
  • the OCS 70 is used to:
  • the PCRF entity 90 is used to:
  • the storage medium may include: a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Disclosed in the present invention is a bandwidth control method, which is used in an Online Charging System (OCS) of a traffic monitor system. The method includes: obtaining total used amount of traffic of a group according to the amount of the traffic of the group used by data service of a user in the group reported by a PCEF entity; when the total used amount of the traffic of the group exceeds a preset threshold, obtaining at least one bandwidth level corresponding to the preset threshold, and an identifier of an online user in the group corresponding to the at least one bandwidth level respectively; sending a notification message to a PCRF entity, the notification message carrying the at least one bandwidth level and the identifier of the online user in the group corresponding respectively to the at least one bandwidth level. With the bandwidth control method provided by the embodiments of the invention, the number of the notification messages between the OCS and the PCRF can be reduced, and thus the utilization efficiency of the system resource is enhanced.

Description

一种带宽控制的方法、装置及系统Method, device and system for bandwidth control
本申请要求于2014年12月30日提交中国专利局、申请号为201410853262.2,发明名称为“一种带宽控制的方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201410853262.2, entitled "Method, Apparatus and System for Bandwidth Control", filed on December 30, 2014, the entire contents of In this application.
技术领域Technical field
本发明涉及通信技术领域,具体涉及一种带宽控制的方法、装置及系统。The present invention relates to the field of communications technologies, and in particular, to a method, device, and system for bandwidth control.
背景技术Background technique
第三代合作伙伴计划(3rd Generation Partnership Project,3GPP)的流量监控系统包括策略及计费执行功能(Policy and Charging Enforcement Function,PCEF)实体、策略与计费规则功能(Policy and Charging Rule Function,PCRF)实体和在线计费系统(Online Charging System,OCS)。The Traffic Monitoring System of the 3rd Generation Partnership Project (3GPP) includes Policy and Charging Enforcement Function (PCEF) entity, Policy and Charging Rule Function (PCRF). ) Entity and Online Charging System (OCS).
当用户使用数据业务时,PCEF会首先向PCRF申请可用带宽,PCRF通过从OCS获取带宽参考因子的等级,并根据该等级计算出带宽,并返回给PCEF;PCEF上报计费请求至OCS完成费用的预留及扣除。When the user uses the data service, the PCEF first applies for the available bandwidth to the PCRF. The PCRF obtains the bandwidth reference factor level from the OCS, calculates the bandwidth according to the level, and returns the bandwidth to the PCEF. The PCEF reports the charging request to the OCS completion fee. Reserved and deducted.
例如:PCRF实体和OCS约定参考计数标识(Counter-ID)和参考计数级别(Counter-Level),PCRF获得当前业务中有效的Counter-ID及对应Counter-Level,然后基于Counter-Level以及本地配置的带宽决策策略来完成带宽决策,并将带宽决策下发给PCEF实体。当OCS监控到Counter-ID对应的Counter-Level变化时,会通过支付通知请求(Spending-Notification-Request,SNR)消息主动下发更新后的Counter-Level给PCRF实体,指示其重新计算带宽并下发重鉴权请求(Re-Authentication Request,RAR)消息给PCEF用于带宽控制重鉴权。For example, the PCRF entity and the OCS convention reference count identifier (Counter-ID) and the reference count level (Counter-Level), the PCRF obtains the Counter-ID and the corresponding Counter-Level that are valid in the current service, and then based on the Counter-Level and the locally configured A bandwidth decision strategy is used to complete the bandwidth decision and deliver the bandwidth decision to the PCEF entity. When the OCS monitors the counter-level change corresponding to the counter-ID, it will send the updated Counter-Level to the PCRF entity through the Spending-Notification-Request (SNR) message, instructing it to recalculate the bandwidth and A Re-Authentication Request (RAR) message is sent to the PCEF for bandwidth control re-authentication.
在现有的技术方案下,如果一个套餐共享给一个群组中的用户,如果群组中的一个用户的使用或订购触发达到了需要改变带宽策略的条件的时候,则OCS需要对这个群组中的每个用户发送一个支出通知SNR消息给PCRF实体。再由PCRF实体针对群组中的每个用户向PCEF实体发送一个RAR消息,从而造成了SNR请消息和RAR消息的大量增加,导致系统资源被大量占用。Under the existing technical solution, if a package is shared to a user in a group, if a user's use or subscription trigger in the group reaches the condition that the bandwidth policy needs to be changed, the OCS needs to use the group. Each user in the middle sends an Expiration Notification SNR message to the PCRF entity. Then, the PCRF entity sends a RAR message to the PCEF entity for each user in the group, which causes a large increase in the SNR request message and the RAR message, resulting in a large occupation of system resources.
发明内容 Summary of the invention
本发明实施例提供一种带宽控制的方法,可以在群组用户的带宽使用策略发生变化时,降低OCS与PCRF之间通知消息的数量,从而提高了系统资源的利用率。本发明实施例还提供了相应的装置及系统。The embodiment of the invention provides a method for bandwidth control, which can reduce the number of notification messages between the OCS and the PCRF when the bandwidth usage policy of the group user changes, thereby improving the utilization of system resources. The embodiments of the present invention also provide corresponding devices and systems.
本发明第一方面提供一种带宽控制的方法,所述方法应用于流量监控系统的在线计费系统OCS,所述流量监控系统还包括策略及计费执行功能PCEF实体和策略与计费规则功能PCRF实体,所述方法包括:A first aspect of the present invention provides a method for bandwidth control, where the method is applied to an online charging system OCS of a traffic monitoring system, where the traffic monitoring system further includes a policy and charging execution function PCEF entity and a policy and charging rule function. PCRF entity, the method comprising:
根据所述PCEF实体上报的群组中一用户的数据业务对群组流量的使用量,获取所述群组的流量总使用量;Obtaining the total traffic usage of the group according to the usage of the group traffic by the data service of the user in the group reported by the PCEF entity;
当所述群组的流量总使用量超过预置门限时,获取所述群组中的所有在线用户的标识;Obtaining identifiers of all online users in the group when the total traffic usage of the group exceeds a preset threshold;
向所述PCRF实体发送通知消息,所述通知消息中携带所述所有在线用户的标识和所述群组的总使用量超过预置门限的指示信息。Sending a notification message to the PCRF entity, where the notification message carries the identifiers of all the online users and the indication information that the total usage of the group exceeds a preset threshold.
结合第一方面,在第一种可能的实现方式中,在所述根据PCEF实体上报的群组中一用户的数据业务对群组流量的使用量,获取所述群组的流量总使用量之前还包括:With reference to the first aspect, in a first possible implementation manner, before the usage of the data traffic of a user in the group reported by the PCEF entity is used, the total traffic usage of the group is obtained. Also includes:
接收PCEF上报的信用控制请求消息,所述信用控制请求消息中携带群组中一用户的数据业务对群组流量的使用量。Receiving a credit control request message reported by the PCEF, where the credit control request message carries the usage of the data traffic of a user in the group to the group traffic.
结合第一方面或第一方面第一种可能的实现方式,在第二种可能的实现方式中,所述通知消息为SNR消息。With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner, the notification message is an SNR message.
本发明第二方面提供一种带宽控制的方法,所述方法应用于流量监控系统的策略与计费规则功能PCRF实体,所述流量监控系统还包括策略及计费执行功能PCEF实体和在线计费系统OCS,所述方法包括:A second aspect of the present invention provides a method for bandwidth control, the method being applied to a policy and charging rule function PCRF entity of a traffic monitoring system, the traffic monitoring system further comprising a policy and charging execution function PCEF entity and online charging System OCS, the method includes:
接收所述OCS发送的第一通知消息,所述第一通知消息中携带所述群组中的所有在线用户的标识和所述群组的总使用量超过预置门限的指示信息;Receiving a first notification message that is sent by the OCS, where the first notification message carries the identifiers of all online users in the group and the indication information that the total usage of the group exceeds a preset threshold;
根据所述指示信息确定所述所有在线用户对应的调整后的带宽;Determining, according to the indication information, an adjusted bandwidth corresponding to all online users;
向所述PCEF实体发送第二通知消息,所述第二通知消息中携带所述所有在线用户的标识和所述调整后的带宽。Sending a second notification message to the PCEF entity, where the second notification message carries the identifiers of all online users and the adjusted bandwidth.
结合第二方面,在第一种可能的实现方式中,所述根据指示信息确定所述所有在线用户对应的调整后的带宽包括:With reference to the second aspect, in a first possible implementation manner, the determining, according to the indication information, the adjusted bandwidth corresponding to the all online users includes:
根据指示信息查找所述群组对应的带宽调整规则,确定所述群组中所有在 线用户对应的调整后的带宽。Determining, according to the indication information, a bandwidth adjustment rule corresponding to the group, and determining that all the groups in the group are The adjusted bandwidth corresponding to the line user.
结合第二方面或第二方面第一种可能的实现方式,在第二种可能的实现方式中,所述第二通知消息为RAR消息。With reference to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner, the second notification message is a RAR message.
本发明第三方面提供一种带宽控制的方法,所述方法应用于流量监控系统的在线计费系统OCS,所述流量监控系统还包括策略及计费执行功能PCEF实体和策略与计费规则功能PCRF实体,所述方法包括:A third aspect of the present invention provides a method for bandwidth control, which is applied to an online charging system OCS of a traffic monitoring system, where the traffic monitoring system further includes a policy and charging execution function PCEF entity and a policy and charging rule function. PCRF entity, the method comprising:
根据所述PCEF实体上报的群组中一用户的数据业务对群组流量的使用量,获取所述群组的流量总使用量;Obtaining the total traffic usage of the group according to the usage of the group traffic by the data service of the user in the group reported by the PCEF entity;
当所述群组的流量总使用量超过预置门限时,获取与所述预置门限对应的至少一个带宽等级,以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识;Obtaining at least one bandwidth level corresponding to the preset threshold, and an identifier of an online user corresponding to the at least one bandwidth level in the group, when the total traffic usage of the group exceeds a preset threshold ;
向所述PCRF实体发送通知消息,所述通知消息中携带所述至少一个带宽等级以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识。Sending a notification message to the PCRF entity, where the notification message carries the at least one bandwidth level and an identifier of an online user corresponding to the at least one bandwidth level in the group.
结合第三方面,在第一种可能的实现方式中,所述向所述PCRF实体发送通知消息,所述通知消息中携带所述至少一个带宽等级,以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识之前,所述方法还包括:With reference to the third aspect, in a first possible implementation, the sending, by the PCRF entity, a notification message, where the notification message carries the at least one bandwidth level, and the at least one of the group Before the identifier of the online user corresponding to the bandwidth level, the method further includes:
根据所述带宽等级对所述群组中的在线用户的标识进行分组;And grouping identifiers of online users in the group according to the bandwidth level;
所述向所述PCRF实体发送通知消息,所述通知消息中携带所述至少一个带宽等级,以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识,包括:Sending, to the PCRF entity, a notification message, where the notification message carries the at least one bandwidth level, and the identifier of the online user corresponding to the at least one bandwidth level in the group, including:
针对每个分组,向所述PCRF实体发送通知消息,所述每个分组对应的通知消息中携带每个分组对应的带宽等级,以及所述每个分组中的在线用户的标识。For each packet, a notification message is sent to the PCRF entity, and the notification message corresponding to each packet carries a bandwidth level corresponding to each packet, and an identifier of the online user in each packet.
结合第三方面或第三方面第一种可能的实现方式,在第二种可能的实现方式中,所述获取与所述预置门限对应的至少一个带宽等级,以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识,包括:With reference to the third aspect, or the first possible implementation manner of the third aspect, in a second possible implementation manner, the acquiring at least one bandwidth level corresponding to the preset threshold, and the group and the location The identifier of the online user corresponding to the at least one bandwidth level, including:
从流量门限与带宽等级的对应关系中,获取与所述预置门限对应的至少一个带宽等级,并获取所述群组中与所述至少一个带宽等级分别对应的用户标识;Acquiring at least one bandwidth level corresponding to the preset threshold, and acquiring a user identifier corresponding to the at least one bandwidth level in the group, in a correspondence between a traffic threshold and a bandwidth level;
根据预先记录的所述群组中用户的状态,获取所述群组中与所述至少一个带宽等级分别对应的在线用户的标识。And determining, according to the pre-recorded status of the user in the group, an identifier of the online user corresponding to the at least one bandwidth level in the group.
本发明第四方面提供一种带宽控制的方法,所述方法应用于流量监控系统 的策略与计费规则功能PCRF实体,所述流量监控系统还包括策略及计费执行功能PCEF实体和在线计费系统OCS,所述方法包括:A fourth aspect of the present invention provides a method for bandwidth control, the method being applied to a traffic monitoring system The policy and charging rule function is a PCRF entity, and the traffic monitoring system further includes a policy and charging execution function PCEF entity and an online charging system OCS, the method comprising:
接收所述OCS发送的第一通知消息,所述第一通知消息中携带至少一个带宽等级以及群组中与所述至少一个带宽等级分别对应的在线用户的标识;Receiving a first notification message that is sent by the OCS, where the first notification message carries at least one bandwidth level and an identifier of an online user corresponding to the at least one bandwidth level in the group;
确定与所述至少一个带宽等级分别对应的带宽;Determining a bandwidth respectively corresponding to the at least one bandwidth level;
向所述PCEF实体发送第二通知消息,所述第二通知消息中携带所述至少一个带宽等级分别对应的带宽以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识。Sending a second notification message to the PCEF entity, where the second notification message carries a bandwidth corresponding to the at least one bandwidth level and an identifier of an online user corresponding to the at least one bandwidth level in the group respectively.
结合第四方面,在第一种可能的实现方式中,所述向所述PCEF实体发送第二通知消息,所述第二通知消息中携带所述至少一个带宽等级分别对应的带宽以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识之前,所述方法还包括:With reference to the fourth aspect, in a first possible implementation, the sending, by the PCEF entity, a second notification message, where the second notification message carries a bandwidth corresponding to the at least one bandwidth level and the group Before the identifier of the online user corresponding to the at least one bandwidth level in the group, the method further includes:
根据所述带宽等级对所述群组中的在线用户的标识进行分组;And grouping identifiers of online users in the group according to the bandwidth level;
所述向所述PCEF实体发送第二通知消息,所述第二通知消息中携带所述至少一个带宽等级分别对应的带宽以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识,包括:Transmitting, to the PCEF entity, a second notification message, where the second notification message carries a bandwidth corresponding to the at least one bandwidth level and an online user corresponding to the at least one bandwidth level in the group respectively Logo, including:
针对每个分组,向所述PCEF实体发送与所述每个分组对应的第二通知消息,所述每个分组对应的第二通知消息中携带所述每个分组的带宽等级对应的带宽以及与所述每个分组中的在线用户的标识。And sending, to the PCEF entity, a second notification message corresponding to each of the packets, and the second notification message corresponding to each packet carries a bandwidth corresponding to a bandwidth level of each packet and The identity of the online user in each of the packets.
本发明第五方面提供一种带宽控制的装置,所述装置应用于流量监控系统的在线计费系统OCS,所述流量监控系统还包括策略及计费执行功能PCEF实体和策略与计费规则功能PCRF实体,所述装置包括:A fifth aspect of the present invention provides a bandwidth control apparatus, where the apparatus is applied to an online charging system OCS of a traffic monitoring system, and the traffic monitoring system further includes a policy and charging execution function PCEF entity and a policy and charging rule function. PCRF entity, the device comprising:
第一获取单元,用于根据所述PCEF实体上报的群组中一用户的数据业务对群组流量的使用量,获取所述群组的流量总使用量;a first acquiring unit, configured to acquire, according to the usage amount of the group traffic of the data service of the user in the group reported by the PCEF entity, the total traffic usage of the group;
第二获取单元,用于当所述第一获取单元获取的所述群组的流量总使用量超过预置门限时,获取所述群组中的所有在线用户的标识;a second acquiring unit, configured to acquire, when the total usage of the traffic of the group acquired by the first acquiring unit exceeds a preset threshold, an identifier of all online users in the group;
发送单元,用于向所述PCRF实体发送通知消息,所述通知消息中携带所述第二获取单元获取的所述所有在线用户的标识和所述群组的总使用量超过预置门限的指示信息。a sending unit, configured to send, to the PCRF entity, a notification message, where the notification message carries an indication that the identifiers of all online users acquired by the second acquiring unit and the total usage of the group exceed a preset threshold information.
结合第五方面,在第一种可能的实现方式中,所述装置还包括: With reference to the fifth aspect, in a first possible implementation, the device further includes:
接收单元,用于在所述第一获取单元根据PCEF实体上报的群组中一用户的数据业务对群组流量的使用量,获取所述群组的流量总使用量之前,接收PCEF上报的信用控制请求消息,所述信用控制请求消息中携带群组中一用户的数据业务对群组流量的使用量。a receiving unit, configured to receive, by the first acquiring unit, the credit reported by the PCEF before acquiring the total traffic usage of the group according to the usage of the data traffic of the data service of the user in the group reported by the PCEF entity And controlling the request message, where the credit control request message carries the usage of the group service traffic of the data service of a user in the group.
本发明第六方面提供一种带宽控制的装置,所述装置应用于流量监控系统的策略与计费规则功能PCRF实体,所述流量监控系统还包括策略及计费执行功能PCEF实体和在线计费系统OCS,所述装置包括:A sixth aspect of the present invention provides a bandwidth control apparatus, where the apparatus is applied to a policy and charging rule function PCRF entity of a traffic monitoring system, and the traffic monitoring system further includes a policy and charging execution function PCEF entity and online charging. System OCS, the device includes:
接收单元,用于接收所述OCS发送的第一通知消息,所述第一通知消息中携带所述群组中的所有在线用户的标识和所述群组的总使用量超过预置门限的指示信息;a receiving unit, configured to receive a first notification message that is sent by the OCS, where the first notification message carries an identifier of all online users in the group, and an indication that a total usage of the group exceeds a preset threshold information;
确定单元,用于根据所述接收单元接收的所述指示信息确定所述所有在线用户对应的调整后的带宽;a determining unit, configured to determine, according to the indication information received by the receiving unit, an adjusted bandwidth corresponding to all online users;
发送单元,用于向所述PCEF实体发送第二通知消息,所述第二通知消息中携带所述所有在线用户的标识和所述确定单元确定的所述调整后的带宽。And a sending unit, configured to send a second notification message to the PCEF entity, where the second notification message carries the identifiers of all online users and the adjusted bandwidth determined by the determining unit.
结合第六方面,在第一种可能的实现方式中,In combination with the sixth aspect, in a first possible implementation manner,
所述确定单元,具体用于根据指示信息查找所述群组对应的带宽调整规则,确定所述群组中所有在线用户对应的调整后的带宽。The determining unit is specifically configured to search for a bandwidth adjustment rule corresponding to the group according to the indication information, and determine an adjusted bandwidth corresponding to all online users in the group.
本发明第七方面提供一种带宽控制的装置,所述装置应用于流量监控系统的在线计费系统OCS,所述流量监控系统还包括策略及计费执行功能PCEF实体和策略与计费规则功能PCRF实体,所述装置包括:A seventh aspect of the present invention provides a bandwidth control apparatus, where the apparatus is applied to an online charging system OCS of a traffic monitoring system, and the traffic monitoring system further includes a policy and charging execution function PCEF entity and a policy and charging rule function. PCRF entity, the device comprising:
第一获取单元,用于根据所述PCEF实体上报的群组中一用户的数据业务对群组流量的使用量,获取所述群组的流量总使用量;a first acquiring unit, configured to acquire, according to the usage amount of the group traffic of the data service of the user in the group reported by the PCEF entity, the total traffic usage of the group;
第二获取单元,用于当所述第一获取单元获取的所述群组的流量总使用量超过预置门限时,获取与所述预置门限对应的至少一个带宽等级,以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识;a second acquiring unit, configured to acquire at least one bandwidth level corresponding to the preset threshold, and the group when the total traffic usage of the group acquired by the first acquiring unit exceeds a preset threshold An identifier of an online user corresponding to the at least one bandwidth level;
发送单元,用于向所述PCRF实体发送通知消息,所述通知消息中携带所述第二获取单元获取的所述至少一个带宽等级以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识。a sending unit, configured to send, to the PCRF entity, a notification message, where the notification message carries the at least one bandwidth level acquired by the second acquiring unit, and corresponding to the at least one bandwidth level in the group respectively The identity of the online user.
结合第七方面,在第一种可能的实现方式中,所述装置还包括:With reference to the seventh aspect, in a first possible implementation, the device further includes:
分组单元,用于根据所述带宽等级对所述群组中的在线用户的标识进行分 组;a grouping unit, configured to divide an identifier of an online user in the group according to the bandwidth level group;
所述发送单元,具体用于针对所述分组单元划分后的每个分组,向所述PCRF实体发送通知消息,所述每个分组对应的通知消息中携带每个分组对应的带宽等级,以及所述每个分组中的在线用户的标识。The sending unit is configured to send, to the PCRF entity, a notification message for each packet that is divided by the packet unit, where the notification message corresponding to each packet carries a bandwidth level corresponding to each packet, and The identity of the online user in each group.
结合第七方面或第七方面第一种可能的实现方式,在第二种可能的实现方式中,With reference to the seventh aspect or the first possible implementation manner of the seventh aspect, in a second possible implementation manner,
所述第二获取单元,具体用于从流量门限与带宽等级的对应关系中,获取与所述预置门限对应的至少一个带宽等级,并获取所述群组中与所述至少一个带宽等级分别对应的用户标识;根据预先记录的所述群组中用户的状态,获取所述群组中与所述至少一个带宽等级分别对应的在线用户的标识。The second acquiring unit is configured to obtain at least one bandwidth level corresponding to the preset threshold, and obtain the at least one bandwidth level in the group, respectively, from a correspondence between a traffic threshold and a bandwidth level. And corresponding identifiers of the online users corresponding to the at least one bandwidth level in the group are obtained according to the pre-recorded state of the user in the group.
本发明第八方面提供一种带宽控制的装置,所述装置应用于流量监控系统的策略与计费规则功能PCRF实体,所述流量监控系统还包括策略及计费执行功能PCEF实体和在线计费系统OCS,所述装置包括:An eighth aspect of the present invention provides a bandwidth control apparatus, where the apparatus is applied to a policy and charging rule function PCRF entity of a traffic monitoring system, and the traffic monitoring system further includes a policy and charging execution function PCEF entity and online charging. System OCS, the device includes:
接收单元,用于接收所述OCS发送的第一通知消息,所述第一通知消息中携带至少一个带宽等级以及群组中与所述至少一个带宽等级分别对应的在线用户的标识;a receiving unit, configured to receive a first notification message that is sent by the OCS, where the first notification message carries at least one bandwidth level and an identifier of an online user corresponding to the at least one bandwidth level in the group;
确定单元,用于确定与所述接收单元接收的所述至少一个带宽等级分别对应的带宽;a determining unit, configured to determine a bandwidth respectively corresponding to the at least one bandwidth level received by the receiving unit;
发送单元,用于向所述PCEF实体发送第二通知消息,所述第二通知消息中携带所述确定单元确定的所述至少一个带宽等级分别对应的带宽以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识。a sending unit, configured to send, to the PCEF entity, a second notification message, where the second notification message carries a bandwidth corresponding to the at least one bandwidth level determined by the determining unit, and the at least one of the group and the at least one The identifier of an online user corresponding to a bandwidth level.
结合第八方面,在第一种可能的实现方式中,所述装置还包括:In conjunction with the eighth aspect, in a first possible implementation, the apparatus further includes:
分组单元,用于根据所述带宽等级对所述群组中的在线用户的标识进行分组;a grouping unit, configured to group identifiers of online users in the group according to the bandwidth level;
所述发送单元,具体用于针对每个分组,向所述PCEF实体发送与所述每个分组对应的第二通知消息,所述每个分组对应的第二通知消息中携带所述每个分组的带宽等级对应的带宽以及与所述每个分组中的在线用户的标识。The sending unit is configured to: send, for each packet, a second notification message corresponding to each of the packets to the PCEF entity, where the second notification message corresponding to each packet carries the each packet The bandwidth corresponding to the bandwidth level and the identity of the online user in each of the packets.
本发明第九方面提供一种流量监控系统,包括:在线计费系统OCS、策略及计费执行功能PCEF实体和策略与计费规则功能PCRF实体,A ninth aspect of the present invention provides a traffic monitoring system, including: an online charging system OCS, a policy and charging execution function PCEF entity, and a policy and charging rule function PCRF entity.
所述OCS用于: The OCS is used to:
根据所述PCEF实体上报的群组中一用户的数据业务对群组流量的使用量,获取所述群组的流量总使用量;Obtaining the total traffic usage of the group according to the usage of the group traffic by the data service of the user in the group reported by the PCEF entity;
当所述群组的流量总使用量超过预置门限时,获取所述群组中的所有在线用户的标识;Obtaining identifiers of all online users in the group when the total traffic usage of the group exceeds a preset threshold;
向所述PCRF实体发送第一通知消息,所述第一通知消息中携带所述所有在线用户的标识和所述群组的总使用量超过预置门限的指示信息;Transmitting, by the PCRF entity, a first notification message, where the first notification message carries the identifiers of all the online users and the indication information that the total usage of the group exceeds a preset threshold;
所述PCRF实体用于:The PCRF entity is used to:
接收所述OCS发送的第一通知消息,所述第一通知消息中携带所述群组中的所有在线用户的标识和所述群组的总使用量超过预置门限的指示信息;Receiving a first notification message that is sent by the OCS, where the first notification message carries the identifiers of all online users in the group and the indication information that the total usage of the group exceeds a preset threshold;
根据所述指示信息确定所述所有在线用户对应的调整后的带宽;Determining, according to the indication information, an adjusted bandwidth corresponding to all online users;
向所述PCEF实体发送第二通知消息,所述第二通知消息中携带所述所有在线用户的标识和所述调整后的带宽。Sending a second notification message to the PCEF entity, where the second notification message carries the identifiers of all online users and the adjusted bandwidth.
本发明第十方面提供一种流量监控系统,包括:在线计费系统OCS、策略及计费执行功能PCEF实体和策略与计费规则功能PCRF实体,A tenth aspect of the present invention provides a traffic monitoring system, including: an online charging system OCS, a policy and charging execution function PCEF entity, and a policy and charging rule function PCRF entity.
所述OCS用于:The OCS is used to:
根据所述PCEF实体上报的群组中一用户的数据业务对群组流量的使用量,获取所述群组的流量总使用量;Obtaining the total traffic usage of the group according to the usage of the group traffic by the data service of the user in the group reported by the PCEF entity;
当所述群组的流量总使用量超过预置门限时,获取与所述预置门限对应的至少一个带宽等级,以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识;Obtaining at least one bandwidth level corresponding to the preset threshold, and an identifier of an online user corresponding to the at least one bandwidth level in the group, when the total traffic usage of the group exceeds a preset threshold ;
向所述PCRF实体发送第一通知消息,所述第一通知消息中携带所述至少一个带宽等级以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识;Transmitting, by the PCRF entity, a first notification message, where the first notification message carries the at least one bandwidth level and an identifier of an online user corresponding to the at least one bandwidth level in the group;
所述PCRF实体用于:The PCRF entity is used to:
接收所述OCS发送的第一通知消息,所述第一通知消息中携带至少一个带宽等级以及群组中与所述至少一个带宽等级分别对应的在线用户的标识;Receiving a first notification message that is sent by the OCS, where the first notification message carries at least one bandwidth level and an identifier of an online user corresponding to the at least one bandwidth level in the group;
确定与所述至少一个带宽等级分别对应的带宽;Determining a bandwidth respectively corresponding to the at least one bandwidth level;
向所述PCEF实体发送第二通知消息,所述第二通知消息中携带所述至少一个带宽等级分别对应的带宽以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识。 Sending a second notification message to the PCEF entity, where the second notification message carries a bandwidth corresponding to the at least one bandwidth level and an identifier of an online user corresponding to the at least one bandwidth level in the group respectively.
与现有技术中如果群组中的一个用户的使用或订购触发达到了需要改变带宽策略的条件的时候,则需要对这个群组中的每个用户发送一个SNR消息给PCRF实体,导致SNR消息大量增加相比,本发明实施例提供的带宽控制的方法,可以在群组用户的带宽使用策略发生变化时,降低OCS与PCRF之间通知消息的数量,从而提高了系统资源的利用率。In the prior art, if the usage or subscription trigger of a user in the group reaches the condition that the bandwidth policy needs to be changed, then an SNR message needs to be sent to the PCRF entity for each user in the group, resulting in an SNR message. Compared with a large increase, the bandwidth control method provided by the embodiment of the present invention can reduce the number of notification messages between the OCS and the PCRF when the bandwidth usage policy of the group user changes, thereby improving the utilization of system resources.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1是本发明实施例中流量监控系统的一实施例示意图;1 is a schematic diagram of an embodiment of a traffic monitoring system according to an embodiment of the present invention;
图2是本发明实施例中带宽控制的方法的一实施例示意图;2 is a schematic diagram of an embodiment of a method for bandwidth control in an embodiment of the present invention;
图3是本发明实施例中带宽控制的方法的另一实施例示意图;3 is a schematic diagram of another embodiment of a method for bandwidth control in an embodiment of the present invention;
图4是本发明实施例中带宽控制的方法的另一实施例示意图;4 is a schematic diagram of another embodiment of a method for bandwidth control in an embodiment of the present invention;
图5是本发明实施例中带宽控制的方法的另一实施例示意图;FIG. 5 is a schematic diagram of another embodiment of a method for bandwidth control according to an embodiment of the present invention; FIG.
图6是本发明实施例中带宽控制的方法的另一实施例示意图;6 is a schematic diagram of another embodiment of a method for bandwidth control in an embodiment of the present invention;
图7A是本发明实施例中带宽控制的方法的另一实施例示意图;7A is a schematic diagram of another embodiment of a method for bandwidth control in an embodiment of the present invention;
图7B是本发明实施例中带宽控制的方法的另一实施例示意图;FIG. 7B is a schematic diagram of another embodiment of a method for bandwidth control according to an embodiment of the present invention; FIG.
图7C是本发明实施例中带宽控制的方法的另一实施例示意图;7C is a schematic diagram of another embodiment of a method for bandwidth control in an embodiment of the present invention;
图8是本发明实施例中带宽控制的方法的另一实施例示意图;FIG. 8 is a schematic diagram of another embodiment of a method for bandwidth control according to an embodiment of the present invention; FIG.
图9是本发明实施例中带宽控制的方法的另一实施例示意图;FIG. 9 is a schematic diagram of another embodiment of a method for bandwidth control according to an embodiment of the present invention; FIG.
图10是本发明实施例中带宽控制的装置的一实施例示意图;FIG. 10 is a schematic diagram of an embodiment of a device for bandwidth control according to an embodiment of the present invention; FIG.
图11是本发明实施例中带宽控制的装置的一实施例示意图;11 is a schematic diagram of an embodiment of a device for bandwidth control according to an embodiment of the present invention;
图12是本发明实施例中带宽控制的装置的另一实施例示意图;FIG. 12 is a schematic diagram of another embodiment of an apparatus for bandwidth control according to an embodiment of the present invention; FIG.
图13是本发明实施例中带宽控制的装置的另一实施例示意图;FIG. 13 is a schematic diagram of another embodiment of an apparatus for bandwidth control according to an embodiment of the present invention; FIG.
图14是本发明实施例中带宽控制的装置的一实施例示意图;FIG. 14 is a schematic diagram of an embodiment of a device for bandwidth control according to an embodiment of the present invention; FIG.
图15是本发明实施例中带宽控制的装置的另一实施例示意图;FIG. 15 is a schematic diagram of another embodiment of an apparatus for bandwidth control according to an embodiment of the present invention; FIG.
图16是本发明实施例中带宽控制的装置的另一实施例示意图;16 is a schematic diagram of another embodiment of an apparatus for bandwidth control according to an embodiment of the present invention;
图17是本发明实施例中带宽控制的装置的另一实施例示意图;17 is a schematic diagram of another embodiment of an apparatus for bandwidth control according to an embodiment of the present invention;
图18是本发明实施例中带宽控制的装置的另一实施例示意图; FIG. 18 is a schematic diagram of another embodiment of an apparatus for bandwidth control according to an embodiment of the present invention; FIG.
图19是本发明实施例中流量监控系统的另一实施例示意图。FIG. 19 is a schematic diagram of another embodiment of a traffic monitoring system according to an embodiment of the present invention.
具体实施方式detailed description
本发明实施例提供一种带宽控制的方法,可以在群组用户的带宽使用策略发生变化时,降低OCS与PCRF之间通知消息的数量,从而提高了系统资源的利用率。本发明实施例还提供了相应的装置及系统。以下分别进行详细说明。The embodiment of the invention provides a method for bandwidth control, which can reduce the number of notification messages between the OCS and the PCRF when the bandwidth usage policy of the group user changes, thereby improving the utilization of system resources. The embodiments of the present invention also provide corresponding devices and systems. The details are described below separately.
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is an embodiment of the invention, but not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention.
参阅图1,本发明实施例提供的流量监控系统的一实施例包括:在线计费系统OCS、策略及计费执行功能PCEF实体和策略与计费规则功能PCRF实体,PCRF实体与OCS之间通过Sy接口通信,PCEF实体与PCRF实体之间通过Gx接口通信,PCEF实体和OCS之间通过Gy接口通信,当用户使用数据业务时,PCEF实体会首先通过Gx接口向PCRF申请可用带宽;PCRF通过Sy接口从OCS获取带宽参考因子,如:参考计数标识(Counter-ID)和参考计数级别(Counter-Level),并根据Counter-Level)计算出用户可使用的带宽,例如:2Mbps或1Mbps,然后将用户可使用的带宽返回给PCEF实体,由PCEF实体按照用户可使用的带宽为用户分配带宽,另外,PCEF实体通过Gy接口上报计费请求至OCS完成费用的预留及扣除。Referring to FIG. 1, an embodiment of a traffic monitoring system according to an embodiment of the present invention includes: an online charging system OCS, a policy and charging execution function PCEF entity, and a policy and charging rule function PCRF entity, and a PCRF entity and an OCS are adopted. The Sy interface communicates between the PCEF entity and the PCRF entity through the Gx interface. The PCEF entity communicates with the OCS through the Gy interface. When the user uses the data service, the PCEF entity first applies for the available bandwidth to the PCRF through the Gx interface; the PCRF passes the Sy. The interface obtains a bandwidth reference factor from the OCS, such as a counter-count and a counter-level, and calculates a bandwidth that the user can use, for example, 2 Mbps or 1 Mbps, and then The user-usable bandwidth is returned to the PCEF entity. The PCEF entity allocates bandwidth to the user according to the bandwidth that the user can use. In addition, the PCEF entity reports the charging request to the OCS to complete the reservation and deduction of the cost through the Gy interface.
本发明实施例中通知消息可以是支付通知请求(Spending-Notification-Request,SNR)消息,第一通知消息可以是SNR消息,第二通知消息可以是发重鉴权请求(Re-Authentication Request,RAR)消息。当然,除了SNR消息和RAR消息,还可以是现有协议中的其他通知消息,本发明实施例中不做具体限定。下面多个实施例中,以通知消息是SNR消息,第一通知消息是SNR消息,第二通知消息是RAR消息为例进行介绍。In the embodiment of the present invention, the notification message may be a payment notification request (Spending-Notification-Request, SNR) message, the first notification message may be an SNR message, and the second notification message may be a re-authentication request (RAR) ) message. Of course, the SNR message and the RAR message may be other notification messages in the existing protocol, which are not specifically limited in the embodiment of the present invention. In the following multiple embodiments, the notification message is an SNR message, the first notification message is an SNR message, and the second notification message is an RAR message.
本发明实施例中的群组可以是集团用户,例如:企业用户。The group in the embodiment of the present invention may be a group user, for example, an enterprise user.
带宽针对群组中的用户,在使用过程中可能会因流量使用总量的变化,导致带宽的使用策略发生变化,例如:假设一个公司共有1000人,企业法人A向电信运营商申请了100G的流量每个月,供企业员工日常办公使用.但是为了防 止超过业务的总用量,要求在本月流量的总使用量达到80%以后降低带宽,本月流量的总使用量达到80%以前,带宽为2Mbps,当本月流量的总使用量达到80%之后,也就是剩下20G的时候带宽变成1Mbps,在用尽后运营商可以提供免费但是更低的带宽512kbps给企业中的员工使用。The bandwidth for the users in the group may change the usage of the bandwidth due to the change in the total amount of traffic usage. For example, if a company has a total of 1000 people, the corporate legal person A applies for 100G to the telecom operator. The traffic is used every month for the daily work of the employees. But in order to prevent To exceed the total usage of the business, it is required to reduce the bandwidth after the total usage of the traffic reaches 80% this month. Before the total usage of the traffic reaches 80% this month, the bandwidth is 2Mbps. When the total usage of the traffic reaches 80% this month. After that, when the remaining 20G, the bandwidth becomes 1Mbps. After exhaustion, the operator can provide free but lower bandwidth 512kbps for employees in the enterprise.
在员工B0消费后,总消费量达到了80G,也就是达到了80%的门限,则需要修改员工B0的带宽,同时需要修改所有其它在线员工的带宽。假设所有在线的员工(B0,B1,B2,B3,…Bn)是800人,则OCS需要针对所有的在线员工(B0,B1,B2,B3,…Bn)800人,向PCRF实体发送支付通知请求(Spending-Notification-Request,SNR)消息,然后由PCRF实体针对所有的在线员工(B0,B1,B2,B3,…Bn)向PCEF实体发送重鉴权请求(Re-Authentication Request,RAR)消息,再由PCEF实体修改所有在线员工的带宽。After the employee B0 consumes, the total consumption reaches 80G, that is, the threshold of 80% is reached. The bandwidth of the employee B0 needs to be modified, and the bandwidth of all other online employees needs to be modified. Assuming all online employees (B0, B1, B2, B3, ... Bn) are 800, OCS needs to send payment notifications to the PCRF entity for all online employees (B0, B1, B2, B3, ... Bn) 800 people. Requesting a (Spending-Notification-Request, SNR) message, and then sending a Re-Authentication Request (RAR) message to the PCEF entity by the PCRF entity for all online employees (B0, B1, B2, B3, ... Bn) Then, the PCEF entity modifies the bandwidth of all online employees.
本发明实施例中,群组用户的场景下SNR消息和RAR消息下发的方法可以理解为:In the embodiment of the present invention, the method for delivering the SNR message and the RAR message in the scenario of the group user can be understood as:
在本发明的方案中,通过在SNR/RAR消息中增加扩展参数群组中在线用户的标识,群组中在线用户的标识用于唯一标识在共享Counter下的用户终端。共享Counter指群组中的用户共享一个Counter-ID,群组中在线用户的标识可以是会话标识(SessionID),移动用户国际号码(Mobile Subscriber International ISDN/PSTN number,MSISDN),国际移动用户识别码(International Mobile Subscriber Identification Number,IMSI)等信息,OCS在下发SNR消息的时候可以通过下发群组中在线用户的标识通知PCRF实体,或PCRF在下发RAR消息给PCEF实体的时候在RAR消息中也携带群组中在线用户的标识,这样,PCRF实体在决策带宽使用策略的时候会决策群组中所有在线用户的带宽使用量,PCEF实体在更新带宽策略的时候还要更新群组中所有在线用户的信息。藉此保证PCRF和OCS以及PCEF与PCRF之间SNR消息和RAR消息减少。而不需要针对群组中的每个用户都下发一个SNR消息和RAR消息,从而大幅度的减少了SNR消息和RAR消息,提高了系统资源的利用率。尤其是提高了网络带宽资源和CPU资源的利用率。In the solution of the present invention, the identifier of the online user in the extended parameter group is added in the SNR/RAR message, and the identifier of the online user in the group is used to uniquely identify the user terminal under the shared counter. The shared counter means that the users in the group share a Counter-ID, and the identifier of the online user in the group may be a session identifier (SessionID), a mobile subscriber international number (Mobile Subscriber International ISDN/PSTN number, MSISDN), and an international mobile subscriber identity code. (International Mobile Subscriber Identification Number, IMSI), etc., when the SNR message is sent, the OCS can notify the PCRF entity by sending the identifier of the online user in the group, or the PCRF can also send the RAR message to the PCEF entity in the RAR message. The identifier of the online user in the group is carried, so that the PCRF entity determines the bandwidth usage of all online users in the group when determining the bandwidth usage policy, and the PCEF entity updates all online users in the group when updating the bandwidth policy. Information. This ensures that the SNR message and the RAR message between the PCRF and the OCS and the PCEF and the PCRF are reduced. The SNR message and the RAR message are not required to be sent to each user in the group, thereby greatly reducing the SNR message and the RAR message, and improving the utilization of system resources. In particular, the utilization of network bandwidth resources and CPU resources is improved.
带宽控制的方法的过程可以参阅图2进行理解,图2为带宽控制的方法的一实施例示意图:The process of the method for bandwidth control can be understood by referring to FIG. 2, which is a schematic diagram of an embodiment of a method for bandwidth control:
S100、PCEF实体向OCS上报计费请求消息(Credit Control Request,CCR), CCR消息中可以携带流量的使用量。S100 and the PCEF entity report a charging control request (CCR) to the OCS. The amount of traffic that can be carried in a CCR message.
S105、OCS根据流量的使用量来扣费,并且预留,计算CounterID的新的CounterLevel。S105. The OCS deducts the fee according to the usage of the traffic, and reserves, and calculates a new CounterLevel of the CounterID.
S110、返回计费响应消息(Credit Control Acknowledge,CCA)消息给PCEF。S110. Return a Accounting Control Acknowledge (CCA) message to the PCEF.
本发明实施例中CounterID为带宽。In the embodiment of the present invention, the CounterID is a bandwidth.
S115、如果步骤S105中计算出的CounterLevel发生了改变,且该群组的套餐包(Counter)是一个共享Counter,则需要找出所有共享该Counter的其它用户的SessionID,然后发送SNR消息给PCRF,同时在该SNR请求中携带其它用户的SessionID。S115. If the CounterLevel calculated in step S105 is changed, and the group of the group is a shared counter, it is necessary to find the SessionID of all other users sharing the Counter, and then send an SNR message to the PCRF. At the same time, the SNR request carries the SessionID of other users.
S120、PCRF执行带宽控制策略的决策的时候不仅仅要执行当前用户的带宽策略,还需要执行其它用户的带宽决策。When the S120 and the PCRF perform the bandwidth control policy, the bandwidth policy of the current user is not only executed, but also the bandwidth decision of other users is required.
S125、PCRF在决策后会发送支付通知响应(Spending Notification Acknowledge,SNA)消息给OCS。S125. The PCRF sends a Payment Notification Acknowledge (SNA) message to the OCS after the decision.
S130、PCRF对于决策后需要指示PCEF来执行带宽控制,则对于由于同一个SNR请求引起的多个相同的带宽使用策略,PCRF下发RAR请求给PCEF,并在RAR中携带所有在线用户的SessionID和相应的带宽。S130. The PCRF needs to instruct the PCEF to perform bandwidth control after the decision, and the PCRF sends a RAR request to the PCEF for the same bandwidth usage policy caused by the same SNR request, and carries the SessionID of all online users in the RAR. The corresponding bandwidth.
S135、PCEF执行PCRF的指示,不仅需要执行当前Session的宽使用策略规则,而且还需要提取关联SessionID来更新群组中其他在线用户的宽使用策略。S135. The PCEF performs the indication of the PCRF, and not only needs to execute the wide usage policy rule of the current session, but also needs to extract the associated SessionID to update the wide usage policy of other online users in the group.
群组中的所有在线用户使用新的带宽来上网。All online users in the group use the new bandwidth to access the Internet.
S140、PCEF回重鉴权响应(Re-Authentication Acknowledge,RAA)消息给PCRF。S140: A PCEF Re-Authentication Acknowledge (RAA) message is sent to the PCRF.
本发明实施例中,针对群组用户的场景,不需要针对群组中的每个用户都下发一个SNR消息和RAR消息,从而大幅度的减少了SNR消息和RAR消息,提高了系统资源的利用率。In the embodiment of the present invention, for a scenario of a group user, an SNR message and an RAR message are not required to be sent to each user in the group, thereby greatly reducing SNR messages and RAR messages, and improving system resources. Utilization rate.
另外,在OCS向PCRF发送SNR消息时,不限于只发送一个SNR消息,可以是根据群组中在线用户的数量,将群组中在线用户的SessionID分成几组,然后发送与分组数量对应的SNR个消息,例如:群组有800人在线时,可以将800个在线用户的SessionID分成8组,每组有100个SessionID,则OCS只需要发送8个SNR消息,这样,还可以避免SNR消息过大,导致传输异常的问题。In addition, when the OC message is sent to the PCRF by the OCS, the SNR message is not limited to only one SNR message. The session ID of the online user in the group may be divided into groups according to the number of online users in the group, and then the SNR corresponding to the number of packets is sent. For example, when a group has 800 people online, you can divide the SessionID of 800 online users into 8 groups, each group has 100 SessionIDs, then the OCS only needs to send 8 SNR messages, thus avoiding SNR messages. Large, causing problems with transmission anomalies.
本发明实施例中,消息参数扩展集中在Sy接口的SNR消息和Gx的RAR消 息,在SNR消息和RAR消息分别扩展了群组中在线用户的标识这一参数。针对该参数,各网元侧的处理逻辑定义如下:In the embodiment of the present invention, the message parameter extension is concentrated on the SNR message of the Sy interface and the RAR cancellation of the Gx. The SNR message and the RAR message respectively extend the parameter of the online user's identity in the group. For this parameter, the processing logic on each network element side is defined as follows:
OCS侧的应用逻辑,针对步骤S115的扩展可以包括如下步骤,如图3所示:The application logic on the OCS side may include the following steps for the extension of step S115, as shown in FIG. 3:
S115-1、当发起会话的SessionID0导致CounterLevel发生了改变,OCS检查到该用户所属的群组的套餐包(Counter)是否是一个共享Counter,当是共享Counter,则执行步骤S115-2,当不是共享Counter时,执行步骤S115-7。S115-1. When the SessionID0 of the session is initiated, the CounterLevel is changed. The OCS checks whether the package of the group to which the user belongs is a shared counter. When it is the shared counter, step S115-2 is performed. When the Counter is shared, step S115-7 is performed.
S115-2、查询出共享该Counter的其他在线用户的会话标识(SessionID1至SessionIDn)。S115-2: Query the session identifiers (SessionID1 to SessionIDn) of other online users sharing the Counter.
当然,本发明实施例中不限于SessionID,还可以是MSISDN或IMSI。Of course, the embodiment of the present invention is not limited to the SessionID, and may also be an MSISDN or an IMSI.
S115-3、确认所有在线用户的SessionID数量是否大于1,如果大于1,则执行步骤S115-4,如果不大于1,则执行步骤S115-7。S115-3: It is confirmed whether the number of SessionIDs of all online users is greater than 1. If it is greater than 1, step S115-4 is performed, and if it is not greater than 1, step S115-7 is performed.
S115-4、确定所有在线用户的SessionID数量是否大于N,如果大于N,则执行步骤S115-5,如果不大于N,则执行步骤S115-6。S115-4: Determine whether the number of SessionIDs of all online users is greater than N. If it is greater than N, perform step S115-5. If it is not greater than N, perform step S115-6.
S115-5、以N为单位,将所有在线的SessionID数量拆分为多组。S115-5, in units of N, splits the number of all online SessionIDs into multiple groups.
例如:当N=100时,则以100为单位,将800个SessionID放在8个SNR请求中。For example, when N=100, 800 SessionIDs are placed in 8 SNR requests in units of 100.
实际上,也可以理解为以N-1为单位,每个SNR中除掉设置一个主SessionID外,再设置N-1个关联的SessionID。实际上,与上述的以N为单位的原理是相同的。In fact, it can also be understood that in the unit of N-1, in addition to setting a primary SessionID in each SNR, N-1 associated SessionIDs are set. In fact, the principle in N is the same as above.
S115-6、在每个SNR消息中设置N个SessionID。S115-6: Set N SessionIDs in each SNR message.
S115-7、向PCRF发送SNR请求。S115-7. Send an SNR request to the PCRF.
与现有技术中如果群组中的一个用户的使用或订购触发达到了需要改变带宽策略的条件的时候,则需要对这个群组中的每个用户发送一个SNR消息给PCRF实体,导致SNR消息大量增加相比,本发明实施例提供的带宽控制的方法,可以在群组用户的带宽使用策略发生变化时,降低OCS与PCRF之间SNR消息的数量,从而提高了系统资源的利用率。In the prior art, if the usage or subscription trigger of a user in the group reaches the condition that the bandwidth policy needs to be changed, then an SNR message needs to be sent to the PCRF entity for each user in the group, resulting in an SNR message. Compared with a large amount of increase, the method for bandwidth control provided by the embodiment of the present invention can reduce the number of SNR messages between the OCS and the PCRF when the bandwidth usage policy of the group user changes, thereby improving the utilization of system resources.
PCRF接收到SNR请求后,PCRF侧的应用逻辑,针对步骤S120的扩展可以包括如下步骤,如图4所示:After the PCRF receives the SNR request, the application logic on the PCRF side may include the following steps for the extension of step S120, as shown in FIG. 4:
S120-1、根据SessionID 0的CounterID和变化后的CounterLevel确定与变化后的CounterLevel对应的SessionID0的带宽使用策略。S120-1. Determine a bandwidth usage policy of the SessionID0 corresponding to the changed CounterLevel according to the CounterID of the SessionID 0 and the changed CounterLevel.
S120-2、解析SNR中SessionID的数量,当SessionID大于1时,执行步骤 S120-3,如果不大于1,则执行步骤S125。S120-2. Analyze the number of SessionIDs in the SNR. When the SessionID is greater than 1, perform steps. S120-3, if it is not greater than 1, step S125 is performed.
S120-3、针对除SessionID0之外的SessionID也确定相应的带宽使用策略。S120-3, determining a corresponding bandwidth usage policy for the SessionID other than the SessionID0.
带宽使用策略中可以包含服务质量(Quality of Service,QoS),也就是可用带宽的取值。The bandwidth usage policy may include a quality of service (QoS), that is, a value of available bandwidth.
S125、PCRF在决策后会发送支付通知响应(Spending Notification Acknowledge,SNA)消息给OCS。S125. The PCRF sends a Payment Notification Acknowledge (SNA) message to the OCS after the decision.
当PCRF发送SNA响应后,向PCEF发送RAR消息时对于群组中所有在线用户的标识的处理逻辑,针对步骤S130的扩展,如图5所示:After the PCRF sends the SNA response, the processing logic for the identification of all online users in the group when transmitting the RAR message to the PCEF is as shown in FIG. 5 for the extension of step S130:
S130-1、PCRF获取本次所有SessionID的带宽使用策略。S130-1 and the PCRF obtain the bandwidth usage policy of all the SessionIDs.
S130-2、确定本次是否只有一个会话Session需要更新,如果不是只有一个,则执行步骤S130-3,如果只有一个需要更新,则执行步骤S130-8。S130-2. Determine whether only one session session needs to be updated this time. If there is not only one, step S130-3 is performed, and if only one needs to be updated, step S130-8 is performed.
S130-3、将相同的带宽使用策略划分到同一分组。S130-3. Divide the same bandwidth usage policy into the same packet.
S130-4、确定每个分组内的SessionID的个数是否大于1,如果大于1,则执行步骤S130-5,如果不大于1,则执行步骤S130-8。S130-4: Determine whether the number of SessionIDs in each group is greater than 1. If it is greater than 1, step S130-5 is performed, and if it is not greater than 1, step S130-8 is performed.
S130-5、确定每个分组内的SessionID的个数是否大于N,如果大于N,则执行步骤S130-6。S130-5. Determine whether the number of SessionIDs in each packet is greater than N. If it is greater than N, perform step S130-6.
S130-6、以N为单位,将所有在线的SessionID数量拆分为多组。S130-6, in units of N, splits the number of all online SessionIDs into multiple groups.
S130-7、在每个RAR消息中设置N个SessionID和对应的带宽使用策略。S130-7: Set N SessionIDs and corresponding bandwidth usage policies in each RAR message.
S130-8、向PCEF发送RAR消息。S130-8. Send a RAR message to the PCEF.
与现有技术中如果群组中的一个用户的使用或订购触发达到了需要改变带宽策略的条件的时候,则需要对这个群组中的每个用户发送一个RAR消息给PCEF实体,导致RAR消息大量增加相比,本发明实施例提供的带宽控制的方法,可以在群组用户的带宽使用策略发生变化时,降低PCRF与PCEF之间RAR消息的数量,从而提高了系统资源的利用率。In the prior art, if the usage or subscription trigger of a user in the group reaches the condition that the bandwidth policy needs to be changed, then a RAR message needs to be sent to the PCEF entity for each user in the group, resulting in a RAR message. Compared with a large amount of increase, the method for bandwidth control provided by the embodiment of the present invention can reduce the number of RAR messages between the PCRF and the PCEF when the bandwidth usage policy of the group user changes, thereby improving the utilization of system resources.
当PCEF收到RAR请求后,对于群组中所有在线用户的处理逻辑,针对步骤S135的扩展,如图6所示:After the PCEF receives the RAR request, the processing logic for all online users in the group is extended for step S135, as shown in FIG. 6:
S135-1、执行本次会话(SessionID0)的带宽使用策略。S135-1. Perform a bandwidth usage policy of the session (SessionID0).
S135-2、解析RAR中SessionID的数量,当SessionID大于1时,执行步骤S135-3,如果不大于1,则执行步骤S140。S135-2. Analyze the number of SessionIDs in the RAR. When the SessionID is greater than 1, step S135-3 is performed. If it is not greater than 1, step S140 is performed.
S135-3、针对除SessionID0之外的SessionID也更换相应的带宽使用策略。 S135-3. The corresponding bandwidth usage policy is also replaced for the SessionID other than the SessionID0.
S140、PCEF回重鉴权响应(Re-Authentication Acknowledge,RAA)消息给PCRF。S140: A PCEF Re-Authentication Acknowledge (RAA) message is sent to the PCRF.
参阅图7A,本发明实施例提供的带宽控制的方法包括:Referring to FIG. 7A, a method for bandwidth control provided by an embodiment of the present invention includes:
S200、PCEF实体向OCS上报计费请求消息(Credit Control Request,CCR),CCR消息中可以携带流量的使用量。The S200 and the PCEF entity report a charging control request (CCR) to the OCS, and the CCR message can carry the usage of the traffic.
S205、OCS根据流量的使用量来扣费,并且预留,获取所述群组的流量总使用量。S205. The OCS deducts the fee according to the usage of the traffic, and reserves, and obtains the total traffic usage of the group.
S210、确定所述群组的流量总使用量超过预置门限。S210. Determine that the total traffic usage of the group exceeds a preset threshold.
S215、OCS发送SNR消息给PCRF,同时在该SNR请求中携带所有在线用户的标识和所述群组的总使用量超过预置门限的指示信息。S215. The OCS sends an SNR message to the PCRF, and the SNR request carries the identifiers of all online users and the indication that the total usage of the group exceeds a preset threshold.
也可以是,在SNR消息中携带所述流量总使用量,由PCRF根据流量总使用量来确定带宽,例如:总使用量为80G,相应的带宽为1Mbps。Alternatively, the total usage of the traffic is carried in the SNR message, and the bandwidth is determined by the PCRF according to the total usage of the traffic. For example, the total usage is 80 G, and the corresponding bandwidth is 1 Mbps.
S220、PCRF进行带宽决策。S220 and PCRF perform bandwidth decision.
PCRF可以是根据总使用量超过预置门限的指示信息确定相应的带宽,例如:当指示信息为1时,确定相应的带宽为2Mbps,当指示信息为2时,确定相应的带宽为1Mbps。The PCRF may determine the corresponding bandwidth according to the indication information that the total usage exceeds the preset threshold. For example, when the indication information is 1, the corresponding bandwidth is determined to be 2 Mbps, and when the indication information is 2, the corresponding bandwidth is determined to be 1 Mbps.
S225、PCRF在决策后会发送支付通知响应(Spending Notification Acknowledge,SNA)消息给OCS。S225: The PCRF sends a Payment Notification Acknowledge (SNA) message to the OCS after the decision.
S230、PCRF对于决策后需要指示PCEF来执行带宽控制,则对于由于同一个SNR请求引起的多个相同的带宽使用策略,PCRF下发RAR请求给PCEF,并在RAR中携带所有在线用户的SessionID和相应的带宽。S230: The PCRF needs to instruct the PCEF to perform bandwidth control after the decision, and the PCRF sends a RAR request to the PCEF for the same bandwidth usage policy caused by the same SNR request, and carries the session ID of all online users in the RAR. The corresponding bandwidth.
S235、PCEF执行PCRF的指示,不仅需要执行当前Session的宽使用策略规则,而且还需要提取关联SessionID来更新群组中其他在线用户的宽使用策略。S235. The PCEF performs the indication of the PCRF, and not only needs to execute the wide usage policy rule of the current session, but also needs to extract the associated SessionID to update the wide usage policy of other online users in the group.
群组中的所有在线用户使用新的带宽来上网。All online users in the group use the new bandwidth to access the Internet.
S240、PCEF回重鉴权响应(Re-Authentication Acknowledge,RAA)消息给PCRF。S240: A PCEF Re-Authentication Acknowledge (RAA) message is sent to the PCRF.
本发明实施例中,针对群组用户的场景,不需要针对群组中的每个用户都下发一个SNR消息和RAR消息,从而大幅度的减少了SNR消息和RAR消息,提高了系统资源的利用率。In the embodiment of the present invention, for a scenario of a group user, an SNR message and an RAR message are not required to be sent to each user in the group, thereby greatly reducing SNR messages and RAR messages, and improving system resources. Utilization rate.
参阅图7B,本发明实施例提供的带宽控制的方法,应用于流量监控系统的 在线计费系统OCS,所述流量监控系统还包括策略及计费执行功能PCEF实体和策略与计费规则功能PCRF实体,所述方法包括:Referring to FIG. 7B, a method for bandwidth control according to an embodiment of the present invention is applied to a traffic monitoring system. The online charging system OCS, the traffic monitoring system further includes a policy and charging execution function PCEF entity and a policy and charging rule function PCRF entity, the method comprising:
251、根据所述PCEF实体上报的群组中一用户的数据业务对群组流量的使用量,获取所述群组的流量总使用量;251. Obtain a total usage of the group according to the usage of the group traffic by the data service of the user in the group reported by the PCEF entity.
252、当所述群组的流量总使用量超过预置门限时,获取所述群组中的所有在线用户的标识;252. When the total traffic usage of the group exceeds a preset threshold, obtain an identifier of all online users in the group.
253、向所述PCRF实体发送通知消息,所述通知消息中携带所述所有在线用户的标识和所述群组的总使用量超过预置门限的指示信息。253. Send a notification message to the PCRF entity, where the notification message carries the identifiers of all the online users and the indication information that the total usage of the group exceeds a preset threshold.
与现有技术中如果群组中的一个用户的使用或订购触发达到了需要改变带宽策略的条件的时候,则需要对这个群组中的每个用户发送一个SNR消息给PCRF实体,导致SNR消息大量增加相比,本发明实施例提供的带宽控制的方法,可以在群组用户的带宽使用策略发生变化时,降低OCS与PCRF之间通知消息的数量,从而提高了系统资源的利用率。可选地,在上述图7B对应的实施例的基础上,本发明实施例提供的带宽控制的方法的另一实施例中,在所述根据PCEF实体上报的群组中一用户的数据业务对群组流量的使用量,获取所述群组的流量总使用量之前还可以包括:In the prior art, if the usage or subscription trigger of a user in the group reaches the condition that the bandwidth policy needs to be changed, then an SNR message needs to be sent to the PCRF entity for each user in the group, resulting in an SNR message. Compared with a large increase, the bandwidth control method provided by the embodiment of the present invention can reduce the number of notification messages between the OCS and the PCRF when the bandwidth usage policy of the group user changes, thereby improving the utilization of system resources. Optionally, on the basis of the foregoing embodiment corresponding to FIG. 7B, in another embodiment of the method for bandwidth control provided by the embodiment of the present invention, a data service pair of a user in the group reported by the PCEF entity The usage of the group traffic may also include:
接收PCEF上报的信用控制请求消息,所述信用控制请求消息中携带群组中一用户的数据业务对群组流量的使用量。Receiving a credit control request message reported by the PCEF, where the credit control request message carries the usage of the data traffic of a user in the group to the group traffic.
可选地,在上述图7B对应的实施例或可选实施例的基础上,本发明实施例提供的带宽控制的方法的另一实施例中,所述通知消息为SNR消息。Optionally, in another embodiment of the method for bandwidth control provided by the embodiment of the present invention, the notification message is an SNR message, on the basis of the foregoing embodiment or the optional embodiment.
参阅图7C,本发明实施例提供的带宽控制的方法,应用于流量监控系统的策略与计费规则功能PCRF实体,所述流量监控系统还包括策略及计费执行功能PCEF实体和在线计费系统OCS,所述方法包括:Referring to FIG. 7C, a method for bandwidth control according to an embodiment of the present invention is applied to a policy and charging rule function PCRF entity of a traffic monitoring system, where the traffic monitoring system further includes a policy and charging execution function PCEF entity and an online charging system. OCS, the method includes:
261、接收所述OCS发送的第一通知消息,所述第一通知消息中携带所述群组中的所有在线用户的标识和所述群组的总使用量超过预置门限的指示信息;261. Receive a first notification message that is sent by the OCS, where the first notification message carries the identifiers of all online users in the group and the indication information that the total usage of the group exceeds a preset threshold.
262、根据所述指示信息确定所述所有在线用户对应的调整后的带宽;262. Determine, according to the indication information, an adjusted bandwidth corresponding to all online users.
263、向所述PCEF实体发送第二通知消息,所述第二通知消息中携带所述所有在线用户的标识和所述调整后的带宽。263. Send a second notification message to the PCEF entity, where the second notification message carries the identifiers of all online users and the adjusted bandwidth.
与现有技术中如果群组中的一个用户的使用或订购触发达到了需要改变带宽策略的条件的时候,则需要对这个群组中的每个用户发送一个RAR消息给 PCEF实体,导致RAR消息大量增加相比,本发明实施例提供的带宽控制的方法,可以在群组用户的带宽使用策略发生变化时,降低PCRF与PCEF之间通知消息的数量,从而提高了系统资源的利用率。In the prior art, if the usage or subscription trigger of a user in the group reaches the condition that the bandwidth policy needs to be changed, then a RAR message needs to be sent to each user in the group. Compared with the PCEF entity, the RAR message is greatly increased. Compared with the bandwidth control method provided by the embodiment of the present invention, the number of notification messages between the PCRF and the PCEF can be reduced when the bandwidth usage policy of the group user changes, thereby improving the system. Utilization of resources.
可选地,在上述图7C对应的实施例的基础上,本发明实施例提供的带宽控制的方法的另一实施例中,所述根据指示信息确定所述所有在线用户对应的调整后的带宽可以包括:Optionally, in another embodiment of the method for bandwidth control provided by the embodiment of the present invention, the determining, according to the indication information, determining the adjusted bandwidth corresponding to all online users. Can include:
根据指示信息查找所述群组对应的带宽调整规则,确定所述群组中所有在线用户对应的调整后的带宽。And determining, according to the indication information, a bandwidth adjustment rule corresponding to the group, and determining an adjusted bandwidth corresponding to all online users in the group.
可选地,在上述图7C对应的实施例或可选实施例的基础上,本发明实施例提供的带宽控制的方法的另一实施例中,所述第二通知消息为RAR消息。Optionally, in another embodiment of the method for bandwidth control provided by the embodiment of the present invention, the second notification message is a RAR message, on the basis of the foregoing embodiment or the optional embodiment.
参阅图8,本发明实施例提供的带宽控制的方法,应用于流量监控系统的在线计费系统OCS,所述流量监控系统还包括策略及计费执行功能PCEF实体和策略与计费规则功能PCRF实体,所述方法可以包括:Referring to FIG. 8, a method for bandwidth control according to an embodiment of the present invention is applied to an online charging system OCS of a traffic monitoring system, where the traffic monitoring system further includes a policy and charging execution function PCEF entity and a policy and charging rule function PCRF. Entity, the method can include:
301、根据所述PCEF实体上报的群组中一用户的数据业务对群组流量的使用量,获取所述群组的流量总使用量。301. Obtain a total usage of the group according to the usage of the group traffic by the data service of the user in the group reported by the PCEF entity.
获取所述群组的流量总使用量的过程可以是将上报来的群组流量加上已用的群组流量计算得到的。The process of obtaining the total traffic usage of the group may be calculated by adding the reported group traffic to the used group traffic.
302、当所述群组的流量总使用量超过预置门限时,获取与所述预置门限对应的至少一个带宽等级,以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识。Obtaining, when the total traffic usage of the group exceeds a preset threshold, acquiring at least one bandwidth level corresponding to the preset threshold, and online users corresponding to the at least one bandwidth level in the group respectively Logo.
本发明实施例中的预置门限通常为百分比,例如:80%,例如:流量总用使用量超过预定总量的80%时,则获取所述群组中所有在线用户的标识和与所述预置门限对应的至少一个带宽等级。本发明实施例中,预置门限可以有一个或多个,与每个门限对应的带宽等级也可以有至少一个。预置门限可以是百分比,也可以是流量总使用量的具体数值,如:门限为80G,而不是百分比。The preset threshold in the embodiment of the present invention is usually a percentage, for example, 80%. For example, when the total usage of the traffic exceeds 80% of the predetermined total amount, the identifiers of all online users in the group are obtained and described. At least one bandwidth level corresponding to the preset threshold. In the embodiment of the present invention, the preset threshold may have one or more, and the bandwidth level corresponding to each threshold may also have at least one. The preset threshold can be a percentage or a specific value of the total usage of the traffic, such as a threshold of 80G instead of a percentage.
例如:带宽等级1对应2Mbps带宽,带宽等级2对应1M bps带宽。For example, bandwidth level 1 corresponds to 2 Mbps bandwidth, and bandwidth level 2 corresponds to 1 M bps bandwidth.
带宽等级可以用1、2等标识表示。The bandwidth level can be represented by 1, 2, etc.
303、向所述PCRF实体发送通知消息,所述通知消息中携带所述至少一个带宽等级以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识。 303. Send a notification message to the PCRF entity, where the notification message carries the at least one bandwidth level and an identifier of an online user corresponding to the at least one bandwidth level in the group.
本发明实施例提供的带宽控制的方法,应用于流量监控系统的在线计费系统OCS,所述流量监控系统还包括策略及计费执行功能PCEF实体和策略与计费规则功能PCRF实体,所述方法包括:根据所述PCEF实体上报的群组中一用户的数据业务对群组流量的使用量,获取所述群组的流量总使用量;当所述群组的流量总使用量超过预置门限时,获取与所述预置门限对应的至少一个带宽等级,以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识;向所述PCRF实体发送通知消息,所述通知消息中携带所述至少一个带宽等级以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识。与现有技术中如果群组中的一个用户的使用或订购触发达到了需要改变带宽策略的条件的时候,则需要对这个群组中的每个用户发送一个SNR消息给PCRF实体,导致SNR消息大量增加相比,本发明实施例提供的带宽控制的方法,可以在群组用户的带宽使用策略发生变化时,降低OCS与PCRF之间通知消息的数量,从而提高了系统资源的利用率。The method for bandwidth control provided by the embodiment of the present invention is applied to an online charging system OCS of a traffic monitoring system, where the traffic monitoring system further includes a policy and charging execution function PCEF entity and a policy and charging rule function PCRF entity, The method includes: acquiring, according to the usage of the group traffic by the data service of a user in the group reported by the PCEF entity, the total traffic usage of the group; and when the total traffic usage of the group exceeds the preset At the threshold, acquiring at least one bandwidth level corresponding to the preset threshold, and an identifier of the online user corresponding to the at least one bandwidth level in the group; sending a notification message to the PCRF entity, the notification The message carries the at least one bandwidth level and an identifier of the online user corresponding to the at least one bandwidth level in the group. In the prior art, if the usage or subscription trigger of a user in the group reaches the condition that the bandwidth policy needs to be changed, then an SNR message needs to be sent to the PCRF entity for each user in the group, resulting in an SNR message. Compared with a large increase, the bandwidth control method provided by the embodiment of the present invention can reduce the number of notification messages between the OCS and the PCRF when the bandwidth usage policy of the group user changes, thereby improving the utilization of system resources.
可选地,在上述图8对应的实施例的基础上,本发明实施例提供的带宽控制的方法的另一实施例中,所述通知消息中携带所述至少一个带宽等级,以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识之前,所述方法还包括:Optionally, in another embodiment of the method for controlling bandwidth according to the foregoing embodiment of the present disclosure, the notification message carries the at least one bandwidth level, and the group Before the identifier of the online user corresponding to the at least one bandwidth level in the group, the method further includes:
根据所述带宽等级对所述群组中的在线用户的标识进行分组;And grouping identifiers of online users in the group according to the bandwidth level;
所述向所述PCRF实体发送通知消息,所述通知消息中携带所述至少一个带宽等级,以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识,包括:Sending, to the PCRF entity, a notification message, where the notification message carries the at least one bandwidth level, and the identifier of the online user corresponding to the at least one bandwidth level in the group, including:
针对每个分组,向所述PCRF实体发送通知消息,所述每个分组对应的通知消息中携带每个分组对应的带宽等级,以及所述每个分组中的在线用户的标识。For each packet, a notification message is sent to the PCRF entity, and the notification message corresponding to each packet carries a bandwidth level corresponding to each packet, and an identifier of the online user in each packet.
本发明实施例中,将所有在线用户的标识进行拆分,可以避免SNR消息过大,导致发送失败。In the embodiment of the present invention, the identifiers of all online users are split, so that the SNR message is too large, and the transmission fails.
可选地,在上述图8对应实施例或可选实施例的基础上,本发明实施例提供的带宽控制的方法的另一实施例中,所述获取与所述预置门限对应的至少一个带宽等级,以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识,可以包括:Optionally, in another embodiment of the method for bandwidth control provided by the embodiment of the present invention, the acquiring at least one corresponding to the preset threshold is performed on the basis of the foregoing embodiment or the optional embodiment of FIG. The identifier of the online user corresponding to the at least one bandwidth level in the group may include:
从流量门限与带宽等级的对应关系中,获取与所述预置门限对应的至少一 个带宽等级,并获取所述群组中与所述至少一个带宽等级分别对应的用户标识;Obtaining at least one corresponding to the preset threshold from a correspondence between a traffic threshold and a bandwidth level a bandwidth level, and acquiring a user identifier corresponding to the at least one bandwidth level in the group;
根据预先记录的所述群组中用户的状态,获取所述群组中与所述至少一个带宽等级分别对应的在线用户的标识。And determining, according to the pre-recorded status of the user in the group, an identifier of the online user corresponding to the at least one bandwidth level in the group.
本发明实施例中,在一个策略中可以包括至少一个带宽等级,每个带宽等级都可以有对应的用户组,然后根据用户的在线状态,确定与每个带宽等级对应的在线用户的标识即可。In the embodiment of the present invention, at least one bandwidth level may be included in a policy, and each bandwidth level may have a corresponding user group, and then the identifier of the online user corresponding to each bandwidth level may be determined according to the online state of the user. .
本发明图8对应的实施例或可选实施例提供的带宽控制的方法可以参阅图1至图6部分的描述进行理解,本处不做过多赘述。The method for controlling the bandwidth provided by the embodiment or the optional embodiment of the present invention can be understood by referring to the description in the parts of FIG. 1 to FIG. 6 , and no further description is provided herein.
参阅图9,本发明实施例提供的带宽控制的方法,应用于流量监控系统的策略与计费规则功能PCRF实体,所述流量监控系统还包括策略及计费执行功能PCEF实体和在线计费系统OCS,所述方法包括:Referring to FIG. 9, a method for bandwidth control according to an embodiment of the present invention is applied to a policy and charging rule function PCRF entity of a traffic monitoring system, where the traffic monitoring system further includes a policy and charging execution function PCEF entity and an online charging system. OCS, the method includes:
401、接收所述OCS发送的第一通知消息,所述第一通知消息中携带至少一个带宽等级以及群组中与所述至少一个带宽等级分别对应的在线用户的标识。401. Receive a first notification message that is sent by the OCS, where the first notification message carries at least one bandwidth level and an identifier of an online user corresponding to the at least one bandwidth level in the group.
402、确定与所述至少一个带宽等级分别对应的带宽。402. Determine a bandwidth corresponding to each of the at least one bandwidth level.
403、向所述PCEF实体发送第二通知消息,所述第二通知消息中携带所述至少一个带宽等级分别对应的带宽以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识。403. Send a second notification message to the PCEF entity, where the second notification message carries a bandwidth corresponding to the at least one bandwidth level and an online user corresponding to the at least one bandwidth level in the group respectively. Logo.
本发明实施例提供的带宽控制的方法,应用于流量监控系统的策略与计费规则功能PCRF实体,所述流量监控系统还包括策略及计费执行功能PCEF实体和在线计费系统OCS,所述方法包括:接收所述OCS发送的第一通知消息,所述第一通知消息中携带至少一个带宽等级以及群组中与所述至少一个带宽等级分别对应的在线用户的标识;确定与所述至少一个带宽等级分别对应的带宽;向所述PCEF实体发送第二通知消息,所述第二通知消息中携带所述至少一个带宽等级分别对应的带宽以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识。与现有技术中如果群组中的一个用户的使用或订购触发达到了需要改变带宽策略的条件的时候,则需要对这个群组中的每个用户发送一个RAR消息给PCEF实体,导致RAR消息大量增加相比,本发明实施例提供的带宽控制的方法,可以在群组用户的带宽使用策略发生变化时,降低PCRF与PCEF之间通知消息的数量,从而提高了系统资源的利用率。The bandwidth control method provided by the embodiment of the present invention is applied to a policy and charging rule function PCRF entity of a traffic monitoring system, where the traffic monitoring system further includes a policy and charging execution function PCEF entity and an online charging system OCS, The method includes: receiving a first notification message sent by the OCS, where the first notification message carries at least one bandwidth level and an identifier of an online user corresponding to the at least one bandwidth level in the group; determining and at least a bandwidth corresponding to a bandwidth level; sending a second notification message to the PCEF entity, where the second notification message carries a bandwidth corresponding to the at least one bandwidth level and the at least one bandwidth level in the group Corresponding online user IDs. In the prior art, if the usage or subscription trigger of a user in the group reaches the condition that the bandwidth policy needs to be changed, then a RAR message needs to be sent to the PCEF entity for each user in the group, resulting in a RAR message. Compared with a large amount of increase, the bandwidth control method provided by the embodiment of the present invention can reduce the number of notification messages between the PCRF and the PCEF when the bandwidth usage policy of the group user changes, thereby improving the utilization of system resources.
可选地,在上述图9对应的实施例的基础上,本发明实施例提供的带宽控制 的方法的另一实施例中,所述向所述PCEF实体发送第二通知消息,所述第二通知消息中携带所述至少一个带宽等级分别对应的带宽以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识之前,所述方法还可以包括:Optionally, the bandwidth control provided by the embodiment of the present invention is provided on the basis of the foregoing embodiment corresponding to FIG. In another embodiment of the method, the sending, by the PCEF entity, a second notification message, where the second notification message carries a bandwidth corresponding to the at least one bandwidth level and the at least one of the group and the at least one Before the identifier of the online user corresponding to the bandwidth level, the method may further include:
根据所述带宽等级对所述群组中的在线用户的标识进行分组;And grouping identifiers of online users in the group according to the bandwidth level;
所述向所述PCEF实体发送第二通知消息,所述第二通知消息中携带所述至少一个带宽等级分别对应的带宽以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识,可以包括:Transmitting, to the PCEF entity, a second notification message, where the second notification message carries a bandwidth corresponding to the at least one bandwidth level and an online user corresponding to the at least one bandwidth level in the group respectively Identification, which can include:
针对每个分组,向所述PCEF实体发送与所述每个分组对应的第二通知消息,所述每个分组对应的第二通知消息中携带所述每个分组的带宽等级对应的带宽以及与所述每个分组中的在线用户的标识。And sending, to the PCEF entity, a second notification message corresponding to each of the packets, and the second notification message corresponding to each packet carries a bandwidth corresponding to a bandwidth level of each packet and The identity of the online user in each of the packets.
本发明图9对应的实施例或可选实施例提供的带宽控制的方法可以参阅图1至图6部分的描述进行理解,本处不做过多赘述。The method for controlling the bandwidth provided by the embodiment or the optional embodiment of the present invention can be understood by referring to the description in the parts of FIG. 1 to FIG. 6 , and no further description is made herein.
参阅图10,本发明实施例提供的带宽控制的装置50,应用于流量监控系统的在线计费系统OCS,所述流量监控系统还包括策略及计费执行功能PCEF实体和策略与计费规则功能PCRF实体,所述装置50包括:Referring to FIG. 10, the bandwidth control apparatus 50 provided by the embodiment of the present invention is applied to an online charging system OCS of a traffic monitoring system, and the traffic monitoring system further includes a policy and charging execution function PCEF entity and a policy and charging rule function. The PCRF entity, the device 50 includes:
第一获取单元511,用于根据所述PCEF实体上报的群组中一用户的数据业务对群组流量的使用量,获取所述群组的流量总使用量;The first obtaining unit 511 is configured to acquire, according to the usage amount of the group traffic of the data service of the user in the group reported by the PCEF entity, the total traffic usage of the group;
第二获取单元512,用于当所述第一获取单元511获取的所述群组的流量总使用量超过预置门限时,获取所述群组中的所有在线用户的标识;The second obtaining unit 512 is configured to acquire, when the total usage of the traffic of the group acquired by the first acquiring unit 511 exceeds a preset threshold, an identifier of all online users in the group;
发送单元513,用于向所述PCRF实体发送通知消息,所述通知消息中携带所述第二获取单元512获取的所述所有在线用户的标识和所述群组的总使用量超过预置门限的指示信息。The sending unit 513 is configured to send a notification message to the PCRF entity, where the identifier of the all online users that is acquired by the second acquiring unit 512 and the total usage of the group exceed a preset threshold. Instructions.
本发明实施例提供的带宽控制的装置,可以在群组用户的带宽使用策略发生变化时,降低OCS与PCRF之间通知消息的数量,从而提高了系统资源的利用率。The bandwidth control device provided by the embodiment of the present invention can reduce the number of notification messages between the OCS and the PCRF when the bandwidth usage policy of the group user changes, thereby improving the utilization of system resources.
可选地,在上述图10对应的实施例的基础上,参阅图11,本发明实施例提供的带宽控制的装置50的另一实施例中,所述装置50还包括:Optionally, on the basis of the foregoing embodiment corresponding to FIG. 10, referring to FIG. 11, in another embodiment of the bandwidth control apparatus 50 provided by the embodiment of the present invention, the apparatus 50 further includes:
接收单元514,用于在所述第一获取单元511根据PCEF实体上报的群组中一用户的数据业务对群组流量的使用量,获取所述群组的流量总使用量之前,接收PCEF上报的信用控制请求消息,所述信用控制请求消息中携带群组中一用户 的数据业务对群组流量的使用量。The receiving unit 514 is configured to receive the PCEF report before the first acquiring unit 511 obtains the total traffic usage of the group according to the usage of the group traffic by the data service of the user in the group reported by the PCEF entity. Credit control request message, the credit control request message carrying a user in the group The amount of data traffic used by the group traffic.
参阅图12,本发明实施例提供的带宽控制装置60,应用于流量监控系统的策略与计费规则功能PCRF实体,所述流量监控系统还包括策略及计费执行功能PCEF实体和在线计费系统OCS,所述装置60包括:Referring to FIG. 12, a bandwidth control apparatus 60 according to an embodiment of the present invention is applied to a policy and charging rule function PCRF entity of a traffic monitoring system, where the traffic monitoring system further includes a policy and charging execution function PCEF entity and an online charging system. OCS, the device 60 includes:
接收单元611,用于接收所述OCS发送的第一通知消息,所述第一通知消息中携带所述群组中的所有在线用户的标识和所述群组的总使用量超过预置门限的指示信息;The receiving unit 611 is configured to receive a first notification message that is sent by the OCS, where the first notification message carries an identifier of all online users in the group, and a total usage of the group exceeds a preset threshold. Indication information;
确定单元612,用于根据所述接收单元611接收的所述指示信息确定所述所有在线用户对应的调整后的带宽;a determining unit 612, configured to determine, according to the indication information received by the receiving unit 611, an adjusted bandwidth corresponding to all online users;
发送单元613,用于向所述PCEF实体发送第二通知消息,所述第二通知消息中携带所述所有在线用户的标识和所述确定单元612确定的所述调整后的带宽。The sending unit 613 is configured to send a second notification message to the PCEF entity, where the second notification message carries the identifiers of all online users and the adjusted bandwidth determined by the determining unit 612.
与现有技术中如果群组中的一个用户的使用或订购触发达到了需要改变带宽策略的条件的时候,则需要对这个群组中的每个用户发送一个RAR消息给PCEF实体,导致RAR消息大量增加相比,本发明实施例提供的带宽控制的装置,可以在群组用户的带宽使用策略发生变化时,降低PCRF与PCEF之间通知消息的数量,从而提高了系统资源的利用率。In the prior art, if the usage or subscription trigger of a user in the group reaches the condition that the bandwidth policy needs to be changed, then a RAR message needs to be sent to the PCEF entity for each user in the group, resulting in a RAR message. Compared with a large amount of increase, the device for bandwidth control provided by the embodiment of the present invention can reduce the number of notification messages between the PCRF and the PCEF when the bandwidth usage policy of the group user changes, thereby improving the utilization of system resources.
可选地,在上述图12对应的实施例的基础上,本发明实施例提供的带宽控制的装置60的另一实施例中,Optionally, in another embodiment of the bandwidth control apparatus 60 provided by the embodiment of the present invention, in another embodiment of the foregoing FIG.
所述确定单元612,具体用于根据指示信息查找所述群组对应的带宽调整规则,确定所述群组中所有在线用户对应的调整后的带宽。The determining unit 612 is specifically configured to search for a bandwidth adjustment rule corresponding to the group according to the indication information, and determine an adjusted bandwidth corresponding to all online users in the group.
参阅图13,本发明实施例提供的带宽控制的装置50,应用于流量监控系统的在线计费系统OCS,所述流量监控系统还包括策略及计费执行功能PCEF实体和策略与计费规则功能PCRF实体,所述装置50包括:Referring to FIG. 13, the bandwidth control apparatus 50 provided by the embodiment of the present invention is applied to an online charging system OCS of a traffic monitoring system, and the traffic monitoring system further includes a policy and charging execution function PCEF entity and a policy and charging rule function. The PCRF entity, the device 50 includes:
第一获取单元501,用于根据所述PCEF实体上报的群组中一用户的数据业务对群组流量的使用量,获取所述群组的流量总使用量;The first obtaining unit 501 is configured to acquire, according to the usage amount of the group traffic of the data service of the user in the group reported by the PCEF entity, the total traffic usage of the group;
第二获取单元502,用于当所述第一获取单元501获取的所述群组的流量总使用量超过预置门限时,获取与所述预置门限对应的至少一个带宽等级,以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识;The second obtaining unit 502 is configured to acquire, when the total usage of the traffic of the group acquired by the first acquiring unit 501 exceeds a preset threshold, at least one bandwidth level corresponding to the preset threshold, and the An identifier of an online user corresponding to the at least one bandwidth level in the group;
发送单元503,用于向所述PCRF实体发送通知消息,所述通知消息中携带 所述第二获取单元502获取的所述至少一个带宽等级以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识。The sending unit 503 is configured to send a notification message to the PCRF entity, where the notification message is carried in the notification message. The at least one bandwidth level acquired by the second obtaining unit 502 and an identifier of an online user corresponding to the at least one bandwidth level in the group.
本发明实施例提供的带宽控制的装置50,应用于流量监控系统的在线计费系统OCS,所述流量监控系统还包括策略及计费执行功能PCEF实体和策略与计费规则功能PCRF实体,所述装置50包括:第一获取单元501,用于根据所述PCEF实体上报的群组中一用户的数据业务对群组流量的使用量,获取所述群组的流量总使用量;第二获取单元502,用于当所述第一获取单元501获取的所述群组的流量总使用量超过预置门限时,获取与所述预置门限对应的至少一个带宽等级,以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识;发送单元503,用于向所述PCRF实体发送通知消息,所述通知消息中携带所述第二获取单元502获取的所述至少一个带宽等级以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识,本发明实施例提供的带宽控制的装置,可以在群组用户的带宽使用策略发生变化时,降低OCS与PCRF之间通知消息的数量,从而提高了系统资源的利用率。The bandwidth control device 50 provided by the embodiment of the present invention is applied to an online charging system OCS of a traffic monitoring system, where the traffic monitoring system further includes a policy and charging execution function PCEF entity and a policy and charging rule function PCRF entity. The device 50 includes: a first obtaining unit 501, configured to acquire, according to the usage amount of the group traffic of the data service of a user in the group reported by the PCEF entity, the total traffic usage of the group; The unit 502 is configured to acquire, when the total usage of the traffic of the group acquired by the first acquiring unit 501 exceeds a preset threshold, at least one bandwidth level corresponding to the preset threshold, and in the group And an identifier of the online user corresponding to the at least one bandwidth level; the sending unit 503 is configured to send a notification message to the PCRF entity, where the notification message carries the at least one bandwidth acquired by the second obtaining unit 502 a level and an identifier of the online user corresponding to the at least one bandwidth level in the group, and the bandwidth control device provided by the embodiment of the present invention may When group user bandwidth usage policy changes reduce the number of notification messages between the PCRF and the OCS, thereby improving the utilization of the system resources.
可选地,在上述图13对应的实施例的基础上,参阅图14,本发明实施例提供的带宽控制的装置50的另一实施例中,Optionally, on the basis of the foregoing embodiment corresponding to FIG. 13, referring to FIG. 14, in another embodiment of the bandwidth control apparatus 50 provided by the embodiment of the present invention,
分组单元504,用于根据所述带宽等级对所述群组中的在线用户的标识进行分组;a grouping unit 504, configured to group identifiers of online users in the group according to the bandwidth level;
所述发送单元503,具体用于针对所述分组单元504划分后的每个分组,向所述PCRF实体发送通知消息,所述每个分组对应的通知消息中携带每个分组对应的带宽等级,以及所述每个分组中的在线用户的标识。The sending unit 503 is specifically configured to send, to the PCRF entity, a notification message for each packet that is divided by the grouping unit 504, where the notification message corresponding to each packet carries a bandwidth level corresponding to each packet. And an identification of the online user in each of the groups.
可选地,在上述图13或图14对应的实施例的基础上,本发明实施例提供的带宽控制的装置50的另一实施例中,Optionally, in another embodiment of the bandwidth control apparatus 50 provided by the embodiment of the present invention, in another embodiment of the foregoing FIG. 13 or FIG.
所述第二获取单元502,具体用于从流量门限与带宽等级的对应关系中,获取与所述预置门限对应的至少一个带宽等级,并获取所述群组中与所述至少一个带宽等级分别对应的用户标识;根据预先记录的所述群组中用户的状态,获取所述群组中与所述至少一个带宽等级分别对应的在线用户的标识。The second obtaining unit 502 is configured to acquire at least one bandwidth level corresponding to the preset threshold, and obtain the at least one bandwidth level in the group, and the corresponding relationship between the traffic threshold and the bandwidth level. Corresponding user identifiers are obtained; and the identifiers of the online users corresponding to the at least one bandwidth level in the group are obtained according to the pre-recorded state of the user in the group.
本发明图13和图14对应的实施例或可选实施例提供的带宽控制的装置可以参阅图1至图6部分的描述进行理解,本处不做过多赘述。The device for controlling the bandwidth provided by the embodiment or the optional embodiment of the present invention can be understood by referring to the description in the parts of FIG. 1 to FIG. 6 , and no further description is made herein.
参阅图15,本发明实施例提供的带宽控制的装置60,应用于流量监控系统 的策略与计费规则功能PCRF实体,所述流量监控系统还包括策略及计费执行功能PCEF实体和在线计费系统OCS,所述装置60包括:Referring to FIG. 15, a device 60 for bandwidth control according to an embodiment of the present invention is applied to a traffic monitoring system. The policy and charging rule function is a PCRF entity. The traffic monitoring system further includes a policy and charging execution function PCEF entity and an online charging system OCS. The device 60 includes:
接收单元601,用于接收所述OCS发送的第一通知消息,所述第一通知消息中携带至少一个带宽等级以及群组中与所述至少一个带宽等级分别对应的在线用户的标识;The receiving unit 601 is configured to receive a first notification message that is sent by the OCS, where the first notification message carries at least one bandwidth level and an identifier of an online user corresponding to the at least one bandwidth level in the group respectively;
确定单元602,用于确定与所述接收单元601接收的所述至少一个带宽等级分别对应的带宽;a determining unit 602, configured to determine a bandwidth respectively corresponding to the at least one bandwidth level received by the receiving unit 601;
发送单元603,用于向所述PCEF实体发送第二通知消息,所述第二通知消息中携带所述确定单元602确定的所述至少一个带宽等级分别对应的带宽以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识。The sending unit 603 is configured to send, to the PCEF entity, a second notification message, where the second notification message carries a bandwidth corresponding to the at least one bandwidth level determined by the determining unit 602, and a location and a location in the group The identifier of the online user corresponding to the at least one bandwidth level.
本发明实施例提供的带宽控制的装置60,应用于流量监控系统的策略与计费规则功能PCRF实体,所述流量监控系统还包括策略及计费执行功能PCEF实体和在线计费系统OCS,所述装置60包括:接收单元601接收所述OCS发送的第一通知消息,所述第一通知消息中携带至少一个带宽等级以及群组中与所述至少一个带宽等级分别对应的在线用户的标识;确定单元602确定与所述接收单元601接收的所述至少一个带宽等级分别对应的带宽;发送单元603向所述PCEF实体发送第二通知消息,所述第二通知消息中携带所述确定单元602确定的所述至少一个带宽等级分别对应的带宽以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识。与现有技术中如果群组中的一个用户的使用或订购触发达到了需要改变带宽策略的条件的时候,则需要对这个群组中的每个用户发送一个RAR消息给PCEF实体,导致RAR消息大量增加相比,本发明实施例提供的带宽控制的装置,可以在群组用户的带宽使用策略发生变化时,降低PCRF与PCEF之间通知消息的数量,从而提高了系统资源的利用率。The bandwidth control device 60 provided by the embodiment of the present invention is applied to a policy and charging rule function PCRF entity of a traffic monitoring system, where the traffic monitoring system further includes a policy and charging execution function PCEF entity and an online charging system OCS. The device 60 includes: the receiving unit 601 receiving the first notification message sent by the OCS, where the first notification message carries at least one bandwidth level and an identifier of an online user corresponding to the at least one bandwidth level in the group; The determining unit 602 determines a bandwidth respectively corresponding to the at least one bandwidth level received by the receiving unit 601; the sending unit 603 sends a second notification message to the PCEF entity, where the determining unit 602 is carried in the second notification message. Determining, respectively, the bandwidth corresponding to the at least one bandwidth level and the identifier of the online user corresponding to the at least one bandwidth level in the group. In the prior art, if the usage or subscription trigger of a user in the group reaches the condition that the bandwidth policy needs to be changed, then a RAR message needs to be sent to the PCEF entity for each user in the group, resulting in a RAR message. Compared with a large amount of increase, the device for bandwidth control provided by the embodiment of the present invention can reduce the number of notification messages between the PCRF and the PCEF when the bandwidth usage policy of the group user changes, thereby improving the utilization of system resources.
可选地,在上述图15对应的实施例的基础上,参阅图16,本发明实施例提供的带宽控制的装置60的另一实施例中,所述装置60还包括:Optionally, on the basis of the foregoing embodiment corresponding to FIG. 15, referring to FIG. 16, in another embodiment of the bandwidth control apparatus 60 provided by the embodiment of the present invention, the apparatus 60 further includes:
分组单元604,用于根据所述带宽等级对所述群组中的在线用户的标识进行分组;a grouping unit 604, configured to group identifiers of online users in the group according to the bandwidth level;
所述发送单元603,具体用于针对每个分组,向所述PCEF实体发送与所述每个分组对应的第二通知消息,所述每个分组对应的第二通知消息中携带所述每个分组的带宽等级对应的带宽以及与所述每个分组中的在线用户的标识。 The sending unit 603 is specifically configured to: send, for each packet, a second notification message corresponding to each of the packets to the PCEF entity, where the second notification message corresponding to each packet carries the each The bandwidth corresponding to the bandwidth level of the packet and the identity of the online user in each of the packets.
本发明图15或图16对应的实施例或可选实施例提供的带宽控制的装置可以参阅图1至图6、图8部分的描述进行理解,本处不做过多赘述。The apparatus for bandwidth control provided by the embodiment or the optional embodiment of the present invention may be understood by referring to the description of the parts in FIG. 1 to FIG. 6 and FIG. 8 , and no further description is made herein.
图17是本发明实施例中带宽控制的装置50的结构示意图。应用于流量监控系统的在线计费系统OCS,所述流量监控系统还包括策略及计费执行功能PCEF实体和策略与计费规则功能PCRF实体,带宽控制的装置50可包括输入设备510、输出设备520、处理器530和存储器540。FIG. 17 is a schematic structural diagram of a device 50 for bandwidth control according to an embodiment of the present invention. The online charging system OCS applied to the traffic monitoring system, the traffic monitoring system further includes a policy and charging execution function PCEF entity and a policy and charging rule function PCRF entity, and the bandwidth control device 50 may include an input device 510 and an output device. 520. Processor 530 and memory 540.
存储器540可以包括只读存储器和随机存取存储器,并向处理器530提供指令和数据。存储器540的一部分还可以包括非易失性随机存取存储器(NVRAM)。Memory 540 can include read only memory and random access memory and provides instructions and data to processor 530. A portion of memory 540 may also include non-volatile random access memory (NVRAM).
存储器540存储了如下的元素,可执行模块或者数据结构,或者它们的子集,或者它们的扩展集:Memory 540 stores the following elements, executable modules or data structures, or subsets thereof, or their extended sets:
操作指令:包括各种操作指令,用于实现各种操作。Operation instructions: include various operation instructions for implementing various operations.
操作系统:包括各种系统程序,用于实现各种基础业务以及处理基于硬件的任务。Operating system: Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
在本发明实施例中,处理器530通过调用存储器540存储的操作指令(该操作指令可存储在操作系统中),执行如下操作:In the embodiment of the present invention, the processor 530 performs the following operations by calling an operation instruction stored in the memory 540 (the operation instruction can be stored in the operating system):
根据所述PCEF实体上报的群组中一用户的数据业务对群组流量的使用量,获取所述群组的流量总使用量;Obtaining the total traffic usage of the group according to the usage of the group traffic by the data service of the user in the group reported by the PCEF entity;
当所述群组的流量总使用量超过预置门限时,获取与所述预置门限对应的至少一个带宽等级,以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识;Obtaining at least one bandwidth level corresponding to the preset threshold, and an identifier of an online user corresponding to the at least one bandwidth level in the group, when the total traffic usage of the group exceeds a preset threshold ;
通过输出设备520向所述PCRF实体发送通知消息,所述通知消息中携带所述至少一个带宽等级以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识。And sending, by the output device 520, the notification message to the PCRF entity, where the notification message carries the at least one bandwidth level and an identifier of an online user corresponding to the at least one bandwidth level in the group.
与现有技术中如果群组中的一个用户的使用或订购触发达到了需要改变带宽策略的条件的时候,则需要对这个群组中的每个用户发送一个SNR消息给PCRF实体,导致SNR消息大量增加相比,本发明实施例提供的带宽控制的装置,可以在群组用户的带宽使用策略发生变化时,降低OCS与PCRF之间通知消息的数量,从而提高了系统资源的利用率。 In the prior art, if the usage or subscription trigger of a user in the group reaches the condition that the bandwidth policy needs to be changed, then an SNR message needs to be sent to the PCRF entity for each user in the group, resulting in an SNR message. Compared with a large amount of increase, the device for bandwidth control provided by the embodiment of the present invention can reduce the number of notification messages between the OCS and the PCRF when the bandwidth usage policy of the group user changes, thereby improving the utilization of system resources.
处理器530控制为带宽控制的装置50的操作,处理器530还可以称为CPU(Central Processing Unit,中央处理单元)。存储器540可以包括只读存储器和随机存取存储器,并向处理器530提供指令和数据。存储器540的一部分还可以包括非易失性随机存取存储器(NVRAM)。具体的应用中,为带宽控制的装置50的各个组件通过总线系统550耦合在一起,其中总线系统550除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统550。The processor 530 is controlled to operate as a bandwidth controlled device 50, which may also be referred to as a CPU (Central Processing Unit). Memory 540 can include read only memory and random access memory and provides instructions and data to processor 530. A portion of memory 540 may also include non-volatile random access memory (NVRAM). In a specific application, the various components of the bandwidth controlled device 50 are coupled together by a bus system 550, which may include, in addition to the data bus, a power bus, a control bus, a status signal bus, and the like. However, for clarity of description, various buses are labeled as bus system 550 in the figure.
上述本发明实施例揭示的方法可以应用于处理器530中,或者由处理器530实现。处理器530可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器530中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器530可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器540,处理器530读取存储器540中的信息,结合其硬件完成上述方法的步骤。The method disclosed in the foregoing embodiments of the present invention may be applied to the processor 530 or implemented by the processor 530. Processor 530 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 530 or an instruction in a form of software. The processor 530 described above may be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or discrete hardware. Component. The methods, steps, and logical block diagrams disclosed in the embodiments of the present invention may be implemented or carried out. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present invention may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor. The software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like. The storage medium is located in the memory 540, and the processor 530 reads the information in the memory 540 and performs the steps of the above method in combination with its hardware.
可选地,所述处理器530还用于根据所述带宽等级对所述群组中的在线用户的标识进行分组;Optionally, the processor 530 is further configured to group identifiers of online users in the group according to the bandwidth level;
输出设备520具体用于:针对每个分组,向所述PCRF实体发送通知消息,所述每个分组对应的通知消息中携带每个分组对应的带宽等级,以及所述每个分组中的在线用户的标识。The output device 520 is specifically configured to: send, for each packet, a notification message to the PCRF entity, where the notification message corresponding to each packet carries a bandwidth level corresponding to each packet, and an online user in each packet Logo.
可选地,所述处理器530具体用于:Optionally, the processor 530 is specifically configured to:
从流量门限与带宽等级的对应关系中,获取与所述预置门限对应的至少一个带宽等级,并获取所述群组中与所述至少一个带宽等级分别对应的用户标识;Acquiring at least one bandwidth level corresponding to the preset threshold, and acquiring a user identifier corresponding to the at least one bandwidth level in the group, in a correspondence between a traffic threshold and a bandwidth level;
根据预先记录的所述群组中用户的状态,获取所述群组中与所述至少一个带宽等级分别对应的在线用户的标识。 And determining, according to the pre-recorded status of the user in the group, an identifier of the online user corresponding to the at least one bandwidth level in the group.
本发明实施例图17部分所描述的内容可以参阅图1至图7C部分的内容进行理解,本处不做过多赘述。The content described in the section of FIG. 17 of the embodiment of the present invention can be understood by referring to the contents of the parts of FIG. 1 to FIG. 7C, and the details are not described herein.
另一方面,在本发明实施例中,处理器530通过调用存储器540存储的操作指令(该操作指令可存储在操作系统中),执行如下操作:On the other hand, in the embodiment of the present invention, the processor 530 performs the following operations by calling an operation instruction stored in the memory 540 (the operation instruction can be stored in the operating system):
根据所述PCEF实体上报的群组中一用户的数据业务对群组流量的使用量,获取所述群组的流量总使用量;Obtaining the total traffic usage of the group according to the usage of the group traffic by the data service of the user in the group reported by the PCEF entity;
当所述群组的流量总使用量超过预置门限时,获取所述群组中的所有在线用户的标识;Obtaining identifiers of all online users in the group when the total traffic usage of the group exceeds a preset threshold;
通过输出设备520向所述PCRF实体发送通知消息,所述通知消息中携带所述所有在线用户的标识和所述群组的总使用量超过预置门限的指示信息。And sending, by the output device 520, the notification message to the PCRF entity, where the notification message carries the identifiers of all the online users and the indication information that the total usage of the group exceeds a preset threshold.
可选地,所述输入设备510用于在所述根据PCEF实体上报的群组中一用户的数据业务对群组流量的使用量,获取所述群组的流量总使用量之前,接收PCEF上报的信用控制请求消息,所述信用控制请求消息中携带群组中一用户的数据业务对群组流量的使用量。Optionally, the input device 510 is configured to receive a PCEF report before the total traffic usage of the group is obtained by using the data traffic of the user in the group reported by the PCEF entity to obtain the total traffic usage of the group. The credit control request message carries the usage of the data traffic of a user in the group to the group traffic.
图18是本发明实施例带宽控制的装置60的结构示意图。所述装置应用于流量监控系统的策略与计费规则功能PCRF实体,所述流量监控系统还包括策略及计费执行功能PCEF实体和在线计费系统OCS,带宽控制的装置60可包括输入设备610、输出设备620、处理器630和存储器640。FIG. 18 is a schematic structural diagram of a device 60 for bandwidth control according to an embodiment of the present invention. The device is applied to a policy and charging rule function PCRF entity of a traffic monitoring system, the traffic monitoring system further includes a policy and charging execution function PCEF entity and an online charging system OCS, and the bandwidth controlling device 60 may include an input device 610. An output device 620, a processor 630, and a memory 640.
存储器640可以包括只读存储器和随机存取存储器,并向处理器630提供指令和数据。存储器640的一部分还可以包括非易失性随机存取存储器(NVRAM)。Memory 640 can include read only memory and random access memory and provides instructions and data to processor 630. A portion of the memory 640 may also include non-volatile random access memory (NVRAM).
存储器640存储了如下的元素,可执行模块或者数据结构,或者它们的子集,或者它们的扩展集:The memory 640 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof:
操作指令:包括各种操作指令,用于实现各种操作。Operation instructions: include various operation instructions for implementing various operations.
操作系统:包括各种系统程序,用于实现各种基础业务以及处理基于硬件的任务。Operating system: Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
在本发明实施例中,处理器630通过调用存储器640存储的操作指令(该操作指令可存储在操作系统中),执行如下操作:In the embodiment of the present invention, the processor 630 performs the following operations by calling an operation instruction stored in the memory 640 (the operation instruction can be stored in the operating system):
通过输入设备610接接收所述OCS发送的第一通知消息,所述第一通知消息 中携带至少一个带宽等级以及群组中与所述至少一个带宽等级分别对应的在线用户的标识;Receiving, by the input device 610, a first notification message sent by the OCS, where the first notification message is received Carrying at least one bandwidth level and an identifier of an online user corresponding to the at least one bandwidth level in the group;
确定与所述至少一个带宽等级分别对应的带宽;Determining a bandwidth respectively corresponding to the at least one bandwidth level;
通过输出设备620向所述PCEF实体发送第二通知消息,所述第二通知消息中携带所述至少一个带宽等级分别对应的带宽以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识。Transmitting, by the output device 620, the second notification message to the PCEF entity, where the second notification message carries a bandwidth corresponding to the at least one bandwidth level and an online corresponding to the at least one bandwidth level in the group respectively User's identity.
与现有技术中如果群组中的一个用户的使用或订购触发达到了需要改变带宽策略的条件的时候,则需要对这个群组中的每个用户发送一个RAR消息给PCEF实体,导致RAR消息大量增加相比,本发明实施例提供的带宽控制的装置,可以在群组用户的带宽使用策略发生变化时,降低PCRF与PCEF之间通知消息的数量,从而提高了系统资源的利用率。In the prior art, if the usage or subscription trigger of a user in the group reaches the condition that the bandwidth policy needs to be changed, then a RAR message needs to be sent to the PCEF entity for each user in the group, resulting in a RAR message. Compared with a large amount of increase, the device for bandwidth control provided by the embodiment of the present invention can reduce the number of notification messages between the PCRF and the PCEF when the bandwidth usage policy of the group user changes, thereby improving the utilization of system resources.
处理器630控制带宽控制的装置60的操作,处理器630还可以称为CPU(Central Processing Unit,中央处理单元)。存储器640可以包括只读存储器和随机存取存储器,并向处理器630提供指令和数据。存储器640的一部分还可以包括非易失性随机存取存储器(NVRAM)。具体的应用中,带宽控制的装置60的各个组件通过总线系统650耦合在一起,其中总线系统650除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统650。The processor 630 controls the operation of the bandwidth controlled device 60, which may also be referred to as a CPU (Central Processing Unit). Memory 640 can include read only memory and random access memory and provides instructions and data to processor 630. A portion of the memory 640 may also include non-volatile random access memory (NVRAM). In a specific application, the various components of the bandwidth controlled device 60 are coupled together by a bus system 650, which may include, in addition to the data bus, a power bus, a control bus, a status signal bus, and the like. However, for clarity of description, various buses are labeled as bus system 650 in the figure.
上述本发明实施例揭示的方法可以应用于处理器630中,或者由处理器630实现。处理器630可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器630中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器630可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器640,处理器630读取存储器640中的信息,结合其硬件完成 上述方法的步骤。The method disclosed in the foregoing embodiments of the present invention may be applied to the processor 630 or implemented by the processor 630. Processor 630 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 630 or an instruction in a form of software. The processor 630 described above may be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or discrete hardware. Component. The methods, steps, and logical block diagrams disclosed in the embodiments of the present invention may be implemented or carried out. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present invention may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor. The software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like. The storage medium is located in the memory 640, and the processor 630 reads the information in the memory 640 and completes it in combination with hardware. The steps of the above method.
可选地,所述处理器630还用于根据所述带宽等级对所述群组中的在线用户的标识进行分组;Optionally, the processor 630 is further configured to group identifiers of online users in the group according to the bandwidth level;
所述输出设备620具体用于针对每个分组,向所述PCEF实体发送与所述每个分组对应的第二通知消息,所述每个分组对应的第二通知消息中携带所述每个分组的带宽等级对应的带宽以及与所述每个分组中的在线用户的标识。The output device 620 is specifically configured to: send, for each packet, a second notification message corresponding to each of the packets to the PCEF entity, where the second notification message corresponding to each packet carries the each packet The bandwidth corresponding to the bandwidth level and the identity of the online user in each of the packets.
本发明实施例图18部分所描述的内容可以参阅图1至图6部分的内容进行理解,本处不做过多赘述。The content described in the FIG. 18 of the embodiment of the present invention can be understood by referring to the contents of the parts in FIG. 1 to FIG. 6 , and the details are not described herein.
另一方面,在本发明实施例中,处理器630通过调用存储器640存储的操作指令(该操作指令可存储在操作系统中),执行如下操作:On the other hand, in the embodiment of the present invention, the processor 630 performs the following operations by calling an operation instruction stored in the memory 640 (the operation instruction can be stored in the operating system):
通过输入设备610接收所述OCS发送的第一通知消息,所述第一通知消息中携带所述群组中的所有在线用户的标识和所述群组的总使用量超过预置门限的指示信息;Receiving, by the input device 610, the first notification message that is sent by the OCS, where the first notification message carries the identifier of all online users in the group and the indication information that the total usage of the group exceeds a preset threshold. ;
根据所述指示信息确定所述所有在线用户对应的调整后的带宽;Determining, according to the indication information, an adjusted bandwidth corresponding to all online users;
通过输出设备620向所述PCEF实体发送第二通知消息,所述第二通知消息中携带所述所有在线用户的标识和所述调整后的带宽。The second notification message is sent to the PCEF entity by the output device 620, where the identifier of the online user and the adjusted bandwidth are carried in the second notification message.
可选地,所述处理器630根据指示信息查找所述群组对应的带宽调整规则,确定所述群组中所有在线用户对应的调整后的带宽。Optionally, the processor 630 searches for a bandwidth adjustment rule corresponding to the group according to the indication information, and determines an adjusted bandwidth corresponding to all online users in the group.
可选地,所述第二通知消息为RAR消息。Optionally, the second notification message is a RAR message.
参阅图19,本发明实施例提供的流量监控系统的一实施例包括:在线计费系统OCS70、策略及计费执行功能PCEF实体80和策略与计费规则功能PCRF实体90,Referring to FIG. 19, an embodiment of a traffic monitoring system according to an embodiment of the present invention includes: an online charging system OCS70, a policy and charging execution function PCEF entity 80, and a policy and charging rule function PCRF entity 90.
所述OCS70用于:The OCS70 is used to:
根据所述PCEF实体上报的群组中一用户的数据业务对群组流量的使用量,获取所述群组的流量总使用量;Obtaining the total traffic usage of the group according to the usage of the group traffic by the data service of the user in the group reported by the PCEF entity;
当所述群组的流量总使用量超过预置门限时,获取与所述预置门限对应的至少一个带宽等级,以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识;Obtaining at least one bandwidth level corresponding to the preset threshold, and an identifier of an online user corresponding to the at least one bandwidth level in the group, when the total traffic usage of the group exceeds a preset threshold ;
向所述PCRF实体发送第一通知消息,所述第一通知消息中携带所述至少一 个带宽等级以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识;Sending a first notification message to the PCRF entity, where the first notification message carries the at least one a bandwidth level and an identifier of the online user corresponding to the at least one bandwidth level in the group;
所述PCRF实体90用于:The PCRF entity 90 is used to:
接收所述OCS发送的第一通知消息,所述第一通知消息中携带至少一个带宽等级以及群组中与所述至少一个带宽等级分别对应的在线用户的标识;Receiving a first notification message that is sent by the OCS, where the first notification message carries at least one bandwidth level and an identifier of an online user corresponding to the at least one bandwidth level in the group;
确定与所述至少一个带宽等级分别对应的带宽;Determining a bandwidth respectively corresponding to the at least one bandwidth level;
向所述PCEF实体发送第二通知消息,所述第二通知消息中携带所述至少一个带宽等级分别对应的带宽以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识。Sending a second notification message to the PCEF entity, where the second notification message carries a bandwidth corresponding to the at least one bandwidth level and an identifier of an online user corresponding to the at least one bandwidth level in the group respectively.
本发明实施例提供的流量监控系统,不需要针对群组中的每个用户都下发一个SNR消息和RAR消息,从而大幅度的减少了SNR消息和RAR消息,提高了系统资源的利用率。The traffic monitoring system provided by the embodiment of the present invention does not need to send an SNR message and a RAR message for each user in the group, thereby greatly reducing the SNR message and the RAR message, and improving the utilization of system resources.
另一方面,所述OCS70用于:In another aspect, the OCS 70 is used to:
根据所述PCEF实体上报的群组中一用户的数据业务对群组流量的使用量,获取所述群组的流量总使用量;Obtaining the total traffic usage of the group according to the usage of the group traffic by the data service of the user in the group reported by the PCEF entity;
当所述群组的流量总使用量超过预置门限时,获取所述群组中的所有在线用户的标识;Obtaining identifiers of all online users in the group when the total traffic usage of the group exceeds a preset threshold;
向所述PCRF实体发送第一通知消息,所述第一通知消息中携带所述所有在线用户的标识和所述群组的总使用量超过预置门限的指示信息;Transmitting, by the PCRF entity, a first notification message, where the first notification message carries the identifiers of all the online users and the indication information that the total usage of the group exceeds a preset threshold;
所述PCRF实体90用于:The PCRF entity 90 is used to:
接收所述OCS发送的第一通知消息,所述第一通知消息中携带所述群组中的所有在线用户的标识和所述群组的总使用量超过预置门限的指示信息;Receiving a first notification message that is sent by the OCS, where the first notification message carries the identifiers of all online users in the group and the indication information that the total usage of the group exceeds a preset threshold;
根据所述指示信息确定所述所有在线用户对应的调整后的带宽;Determining, according to the indication information, an adjusted bandwidth corresponding to all online users;
向所述PCEF实体发送第二通知消息,所述第二通知消息中携带所述所有在线用户的标识和所述调整后的带宽。Sending a second notification message to the PCEF entity, where the second notification message carries the identifiers of all online users and the adjusted bandwidth.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件(例如处理器)来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:ROM、RAM、磁盘或光盘等。A person of ordinary skill in the art may understand that all or part of the steps of the foregoing embodiments may be completed by a program to instruct related hardware (for example, a processor), and the program may be stored in a computer readable storage medium. The storage medium may include: a ROM, a RAM, a magnetic disk, or an optical disk.
以上对本发明实施例所提供的带宽控制的方法、装置以及系统进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实 施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。 The method, device and system for bandwidth control provided by the embodiments of the present invention are described in detail above. The specific examples are used to explain the principles and implementation manners of the present invention. The description of the embodiment is only for helping to understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific embodiment and application range. The description herein is not to be construed as limiting the invention.

Claims (22)

  1. 一种带宽控制的方法,其特征在于,所述方法应用于流量监控系统的在线计费系统OCS,所述流量监控系统还包括策略及计费执行功能PCEF实体和策略与计费规则功能PCRF实体,所述方法包括:A method for bandwidth control, characterized in that the method is applied to an online charging system OCS of a traffic monitoring system, the traffic monitoring system further comprising a policy and charging execution function PCEF entity and a policy and charging rule function PCRF entity , the method includes:
    根据所述PCEF实体上报的群组中一用户的数据业务对群组流量的使用量,获取所述群组的流量总使用量;Obtaining the total traffic usage of the group according to the usage of the group traffic by the data service of the user in the group reported by the PCEF entity;
    当所述群组的流量总使用量超过预置门限时,获取所述群组中的所有在线用户的标识;Obtaining identifiers of all online users in the group when the total traffic usage of the group exceeds a preset threshold;
    向所述PCRF实体发送通知消息,所述通知消息中携带所述所有在线用户的标识和所述群组的总使用量超过预置门限的指示信息。Sending a notification message to the PCRF entity, where the notification message carries the identifiers of all the online users and the indication information that the total usage of the group exceeds a preset threshold.
  2. 根据权利要求1所述的方法,其特征在于,在所述根据PCEF实体上报的群组中一用户的数据业务对群组流量的使用量,获取所述群组的流量总使用量之前还包括:The method according to claim 1, wherein the usage of the group traffic by the data service of the user in the group reported by the PCEF entity is further included before the total traffic usage of the group is obtained. :
    接收PCEF上报的信用控制请求消息,所述信用控制请求消息中携带群组中一用户的数据业务对群组流量的使用量。Receiving a credit control request message reported by the PCEF, where the credit control request message carries the usage of the data traffic of a user in the group to the group traffic.
  3. 根据权利要求1或2所述的方法,其特征在于,所述通知消息为SNR消息。The method according to claim 1 or 2, wherein the notification message is an SNR message.
  4. 一种带宽控制的方法,其特征在于,所述方法应用于流量监控系统的策略与计费规则功能PCRF实体,所述流量监控系统还包括策略及计费执行功能PCEF实体和在线计费系统OCS,所述方法包括:A method for bandwidth control, characterized in that the method is applied to a policy and charging rule function PCRF entity of a traffic monitoring system, and the traffic monitoring system further comprises a policy and charging execution function PCEF entity and an online charging system OCS , the method includes:
    接收所述OCS发送的第一通知消息,所述第一通知消息中携带所述群组中的所有在线用户的标识和所述群组的总使用量超过预置门限的指示信息;Receiving a first notification message that is sent by the OCS, where the first notification message carries the identifiers of all online users in the group and the indication information that the total usage of the group exceeds a preset threshold;
    根据所述指示信息确定所述所有在线用户对应的调整后的带宽;Determining, according to the indication information, an adjusted bandwidth corresponding to all online users;
    向所述PCEF实体发送第二通知消息,所述第二通知消息中携带所述所有在线用户的标识和所述调整后的带宽。Sending a second notification message to the PCEF entity, where the second notification message carries the identifiers of all online users and the adjusted bandwidth.
  5. 根据权利要求4所述的方法,其特征在于,所述根据指示信息确定所述所有在线用户对应的调整后的带宽包括:The method according to claim 4, wherein the determining, according to the indication information, the adjusted bandwidth corresponding to the all online users comprises:
    根据指示信息查找所述群组对应的带宽调整规则,确定所述群组中所有在线用户对应的调整后的带宽。And determining, according to the indication information, a bandwidth adjustment rule corresponding to the group, and determining an adjusted bandwidth corresponding to all online users in the group.
  6. 根据权利要求4或5所述的方法,其特征在于,所述第二通知消息为RAR消息。 The method according to claim 4 or 5, wherein the second notification message is a RAR message.
  7. 一种带宽控制的方法,其特征在于,所述方法应用于流量监控系统的在线计费系统OCS,所述流量监控系统还包括策略及计费执行功能PCEF实体和策略与计费规则功能PCRF实体,所述方法包括:A method for bandwidth control, characterized in that the method is applied to an online charging system OCS of a traffic monitoring system, the traffic monitoring system further comprising a policy and charging execution function PCEF entity and a policy and charging rule function PCRF entity , the method includes:
    根据所述PCEF实体上报的群组中一用户的数据业务对群组流量的使用量,获取所述群组的流量总使用量;Obtaining the total traffic usage of the group according to the usage of the group traffic by the data service of the user in the group reported by the PCEF entity;
    当所述群组的流量总使用量超过预置门限时,获取与所述预置门限对应的至少一个带宽等级,以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识;Obtaining at least one bandwidth level corresponding to the preset threshold, and an identifier of an online user corresponding to the at least one bandwidth level in the group, when the total traffic usage of the group exceeds a preset threshold ;
    向所述PCRF实体发送通知消息,所述通知消息中携带所述至少一个带宽等级以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识。Sending a notification message to the PCRF entity, where the notification message carries the at least one bandwidth level and an identifier of an online user corresponding to the at least one bandwidth level in the group.
  8. 根据权利要求7所述的方法,其特征在于,所述向所述PCRF实体发送通知消息,所述通知消息中携带所述至少一个带宽等级,以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识之前,所述方法还包括:The method according to claim 7, wherein the sending a notification message to the PCRF entity, the notification message carrying the at least one bandwidth level, and the at least one bandwidth level in the group Before the identification of the corresponding online user, the method further includes:
    根据所述带宽等级对所述群组中的在线用户的标识进行分组;And grouping identifiers of online users in the group according to the bandwidth level;
    所述向所述PCRF实体发送通知消息,所述通知消息中携带所述至少一个带宽等级,以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识,包括:Sending, to the PCRF entity, a notification message, where the notification message carries the at least one bandwidth level, and the identifier of the online user corresponding to the at least one bandwidth level in the group, including:
    针对每个分组,向所述PCRF实体发送通知消息,所述每个分组对应的通知消息中携带每个分组对应的带宽等级,以及所述每个分组中的在线用户的标识。For each packet, a notification message is sent to the PCRF entity, and the notification message corresponding to each packet carries a bandwidth level corresponding to each packet, and an identifier of the online user in each packet.
  9. 根据权利要求7或8所述的方法,其特征在于,所述获取与所述预置门限对应的至少一个带宽等级,以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识,包括:The method according to claim 7 or 8, wherein the acquiring at least one bandwidth level corresponding to the preset threshold, and the online user corresponding to the at least one bandwidth level in the group respectively Logo, including:
    从流量门限与带宽等级的对应关系中,获取与所述预置门限对应的至少一个带宽等级,并获取所述群组中与所述至少一个带宽等级分别对应的用户标识;Acquiring at least one bandwidth level corresponding to the preset threshold, and acquiring a user identifier corresponding to the at least one bandwidth level in the group, in a correspondence between a traffic threshold and a bandwidth level;
    根据预先记录的所述群组中用户的状态,获取所述群组中与所述至少一个带宽等级分别对应的在线用户的标识。And determining, according to the pre-recorded status of the user in the group, an identifier of the online user corresponding to the at least one bandwidth level in the group.
  10. 一种带宽控制的方法,其特征在于,所述方法应用于流量监控系统的策略与计费规则功能PCRF实体,所述流量监控系统还包括策略及计费执行功能PCEF实体和在线计费系统OCS,所述方法包括:A method for bandwidth control, characterized in that the method is applied to a policy and charging rule function PCRF entity of a traffic monitoring system, and the traffic monitoring system further comprises a policy and charging execution function PCEF entity and an online charging system OCS , the method includes:
    接收所述OCS发送的第一通知消息,所述第一通知消息中携带至少一个带 宽等级以及群组中与所述至少一个带宽等级分别对应的在线用户的标识;Receiving a first notification message sent by the OCS, where the first notification message carries at least one band a wide level and an identifier of the online user corresponding to the at least one bandwidth level in the group;
    确定与所述至少一个带宽等级分别对应的带宽;Determining a bandwidth respectively corresponding to the at least one bandwidth level;
    向所述PCEF实体发送第二通知消息,所述第二通知消息中携带所述至少一个带宽等级分别对应的带宽以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识。Sending a second notification message to the PCEF entity, where the second notification message carries a bandwidth corresponding to the at least one bandwidth level and an identifier of an online user corresponding to the at least one bandwidth level in the group respectively.
  11. 根据权利要求10所述的方法,其特征在于,所述向所述PCEF实体发送第二通知消息,所述第二通知消息中携带所述至少一个带宽等级分别对应的带宽以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识之前,所述方法还包括:The method according to claim 10, wherein the sending, by the PCEF entity, a second notification message, where the second notification message carries a bandwidth corresponding to the at least one bandwidth level and the group Before the identifier of the online user corresponding to the at least one bandwidth level, the method further includes:
    根据所述带宽等级对所述群组中的在线用户的标识进行分组;And grouping identifiers of online users in the group according to the bandwidth level;
    所述向所述PCEF实体发送第二通知消息,所述第二通知消息中携带所述至少一个带宽等级分别对应的带宽以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识,包括:Transmitting, to the PCEF entity, a second notification message, where the second notification message carries a bandwidth corresponding to the at least one bandwidth level and an online user corresponding to the at least one bandwidth level in the group respectively Logo, including:
    针对每个分组,向所述PCEF实体发送与所述每个分组对应的第二通知消息,所述每个分组对应的第二通知消息中携带所述每个分组的带宽等级对应的带宽以及与所述每个分组中的在线用户的标识。And sending, to the PCEF entity, a second notification message corresponding to each of the packets, and the second notification message corresponding to each packet carries a bandwidth corresponding to a bandwidth level of each packet and The identity of the online user in each of the packets.
  12. 一种带宽控制的装置,其特征在于,所述装置应用于流量监控系统的在线计费系统OCS,所述流量监控系统还包括策略及计费执行功能PCEF实体和策略与计费规则功能PCRF实体,所述装置包括:A bandwidth control device, wherein the device is applied to an online charging system OCS of a traffic monitoring system, the traffic monitoring system further comprising a policy and charging execution function PCEF entity and a policy and charging rule function PCRF entity The device includes:
    第一获取单元,用于根据所述PCEF实体上报的群组中一用户的数据业务对群组流量的使用量,获取所述群组的流量总使用量;a first acquiring unit, configured to acquire, according to the usage amount of the group traffic of the data service of the user in the group reported by the PCEF entity, the total traffic usage of the group;
    第二获取单元,用于当所述第一获取单元获取的所述群组的流量总使用量超过预置门限时,获取所述群组中的所有在线用户的标识;a second acquiring unit, configured to acquire, when the total usage of the traffic of the group acquired by the first acquiring unit exceeds a preset threshold, an identifier of all online users in the group;
    发送单元,用于向所述PCRF实体发送通知消息,所述通知消息中携带所述第二获取单元获取的所述所有在线用户的标识和所述群组的总使用量超过预置门限的指示信息。a sending unit, configured to send, to the PCRF entity, a notification message, where the notification message carries an indication that the identifiers of all online users acquired by the second acquiring unit and the total usage of the group exceed a preset threshold information.
  13. 根据权利要求12所述的装置,其特征在于,所述装置还包括:The device of claim 12, wherein the device further comprises:
    接收单元,用于在所述第一获取单元根据PCEF实体上报的群组中一用户的数据业务对群组流量的使用量,获取所述群组的流量总使用量之前,接收PCEF上报的信用控制请求消息,所述信用控制请求消息中携带群组中一用户的数据 业务对群组流量的使用量。a receiving unit, configured to receive, by the first acquiring unit, the credit reported by the PCEF before acquiring the total traffic usage of the group according to the usage of the data traffic of the data service of the user in the group reported by the PCEF entity Controlling a request message, where the credit control request message carries data of a user in the group The amount of traffic used by the business for group traffic.
  14. 一种带宽控制的装置,其特征在于,所述装置应用于流量监控系统的策略与计费规则功能PCRF实体,所述流量监控系统还包括策略及计费执行功能PCEF实体和在线计费系统OCS,所述装置包括:A bandwidth control device, wherein the device is applied to a policy and charging rule function PCRF entity of a traffic monitoring system, the traffic monitoring system further comprising a policy and charging execution function PCEF entity and an online charging system OCS The device includes:
    接收单元,用于接收所述OCS发送的第一通知消息,所述第一通知消息中携带所述群组中的所有在线用户的标识和所述群组的总使用量超过预置门限的指示信息;a receiving unit, configured to receive a first notification message that is sent by the OCS, where the first notification message carries an identifier of all online users in the group, and an indication that a total usage of the group exceeds a preset threshold information;
    确定单元,用于根据所述接收单元接收的所述指示信息确定所述所有在线用户对应的调整后的带宽;a determining unit, configured to determine, according to the indication information received by the receiving unit, an adjusted bandwidth corresponding to all online users;
    发送单元,用于向所述PCEF实体发送第二通知消息,所述第二通知消息中携带所述所有在线用户的标识和所述确定单元确定的所述调整后的带宽。And a sending unit, configured to send a second notification message to the PCEF entity, where the second notification message carries the identifiers of all online users and the adjusted bandwidth determined by the determining unit.
  15. 根据权利要求14所述的装置,其特征在于,The device of claim 14 wherein:
    所述确定单元,具体用于根据指示信息查找所述群组对应的带宽调整规则,确定所述群组中所有在线用户对应的调整后的带宽。The determining unit is specifically configured to search for a bandwidth adjustment rule corresponding to the group according to the indication information, and determine an adjusted bandwidth corresponding to all online users in the group.
  16. 一种带宽控制的装置,其特征在于,所述装置应用于流量监控系统的在线计费系统OCS,所述流量监控系统还包括策略及计费执行功能PCEF实体和策略与计费规则功能PCRF实体,所述装置包括:A bandwidth control device, wherein the device is applied to an online charging system OCS of a traffic monitoring system, the traffic monitoring system further comprising a policy and charging execution function PCEF entity and a policy and charging rule function PCRF entity The device includes:
    第一获取单元,用于根据所述PCEF实体上报的群组中一用户的数据业务对群组流量的使用量,获取所述群组的流量总使用量;a first acquiring unit, configured to acquire, according to the usage amount of the group traffic of the data service of the user in the group reported by the PCEF entity, the total traffic usage of the group;
    第二获取单元,用于当所述第一获取单元获取的所述群组的流量总使用量超过预置门限时,获取与所述预置门限对应的至少一个带宽等级,以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识;a second acquiring unit, configured to acquire at least one bandwidth level corresponding to the preset threshold, and the group when the total traffic usage of the group acquired by the first acquiring unit exceeds a preset threshold An identifier of an online user corresponding to the at least one bandwidth level;
    发送单元,用于向所述PCRF实体发送通知消息,所述通知消息中携带所述第二获取单元获取的所述至少一个带宽等级以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识。a sending unit, configured to send, to the PCRF entity, a notification message, where the notification message carries the at least one bandwidth level acquired by the second acquiring unit, and corresponding to the at least one bandwidth level in the group respectively The identity of the online user.
  17. 根据权利要求16所述的装置,其特征在于,所述装置还包括:The device according to claim 16, wherein the device further comprises:
    分组单元,用于根据所述带宽等级对所述群组中的在线用户的标识进行分组;a grouping unit, configured to group identifiers of online users in the group according to the bandwidth level;
    所述发送单元,具体用于针对所述分组单元划分后的每个分组,向所述PCRF实体发送通知消息,所述每个分组对应的通知消息中携带每个分组对应的 带宽等级,以及所述每个分组中的在线用户的标识。The sending unit is configured to send, to the PCRF entity, a notification message for each packet that is divided by the grouping unit, where the notification message corresponding to each packet carries a corresponding The bandwidth level, and the identity of the online user in each of the packets.
  18. 根据权利要求16或17所述的装置,其特征在于,A device according to claim 16 or 17, wherein
    所述第二获取单元,具体用于从流量门限与带宽等级的对应关系中,获取与所述预置门限对应的至少一个带宽等级,并获取所述群组中与所述至少一个带宽等级分别对应的用户标识;根据预先记录的所述群组中用户的状态,获取所述群组中与所述至少一个带宽等级分别对应的在线用户的标识。The second acquiring unit is configured to obtain at least one bandwidth level corresponding to the preset threshold, and obtain the at least one bandwidth level in the group, respectively, from a correspondence between a traffic threshold and a bandwidth level. And corresponding identifiers of the online users corresponding to the at least one bandwidth level in the group are obtained according to the pre-recorded state of the user in the group.
  19. 一种带宽控制的装置,其特征在于,所述装置应用于流量监控系统的策略与计费规则功能PCRF实体,所述流量监控系统还包括策略及计费执行功能PCEF实体和在线计费系统OCS,所述装置包括:A bandwidth control device, wherein the device is applied to a policy and charging rule function PCRF entity of a traffic monitoring system, the traffic monitoring system further comprising a policy and charging execution function PCEF entity and an online charging system OCS The device includes:
    接收单元,用于接收所述OCS发送的第一通知消息,所述第一通知消息中携带至少一个带宽等级以及群组中与所述至少一个带宽等级分别对应的在线用户的标识;a receiving unit, configured to receive a first notification message that is sent by the OCS, where the first notification message carries at least one bandwidth level and an identifier of an online user corresponding to the at least one bandwidth level in the group;
    确定单元,用于确定与所述接收单元接收的所述至少一个带宽等级分别对应的带宽;a determining unit, configured to determine a bandwidth respectively corresponding to the at least one bandwidth level received by the receiving unit;
    发送单元,用于向所述PCEF实体发送第二通知消息,所述第二通知消息中携带所述确定单元确定的所述至少一个带宽等级分别对应的带宽以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识。a sending unit, configured to send, to the PCEF entity, a second notification message, where the second notification message carries a bandwidth corresponding to the at least one bandwidth level determined by the determining unit, and the at least one of the group and the at least one The identifier of an online user corresponding to a bandwidth level.
  20. 根据权利要求19所述的装置,其特征在于,所述装置还包括:The device of claim 19, wherein the device further comprises:
    分组单元,用于根据所述带宽等级对所述群组中的在线用户的标识进行分组;a grouping unit, configured to group identifiers of online users in the group according to the bandwidth level;
    所述发送单元,具体用于针对每个分组,向所述PCEF实体发送与所述每个分组对应的第二通知消息,所述每个分组对应的第二通知消息中携带所述每个分组的带宽等级对应的带宽以及与所述每个分组中的在线用户的标识。The sending unit is configured to: send, for each packet, a second notification message corresponding to each of the packets to the PCEF entity, where the second notification message corresponding to each packet carries the each packet The bandwidth corresponding to the bandwidth level and the identity of the online user in each of the packets.
  21. 一种流量监控系统,其特征在于,包括:在线计费系统OCS、策略及计费执行功能PCEF实体和策略与计费规则功能PCRF实体,A traffic monitoring system, comprising: an online charging system OCS, a policy and charging execution function PCEF entity, and a policy and charging rule function PCRF entity,
    所述OCS用于:The OCS is used to:
    根据所述PCEF实体上报的群组中一用户的数据业务对群组流量的使用量,获取所述群组的流量总使用量;Obtaining the total traffic usage of the group according to the usage of the group traffic by the data service of the user in the group reported by the PCEF entity;
    当所述群组的流量总使用量超过预置门限时,获取所述群组中的所有在线用户的标识; Obtaining identifiers of all online users in the group when the total traffic usage of the group exceeds a preset threshold;
    向所述PCRF实体发送第一通知消息,所述第一通知消息中携带所述所有在线用户的标识和所述群组的总使用量超过预置门限的指示信息;Transmitting, by the PCRF entity, a first notification message, where the first notification message carries the identifiers of all the online users and the indication information that the total usage of the group exceeds a preset threshold;
    所述PCRF实体用于:The PCRF entity is used to:
    接收所述OCS发送的第一通知消息,所述第一通知消息中携带所述群组中的所有在线用户的标识和所述群组的总使用量超过预置门限的指示信息;Receiving a first notification message that is sent by the OCS, where the first notification message carries the identifiers of all online users in the group and the indication information that the total usage of the group exceeds a preset threshold;
    根据所述指示信息确定所述所有在线用户对应的调整后的带宽;Determining, according to the indication information, an adjusted bandwidth corresponding to all online users;
    向所述PCEF实体发送第二通知消息,所述第二通知消息中携带所述所有在线用户的标识和所述调整后的带宽。Sending a second notification message to the PCEF entity, where the second notification message carries the identifiers of all online users and the adjusted bandwidth.
  22. 一种流量监控系统,其特征在于,包括:在线计费系统OCS、策略及计费执行功能PCEF实体和策略与计费规则功能PCRF实体,A traffic monitoring system, comprising: an online charging system OCS, a policy and charging execution function PCEF entity, and a policy and charging rule function PCRF entity,
    所述OCS用于:The OCS is used to:
    根据所述PCEF实体上报的群组中一用户的数据业务对群组流量的使用量,获取所述群组的流量总使用量;Obtaining the total traffic usage of the group according to the usage of the group traffic by the data service of the user in the group reported by the PCEF entity;
    当所述群组的流量总使用量超过预置门限时,获取与所述预置门限对应的至少一个带宽等级,以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识;Obtaining at least one bandwidth level corresponding to the preset threshold, and an identifier of an online user corresponding to the at least one bandwidth level in the group, when the total traffic usage of the group exceeds a preset threshold ;
    向所述PCRF实体发送通知消息,所述第一通知消息中携带所述至少一个带宽等级以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识;Sending a notification message to the PCRF entity, where the first notification message carries the at least one bandwidth level and an identifier of an online user corresponding to the at least one bandwidth level in the group;
    所述PCRF实体用于:The PCRF entity is used to:
    接收所述OCS发送的第一通知消息,所述第一通知消息中携带至少一个带宽等级以及群组中与所述至少一个带宽等级分别对应的在线用户的标识;Receiving a first notification message that is sent by the OCS, where the first notification message carries at least one bandwidth level and an identifier of an online user corresponding to the at least one bandwidth level in the group;
    确定与所述至少一个带宽等级分别对应的带宽;Determining a bandwidth respectively corresponding to the at least one bandwidth level;
    向所述PCEF实体发送第二通知消息,所述第二通知消息中携带所述至少一个带宽等级分别对应的带宽以及所述群组中与所述至少一个带宽等级分别对应的在线用户的标识。 Sending a second notification message to the PCEF entity, where the second notification message carries a bandwidth corresponding to the at least one bandwidth level and an identifier of an online user corresponding to the at least one bandwidth level in the group respectively.
PCT/CN2015/096439 2014-12-30 2015-12-04 Bandwidth control method, apparatus and system WO2016107374A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410853262.2A CN105813046A (en) 2014-12-30 2014-12-30 Bandwidth control method, device and system
CN201410853262.2 2014-12-30

Publications (1)

Publication Number Publication Date
WO2016107374A1 true WO2016107374A1 (en) 2016-07-07

Family

ID=56284197

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/096439 WO2016107374A1 (en) 2014-12-30 2015-12-04 Bandwidth control method, apparatus and system

Country Status (2)

Country Link
CN (1) CN105813046A (en)
WO (1) WO2016107374A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112672364A (en) * 2019-10-16 2021-04-16 中国移动通信有限公司研究院 Policy configuration method and device, related equipment and storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106330746B (en) * 2016-08-30 2019-04-16 成都科来软件有限公司 The method and device of national flow in a kind of statistics network
CN108076477B (en) * 2016-11-15 2021-10-29 中兴通讯股份有限公司 Data traffic monitoring method, device and system
CN109462489A (en) * 2018-12-27 2019-03-12 中国移动通信集团江苏有限公司 A kind of method, device and equipment of synchronizing information

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296092A (en) * 2007-04-26 2008-10-29 华为技术有限公司 User service data charging method, system and equipment
EP2107728A1 (en) * 2007-06-15 2009-10-07 Huawei Technologies Co., Ltd. Method, system and entity for implementing policy control
CN101945368A (en) * 2009-07-06 2011-01-12 华为技术有限公司 Group charging method, charging processor and communication system
CN102904740A (en) * 2011-07-28 2013-01-30 中兴通讯股份有限公司 Method and system for monitoring usage of group users
CN102984768A (en) * 2012-11-09 2013-03-20 华为技术有限公司 Method and device of real-time adjustment of on-line user bandwidth under shared charge rule

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100546258C (en) * 2007-07-24 2009-09-30 华为技术有限公司 Implementation strategy and the methods, devices and systems that charge and control
CN101754161B (en) * 2008-12-18 2013-03-27 中兴通讯股份有限公司 Method for realizing policy and charging control
CN103782624A (en) * 2012-08-31 2014-05-07 华为技术有限公司 Bandwidth control method, device and system
CN104168665A (en) * 2014-08-07 2014-11-26 华为软件技术有限公司 Method for processing conversation service, OSC and PCRF solid

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296092A (en) * 2007-04-26 2008-10-29 华为技术有限公司 User service data charging method, system and equipment
EP2107728A1 (en) * 2007-06-15 2009-10-07 Huawei Technologies Co., Ltd. Method, system and entity for implementing policy control
CN101945368A (en) * 2009-07-06 2011-01-12 华为技术有限公司 Group charging method, charging processor and communication system
CN102904740A (en) * 2011-07-28 2013-01-30 中兴通讯股份有限公司 Method and system for monitoring usage of group users
CN102984768A (en) * 2012-11-09 2013-03-20 华为技术有限公司 Method and device of real-time adjustment of on-line user bandwidth under shared charge rule

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112672364A (en) * 2019-10-16 2021-04-16 中国移动通信有限公司研究院 Policy configuration method and device, related equipment and storage medium
CN112672364B (en) * 2019-10-16 2024-03-19 中国移动通信有限公司研究院 Policy configuration method, device, related equipment and storage medium

Also Published As

Publication number Publication date
CN105813046A (en) 2016-07-27

Similar Documents

Publication Publication Date Title
US10609225B2 (en) Charging method, apparatus, and system
EP3331263B1 (en) Policy decision method and charging device
JP6468502B2 (en) Billing session management method and apparatus
US20120259747A1 (en) Method and apparatus for controlling service traffic in a communication network
US8897749B1 (en) Policy decisions based on subscriber spending limits
US11689669B2 (en) Quota allocation to subscribers based on consumption speed, location, allowance, or combinations of the same
WO2015196599A1 (en) Traffic control method and apparatus
WO2016107374A1 (en) Bandwidth control method, apparatus and system
US9749477B2 (en) Solution to enforce time and usage threshold for monitoring
US20160373590A1 (en) Method, system and apparatus for adaptive quota determination for shared resources
US20200252763A1 (en) Differentiated Abatement of Charging Requests in Case of Overload at Online Charging System
CN104168665A (en) Method for processing conversation service, OSC and PCRF solid
WO2015058549A1 (en) Service synchronization method, content management device and policy management device
WO2018076974A1 (en) Policy control method, apparatus and system
WO2012083779A1 (en) Policy control method and device
WO2012071956A1 (en) Method, system and apparatus for supporting sponsored data connectivity in roaming scenarios
US9769325B2 (en) Method and apparatus for online charging of pre-fetched content
US9936082B2 (en) Method, system and apparatus for processing low-balance data session requests
JP7132239B2 (en) Machine-to-machine network optimization and online billing
WO2016110063A1 (en) Network control method and device
WO2018228215A1 (en) Wireless communication method and device
WO2017161522A1 (en) Method, apparatus and system for collecting statistics of amount of flow usage
CN108781475B (en) Event reporting method and device
WO2018201810A1 (en) Pcrf entity, storage medium, race-condition removal method and system
WO2012041148A1 (en) Method and system for monitoring volume usage

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15875052

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15875052

Country of ref document: EP

Kind code of ref document: A1