EVENT REPORTING METHOD AND APPARATUS
20190045385 ยท 2019-02-07
Assignee
Inventors
Cpc classification
H04W24/10
ELECTRICITY
International classification
Abstract
Embodiments of the present invention provide an event reporting method and an apparatus. The method includes: receiving, by a policy and charging rules function PCRF entity, a first message sent by a traffic detection function TDF entity, where the first message includes a start event, and the start event is used to notify the PCRF entity that a data stream starts to be transmitted; sending, by the PCRF entity, a second message to a PCEF entity or the TDF entity, where the second message is used by the PCEF entity or the TDF entity to send a stop event to the PCRF entity, and the stop event is used to notify the PCRF entity that the transmission of the data stream stops; and receiving, by the PCRF entity, the stop event sent by the PCEF entity or the TDF entity.
Claims
1. An event reporting method, comprising: receiving, by a policy and charging rules function (PCRF) entity, a first message from a traffic detection function (TDF) entity, wherein the first message comprises a start event, and the start event is used to notify the PCRF entity that a data stream starts to be transmitted; sending, by the PCRF entity, a second message to a policy and charging enforcement function (PCEF) entity or the TDF entity, wherein the second message is used by the PCEF entity or the TDF entity to send a stop event to the PCRF entity, and the stop event is used to notify the PCRF entity that the transmission of the data stream stops; and receiving, by the PCRF entity, the stop event from the PCEF entity or the TDF entity.
2. The method according to claim 1, wherein the first message further comprises 5-tuple information of the data stream; and the sending, by the PCRF entity, a second message to the PCEF entity or the TDF entity comprises: sending, by the PCRF entity, a reporting instruction of the stop event and the 5-tuple information of the data stream to the PCEF entity, wherein the 5-tuple information of the data stream is used by the PCEF entity to detect the data stream, and the reporting instruction of the stop event is used to instruct the PCEF entity to send the stop event to the PCRF entity when the transmission of the data stream stops.
3. The method according to claim 1, wherein the sending, by the PCRF entity, a second message to the PCEF entity or the TDF entity comprises: sending, by the PCRF entity, an identifier of the data stream and a reporting instruction of the stop event to the TDF entity, wherein the reporting instruction of the stop event is used to instruct the TDF entity to send the stop event to the PCRF entity when the transmission of the data stream stops; and the method further comprises: sending, by the PCRF entity, a notification to the TDF entity, wherein the notification is used to notify the TDF entity that the reporting instruction of the stop event is valid before the transmission of the data stream stops;.
4. The method according to claim 1, further comprising: sending, by the PCRF entity, modification information and an identifier of a downlink data stream of the data stream to the PCEF entity or the TDF entity, wherein the modification information is used by the PCEF entity or the TDF entity to send the stop event to the PCRF entity when the transmission of the downlink data stream of the data stream stops.
5. The method according to claim 1, further comprising: sending, by the PCRF entity, 5-tuple information of an uplink data stream of the data stream to the PCEF entity or the TDF entity.
6. An event reporting method, comprising: receiving, by a policy and charging enforcement function (PCEF) entity, a message from a policy and charging rules function (PCRF) entity, wherein the message is used by the PCEF entity to send a stop event to the PCRF entity, and the stop event is used to notify the PCRF entity that transmission of the data stream stops; detecting, by the PCEF entity, the data stream based on the message; and when the transmission of the data stream stops, sending, by the PCEF entity, the stop event to the PCRF entity.
7. The method according to claim 6, wherein the message comprises 5-tuple information of the data stream and a reporting instruction of the stop event, and the reporting instruction of the stop event is used to instruct the PCEF entity to send the stop event to the PCRF entity when the transmission of the data stream stops; and the detecting, by the PCEF entity, the data stream based on the message comprises: detecting, by the PCEF entity, a data stream corresponding to the 5-tuple information of the data stream.
8. The method according to claim 6, further comprising: receiving, by the PCEF entity, modification information and an identifier of a downlink data stream of the data stream that are from the PCRF entity, wherein the modification information is used by the PCEF entity to send the stop event to the PCRF entity when the transmission of the downlink data stream of the data stream stops.
9. The method according to claim 6, further comprising: receiving, by the PCEF entity, 5-tuple information of an uplink data stream of the data stream from the PCRF entity.
10. A policy and charging rules function (PCRF) entity comprising: a memory, configured to store computer executable program code; and a processor, coupled to the memory, wherein the program code comprises an instruction, and when the processor executes the instruction, the instruction enables the PCRF entity to perform the following operations: receiving a first message from a traffic detection function (TDF) entity, wherein the first message comprises a start event, and the start event is used to notify the PCRF entity that a data stream starts to be transmitted; sending a second message to a policy and charging enforcement function (PCEF) entity or the TDF entity, wherein the second message is used by the PCEF entity or the TDF entity to send a stop event to the PCRF entity, and the stop event is used to notify the PCRF entity that the transmission of the data stream stops; and receiving the stop event from the PCEF entity or the TDF entity.
11. The PCRF entity according to claim 10, wherein the first message further comprises 5-tuple information of the data stream, the operation of sending a second message comprising: sending a reporting instruction of the stop event and the 5-tuple information of the data stream to the PCEF entity, wherein the 5-tuple information of the data stream is used by the PCEF entity to detect the data stream, and the reporting instruction of the stop event is used to instruct the PCEF entity to send the stop event to the PCRF entity when the transmission of the data stream stops.
12. The PCRF entity according to claim 10, wherein when the processor executes the instruction, the instruction further enables the PCRF entity to further perform the following operations: sending an identifier of the data stream and a reporting instruction of the stop event to the TDF entity, wherein the reporting instruction of the stop event is used to instruct the TDF entity to send the stop event to the PCRF entity when the transmission of the data stream stops; and sending a notification to the TDF entity, wherein the notification is used to notify the TDF entity that the reporting instruction of the stop event is valid before the transmission of the data stream stops.
13. The PCRF entity according to claim 10, wherein when the processor executes the instruction, the instruction further enables the PCRF entity to further perform the following operations: sending modification information and an identifier of a downlink data stream of the data stream to the PCEF entity or the TDF entity, wherein the modification information is used by the PCEF entity or the TDF entity to send the stop event to the PCRF entity when the transmission of the downlink data stream of the data stream stops.
14. The PCRF entity according to claim 13, wherein when the processor executes the instruction, the instruction further enables the PCRF entity to further perform the following operations: sending 5-tuple information of an uplink data stream of the data stream to the PCEF entity or the TDF entity.
15. A policy and charging enforcement function (PCEF) entity comprising: a memory, configured to store computer executable program code; and a processor, coupled to the memory, wherein the program code comprises an instruction, and when the processor executes the instruction, the instruction enables the PCEF entity to perform the following operations: receiving a message from a policy and charging rules function (PCRF) entity, wherein the message is used by the PCEF entity to send a stop event to the PCRF entity, and the stop event is used to notify the PCRF entity that transmission of the data stream stops; detecting the data stream based on the message; and sending the stop event to the PCRF entity when the transmission of the data stream stops.
16. The PCEF entity according to claim 15, wherein the message comprises 5-tuple information of the data stream and a reporting instruction of the stop event, the reporting instruction of the stop event is used to instruct the PCEF entity to send the stop event to the PCRF entity when the transmission of the data stream stops; wherein the operation of detecting the data stream based on the message comprising: detecting a data stream corresponding to the 5-tuple information of the data stream.
17. The PCEF entity according to claim 15, wherein when the processor executes the instruction, the instruction further enables the PCEF entity to perform the following operations: receiving modification information and an identifier of a downlink data stream of the data stream from the PCRF entity, wherein the modification information is used by the PCEF entity to send the stop event to the PCRF entity when the transmission of the downlink data stream of the data stream stops.
18. The method according to claim 15, wherein when the processor executes the instruction, the instruction further enables the PCEF entity to perform the following operations: receiving 5-tuple information that is of an uplink data stream of the data stream from the PCRF entity.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0044] To describe the technical solutions in the embodiments of the present invention more clearly, the following briefly describes the accompanying drawings required for describing the embodiments. Apparently, the accompanying drawings in the following description show merely some embodiments of the present invention, and a person of ordinary skill in the art may derive other drawings from these accompanying drawings without creative efforts.
[0045]
[0046]
[0047]
[0048]
[0049]
[0050]
[0051]
[0052]
[0053]
[0054]
[0055]
[0056]
[0057]
DESCRIPTION OF EMBODIMENTS
[0058] To make the objectives, technical solutions, and advantages of the present invention clearer, the following describes the technical solutions of the embodiments of the present invention with reference to the accompanying drawings.
[0059] In an existing data transmission process, after a data stream starts to be transmitted, a PCRF entity delivers a PCC rule to a PCEF entity. Therefore, after the PCEF entity binds the data stream to a corresponding bearer, the PCRF entity retains the corresponding bearer for the data stream because the PCRF entity cannot learn whether the data stream stops or when to stop. Therefore, even after the transmission of the foregoing data stream stops, the corresponding bearer of the data stream cannot be released, thereby causing a waste of network resources.
[0060] For this purpose, embodiments of the present invention provide an event reporting method and an apparatus, so as to resolve a problem of the waste of the network resources. The method and the apparatus are based on a same inventive concept. Because problem resolving principles of the method and the apparatus are similar, mutual reference may be made to implementations of the method and the apparatus, and no repeated description is provided.
[0061] To clearly describe the solutions in the embodiments of the present invention, a service scenario and a system architecture that may be used in the embodiments of the present invention are described below with reference to
[0062]
[0063]
[0064] It should be noted that the foregoing PCC architectures shown in
[0065] It may be understood that the network architecture and the service scenario described in the embodiments of the present invention are intended to describe the technical solutions in the embodiments of the present invention more clearly, and impose no limitation on the technical solutions provided in the embodiments of the present invention. A person of ordinary skill in the art may know that, with evolution of the network architecture and emergence of a new service scenario, the technical solutions provided in the embodiments of the present invention are also applicable to a similar technical problem.
[0066] Based on foregoing common aspects included in the embodiments of the present invention, the following further describes the embodiments of the present invention in detail.
[0067] An embodiment of the present invention provides an event reporting method, an apparatus based on the method, such as a PCRF entity, a PCEF entity, and a TDF entity, and a system based on the method. As shown in
[0068] Compared with the prior art, in the solutions provided in the embodiments of the present invention, the PCRF entity sends the second message to the PCEF entity or the TDF entity, where the second message is used by the PCEF entity or the TDF entity to send the stop event to the PCRF entity, so that the PCRF entity can receive, after receiving the start event and learning that the data stream starts to be transmitted, the stop event to learn that the transmission of the data stream stops. Therefore, after the transmission of the data stream stops, the PCRF entity may unbind the data stream from the corresponding bearer to release the bearer, reducing a waste of network resources.
[0069] The following further describes the solutions provided in the embodiments of the present invention with reference to
[0070]
[0071] In step 501, a PCRF entity delivers a first rule to a TDF entity.
[0072] The first rule includes an identifier and a reporting instruction of the start event. The start event is used to notify the PCRF entity that a data stream starts to be transmitted, and the identifier is used to identify the data stream. For example, the identifier may be an application identifier. The first rule may be an ADC rule.
[0073] For example, the first rule may further include a reporting instruction of a stop event, and the stop event is used to notify the PCRF entity that the transmission of the data stream stops. The first rule that includes the identifier and the reporting instruction of the start event is delivered to the TDF entity, so that the TDF entity may detect, in a timely manner, whether the data stream corresponding to the identifier starts to be transmitted, and report the start event to the PCRF when detecting that the data stream corresponding to the identifier starts to be transmitted. Therefore, the PCRF entity may learn, in a timely manner, that the data stream starts to be transmitted.
[0074] In step 502, the TDF detects a data stream corresponding to the identifier.
[0075] After receiving the first rule, the TDF entity detects, based on the reporting instruction of the start event, the data stream identified by the identifier, and performs step 503 when detecting that the data stream identified by the identifier starts to be transmitted.
[0076] In step 503, the TDF entity sends a first message to the PCRF entity, where the first message includes a start event.
[0077] For example, the first message further includes 5-tuple information of the data stream. The 5-tuple information includes five pieces of information: a source IP address, a source port, a destination IP address, a destination port, and a transport layer protocol. For example, a 5-tuple includes 192.168.1.1, 10000, TCP, 121.14.88.76, and 80.
[0078] In step 504, the PCRF entity delivers a second rule to a PCEF entity.
[0079] After receiving the start event, the PCRF entity learns that the data stream starts to be transmitted, and generates the second rule. For example, the second rule may be a PCC rule. The second rule includes the reporting instruction of the stop event and the 5-tuple information.
[0080] For example, the second rule may further include a quality of service policy or a charging policy of the data stream, or the like. Then correspondingly, after receiving the second rule, the PCEF may bind, based on the quality of service policy in the second rule, the data stream corresponding to the 5-tuple information to a corresponding bearer, or perform, based on the charging policy in the second rule, charging on the data stream corresponding to the 5-tuple information.
[0081] In step 505, the PCEF entity detects a data stream corresponding to the 5-tuple information.
[0082] After receiving the reporting instruction of the stop event, the PCEF entity detects the corresponding data stream based on the 5-tuple information, and performs step 506 when detecting that the transmission of the data stream identified by the 5-tuple information stops.
[0083] In step 506, the PCEF entity sends a stop event to the PCRF entity.
[0084] By performing steps 504 to 506, the PCRF entity may learn, based on the stop event reported by the PCEF entity, that the transmission of the data stream stops. Therefore, even if the first rule does not include the reporting instruction of the stop event, the PCRF entity can also learn, in a timely manner, that the transmission of the data stream stops.
[0085] In an existing procedure, after the first rule (such as the ADC rule) is delivered, if the PCRF entity sends the second rule (such as the PCC rule) to the PCEF entity, the first rule is no longer executed. To be specific, the TDF entity does not detect whether the data stream stops, and does not report the stop event to the PCRF entity. However, in the solution shown in
[0086]
[0087] In step 601, a PCRF entity delivers a third rule to a TDF entity.
[0088] The third rule includes an identifier, a reporting instruction of a start event, and a reporting instruction of a stop event, and the identifier is used to identify a data stream. For example, the identifier may be an application identifier. The third rule may be an ADC rule.
[0089] In step 602, the TDF entity detects a data stream corresponding to the identifier.
[0090] After receiving the third rule, the TDF entity detects the data stream identified by the identifier. When it is detected that the data stream identified by the identifier starts to be transmitted, step 603 is performed. When it is detected that the transmission of the data stream identified by the identifier stops, step 604 is performed.
[0091] For example, the third rule further includes a notification, and the notification is used to notify the TDF entity that the reporting instruction of the stop event is valid before the transmission of the data stream stops. For example, after receiving the third rule, the TDF entity may configure the reporting instruction of the stop event to take effect after the TDF entity sends the start event to the PCRF entity, and remain valid until the transmission of the data stream stops; or after the third rule is delivered, the reporting instruction of the stop event is always valid until the transmission of the data stream stops.
[0092] For another example, the PCRF entity may not add the notification to the third rule, but sends the notification to the TDF entity in another manner after the third rule is delivered. A specific implementation is not limited.
[0093] For another example, the TDF entity configures a rule in which the reporting instruction of the stop event is valid before the transmission of the data stream stops. To be specific, after the TDF entity receives the third rule, the reporting instruction of the stop event in the third rule starts to take effect after the TDF entity sends the start event to the PCRF entity, and is valid until the transmission of the data stream stops.
[0094] In step 603, the TDF entity sends a first message to the PCRF entity, where the first message includes a start event.
[0095] For example, after receiving the first message sent by the TDF entity, the PCRF entity may formulate a PCC rule, and deliver the PCC rule to a PCEF entity. The PCC rule may further include 5-tuple information of the data stream, a quality of service policy or a charging policy, and the like. Correspondingly, after receiving the PCC rule, the PCEF entity may bind, based on the quality of service policy in the PCC rule, the data stream corresponding to the 5-tuple information to a corresponding bearer, or perform, based on the charging policy in the PCC rule, charging on the data stream corresponding to the 5-tuple information.
[0096] In step 604, the TDF entity sends a stop event to the PCRF entity.
[0097] In an existing procedure, when the ADC rule includes the reporting instruction of the stop event, if the PCRF entity sends the PCC rule to the PCEF entity, the reporting instruction of the stop event in the ADC rule is invalid. To be specific, the TDF entity does not detect whether the data stream stops, and does not report the stop event to the PCRF entity. However, in the solution shown in
[0098]
[0099] In step 701, a PCRF entity delivers a third rule to a TDF entity.
[0100] Step 701 is similar to step 601 in
[0101] In step 702, the TDF entity detects a data stream corresponding to an identifier.
[0102] Step 702 is similar to step 602 in
[0103] After receiving the third rule, the TDF entity detects the data stream identified by the identifier. When it is detected that the data stream identified by the identifier starts to be transmitted, step 703 is performed.
[0104] In step 703, the TDF entity sends a first message to the PCRF entity, where the message includes a start event.
[0105] Step 703 is similar to step 603 in
[0106] For example, the first message further includes 5-tuple information of an uplink data stream of the data stream.
[0107] In step 704, the PCRF entity sends a fourth rule to a PCEF entity.
[0108] The fourth rule includes at least one of the 5-tuple information of the uplink data stream of the data stream and a quality of service policy of the uplink data stream of the data stream. The fourth rule may be a PCC rule.
[0109] For example, after receiving the fourth rule, the PCEF entity may bind, based on the quality of service policy in the fourth rule, the uplink data stream corresponding to the 5-tuple information to a corresponding bearer, for example, generate a traffic flow template (TFT), and notify a terminal device, and the terminal device binds the bearer of the uplink data stream.
[0110] In step 705, the PCRF entity sends modification information to the TDF entity.
[0111] The modification information is used by the TDF entity to send the stop event to the PCRF entity when transmission of a downlink data stream of the data stream stops. It may be understood that a manner of sending the modification information herein is merely used as an example, and the PCRF entity may also enable, by sending other information or in any another manner, the TDF entity to send the stop event to the PCRF entity when the transmission of the downlink data stream of the data stream stops.
[0112] In step 706, the TDF entity sends a stop event to the PCRF entity.
[0113] When detecting that the transmission of the downlink data stream of the data stream stops, the TDF entity sends the stop event to the PCRF entity.
[0114] For example, the TDF entity detects a data stream corresponding to a particular application, and the data stream corresponding to the application includes only a downlink data stream or the application has a small amount of data transmitted in an uplink direction. When detecting that the transmission of the downlink data stream corresponding to the application stops, the TDF entity may consider that data transmission corresponding to the application has ended and therefore send the stop event to the PCRF entity.
[0115] In the solution shown in
[0116] It should be noted that in the solution shown in
[0117] It should be noted that the methods described in
[0118] The foregoing mainly describes the solutions provided in the embodiments of the present invention from a perspective of interaction between network elements. It may be understood that, to implement the foregoing functions, each network element, such as the PCRF entity, the PCEF entity, and the TDF entity, includes a corresponding hardware structure and/or software module for performing each function. A person skilled in the art should be easily aware that, with reference to units and algorithm steps in the examples described in the embodiments provided in this specification, the present invention can be implemented in a form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or hardware driven by computer software depends on particular applications and design constraints of the technical solutions. A person skilled in the art may use different methods to perform the described functions for each particular application, but it should not be considered that the implementation goes beyond the scope of the present invention.
[0119] In the embodiments of the present invention, division of functional units may be performed on the PCRF entity, the PCEF entity, and the TDF entity based on the foregoing method examples. For example, each functional unit may be obtained through division based on a corresponding function, or two or more functions may be integrated into one processing unit. The integrated unit may be implemented in a form of hardware, or may be implemented in a form of a software functional unit. It should be noted that the unit division in the embodiments of the present invention is an example, and is only logical function division. There may be another division manner in an actual implementation.
[0120] When an integrated unit is used,
[0121] The processing unit 802 may be a processor or a controller, for example, may be a central processing unit (CPU), a general purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or another programmable logic device, a transistor logic device, a hardware component, or any combination thereof. The processing unit 802 may implement or execute various example logical blocks, modules, and circuits described with reference to content provided in the present invention. The processor may also be a combination of processors performing a computing function, for example, one microprocessor or a combination of more than one microprocessor, or a combination of the DSP and a microprocessor. The communications unit 803 may be a transceiver, a transceiver circuit, a communications interface, or the like. The storage unit 801 may be a memory.
[0122] When the processing unit 802 is the processor, the communications unit 803 is the transceiver, and the storage unit 801 is the memory, the PCRF entity provided in this embodiment of the present invention may be a PCRF entity shown in
[0123] Referring to
[0124] When an integrated unit is used,
[0125] The processing unit 902 may be a processor or a controller, for example, may be a central processing unit (CPU), a general purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or another programmable logic device, a transistor logic device, a hardware component, or any combination thereof. The processing unit 902 may implement or execute various example logical blocks, modules, and circuits described with reference to content provided in the present invention. The processor may also be a combination of processors performing a computing function, for example, one microprocessor or a combination of more than one microprocessor, or a combination of the DSP and a microprocessor. The communications unit 903 may be a transceiver, a transceiver circuit, a communications interface, or the like. The storage unit 901 may be a memory.
[0126] When the processing unit 902 is the processor, the communications unit 903 is the transceiver, and the storage unit 901 is the memory, the PCEF entity provided in this embodiment of the present invention may be a PCEF entity shown in
[0127] Referring to
[0128] When an integrated unit is used,
[0129] The processing unit 1002 may be a processor or a controller, for example, may be a central processing unit (CPU), a general purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or another programmable logic device, a transistor logic device, a hardware component, or any combination thereof. The processing unit 1002 may implement or execute various example logical blocks, modules, and circuits described with reference to content provided in the present invention. The processor may also be a combination of processors performing a computing function, for example, one microprocessor or a combination of more than one microprocessor, or a combination of the DSP and a microprocessor. The communications unit 1003 may be a transceiver, a transceiver circuit, a communications interface, or the like. The storage unit 1001 may be a memory.
[0130] When the processing unit 1002 is the processor, the communications unit 1003 is the transceiver, and the storage unit 1001 is the memory, the TDF entity provided in this embodiment of the present invention may be a TDF entity shown in
[0131] Referring to
[0132] It should be noted that when functions of the TDF entity and the PCEF entity are integrated into an integrated device, a structure of the integrated device may be shown in
[0133] Method or algorithm steps described in combination with the content provided in the present invention may be implemented by hardware, or may be implemented by a processor by executing a software instruction. The software instruction may include a corresponding software module. The software module may be stored in a random access memory (RAM), a flash memory, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a register, a hard disk, a mobile hard disk, a compact disc read-only memory (CD-ROM), or any other form of storage medium well-known in the art. For example, a storage medium is coupled to a processor, so that the processor can read information from the storage medium or write information into the storage medium. Certainly, the storage medium may be a component of the processor. The processor and the storage medium may be located in the ASIC. In addition, the ASIC may be located in a core network interface device. Certainly, the processor and the storage medium may exist in the core network interface device as discrete components.
[0134] A person skilled in the art should be aware that in the foregoing one or more examples, functions described in the present invention may be implemented by hardware, software, firmware, or any combination thereof When the present invention is implemented by software, the foregoing functions may be stored in a computer-readable medium or transmitted as one or more instructions or code in the computer-readable medium. The computer-readable medium includes a computer storage medium and a communications medium, where the communications medium includes any medium that enables a computer program to be transmitted from one place to another. The storage medium may be any available medium accessible to a general-purpose or dedicated computer.
[0135] The objectives, technical solutions, and benefits of the present invention are further described in detail in the foregoing specific embodiments. It should be understood that the foregoing descriptions are merely specific embodiments of the present invention, but are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.