CN108512770B - Data flow distribution method and related equipment - Google Patents

Data flow distribution method and related equipment Download PDF

Info

Publication number
CN108512770B
CN108512770B CN201710113050.4A CN201710113050A CN108512770B CN 108512770 B CN108512770 B CN 108512770B CN 201710113050 A CN201710113050 A CN 201710113050A CN 108512770 B CN108512770 B CN 108512770B
Authority
CN
China
Prior art keywords
traffic
pcrf
pcef
fragments
flow
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710113050.4A
Other languages
Chinese (zh)
Other versions
CN108512770A (en
Inventor
李东浪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201710113050.4A priority Critical patent/CN108512770B/en
Publication of CN108512770A publication Critical patent/CN108512770A/en
Application granted granted Critical
Publication of CN108512770B publication Critical patent/CN108512770B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/26Flow control; Congestion control using explicit feedback to the source, e.g. choke packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/36Flow control; Congestion control by determining packet size, e.g. maximum transfer unit [MTU]
    • H04L47/365Dynamic adaptation of the packet size

Abstract

The application provides a data traffic distribution method and related equipment, which are used for dynamically adjusting the size of a traffic fragment and reducing the traffic loss of a network operator. The method in the embodiment of the application comprises the following steps: when the policy and charging rule control function PCRF device detects the last first traffic fragment, the PCRF device issues a traffic reporting instruction to the policy and charging enforcement function PCEF device, wherein the traffic reporting instruction is used for indicating the PCEF device to acquire first traffic information of an online user, the PCRF device receives the first traffic information of the online user fed back by the PCEF device, the PCRF device obtains a second traffic fragment according to the first traffic information, the size of the second traffic fragment is smaller than that of the first traffic fragment, the number of the second traffic fragment is at least one, and the PCRF device sends the second traffic fragment to the PCEF device.

Description

Data flow distribution method and related equipment
Technical Field
The present application relates to the field of communications, and in particular, to a data traffic distribution method and related devices.
Background
For enterprise users, the broadband network is mainly used for office business and has the characteristics of large user quantity and large flow. A network operator wants to add a plurality of users to a group by pushing out a group sharing service, so that the users in the group can share and use a certain service and a traffic quota of the service. Thus, under the condition that the group traffic quota is fixed, the users with large traffic consumption in the group can use the traffic of the users with small traffic consumption, thereby saving the cost for the group (enterprise or family) and helping the operator attract more users.
A Policy and Charging Rule control Function (PCRF) network element issues a fixed-size traffic fragment to all users through a Gx interface, and when a last traffic fragment of a shared traffic quota is issued, if the fixed-size traffic fragment is also continuously issued, the sum of traffic consumption of simultaneous use of multiple users is equal to the size of the traffic fragment, i.e., the fixed size of the traffic fragment is 10MB, and when the last traffic fragment is issued, the actual shared traffic quota is 55MB, and for 6 users, the sum of traffic consumption is 6 × 10MB, and a network operator loses 5MB of traffic revenue.
In order to reduce the traffic loss of a network operator, an existing data traffic distribution method is as follows: the PCRF network element indicates a Policy and Charging Enforcement Function (PCEF) network element to actively report the service condition of the traffic fragments at regular time, so as to avoid that the PCRF network element omits the traffic fragments which are already issued to the PCEF network element and the "in-transit" traffic which is not completely exhausted when allocating the traffic fragments to the user. And when the shared traffic quota configured by the PCRF network element reaches a predetermined threshold (90%) or the last traffic slice (the traffic balance is equal to the number of traffic slices and the number of online users), the reporting frequency of the use conditions of the traffic slices of all the users is reduced, thereby relieving the traffic calculation deviation caused by the use conditions of the traffic slices reported by a plurality of online users to a certain extent.
However, the existing data traffic distribution method only alleviates the traffic calculation deviation of the PCRF network element when multiple online users are present, and does not effectively solve the traffic loss existing during the last traffic fragmentation, so that the traffic loss of the network operator still exists.
Disclosure of Invention
The application provides a data traffic distribution method and related equipment, which are used for dynamically adjusting the size of a traffic fragment and reducing the traffic loss of a network operator.
A first aspect of the present application provides a data traffic distribution method, including:
when PCRF equipment detects the last first traffic fragment, the PCRF equipment issues a traffic reporting instruction to PCEF equipment, wherein the traffic reporting instruction is used for indicating the PCEF equipment to acquire first traffic information of an online user;
the PCRF equipment receives first traffic information of the online user fed back by the PCEF equipment;
the PCRF equipment obtains second traffic fragments according to the first traffic information, wherein the size of the second traffic fragments is smaller than that of the first traffic fragments, and the number of the second traffic fragments is at least two;
and the PCRF equipment sends the second traffic fragment to the PCEF equipment.
In the existing group traffic quota method based on the user group, the PCRF device configures at least two first traffic segments with fixed sizes according to the total traffic required by all online users in the user group, sends the first traffic segments to the PCEF device, the online users can obtain the data traffic required by the service through the first traffic segments provided by the PCEF device, and after each first traffic segment is used up, the PCEF device notifies the PCRF device, so that the PCRF device can definitely detect the last first traffic segment, when the PCRF device detects the last first traffic segment, the PCRF device issues a traffic reporting instruction to the PCEF device, the traffic reporting instruction specifically functions to enable the PCEF device to count out the first traffic information of all online users, the first traffic information can be the size of the traffic required by each user at present, the PCRF device obtains a second traffic segment according to the first traffic information, that is, the sum of the traffic required by all online users can be obtained according to the first traffic information, so as to configure at least one second traffic slice, where the size of the second traffic slice is smaller than that of the first traffic slice, and the second traffic slice is sent to the PCEF device, so as to provide the online users with the traffic service, because the size of the second traffic slice is smaller than that of the first traffic slice, the network operator can necessarily reduce traffic loss when providing the traffic service, for example, according to the existing method, it is assumed that the fixed size of the first traffic slice is 10MB, and when the last first traffic slice is the last, the actual required traffic of 6 users is 55MB, the sum of traffic consumption is 6 × 10MB, and the network operator loses 5MB of traffic, but according to the scheme of the present application, it is assumed that the fixed size of the first traffic slice is 10MB, and when the last first traffic slice is the first traffic slice, obtaining the first traffic information of 6 users (the traffic value is 55MB), then reconfiguring to obtain the second traffic slice, the size of the second traffic slice is smaller than 10MB, for example, 9.5MB, then the sum of the traffic consumption of the second traffic slice is 57MB, and compared with the prior art 60MB, the traffic loss of the network operator is reduced by 3 MB.
With reference to the first aspect of the present application, in a first implementation manner of the first aspect of the present application, the obtaining, by the PCRF device, the second traffic segment according to the first traffic information includes:
the PCRF equipment determines a first demand flow value of the online user according to the first flow information;
and the PCRF equipment adjusts the size of the first traffic fragments according to the first demand traffic value to obtain second traffic fragments, wherein the size of the second traffic fragments is smaller than that of the first traffic fragments, and the number of the second traffic fragments is at least one.
Since the PCEF device counts all online users to obtain the first traffic information before the last first traffic segment begins, the first demand traffic value of the online users can be determined according to the first traffic information, the first demand traffic value is the actual demand traffic of the currently performed traffic slice, the fragmentation policy is adjusted according to the first demand traffic value, that is, the size of the first traffic fragment is reduced to obtain the second traffic slice, and the second traffic slice is at least two, for example, the size of the first traffic slice is 10MB, the number of the online users is 6, when the first demand traffic value is 55MB, if the size of the second traffic slice is between 55/6MB and 10MB, the second traffic slice is one, if the size of the second traffic slice is between 55/12MB and 55/6MB, the second traffic slice is two, and so on.
With reference to the first implementation manner of the first aspect of the present application, in the second implementation manner of the first aspect of the present application, when the second traffic fragmentation is greater than one, after the PCRF device sends the second traffic fragmentation to the PCEF device, the method further includes:
when the PCRF device detects the last second traffic fragment, the PCRF device obtains a third traffic fragment according to second traffic information of the online user fed back by the PCEF device, wherein the size of the third traffic fragment is smaller than that of the second traffic fragment, and the number of the third traffic fragments is at least one;
and the PCRF equipment sends the third flow fragment to the PCEF equipment.
When the second traffic segments are larger than one, when the PCRF device detects the last second traffic segment, because the number of the online users is very large, the first traffic information counted in the first aspect of the present application is not necessarily very accurate, and then the problem that the network operator still has traffic loss is considered in the last second traffic segment, the PCRF device obtains the second traffic information of the online users according to the first aspect, and obtains the third traffic segment according to the second traffic information, and the size of the third traffic segment is smaller than that of the second traffic segment, so that the traffic loss of the network operator can be further reduced.
With reference to the first aspect, the first implementation manner of the first aspect, or the second implementation manner of the first aspect, in a third implementation manner of the first aspect, before the issuing, by the PCRF device, the traffic reporting instruction to the PCEF device, the method further includes:
the method comprises the steps that PCRF equipment receives an access request sent by PCEF equipment, wherein the access request contains a user identifier of an online user;
the PCRF equipment determines corresponding service data according to the user identification;
the PCRF equipment generates at least two first traffic fragments and access rules according to the service data;
and the PCRF equipment sends the first traffic fragment and the access rule to the PCEF equipment through an authorization message.
When an online user wants to access a network, an access request needs to be sent to a PCRF (policy and charging rules function) through PCEF (policy and charging enforcement function) equipment, and a user identifier of the online user needs to be provided in the access request; if the online user does not bind the fixed service, the access request also needs to carry an identifier of the specified online user service. The PCRF equipment can determine the service corresponding to the user identifier so as to determine the service data of the service, the data volume of the service data is naturally determined, so that at least two first flow fragments are generated according to the fragment policy, the access rule of the online user is formulated according to the service data, and the PCRF equipment sends the first flow fragments and the access rule to the PCEF equipment through the authorization message, so that the PCEF equipment installs the access rule according to the authorization message, and informs the online user that the online user can access the network to use the first flow fragments distributed by the network operator.
A second aspect of the present application provides a data traffic distribution method, including:
receiving a flow reporting instruction sent by PCRF equipment by PCEF equipment;
the PCEF equipment acquires first flow information of an online user according to the flow reporting instruction;
the PCEF equipment sends the first traffic information to the PCRF equipment, so that the PCRF equipment obtains second traffic fragments according to the first traffic information, wherein the size of the second traffic fragments is smaller than that of the first traffic fragments, and at least one second traffic fragment is provided;
and the PCEF equipment receives the second traffic slice sent by the PCRF equipment.
In the existing group traffic quota method based on the user group, the PCRF device configures at least two first traffic segments with fixed sizes according to the total traffic required by all online users in the user group, and sends the first traffic segments to the PCEF device, the online users can obtain the data traffic required by the service through the first traffic segments provided by the PCEF device, and after each first traffic segment is used up, the PCEF device notifies the PCRF device, so that the PCRF device can definitely detect the last first traffic segment, and when the PCRF device detects the last first traffic segment, the PCRF device issues a traffic reporting instruction to the PCEF device. The PCEF equipment receives a flow reporting instruction sent by the PCRF equipment, and counts out first flow information of all online users according to the flow reporting instruction, wherein the first flow information can be the flow size currently required by each user, the PCEF equipment sends the first flow information to the PCRF equipment, so that the PCRF equipment obtains second flow fragments according to the first flow information, namely the sum of flows required by all the online users can be obtained according to the first flow information, so that at least one second flow fragment is configured, the size of the second flow fragment is smaller than that of the first flow fragment, the PCEF equipment receives the second flow fragments sent by the PCRF equipment, therefore, the PCEF equipment can provide flow services of the second flow fragments for the online users, and because the size of the second flow fragments is smaller than that of the first flow fragments, when a network operator provides the flow services, for example, according to the existing method, assuming that the fixed size of the first traffic slice is 10MB, and when the last first traffic slice is provided, the actually demanded traffic of 6 users is 55MB, the sum of traffic consumption is 6 × 10MB, and the network operator loses 5MB of traffic, however, according to the scheme of the present application, assuming that the fixed size of the first traffic slice is 10MB, and when the last first traffic slice is provided, the first traffic information (the traffic value is 55MB) of 6 users is obtained, then the second traffic slice is reconfigured, and the size of the second traffic slice is smaller than 10MB, for example, 9.5MB, the sum of traffic consumption when the second traffic slice is 57MB, and compared with 60MB in the prior art, the traffic loss of the network operator is reduced by 3 MB.
With reference to the second aspect of the present application, in the first implementation manner of the second aspect of the present application, when the second traffic segment is larger than one, after the PCEF device receives the second traffic segment sent by the PCRF device, the method further includes:
the PCEF equipment receives a flow reporting instruction sent by the PCRF equipment;
the PCEF equipment acquires second flow information of the online user according to the flow reporting instruction;
the PCEF equipment sends the second flow information to the PCRF equipment, so that the PCRF equipment obtains a third flow fragment according to the second flow information, the size of the third flow fragment is smaller than that of the second flow fragment, and the number of the third flow fragments is at least two
And the PCEF equipment receives the third flow fragment sent by the PCRF equipment.
When the second traffic segments are larger than one, when the PCRF device detects the last second traffic segment, because the number of the online users is very large, the first traffic information counted in the second aspect of the present application is not necessarily very accurate, then the problem that the network operator still has traffic loss is considered in the last second traffic segment, the PCEF device needs to count the second traffic information of the online users according to the traffic reporting information sent by the PCRF device, and send the second traffic information to the PCRF device, so that the PCRF device obtains the third traffic segment according to the second traffic information, and the size of the third traffic segment is smaller than that of the second traffic segment, thereby further reducing the traffic loss of the network operator.
With reference to the second aspect or the first implementation manner of the second aspect, in the second implementation manner of the second aspect of the present application, before the receiving, by the PCEF device, the traffic reporting instruction sent by the PCRF device, the method further includes:
receiving an IP connection access network IP-CAN session request sent by an online user by a PCEF device, wherein the IP-CAN session request comprises a user identifier;
the PCEF equipment sends an access request to PCRF equipment according to the IP-CAN session request;
the PCEF equipment receives an authorization message fed back by the PCRF equipment, wherein the authorization message comprises at least two first traffic fragments and an access rule;
the PCEF equipment feeds back an IP-CAN session establishment message to the online user, so that the online user CAN use the first traffic fragment;
and when the online user uses the first traffic fragment, the PCEF equipment sends a session updating request to the PCRF equipment.
When an online user wants to access a network, a PCEF device receives an IP-CAN session request sent by the online user, wherein the IP-CAN session request contains a user identifier, and if the online user binds a fixed service, the access request does not need a service identifier; if the online user does not bind the fixed service, then the Access Request also needs to carry an identifier specifying the online user service, the PCEF device sends the Access Request to the PCRF device according to the IP-CAN session Request, the Access Request may be a Call Control Request-Initial (CCR-Initial) message, the PCEF device receives an authorization message fed back by the PCRF device, the authorization message may be a Call Control Access-Initial (CCA-Initial) message, the authorization message includes at least two first traffic fragments and an Access rule, after receiving the authorization message, the PCEF device may feed back an IP-CAN session establishment message to the online user, so that the online user may use the first traffic fragments, and the PCEF device monitors the online user to use the first traffic fragments, when the online user consumes the first traffic fragments, the PCEF device sends an Update session Request to the PCRF device, where the Update session Request may be a call control Request Update message (CCA-Update).
A third aspect of the present application provides a PCRF device, including:
a sending module, configured to issue a traffic reporting instruction to a policy and charging enforcement function PCEF device when the processing module detects a last first traffic segment, where the traffic reporting instruction is used to instruct the PCEF device to obtain first traffic information of an online user;
a receiving module, configured to receive first traffic information of an online user, which is fed back by the PCEF device;
the processing module is configured to obtain second traffic fragments according to the first traffic information, where the size of the second traffic fragments is smaller than that of the first traffic fragments, and the number of the second traffic fragments is at least one;
the sending module is further configured to send the second traffic segment to the PCEF device.
In the existing group traffic quota method based on the user group, a processing module in a PCRF device configures at least two first traffic fragments with fixed sizes according to total traffic required by all online users in the user group, and sends the first traffic fragments to a PCEF device, the online users can obtain data traffic required by a service through the first traffic fragments provided by the PCEF device, and after each first traffic fragment is used up, the PCEF device notifies the PCRF device, so that the processing module can definitely detect the last first traffic fragment, when the processing module detects the last first traffic fragment, the sending module sends a traffic reporting instruction to the PCEF device, and the traffic reporting instruction has a specific function of enabling the PCEF device to count out first traffic information of all the online users, where the first traffic information can be the size of the traffic currently required by each user, the receiving module receives first traffic information of the online users fed back by the PCEF device, the processing module obtains second traffic fragments according to the first traffic information, that is, the sum of the traffic required by all the online users can be obtained according to the first traffic information, so as to configure at least one second traffic fragment, the size of the second traffic fragment is smaller than that of the first traffic fragment, and the sending module sends the second traffic fragment to the PCEF device, so as to provide traffic service for the online users, since the size of the second traffic fragment is smaller than that of the first traffic fragment, a network operator can inevitably reduce traffic loss when providing the traffic service, for example, according to the existing method, it is assumed that the fixed size of the first traffic fragment is 10MB, and when the last first traffic fragment is used, the actual required traffic of 6 users is 55MB, and the sum of traffic consumption is 6 x 10MB, the network operator loses 5MB of traffic, however, according to the scheme of the present application, assuming that the fixed size of the first traffic slice is 10MB, and when the last first traffic slice obtains the first traffic information of 6 users (the traffic value is 55MB), the second traffic slice is reconfigured, and the size of the second traffic slice is smaller than 10MB, for example, 9.5MB, then the sum of traffic consumption in the second traffic slice is 57MB, and compared with the prior art of 60MB, the traffic loss of the network operator is reduced by 3 MB.
With reference to the third aspect of the present application, in the first embodiment of the third aspect of the present application,
the processing module is specifically configured to determine a first demand flow value of the online user according to the first flow information;
the processing module is further configured to adjust the size of the first traffic segment according to the first demand traffic value to obtain a second traffic segment, where the size of the second traffic segment is smaller than that of the first traffic segment, and the number of the second traffic segments is at least one.
Since the PCEF device obtains the first traffic information from statistics of all online users before the last first traffic segment begins, the processing module can determine a first demand traffic value of the online users according to the first traffic information, where the first demand traffic value is an actual demand traffic of the current traffic slice, the processing module adjusts the slicing policy according to the first demand traffic value, that is, the size of the first traffic slice is reduced to obtain the second traffic slice, and the number of the second traffic slice is at least two, for example, the size of the first traffic slice is 10MB, the number of the online users is 6, when the first demand traffic value is 55MB, if the size of the second traffic slice is between 55/6MB and 10MB, the second traffic slice is one, if the size of the second traffic slice is between 55/12MB and 55/6MB, the second traffic slice is two, and so on.
With reference to the first embodiment of the first aspect of the present application, in the second embodiment of the first aspect of the present application, when the second traffic slice is larger than one,
the processing module is further configured to, when the last second traffic segment is detected, obtain a third traffic segment according to second traffic information of the online user, which is fed back by the PCEF device, where the size of the third traffic segment is smaller than that of the second traffic segment, and the number of the third traffic segment is at least one;
the sending module is further configured to send the third flow slice to the PCEF device.
When the second traffic segment is larger than one, when the processing module detects the last second traffic segment, because the number of online users is very large, the first traffic information counted in the third aspect of the present application is not necessarily very accurate, and then the problem that the network operator still has traffic loss is considered in the last second traffic segment, the processing module obtains the second traffic information of the online users according to the manner of the third aspect, and obtains the third traffic segment according to the second traffic information, and the size of the third traffic segment is smaller than that of the second traffic segment, so that the traffic loss of the network operator can be further reduced.
With reference to the third aspect of the present application, the first embodiment of the third aspect, or the second embodiment of the third aspect of the present application,
the receiving module is further configured to receive an access request sent by the PCEF device, where the access request includes a user identifier of an online user;
the processing module is further configured to determine corresponding service data according to the user identifier;
the processing module is further configured to generate at least two first traffic segments and an access rule according to the service data;
the sending module is further configured to send the first traffic segment and the access rule to the PCEF device through an authorization message.
When an online user wants to access a network, an access request needs to be sent to a PCRF (policy and charging rules function) through PCEF (policy and charging enforcement function) equipment, and a user identifier of the online user needs to be provided in the access request; if the online user does not bind the fixed service, the access request also needs to carry an identifier of the specified online user service. The processing module can determine a service corresponding to the user identifier, so as to determine service data of the service, and the data volume of the service data is naturally determined, so as to generate at least two first traffic fragments according to the fragmentation policy, and formulate an access rule of the online user according to the service data, and the sending module sends the first traffic fragments and the access rule to the PCEF device through the authorization message, so that the PCEF installs the access rule according to the authorization message, and notifies the online user that the online user can access the network to use the first traffic fragments allocated by the network operator.
A fourth aspect of the present application provides a PCEF device, comprising:
the receiving module is used for receiving a flow reporting instruction sent by the PCRF equipment;
the processing module is used for acquiring first traffic information of the online user according to the traffic reporting instruction;
a sending module, configured to send the first traffic information to the PCRF device, so that the PCRF device obtains, according to the first traffic information, second traffic fragments, where the size of the second traffic fragments is smaller than that of the first traffic fragments, and there is at least one second traffic fragment;
the receiving module is further configured to receive the second traffic segment sent by the PCRF device.
In the existing group traffic quota method based on the user group, the PCRF device configures at least two first traffic segments with fixed sizes according to the total traffic required by all online users in the user group, and sends the first traffic segments to the PCEF device, the online users can obtain the data traffic required by the service through the first traffic segments provided by the PCEF device, and after each first traffic segment is used up, the PCEF device notifies the PCRF device, so that the PCRF device can definitely detect the last first traffic segment, and when the PCRF device detects the last first traffic segment, the PCRF device issues a traffic reporting instruction to the PCEF device. The receiving module receives a traffic reporting instruction sent by the PCRF equipment, the processing module counts first traffic information of all online users according to the traffic reporting instruction, the first traffic information can be the traffic size currently required by each user, the sending module sends the first traffic information to the PCRF equipment, so that the PCRF equipment obtains second traffic fragments according to the first traffic information, namely the sum of the traffic required by all the online users can be obtained according to the first traffic information, thereby configuring at least one second traffic fragment, the size of the second traffic fragment is smaller than that of the first traffic fragment, the receiving module receives the second traffic fragments sent by the PCRF equipment, therefore, the PCEF equipment can provide the traffic service of the second traffic fragments for the online users, and because the size of the second traffic fragments is smaller than that of the first traffic fragments, when a network operator provides the traffic service, for example, according to the existing method, assuming that the fixed size of the first traffic slice is 10MB, and when the last first traffic slice is provided, the actually demanded traffic of 6 users is 55MB, the sum of traffic consumption is 6 × 10MB, and the network operator loses 5MB of traffic, however, according to the scheme of the present application, assuming that the fixed size of the first traffic slice is 10MB, and when the last first traffic slice is provided, the first traffic information (the traffic value is 55MB) of 6 users is obtained, then the second traffic slice is reconfigured, and the size of the second traffic slice is smaller than 10MB, for example, 9.5MB, the sum of traffic consumption when the second traffic slice is 57MB, and compared with 60MB in the prior art, the traffic loss of the network operator is reduced by 3 MB.
In combination with the fourth aspect of the present application, in the first embodiment of the fourth aspect of the present application, when the second traffic slice is larger than one,
the receiving module is further configured to receive a traffic reporting instruction sent by the PCRF device;
the processing module is further configured to obtain second traffic information of the online user according to the traffic reporting instruction;
the sending module is further configured to send the second traffic information to the PCRF device, so that the PCRF device obtains third traffic fragments according to the second traffic information, where the size of the third traffic fragments is smaller than that of the second traffic fragments, and there is at least one third traffic fragment;
the receiving module is further configured to receive a third flow segment sent by the PCRF device.
When the second traffic segments are larger than one, when the PCRF device detects the last second traffic segment, because the number of the online users is very large, the first traffic information counted in the fourth aspect of the present application is not necessarily very accurate, and then the problem that the network operator still has traffic loss is considered in the last second traffic segment, the processing module needs to count the second traffic information of the online users according to the traffic reporting information received by the receiving module, which is sent by the PCRF device, and the sending module sends the second traffic information to the PCRF device, so that the PCRF device obtains the third traffic segment according to the second traffic information, and the size of the third traffic segment is smaller than that of the second traffic segment, thereby further reducing the traffic loss of the network operator.
In combination with the fourth aspect of the present application or the first embodiment of the fourth aspect of the present application, in the second embodiment of the fourth aspect of the present application,
the receiving module is also used for receiving an IP-CAN session request sent by an online user, wherein the IP-CAN session request contains a user identifier;
the sending module is further used for sending an access request to PCRF equipment according to the IP-CAN session request;
the receiving module is further configured to receive an authorization message fed back by the PCRF device, where the authorization message includes at least two first traffic segments and an access rule;
the sending module is further configured to send a session update request to the PCRF device when the online user uses the first traffic segment.
When an online user wants to access a network, a receiving module receives an IP-CAN session request sent by the online user, wherein the IP-CAN session request contains a user identifier, and if the online user binds a fixed service, the access request does not need a service identifier; if the online user does not bind the fixed service, the access request also needs to carry an identifier for specifying the online user service, the PCEF device sends the access request to the PCRF device according to the IP-CAN session request, the access request may be CCR-Initial, the receiving module receives an authorization message fed back by the PCRF device, the authorization message may be CCA-Initial, the authorization message includes at least two first traffic fragments and an access rule, after receiving the authorization message, the receiving module may feed back an IP-CAN session establishment message to the online user, so that the online user may use the first traffic fragments and monitor the usage of the first traffic fragments by the online user, when the online user consumes the first traffic fragments, the sending module sends an Update session request to the PCRF device, and the Update session request may be CCA-Update.
A fifth aspect of the present application provides a PCRF device, including:
a processor, a transceiver, and a memory, wherein the memory may be used to store code executed by the processor;
the processor, the transceiver and the memory are connected through a bus system;
the transceiver is configured to issue a traffic reporting instruction to a policy and charging enforcement function PCEF device when the processor detects a last first traffic segment, where the traffic reporting instruction is used to instruct the PCEF device to obtain first traffic information of an online user;
the transceiver is further configured to receive first traffic information of the online user, which is fed back by the PCEF device;
the processor is configured to obtain a second traffic segment according to the first traffic information, where the size of the second traffic segment is smaller than that of the first traffic segment, and the number of the second traffic segments is at least one;
the transceiver is further configured to send the second traffic slice to the PCEF device.
In the existing group traffic quota method based on the user group, a processor in the PCRF device configures at least two first traffic fragments with fixed sizes according to total traffic required by all online users in the user group, sends the first traffic fragments to the PCEF device, the online users can obtain data traffic required by the service through the first traffic fragments provided by the PCEF device, and after each first traffic fragment is used up, the PCEF device notifies the PCRF device, so the processor can definitely detect the last first traffic fragment, when the processor detects the last first traffic fragment, the transceiver sends a traffic reporting instruction to the PCEF device, the traffic reporting instruction has a specific function of enabling the PCEF device to count first traffic information of all the online users, the first traffic information can be the size of the traffic currently required by each user, the receiving module receives first traffic information of the online users fed back by the PCEF device, the processor obtains second traffic fragments according to the first traffic information, that is, the sum of traffic required by all online users can be obtained according to the first traffic information, so as to configure at least one second traffic fragment, the size of the second traffic fragment is smaller than that of the first traffic fragment, and the transceiver sends the second traffic fragment to the PCEF device, so as to provide traffic service for the online users, since the size of the second traffic fragment is smaller than that of the first traffic fragment, a network operator can inevitably reduce traffic loss when providing the traffic service, for example, according to the existing method, it is assumed that the fixed size of the first traffic fragment is 10MB, and when the last first traffic fragment is used, the actual required traffic of 6 users is 55MB, and the sum of traffic consumption is 6 x 10MB, the network operator loses 5MB of traffic, however, according to the scheme of the present application, assuming that the fixed size of the first traffic slice is 10MB, and when the last first traffic slice obtains the first traffic information of 6 users (the traffic value is 55MB), the second traffic slice is reconfigured, and the size of the second traffic slice is smaller than 10MB, for example, 9.5MB, then the sum of traffic consumption in the second traffic slice is 57MB, and compared with the prior art of 60MB, the traffic loss of the network operator is reduced by 3 MB.
A sixth aspect of the present application provides a PCEF device, comprising:
a processor, a transceiver, and a memory, wherein the memory may be used to store code executed by the processor;
the processor, the transceiver and the memory are connected through a bus system;
the transceiver is used for receiving a flow reporting instruction sent by the PCRF equipment;
the processor is used for acquiring first traffic information of the online user according to the traffic reporting instruction;
the transceiver is further configured to send the first traffic information to the PCRF device, so that the PCRF device obtains, according to the first traffic information, second traffic fragments, where the size of the second traffic fragments is smaller than that of the first traffic fragments, and there is at least one second traffic fragment;
the transceiver is further configured to receive a second traffic segment sent by the PCRF device.
In the existing group traffic quota method based on the user group, the PCRF device configures at least two first traffic segments with fixed sizes according to the total traffic required by all online users in the user group, and sends the first traffic segments to the PCEF device, the online users can obtain the data traffic required by the service through the first traffic segments provided by the PCEF device, and after each first traffic segment is used up, the PCEF device notifies the PCRF device, so that the PCRF device can definitely detect the last first traffic segment, and when the PCRF device detects the last first traffic segment, the PCRF device issues a traffic reporting instruction to the PCEF device. The transceiver receives a traffic reporting instruction sent by the PCRF device, the processor counts first traffic information of all online users according to the traffic reporting instruction, the first traffic information can be the traffic size currently required by each user, the transceiver sends the first traffic information to the PCRF device, so that the PCRF device obtains second traffic fragments according to the first traffic information, namely the sum of the traffic required by all the online users can be obtained according to the first traffic information, thereby configuring at least one second traffic fragment, the size of the second traffic fragment is smaller than that of the first traffic fragment, the transceiver receives the second traffic fragments sent by the PCRF device, therefore, the PCEF device can provide the traffic service of the second traffic fragments for the online users, and as the size of the second traffic fragments is smaller than that of the first traffic fragments, when a network operator provides the traffic service, for example, according to the existing method, assuming that the fixed size of the first traffic slice is 10MB, and when the last first traffic slice is provided, the actually demanded traffic of 6 users is 55MB, the sum of traffic consumption is 6 × 10MB, and the network operator loses 5MB of traffic, however, according to the scheme of the present application, assuming that the fixed size of the first traffic slice is 10MB, and when the last first traffic slice is provided, the first traffic information (the traffic value is 55MB) of 6 users is obtained, then the second traffic slice is reconfigured, and the size of the second traffic slice is smaller than 10MB, for example, 9.5MB, the sum of traffic consumption when the second traffic slice is 57MB, and compared with 60MB in the prior art, the traffic loss of the network operator is reduced by 3 MB.
Yet another aspect of the present application provides a computer-readable storage medium having stored therein instructions, which when executed on a computer, cause the computer to perform the method of the above-described aspects.
Drawings
FIG. 1 is a schematic structural diagram of a PCC architecture;
fig. 2 is a schematic diagram of a signaling flow between a PCEF and a PCRF;
fig. 3 is a schematic structural diagram of an entity apparatus of a PCRF device provided in the present application;
fig. 4 is a schematic structural diagram of a physical device of a PCEF device provided in the present application;
fig. 5 is a schematic flow chart of a data traffic distribution method provided in the present application;
fig. 6 is a schematic structural diagram of a modular device of a PCRF device provided in the present application;
fig. 7 is a schematic structural diagram of a modular device of a PCRF device provided in the present application.
Detailed Description
The application provides a data traffic distribution method and related equipment, which are used for dynamically adjusting the size of a traffic fragment and reducing the traffic loss of a network operator.
The technical solutions in the present application will be clearly and completely described below with reference to the accompanying drawings in the present application.
First, a system architecture or scenario in which the present application is applied will be briefly described.
Third generation partnership project (3)rdGeneration Partnership Project, 3GPP) introduces a PCRF network element structure in a network from the R7 version, which can control Quality of Service (QoS) of users and traffic states, provide differentiated services for users, and provide traffic flow bearer resource guarantee and a traffic flow charging policy for users, thereby really enabling a network operator to realize a more refined traffic control and charging manner based on traffic and user classification, so as to reasonably utilize network resources, create maximum profits, and provide reliable guarantee for Packet Services (PS) domain to develop multimedia real-time services. The PCRF device contains policy control decisions and flow-based charging control functions. The PCRF device accepts input from other devices in a Policy Control and Charging (PCC) architecture, and makes a PCC decision in combination with its own custom information.
The PCC architecture is shown in fig. 1, where the PCEF mainly includes the detection of traffic data flows, policy enforcement, and flow-based charging functions. The functional entity can be positioned in the gateway equipment or can be independently deployed; an Application Function (AF) entity is an application service providing unit and is mainly used for carrying out dynamic policy/charging control on IP-CAN user plane behaviors, and the AF transmits dynamic session information required by the PCRF through an Rx reference point and receives specific information of the IP-CAN and confirmation of an IP-CAN bearing layer event; an Online Charging System (OCS) provides a credit control function based on a user and a service data stream, mainly comprises modules such as Online acquisition, Charging control, rating, balance management and the like, realizes an Online Charging function, and is matched with other Charging network element devices (for example, an Online Charging event request device based on a session or an event is triggered) to perform real-time traffic control; an Offline Charging System (OFCS) provides a Charging function based on user and service data flow, and the main functions include customer service, service management, Charging, settlement, account processing, System management, and the like, and is a post-payment processing System for telephone bills and accounts; a user attribute Storage (SPR) entity contains information related to all subscribers or subscriptions; a Bearer Binding and Event Report Function (BBERF) is a policy enforcement point for bearer Binding, uplink bearer Binding verification, and Event reporting to the PCRF when Gxx exists, and the functional entity is located in a gateway, for example, based on an S5/S8 interface, and implements a serving gateway (S-GW) for 3GPP access using PMIP (proxy mobile IP); the Traffic Detection Function (TDF) performs application detection and reports that the detected application and its service data traffic description are directed to the PCRF, and if the TDF cannot detect these information, the TDF performs gating, redirection and bandwidth limitation, and if the application information can be detected, the TDF submits a decision to the PCRF to perform control. Sp, Rx, Sy, Sd, Gxx, Gx, Gy, and Gz in FIG. 1 are reference points between the connection of the various components.
Fig. 2 is a signaling processing flow of common traffic accumulation in a PCEF and a PCRF, where, in step 1, a User initiates a request for establishing an IP-CAN session to the PCEF through User Equipment (UE), where the User is a group User, has multiple users, and may share one traffic segment; step 2, the PCEF sends a CCR-Initial message to the PCRF through a Gx interface; step 3, the PCRF finds out the service data of the user according to the user identification, and then generates a QoS rule, a flow fragment, a service rule list, a trigger and the like according to the service data; step 4, the PCRF returns information such as traffic fragments, a service rule list, a trigger and the like to the PCEF through a CCA-Initial message; step 5, the PCEF installs rules according to the CCA-Initial message and returns an IP-CAN session response message to the user; step 6, after the user flow fragmentation is exhausted, the PCEF sends a CCR-Update message to the PCRF; step 7, the PCRF performs quota deduction according to the usage of the traffic fragments and updates the strategy according to the service definition; and 8, the PCRF sends the updating strategy to the PCEF through the CCA-Update message, so that the PCEF deletes the original rule and installs the new rule.
Based on the PCC framework shown in fig. 1 and the signaling processing flow shown in fig. 2, the present application adjusts the size of the traffic segment, and the following description is made with an interaction embodiment between entity devices of the PCRF device and the PCEF device, specifically as follows:
referring to fig. 3, a PCRF device takes a network element device as an example, and an embodiment of the present application provides a network element device, including:
a processor 301, a transceiver 302, and a memory 303, wherein the memory 303 may be used to store code executed by the processor 301;
the processor 301, the transceiver 302 and the memory 303 are connected by a bus system 304;
a transceiver 302, configured to issue a traffic reporting instruction to the PCEF device when the processor 301 detects the last first traffic segment, where the traffic reporting instruction is used to instruct the PCEF device to obtain first traffic information of an online user;
the transceiver 302 is further configured to receive first traffic information of the online user, which is fed back by the PCEF device;
the processor 301 is configured to obtain second traffic segments according to the first traffic information, where the size of the second traffic segment is smaller than that of the first traffic segment, and there is at least one second traffic segment;
the transceiver 302 is further configured to send the second traffic slice to the PCEF device.
Referring to fig. 4, taking a PCEF device as an example of a network element device, an embodiment of the present application provides a network element device, including:
a processor 401, a transceiver 402, and a memory 403, wherein the memory 403 may be used to store code executed by the processor 401;
the processor 401, transceiver 402 and memory 403 are connected by a bus system 404;
a transceiver 402, configured to receive a traffic reporting instruction sent by a PCRF device;
the processor 401 is configured to obtain first traffic information of an online user according to a traffic reporting instruction;
the transceiver 402 is further configured to send the first traffic information to the PCRF device, so that the PCRF device obtains, according to the first traffic information, second traffic fragments, where the size of the second traffic fragments is smaller than that of the first traffic fragments, and there is at least one second traffic fragment;
the transceiver 402 is further configured to receive the second traffic segment sent by the PCRF device.
In this embodiment of the present application, an interaction process between a PCRF device and an entity apparatus of a PCEF device is that, when a processor 401 of the PCRF device detects a last first traffic segment, a transceiver 402 issues a traffic reporting instruction to the PCEF device, after the transceiver 402 receives the traffic reporting instruction sent by the PCRF device, the processor 401 calculates first traffic information of all online users according to the traffic reporting instruction, where the first traffic information may be a current traffic size required by each user, the transceiver 402 sends the first traffic information to the PCRF device, the processor 401 obtains a second traffic segment according to the first traffic information received by the transceiver 402, that is, a sum of traffic required by all online users can be obtained according to the first traffic information, so as to configure at least one second traffic segment, and the size of the second traffic segment is smaller than the size of the first traffic segment, after the transceiver 402 sends the second traffic fragment to the PCEF device, and after the transceiver 402 receives the second traffic fragment sent by the PCRF device, the PCEF device may provide the traffic service of the second traffic fragment for the online user, and since the size of the second traffic fragment is smaller than that of the first traffic fragment, the network operator can necessarily reduce traffic loss when providing the traffic service, for example, according to the existing method, it is assumed that the fixed size of the first traffic fragment is 10MB, and when the last first traffic fragment is, the actual demanded traffic of 6 users is 55MB, the sum of traffic consumption is 6 × 10MB, and the network operator loses 5MB of traffic, but according to the solution of the present application, it is assumed that the fixed size of the first traffic fragment is 10MB, and when the last first traffic fragment is, the first traffic information (the traffic value is 55MB) of 6 users is obtained, then the second traffic slice is reconfigured to have a size less than 10MB, e.g., 9.5MB, and then the sum of the traffic consumption for the second traffic slice is 57MB, which reduces the traffic loss for the network operator by 3MB compared to 60MB in the prior art.
The above embodiment is an embodiment of an entity apparatus of a PCRF device and a PCEF device, and the following describes a data traffic distribution method through interaction between the PCRF device and the PCEF device, specifically as follows:
referring to fig. 5, an embodiment of the present application provides a data traffic distribution method, including:
501. the PCRF equipment issues a flow reporting instruction to the PCEF equipment, and the PCEF equipment receives the flow reporting instruction;
in this embodiment, in the existing group traffic quota method based on the user group, the PCRF device configures at least two first traffic segments of a fixed size according to the total traffic required by all online users in the user group, sends the first traffic segments to the PCEF device, the online user can obtain the data traffic of the service requirement through the first traffic slice provided by the PCEF device, and after each first traffic segment is used up, the PCEF device notifies the PCRF device, and therefore, the PCRF equipment can definitely detect the last first traffic fragment, when the PCRF equipment detects the last first traffic fragment, the PCRF equipment calls a traffic reporting instruction according to a preset trigger condition, or generating a flow reporting instruction, sending the flow reporting instruction to the PCEF device, and receiving the flow reporting instruction by the PCEF device, where the flow reporting instruction is used to instruct the PCEF device to acquire the first flow information of the online user.
502. The PCEF equipment acquires first flow information of an online user according to the flow reporting instruction;
in this embodiment, the PCEF device obtains the first traffic information of the online user according to the traffic reporting instruction, specifically: the PCEF equipment sends instructions to the UE of the online users according to the online users indicated by the flow reporting instructions, the UE can obtain information such as required flow size, data flow type and the like according to the service data of the services of the online users, the UE reports the first flow information to the PCEF equipment, and the PCEF equipment obtains the information of the online users as the first flow information.
503. The PCEF equipment sends the first traffic information to the PCRF equipment, and the PCRF equipment receives the first traffic information of the online user;
in this embodiment, the PCEF device sends the acquired first traffic information of the online user to the PCRF device, and the PCRF device receives the first traffic information through a Gx interface between the PCRF device and the PCEF.
504. The PCRF equipment obtains second traffic fragments according to the first traffic information, wherein the size of the second traffic fragments is smaller than that of the first traffic fragments, and at least one second traffic fragment is provided;
in this embodiment, the PCRF device obtains the second traffic segment according to the first traffic information, which specifically is: the PCRF device may obtain, according to the first traffic information, a sum of traffic required by the online user, so as to configure at least one second traffic fragment, where the size of the second traffic fragment is smaller than that of the first traffic fragment, and if the fixed size of the first traffic fragment is 10MB and the last first traffic fragment is obtained, the first traffic information (the traffic value is 55MB) of 6 users is obtained, then the second traffic fragment is reconfigured to obtain the second traffic fragment, where the size of the second traffic fragment is smaller than 10MB, for example, 9.5 MB.
505. And the PCRF equipment sends the second traffic fragment to the PCEF equipment, and the PCEF equipment receives the second traffic fragment sent by the PCRF equipment.
In this embodiment, after the PCRF device configures the second traffic segment, the second traffic segment is sent to the PCEF device, and the PCEF device receives the second traffic segment sent by the PCRF device, and after obtaining an access authorization result of the online user, may provide a traffic service for the online user.
In the embodiment of the present application, if the fixed size of the first traffic slice is 10MB, and the first traffic information (the traffic value is 55MB) of 6 users is obtained when the last first traffic slice is obtained, the second traffic slice is reconfigured to obtain the second traffic slice, and the size of the second traffic slice is smaller than 10MB, for example, 9.5MB, the sum of traffic consumption in the second traffic slice is 57MB, and the sum of traffic consumption in the existing method is 6 × 10MB, and the network operator loses 5MB of traffic, which is less than 3MB of traffic lost in the existing method. Under the condition that the number of online users in one group is large at present, the method and the device can obviously reduce the loss of the flow for network operators.
Optionally, in some embodiments of the present application, obtaining, by the PCRF device, the second traffic segment according to the first traffic information includes:
the PCRF equipment determines a first demand flow value of the online user according to the first flow information;
and the PCRF equipment adjusts the size of the first traffic fragments according to the first demand traffic value to obtain second traffic fragments, wherein the size of the second traffic fragments is smaller than that of the first traffic fragments, and the number of the second traffic fragments is at least one.
In this embodiment of the present application, before the last first traffic segment starts, the PCEF device counts all online users to obtain first traffic information, and can determine a first required traffic value of an online user according to the first traffic information, where the first required traffic value is an actual required traffic of a current traffic slice, and adjust the slicing policy according to the first required traffic value, that is, reduce the size of the first traffic slice to obtain a second traffic slice, and the number of the second traffic slice is at least two, for example, the size of the first traffic slice is 10MB, the number of the online users is 6, and when the first required traffic value is 55MB, if the size of the second traffic slice is between 55/6MB and 10MB, the second traffic slice is one, and if the size of the second traffic slice is between 55/12MB and 55/6MB, the second traffic slice is two, thus, the second traffic slice may be one or more.
Optionally, in some embodiments of the application, when the second traffic segment is greater than one, after the PCRF device sends the second traffic segment to the PCEF device, the method further includes:
when the PCRF equipment detects the last second traffic fragment, the PCEF equipment receives a traffic reporting instruction sent by the PCRF equipment;
the PCEF equipment acquires second flow information of the online user according to the flow reporting instruction;
the PCEF equipment sends the second traffic information to the PCRF equipment;
the PCRF equipment obtains third flow fragments according to second flow information of the online user fed back by the PCEF equipment, wherein the size of the third flow fragments is smaller than that of the second flow fragments, and at least one third flow fragment is provided;
and the PCRF equipment sends the third flow fragment to the PCEF equipment, and the PCEF equipment receives the third flow fragment sent by the PCRF equipment.
In the embodiment of the present application, when the second traffic segments are larger than one, when the PCRF device detects the last second traffic segment, because the number of the online users is very large, and the first traffic information is not necessarily accurate, then the PCRF device obtains the second traffic information of the online users according to the first aspect, and obtains the third traffic segment according to the second traffic information, where the size of the third traffic segment is smaller than that of the second traffic segment, and before the last third traffic segment is used, adjusts the size of the third traffic segment to the fourth traffic segment, so as to gradually converge the method, which can achieve the purpose of reducing the traffic loss of the network operator as much as possible
Optionally, in some embodiments of the present application, before the PCEF device receives the traffic reporting instruction sent by the PCRF device, the method further includes:
the method comprises the steps that PCEF equipment receives an IP connection access network IP-CAN session request sent by an online user, wherein the IP-CAN session request comprises a user identifier;
the PCEF equipment sends an access request to the PCRF equipment according to the IP-CAN session request, and the PCRF equipment receives the access request sent by the PCEF equipment;
the PCRF equipment determines corresponding service data according to the user identification;
the PCRF equipment generates at least two first traffic fragments and access rules according to the service data;
the PCRF equipment sends the first traffic fragments and the access rules to the PCEF equipment through the authorization message;
the method comprises the steps that a PCEF device receives an authorization message fed back by a PCRF device, wherein the authorization message comprises at least two first traffic fragments and an access rule;
when the online user uses the first traffic fragment, the PCEF device sends an update session request to the PCRF device.
In the embodiment of the application, when an online user wants to access a network, a PCEF device receives an IP-CAN session request sent by the online user, where the IP-CAN session request includes a user identifier, if the online user binds a fixed service, the access request does not need a service identifier, if the online user does not bind the fixed service, the access request also needs to carry an identifier specifying the online user service, the PCEF device sends the access request to a PCRF device according to the IP-CAN session request, the access request may be CCR-Initial, the PCEF device receives an authorization message fed back by the PCRF device, the authorization message may be CCA-Initial, the authorization message includes at least two first traffic fragments and an access rule, and after receiving the authorization message, the PCEF device may feed back an IP-CAN session establishment message to the online user, so that the online user CAN use the first traffic fragments, and the PCEF device monitors the online user using the first traffic segment, and when the online user consumes the first traffic segment, the PCEF device sends an Update session request to the PCRF device, where the Update session request may be a CCA-Update, and the specific details refer to steps 1 to seventh in the signaling flow diagram shown in fig. 1.
In the above embodiment, a data traffic distribution method is described through interaction between a PCRF device and a PCEF device, and the following description is respectively given to a modular apparatus of the PCRF device and the PCEF device through the embodiments, specifically as follows:
referring to fig. 6, an embodiment of the present application provides a PCRF device, including:
a sending module 601, configured to issue a flow reporting instruction to a policy and charging enforcement function PCEF device when the processing module detects a last first flow fragment, where the flow reporting instruction is used to instruct the PCEF device to obtain first flow information of an online user;
a receiving module 602, configured to receive first traffic information of an online user, which is fed back by a PCEF device;
the processing module 603 is configured to obtain second traffic segments according to the first traffic information, where the size of the second traffic segment is smaller than that of the first traffic segment, and there is at least one second traffic segment;
the sending module 601 is further configured to send the second traffic segment to the PCEF device.
In this embodiment of the present application, when the processing module 603 detects the last first traffic segment, the sending module 601 issues a traffic reporting instruction to the PCEF device, where the traffic reporting instruction specifically functions to enable the PCEF device to count first traffic information of all online users, where the first traffic information may be a traffic size currently required by each user, the receiving module 602 receives the first traffic information of the online users fed back by the PCEF device, the processing module 603 obtains a second traffic segment according to the first traffic information, that is, obtains a sum of flows required by all online users according to the first traffic information, thereby configuring at least one second traffic segment, where the size of the second traffic segment is smaller than that of the first traffic segment, and the sending module sends the second traffic segment to the PCEF device, thereby providing a traffic service for the online users, where the size of the second traffic segment is smaller than that of the first traffic segment, then the network operator can certainly reduce the traffic loss when providing the traffic service, for example, according to the existing method, assuming that the fixed size of the first traffic slice is 10MB, and when the last first traffic slice is, the actual demanded traffic of 6 users is 55MB, the sum of the traffic consumption is 6 × 10MB, and the network operator loses 5MB of traffic, but according to the solution of the present application, assuming that the fixed size of the first traffic slice is 10MB, and when the last first traffic slice is, the first traffic information (the traffic value is 55MB) of 6 users is obtained, then the second traffic slice is reconfigured, and the size of the second traffic slice is smaller than 10MB, for example, 9.5MB, the sum of the traffic consumption when the second traffic slice is 57MB, compared with 60MB in the prior art, the traffic loss of the network operator is reduced by 3 MB.
Alternatively, in some embodiments of the present application,
the processing module 603 is specifically configured to determine a first demand flow value of the online user according to the first flow information;
the processing module 603 is further configured to adjust the size of the first traffic segment according to the first demand traffic value to obtain a second traffic segment, where the size of the second traffic segment is smaller than that of the first traffic segment, and there is at least one second traffic segment.
In this embodiment of the present application, since before the last first traffic segment starts, the PCEF device counts all online users to obtain first traffic information, the processing module 603 can determine a first demand traffic value of the online user according to the first traffic information, where the first demand traffic value is an actual demand traffic of a current traffic segment, the processing module 603 adjusts a fragmentation policy according to the first demand traffic value, that is, the size of the first traffic segment is reduced to obtain a second traffic segment, and the number of the second traffic segments is at least two, for example, the size of the first traffic segment is 10MB, the number of online users is 6, and when the first demand traffic value is 55MB, if the size of the second traffic segment is between 55/6MB and 10MB, the size of the second traffic segment is one, if the size of the second traffic segment is between 55/12MB and 55/6MB, then the second traffic slice is two and so on.
Optionally, in some embodiments of the present application, when the second traffic slice is larger than one,
the processing module 603 is further configured to, when the last second flow fragment is detected, obtain a third flow fragment according to second flow information of the online user fed back by the PCEF device, where the size of the third flow fragment is smaller than that of the second flow fragment, and the number of the third flow fragments is at least one;
the sending module 601 is further configured to send the third flow slice to the PCEF device.
In this embodiment of the application, when the second traffic segment is larger than one, and when the processing module 603 detects the last second traffic segment, because the number of online users is very large, and the counted first traffic information is not accurate, then the problem that the traffic loss still exists in the network operator is considered in the last second traffic segment, the processing module 603 obtains the second traffic information of the online users, and obtains the third traffic segment according to the second traffic information, and the size of the third traffic segment is smaller than that of the second traffic segment, so that the traffic loss of the network operator can be further reduced.
Alternatively, in some embodiments of the present application,
a receiving module 602, further configured to receive an access request sent by the PCEF device, where the access request includes a user identifier of an online user;
the processing module 603 is further configured to determine corresponding service data according to the user identifier;
the processing module 603 is further configured to generate at least two first traffic segments and an access rule according to the service data;
the sending module 601 is further configured to send the first traffic segment and the access rule to the PCEF device through the authorization message.
In the embodiment of the application, when an online user wants to access a network, an access request needs to be sent to a PCRF device through a PCEF device, and the access request needs to have a user identifier of the online user; if the online user does not bind the fixed service, the access request also needs to carry an identifier of the specified online user service. The processing module 603 may determine a service corresponding to the user identifier, thereby determining service data of the service, and the data volume of the service data is naturally determined, thereby generating at least two first traffic segments according to the segment policy, and formulating an access rule of the online user according to the service data, and the sending module 601 sends the first traffic segments and the access rule to the PCEF device through the authorization message, so that the PCEF installs the access rule according to the authorization message, and notifies the online user that the online user may access the network using the first traffic segments allocated by the network operator.
Referring to fig. 7, an embodiment of the present application provides a PCEF device, including:
a receiving module 701, configured to receive a traffic reporting instruction sent by a PCRF device;
a processing module 702, configured to obtain first traffic information of an online user according to a traffic reporting instruction;
a sending module 703 is configured to send the first traffic information to the PCRF device, so that the PCRF device obtains, according to the first traffic information, second traffic fragments, where the size of the second traffic fragments is smaller than that of the first traffic fragments, and there is at least one second traffic fragment;
the receiving module 701 is further configured to receive the second traffic segment sent by the PCRF device.
In the embodiment of the application, when the PCRF device detects the last first traffic segment, the PCRF device issues a traffic reporting instruction to the PCEF device. The receiving module 701 receives a traffic reporting instruction sent by the PCRF device, the processing module 702 calculates first traffic information of all online users according to the traffic reporting instruction, where the first traffic information may be a traffic size currently required by each user, the sending module 703 sends the first traffic information to the PCRF device, so that the PCRF device obtains a second traffic fragment according to the first traffic information, that is, a sum of traffic required by all online users can be obtained according to the first traffic information, thereby configuring at least one second traffic fragment, and the size of the second traffic fragment is smaller than that of the first traffic fragment, the receiving module 701 receives the second traffic fragment sent by the PCRF device, so that the PCEF device can provide a traffic service of the second traffic fragment for the online users, and since the size of the second traffic fragment is smaller than that of the first traffic fragment, when a network operator provides the traffic service, for example, according to the existing method, assuming that the fixed size of the first traffic slice is 10MB, and when the last first traffic slice is provided, the actually demanded traffic of 6 users is 55MB, the sum of traffic consumption is 6 × 10MB, and the network operator loses 5MB of traffic, however, according to the scheme of the present application, assuming that the fixed size of the first traffic slice is 10MB, and when the last first traffic slice is provided, the first traffic information (the traffic value is 55MB) of 6 users is obtained, then the second traffic slice is reconfigured, and the size of the second traffic slice is smaller than 10MB, for example, 9.5MB, the sum of traffic consumption when the second traffic slice is 57MB, and compared with 60MB in the prior art, the traffic loss of the network operator is reduced by 3 MB.
Optionally, in some embodiments of the present application, when the second traffic slice is larger than one,
the receiving module 701 is further configured to receive a traffic reporting instruction sent by the PCRF device;
the processing module 702 is further configured to obtain second traffic information of the online user according to the traffic reporting instruction;
the sending module 703 is further configured to send the second traffic information to the PCRF device, so that the PCRF device obtains, according to the second traffic information, third traffic fragments, the size of which is smaller than that of the second traffic fragments, where there is at least one third traffic fragment;
the receiving module 701 is further configured to receive a third flow segment sent by the PCRF device.
In this embodiment of the application, when the second traffic segments are larger than one, and when the PCRF device detects the last second traffic segment, because the number of the online users is very large, and the counted first traffic information is not necessarily accurate, then the problem that the traffic loss still exists in the network operator is considered in the last second traffic segment, the processing module 702 needs to count the second traffic information of the online users according to the traffic reporting information received by the receiving module 701 and sent by the PCRF device, and the sending module 703 sends the second traffic information to the PCRF device, so that the PCRF device obtains the third traffic segment according to the second traffic information, and the size of the third traffic segment is smaller than that of the second traffic segment, thereby further reducing the traffic loss of the network operator.
Alternatively, in some embodiments of the present application,
the receiving module 701 is further configured to receive an IP-CAN session request sent by an online user, where the IP-CAN session request includes a user identifier;
the sending module 703 is further configured to send an access request to the PCRF device according to the IP-CAN session request;
the receiving module 701 is further configured to receive an authorization message fed back by the PCRF device, where the authorization message includes at least two first traffic segments and an access rule;
the sending module 703 is further configured to send an update session request to the PCRF device when the online user uses the first traffic segment.
In the embodiment of the application, when an online user wants to access a network, a receiving module 701 receives an IP-CAN session request sent by the online user, wherein the IP-CAN session request contains a user identifier, and if the online user binds a fixed service, the access request does not need a service identifier; if the online user does not bind the fixed service, the access request also needs to carry an identifier designating the online user service, the sending module 703 sends the access request to the PCRF device according to the IP-CAN session request, the access request may be CCR-Initial, the receiving module 701 receives an authorization message fed back by the PCRF device, the authorization message may be CCA-Initial, the authorization message includes at least two first traffic fragments and an access rule, after receiving the authorization message, the receiving module 701 may feed back an IP-CAN session establishment message to the online user, so that the online user may use the first traffic fragments and monitor the usage of the first traffic fragments by the online user, when the online user consumes the first traffic fragments, the sending module sends an Update session request to the PCRF device, and the Update session request may be CCA-Update.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that is integrated with one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (ssd)), among others.

Claims (16)

1. A method for data traffic distribution, comprising:
when a policy and charging rule control function (PCRF) device detects the last first traffic segment, the PCRF device issues a traffic reporting instruction to a Policy and Charging Enforcement Function (PCEF) device, wherein the traffic reporting instruction is used for indicating the PCEF device to acquire first traffic information of an online user, and the first traffic information is used for determining the actual required traffic of the online user;
the PCRF equipment receives first traffic information of the online user fed back by the PCEF equipment;
the PCRF equipment obtains second traffic fragments according to the first traffic information, wherein the size of the second traffic fragments is smaller than that of the first traffic fragments, and at least one second traffic fragment is provided;
and the PCRF equipment sends the second traffic fragment to the PCEF equipment.
2. The method of claim 1, wherein obtaining, by the PCRF device, the second traffic segment according to the first traffic information comprises:
the PCRF equipment determines a first demand flow value of the online user according to the first flow information;
and the PCRF equipment adjusts the size of the first traffic fragments according to the first demand traffic value to obtain second traffic fragments, wherein the size of the second traffic fragments is smaller than that of the first traffic fragments, and the number of the second traffic fragments is at least one.
3. The method of claim 2, wherein when the second traffic slice is greater than one,
after the PCRF device sends the second traffic segment to the PCEF device, the method further includes:
when the PCRF device detects the last second traffic fragment, the PCRF device obtains a third traffic fragment according to second traffic information of the online user fed back by the PCEF device, wherein the size of the third traffic fragment is smaller than that of the second traffic fragment, and the number of the third traffic fragments is at least one;
and the PCRF equipment sends the third flow fragment to the PCEF equipment.
4. The method according to any one of claims 1 to 3, wherein before the PCRF device issues the traffic reporting instruction to the PCEF device, the method further includes:
the method comprises the steps that PCRF equipment receives an access request sent by PCEF equipment, wherein the access request contains a user identifier of an online user;
the PCRF equipment determines corresponding service data according to the user identification;
the PCRF equipment generates at least two first traffic fragments and access rules according to the service data;
and the PCRF equipment sends the first traffic fragment and the access rule to the PCEF equipment through an authorization message.
5. A method for data traffic distribution, comprising:
a Policy and Charging Enforcement Function (PCEF) device receives a flow reporting instruction sent by a policy and charging rule control function (PCRF) device;
the PCEF equipment acquires first flow information of an online user according to the flow reporting instruction, wherein the first flow information is used for determining the actual demand flow of the online user;
the PCEF equipment sends the first traffic information to the PCRF equipment, so that the PCRF equipment obtains second traffic fragments according to the first traffic information, wherein the size of the second traffic fragments is smaller than that of the first traffic fragments, and at least one second traffic fragment is provided;
and the PCEF equipment receives the second traffic slice sent by the PCRF equipment.
6. The method of claim 5, wherein when the second traffic slice is greater than one,
after the PCEF device receives the second traffic segment sent by the PCRF device, the method further includes:
the PCEF equipment receives a flow reporting instruction sent by the PCRF equipment;
the PCEF equipment acquires second flow information of the online user according to the flow reporting instruction;
the PCEF equipment sends the second flow information to the PCRF equipment, so that the PCRF equipment obtains third flow fragments according to the second flow information, wherein the size of the third flow fragments is smaller than that of the second flow fragments, and the number of the third flow fragments is at least one;
and the PCEF equipment receives the third flow fragment sent by the PCRF equipment.
7. The method according to claim 5 or 6, wherein before the PCEF device receives the traffic reporting instruction sent by the PCRF device, the method further includes:
receiving an IP connection access network IP-CAN session request sent by an online user by a PCEF device, wherein the IP-CAN session request comprises a user identifier;
the PCEF equipment sends an access request to PCRF equipment according to the IP-CAN session request;
the PCEF equipment receives an authorization message fed back by the PCRF equipment, wherein the authorization message comprises at least two first traffic fragments and an access rule;
and when the online user uses the first traffic fragment, the PCEF equipment sends a session updating request to the PCRF equipment.
8. A policy and charging rules control function, PCRF, device comprising:
a sending module, configured to send a flow reporting instruction to a policy and charging enforcement function PCEF device when a processing module detects a last first flow fragment, where the flow reporting instruction is used to instruct the PCEF device to obtain first flow information of an online user, and the first flow information is used to determine an actual required flow of the online user;
a receiving module, configured to receive first traffic information of an online user, which is fed back by the PCEF device;
the processing module is configured to obtain second traffic fragments according to the first traffic information, where the size of the second traffic fragments is smaller than that of the first traffic fragments, and the number of the second traffic fragments is at least one;
the sending module is further configured to send the second traffic segment to the PCEF device.
9. The apparatus of claim 8,
the processing module is specifically configured to determine a first demand flow value of the online user according to the first flow information;
the processing module is further configured to adjust the size of the first traffic segment according to the first demand traffic value to obtain a second traffic segment, where the size of the second traffic segment is smaller than that of the first traffic segment, and the number of the second traffic segments is at least one.
10. The apparatus of claim 9, wherein when the second traffic slice is greater than one,
the processing module is further configured to, when the last second traffic segment is detected, obtain a third traffic segment according to second traffic information of the online user, which is fed back by the PCEF device, where the size of the third traffic segment is smaller than that of the second traffic segment, and the number of the third traffic segment is at least one;
the sending module is further configured to send the third flow slice to the PCEF device.
11. The apparatus according to any one of claims 8 to 10,
the receiving module is further configured to receive an access request sent by the PCEF device, where the access request includes a user identifier of an online user;
the processing module is further configured to determine corresponding service data according to the user identifier;
the processing module is further configured to generate at least two first traffic segments and an access rule according to the service data;
the sending module is further configured to send the first traffic segment and the access rule to the PCEF device through an authorization message.
12. A policy and charging enforcement function, PCEF, device, comprising:
the receiving module is used for receiving a flow reporting instruction sent by the PCRF equipment;
the processing module is used for acquiring first traffic information of an online user according to the traffic reporting instruction, wherein the first traffic information is used for determining the actual demand traffic of the online user;
a sending module, configured to send the first traffic information to the PCRF device, so that the PCRF device obtains, according to the first traffic information, second traffic fragments, where the size of the second traffic fragments is smaller than that of the first traffic fragments, and there is at least one second traffic fragment;
the receiving module is further configured to receive the second traffic segment sent by the PCRF device.
13. The apparatus of claim 12, wherein when the second traffic slice is greater than one,
the receiving module is further configured to receive a traffic reporting instruction sent by the PCRF device;
the processing module is further configured to obtain second traffic information of the online user according to the traffic reporting instruction;
the sending module is further configured to send the second traffic information to the PCRF device, so that the PCRF device obtains third traffic fragments according to the second traffic information, where the size of the third traffic fragments is smaller than that of the second traffic fragments, and there is at least one third traffic fragment;
the receiving module is further configured to receive a third flow segment sent by the PCRF device.
14. The apparatus according to claim 12 or 13,
the receiving module is also used for receiving an IP connection access network IP-CAN session request sent by an online user, wherein the IP-CAN session request contains a user identifier;
the sending module is further used for sending an access request to PCRF equipment according to the IP-CAN session request;
the receiving module is further configured to receive an authorization message fed back by the PCRF device, where the authorization message includes at least two first traffic segments and an access rule;
the sending module is further configured to feed back an IP-CAN session establishment message to the online user, so that the online user CAN use the first traffic segment;
the sending module is further configured to send a session update request to the PCRF device when the online user uses the first traffic segment.
15. A policy and charging rules control function, PCRF, device comprising:
the system comprises a processor, a transceiver and a memory, wherein the memory is used for storing codes executed by the processor;
the processor, the transceiver and the memory are connected through a bus system;
the transceiver is configured to issue a flow reporting instruction to a Policy and Charging Enforcement Function (PCEF) device when the processor detects a last first flow fragment, where the flow reporting instruction is used to instruct the PCEF device to obtain first flow information of an online user, and the first flow information is used to determine an actual required flow of the online user;
the transceiver is further configured to receive first traffic information of the online user, which is fed back by the PCEF device;
the processor is configured to obtain a second traffic segment according to the first traffic information, where the size of the second traffic segment is smaller than that of the first traffic segment, and the number of the second traffic segments is at least one;
the transceiver is further configured to send the second traffic slice to the PCEF device.
16. A policy and charging enforcement function, PCEF, device, comprising:
the system comprises a processor and a transceiver, wherein the transceiver is used for receiving a flow reporting instruction sent by a policy and charging rule control function PCRF device;
the processor is configured to obtain first traffic information of an online user according to the traffic reporting instruction, where the first traffic information is used to determine an actual demand traffic of the online user;
the transceiver is further configured to send the first traffic information to the PCRF device, so that the PCRF device obtains, according to the first traffic information, second traffic fragments, where the size of the second traffic fragments is smaller than that of the first traffic fragments, and there is at least one second traffic fragment;
the transceiver is further configured to receive a second traffic segment sent by the PCRF device.
CN201710113050.4A 2017-02-28 2017-02-28 Data flow distribution method and related equipment Active CN108512770B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710113050.4A CN108512770B (en) 2017-02-28 2017-02-28 Data flow distribution method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710113050.4A CN108512770B (en) 2017-02-28 2017-02-28 Data flow distribution method and related equipment

Publications (2)

Publication Number Publication Date
CN108512770A CN108512770A (en) 2018-09-07
CN108512770B true CN108512770B (en) 2020-10-23

Family

ID=63373288

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710113050.4A Active CN108512770B (en) 2017-02-28 2017-02-28 Data flow distribution method and related equipment

Country Status (1)

Country Link
CN (1) CN108512770B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111343098B (en) * 2020-02-13 2022-04-08 腾讯科技(深圳)有限公司 Data interaction method and device, computer equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102170475A (en) * 2011-04-22 2011-08-31 中兴通讯股份有限公司 File distribution system and fragmentation method based on P2P (peer-to-peer)
WO2016192634A2 (en) * 2015-06-01 2016-12-08 Huawei Technologies Co., Ltd. Method and apparatus for customer service management for a wireless communication network

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101730048B (en) * 2009-06-26 2016-03-30 中兴通讯股份有限公司 A kind of information transferring method and system
CN102883342B (en) * 2011-07-11 2018-06-08 中兴通讯股份有限公司 A kind of dosage monitoring method and system
CN102255813B (en) * 2011-07-18 2013-11-06 中国联合网络通信集团有限公司 Method, server and system for dispatching group shared traffic
CN102904740B (en) * 2011-07-28 2017-11-07 中兴通讯股份有限公司 One kind group user's consumption monitoring method and system
US9185237B2 (en) * 2013-03-15 2015-11-10 Tekelec, Inc. Methods, systems, and computer readable media for adjusting a quota consumption rate
CN104869552B (en) * 2014-02-25 2019-02-01 华为技术有限公司 The method and apparatus for reporting flow
CN104053186B (en) * 2014-06-23 2018-12-04 上海中兴软件有限责任公司 Flow control methods and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102170475A (en) * 2011-04-22 2011-08-31 中兴通讯股份有限公司 File distribution system and fragmentation method based on P2P (peer-to-peer)
WO2016192634A2 (en) * 2015-06-01 2016-12-08 Huawei Technologies Co., Ltd. Method and apparatus for customer service management for a wireless communication network

Also Published As

Publication number Publication date
CN108512770A (en) 2018-09-07

Similar Documents

Publication Publication Date Title
KR101414921B1 (en) Managing ip -can subscriber sessions in response to changes related to the subscriber
US8594621B2 (en) Usage sharing across fixed line and mobile subscribers
US8995305B2 (en) Sy session creation and recovering from inconsistent session state between PCRF and OCS
WO2019001109A1 (en) Charging method and device
US20120259747A1 (en) Method and apparatus for controlling service traffic in a communication network
US8983429B2 (en) Temporarily disable out-of-credit PCC rule
US20140066004A1 (en) Handling of ocs counter information
CA2935246C (en) Method, system and apparatus for adaptive quota determination for shared resources
US11689669B2 (en) Quota allocation to subscribers based on consumption speed, location, allowance, or combinations of the same
US9749477B2 (en) Solution to enforce time and usage threshold for monitoring
US20130086252A1 (en) Flexible rule based usage metering policies
CN103220651A (en) Method and equipment for carrying out charging control on application layer data
US20120290713A1 (en) Mid-session change support in usage monitoring
KR20180004156A (en) METHOD AND SYSTEM FOR CREATING TELEPHONE DETAILS RECORD OF A BILLING SYSTEM
US11038810B2 (en) Active subscriber count based charging and policy control
CN108512770B (en) Data flow distribution method and related equipment
WO2017092442A1 (en) Method, device, and system for rapid adjustment of policy and charging control
EP3618468B1 (en) Wireless communication method and device
EP4064756B1 (en) Bandwidth throttling in a radio access network
JP2015524196A (en) Metering limit application per flow and per session
US20140051384A1 (en) Out of credit final-unit-action restrict_access handling
EP2950581B1 (en) Policy server, policy enforcement device, and various methods for dynamically excluding active service add-ons from bearer throttling for user terminals
CN110880981B (en) Gx session exception handling method and device
US20140342693A1 (en) Sd peer selection and routing
US9832129B1 (en) Reducing reauthorization request messages in communications networks

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant