WO2014179992A1 - User plane event processing method, pcrf entity, and af entity - Google Patents

User plane event processing method, pcrf entity, and af entity Download PDF

Info

Publication number
WO2014179992A1
WO2014179992A1 PCT/CN2013/075490 CN2013075490W WO2014179992A1 WO 2014179992 A1 WO2014179992 A1 WO 2014179992A1 CN 2013075490 W CN2013075490 W CN 2013075490W WO 2014179992 A1 WO2014179992 A1 WO 2014179992A1
Authority
WO
WIPO (PCT)
Prior art keywords
user plane
plane event
entity
response message
event reporting
Prior art date
Application number
PCT/CN2013/075490
Other languages
French (fr)
Chinese (zh)
Inventor
王硕
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201380000728.8A priority Critical patent/CN104303488A/en
Priority to PCT/CN2013/075490 priority patent/WO2014179992A1/en
Publication of WO2014179992A1 publication Critical patent/WO2014179992A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0894Policy-based network configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/66Policy and charging system

Definitions

  • the embodiments of the present invention relate to communication technologies, and in particular, to a user plane event processing method, a PCRF entity, and an AF entity. Background technique
  • PCRF Policy and Charging Rule Function
  • an Extensible Markup Language is used for communication between an Application Function entity and a PCRF of a third-party network
  • an XML-based protocol is a Simple Object Access protocol.
  • Protocol (SOAP) or Representational State Transfer (Rest) is a standard client-server (C/S) mode. In this mode, it can only be activated by the AF as a client.
  • the PCRF as the server sends a message.
  • the AF acquires the user plane event of the PCRF, it will receive an empty user plane event, which causes a waste of system resources.
  • the embodiment of the present invention provides a user plane event processing method, a PCRF entity, and an AF entity, which can implement the PCRF to report a user plane event to the AF.
  • a first aspect of the present invention provides a user plane event processing method, including:
  • PCRF entity and application function AF entity establishes long connection
  • the PCRF entity reports the first user plane event and the second user plane event to the AF entity on the established long connection, where the first user plane event and the second user plane event are non-empty users. In the case of a face event, the PCRF entity suppresses sending empty user plane events on the long connection.
  • the PCRF entity and the AF Entities establish long connections, including:
  • the PCRF entity directly establishes the long connection with the AF entity;
  • the PCRF entity establishes the long connection with the AF entity through an intermediate network element.
  • the long connection is a long connection based on a flow
  • the PCRF entity reports the first user plane event and the second user plane event to the AF entity on the established long connection, including:
  • the PCRF entity reports the first user plane event and the second user plane event to the AF entity on the stream-based long connection.
  • the PCRF entity reports the first user plane event and the first to the AF entity on the frame based long connection.
  • Two user plane events including:
  • the response message and the second user plane event report response message are in response to the first user plane event report request message, where the first user plane event report response message includes the first user plane event, the second user face
  • the event reporting response message includes the second user plane event
  • the first user plane event report response message includes a first user plane event
  • the second user plane event report response message includes the second user plane event .
  • the long connection is a long connection based on a long-polling based
  • the PCRF entity reports the first user plane event and the second user plane event to the AF on the established long connection, including:
  • the PCRF entity reports the first user plane event and the second user plane event to the AF entity on the long polling-based long connection, including :
  • sending the first user plane event report to the AF entity on the long polling-based long connection
  • the response message and the second user plane event report response message, the first user plane event report response message is responsive to the first user plane event report request message, and the second user plane event report response message is responsive to the second user
  • the first user plane event report response message includes the first user plane event
  • the second user plane event report response message includes the second user plane event.
  • a second aspect of the present invention provides a user plane event processing method, including:
  • the application function AF entity establishes a long connection with the policy and charging rule function PCRF entity; the AF entity receives the first user plane event and the second user plane event reported by the PCRF entity on the established long connection, where The first user plane event and the second user plane event are non-empty user plane events.
  • the AF entity establishes a long connection with the PCRF entity, including:
  • the AF entity directly establishes the long connection with the PCRF entity
  • the AF entity establishes the long connection with the PCRF entity through an intermediate network element.
  • the long connection is a long connection based on a flow
  • the AF entity receives the first user plane event and the second user plane event reported by the PCRF entity on the stream-based long connection.
  • the AF entity receives the first user plane event and the second user plane reported by the PCRF entity on the stream-based long connection.
  • Events including:
  • the AF entity After the first entity plane event report request message is sent to the PCRF entity, the AF entity receives the first user plane event sent by the PCRF entity on the stream-based long connection. And reporting, by the first user plane event reporting message, the first user plane event reporting request message, where the first user plane event reporting response message includes the first user plane event, the second user The second event surface event is included in the face event report response message; or
  • the AF entity After the first user plane event report request message is sent to the intermediate network element, the AF entity receives the first user plane event sent by the intermediate network element on the stream-based long connection. And reporting, by the first user plane event reporting message, the first user plane event reporting request message, where the first user plane event reporting response message includes the first user plane event, the second user The second event surface event is included in the face event report response message.
  • the long connection is a long connection based on long polling
  • the AF entity receives the first user plane event and the second user plane event reported by the PCRF entity on the long polling-based long connection.
  • the AF entity receives the first user plane event and the second reported by the PCRF entity on the long polling-based long connection.
  • User-side events including:
  • the first user plane event report response message and the second user plane event report sent by the PCRF entity are received on the long polling-based long connection.
  • the first user plane event report response message is responsive to the first two user plane event report request messages
  • the second user plane event report response message is responsive to the second user plane event report request message.
  • the first user plane event report response message includes the first user plane event
  • the second user plane event report response message includes the second user plane event; or
  • the AF entity receives the long polling based long connection.
  • the second user plane event report response message is sent to the second user plane event report request message, where the first user plane event report response message includes the first user plane event, and the second user plane event report response message The second user plane event is included.
  • the AF entity establishes a long connection with the PCRF entity. , including:
  • the AF entity establishes a long connection with the PCRF entity after the session establishment is completed.
  • the third aspect of the present invention provides a policy and charging rule function PCRF entity, including: a long connection establishing module, configured to establish a long connection with an application function AF entity;
  • a user plane event reporting module configured to report a first user plane event and a second user plane event to the AF entity on the established long connection, and suppress sending an empty user plane event on the long connection, where The first user plane event and the second user plane event are non-empty user plane events.
  • the long connection establishing module is specifically configured to:
  • the long connection is a long connection based on a flow
  • the user plane event reporting module is specifically configured to: send the AF to the stream-based long connection
  • the entity reports the first user plane event and the second user plane event.
  • the user plane event reporting module is specifically configured to:
  • the second user plane event reporting response message is responsive to the first user plane event reporting request message, and the at least two first user plane event reporting response messages include the first user plane event, the second user plane event
  • the report response message includes the second user plane event
  • the first user plane event report response message and the second user plane event report response message are sent to the AF entity on the stream-based long connection in response to the
  • the first user plane event report request message includes: the first user plane event report response message includes the first user plane event, and the second user plane event report response message includes the second user plane event.
  • the long connection is a long connection based on long polling
  • the user plane event reporting module is configured to report the first user plane event and the second user plane event to the AF entity on the long polling-based long connection.
  • the user plane event reporting module is specifically configured to:
  • a first user plane event reporting request message and a second user plane event reporting request message sent by the AF entity to the long polling based long connection
  • the AF entity sends a first user plane event report response message and a second user plane event report response message, and the first user plane event report response message is responsive to the first two user plane event report request messages, the second user
  • the second user plane event report response message includes the first user plane event
  • the second user plane event report response message includes the second user plane event report request message.
  • the first user plane event report response message and the second user plane event report response message are sent to the AF entity, and the first user plane event report response message is responsive to the first user.
  • the second user plane event report response message is responsive to the second user plane event report request message, and the first user plane event report response message includes the first user plane event,
  • the second user plane event report response message includes the second user plane event.
  • a fourth aspect of the present invention provides an application function AF entity, including: a long connection establishing module, configured to establish a long connection with a policy and charging rule function PCRF entity; and a user plane event receiving module, configured to be established The first user plane event and the second user plane event reported by the PCRF entity are received on the long connection, where the first user plane event and the second user plane event are non-empty user plane events.
  • the long connection establishing module is specifically configured to:
  • the long connection is a long connection based on a flow
  • the user plane event receiving module is specifically configured to receive the
  • the first user plane event and the second user plane event reported by the PCRF entity.
  • the user plane event receiving module is specifically configured to:
  • the first user plane event report response message sent by the PCRF entity is received on the stream-based long connection.
  • the second user plane event report response message is sent to the first user plane event report request message, where the first user plane event report response message includes the first user plane event, and the second user plane event report response The message includes the second user plane event; or, after sending the first user plane event report request message to the intermediate network element on the stream-based long connection, receiving the message on the stream-based long connection
  • the first user plane event sent by the intermediate network element And reporting, by the second user plane event reporting message, the first user plane event reporting request message, where the first user plane event reporting response message includes the first user plane event, the second user The second event surface event is included in the face event report response message.
  • the long connection is a long connection based on a long polling
  • the user plane event receiving module is configured to: receive the first user plane event and the second user plane event reported by the PCRF entity on the long polling-based long connection.
  • the user plane event receiving module is specifically configured to:
  • the first user plane event reporting request message and the second user plane event reporting request message are sent to the intermediate network element on the long polling-based long connection, receiving the long round polling long connection a first user plane event report response message and a second user plane event report request message sent by the intermediate network element, the first user plane event report response message responding to the first user plane event report request message, the second user The second user plane event report response message includes the first user plane event, and the second user plane event report response message includes the second user plane event report request message.
  • the second user plane event is described.
  • the long connection establishing module is specifically configured to: After the session establishment is completed, a long connection is established with the PCRF entity.
  • a fifth aspect of the present invention provides a policy and charging rule function PCRF entity, including: a processor and a memory, where the memory stores an execution instruction, and when the PCRF entity is running, the processor communicates with the memory The processor executing the execution instruction such that the PCRF The entity performs any of the methods of the first aspect of the invention and the first to fifth possible implementations of the first aspect.
  • a sixth aspect of the present invention provides an application function AF entity, including: a processor and a memory, where the memory stores an execution instruction, when the AF entity is running, the processor and the memory communicate, the processing Executing the execution instructions causes the AF entity to perform the method of any of the first to sixth possible implementations of the second aspect of the invention and the second aspect.
  • the PCRF entity establishes a long connection with the AF entity, and the PCRF entity reports the first user plane event and the second user plane event to the AF entity on the established long connection, and suppresses sending the empty user. Face events do not have to establish a connection every time a user plane event needs to be reported, and do not have to send an empty user plane event, thereby reducing network signaling overhead.
  • Embodiment 1 is a flowchart of Embodiment 1 of a method for processing a user plane event according to the present invention
  • Embodiment 2 is a flowchart of Embodiment 2 of a method for processing a user plane event according to the present invention
  • Embodiment 3 is a flowchart of Embodiment 3 of a method for processing a user plane event according to the present invention
  • Embodiment 4 is a flowchart of Embodiment 4 of a method for processing a user plane event according to the present invention
  • Embodiment 5 is a flowchart of Embodiment 5 of a method for processing a user plane event according to the present invention
  • Embodiment 6 is a flowchart of Embodiment 6 of a method for processing a user plane event according to the present invention
  • Embodiment 7 is a signaling flowchart of Embodiment 7 of a method for processing a user plane event according to the present invention
  • Embodiment 8 is a signaling flowchart of Embodiment 8 of a method for processing a user plane event according to the present invention
  • Embodiment 9 is a schematic structural diagram of a PCRF entity provided in Embodiment 9 of the present invention.
  • FIG. 10 is a schematic structural diagram of an AF entity according to Embodiment 10 of the present invention.
  • FIG. 11 is a schematic structural diagram of a PCRF entity according to Embodiment 11 of the present invention.
  • FIG. 12 is a schematic structural diagram of an AF entity according to Embodiment 12 of the present invention.
  • the technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without departing from the inventive scope are the scope of the present invention.
  • the technical solutions described in the embodiments of the present invention are mainly applicable to communication between a third-party application server (ie, an AF entity) and a PCRF entity provided by a mobile network operator.
  • the operator's own server can establish interaction with the PCRF entity through the Rx interface.
  • the Diameter protocol is used, and the Diameter is the peer-to-peer protocol. Both ends of the protocol can be used as the client or server to send and receive messages.
  • the third-party application server and PCRF entity use XML-based protocol communication, and the XML-based protocol, whether SOAP or Rest, is a standard C/S mode, ie client-server mode, in this mode can only be used as a client.
  • the third-party application server actively sends a message to the PCRF entity that is the server, and the PCRF entity cannot initiate the message actively.
  • Embodiment 1 is a flowchart of Embodiment 1 of a method for processing a user plane event according to the present invention.
  • the method provided in this embodiment may be performed by a user plane event processing device, and the device may be integrated on a PCRF entity or an intermediate network element device.
  • the method provided by the example includes the following steps:
  • Step 101 The PCRF entity establishes a long connection with the AF entity.
  • the PCRF entity can directly establish a long connection with the AF entity, or the PCRF entity establishes a long connection with the AF entity through the intermediate network element.
  • an XML-based protocol is used between the PCRF entity and the AF entity, which may be a SOAP protocol or a Rest protocol.
  • an XML-based protocol is used between the intermediate network element and the AF entity
  • the Diameter protocol is used between the PCRF entity and the intermediate network element, because the PCRF entity and the intermediate network element are used.
  • the Diameter protocol is a peer-to-peer protocol.
  • User plane events at the PCRF entity can be directly reported to the intermediate network element, and then reported to the AF entity by the intermediate network element through the established long connection.
  • the intermediate network element can be a gateway or other functional entity such as a protocol conversion unit.
  • the long connection established between the PCRF entity and the AF entity may be a long connection based on a flow or a long connection based on a long poll.
  • HTTP Hypertext Transfer Protocol
  • the HTTP long connection does not need to establish a Transmission Control Protocol (TCP) connection every time an HTTP request is initiated.
  • HTTP long connections use the same TCP connection to handle multiple HTTP requests and responses, also known as HTTP keep-alive, or HTTP connection reuse.
  • HTTP keep-alive also known as HTTP keep-alive, or HTTP connection reuse.
  • the Content-Length header is implemented.
  • server push technology The basic idea of server push technology is to change the browser's active query information to the server to send information actively.
  • the server sends a batch of data, and the browser displays the data and ensures the connection with the server. So that the server still uses this connection for data transmission.
  • HTTP long connection includes two methods. One is long polling mode.
  • the server blocks the previous response to the client. After the event occurs, the event content is bound to the response and returned to the client. At the same time, the response ends.
  • the client immediately sends a second request, and the server blocks the response waiting for the next event to occur.
  • the server In the stream-based mode, after the server blocks the client's response, it does not close the response but keeps the connection and sends data to the client through the connection.
  • the server side actively sends data to the client.
  • Step 102 The PCRF entity reports the first user plane event and the second user plane event to the AF entity on the established long connection, where the first user plane event and the second user plane event are non-empty user plane events, PCRF The entity suppresses sending empty user plane events on long connections.
  • the PCRF entity may actively report the first user plane event and the second user plane event to the AF entity, where A user plane event and a second user plane event are non-empty user plane events, and the PCRF entity suppresses sending empty user plane events on long connections.
  • the PCRF entity may carry the user plane event in the user plane event report response message and send it to the AF entity.
  • the PCRF entity When the PCRF entity establishes a long connection with the AF entity through the intermediate network element, when the user plane event occurs, the PCRF real The user is notified of the intermediate network element user plane event, and then the intermediate network element carries the user plane event in the user plane event report response message and sends it to the AF entity.
  • the user plane event may specifically be IP-CAN session termination, SDF deactivation, signaling path status notification, IP-CAN type change notification, access network charging information notification, sponsor data connection reporting, access network information reporting, etc. event.
  • the PCRF entity establishes a long connection with the AF entity, and the PCRF entity reports the first user plane event and the second user plane event to the AF entity on the established long connection, and suppresses sending the empty user plane.
  • the event does not have to establish a connection every time a user plane event needs to be reported, and does not have to send an empty user plane event, thereby reducing network signaling overhead.
  • FIG. 2 is a flowchart of a method for processing a user plane event according to a second embodiment of the present invention.
  • a method for actively reporting a user plane event to an AF entity by using a PCRF on a long-term connection is described. The following steps:
  • Step 201 The PCRF entity establishes a stream-based long connection with the AF entity.
  • the PCRF entity and the AF entity may establish a direct long connection; or the PCRF entity establishes a long connection with the AF entity through the intermediate network element.
  • the AF entity determines that there is a PCRF entity or an intermediate network element of the connectable XML-based protocol
  • the AF entity establishes a TCP connection with the PCRF entity or the intermediate network element, where the TCP connection is a TCP long connection, and then Send and receive HTTP messages.
  • the first entity user plane event report request message is sent by the AF entity to the PCRF entity
  • the first user plane event report request message is an HTTP message
  • the first user plane event report request is sent. The message is used to establish a flow-based HTTP long connection.
  • the PCRF entity After receiving the first user plane event report request, the PCRF entity determines that the first user plane event report request message is used to establish a flow-based HTTP long connection, specifically The first entity plane event report request message sent by the AF entity to the PCRF entity carries the identifier information, which is used to indicate whether the HTTP long connection is based on a flow or a long polling manner. After the PCRF entity determines that the first user plane event report request message is used to establish a flow-based HTTP long connection, an ACK response message is returned to the AF entity, indicating that the HTTP long connection is successfully established.
  • Step 202 The PCRF entity reports the first user plane event and the second user plane event to the AF entity on the long connection based on the flow.
  • the PCRF entity reports the first user plane event and the second user plane event to the AF entity on the flow-based long connection.
  • the PCRF entity receives the first sent by the AF entity on the long connection based on the flow.
  • the first user plane event report response message and the second user plane event report response message are sent to the AF entity in response to the first user plane event report request message, where
  • the first user plane event report response message includes the first user plane event
  • the second user plane event report response message includes the second user plane event
  • the PCRF entity sends the intermediate user element to the intermediate network element based on the long connection based on the flow a first user plane event and a second user plane event, so that the intermediate network element receives the first user plane event report request message sent by the AF entity on the long connection based on the flow, and then the AF entity on the long connection based on the flow Sending a first user plane event report response message and a second user plane event report response message in response to the first user plane event report request message, where
  • the PCRF entity does not disconnect the HTTP long connection, but keeps the connection waiting for the corresponding user plane event to occur.
  • the AF entity is detected.
  • the first user plane event is reported, and the PCRF entity may send the corresponding parameter of the user plane event to the AF entity in the first user plane event report response.
  • the PCRF entity maintains the HTTP long connection and continues to wait for the user plane event to occur.
  • the second user plane event occurs, the second user plane event is reported to the AF entity.
  • the PCRF entity or the intermediate network element can not only report two user plane event report response messages to the AF entity, that is, the first A user plane event report response message and a second user plane event report response message may also return multiple user plane event report response messages in response to the first user plane event, and each user plane event report response message includes a user. Face event.
  • the HTTP long connection uses a multi-answer method, the client sends a request message, and the server can return multiple messages in the form of a stream, that is, every time the PCRF entity detects a user plane event, The user plane event can be reported to the AF entity actively, and the AF entity does not need to request the data one by one.
  • the HTTP long connection is not broken, and the HTTP long connection is broken only if the connection is wrong or the connection is reestablished.
  • the AF entity may also actively terminate the HTTP long connection, and the AF entity sends a termination request message to the PCRF entity to notify the PCRF entity to stop reporting the user plane event, and the PCRF entity disconnects the HTTP long connection after receiving the termination request message. .
  • the PCRF entity and the AF entity establish a long connection based on the flow, After receiving the first user plane event report request message, waiting for the user plane event to occur, when the user plane event occurs, sending the first user plane event report response message and the second user to the AF entity on the stream-based long connection
  • the first event response message includes a first user plane event
  • the second user plane event response message includes a second user plane event
  • the PCRF entity actively reports the user plane event to the AF entity.
  • the AF entity can cause the PCRF entity to actively report the user plane event to the AF entity by detecting the user plane event once, and suppress the sending of the empty user plane event, without having to have the user face every time.
  • the event needs to establish a connection when reporting, and does not have to send an empty user plane event, thereby effectively reducing network signaling overhead.
  • FIG. 3 is a flowchart of a third embodiment of a method for processing a user plane event according to the present invention.
  • a PCRF entity actively reports a user plane event to an AF entity on a long connection based on a long polling.
  • the method specifically includes the following steps:
  • Step 301 The PCRF entity establishes a long connection based on long polling with the AF entity.
  • the PCRF entity and the AF entity can directly establish a long connection.
  • the PCRF entity establishes a long connection with the AF entity through the intermediate network element.
  • the AF entity determines that there is a PCRF entity or an intermediate network element of the connectable XML-based protocol
  • the AF entity establishes a TCP connection with the PCRF entity or the intermediate network element, and the TCP connection is a TCP long connection, which is established.
  • the AF entity sends a first user plane event report request message and a second user plane event report request message to the PCRF entity, where the first user plane event report request message and the second user plane event report request message are HTTP messages.
  • the first user plane event reporting request message is used to establish a long polling-based HTTP long connection, and after receiving the first user plane event reporting request message, the PCRF entity reports the request message according to the first user plane event.
  • the carried identification information determines that the first user plane event report request message is used to establish a long polling-based HTTP long connection, and then maintains an HTTP connection, waiting for the first user event to occur, when detecting that the first user plane event occurs,
  • the PCRF entity reports the first user plane event to the AF entity, or sends the user plane event to the intermediate network element, Between NE reports to the AF entity.
  • the second user plane event reporting request message is also used to establish a long long polling based HTTP connection, the PCRF entity maintains an HTTP connection, waits for a second user event to occur, and when a second user event is detected, the PCRF entity Reporting a second user plane event to the AF entity.
  • Step 302 The PCRF entity reports the first user to the AF entity on the long connection based on the long polling Face events and second user face events.
  • the PCRF entity reports the first user plane event and the second user plane event to the AF entity by using the long polling-based push mode on the long polling-based long connection.
  • the PCRF entity receives the long round-based long connection.
  • the first user plane event report response message and the second user face event report are sent to the AF entity on the long polling based long connection.
  • the first user plane event reporting response message is responsive to the first user plane event reporting request message
  • the second user plane event reporting response message is responsive to the second user plane event reporting request message, the first user plane event reporting message.
  • the response message includes a first user plane event
  • the second user plane event report response message includes a second user plane event.
  • the PCRF entity sends the first user plane event and the second user plane event to the intermediate network element on the long connection based on the long polling, so that the intermediate network element receives the AF entity sending on the long connection based on the long polling.
  • the first user plane event reporting response message and the second user plane event reporting response message are sent to the AF entity on the long polling based long connection.
  • the first user plane event reporting response message is responsive to the first user plane event reporting request message
  • the second user plane event reporting response message is responsive to the second user plane event reporting request message, the first user plane event reporting response message
  • the first user plane event is included, and the second user plane event report response message includes a second user plane event.
  • the PCRF entity receives the user plane event report request message sent by the AF entity, and determines that the user plane event report request message is used to establish a long polling-based HTTP long connection, which is different from the HTTP short connection, not immediately to the AF The entity returns a response message, but waits for the occurrence of the user plane event.
  • the user plane event is detected, the user plane event is reported to the AF entity.
  • the PCRF entity includes the corresponding information of the user plane event in the user plane event report.
  • the response message is sent to the AF entity, or the user plane event is sent to the intermediate network element, and the intermediate network element includes the corresponding information of the user plane event in the user plane event report response message, and sends the message to the AF entity, and sends the user plane event.
  • the PCRF entity can report not only two user plane events, that is, the first user plane event and the second user plane event, and the AF entity can send more to the PCRF entity.
  • the user plane event reporting request message the PCRF returns a user plane event reporting response message to each user plane event reporting message, and the user plane event reporting response message carries the user plane event.
  • the HTTP long connection is disconnected.
  • the AF entity After receiving the user plane event reported by the PCRF entity, the AF entity sends a user plane event report request message to the PCRF entity again, and re-establishes a long long polling-based HTTP long connection. Then, after receiving the request message, the PCRF entity receives the request message. , waiting for a user face event to occur. Different from the flow-based push mode, in the flow-based push mode, the PCRF entity does not need to disconnect the HTTP long connection after reporting the user plane event, and keeps the connection waiting for the user plane event to occur and reports the user plane event.
  • a long-based polling-based long connection is established between the PCRF entity and the AF entity, and the PCRF entity receives the first user plane event report request message and the second user plane event report request message sent by the AF entity. Waiting for a user plane event to occur, and transmitting a first user plane event report response message to the first user plane event request message to the AF entity on the long connection based on the long polling when the user plane event occurs, sending the first user plane event request message to the AF entity
  • the user plane event response message is responsive to the second user plane event request message, and the PCRF entity actively reports the user plane event to the AF entity.
  • the method provided in this embodiment can implement the sending and receiving of multiple HTTP packets by establishing a TCP connection.
  • the AF entity needs to establish a TCP connection with the PCRF entity every time the packet is sent.
  • Each time a TCP connection is established a three-way handshake is required, and the release requires four handshakes.
  • the establishment and release of the TCP connection also takes time and resources, and suppresses the sending of empty user plane events, and does not have to report every time there is a user plane event. When a connection is established, it is not necessary to send an empty user plane event, thereby effectively reducing network signaling overhead.
  • Embodiment 4 is a flowchart of Embodiment 4 of a method for processing a user plane event according to the present invention.
  • the method provided in this embodiment may be performed by a user plane processing device, where the device is integrated on an AF entity, where the AF entity may be a World Wide Web (World Wide) Web, referred to as WEB) server, video server, File Transfer Protocol (FTP) server and mail server.
  • WEB World Wide Web
  • WEB World Wide Web
  • FTP File Transfer Protocol
  • Step 401 The AF entity establishes a long connection with the PCRF entity.
  • the AF entity establishes a long connection with the PCRF entity after the session establishment is completed. Specifically, when the UE accesses the service to the AF entity, after the AF entity establishes a connection with the UE, the AF entity searches for a connectable PCRF entity according to the Internet Protocol (IP) address of the UE.
  • IP Internet Protocol
  • the AF entity is configured according to the The IP address of the UE acquires a Public Land Mobile Network (PLMN) of the UE, and the PLMN may be a home public land mobile
  • the Home Public Land Mobile Network (HPLMN) may also be a visit to the Public Land Mobile Network (VPLMN) VPLMN, and then the AF entity determines whether the PCRF entity in the PLMN supports the XML-based protocol. Support, then establish a long connection with the PCRF entity.
  • PLMN Public Land Mobile Network
  • HPLMN Public Land Mobile Network
  • VPLMN Public Land Mobile Network
  • the AF entity and the PCRF entity can directly establish a long connection; or the AF entity establishes a long connection with the PCRF entity through the intermediate network element.
  • the AF entity When the AF entity establishes a long connection with the PCRF entity through the intermediate entity, the AF entity needs to find the intermediate network element before establishing the long connection.
  • the corresponding relationship between the AF entity and the PCRF entity is pre-configured on the AF entity.
  • the AF entity can obtain the connectable intermediate network element and establish a long connection with the configuration information.
  • the long connection established between the AF entity and the PCRF entity may be a long connection based on a flow or a long connection based on a long polling.
  • Step 402 The AF entity receives, on the established long connection, a first user plane event and a second user plane event reported by the PCRF entity, where the first user plane event and the second user plane event are non-empty user plane events. .
  • the AF entity When the long connection established between the AF entity and the PCRF entity is a long connection based on the flow, the AF entity receives the first user plane event and the second user plane reported by the PCRF entity in the flow-based push manner on the long connection based on the flow. Event, and when the long connection established between the AF entity and the PCRF entity is a long connection based on long polling, the AF entity receives the PCRF entity on the established long poll-based long connection and reports it in a long polling manner. The first user plane event and the second user plane event.
  • the AF entity establishes a long connection with the PCRF entity, and the PCRF entity reports the user plane event to the AF entity through the established long connection, and suppresses sending the empty user plane event, and does not need to report the user plane event every time.
  • the connection is established and there is no need to send an empty user plane event, thereby reducing network signaling overhead.
  • step 402 is specifically: the AF entity receives the first user plane event and the first reported by the PCRF entity by using the flow-based push manner on the long connection based on the flow.
  • a user plane event, or the AF entity receives the first user plane event and the second user plane event reported by the PCRF entity in the long polling based push mode on the long polling based long connection.
  • the first user plane event and the second user plane event reported by the AF entity to receive the PCRF entity on the flow-based long connection are specifically: the AF entity sends the first use to the PCRF entity on the long connection based on the flow.
  • the first user plane event report response message and the second user plane event report response message sent by the PCRF entity are received on the long connection based on the flow, in response to the first user plane event report request message,
  • the first user plane event report response message includes a first user plane event
  • the second user plane event report response message includes the second user plane event; or, the AF entity sends the first network element to the intermediate network element on the flow-based long connection.
  • the user plane event report response message includes a first user plane event
  • the second user face report response message includes a second user plane event, where the first user plane event and the second user plane event are sent by the PCRF entity to the intermediate network element.
  • the PCRF entity When the PCRF entity reports the user plane event to the AF entity by using the flow-based push mode, after the AF entity establishes a TCP long connection with the PCRF entity, the AF entity only needs to send a user plane event report request message to establish a flow-based HTTP length. After the connection, the PCRF entity can report the user plane event to the AF entity through the HTTP long connection, and after reporting the user plane event, does not disconnect the HTTP long connection, but continues to wait for the user plane event to occur. Thus, multiple user plane events can be reported by one setup. The HTTP long connection is disconnected only when the connection is faulty or the connection is reestablished. Otherwise, the PCRF entity can always report the user plane event to the AF entity.
  • the first user plane event and the second user plane event reported by the AF entity to receive the PCRF entity on the long connection based on the long polling are specifically: the AF entity sends the first user plane event to the PCRF entity on the long connection based on the long polling
  • the first user plane event report response message and the second user plane event report response message sent by the PCRF entity are received on the long connection based on the long poll
  • the first user plane The event reporting response message is responsive to the first two user plane event reporting request message
  • the second user plane event reporting response message is responsive to the second user plane event reporting request message, where the first user plane event reporting response message includes the first message
  • the user plane event, the second user plane event report response message includes a second user plane event, where the user plane event report response message is that the PCRF entity waits for the user face after receiving the user plane event report request message sent by the AF entity.
  • the event occurs and is sent when a user plane event occurs.
  • the AF entity sends the first user plane event report request message and the second user plane event report request message to the intermediate network element after the long connection based on the long polling, and connects to the long connection based on the long polling And receiving, by the intermediate network element, the first user plane event report response message and the second user plane event report request message, the first user plane event report response message responding to the first user plane event report request message, and the second user plane event report request response
  • the message responds to the second user plane event report request message, where the first user plane event report response message includes a first user plane event, and the second user plane event report response message includes a second user plane event.
  • the user plane event report response message is that the intermediate network element waits for the PCRF entity to send the user plane event after receiving the user plane event report request message sent by the AF entity, and sends the user plane event after receiving the user plane event sent by the PCRF entity.
  • the PCRF entity When the PCRF entity directly establishes a long connection based on the long polling with the AF entity, the PCRF entity reports the user plane event to the AF entity by using the long polling-based push mode. Specifically, after the AF entity establishes a TCP long connection with the PCRF entity, The AF entity sends a user plane event report request message to the PCRF entity to establish a long long polling-based HTTP long connection. After receiving the user plane event report request message, the PCRF entity waits for the user plane event to occur. When a user plane event occurs, The PCRF entity sends the user plane event to the AF entity in the user plane event report response message, and disconnects the HTTP long connection after sending the user plane event report response message.
  • the intermediate network element waits for the PCRF entity to send the user plane event after receiving the user plane event report request message, and receives the PCRF entity sending After the user plane event, the user plane event is included in the user plane event report response message and sent to the AF entity.
  • the HTTP long connection is disconnected.
  • FIG. 5 is a flowchart of a fifth embodiment of a user plane event processing method according to the present invention.
  • a direct flow-based long connection is established by using a PCRF entity and an AF entity as an example.
  • this embodiment provides The method includes the following steps:
  • Step 501 After the session establishment is completed, the AF entity determines an accessible PCRF entity.
  • the AF entity is aware of the establishment of the AF session, that is, the UE establishes a service connection with the AF entity.
  • the UE carries an IP address, and the AF entity can be a WEB server, a video server, an FTP server, and a mail server.
  • the AF entity obtains the PLMN of the UE according to the IP address of the UE, and the PLMN may be an HPLMN or a VPLMN.
  • the AF entity determines whether the PCRF entity in the PLMN supports an XML-based protocol, and if so, establishes a long connection with the PCRF entity. . It can be understood that the PCRF entity information in the PLMN and the PCRF are pre-configured on the AF entity.
  • the protocol supported by the entity If there is an accessible PCRF entity, step 502 is performed. If there is no PCRF entity that can be accessed, the process ends.
  • the IP address of the UE may be an IP address translated by the private network/public network through the NAT.
  • the packet data network gateway (P-GW) and the IP address of the UE at the PCRF entity are used.
  • the two IPs of the UE may be mismatched. Therefore, the private network can be NAT/
  • the public network mapping entry is sent to the PCRF entity or the P-GW to perform the conversion between the private network and the public network address at the PCRF entity or the P-GW, thereby preventing the gateway device from performing policy and charging control (Policy and Charging Control, Acronym for PCC) rules.
  • Policy and Charging Control Acronym for PCC
  • Step 502 The AF entity establishes a TCP connection with the accessible PCRF entity, and establishes a long flow-based connection on the TCP connection.
  • the AF entity determines a PCRF entity with a connectable XML-based protocol
  • the AF entity establishes a TCP link with the IP of the UE and the accessible PCRF entity, and establishes a flow-based HTTP long connection on the TCP link.
  • Step 503 The AF entity sends a first user plane event report request message to the PCRF entity on the long connection based on the flow.
  • the AF entity can also establish a short connection with the PCRF entity, and send the information by using a traditional short connection form. .
  • Step 504 The PCRF entity sends an ACK response message to the AF entity on the long connection based on the flow.
  • the PCRF entity After receiving the first user plane event report request message sent by the AF entity, the PCRF entity sends an acknowledgement ACK (Acknowledge) request response to the AF entity in order to notify the AF entity that the long connection is normal and indicates that the PCRF entity has correctly received the request.
  • the ACK response message does not carry a user plane event.
  • Step 505 After sending the ACK response message to the AF entity on the long connection based on the flow, the PCRF entity does not disconnect the connection with the AF entity, and keeps the connection waiting for the user plane event to occur.
  • Step 506 When the first user plane event occurs, the PCRF entity sends a first user plane event report response message to the AF entity on the long connection based on the flow.
  • the PCRF entity When the first user plane event occurs, the PCRF entity carries the parameter information of the user plane event in the first user plane event report response and sends the parameter to the AF entity, where the user plane event is specifically IP-CAN session termination, SDF deactivation, and signaling. Let the path status notification, IP-CAN type change notification, access network billing information notification, sponsor data connection use report, access network information and other events. In the reported user plane event, the IP address of the UE is carried, and the IP address carried therein is the public IP address converted by the PCRF entity.
  • Step 507 The PCRF entity sends a first user plane event report response message, and then keeps the connection, and continues to wait for the second user plane event to occur.
  • the second entity reports the event to the AF entity.
  • the user plane event reports a response message.
  • the PCRF entity In the long connection based on the flow, after reporting the first user plane event report response message to the AF entity, the PCRF entity does not disconnect, but keeps the stream-based HTTP long connection and continues to wait for the second user plane event to occur. Repeat steps 505-507.
  • the first user plane event and the second user plane event are non-empty user plane events.
  • the PCRF may send the first user plane event report response message and the second user plane event report response message to the AF entity in response to the first user plane event report request message, and the PCRF may also send more to the AF entity.
  • the user plane event reporting response message is in response to the first user plane event reporting request message, and each user plane event reporting response message includes a user plane event.
  • Step 508 When the AF entity session needs to be terminated, the AF entity sends a session termination message to the PCRF entity, to notify the PCRF entity that the user plane event does not need to be reported.
  • Step 509 The PCRF entity disconnects the long connection based on the flow.
  • the PCRF entity After receiving the session termination message sent by the AF entity, the PCRF entity disconnects the long connection based on the flow.
  • the PCRF entity and the AF entity send a plurality of user plane event report response messages to the AF entity by using the flow-based push method by establishing a flow-based long connection, and implementing the PCRF.
  • the entity actively reports the user plane event to the AF entity.
  • the method can not only enable the PCRF entity to actively report the user plane event to the AF entity, but also suppress the sending of the empty user plane event, and does not need to establish a connection every time a user plane event needs to be reported, and does not have to Sending empty user plane events can effectively reduce network signaling overhead.
  • FIG. 6 is a flowchart of a method for processing a user plane event according to a sixth embodiment of the present invention.
  • a long connection based on a long polling is directly established by a PCRF entity and an AF entity as an example.
  • the implementation is as shown in FIG.
  • the method provided by the example includes the following steps:
  • Step 601 After the session establishment is completed, the AF entity determines the accessible PCRF entity.
  • step 501 in the fifth embodiment Refer to the description of step 501 in the fifth embodiment, and details are not described herein again.
  • Step 602 The AF entity establishes a TCP long connection with the accessible PCRF entity.
  • the AF entity determines a PCRF entity with a connectable XML-based protocol
  • the AF entity will carry a TCP connection with the accessible PCRF entity carrying the UE's IP address, which is a TCP long connection.
  • Step 603 The AF entity sends a user plane event report request message to the PCRF entity, to establish a long connection based on the long poll.
  • the AF entity After establishing a TCP long connection with the PCRF entity, the AF entity establishes a long long polling-based HTTP long connection based on the TCP long connection, and adopts a long polling-based manner to the AF over the long polling-based HTTP long connection.
  • the entity reports a user plane event. It should be noted that, when the AF entity needs to send a message to the PCRF entity, the AF entity may also establish a short connection with the PCRF entity, and send the information by using a traditional short connection and a long connection. The short connection and the long connection are parallel. .
  • Step 604 After receiving the first user plane event report request message sent by the AF entity, the PCRF entity keeps the connection waiting for the first user plane event to occur.
  • the HTTP short connection is different.
  • the PCRF entity does not immediately return a response message to the AF entity, but keeps the connection waiting for the first user plane event to occur.
  • the first user plane event report response is sent to the AF entity.
  • the message is in response to the first user plane event escalation request message.
  • the user plane events are specifically IP-CAN session termination, SDF deactivation, signaling path status notification, IP-CAN type change notification, access network charging information notification, sponsor data connection reporting, access network information, and the like.
  • the IP address of the UE is carried, and the IP address carried in the IP address is the public IP address converted by the PCRF entity.
  • Step 605 After transmitting the first user plane event report response message to the AF entity on the long connection based on the long polling, the PCRF entity disconnects the connection.
  • the PCRF entity When a user plane event occurs, the PCRF entity carries the parameter information of the user plane event on the user plane.
  • the event reporting response message is sent to the AF entity. After the user plane event reporting response message is sent to the AF entity, the HTTP long connection is disconnected, but the TCP connection is not disconnected.
  • Step 606 After receiving the second user plane event report request message sent by the AF entity, the PCRF entity keeps the connection waiting for the second user plane event to occur.
  • the first user plane event and the second user plane event are non-empty user plane events.
  • Step 607 After the PCRF entity sends the second user plane event report response message to the AF entity, the connection is disconnected.
  • the PCRF entity after receiving the long message of the long polling, the PCRF entity returns a user plane event report response message in response to the user plane event report request message after receiving the user plane event report request message sent by the AF entity. It can be understood that, in this embodiment, after establishing a TCP long connection, the PCRF entity can not only report two user plane events, but the AF sends multiple user plane event report request messages, and accordingly, the PCRF is for each user plane.
  • the event escalation request message returns a user plane event escalation response message.
  • Step 608 When the AF entity session needs to be terminated, the AF entity sends a session termination message to the PCRF entity, to notify the PCRF entity that the user plane event does not need to be reported.
  • Step 609 The PCRF entity disconnects the TCP long connection.
  • the PCRF entity After receiving the session termination message sent by the AF entity, the PCRF entity disconnects the TCP long connection. It can be seen from the above description that the long connection based on long polling and the long connection based on flow are different, although in the above two methods, only one TCP long connection needs to be established, but the long connection based on the flow is connected in the TCP long connection. Only one HTTP connection needs to be established, and multiple response messages can be returned. In a long connection based on long polling, multiple HTTP connections need to be established on the TCP connection, and each time an HTTP connection is established, only one response message can be returned.
  • a long connection based on a long polling is established between the PCRF entity and the AF entity.
  • the PCRF entity waits for the user plane event to occur, and the user occurs.
  • the user plane event report response message is sent to the AF entity on the long connection based on the long polling, so that the PCRF entity actively reports the user plane event to the AF entity.
  • the method provided in this embodiment can implement multiple TCP packets transmission and reception by establishing a TCP connection, and suppress sending empty user plane events, and does not need to be established every time a user plane event needs to be reported.
  • FIG. 7 is a flowchart of a signaling flow of a method for processing a user plane event according to a seventh embodiment of the present invention.
  • a direct connection based on a flow is established by using a PCRF entity and an AF entity as an example.
  • the method provided by the embodiment includes the following steps:
  • Step 701 The AF entity senses session establishment, and determines an accessible PCRF entity.
  • step 501 in the fifth embodiment For details, refer to the description of step 501 in the fifth embodiment, and details are not described herein again.
  • Step 702 The AF entity sends a user plane event report request message to the PCRF entity.
  • the AF entity determines a PCRF entity with a connectable XML-based protocol
  • the AF entity establishes a TCP link with the IP of the UE and the accessible PCRF entity, and establishes a flow-based HTTP long connection on the TCP link.
  • a user plane event report request message is sent to the PCRF entity.
  • Step 703 The PCRF entity returns an ACK response message to the AF entity.
  • the PCRF entity After receiving the first user plane event report request sent by the AF entity, the PCRF entity returns an ACK response message to the AF entity to notify the AF that the HTTP long connection is successfully established. If the AF entity needs to send a message to the PCRF entity, it can use the traditional one-to-one short connection method for communication.
  • Step 704 The PCRF entity remains connected, waiting for a user plane event to occur.
  • the PCRF entity After the PCRF entity sends an ACK response message to the AF entity, the HTTP long connection is not disconnected, but the connection is maintained, waiting for the user plane event to occur. In the process, the PCRF entity may receive corresponding information from the Policy and Charging Enforcement Function (PCEF) entity.
  • PCEF Policy and Charging Enforcement Function
  • Step 705 The PCRF entity sends a user plane event report response message to the AF entity.
  • the PCRF entity senses that the user plane event occurs, the corresponding parameter of the user plane event is carried in the user plane event report response message and sent to the AF entity.
  • Step 706, repeating steps 704 and 705.
  • the PCRF entity After reporting the user plane event, the PCRF entity maintains the HTTP long connection and continues to wait for the user plane to occur.
  • the user plane event it reports to the AF entity, that is, steps 704 and 705 are repeated.
  • Step 707 The AF entity sends a message to the PC.
  • the AF entity PCRF entity When the AF entity needs to terminate the session, the AF entity PCRF entity sends a session termination message, notifying that the PCRF does not need to report the user plane event.
  • FIG. 8 is a flowchart of a signaling procedure of a method for processing a user plane event according to the eighth embodiment of the present invention.
  • a long connection based on a long polling is directly established by a PCRF entity and an AF entity, as shown in FIG.
  • the method provided in this embodiment includes the following steps:
  • Step 801 The AF entity senses session establishment, and determines an accessible PCRF entity.
  • step 501 in the fifth embodiment For details, refer to the description of step 501 in the fifth embodiment, and details are not described herein again.
  • Step 802 The AF entity sends a user plane event report request message to the PCRF entity.
  • the AF entity determines a PCRF entity with a connectable XML-based protocol
  • the AF entity establishes a TCP link with the IP of the UE and the accessible PCRF entity, and establishes a long poll-based HTTP length on the TCP link.
  • Connect send a user plane event report request message to the PCRF entity.
  • Step 803 The PCRF entity maintains an HTTP long connection and waits for a user plane event to occur.
  • the PCRF entity After receiving the first user plane event report request sent by the AF entity, the PCRF entity does not immediately reply to the AF entity, but keeps the connection and waits for the user plane event to occur. During this process, the PCRF entity may receive corresponding information from the PCEF. If the AF entity needs to send a message to the PCRF entity, it can communicate using the traditional one-shot short connection method.
  • Step 804 The PCRF entity sends a user plane event report response message to the AF entity, and disconnects
  • the PCRF entity senses that the user plane event occurs, the corresponding parameter of the user plane event is carried in the user plane event report response message, and is sent to the AF entity, and after reporting the user plane event, the PCRF entity disconnects the HTTP long connection.
  • Step 805 Repeat steps 802 to 804.
  • the HTTP long connection is disconnected, and the AF entity initiates a user plane event report request message to the PCRF entity to establish a long long polling HTTP long connection, that is, repeating steps 802 to 805. .
  • Step 806 The AF entity sends a session termination message to the PCRF entity.
  • the AF entity PCRF entity When the AF entity needs to terminate the session, the AF entity PCRF entity sends a session termination message, notifying that the PCRF does not need to report the user plane event.
  • FIG. 9 is a schematic structural diagram of a PCRF entity according to Embodiment 9 of the present invention.
  • the PCRF entity provided in this embodiment includes: a long connection establishing module 71 and a user plane event reporting module 72.
  • the long connection establishing module 71 is configured to establish a long connection with the application function AF entity
  • the user plane event reporting module 72 is configured to report the first user plane event and the second user plane event to the AF entity on the established long connection. And suppressing sending an empty user plane event on the long connection, where the first user plane event and the second user plane event are non-empty user plane events.
  • the long connection establishing module 71 is specifically configured to: establish a long connection directly with the AF entity; or establish a long connection with the AF entity by using the intermediate network element.
  • an XML-based protocol is used between the PCRF entity and the AF entity, which may be a SOAP protocol or a Rest protocol.
  • an XML-based protocol is used between the intermediate network element and the AF entity
  • the Diameter protocol is used between the PCRF entity and the intermediate network element, because the PCRF entity and the intermediate network element are used.
  • the Diameter protocol is a peer-to-peer protocol.
  • User plane events at the PCRF entity can be directly reported to the intermediate network element, and then reported to the AF entity by the intermediate network element through the established long connection.
  • the intermediate network element can be a gateway or other functional entity such as a protocol conversion unit.
  • the long connection established between the PCRF entity and the AF entity may be a long connection based on a flow or a long connection based on a long poll.
  • the user plane event reporting module 72 is configured to: when the PCRF entity establishes a long connection with the AF entity, the PCRF entity actively reports the user plane event to the AF entity when the user plane event occurs. Specifically, the PCRF entity may send the user plane event to the AF entity in the user plane event report response message.
  • the PCRF entity establishes a long connection with the AF entity through the intermediate network element, when the user plane event occurs, the PCRF entity notifies the middle.
  • the NE user plane event occurs, and then the intermediate network element carries the user plane event in the user plane event report response message and sends it to the AF entity.
  • the user plane event may specifically be IP-CAN session termination, SDF deactivation, signaling path status notification, IP-CAN type change notification, access network charging information notification, sponsor data connection reporting, access network information reporting, etc. event.
  • the PCRF entity provided in this embodiment may be used to implement the technical solution provided by the method embodiment 1.
  • the implementation principle and the technical effect are similar, and details are not described herein again.
  • the long connection is a long connection based on the flow
  • the event reporting module 72 is specifically configured to: report the first user plane event second user plane event to the AF entity on the long connection based on the flow.
  • the user plane event reporting module 72 reports the first user plane event and the second user plane event to the AF entity on the long connection based on the flow, which is specifically:
  • the user plane event reporting module 72 After receiving the first user plane event report request message sent by the AF entity on the long connection based on the flow, the user plane event reporting module 72 sends the first user plane event report response message and the second message to the AF entity on the long connection based on the flow.
  • the user plane event report response message is in response to the first user plane event report request message, the first user plane event report response message includes a first user plane event, and the second user plane event report response message includes a second user plane event;
  • the user plane event reporting module 72 sends the first user plane event and the second user event to the intermediate entity on the flow-based long connection to the AF entity, so that the intermediate network element receives the AF entity sent on the long connection based on the flow.
  • the first user plane event report response message and the second user plane event report response message are sent to the AF entity in response to the first user plane event report request message on the flow-based long connection.
  • the first user plane event report response message includes a first user plane event
  • the second user plane event report response message includes the second user plane event.
  • the long connection is a long connection based on long polling;
  • the user plane event reporting module 72 is specifically configured to use a long polling based push mode on a long polling based long connection.
  • the first user plane event and the second user plane event are reported to the AF entity.
  • the user plane event reporting module 72 reports the first user plane event and the first user plane event to the AF entity on the long connection based on the stream length polling push:
  • the user plane event reporting module 72 waits for the user plane event to occur after receiving the first user plane event reporting request message sent by the AF entity on the long polling based long connection, and occurs in the user plane.
  • the first user plane event report response message and the second user plane event report response message are sent to the AF entity on the long connection based on the long polling, and the first user plane event report response message responds to the first two user planes.
  • the event reporting request message, the second user plane event reporting response message is responsive to the second user plane event reporting request message, where the first user plane event reporting response message includes a first user plane event, and the second user plane event reporting response
  • the message includes the second user plane event; or
  • the user plane event reporting module 72P sends the first user plane event and the second user plane event to the intermediate network element on the long connection based on the long polling, so that the intermediate network element receives the AF entity on the long connection based on the long polling.
  • the first user plane event report response message and the second user plane event report response message are sent to the AF entity on the long connection based on the long polling, and the first user plane event report response message is sent to the first user plane event report.
  • the request message, the second user plane event report response message is responsive to the second user plane event report request message, the first user plane event report response message includes the first user plane event, and the second user plane event report response message includes the second user Face event.
  • the PCRF provided in this embodiment may be used to perform the technical solution provided by any of the foregoing method embodiments, and the specific implementation manners and technical effects are similar, and therefore are not described again.
  • FIG. 10 is a schematic structural diagram of an AF entity according to Embodiment 10 of the present invention.
  • the AF entity provided in this embodiment includes: a long connection establishing module 81 and a user plane event receiving module 82.
  • the long connection establishing module 81 is configured to establish a long connection with the policy and charging rule function PCRF entity;
  • the user plane event receiving module 82 is configured to receive, by the established long connection, the first user plane event and the second user plane event reported by the PCRF entity, where the first user plane event and the second user plane event are non-empty users. Face event.
  • the AF entity in this embodiment may be used to implement the technical solution provided in the fourth embodiment, and the implementation principle and technical effects are similar, and details are not described herein again.
  • the long connection establishing module 81 is specifically configured to: directly establish a long connection with the PCRF entity; or establish a long connection with the PCRF entity by using the intermediate network element.
  • the long connection may be a long connection based on a flow or a long connection based on a poll.
  • the user plane event receiving module 82 is specifically configured to: receive the first user plane event and the second user plane reported by the PCRF entity on the long connection based on the flow event.
  • the user plane event receiving module 82 is configured to:
  • the first user plane event report response message and the second user plane event report response message sent by the PCRF entity are received on the flow-based long connection.
  • the first user plane event report response message includes a first user plane event
  • the second user plane event report response message includes a second user plane event
  • the first user plane event report response message and the second user plane event report sent by the intermediate network element are received on the flow-based long connection.
  • the first user The face event report response message includes a first user plane event
  • the second user plane event report response message includes a second user plane event.
  • the user plane event receiving module 82 is specifically configured to: receive the first reported by the PCRF entity or the intermediate network element on the long connection based on the long polling User plane events and second user plane events. Specifically, the user plane event receiving module 82 is used to:
  • the first user sent by the PCRF entity is received on the long polling based long connection.
  • the first user plane event reporting response message and the second user plane event reporting response message are responsive to the first two user plane event reporting request messages, and the second user plane event reporting response message is responsive to the second user plane event reporting.
  • the request message, the first user plane event report response message includes a first user plane event, and the second user plane event report response message includes a second user plane event; or
  • the first user plane event reporting request message and the second user plane event reporting request message are sent to the intermediate network element on the long connection based on the long polling
  • the first sending of the intermediate network element is received on the long connection based on the long polling
  • the user plane event report response message and the second user plane event report request message the first user plane event report response message responds to the first user plane event report request message
  • the second user plane event report response message responds to the second user plane event report request message.
  • the first user plane event report response message includes a first user plane event
  • the second user plane event report response message includes a second user plane event.
  • the long connection establishing module 81 is specifically configured to establish a long connection with the PCRF entity after the session establishment is completed, and then report the user plane event to the AF entity through the long connection.
  • the AF entity of this embodiment may be used to perform the technical solution provided by any of the foregoing method embodiments, and the implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 11 is a schematic structural diagram of a PCRF entity according to Embodiment 11 of the present invention.
  • the PCRF entity 900 provided in this embodiment includes: a processor 91 and a memory 92.
  • the PCRF entity 900 may further include a transmitter 93. Receiver 94. Transmitter 93 and receiver 94 can be coupled to processor 91 via a bus.
  • the memory 92 stores execution instructions.
  • the processor 91 communicates with the memory 92, and the processor 91 executes the execution instructions so that the PCRF entity executes the user plane event processing method provided by the present invention.
  • the processor 91 is configured to execute the following Operation:
  • the first user plane event second user plane event is reported to the AF entity by the transmitter 93 on the established long connection, and the null user plane event is suppressed on the long connection, wherein the first user plane event and the second user plane
  • the event is a non-empty user plane event.
  • the PCRF entity can establish a long connection directly with the AF entity.
  • the PCRF entity establishes a long connection with the AF entity through the intermediate network element.
  • the PCRF entity establishes a long connection with the AF entity as a long flow-based connection
  • the processor 91 is specifically configured to: report the first user plane event and the second user plane event to the AF entity on the long connection based on the flow.
  • the processor 91 controls the transmitter 93 to send the first to the AF entity on the long connection based on the flow.
  • the user plane event report response message and the second user plane event report response message are in response to the first user plane event report request message, where the first user plane event report response message includes a first user plane event, and the second user plane event report The response message includes a second user plane event; or,
  • the transmitter 93 sends the first user plane event and the second user plane event to the intermediate network element on the long connection based on the flow, so that the intermediate network element receives the first user plane event sent by the AF entity on the long connection based on the flow.
  • the first user plane event report response message and the second user plane event report response message are sent to the AF entity in response to the first user plane event report request message, and the first user plane event report is sent on the flow-based long connection.
  • the second user plane event reporting response message includes a second user plane event.
  • the PCRF entity establishes a long connection with the AF entity as a long connection based on the long polling, and the processor 91 is specifically configured to: report the first user plane event and the second user plane event to the AF entity on the long connection based on the long polling.
  • the receiver 94 receives the first user plane event report request message sent by the AF entity on the long connection based on the long poll, and the second user plane event report request message is sent on the long connection based on the long poll.
  • the first user plane event report response message includes a first user plane event
  • the second user plane event report response message includes a second user plane event;
  • the PCRF entity sends the first user plane event and the second user plane event to the intermediate network element on the long connection based on the long polling, so that the intermediate network element receives the AF entity sending on the long polling based long connection.
  • the first user plane event reporting response message and the second user plane event reporting response message are sent to the AF entity on the long polling based long connection.
  • the first user plane event reporting response message is responsive to the first user plane event reporting request message
  • the second user plane event reporting response message is responsive to the second user plane event reporting request message
  • the first user plane event reporting response message includes the first user.
  • the second user plane event report response message includes a second user plane event.
  • the PCRF provided in this embodiment may be used to implement the technical solution of the foregoing method embodiments.
  • the principle and the technical effects are similar, and details are not described herein again.
  • FIG. 12 is a schematic structural diagram of an AF entity according to Embodiment 12 of the present invention.
  • the AF entity 100 provided in this embodiment includes: a processor 11 and a memory 12, and the AF entity 100 may further include a transmitter 13 and The receiver 14, the transmitter 13 and the receiver 14, and the memory 12 can all be connected to the processor 11 via a bus.
  • the memory 11 stores execution instructions. When the AF entity is running, the processor 11 communicates with the memory 12, and the processor 11 executes the execution instructions so that the AF entity executes the user plane event processing method provided by the embodiment.
  • the processor 11 is specifically configured to perform the following operations:
  • the processor 11 establishes a long connection with the charging rule function PCRF entity by controlling the transmitter 13; the processor 11 receives the first user plane event and the second user plane event reported by the PCRF entity on the established long connection by controlling the receiver 14.
  • the first user plane event and the second user plane event are non-empty user plane events.
  • the AF entity establishes a direct long connection with the PCRF entity; or the AF entity establishes a long connection with the PCRF entity through the intermediate network element. Specifically, the AF entity establishes a long connection with the PCRF entity after the session establishment is completed.
  • long connections are long connections based on flows, or long connections based on polling.
  • the receiver 14 receives the first user plane event and the second user plane event reported by the PCRF entity in the flow-based push mode on the flow-based long connection under the control of the processor 11. . Specifically, after the transmitter 13 sends the first user plane event report request message to the PCRF entity on the long connection based on the flow, the receiver 14 receives the first user plane event report response message sent by the PCRF entity on the long connection based on the flow.
  • the second user plane event reporting response message is in response to the first user plane event reporting request message, the first user plane event reporting response message includes a user plane event, and the second user plane event reporting response message includes the second user plane event; or ,
  • the receiver 14 After the transmitter 13 sends the first user plane event report request message to the intermediate network element on the long connection based on the flow, the receiver 14 receives the first user plane event report response message sent by the intermediate network element on the long connection based on the flow and The second user plane event report response message is sent to the first user plane event report request message, the first user plane event report response message includes the first user plane event, and the second user plane event report response message includes the second user plane event. .
  • the processor 11 controls the receiver 14 to receive the first user plane event and the second user plane event reported by the PCRF entity on the long connection based on the long poll.
  • the receiver 14 receives the first sent by the PCRF entity on the long poll-based long connection.
  • the user plane event report response message and the second user plane event report response message the first user plane event report response message is responsive to the first two user plane event report request messages, and the second user plane event report response message Responding to the second user plane event report request message, the first user plane event report response message includes the first user plane event, and the second user plane event report response message includes the second user plane event.
  • the receiver 14 is on the long connection based on the long poll.
  • the first user plane event report response message and the second user plane event report request message sent by the intermediate network element receives the first user plane event report response message and the second user plane event report request message sent by the intermediate network element, the first user plane event report response message responding to the first user plane event report request message, and the second user plane event report response message
  • the first user plane event report response message includes a first user plane event
  • the second user plane event report response message includes a second user plane event.
  • the PCRF provided in this embodiment may be used to implement the technical solution of the foregoing method embodiments.
  • the principle and the technical effects are similar, and details are not described herein again.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Embodiments of the present invention provide a user plane event processing method, a PCRF entity, and an AF entity. The method comprises: a policy and charging rule function (PCRF) entity establishing a long connection with an application function (AF) entity; the PCRF entity reporting, on the established long connection, a first user plane event and a second user plane event to the AF entity, the first user plane event and the second user plane event being non-null user plane events. In the method provided in the embodiment, by establishing a long connection with an AF entity, a PCRF entity reports, on the established long connection, a first user plane event and a second user plane event to the AF entity, a non-null plane event is restrained from being sent, and accordingly, it is not required to established a connection each time when there is a user plane event needing to reported, and a non-null user plane event does not need to be sent, thereby reducing the network signaling overhead.

Description

用户面事件处理方法、 PCRF实体和 AF实体 技术领域  User plane event processing method, PCRF entity and AF entity
本发明实施例涉及通信技术, 尤其涉及一种用户面事件处理方法、 PCRF 实体和 AF实体。 背景技术  The embodiments of the present invention relate to communication technologies, and in particular, to a user plane event processing method, a PCRF entity, and an AF entity. Background technique
随着互联网业务的不断增长, 移动网络运营商不仅需要支持自有的应用 服务器, 也需要支持越来越多的第三方应用服务器。 在现有的网络架构下运 营商自有的应用服务器可以通过 Rx接口与策略与计费制定功能 (Policy and Charging Rule Function, 简称 PCRF) 实体建立交互。  As Internet services continue to grow, mobile network operators need to support not only their own application servers, but also more and more third-party application servers. Under the existing network architecture, the operator's own application server can establish an interaction with the Policy and Charging Rule Function (PCRF) entity through the Rx interface.
现有技术中,第三方网络的应用功能(Application Function)实体与 PCRF 之间采用可扩展标记语言(Extensible Markup Language,简称 XML进行通信, 而基于 XML的协议无论是简单对象访问协议( Simple Object Access Protocol, 简称 SOAP)或表征状态转移(Representational State Transfer, 简称 Rest)都 是标准的客户端-服务器(Client/Server, 简称 C/S )模式, 在此模式下只能由 作为客户端的 AF主动向作为服务器的 PCRF发送消息。 现有技术中如果 AF 要获取 PCRF的用户面事件, 会收到空的用户面事件, 造成系统资源浪费。 发明内容  In the prior art, an Extensible Markup Language (XML) is used for communication between an Application Function entity and a PCRF of a third-party network, and an XML-based protocol is a Simple Object Access protocol. Protocol (SOAP) or Representational State Transfer (Rest) is a standard client-server (C/S) mode. In this mode, it can only be activated by the AF as a client. The PCRF as the server sends a message. In the prior art, if the AF acquires the user plane event of the PCRF, it will receive an empty user plane event, which causes a waste of system resources.
本发明实施例提供一种用于用户面事件处理方法、 PCRF实体和 AF实体, 能够实现 PCRF主动向 AF上报用户面事件。  The embodiment of the present invention provides a user plane event processing method, a PCRF entity, and an AF entity, which can implement the PCRF to report a user plane event to the AF.
本发明第一方面提供一种用户面事件处理方法, 包括:  A first aspect of the present invention provides a user plane event processing method, including:
策略与计费规则功能 PCRF 实体与应用功能 AF 实体建立长连接 Policy and charging rule function PCRF entity and application function AF entity establishes long connection
(keep-alive connection) ; (keep-alive connection);
所述 PCRF实体在建立的所述长连接上向所述 AF实体上报第一用户面 事件和第二用户面事件, 其中, 所述第一用户面事件和第二用户面事件为非 空的用户面事件,所述 PCRF实体在所述长连接上抑制发送空的用户面事件。  The PCRF entity reports the first user plane event and the second user plane event to the AF entity on the established long connection, where the first user plane event and the second user plane event are non-empty users. In the case of a face event, the PCRF entity suppresses sending empty user plane events on the long connection.
在本发明第一方面的第一种可能的实现方式中, 所述 PCRF 实体与 AF 实体建立长连接, 包括: In a first possible implementation manner of the first aspect of the present invention, the PCRF entity and the AF Entities establish long connections, including:
所述 PCRF实体与所述 AF实体直接建立所述长连接; 或者,  The PCRF entity directly establishes the long connection with the AF entity; or
所述 PCRF实体通过中间网元与所述 AF实体建立所述长连接。  The PCRF entity establishes the long connection with the AF entity through an intermediate network element.
在本发明第一方面的第二种可能的实现方式中, 所述长连接为基于流的 长连接;  In a second possible implementation manner of the first aspect of the present invention, the long connection is a long connection based on a flow;
所述 PCRF实体在建立的长连接上向所述 AF实体上报第一用户面事件 和第二用户面事件, 包括:  The PCRF entity reports the first user plane event and the second user plane event to the AF entity on the established long connection, including:
所述 PCRF实体在所述基于流的长连接上向所述 AF实体上报第一用户 面事件和所述第二用户面事件。  The PCRF entity reports the first user plane event and the second user plane event to the AF entity on the stream-based long connection.
在本发明第一方面的第三种可能的实现方式中, 所述 PCRF实体在所述 基于流(frame based)的长连接上向所述 AF实体上报所述第一用户面事件和 所述第二用户面事件, 包括:  In a third possible implementation manner of the first aspect of the present invention, the PCRF entity reports the first user plane event and the first to the AF entity on the frame based long connection. Two user plane events, including:
所述 PCRF实体在所述基于流的长连接上接收所述 AF实体发送的第一 用户面事件上报请求消息, 在所述基于流的长连接上向所述 AF 实体发送第 一用户面事件上报响应消息和第二用户面事件上报响应消息以响应所述第一 用户面事件上报请求消息, 所述第一用户面事件上报响应消息中包含所述第 一用户面事件, 所述第二用户面事件上报响应消息中包含所述第二用户面事 件; 或者,  Receiving, by the PCRF entity, the first user plane event report request message sent by the AF entity, and sending the first user plane event report to the AF entity on the flow-based long connection The response message and the second user plane event report response message are in response to the first user plane event report request message, where the first user plane event report response message includes the first user plane event, the second user face The event reporting response message includes the second user plane event; or
所述 PCRF实体在所述基于流的长连接上向所述中间网元发送所述第一 用户面事件和第二用户面事件, 以使所述中间网元在所述基于流的长连接上 接收到所述 AF 实体发送的第一用户面事件上报请求消息后, 在所述基于流 的长连接上向所述 AF 实体发送第一用户面事件上报响应消息和第二用户面 事件上报响应消息以响应所述第一用户面事件上报请求消息, 所述第一用户 面事件上报响应消息中包含第一用户面事件, 所述第二用户面事件上报响应 消息中包含所述第二用户面事件。  Sending, by the PCRF entity, the first user plane event and the second user plane event to the intermediate network element on the stream-based long connection, so that the intermediate network element is on the stream-based long connection Receiving the first user plane event report response message and the second user plane event report response message to the AF entity on the flow-based long connection after receiving the first user plane event report request message sent by the AF entity In response to the first user plane event report request message, the first user plane event report response message includes a first user plane event, and the second user plane event report response message includes the second user plane event .
在本发明第一方面的第四种可能的实现方式中, 所述长连接为基于长轮 询 (long-polling based) 的长连接;  In a fourth possible implementation manner of the first aspect of the present invention, the long connection is a long connection based on a long-polling based;
所述 PCRF实体在建立的所述长连接上向所述 AF上报第一用户面事件 和第二用户面事件, 包括:  The PCRF entity reports the first user plane event and the second user plane event to the AF on the established long connection, including:
所述 PCRF实体在所述基于长轮询的长连接上向所述 AF实体上报所述 第一用户面事件和所述第二用户面事件。 Reporting, by the PCRF entity, the AF entity to the AF entity on the long connection based on long polling a first user plane event and the second user plane event.
在本发明第一方面的第五种可能的实现方式中, 所述 PCRF实体在所述 基于长轮询的长连接上向所述 AF 实体上报第一用户面事件和第二用户面事 件, 包括:  In a fifth possible implementation manner of the first aspect of the present invention, the PCRF entity reports the first user plane event and the second user plane event to the AF entity on the long polling-based long connection, including :
所述 PCRF实体在所述基于长轮询的长连接上接收所述 AF实体发送的 第一用户面事件上报请求消息和第二用户面事件上报请求消息, 在所述基于 长轮询的长连接上向所述 AF 实体发送第一用户面事件上报响应消息和第二 用户面事件上报响应消息, 所述第一用户面事件上报响应消息响应所述第一 两条用户面事件上报请求消息, 所述第二用户面事件上报响应消息响应所述 第二用户面事件上报请求消息, 所述第一用户面事件上报响应消息中包含所 述第一用户面事件, 所述第二用户面事件上报响应消息中包含所述第二用户 面事件; 或者,  Receiving, by the PCRF entity, the first user plane event report request message and the second user plane event report request message sent by the AF entity on the long polling-based long connection, in the long polling-based long connection Sending a first user plane event report response message and a second user plane event report response message to the AF entity, where the first user plane event report response message is responsive to the first two user plane event report request messages, The second user plane event report response message is sent to the second user plane event report request message, and the first user plane event report response message includes the first user plane event, and the second user plane event report response The message includes the second user plane event; or
所述 PCRF实体在所述基于长轮询的长连接上向中间网元发送第一用户 面事件和第二用户面事件, 以使所述中间网元在所述基于长轮询的长连接上 接收到所述 AF 实体发送的第一用户面事件上报请求消息和第二用户面事件 上报请求消息后, 在所述基于长轮询的长连接上向所述 AF 实体发送第一用 户面事件上报响应消息和第二用户面事件上报响应消息, 所述第一用户面事 件上报响应消息响应所述第一用户面事件上报请求消息, 所述第二用户面事 件上报响应消息响应所述第二用户面事件上报请求消息, 所述第一用户面事 件上报响应消息中包含所述第一用户面事件, 所述第二用户面事件上报响应 消息中包含所述第二用户面事件。  Sending, by the PCRF entity, the first user plane event and the second user plane event to the intermediate network element on the long polling-based long connection, so that the intermediate network element is on the long polling-based long connection After receiving the first user plane event report request message and the second user plane event report request message sent by the AF entity, sending the first user plane event report to the AF entity on the long polling-based long connection The response message and the second user plane event report response message, the first user plane event report response message is responsive to the first user plane event report request message, and the second user plane event report response message is responsive to the second user The first user plane event report response message includes the first user plane event, and the second user plane event report response message includes the second user plane event.
本发明第二方面提供一种用户面事件处理方法, 包括:  A second aspect of the present invention provides a user plane event processing method, including:
应用功能 AF实体与策略与计费规则功能 PCRF实体建立长连接; 所述 AF实体在建立的所述长连接上接收所述 PCRF实体上报的第一用 户面事件和第二用户面事件, 其中, 所述第一用户面事件和第二用户面事件 为非空的用户面事件。  The application function AF entity establishes a long connection with the policy and charging rule function PCRF entity; the AF entity receives the first user plane event and the second user plane event reported by the PCRF entity on the established long connection, where The first user plane event and the second user plane event are non-empty user plane events.
在本发明第二方面的第一种可能的实现方式中, 所述 AF 实体与 PCRF 实体建立长连接, 包括:  In a first possible implementation manner of the second aspect, the AF entity establishes a long connection with the PCRF entity, including:
所述 AF实体与所述 PCRF实体直接建立所述长连接; 或者,  The AF entity directly establishes the long connection with the PCRF entity; or
所述 AF实体通过中间网元与所述 PCRF实体建立所述长连接。 在本发明第二方面的第二种可能的实现方式中, 所述长连接为基于流的 长连接; The AF entity establishes the long connection with the PCRF entity through an intermediate network element. In a second possible implementation manner of the second aspect of the present invention, the long connection is a long connection based on a flow;
所述 AF实体在建立的所述长连接上接收所述 PCRF实体向上报的第一 用户面事件和第二用户面事件, 包括:  Receiving, by the AF entity, the first user plane event and the second user plane event reported by the PCRF entity on the established long connection, including:
所述 AF实体在所述基于流的长连接上接收所述 PCRF实体上报的所述 第一用户面事件和所述第二用户面事件。  The AF entity receives the first user plane event and the second user plane event reported by the PCRF entity on the stream-based long connection.
在本发明第二方面的第三种可能的实现方式中, 所述 AF实体在所述基 于流的长连接上接收所述 PCRF实体上报的所述第一用户面事件和所述第二 用户面事件, 包括:  In a third possible implementation manner of the second aspect of the present invention, the AF entity receives the first user plane event and the second user plane reported by the PCRF entity on the stream-based long connection. Events, including:
所述 AF实体在所述基于流的长连接上向所述 PCRF实体发送第一用户 面事件上报请求消息后, 在所述基于流的长连接上接收所述 PCRF实体发送 的第一用户面事件上报响应消息和第二用户面事件上报响应消息以响应所述 第一用户面事件上报请求消息, 所述第一用户面事件上报响应消息中包含所 述第一用户面事件, 所述第二用户面事件上报响应消息中包含所述第二用户 面事件; 或者,  After the first entity plane event report request message is sent to the PCRF entity, the AF entity receives the first user plane event sent by the PCRF entity on the stream-based long connection. And reporting, by the first user plane event reporting message, the first user plane event reporting request message, where the first user plane event reporting response message includes the first user plane event, the second user The second event surface event is included in the face event report response message; or
所述 AF 实体在所述基于流的长连接上向中间网元发送第一用户面事件 上报请求消息后, 在所述基于流的长连接上接收所述中间网元发送的第一用 户面事件上报响应消息和第二用户面事件上报响应消息以响应所述第一用户 面事件上报请求消息, 所述第一用户面事件上报响应消息中包含所述第一用 户面事件, 所述第二用户面事件上报响应消息中包含所述第二用户面事件。  After the first user plane event report request message is sent to the intermediate network element, the AF entity receives the first user plane event sent by the intermediate network element on the stream-based long connection. And reporting, by the first user plane event reporting message, the first user plane event reporting request message, where the first user plane event reporting response message includes the first user plane event, the second user The second event surface event is included in the face event report response message.
在本发明第二方面的第四种可能的实现方式中, 所述长连接为基于长轮 询的长连接;  In a fourth possible implementation manner of the second aspect of the present invention, the long connection is a long connection based on long polling;
所述 AF实体在建立的所述长连接上接收所述 PCRF实体向上报的第一 用户面事件和第二用户面事件, 包括:  Receiving, by the AF entity, the first user plane event and the second user plane event reported by the PCRF entity on the established long connection, including:
所述 AF实体在所述基于长轮询的长连接上接收所述 PCRF实体上报的 所述第一用户面事件和所述第二用户面事件。  The AF entity receives the first user plane event and the second user plane event reported by the PCRF entity on the long polling-based long connection.
在本发明第二方面的第五种可能的实现方式中, 所述 AF实体在所述基 于长轮询的长连接上接收所述 PCRF实体上报的所述第一用户面事件和所述 第二用户面事件, 包括:  In a fifth possible implementation manner of the second aspect of the present invention, the AF entity receives the first user plane event and the second reported by the PCRF entity on the long polling-based long connection. User-side events, including:
所述 AF实体在所述基于长轮询的长连接上向所述 PCRF实体发送第一 用户面事件上报请求消息和第二用户面事件上报请求消息后, 在所述基于长 轮询的长连接上接收所述 PCRF实体发送的第一用户面事件上报响应消息和 第二用户面事件上报响应消息, 所述第一用户面事件上报响应消息响应所述 第一两条用户面事件上报请求消息, 所述第二用户面事件上报响应消息响应 所述第二用户面事件上报请求消息, 所述第一用户面事件上报响应消息中包 含所述第一用户面事件, 所述第二用户面事件上报响应消息中包含所述第二 用户面事件; 或者, Sending, by the AF entity, the first to the PCRF entity on the long poll-based long connection After the user plane event report request message and the second user plane event report request message, the first user plane event report response message and the second user plane event report sent by the PCRF entity are received on the long polling-based long connection. In response to the message, the first user plane event report response message is responsive to the first two user plane event report request messages, and the second user plane event report response message is responsive to the second user plane event report request message. The first user plane event report response message includes the first user plane event, and the second user plane event report response message includes the second user plane event; or
所述 AF 实体在所述基于长轮询的长连接上向所述中间网元发送第一用 户面事件上报请求消息和第二用户面事件后, 在所述基于长轮询的长连接上 接收所述中间网元发送的第一用户面事件上报响应消息和第二用户面事件上 报请求消息, 所述第一用户面事件上报响应消息响应所述第一用户面事件上 报请求消息, 所述第二用户面事件上报响应消息响应所述第二用户面事件上 报请求消息,所述第一用户面事件上报响应消息中包含所述第一用户面事件, 所述第二用户面事件上报响应消息中包含所述第二用户面事件。  After the first user plane event report request message and the second user plane event are sent to the intermediate network element on the long polling-based long connection, the AF entity receives the long polling based long connection. The first user plane event report response message and the second user plane event report request message sent by the intermediate network element, the first user plane event report response message responding to the first user plane event report request message, The second user plane event report response message is sent to the second user plane event report request message, where the first user plane event report response message includes the first user plane event, and the second user plane event report response message The second user plane event is included.
结合本发明第二发面及第二发明的第一种至第五种可能的实现方式, 在 本发明第二方面的第六种可能的实现方式中, 所述 AF实体与 PCRF实体建 立长连接, 包括:  With reference to the second aspect of the present invention and the first to fifth possible implementation manners of the second aspect, in the sixth possible implementation manner of the second aspect of the present invention, the AF entity establishes a long connection with the PCRF entity. , including:
所述 AF实体在会话建立完成后, 与所述 PCRF实体建立长连接。  The AF entity establishes a long connection with the PCRF entity after the session establishment is completed.
本发明第三方面提供一种策略与计费规则功能 PCRF实体, 包括: 长连接建立模块, 用于与应用功能 AF实体建立长连接;  The third aspect of the present invention provides a policy and charging rule function PCRF entity, including: a long connection establishing module, configured to establish a long connection with an application function AF entity;
用户面事件上报模块, 用于在建立的所述长连接上向所述 AF 实体上报 第一用户面事件和第二用户面事件, 并在所述长连接上抑制发送空的用户面 事件, 其中, 所述第一用户面事件和第二用户面事件为非空的用户面事件。  a user plane event reporting module, configured to report a first user plane event and a second user plane event to the AF entity on the established long connection, and suppress sending an empty user plane event on the long connection, where The first user plane event and the second user plane event are non-empty user plane events.
在本发明第三方面的第一种可能的实现方式中, 所述长连接建立模块具 体用于:  In a first possible implementation manner of the third aspect of the present invention, the long connection establishing module is specifically configured to:
与所述 AF实体直接建立所述长连接; 或者, 通过中间网元与所述 AF实 体建立所述长连接。  Establishing the long connection directly with the AF entity; or establishing the long connection with the AF entity by using an intermediate network element.
在本发明第三方面的第二种可能的实现方式中, 所述长连接为基于流的 长连接;  In a second possible implementation manner of the third aspect of the present invention, the long connection is a long connection based on a flow;
所述用户面事件上报模块具体用于:在所述基于流的长连接上向所述 AF 实体上报所述第一用户面事件和所述第二用户面事件。 The user plane event reporting module is specifically configured to: send the AF to the stream-based long connection The entity reports the first user plane event and the second user plane event.
在本发明第三方面的第三种可能的实现方式中, 所述用户面事件上报模 块具体用于:  In a third possible implementation manner of the third aspect of the present invention, the user plane event reporting module is specifically configured to:
在所述基于流的长连接上接收所述 AF实体发送的第一用户面事件上报 请求消息, 在所述基于流的长连接上向所述 AF 实体发送第一用户面事件上 报响应消息和第二用户面事件上报响应消息以响应所述第一用户面事件上报 请求消息, 所述至少两条第一用户面事件上报响应消息中包含所述第一用户 面事件, 所述第二用户面事件上报响应消息中包含所述第二用户面事件; 或 者,  Receiving, by the flow-based long connection, a first user plane event report request message sent by the AF entity, and sending a first user plane event report response message to the AF entity on the flow-based long connection The second user plane event reporting response message is responsive to the first user plane event reporting request message, and the at least two first user plane event reporting response messages include the first user plane event, the second user plane event The report response message includes the second user plane event; or
在所述基于流的长连接上向所述中间网元发送所述第一用户面事件和第 二用户面事件, 以使所述中间网元在所述基于流的长连接上接收到所述 AF 实体发送的第一用户面事件上报请求消息后, 在所述基于流的长连接上向所 述 AF 实体发送第一用户面事件上报响应消息和第二用户面事件上报响应消 息以响应所述第一用户面事件上报请求消息, 所述第一用户面事件上报响应 消息中包含所述第一用户面事件, 所述第二用户面事件上报响应消息中包含 所述第二用户面事件。  Transmitting the first user plane event and the second user plane event to the intermediate network element on the stream-based long connection, so that the intermediate network element receives the on the stream-based long connection After the first user plane event report request message sent by the AF entity, the first user plane event report response message and the second user plane event report response message are sent to the AF entity on the stream-based long connection in response to the The first user plane event report request message includes: the first user plane event report response message includes the first user plane event, and the second user plane event report response message includes the second user plane event.
在本发明第三方面的第四种可能的实现方式中, 所述长连接为基于长轮 询的长连接;  In a fourth possible implementation manner of the third aspect of the present invention, the long connection is a long connection based on long polling;
所述用户面事件上报模块具体用于, 在所述基于长轮询的长连接上向所 述 AF实体上报所述第一用户面事件和所述第二用户面事件。  The user plane event reporting module is configured to report the first user plane event and the second user plane event to the AF entity on the long polling-based long connection.
在本发明第三方面的第五种可能的实现方式中, 所述用户面事件上报模 块具体用于:  In a fifth possible implementation manner of the third aspect, the user plane event reporting module is specifically configured to:
在所述基于长轮询的长连接上接收所述 AF 实体发送的第一用户面事件 上报请求消息和第二用户面事件上报请求消息, 在所述基于长轮询的长连接 上向所述 AF 实体发送第一用户面事件上报响应消息和第二用户面事件上报 响应消息, 所述第一用户面事件上报响应消息响应所述第一两条用户面事件 上报请求消息, 所述第二用户面事件上报响应消息响应所述第二用户面事件 上报请求消息, 所述第一用户面事件上报响应消息中包含所述第一用户面事 件, 所述第二用户面事件上报响应消息中包含所述第二用户面事件; 或者, 在所述基于长轮询的长连接向所述中间网元发送第一用户面事件和第二 用户面事件,以使所述中间网元在所述基于长轮询的长连接上接收到所述 AF 实体发送的第一用户面事件上报请求消息和第二用户面事件上报请求消息 后, 在所述基于长轮询的长连接上向所述 AF实体发送第一用户面事件上报 响应消息和第二用户面事件上报响应消息, 所述第一用户面事件上报响应消 息响应所述第一用户面事件上报请求消息, 所述第二用户面事件上报响应消 息响应所述第二用户面事件上报请求消息, 所述第一用户面事件上报响应消 息中包含所述第一用户面事件, 所述第二用户面事件上报响应消息中包含所 述第二用户面事件。 Receiving, on the long polling-based long connection, a first user plane event reporting request message and a second user plane event reporting request message sent by the AF entity, to the long polling based long connection The AF entity sends a first user plane event report response message and a second user plane event report response message, and the first user plane event report response message is responsive to the first two user plane event report request messages, the second user The second user plane event report response message includes the first user plane event, and the second user plane event report response message includes the second user plane event report request message. Or describing the second user plane event; or sending the first user plane event and the second to the intermediate network element in the long polling based long connection a user plane event, after the intermediate network element receives the first user plane event report request message and the second user plane event report request message sent by the AF entity on the long polling-based long connection, The first user plane event report response message and the second user plane event report response message are sent to the AF entity, and the first user plane event report response message is responsive to the first user. The second user plane event report response message is responsive to the second user plane event report request message, and the first user plane event report response message includes the first user plane event, The second user plane event report response message includes the second user plane event.
本发明第四方面提供一种应用功能 AF实体, 其特征在于, 包括: 长连接建立模块, 用于与策略与计费规则功能 PCRF实体建立长连接; 用户面事件接收模块, 用于在建立的所述长连接上接收所述 PCRF实体 上报的第一用户面事件和第二用户面事件, 其中, 所述第一用户面事件和第 二用户面事件为非空的用户面事件。  A fourth aspect of the present invention provides an application function AF entity, including: a long connection establishing module, configured to establish a long connection with a policy and charging rule function PCRF entity; and a user plane event receiving module, configured to be established The first user plane event and the second user plane event reported by the PCRF entity are received on the long connection, where the first user plane event and the second user plane event are non-empty user plane events.
在本发明第四方面的第一种可能的实现方式中, 所述长连接建立模块具 体用于:  In a first possible implementation manner of the fourth aspect of the present invention, the long connection establishing module is specifically configured to:
与所述 PCRF 实体直接建立所述长连接; 或者, 通过中间网元与所述 PCRF实体建立所述长连接。  Establishing the long connection directly with the PCRF entity; or establishing the long connection with the PCRF entity by using an intermediate network element.
在本发明第四方面的第二种可能的实现方式中, 所述长连接为基于流的 长连接;  In a second possible implementation manner of the fourth aspect of the present invention, the long connection is a long connection based on a flow;
所述用户面事件接收模块, 具体用于在所述基于流的长连接上接收所述 The user plane event receiving module is specifically configured to receive the
PCRF实体上报的所述第一用户面事件和所述第二用户面事件。 The first user plane event and the second user plane event reported by the PCRF entity.
在本发明第四方面的第三种可能的实现方式中, 所述用户面事件接收模 块具体用于:  In a third possible implementation manner of the fourth aspect of the present invention, the user plane event receiving module is specifically configured to:
在所述基于流的长连接上向所述 PCRF实体发送第一用户面事件上报请 求消息后, 在所述基于流的长连接上接收所述 PCRF实体发送的第一用户面 事件上报响应消息和第二用户面事件上报响应消息以响应所述第一用户面事 件上报请求消息, 所述第一用户面事件上报响应消息中包含所述第一用户面 事件, 所述第二用户面事件上报响应消息中包含所述第二用户面事件; 或者, 在所述基于流的长连接上向所述中间网元发送第一用户面事件上报请求 消息后, 在所述基于流的长连接上接收所述中间网元发送的第一用户面事件 上报响应消息和第二用户面事件上报响应消息以响应所述第一用户面事件上 报请求消息,所述第一用户面事件上报响应消息中包含所述第一用户面事件, 所述第二用户面事件上报响应消息中包含所述第二用户面事件。 After the first user plane event report request message is sent to the PCRF entity on the flow-based long connection, the first user plane event report response message sent by the PCRF entity is received on the stream-based long connection. The second user plane event report response message is sent to the first user plane event report request message, where the first user plane event report response message includes the first user plane event, and the second user plane event report response The message includes the second user plane event; or, after sending the first user plane event report request message to the intermediate network element on the stream-based long connection, receiving the message on the stream-based long connection The first user plane event sent by the intermediate network element And reporting, by the second user plane event reporting message, the first user plane event reporting request message, where the first user plane event reporting response message includes the first user plane event, the second user The second event surface event is included in the face event report response message.
在本发明第四方面的第四种可能的实现方式中, 所述长连接为基于长轮 询的长连接;  In a fourth possible implementation manner of the fourth aspect of the present invention, the long connection is a long connection based on a long polling;
所述用户面事件接收模块具体用于: 在所述基于长轮询的长连接上接收 所述 PCRF实体上报的所述第一用户面事件和所述第二用户面事件。  The user plane event receiving module is configured to: receive the first user plane event and the second user plane event reported by the PCRF entity on the long polling-based long connection.
在本发明第四方面的第五种可能的实现方式中, 所述用户面事件接收模 块具体用于:  In a fifth possible implementation manner of the fourth aspect, the user plane event receiving module is specifically configured to:
在所述基于长轮询的长连接上向所述 PCRF实体发送第一用户面事件上 报请求消息后和第二用户面事件上报请求消息, 在所述基于长轮询的长连接 上接收所述 PCRF实体发送的第一用户面事件上报响应消息和第二用户面事 件上报响应消息, 所述第一用户面事件上报响应消息响应所述第一两条用户 面事件上报请求消息, 所述第二用户面事件上报响应消息响应所述第二用户 面事件上报请求消息, 所述第一用户面事件上报响应消息中包含所述第一用 户面事件, 所述第二用户面事件上报响应消息中包含所述第二用户面事件; 或者,  Transmitting the first user plane event reporting request message and the second user plane event reporting request message to the PCRF entity on the long polling-based long connection, and receiving the long round polling long connection a first user plane event report response message and a second user plane event report response message sent by the PCRF entity, the first user plane event report response message responding to the first two user plane event report request messages, the second The user plane event report response message is responsive to the second user plane event report request message, the first user plane event report response message includes the first user plane event, and the second user plane event report response message includes The second user plane event; or
在所述基于长轮询的长连接上向所述中间网元发送第一用户面事件上报 请求消息第二用户面事件上报请求消息后, 在所述基于长轮询的长连接上接 收所述中间网元发送的第一用户面事件上报响应消息和第二用户面事件上报 请求消息, 所述第一用户面事件上报响应消息响应所述第一用户面事件上报 请求消息, 所述第二用户面事件上报响应消息响应所述第二用户面事件上报 请求消息, 所述第一用户面事件上报响应消息中包含所述第一用户面事件, 所述第二用户面事件上报响应消息中包含所述第二用户面事件。  After the first user plane event reporting request message and the second user plane event reporting request message are sent to the intermediate network element on the long polling-based long connection, receiving the long round polling long connection a first user plane event report response message and a second user plane event report request message sent by the intermediate network element, the first user plane event report response message responding to the first user plane event report request message, the second user The second user plane event report response message includes the first user plane event, and the second user plane event report response message includes the second user plane event report request message. The second user plane event is described.
结合本发明第二发面及第二发明的第一种至第五种可能的实现方式, 在 本发明第四方面的第六种可能的实现方式中,所述长连接建立模块具体用于, 在会话建立完成后, 与所述 PCRF实体建立长连接。  With reference to the second aspect of the present invention and the first to fifth possible implementation manners of the second aspect, in the sixth possible implementation manner of the fourth aspect of the present invention, the long connection establishing module is specifically configured to: After the session establishment is completed, a long connection is established with the PCRF entity.
本发明第五方面提供一种策略与计费规则功能 PCRF实体, 包括: 处理 器和存储器, 所述存储器存储执行指令, 当所述 PCRF实体运行时, 所述处 理器与所述存储器之间通信, 所述处理器执行所述执行指令使得所述 PCRF 实体执行本发明第一方面及第一方面的第一种至第五种可能的实现方式提供 的任一所述的方法。 A fifth aspect of the present invention provides a policy and charging rule function PCRF entity, including: a processor and a memory, where the memory stores an execution instruction, and when the PCRF entity is running, the processor communicates with the memory The processor executing the execution instruction such that the PCRF The entity performs any of the methods of the first aspect of the invention and the first to fifth possible implementations of the first aspect.
本发明第六方面提供一种应用功能 AF实体, 包括: 处理器和存储器, 所述存储器存储执行指令, 当所述 AF 实体运行时, 所述处理器与所述存储 器之间通信, 所述处理器执行所述执行指令使得所述 AF 实体执行本发明第 二方面及第二方面的第一种至第六种可能的实现方式任一所述的方法。  A sixth aspect of the present invention provides an application function AF entity, including: a processor and a memory, where the memory stores an execution instruction, when the AF entity is running, the processor and the memory communicate, the processing Executing the execution instructions causes the AF entity to perform the method of any of the first to sixth possible implementations of the second aspect of the invention and the second aspect.
本发明实施例提供的方法, PCRF实体通过与 AF实体之间建立长连接, PCRF实体在建立的长连接上向 AF实体上报第一用户面事件和第二用户面事 件, 且抑制发送空的用户面事件, 不必在每次有用户面事件需要上报时建立 连接, 且不必发送空的用户面事件, 从而降低了网络信令开销。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面 描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。  According to the method provided by the embodiment of the present invention, the PCRF entity establishes a long connection with the AF entity, and the PCRF entity reports the first user plane event and the second user plane event to the AF entity on the established long connection, and suppresses sending the empty user. Face events do not have to establish a connection every time a user plane event needs to be reported, and do not have to send an empty user plane event, thereby reducing network signaling overhead. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings to be used in the embodiments or the description of the prior art will be briefly described below, and obviously, in the following description The drawings are only some of the embodiments of the present invention, and other drawings may be obtained from those skilled in the art without departing from the drawings.
图 1为本发明用户面事件处理方法实施例一的流程图;  1 is a flowchart of Embodiment 1 of a method for processing a user plane event according to the present invention;
图 2为本发明用户面事件处理方法实施例二的流程图;  2 is a flowchart of Embodiment 2 of a method for processing a user plane event according to the present invention;
图 3为本发明用户面事件处理方法实施例三的流程图;  3 is a flowchart of Embodiment 3 of a method for processing a user plane event according to the present invention;
图 4为本发明用户面事件处理方法实施例四的流程图;  4 is a flowchart of Embodiment 4 of a method for processing a user plane event according to the present invention;
图 5为本发明用户面事件处理方法实施例五的流程图;  5 is a flowchart of Embodiment 5 of a method for processing a user plane event according to the present invention;
图 6为本发明用户面事件处理方法实施例六的流程图;  6 is a flowchart of Embodiment 6 of a method for processing a user plane event according to the present invention;
图 7为本发明用户面事件处理方法实施例七的信令流程图;  7 is a signaling flowchart of Embodiment 7 of a method for processing a user plane event according to the present invention;
图 8为本发明用户面事件处理方法实施例八的信令流程图;  8 is a signaling flowchart of Embodiment 8 of a method for processing a user plane event according to the present invention;
图 9为本发明实施例九提供的 PCRF实体的结构示意图;  9 is a schematic structural diagram of a PCRF entity provided in Embodiment 9 of the present invention;
图 10为本发明实施例十提供的 AF实体的结构示意图;  10 is a schematic structural diagram of an AF entity according to Embodiment 10 of the present invention;
图 11为本发明实施例十一提供的 PCRF实体的结构示意图;  11 is a schematic structural diagram of a PCRF entity according to Embodiment 11 of the present invention;
图 12为本发明实施例十二提供的 AF实体的结构示意图。 具体实施方式 为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发 明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于 本发明中的实施例, 本领域普通技术人员在没有做出创造性劳动前提下所获 得的所有其他实施例, 都属于本发明保护的范围。 FIG. 12 is a schematic structural diagram of an AF entity according to Embodiment 12 of the present invention. detailed description The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without departing from the inventive scope are the scope of the present invention.
本发明各实施例中描述的技术方案, 主要适用于第三方应用服务器 (即 AF实体)与移动网络运营商提供的 PCRF实体之间的通信。在现有的网络架 构下运营商自有的服务器可以通过 Rx 接口与 PCRF 实体建立交互, 采用 Diameter协议, Diameter为对等协议, 协议两端都可以作为客户端或服务器 进行消息的收发。而第三方应用服务器和 PCRF实体采用基于 XML的协议通 信, 而基于 XML的协议无论是 SOAP或 Rest都是标准的 C/S模式即客户端- 服务器模式, 在此模式下只能由作为客户端的第三方应用服务器主动向作为 服务器的 PCRF实体发送消息, 而无法由 PCRF实体主动发起消息。  The technical solutions described in the embodiments of the present invention are mainly applicable to communication between a third-party application server (ie, an AF entity) and a PCRF entity provided by a mobile network operator. In the existing network architecture, the operator's own server can establish interaction with the PCRF entity through the Rx interface. The Diameter protocol is used, and the Diameter is the peer-to-peer protocol. Both ends of the protocol can be used as the client or server to send and receive messages. The third-party application server and PCRF entity use XML-based protocol communication, and the XML-based protocol, whether SOAP or Rest, is a standard C/S mode, ie client-server mode, in this mode can only be used as a client. The third-party application server actively sends a message to the PCRF entity that is the server, and the PCRF entity cannot initiate the message actively.
图 1为本发明用户面事件处理方法实施例一的流程图, 本实施例提供的 方法可以由用户面事件处理装置来执行, 该装置可以集成在 PCRF实体上或 者中间网元设备上, 本实施例提供的方法包括以下歩骤:  1 is a flowchart of Embodiment 1 of a method for processing a user plane event according to the present invention. The method provided in this embodiment may be performed by a user plane event processing device, and the device may be integrated on a PCRF entity or an intermediate network element device. The method provided by the example includes the following steps:
歩骤 101、 PCRF实体与 AF实体建立长连接。  Step 101: The PCRF entity establishes a long connection with the AF entity.
本实施例中, PCRF实体可以与 AF实体直接建立长连接, 或者, PCRF 实体通过中间网元与 AF实体建立长连接。当 PCRF实体与 AF实体直接建立 长连接时, PCRF实体与 AF实体之间采用基于 XML的协议, 可以是 SOAP 协议或者 Rest协议。 当 PCRF实体通过中间网元与 AF实体建立长连接时, 中间网元与 AF实体之间采用基于 XML的协议,而 PCRF实体与中间网元之 间采用 Diameter协议, 由于 PCRF实体与中间网元采用的 Diameter协议是对 等协议, PCRF实体处的用户面事件可以直接上报至中间网元,再由中间网元 通过建立的长连接上报给 AF 实体。 中间网元可以为网关, 也可以是协议转 换单元等其他功能实体。  In this embodiment, the PCRF entity can directly establish a long connection with the AF entity, or the PCRF entity establishes a long connection with the AF entity through the intermediate network element. When the PCRF entity directly establishes a long connection with the AF entity, an XML-based protocol is used between the PCRF entity and the AF entity, which may be a SOAP protocol or a Rest protocol. When the PCRF entity establishes a long connection with the AF entity through the intermediate network element, an XML-based protocol is used between the intermediate network element and the AF entity, and the Diameter protocol is used between the PCRF entity and the intermediate network element, because the PCRF entity and the intermediate network element are used. The Diameter protocol is a peer-to-peer protocol. User plane events at the PCRF entity can be directly reported to the intermediate network element, and then reported to the AF entity by the intermediate network element through the established long connection. The intermediate network element can be a gateway or other functional entity such as a protocol conversion unit.
PCRF实体与 AF实体建立的长连接, 可以为基于流的长连接, 也可以为 基于长轮询的长连接。 以下简单介绍一下超文本传送协议(Hypertext Transfer Protocol, 简称 HTTP) 长连接, HTTP长连接不需要每次发起 HTTP请求时 都要建立一个传输控制协议 ( Transmission Control Protocol,简称 TCP )连接, HTTP长连接利用同一个 TCP连接处理多个 HTTP请求和响应, 也叫 HTTP keep-alive, 或者 HTTP连接重用。 使用 HTTP长连接有很多好处, 由于 TCP 连接在发送数据后仍然保持连接状态, 可以继续通过该 TCP连接进行数据的 收发, 更少的建立和关闭 TCP连接, 节省了为每个请求建立新连接所需的时 间, 减少网络流量, 节约带宽, 另外, 由于 TCP连接保持, 减少后续请求的 延时。 实现长连接需要客户端和服务器端都支持长连接, 通过在 HTTP请求 和响应消息的头部 (header) 加入该 HTTP的连接状态为 keep-alive来实现, 客户端和服务器端通过该连接状态就知道需要建立的是一个 HTTP长连接。 因为 TCP是基于流的协议, 所以 HTTP协议需要有一种方式来指示前一个响 应的结束和后一个响应的开始来重用已建立的连接。 所以, 它要求连接中传 输的信息必须有自定义的消息长度。 自定义消息长度可以通过设置The long connection established between the PCRF entity and the AF entity may be a long connection based on a flow or a long connection based on a long poll. The following is a brief introduction to the Hypertext Transfer Protocol (HTTP) long connection. The HTTP long connection does not need to establish a Transmission Control Protocol (TCP) connection every time an HTTP request is initiated. HTTP long connections use the same TCP connection to handle multiple HTTP requests and responses, also known as HTTP keep-alive, or HTTP connection reuse. There are many advantages to using HTTP long connections. Since TCP connections remain connected after sending data, you can continue to send and receive data over the TCP connection, and less need to establish and close TCP connections, saving new connections for each request. The time required to reduce network traffic, save bandwidth, and, in addition, reduce the latency of subsequent requests due to the TCP connection being maintained. To achieve a long connection, both the client and the server support a long connection. By adding the HTTP connection state to the keep-alive state in the header of the HTTP request and response message, the client and the server pass the connection state. Knowing that you need to establish is an HTTP long connection. Because TCP is a stream-based protocol, the HTTP protocol needs a way to indicate the end of the previous response and the beginning of the latter response to reuse the established connection. Therefore, it requires that the information transmitted in the connection must have a custom message length. Custom message length can be set by
Content-Length消息头来实现。 The Content-Length header is implemented.
以下, 简单介绍一下服务器推送技术, 服务器推送技术的基础思想是将 浏览器的主动査询信息改为服务器主动发送信息, 服务器发送一批数据, 浏 览器显示这些数据, 同时保证与服务器的连接, 以便服务器仍然采用该连接 进行数据发送。 HTTP 长连接包括两种方式, 一种是长轮询方式, 服务端阻 断前一次对客户端的回应, 在事件发生后将事件内容绑定在回应中返回给客 户端, 同时回应结束, 此时客户端立即发送第二次请求, 服务器阻塞回应等 待下一次事件发生。 而基于流的方式中, 服务器阻断客户端的回应后, 并没 有关闭回应而是一直保留这次连接, 通过该连接向客户端发送数据。 通过这 种服务器推送技术实现服务器端主动向客户端发送数据。  The following is a brief introduction to server push technology. The basic idea of server push technology is to change the browser's active query information to the server to send information actively. The server sends a batch of data, and the browser displays the data and ensures the connection with the server. So that the server still uses this connection for data transmission. HTTP long connection includes two methods. One is long polling mode. The server blocks the previous response to the client. After the event occurs, the event content is bound to the response and returned to the client. At the same time, the response ends. The client immediately sends a second request, and the server blocks the response waiting for the next event to occur. In the stream-based mode, after the server blocks the client's response, it does not close the response but keeps the connection and sends data to the client through the connection. Through this server push technology, the server side actively sends data to the client.
歩骤 102、 PCRF实体在建立的长连接上向 AF实体上报第一用户面事件 和第二用户面事件, 其中, 第一用户面事件和第二用户面事件为非空的用户 面事件, PCRF实体在长连接上抑制发送空的用户面事件。  Step 102: The PCRF entity reports the first user plane event and the second user plane event to the AF entity on the established long connection, where the first user plane event and the second user plane event are non-empty user plane events, PCRF The entity suppresses sending empty user plane events on long connections.
当 PCRF实体与 AF实体建立长连接后, 当第一用户面事件和第二用户 面事件发生时, PCRF实体就可以主动向 AF实体上报第一用户面事件和第二 用户面事件, 其中, 第一用户面事件和第二用户面事件为非空的用户面事件, 且 PCRF实体在长连接上抑制发送空的用户面事件。具体地, PCRF实体可以 将用户面事件携带在用户面事件上报响应消息中发送给 AF 实体, 当 PCRF 实体通过中间网元与 AF实体建立长连接时, 当用户面事件发生时, PCRF实 体通知中间网元用户面事件发生, 然后, 由中间网元将用户面事件携带在用 户面事件上报响应消息中发送给 AF实体。用户面事件具体可以为 IP-CAN会 话终止、 SDF去激活、信令路径状态通知、 IP-CAN类型变更通知、接入网络 计费信息通知、 赞助商数据连接使用上报、 接入网络信息上报等事件。 After the PCRF entity establishes a long connection with the AF entity, when the first user plane event and the second user plane event occur, the PCRF entity may actively report the first user plane event and the second user plane event to the AF entity, where A user plane event and a second user plane event are non-empty user plane events, and the PCRF entity suppresses sending empty user plane events on long connections. Specifically, the PCRF entity may carry the user plane event in the user plane event report response message and send it to the AF entity. When the PCRF entity establishes a long connection with the AF entity through the intermediate network element, when the user plane event occurs, the PCRF real The user is notified of the intermediate network element user plane event, and then the intermediate network element carries the user plane event in the user plane event report response message and sends it to the AF entity. The user plane event may specifically be IP-CAN session termination, SDF deactivation, signaling path status notification, IP-CAN type change notification, access network charging information notification, sponsor data connection reporting, access network information reporting, etc. event.
本实施例提供的方法, PCRF实体通过与 AF实体之间建立长连接, PCRF 实体在建立的长连接上向 AF 实体上报第一用户面事件和第二用户面事件, 且抑制发送空的用户面事件,不必在每次有用户面事件需要上报时建立连接, 且不必发送空的用户面事件, 从而降低了网络信令开销。  In the method provided by the embodiment, the PCRF entity establishes a long connection with the AF entity, and the PCRF entity reports the first user plane event and the second user plane event to the AF entity on the established long connection, and suppresses sending the empty user plane. The event does not have to establish a connection every time a user plane event needs to be reported, and does not have to send an empty user plane event, thereby reducing network signaling overhead.
图 2为本发明用户面事件处理方法实施例二的流程图,本实施例以 PCRF 在基于流的长连接上向 AF实体主动上报用户面事件为例详细说明, 本实施 例提供的方法具体包括以下歩骤:  2 is a flowchart of a method for processing a user plane event according to a second embodiment of the present invention. In this embodiment, a method for actively reporting a user plane event to an AF entity by using a PCRF on a long-term connection is described. The following steps:
歩骤 201、 PCRF实体与 AF实体建立基于流的长连接。  Step 201: The PCRF entity establishes a stream-based long connection with the AF entity.
本实施例中, PCRF实体与 AF实体可以建立直接长连接; 或者, PCRF 实体通过中间网元与 AF实体建立长连接。  In this embodiment, the PCRF entity and the AF entity may establish a direct long connection; or the PCRF entity establishes a long connection with the AF entity through the intermediate network element.
具体地, 当 AF实体判断出有可连接的基于 XML的协议的 PCRF实体或 中间网元后, AF实体与该 PCRF实体或中间网元建立 TCP连接, 该 TCP连 接为一 TCP长连接, 然后进行 HTTP报文的发送和接收。 本实施例中, 在建 立 TCP连接后, AF实体向 PCRF实体发送第一用户面事件上报请求消息后, 该第一用户面事件上报请求消息为 HTTP报文, 通过该第一用户面事件上报 请求消息用于建立一个基于流的 HTTP长连接, PCRF实体在收到该第一用户 面事件上报请求后, 判断该第一用户面事件上报请求消息用于建立一个基于 流的 HTTP长连接, 具体地, AF实体在向 PCRF实体发送的第一用户面事件 上报请求消息中携带标识信息, 用于表示该 HTTP长连接是基于流的还是基 于长轮询方式的。 当 PCRF实体判断该第一用户面事件上报请求消息用于建 立一个基于流的 HTTP长连接后, 则向 AF实体返回一条 ACK响应消息, 表 示该 HTTP长连接建立成功。  Specifically, after the AF entity determines that there is a PCRF entity or an intermediate network element of the connectable XML-based protocol, the AF entity establishes a TCP connection with the PCRF entity or the intermediate network element, where the TCP connection is a TCP long connection, and then Send and receive HTTP messages. In this embodiment, after the first entity user plane event report request message is sent by the AF entity to the PCRF entity, the first user plane event report request message is an HTTP message, and the first user plane event report request is sent. The message is used to establish a flow-based HTTP long connection. After receiving the first user plane event report request, the PCRF entity determines that the first user plane event report request message is used to establish a flow-based HTTP long connection, specifically The first entity plane event report request message sent by the AF entity to the PCRF entity carries the identifier information, which is used to indicate whether the HTTP long connection is based on a flow or a long polling manner. After the PCRF entity determines that the first user plane event report request message is used to establish a flow-based HTTP long connection, an ACK response message is returned to the AF entity, indicating that the HTTP long connection is successfully established.
歩骤 202、 PCRF实体在基于流的长连接上向 AF实体上报第一用户面事 件和第二用户面事件。  Step 202: The PCRF entity reports the first user plane event and the second user plane event to the AF entity on the long connection based on the flow.
PCRF实体在基于流的长连接上向 AF实体上报第一用户面事件和第二用 户面事件具体为: PCRF实体在基于流的长连接上接收到 AF实体发送的第一 用户面事件上报请求消息后, 在基于流的长连接上向 AF 实体发送第一用户 面事件上报响应消息和第二用户面事件上报响应消息以响应该第一用户面事 件上报请求消息, 其中, 第一用户面事件上报响应消息中包含该第一用户面 事件, 第二用户面事件上报响应消息中包含该第二用户面事件; 或者, PCRF 实体在基于流的长连接上向中间网元发送第一用户面事件和第二用户面事 件, 以使中间网元在基于流的长连接上接收到 AF 实体发送的第一用户面事 件上报请求消息后, 在基于流的长连接上向 AF 实体发送第一用户面事件上 报响应消息和第二用户面事件上报响应消息以响应该第一用户面事件上报请 求消息, 第一用户面事件上报响应消息中包含该第一用户面事件, 第二用户 面事件上报响应消息中包含该第二用户面事件。 其中, 第一用户面事件和第 二用户面事件为非空的用户面事件。 The PCRF entity reports the first user plane event and the second user plane event to the AF entity on the flow-based long connection. The specific: the PCRF entity receives the first sent by the AF entity on the long connection based on the flow. After the user plane event report request message, the first user plane event report response message and the second user plane event report response message are sent to the AF entity in response to the first user plane event report request message, where The first user plane event report response message includes the first user plane event, and the second user plane event report response message includes the second user plane event; or the PCRF entity sends the intermediate user element to the intermediate network element based on the long connection based on the flow a first user plane event and a second user plane event, so that the intermediate network element receives the first user plane event report request message sent by the AF entity on the long connection based on the flow, and then the AF entity on the long connection based on the flow Sending a first user plane event report response message and a second user plane event report response message in response to the first user plane event report request message, where the first user plane event report response message includes the first user plane event, the second user The second event surface response event is included in the face event report response message. The first user plane event and the second user plane event are non-empty user plane events.
具体地, 在 PCRF实体向 AF实体返回 ACK响应消息后, PCRF实体并 不断开该 HTTP长连接, 而是保持连接等待相应用户面事件发生, 当检测到 第一用户面事件发生时, 向 AF实体上报该第一用户面事件, PCRF实体可将 用户面事件的相应参数携带在第一用户面事件上报响应中发送给 AF 实体。 并且, 在上报第一用户面事件后, PCRF实体保持该 HTTP长连接, 并继续等 待用户面事件发生, 当第二用户面事件发生时, 向 AF实体上报该第二用户 面事件。 可以理解的是, 本实施例中, PCRF实体或中间网元在接收到 AF实 体发送的第一用户面事件请求消息后, 不仅仅能够向 AF 实体上报两条用户 面事件上报响应消息, 即第一用户面事件上报响应消息和第二用户面事件上 报响应消息, 还可以返回多条用户面事件上报响应消息以响应该第一用户面 事件, 每个用户面事件上报响应消息中都包含一个用户面事件。  Specifically, after the PCRF entity returns an ACK response message to the AF entity, the PCRF entity does not disconnect the HTTP long connection, but keeps the connection waiting for the corresponding user plane event to occur. When the first user plane event is detected, the AF entity is detected. The first user plane event is reported, and the PCRF entity may send the corresponding parameter of the user plane event to the AF entity in the first user plane event report response. After the first user plane event is reported, the PCRF entity maintains the HTTP long connection and continues to wait for the user plane event to occur. When the second user plane event occurs, the second user plane event is reported to the AF entity. It can be understood that, in this embodiment, after receiving the first user plane event request message sent by the AF entity, the PCRF entity or the intermediate network element can not only report two user plane event report response messages to the AF entity, that is, the first A user plane event report response message and a second user plane event report response message may also return multiple user plane event report response messages in response to the first user plane event, and each user plane event report response message includes a user. Face event.
在基于流的长连接中, HTTP 长连接采用一问多答的方式, 客户端发送 一条请求消息, 而服务器可以以流的形式返回多条消息, 即 PCRF实体每检 测到一次用户面事件, 都可以向 AF实体主动上报用户面事件, 不需要 AF实 体逐次请求。 该 HTTP长连接不会断开, 只有在连接出错或连接重建时才断 开该 HTTP长连接。 当然, 也可以由 AF实体主动终止该 HTTP长连接, AF 实体向 PCRF实体发送终止请求消息, 通知 PCRF实体停止上报用户面事件, 则 PCRF实体在收到该终止请求消息后, 断开 HTTP长连接。  In a long stream-based connection, the HTTP long connection uses a multi-answer method, the client sends a request message, and the server can return multiple messages in the form of a stream, that is, every time the PCRF entity detects a user plane event, The user plane event can be reported to the AF entity actively, and the AF entity does not need to request the data one by one. The HTTP long connection is not broken, and the HTTP long connection is broken only if the connection is wrong or the connection is reestablished. Of course, the AF entity may also actively terminate the HTTP long connection, and the AF entity sends a termination request message to the PCRF entity to notify the PCRF entity to stop reporting the user plane event, and the PCRF entity disconnects the HTTP long connection after receiving the termination request message. .
本实施例提供的方法, PCRF实体和 AF实体通过建立基于流的长连接, 在接收到第一用户面事件上报请求消息后, 等待用户面事件发生, 当用户面 事件发生时, 在该基于流的长连接上向 AF 实体发送第一用户面事件上报响 应消息和第二用户面事件上报响应消息, 第一用户面事件响应消息中包含第 一用户面事件, 第二用户面事件响应消息中包含第二用户面事件, 实现了 PCRF实体主动向 AF实体上报用户面事件。 且通过该方法, AF实体通过一 次请求, 可以使 PCRF实体每检测到一次用户面事件, 都可以向 AF实体主 动上报用户面事件, 且抑制发送空的用户面事件, 不必在每次有用户面事件 需要上报时建立连接, 且不必发送空的用户面事件, 从而有效降低网络信令 开销。 The method provided in this embodiment, the PCRF entity and the AF entity establish a long connection based on the flow, After receiving the first user plane event report request message, waiting for the user plane event to occur, when the user plane event occurs, sending the first user plane event report response message and the second user to the AF entity on the stream-based long connection The first event response message includes a first user plane event, and the second user plane event response message includes a second user plane event, and the PCRF entity actively reports the user plane event to the AF entity. With this method, the AF entity can cause the PCRF entity to actively report the user plane event to the AF entity by detecting the user plane event once, and suppress the sending of the empty user plane event, without having to have the user face every time. The event needs to establish a connection when reporting, and does not have to send an empty user plane event, thereby effectively reducing network signaling overhead.
图 3为本发明用户面事件处理方法实施例三的流程图,本实施例以 PCRF 实体在基于长轮询的长连接上向 AF实体主动上报用户面事件为例详细说明, 本实施例提供的方法具体包括以下歩骤:  3 is a flowchart of a third embodiment of a method for processing a user plane event according to the present invention. In this embodiment, a PCRF entity actively reports a user plane event to an AF entity on a long connection based on a long polling. The method specifically includes the following steps:
歩骤 301、 PCRF实体与 AF实体建立基于长轮询的长连接。  Step 301: The PCRF entity establishes a long connection based on long polling with the AF entity.
本实施例中, PCRF实体与 AF实体可以直接建立长连接; 或者, PCRF 实体通过中间网元与 AF实体建立长连接。  In this embodiment, the PCRF entity and the AF entity can directly establish a long connection. Alternatively, the PCRF entity establishes a long connection with the AF entity through the intermediate network element.
具体地, 当 AF实体判断出有可连接的基于 XML的协议的 PCRF实体或 中间网元后, AF实体与该 PCRF实体或中间网元建立 TCP连接, 该 TCP连 接为一 TCP长连接, 在建立 TCP连接后, AF实体向 PCRF实体发送第一用 户面事件上报请求消息和第二用户面事件上报请求消息, 该第一用户面事件 上报请求消息和第二用户面事件上报请求消息为 HTTP报文, 该第一用户面 事件上报请求消息用于建立一个基于长轮询的 HTTP长连接, PCRF实体在收 到该第一用户面事件上报请求消息后, 根据该第一用户面事件上报请求消息 中携带的标识信息判断该第一用户面事件上报请求消息用于建立一个基于长 轮询的 HTTP长连接, 则保持 HTTP连接, 等待第一用户事件发生, 当检测 到第一用户面事件发生时, PCRF实体向 AF实体上报第一用户面事件, 或者 将用户面事件发送给中间网元, 由中间网元上报给 AF 实体。 同理, 第二用 户面事件上报请求消息也用于建立一个基于长轮询的 HTTP 长连接, PCRF 实体保持 HTTP连接, 等待第二用户事件发生, 当检测到第二用户事件发生 时, PCRF实体向 AF实体上报第二用户面事件。  Specifically, after the AF entity determines that there is a PCRF entity or an intermediate network element of the connectable XML-based protocol, the AF entity establishes a TCP connection with the PCRF entity or the intermediate network element, and the TCP connection is a TCP long connection, which is established. After the TCP connection, the AF entity sends a first user plane event report request message and a second user plane event report request message to the PCRF entity, where the first user plane event report request message and the second user plane event report request message are HTTP messages. The first user plane event reporting request message is used to establish a long polling-based HTTP long connection, and after receiving the first user plane event reporting request message, the PCRF entity reports the request message according to the first user plane event. The carried identification information determines that the first user plane event report request message is used to establish a long polling-based HTTP long connection, and then maintains an HTTP connection, waiting for the first user event to occur, when detecting that the first user plane event occurs, The PCRF entity reports the first user plane event to the AF entity, or sends the user plane event to the intermediate network element, Between NE reports to the AF entity. Similarly, the second user plane event reporting request message is also used to establish a long long polling based HTTP connection, the PCRF entity maintains an HTTP connection, waits for a second user event to occur, and when a second user event is detected, the PCRF entity Reporting a second user plane event to the AF entity.
歩骤 302、 PCRF实体在基于长轮询的长连接上向 AF实体上报第一用户 面事件和第二用户面事件。 Step 302: The PCRF entity reports the first user to the AF entity on the long connection based on the long polling Face events and second user face events.
PCRF实体在基于长轮询的长连接上采用基于长轮询的推送方式向 AF实 体上报第一用户面事件和第二用户面事件具体为: PCRF实体在基于长轮询的 长连接上接收到 AF 实体发送的第一用户面事件上报请求消息和第二用户面 上报请求消息后, 在基于长轮询的长连接上向 AF 实体发送第一用户面事件 上报响应消息和第二用户面事件上报响应消息, 该第一用户面事件上报响应 消息响应该第一用户面事件上报请求消息, 该第二用户面事件上报响应消息 响应该第二用户面事件上报请求消息, 该第一用户面事件上报响应消息中包 含第一用户面事件,该第二用户面事件上报响应消息中包含第二用户面事件。  The PCRF entity reports the first user plane event and the second user plane event to the AF entity by using the long polling-based push mode on the long polling-based long connection. The PCRF entity receives the long round-based long connection. After the first user plane event report request message and the second user face report request message sent by the AF entity, the first user plane event report response message and the second user face event report are sent to the AF entity on the long polling based long connection. The first user plane event reporting response message is responsive to the first user plane event reporting request message, and the second user plane event reporting response message is responsive to the second user plane event reporting request message, the first user plane event reporting message. The response message includes a first user plane event, and the second user plane event report response message includes a second user plane event.
或者, PCRF实体在基于长轮询的长连接上向中间网元发送第一用户面事 件和第二用户面事件, 以使该中间网元在基于长轮询的长连接上接收到 AF 实体发送的第一用户面事件上报请求消息和第二用户面事件上报请求消息 后, 在基于长轮询的长连接上向 AF实体发送第一用户面事件上报响应消息 和第二用户面事件上报响应消息, 该第一用户面事件上报响应消息响应该第 一用户面事件上报请求消息, 该第二用户面事件上报响应消息响应该第二用 户面事件上报请求消息, 该第一用户面事件上报响应消息中包含第一用户面 事件, 该第二用户面事件上报响应消息中包含第二用户面事件。  Or the PCRF entity sends the first user plane event and the second user plane event to the intermediate network element on the long connection based on the long polling, so that the intermediate network element receives the AF entity sending on the long connection based on the long polling. After the first user plane event reporting request message and the second user plane event reporting request message, the first user plane event reporting response message and the second user plane event reporting response message are sent to the AF entity on the long polling based long connection. The first user plane event reporting response message is responsive to the first user plane event reporting request message, and the second user plane event reporting response message is responsive to the second user plane event reporting request message, the first user plane event reporting response message The first user plane event is included, and the second user plane event report response message includes a second user plane event.
具体地, PCRF实体接收到来自 AF实体发送的用户面事件上报请求消息, 判断该用户面事件上报请求消息用于建立一个基于长轮询的 HTTP长连接, 和 HTTP短连接不同, 不是立即向 AF实体返回一个响应消息, 而是等待用 户面事件的发生, 当检测到用户面事件发生时, 向 AF实体上报用户面事件, 具体地, PCRF实体将用户面事件的相应信息包含在用户面事件上报响应消息 中发送给 AF 实体, 或者将用户面事件发送给中间网元, 由中间网元将用户 面事件的相应信息包含在用户面事件上报响应消息中发送给 AF 实体, 并在 发送用户面事件上报响应消息后断开该基于长轮询的 HTTP长连接。  Specifically, the PCRF entity receives the user plane event report request message sent by the AF entity, and determines that the user plane event report request message is used to establish a long polling-based HTTP long connection, which is different from the HTTP short connection, not immediately to the AF The entity returns a response message, but waits for the occurrence of the user plane event. When the user plane event is detected, the user plane event is reported to the AF entity. Specifically, the PCRF entity includes the corresponding information of the user plane event in the user plane event report. The response message is sent to the AF entity, or the user plane event is sent to the intermediate network element, and the intermediate network element includes the corresponding information of the user plane event in the user plane event report response message, and sends the message to the AF entity, and sends the user plane event. Disconnect the long polling based HTTP long connection after reporting the response message.
需要说明的是, 本实施例中, 在建立 TCP长连接后, PCRF实体不仅仅 可以上报两条用户面事件, 即第一用户面事件和第二用户面事件, AF实体可 以向 PCRF实体发送多个用户面事件上报请求消息, PCRF向每个用户面事件 上报请求消息都回一个用户面事件上报响应消息, 该用户面事件上报响应消 息中携带用户面事件。 通过上述描述可知, 在基于长轮询的推送方式中, 当 PCRF 实体向 AF 实体上报一次用户面事件后, 断开 HTTP长连接。而 AF实体在接收到 PCRF 实体上报的用户面事件后,再次向 PCRF实体发送用户面事件上报请求消息, 重新建立一个基于长轮询的 HTTP长连接,然后, PCRF实体在收到该请求消 息后, 等待用户面事件发生。 和基于流的推送方式不同, 在基于流的推送方 式中, PCRF实体每次上报用户面事件后并不需要断开 HTTP长连接,保持连 接继续等待用户面事件发生并且上报该用户面事件。 It should be noted that, in this embodiment, after the TCP long connection is established, the PCRF entity can report not only two user plane events, that is, the first user plane event and the second user plane event, and the AF entity can send more to the PCRF entity. The user plane event reporting request message, the PCRF returns a user plane event reporting response message to each user plane event reporting message, and the user plane event reporting response message carries the user plane event. According to the above description, in the long polling-based push mode, when the PCRF entity reports a user plane event to the AF entity, the HTTP long connection is disconnected. After receiving the user plane event reported by the PCRF entity, the AF entity sends a user plane event report request message to the PCRF entity again, and re-establishes a long long polling-based HTTP long connection. Then, after receiving the request message, the PCRF entity receives the request message. , waiting for a user face event to occur. Different from the flow-based push mode, in the flow-based push mode, the PCRF entity does not need to disconnect the HTTP long connection after reporting the user plane event, and keeps the connection waiting for the user plane event to occur and reports the user plane event.
本实施例提供的方法, PCRF实体与 AF实体之间建立基于长轮询的长连 接, PCRF实体在接收到 AF实体发送的第一用户面事件上报请求消息和第二 用户面事件上报请求消息后, 等待用户面事件发生, 并在发生用户面事件发 生时在基于长轮询的长连接上向 AF实体发送第一用户面事件上报响应消息 响应第一用户面事件请求消息, 向 AF 实体发送第二用户面事件上报响应消 息响应第二用户面事件请求消息, 实现了 PCRF实体主动向 AF实体上报用 户面事件。 另一方面, 本实施例提供的方法, 通过建立一次 TCP连接, 可以 实现多次 HTTP报文的发送和接收, 不需要每次发送报文时, AF实体都需要 与 PCRF实体建立一次 TCP连接, 每次 TCP连接的建立都需要三次握手,释 放需要四次握手, TCP连接的建立和释放也是需要耗费时间和资源的, 且抑 制发送空的用户面事件, 不必在每次有用户面事件需要上报时建立连接, 且 不必发送空的用户面事件, 从而有效降低网络信令开销。  In the method provided in this embodiment, a long-based polling-based long connection is established between the PCRF entity and the AF entity, and the PCRF entity receives the first user plane event report request message and the second user plane event report request message sent by the AF entity. Waiting for a user plane event to occur, and transmitting a first user plane event report response message to the first user plane event request message to the AF entity on the long connection based on the long polling when the user plane event occurs, sending the first user plane event request message to the AF entity The user plane event response message is responsive to the second user plane event request message, and the PCRF entity actively reports the user plane event to the AF entity. On the other hand, the method provided in this embodiment can implement the sending and receiving of multiple HTTP packets by establishing a TCP connection. The AF entity needs to establish a TCP connection with the PCRF entity every time the packet is sent. Each time a TCP connection is established, a three-way handshake is required, and the release requires four handshakes. The establishment and release of the TCP connection also takes time and resources, and suppresses the sending of empty user plane events, and does not have to report every time there is a user plane event. When a connection is established, it is not necessary to send an empty user plane event, thereby effectively reducing network signaling overhead.
图 4为本发明用户面事件处理方法实施例四的流程图, 本实施例提供的 方法, 可以由用户面处理装置执行, 该装置集成在 AF实体上, 其中, AF实 体可以是万维网 (World Wide Web, 简称 WEB)服务器、 视频服务器、 文本 传输协议 (File Transfer Protocol, 简称 FTP) 服务器及邮件服务器等。 本实 施例提供的方法包括以下歩骤:  4 is a flowchart of Embodiment 4 of a method for processing a user plane event according to the present invention. The method provided in this embodiment may be performed by a user plane processing device, where the device is integrated on an AF entity, where the AF entity may be a World Wide Web (World Wide) Web, referred to as WEB) server, video server, File Transfer Protocol (FTP) server and mail server. The method provided by this embodiment includes the following steps:
歩骤 401、 AF实体与 PCRF实体建立长连接。  Step 401: The AF entity establishes a long connection with the PCRF entity.
本实施例中, AF实体在会话建立完成后, 与 PCRF实体建立长连接。 具 体地, 当 UE向 AF实体访问业务时, AF实体在与 UE建立连接后, AF实体 根据 UE的网络协议 (Internet Protocol, 简称 IP) 地址寻找可连接的 PCRF 实体, 具体来说, AF实体根据 UE的 IP地址获取该 UE的公共陆地移动网络 (Public Land Mobile Network, PLMN) , 该 PLMN可以是归属公共陆地移 动网络 (Home Public Land Mobile Network, 简称 HPLMN) , 也可以是拜访 公共陆地移动网络 (Visited Public Land Mobile Network, 简称 VPLMN) VPLMN, 然后 AF实体判断 PLMN内的 PCRF实体是否支持基于 XML的协 议, 如果支持, 则与该 PCRF实体建立长连接。 In this embodiment, the AF entity establishes a long connection with the PCRF entity after the session establishment is completed. Specifically, when the UE accesses the service to the AF entity, after the AF entity establishes a connection with the UE, the AF entity searches for a connectable PCRF entity according to the Internet Protocol (IP) address of the UE. Specifically, the AF entity is configured according to the The IP address of the UE acquires a Public Land Mobile Network (PLMN) of the UE, and the PLMN may be a home public land mobile The Home Public Land Mobile Network (HPLMN) may also be a visit to the Public Land Mobile Network (VPLMN) VPLMN, and then the AF entity determines whether the PCRF entity in the PLMN supports the XML-based protocol. Support, then establish a long connection with the PCRF entity.
AF实体与 PCRF实体可以直接建立长连接; 或者, AF实体通过中间网 元与 PCRF实体建立长连接。当 AF实体通过中间实体与 PCRF实体建立长连 接时, AF 实体在建立该长连接之前还需要寻找中间网元, 一般情况下, 在 AF实体上预先配置有 AF实体与 PCRF实体的对应关系, 当 AF实体在会话 建立完成后, 通过该配置信息就可以获取到可连接的中间网元, 并与其建立 长连接。 其中, AF实体与 PCRF实体建立的长连接可以为基于流的长连接, 也可以为基于长轮询的长连接。  The AF entity and the PCRF entity can directly establish a long connection; or the AF entity establishes a long connection with the PCRF entity through the intermediate network element. When the AF entity establishes a long connection with the PCRF entity through the intermediate entity, the AF entity needs to find the intermediate network element before establishing the long connection. Generally, the corresponding relationship between the AF entity and the PCRF entity is pre-configured on the AF entity. After the session is established, the AF entity can obtain the connectable intermediate network element and establish a long connection with the configuration information. The long connection established between the AF entity and the PCRF entity may be a long connection based on a flow or a long connection based on a long polling.
歩骤 402、 AF实体在建立的长连接上接收 PCRF实体向上报的第一用户 面事件和第二用户面事件, 其中, 第一用户面事件和第二用户面事件为非空 的用户面事件。  Step 402: The AF entity receives, on the established long connection, a first user plane event and a second user plane event reported by the PCRF entity, where the first user plane event and the second user plane event are non-empty user plane events. .
当 AF实体与 PCRF实体之间建立的长连接为基于流的长连接时, AF实 体在基于流的长连接上接收 PCRF实体采用基于流的推送方式上报的第一用 户面事件和第二用户面事件, 而当 AF实体与 PCRF实体之间建立的长连接 为基于长轮询的长连接时, AF 实体在建立的基于长轮询的长连接上接收 PCRF实体采用基于长轮询的方式上报的第一用户面事件和第二用户面事件。  When the long connection established between the AF entity and the PCRF entity is a long connection based on the flow, the AF entity receives the first user plane event and the second user plane reported by the PCRF entity in the flow-based push manner on the long connection based on the flow. Event, and when the long connection established between the AF entity and the PCRF entity is a long connection based on long polling, the AF entity receives the PCRF entity on the established long poll-based long connection and reports it in a long polling manner. The first user plane event and the second user plane event.
本实施例提供的方法, AF实体与 PCRF实体建立长连接, PCRF实体通 过建立的长连接向 AF 实体上报用户面事件, 且抑制发送空的用户面事件, 不必在每次有用户面事件需要上报时建立连接,且不必发送空的用户面事件, 从而降低了网络信令开销。  In this embodiment, the AF entity establishes a long connection with the PCRF entity, and the PCRF entity reports the user plane event to the AF entity through the established long connection, and suppresses sending the empty user plane event, and does not need to report the user plane event every time. The connection is established and there is no need to send an empty user plane event, thereby reducing network signaling overhead.
在实施例四的基础上, 在一种可行的实现方式中, 歩骤 402具体为: AF实体在基于流的长连接上接收 PCRF实体采用基于流的推送方式上报 的第一用户面事件和第一用户面事件, 或者, AF实体在基于长轮询的长连接 上接收 PCRF实体采用基于长轮询的推送方式上报的第一用户面事件和第二 用户面事件。  On the basis of the fourth embodiment, in a feasible implementation manner, step 402 is specifically: the AF entity receives the first user plane event and the first reported by the PCRF entity by using the flow-based push manner on the long connection based on the flow. A user plane event, or the AF entity receives the first user plane event and the second user plane event reported by the PCRF entity in the long polling based push mode on the long polling based long connection.
AF实体在基于流的长连接上接收 PCRF实体上报的第一用户面事件和第 二用户面事件具体为: AF实体在基于流的长连接上向 PCRF实体发送第一用 户面事件上报请求消息后, 在基于流的长连接上接收 PCRF实体发送的第一 用户面事件上报响应消息和第二用户面事件上报响应消息以响应该第一用户 面事件上报请求消息, 该第一用户面事件上报响应消息中包含第一用户面事 件, 第二用户面事件上报响应消息中包含该第二用户面事件; 或者, AF实体 在基于流的长连接上向中间网元发送第一用户面事件上报请求消息后, 在基 于流的长连接上接收中间网元发送的第一用户面事件上报响应消息和第二用 户面上报响应消息响应该第一用户面上报请求消息, 第一用户面事件上报响 应消息中包含第一用户面事件, 第二用户面上报响应消息中包含第二用户面 事件, 该第一用户面事件和第二用户面事件是由 PCRF实体发送给中间网元 的。 The first user plane event and the second user plane event reported by the AF entity to receive the PCRF entity on the flow-based long connection are specifically: the AF entity sends the first use to the PCRF entity on the long connection based on the flow. After the user event report request message, the first user plane event report response message and the second user plane event report response message sent by the PCRF entity are received on the long connection based on the flow, in response to the first user plane event report request message, The first user plane event report response message includes a first user plane event, and the second user plane event report response message includes the second user plane event; or, the AF entity sends the first network element to the intermediate network element on the flow-based long connection. After the user plane event report request message, the first user plane event report response message and the second user face report response message sent by the intermediate network element are received on the long connection based on the flow, and the first user face report request message is sent, The user plane event report response message includes a first user plane event, and the second user face report response message includes a second user plane event, where the first user plane event and the second user plane event are sent by the PCRF entity to the intermediate network element. of.
当 PCRF实体采用基于流的推送方式向 AF实体上报用户面事件时, AF 实体在与 PCRF实体建立 TCP长连接后, AF实体只需要发送一次用户面事 件上报请求消息,建立一个基于流的 HTTP长连接, PCRF实体就可以通过该 HTTP长连接向 AF实体上报用户面事件, 并且在上报用户面事件后, 并不断 开该 HTTP长连接, 而是继续等待用户面事件发生。 因而, 通过一次建立就 可以上报多次用户面事件。 该 HTTP长连接只有当连接出错或者连接重建时 才断开, 否则一直处于连接状态, PCRF实体可以一直向 AF实体主动上报用 户面事件。  When the PCRF entity reports the user plane event to the AF entity by using the flow-based push mode, after the AF entity establishes a TCP long connection with the PCRF entity, the AF entity only needs to send a user plane event report request message to establish a flow-based HTTP length. After the connection, the PCRF entity can report the user plane event to the AF entity through the HTTP long connection, and after reporting the user plane event, does not disconnect the HTTP long connection, but continues to wait for the user plane event to occur. Thus, multiple user plane events can be reported by one setup. The HTTP long connection is disconnected only when the connection is faulty or the connection is reestablished. Otherwise, the PCRF entity can always report the user plane event to the AF entity.
AF实体在基于长轮询的长连接上接收 PCRF实体上报的第一用户面事件 和第二用户面事件具体为: AF实体在基于长轮询的长连接上向 PCRF实体发 送第一用户面事件上报请求消息和第二用户面上报请求消息后, 在基于长轮 询的长连接上接收 PCRF实体发送的第一用户面事件上报响应消息和第二用 户面事件上报响应消息, 该第一用户面事件上报响应消息响应该第一两条用 户面事件上报请求消息, 该第二用户面事件上报响应消息响应该第二用户面 事件上报请求消息,该第一用户面事件上报响应消息中包含第一用户面事件, 该第二用户面事件上报响应消息中包含第二用户面事件, 其中, 用户面事件 上报响应消息为 PCRF实体在接收到 AF实体发送的用户面事件上报请求消 息后, 等待用户面事件的发生, 并在发生用户面事件时发送的。  The first user plane event and the second user plane event reported by the AF entity to receive the PCRF entity on the long connection based on the long polling are specifically: the AF entity sends the first user plane event to the PCRF entity on the long connection based on the long polling After the report request message and the second user face report request message, the first user plane event report response message and the second user plane event report response message sent by the PCRF entity are received on the long connection based on the long poll, the first user plane The event reporting response message is responsive to the first two user plane event reporting request message, and the second user plane event reporting response message is responsive to the second user plane event reporting request message, where the first user plane event reporting response message includes the first message The user plane event, the second user plane event report response message includes a second user plane event, where the user plane event report response message is that the PCRF entity waits for the user face after receiving the user plane event report request message sent by the AF entity. The event occurs and is sent when a user plane event occurs.
或者, AF实体在基于长轮询的长连接向中间网元发送第一用户面事件上 报请求消息和第二用户面事件上报请求消息后, 在基于长轮询的长连接上接 收中间网元发送的第一用户面事件上报响应消息和第二用户面事件上报请求 消息, 第一用户面事件上报响应消息响应该第一用户面事件上报请求消息, 第二用户面事件上报响应消息响应该第二用户面事件上报请求消息, 该第一 用户面事件上报响应消息中包含第一用户面事件, 该第二用户面事件上报响 应消息中包含第二用户面事件。 用户面事件上报响应消息为中间网元在接收 到 AF实体发送的用户面事件上报请求消息后, 等待 PCRF实体发送用户面 事件, 并在接收到 PCRF实体发送的用户面事件后发送的。 Or the AF entity sends the first user plane event report request message and the second user plane event report request message to the intermediate network element after the long connection based on the long polling, and connects to the long connection based on the long polling And receiving, by the intermediate network element, the first user plane event report response message and the second user plane event report request message, the first user plane event report response message responding to the first user plane event report request message, and the second user plane event report request response The message responds to the second user plane event report request message, where the first user plane event report response message includes a first user plane event, and the second user plane event report response message includes a second user plane event. The user plane event report response message is that the intermediate network element waits for the PCRF entity to send the user plane event after receiving the user plane event report request message sent by the AF entity, and sends the user plane event after receiving the user plane event sent by the PCRF entity.
当 PCRF实体直接与 AF实体建立基于长轮询的长连接时, PCRF实体采 用基于长轮询的推送方式向 AF实体上报用户面事件, 具体地, AF实体在与 PCRF实体建立 TCP长连接后, AF实体向 PCRF实体发送用户面事件上报请 求消息,建立一个基于长轮询的 HTTP长连接, PCRF实体在接收到用户面事 件上报请求消息后, 等待用户面事件发生, 在发生用户面事件时, PCRF实体 将用户面事件包含在用户面事件上报响应消息中发送给 AF 实体, 并在发送 用户面事件上报响应消息后, 断开该 HTTP长连接。 当 PCRF实体通过中间 网元与 AF 实体建立基于长轮询的长连接时, 中间网元在接收到用户面事件 上报请求消息后, 等待 PCRF实体发送用户面事件, 并在接收到 PCRF实体 发送的用户面事件后, 将用户面事件包含在用户面事件上报响应消息中发送 给 AF 实体。 通过上述描述可知, 在基于长轮询的推送方式中, 每次上报用 户面事件, 都要建立一个基于长轮询的 HTTP长连接, 并在上报用户面事件 后, 断开 HTTP长连接。  When the PCRF entity directly establishes a long connection based on the long polling with the AF entity, the PCRF entity reports the user plane event to the AF entity by using the long polling-based push mode. Specifically, after the AF entity establishes a TCP long connection with the PCRF entity, The AF entity sends a user plane event report request message to the PCRF entity to establish a long long polling-based HTTP long connection. After receiving the user plane event report request message, the PCRF entity waits for the user plane event to occur. When a user plane event occurs, The PCRF entity sends the user plane event to the AF entity in the user plane event report response message, and disconnects the HTTP long connection after sending the user plane event report response message. After the PCRF entity establishes a long polling-based long connection with the AF entity through the intermediate network element, the intermediate network element waits for the PCRF entity to send the user plane event after receiving the user plane event report request message, and receives the PCRF entity sending After the user plane event, the user plane event is included in the user plane event report response message and sent to the AF entity. According to the above description, in the long polling-based push mode, each time a user plane event is reported, an HTTP long connection based on long polling is established, and after the user plane event is reported, the HTTP long connection is disconnected.
图 5 为本发明用户面事件处理方法实施例五的流程图, 本实施例中以 PCRF实体和 AF实体建立直接基于流的长连接为例进行详细说明,如图 5所 示, 本实施例提供的方法包括以下歩骤:  FIG. 5 is a flowchart of a fifth embodiment of a user plane event processing method according to the present invention. In this embodiment, a direct flow-based long connection is established by using a PCRF entity and an AF entity as an example. As shown in FIG. 5, this embodiment provides The method includes the following steps:
歩骤 501、 AF实体在会话建立完成后, 确定可接入的 PCRF实体。  Step 501: After the session establishment is completed, the AF entity determines an accessible PCRF entity.
AF实体感知到 AF会话建立, 即 UE与 AF实体建立业务联系, 该 UE 携带有 IP地址, AF实体可以为 WEB服务器、视频服务器、 FTP服务器及邮 件服务器等。 AF实体根据 UE的 IP地址获取该 UE的 PLMN, 该 PLMN可 以是 HPLMN也可以是 VPLMN, 然后 AF实体判断 PLMN内的 PCRF实体 是否支持基于 XML的协议, 如果支持, 则与该 PCRF实体建立长连接。可以 理解的是,在 AF实体上预先配置有 PLMN内的 PCRF实体信息,以及各 PCRF 实体所支持的协议。若有可接入的 PCRF实体, 则执行歩骤 502, 若没有可接 入的 PCRF实体, 则结束流程。 The AF entity is aware of the establishment of the AF session, that is, the UE establishes a service connection with the AF entity. The UE carries an IP address, and the AF entity can be a WEB server, a video server, an FTP server, and a mail server. The AF entity obtains the PLMN of the UE according to the IP address of the UE, and the PLMN may be an HPLMN or a VPLMN. Then the AF entity determines whether the PCRF entity in the PLMN supports an XML-based protocol, and if so, establishes a long connection with the PCRF entity. . It can be understood that the PCRF entity information in the PLMN and the PCRF are pre-configured on the AF entity. The protocol supported by the entity. If there is an accessible PCRF entity, step 502 is performed. If there is no PCRF entity that can be accessed, the process ends.
上述 UE的 IP地址可能是经过 NAT进行私网 /公网转换的 IP地址,在本 实施例中, 分组数据网关实体 (Packet Data Network Gateway, 简称 P-GW) 与 PCRF实体处该 UE的 IP地址为转换前的私网 IP地址, 而 UE携带至 AF 实体的为经过转换的公网 IP地址,在后续过程中 UE的这两种 IP会出现不匹 配的情况, 因此可以通过 NAT 将私网 /公网映射表项发送给 PCRF 实体或 P-GW, 在 PCRF实体或 P-GW处进行私网和公网地址的转换, 进而避免了网 关设备无法执行策略与计费控制(Policy and Charging Control, 简称 PCC)规 则的问题。  The IP address of the UE may be an IP address translated by the private network/public network through the NAT. In this embodiment, the packet data network gateway (P-GW) and the IP address of the UE at the PCRF entity are used. The IP address of the private network before the conversion, and the UE carries the translated public IP address to the AF entity. In the subsequent process, the two IPs of the UE may be mismatched. Therefore, the private network can be NAT/ The public network mapping entry is sent to the PCRF entity or the P-GW to perform the conversion between the private network and the public network address at the PCRF entity or the P-GW, thereby preventing the gateway device from performing policy and charging control (Policy and Charging Control, Acronym for PCC) rules.
歩骤 502、 AF实体与可接入的 PCRF实体建立 TCP连接, 并在 TCP连 接上建立一个基于流的长连接。  Step 502: The AF entity establishes a TCP connection with the accessible PCRF entity, and establishes a long flow-based connection on the TCP connection.
如果 AF实体确定出有可连接的基于 XML的协议的 PCRF实体, 该 AF 实体将携带 UE的 IP与可接入的 PCRF实体建立 TCP链接, 在此 TCP链接 上建立一个基于流的 HTTP长连接。  If the AF entity determines a PCRF entity with a connectable XML-based protocol, the AF entity establishes a TCP link with the IP of the UE and the accessible PCRF entity, and establishes a flow-based HTTP long connection on the TCP link.
歩骤 503、 AF实体在基于流的长连接上向 PCRF实体发送第一用户面事 件上报请求消息。  Step 503: The AF entity sends a first user plane event report request message to the PCRF entity on the long connection based on the flow.
需要说明的是, AF实体与 PCRF实体建立长连接后, 当 AF实体需要向 PCRF实体发送消息时, AF实体还可以与 PCRF实体建立短连接, 采用传统 的一发一收的短连接形式发送信息。  It should be noted that, after the AF entity establishes a long connection with the PCRF entity, when the AF entity needs to send a message to the PCRF entity, the AF entity can also establish a short connection with the PCRF entity, and send the information by using a traditional short connection form. .
歩骤 504、 PCRF实体在基于流的长连接上向 AF实体发送 ACK响应消 息。  Step 504: The PCRF entity sends an ACK response message to the AF entity on the long connection based on the flow.
PCRF实体接收 AF实体发送的第一用户面事件上报请求消息后,为了通 知 AF实体该长连接正常并表明 PCRF实体已经正确的接收到了该请求, PCRF 实体向 AF实体发送确认 ACK (Acknowledge)请求响应, 该 ACK响应消息 中不携带用户面事件。  After receiving the first user plane event report request message sent by the AF entity, the PCRF entity sends an acknowledgement ACK (Acknowledge) request response to the AF entity in order to notify the AF entity that the long connection is normal and indicates that the PCRF entity has correctly received the request. The ACK response message does not carry a user plane event.
歩骤 505、 PCRF实体在基于流的长连接上向 AF实体发送 ACK响应消 息后, 并不断开与 AF实体间的连接, 保持连接等待用户面事件发生。  Step 505: After sending the ACK response message to the AF entity on the long connection based on the flow, the PCRF entity does not disconnect the connection with the AF entity, and keeps the connection waiting for the user plane event to occur.
PCRF 实体向 AF 实体发送用户面事件上报请求响应后, 并不断开该 HTTP长连接, 而是等待用户面事件发生。 歩骤 506、 在第一用户面事件发生时, PCRF实体在基于流的长连接上向 AF实体发送第一用户面事件上报响应消息。 After the PCRF entity sends a user plane event report request response to the AF entity, the HTTP long connection is not disconnected, but the user plane event is awaited. Step 506: When the first user plane event occurs, the PCRF entity sends a first user plane event report response message to the AF entity on the long connection based on the flow.
当第一用户面事件发生时, PCRF实体将用户面事件的参数信息携带在第 一用户面事件上报响应中发送给 AF实体,该用户面事件具体为 IP-CAN会话 终止、 SDF去激活、信令路径状态通知、 IP-CAN类型变更通知、 接入网络计 费信息通知、 赞助商数据连接使用上报、 接入网络信息等事件。 在上报的用 户面事件中, 携带有 UE的 IP地址, 其中携带的 IP地址为由 PCRF实体转换 后的公网 IP地址。  When the first user plane event occurs, the PCRF entity carries the parameter information of the user plane event in the first user plane event report response and sends the parameter to the AF entity, where the user plane event is specifically IP-CAN session termination, SDF deactivation, and signaling. Let the path status notification, IP-CAN type change notification, access network billing information notification, sponsor data connection use report, access network information and other events. In the reported user plane event, the IP address of the UE is carried, and the IP address carried therein is the public IP address converted by the PCRF entity.
歩骤 507、 PCRF实体发送第一用户面事件上报响应消息后保持连接, 继 续等待第二用户面事件发生, 当第二用户面事件发生时, 在基于流的长连接 上向 AF实体上报第二用户面事件上报响应消息。  Step 507: The PCRF entity sends a first user plane event report response message, and then keeps the connection, and continues to wait for the second user plane event to occur. When the second user plane event occurs, the second entity reports the event to the AF entity. The user plane event reports a response message.
在基于流的长连接中, PCRF实体在向 AF实体上报第一用户面事件上报 响应消息后, 并不断开连接, 而是保持该基于流的 HTTP长连接, 继续等待 第二用户面事件发生, 重复执行歩骤 505-507。其中, 第一用户面事件和第二 用户面事件为非空的用户面事件。  In the long connection based on the flow, after reporting the first user plane event report response message to the AF entity, the PCRF entity does not disconnect, but keeps the stream-based HTTP long connection and continues to wait for the second user plane event to occur. Repeat steps 505-507. The first user plane event and the second user plane event are non-empty user plane events.
本实施例中, PCRF可以向 AF实体发送第一用户面事件上报响应消息和 第二用户面事件上报响应消息以响应该第一用户面事件上报请求消息, 当然 PCRF也可以向 AF实体发送更多的用户面事件上报响应消息以响应该第一用 户面事件上报请求消息, 每个用户面事件上报响应消息中包含一个用户面事 件。  In this embodiment, the PCRF may send the first user plane event report response message and the second user plane event report response message to the AF entity in response to the first user plane event report request message, and the PCRF may also send more to the AF entity. The user plane event reporting response message is in response to the first user plane event reporting request message, and each user plane event reporting response message includes a user plane event.
歩骤 508、 当 AF实体会话需要终止时, AF实体向 PCRF实体发送会话 终止消息, 通知 PCRF实体不需要上报用户面事件。  Step 508: When the AF entity session needs to be terminated, the AF entity sends a session termination message to the PCRF entity, to notify the PCRF entity that the user plane event does not need to be reported.
歩骤 509、 PCRF实体断开该基于流的长连接。  Step 509: The PCRF entity disconnects the long connection based on the flow.
PCRF实体在收到 AF实体发送的会话终止消息后,断开该基于流的长连 接。  After receiving the session termination message sent by the AF entity, the PCRF entity disconnects the long connection based on the flow.
本实施例提供的方法, PCRF实体和 AF实体通过建立基于流的长连接, 采用基于流的推送方式在该基于流的长连接上向 AF 实体发送多条用户面事 件上报响应消息, 实现了 PCRF实体主动向 AF实体上报用户面事件。 通过 该方法, 不仅使 PCRF实体能够主动向 AF实体上报用户面事件, 且抑制发 送空的用户面事件, 不必在每次有用户面事件需要上报时建立连接, 且不必 发送空的用户面事件, 从而能够有效降低网络信令开销。 In the method provided by the embodiment, the PCRF entity and the AF entity send a plurality of user plane event report response messages to the AF entity by using the flow-based push method by establishing a flow-based long connection, and implementing the PCRF. The entity actively reports the user plane event to the AF entity. The method can not only enable the PCRF entity to actively report the user plane event to the AF entity, but also suppress the sending of the empty user plane event, and does not need to establish a connection every time a user plane event needs to be reported, and does not have to Sending empty user plane events can effectively reduce network signaling overhead.
图 6 为本发明用户面事件处理方法实施例六的流程图, 本实施例中以 PCRF实体和 AF实体直接建立基于长轮询的长连接为例进行详细说明,如图 6所示, 本实施例提供的方法包括以下歩骤:  6 is a flowchart of a method for processing a user plane event according to a sixth embodiment of the present invention. In this embodiment, a long connection based on a long polling is directly established by a PCRF entity and an AF entity as an example. As shown in FIG. 6, the implementation is as shown in FIG. The method provided by the example includes the following steps:
歩骤 601、 AF实体在会话建立完成后, 确定可接入的 PCRF实体。  Step 601: After the session establishment is completed, the AF entity determines the accessible PCRF entity.
参照实施例五中歩骤 501的描述, 这里不再赘述。  Refer to the description of step 501 in the fifth embodiment, and details are not described herein again.
歩骤 602、 AF实体与可接入的 PCRF实体建立 TCP长连接。  Step 602: The AF entity establishes a TCP long connection with the accessible PCRF entity.
如果 AF实体确定出有可连接的基于 XML的协议的 PCRF实体, 该 AF 实体将携带 UE的 IP地址与可接入 PCRF实体建立 TCP连接, 该 TCP连接 为一 TCP长连接。  If the AF entity determines a PCRF entity with a connectable XML-based protocol, the AF entity will carry a TCP connection with the accessible PCRF entity carrying the UE's IP address, which is a TCP long connection.
歩骤 603、 AF实体向 PCRF实体发送用户面事件上报请求消息, 用于建 立一个基于长轮询的长连接。  Step 603: The AF entity sends a user plane event report request message to the PCRF entity, to establish a long connection based on the long poll.
AF实体在与 PCRF实体建立 TCP长连接后, 在基于该 TCP长连接上建 立一个基于长轮询的 HTTP长连接, 并且在基于长轮询的 HTTP长连接上采 用基于长轮询的方式向 AF实体上报用户面事件。需要说明的是, 当 AF实体 需要向 PCRF实体发送消息时, AF实体还可以与 PCRF实体建立短连接, 采 用传统的一发一收的短连接形式发送信息, 该短连接和长连接是并行的。  After establishing a TCP long connection with the PCRF entity, the AF entity establishes a long long polling-based HTTP long connection based on the TCP long connection, and adopts a long polling-based manner to the AF over the long polling-based HTTP long connection. The entity reports a user plane event. It should be noted that, when the AF entity needs to send a message to the PCRF entity, the AF entity may also establish a short connection with the PCRF entity, and send the information by using a traditional short connection and a long connection. The short connection and the long connection are parallel. .
歩骤 604、 PCRF实体接收 AF实体发送的第一用户面事件上报请求消息 后, 保持连接等待第一用户面事件发生。  Step 604: After receiving the first user plane event report request message sent by the AF entity, the PCRF entity keeps the connection waiting for the first user plane event to occur.
PCRF 实体在接收 AF 实体发送的第一用户面事件上报请求消息后, 和 After receiving the request message by the first user plane event sent by the AF entity, the PCRF entity, and
HTTP短连接不同, PCRF实体并不是立刻向 AF实体返回响应消息, 而是保 持连接等待第一用户面事件发生, 在第一用户面事件发生时, 才向 AF 实体 发送第一用户面事件上报响应消息以响应该第一用户面事件上报请求消息。 该用户面事件具体为 IP-CAN会话终止、 SDF去激活、 信令路径状态通知、 IP-CAN类型变更通知、 接入网络计费信息通知、 赞助商数据连接使用上报、 接入网络信息等事件。 在上报的用户面事件中, 携带有 UE的 IP地址, 其中 携带的 IP地址为由 PCRF实体转换后的公网 IP地址。 The HTTP short connection is different. The PCRF entity does not immediately return a response message to the AF entity, but keeps the connection waiting for the first user plane event to occur. When the first user plane event occurs, the first user plane event report response is sent to the AF entity. The message is in response to the first user plane event escalation request message. The user plane events are specifically IP-CAN session termination, SDF deactivation, signaling path status notification, IP-CAN type change notification, access network charging information notification, sponsor data connection reporting, access network information, and the like. . In the reported user plane event, the IP address of the UE is carried, and the IP address carried in the IP address is the public IP address converted by the PCRF entity.
歩骤 605、 PCRF实体在基于长轮询的长连接上向 AF实体发送第一用户 面事件上报响应消息后, 断开该连接。  Step 605: After transmitting the first user plane event report response message to the AF entity on the long connection based on the long polling, the PCRF entity disconnects the connection.
当用户面事件发生时, PCRF实体将用户面事件的参数信息携带在用户面 事件上报响应消息中发送给 AF实体,在向 AF实体发送用户面事件上报响应 消息后, 断开该 HTTP长连接, 但是不断开 TCP连接。 When a user plane event occurs, the PCRF entity carries the parameter information of the user plane event on the user plane. The event reporting response message is sent to the AF entity. After the user plane event reporting response message is sent to the AF entity, the HTTP long connection is disconnected, but the TCP connection is not disconnected.
歩骤 606、 PCRF实体接收 AF实体发送的第二用户面事件上报请求消息 后, 保持连接等待第二用户面事件发生。  Step 606: After receiving the second user plane event report request message sent by the AF entity, the PCRF entity keeps the connection waiting for the second user plane event to occur.
其中, 第一用户面事件和第二用户面事件为非空的用户面事件。  The first user plane event and the second user plane event are non-empty user plane events.
歩骤 607、 PCRF实体向 AF实体发送第二用户面事件上报响应消息后, 断开该连接。  Step 607: After the PCRF entity sends the second user plane event report response message to the AF entity, the connection is disconnected.
本实施例中, 基于长轮询的长连接, PCRF实体接收到 AF实体发送的每 个用户面事件上报请求消息后, 都返回一个用户面事件上报响应消息响应该 用户面事件上报请求消息。 可以理解的是, 本实施例中, 建立一次 TCP长连 接后, PCRF实体不仅仅可以上报两个用户面事件, AF通过发送多个用户面 事件上报请求消息,相应地, PCRF针对每个用户面事件上报请求消息返回一 个用户面事件上报响应消息。  In this embodiment, after receiving the long message of the long polling, the PCRF entity returns a user plane event report response message in response to the user plane event report request message after receiving the user plane event report request message sent by the AF entity. It can be understood that, in this embodiment, after establishing a TCP long connection, the PCRF entity can not only report two user plane events, but the AF sends multiple user plane event report request messages, and accordingly, the PCRF is for each user plane. The event escalation request message returns a user plane event escalation response message.
歩骤 608、 当 AF实体会话需要终止时, AF实体向 PCRF实体发送会话 终止消息, 通知 PCRF实体不需要上报用户面事件。  Step 608: When the AF entity session needs to be terminated, the AF entity sends a session termination message to the PCRF entity, to notify the PCRF entity that the user plane event does not need to be reported.
歩骤 609、 PCRF实体断开该 TCP长连接。  Step 609: The PCRF entity disconnects the TCP long connection.
PCRF实体在收到 AF实体发送的会话终止消息后, 断开该 TCP长连接。 由上述描述可知, 在基于长轮询的长连接和基于流的长连接是不同的, 虽然上述两种方式中, 都只需要建立一次 TCP长连接, 但是基于流的长连接 在该 TCP长连接上只需要建立一次 HTTP连接, 就可以返回多个响应消息。 而基于长轮询的长连接中, 在该 TCP连接上需要建立多次 HTTP连接, 每次 建立一个 HTTP连接, 只能返回一个响应消息。  After receiving the session termination message sent by the AF entity, the PCRF entity disconnects the TCP long connection. It can be seen from the above description that the long connection based on long polling and the long connection based on flow are different, although in the above two methods, only one TCP long connection needs to be established, but the long connection based on the flow is connected in the TCP long connection. Only one HTTP connection needs to be established, and multiple response messages can be returned. In a long connection based on long polling, multiple HTTP connections need to be established on the TCP connection, and each time an HTTP connection is established, only one response message can be returned.
本实施例提供的方法, PCRF实体与 AF实体之间建立基于长轮询的长连 接, PCRF实体在接收到 AF实体发送的用户面事件上报请求消息后, 等待用 户面事件发生, 并在发生用户面事件发生时在基于长轮询的长连接上向 AF 实体发送用户面事件上报响应消息, 实现了 PCRF实体主动向 AF实体上报 用户面事件。 另一方面, 本实施例提供的方法, 通过建立一次 TCP连接, 可 以实现多次 HTTP报文的发送和接收, 且抑制发送空的用户面事件, 不必在 每次有用户面事件需要上报时建立连接, 且不必发送空的用户面事件, 从而 降低了网络信令开销。 图 7为本发明用户面事件处理方法实施例七的信令流程流程图, 本实施 例中以 PCRF实体和 AF实体建立直接基于流的长连接为例进行详细说明, 如图 7所示, 本实施例提供的方法包括以下歩骤: In the method provided by the embodiment, a long connection based on a long polling is established between the PCRF entity and the AF entity. After receiving the request message sent by the user plane event sent by the AF entity, the PCRF entity waits for the user plane event to occur, and the user occurs. When a face event occurs, the user plane event report response message is sent to the AF entity on the long connection based on the long polling, so that the PCRF entity actively reports the user plane event to the AF entity. On the other hand, the method provided in this embodiment can implement multiple TCP packets transmission and reception by establishing a TCP connection, and suppress sending empty user plane events, and does not need to be established every time a user plane event needs to be reported. Connect, and do not have to send empty user plane events, which reduces network signaling overhead. FIG. 7 is a flowchart of a signaling flow of a method for processing a user plane event according to a seventh embodiment of the present invention. In this embodiment, a direct connection based on a flow is established by using a PCRF entity and an AF entity as an example. As shown in FIG. The method provided by the embodiment includes the following steps:
歩骤 701、 AF实体感知会话建立, 确定可接入的 PCRF实体。  Step 701: The AF entity senses session establishment, and determines an accessible PCRF entity.
具体参照实施例五中歩骤 501的描述, 这里不再赘述。  For details, refer to the description of step 501 in the fifth embodiment, and details are not described herein again.
歩骤 702、 AF实体向 PCRF实体发送用户面事件上报请求消息。  Step 702: The AF entity sends a user plane event report request message to the PCRF entity.
如果 AF实体确定出有可连接的基于 XML的协议的 PCRF实体, 该 AF 实体将携带 UE的 IP与可接入的 PCRF实体建立 TCP链接, 在此 TCP链接 上建立一个基于流的 HTTP长连接, 向 PCRF实体发送用户面事件上报请求 消息。  If the AF entity determines a PCRF entity with a connectable XML-based protocol, the AF entity establishes a TCP link with the IP of the UE and the accessible PCRF entity, and establishes a flow-based HTTP long connection on the TCP link. A user plane event report request message is sent to the PCRF entity.
歩骤 703、 PCRF实体向 AF实体返回一个 ACK响应消息。  Step 703: The PCRF entity returns an ACK response message to the AF entity.
PCRF实体接收到 AF实体发送的第一用户面事件上报请求后, 向 AF实 体返回一个 ACK响应消息, 通知 AF该 HTTP长连接建立成功。 若 AF实体 需要向 PCRF实体发送消息, 可以采用传统的一收一发的短连接方式进行通 信。  After receiving the first user plane event report request sent by the AF entity, the PCRF entity returns an ACK response message to the AF entity to notify the AF that the HTTP long connection is successfully established. If the AF entity needs to send a message to the PCRF entity, it can use the traditional one-to-one short connection method for communication.
歩骤 704、 PCRF实体保持连接, 等待用户面事件发生。  Step 704: The PCRF entity remains connected, waiting for a user plane event to occur.
PCRF实体向 AF实体发送 ACK响应消息后,并不断开该 HTTP长连接, 而是保持连接, 等待用户面事件发生。在次过程中, PCRF实体可能会接收到 来自策略及计费执行(Policy and Charging Enforcement Function ,简称 PCEF ) 实体发送的相应信息。  After the PCRF entity sends an ACK response message to the AF entity, the HTTP long connection is not disconnected, but the connection is maintained, waiting for the user plane event to occur. In the process, the PCRF entity may receive corresponding information from the Policy and Charging Enforcement Function (PCEF) entity.
歩骤 705、 PCRF实体向 AF实体发送用户面事件上报响应消息。  Step 705: The PCRF entity sends a user plane event report response message to the AF entity.
如果 PCRF实体感知到用户面事件发生, 则将用户面事件的相应参数携 带在用户面事件上报响应消息中, 发送给 AF实体。  If the PCRF entity senses that the user plane event occurs, the corresponding parameter of the user plane event is carried in the user plane event report response message and sent to the AF entity.
歩骤 706、 重复执行歩骤 704和 705。  Step 706, repeating steps 704 and 705.
PCRF实体在上报用户面事件后,保持 HTTP长连接,继续等待用户面发 生, 当用户面事件发生时向 AF实体上报, 即重复执行歩骤 704和 705。  After reporting the user plane event, the PCRF entity maintains the HTTP long connection and continues to wait for the user plane to occur. When the user plane event occurs, it reports to the AF entity, that is, steps 704 and 705 are repeated.
歩骤 707、 AF实体向 PC消息。  Step 707: The AF entity sends a message to the PC.
当 AF实体需要终止会话时, AF实体 PCRF实体发送会话终止消息, 通 知 PCRF不需要上报用户面事件。  When the AF entity needs to terminate the session, the AF entity PCRF entity sends a session termination message, notifying that the PCRF does not need to report the user plane event.
本实施例的具体实现方式和技术效果可以参照实施例五中的描述, 这里 不再赘述。 For specific implementation manners and technical effects of this embodiment, refer to the description in Embodiment 5, where No longer.
图 8为本发明用户面事件处理方法实施例八的信令流程流程图, 本实施 例中以 PCRF实体和 AF实体直接建立基于长轮询的长连接为例进行详细说 明, 如图 8所示, 本实施例提供的方法包括以下歩骤:  FIG. 8 is a flowchart of a signaling procedure of a method for processing a user plane event according to the eighth embodiment of the present invention. In this embodiment, a long connection based on a long polling is directly established by a PCRF entity and an AF entity, as shown in FIG. The method provided in this embodiment includes the following steps:
歩骤 801、 AF实体感知会话建立, 确定可接入的 PCRF实体。  Step 801: The AF entity senses session establishment, and determines an accessible PCRF entity.
具体参照实施例五中歩骤 501的描述, 这里不再赘述。  For details, refer to the description of step 501 in the fifth embodiment, and details are not described herein again.
歩骤 802、 AF实体向 PCRF实体发送用户面事件上报请求消息。  Step 802: The AF entity sends a user plane event report request message to the PCRF entity.
如果 AF实体确定出有可连接的基于 XML的协议的 PCRF实体, 该 AF 实体将携带 UE的 IP与可接入的 PCRF实体建立 TCP链接, 在此 TCP链接 上建立一个基于长轮询的 HTTP长连接, 向 PCRF实体发送用户面事件上报 请求消息。  If the AF entity determines a PCRF entity with a connectable XML-based protocol, the AF entity establishes a TCP link with the IP of the UE and the accessible PCRF entity, and establishes a long poll-based HTTP length on the TCP link. Connect, send a user plane event report request message to the PCRF entity.
歩骤 803、 PCRF实体保持 HTTP长连接, 等待用户面事件发生。  Step 803: The PCRF entity maintains an HTTP long connection and waits for a user plane event to occur.
PCRF实体接收到 AF实体发送的第一用户面事件上报请求后,并不立刻 回复 AF实体, 而是保持连接, 等待用户面事件发生。 在此过程中, PCRF实 体可能会接收到来自 PCEF的相应信息。若 AF实体需要向 PCRF实体发送消 息, 可以采用传统的一收一发的短连接方式进行通信。  After receiving the first user plane event report request sent by the AF entity, the PCRF entity does not immediately reply to the AF entity, but keeps the connection and waits for the user plane event to occur. During this process, the PCRF entity may receive corresponding information from the PCEF. If the AF entity needs to send a message to the PCRF entity, it can communicate using the traditional one-shot short connection method.
歩骤 804、 PCRF实体向 AF实体发送用户面事件上报响应消息, 并断开 Step 804: The PCRF entity sends a user plane event report response message to the AF entity, and disconnects
HTTP长连接。 HTTP long connection.
如果 PCRF实体感知到用户面事件发生, 则即将用户面事件的相应参数 携带在用户面事件上报响应消息中, 发送给 AF 实体, 并在上报用户面事件 后, PCRF实体断开 HTTP长连接。  If the PCRF entity senses that the user plane event occurs, the corresponding parameter of the user plane event is carried in the user plane event report response message, and is sent to the AF entity, and after reporting the user plane event, the PCRF entity disconnects the HTTP long connection.
歩骤 805、 重复执行歩骤 802至歩骤 804。  Step 805: Repeat steps 802 to 804.
PCRF 实体在上报用户面事件后, 断开 HTTP 长连接, AF 实体再次向 PCRF实体发起用户面事件上报请求消息,建立一个基于长轮询的 HTTP长连 接, 即重复执行歩骤 802至歩骤 805。  After the PCRF entity reports the user plane event, the HTTP long connection is disconnected, and the AF entity initiates a user plane event report request message to the PCRF entity to establish a long long polling HTTP long connection, that is, repeating steps 802 to 805. .
歩骤 806、 AF实体向 PCRF实体发送会话终止消息。  Step 806: The AF entity sends a session termination message to the PCRF entity.
当 AF实体需要终止会话时, AF实体 PCRF实体发送会话终止消息, 通 知 PCRF不需要上报用户面事件。  When the AF entity needs to terminate the session, the AF entity PCRF entity sends a session termination message, notifying that the PCRF does not need to report the user plane event.
本实施例的具体实现方式和技术效果可以参照实施例六中的描述, 这里 不再赘述。 图 9为本发明实施例九提供的 PCRF实体的结构示意图, 如图 9所示, 本实施例提供的 PCRF实体包括:长连接建立模块 71和用户面事件上报模块 72。 For specific implementations and technical effects of the embodiment, reference may be made to the description in Embodiment 6, and details are not described herein again. FIG. 9 is a schematic structural diagram of a PCRF entity according to Embodiment 9 of the present invention. As shown in FIG. 9, the PCRF entity provided in this embodiment includes: a long connection establishing module 71 and a user plane event reporting module 72.
其中, 长连接建立模块 71, 用于与应用功能 AF实体建立长连接; 用户面事件上报模块 72, 用于在建立的长连接上向 AF实体上报第一用 户面事件和第二用户面事件, 并在所述长连接上抑制发送空的用户面事件, 其中, 所述第一用户面事件和第二用户面事件为非空的用户面事件。  The long connection establishing module 71 is configured to establish a long connection with the application function AF entity, and the user plane event reporting module 72 is configured to report the first user plane event and the second user plane event to the AF entity on the established long connection. And suppressing sending an empty user plane event on the long connection, where the first user plane event and the second user plane event are non-empty user plane events.
其中, 长连接建立模块 71具体用于: 与 AF实体直接建立长连接; 或者, 通过中间网元与 AF实体建立长连接。当 PCRF实体与 AF实体直接建立长连 接是, PCRF实体与 AF实体之间采用基于 XML的协议, 可以是 SOAP协议 或者 Rest协议。 当 PCRF实体通过中间网元与 AF实体建立长连接时, 中间 网元与 AF实体之间采用基于 XML的协议,而 PCRF实体与中间网元之间采 用 Diameter协议, 由于 PCRF实体与中间网元采用的 Diameter协议是对等协 议, PCRF实体处的用户面事件可以直接上报至中间网元,再由中间网元通过 建立的长连接上报给 AF 实体。 中间网元可以为网关, 也可以是协议转换单 元等其他功能实体。  The long connection establishing module 71 is specifically configured to: establish a long connection directly with the AF entity; or establish a long connection with the AF entity by using the intermediate network element. When the PCRF entity directly establishes a long connection with the AF entity, an XML-based protocol is used between the PCRF entity and the AF entity, which may be a SOAP protocol or a Rest protocol. When the PCRF entity establishes a long connection with the AF entity through the intermediate network element, an XML-based protocol is used between the intermediate network element and the AF entity, and the Diameter protocol is used between the PCRF entity and the intermediate network element, because the PCRF entity and the intermediate network element are used. The Diameter protocol is a peer-to-peer protocol. User plane events at the PCRF entity can be directly reported to the intermediate network element, and then reported to the AF entity by the intermediate network element through the established long connection. The intermediate network element can be a gateway or other functional entity such as a protocol conversion unit.
PCRF实体与 AF实体建立的长连接, 可以为基于流的长连接, 也可以为 基于长轮询的长连接。  The long connection established between the PCRF entity and the AF entity may be a long connection based on a flow or a long connection based on a long poll.
用户面事件上报模块 72, 用于当 PCRF实体与 AF实体建立长连接后, 在用户面事件发生时, PCRF实体就主动向 AF实体上报用户面事件。具体地, PCRF实体可以将用户面事件携带在用户面事件上报响应消息中发送给 AF实 体, 当 PCRF实体通过中间网元与 AF实体建立长连接时, 当用户面事件发 生时, PCRF实体通知中间网元用户面事件发生, 然后, 由中间网元将用户面 事件携带在用户面事件上报响应消息中发送给 AF 实体。 用户面事件具体可 以为 IP-CAN会话终止、 SDF去激活、 信令路径状态通知、 IP-CAN类型变更 通知、 接入网络计费信息通知、 赞助商数据连接使用上报、 接入网络信息上 报等事件。  The user plane event reporting module 72 is configured to: when the PCRF entity establishes a long connection with the AF entity, the PCRF entity actively reports the user plane event to the AF entity when the user plane event occurs. Specifically, the PCRF entity may send the user plane event to the AF entity in the user plane event report response message. When the PCRF entity establishes a long connection with the AF entity through the intermediate network element, when the user plane event occurs, the PCRF entity notifies the middle. The NE user plane event occurs, and then the intermediate network element carries the user plane event in the user plane event report response message and sends it to the AF entity. The user plane event may specifically be IP-CAN session termination, SDF deactivation, signaling path status notification, IP-CAN type change notification, access network charging information notification, sponsor data connection reporting, access network information reporting, etc. event.
本实施例提供的 PCRF实体可用于执行方法实施例一提供技术方案, 其 实现原理和技术效果类似, 此处不再赘述。  The PCRF entity provided in this embodiment may be used to implement the technical solution provided by the method embodiment 1. The implementation principle and the technical effect are similar, and details are not described herein again.
在本发明一种可行的实现方式中, 长连接为基于流的长连接, 则用户面 事件上报模块 72具体用于: 在基于流的长连接上向 AF实体上报第一用户面 事件第二用户面事件。 用户面事件上报模块 72在基于流的长连接上向 AF实 体上报第一用户面事件和第二用户面事件具体为: In a feasible implementation manner of the present invention, the long connection is a long connection based on the flow, and the user plane The event reporting module 72 is specifically configured to: report the first user plane event second user plane event to the AF entity on the long connection based on the flow. The user plane event reporting module 72 reports the first user plane event and the second user plane event to the AF entity on the long connection based on the flow, which is specifically:
用户面事件上报模块 72在基于流的长连接上接收 AF实体发送的第一用 户面事件上报请求消息后, 在基于流的长连接上向 AF 实体发送第一用户面 事件上报响应消息和第二用户面事件上报响应消息以响应该第一用户面事件 上报请求消息, 第一用户面事件上报响应消息中包含第一用户面事件, 第二 用户面事件上报响应消息中包含第二用户面事件; 或者,  After receiving the first user plane event report request message sent by the AF entity on the long connection based on the flow, the user plane event reporting module 72 sends the first user plane event report response message and the second message to the AF entity on the long connection based on the flow. The user plane event report response message is in response to the first user plane event report request message, the first user plane event report response message includes a first user plane event, and the second user plane event report response message includes a second user plane event; Or,
用户面事件上报模块 72在基于流的长连接上向中间网元向 AF实体发送 第一用户面事件和第二用户事件, 以使中间网元在基于流的长连接上接收到 AF实体发送的第一用户面事件上报请求消息后, 在基于流的长连接上向 AF 实体发送第一用户面事件上报响应消息和第二用户面事件上报响应消息以响 应该第一用户面事件上报请求消息, 该第一用户面事件上报响应消息中包含 第一用户面事件, 第二用户面事件上报响应消息中包含该第二用户面事件。  The user plane event reporting module 72 sends the first user plane event and the second user event to the intermediate entity on the flow-based long connection to the AF entity, so that the intermediate network element receives the AF entity sent on the long connection based on the flow. After the first user plane event report request message, the first user plane event report response message and the second user plane event report response message are sent to the AF entity in response to the first user plane event report request message on the flow-based long connection. The first user plane event report response message includes a first user plane event, and the second user plane event report response message includes the second user plane event.
在本发明另一种可行的实现方式中, 长连接为基于长轮询的长连接; 用 户面事件上报模块 72具体用于,采用基于长轮询的推送方式在基于长轮询的 长连接上向 AF 实体上报第一用户面事件和第二用户面事件。 用户面事件上 报模块 72采用在基于流长轮询的推送方式长连接上向 AF实体上报第一用户 面事件和第一用户面事件具体为:  In another possible implementation manner of the present invention, the long connection is a long connection based on long polling; the user plane event reporting module 72 is specifically configured to use a long polling based push mode on a long polling based long connection. The first user plane event and the second user plane event are reported to the AF entity. The user plane event reporting module 72 reports the first user plane event and the first user plane event to the AF entity on the long connection based on the stream length polling push:
用户面事件上报模块 72在基于长轮询的长连接上接收 AF实体发送的第 一用户面事件上报请求消息第二用户面事件上报请求消息后, 等待用户面事 件的发生, 并在发生用户面事件时在基于长轮询的长连接上向 AF 实体发送 第一用户面事件上报响应消息和第二用户面事件上报响应消息, 该第一用户 面事件上报响应消息响应该第一两条用户面事件上报请求消息, 该第二用户 面事件上报响应消息响应该第二用户面事件上报请求消息, 该第一用户面事 件上报响应消息中包含第一用户面事件, 该第二用户面事件上报响应消息中 包含所述第二用户面事件; 或者,  The user plane event reporting module 72 waits for the user plane event to occur after receiving the first user plane event reporting request message sent by the AF entity on the long polling based long connection, and occurs in the user plane. The first user plane event report response message and the second user plane event report response message are sent to the AF entity on the long connection based on the long polling, and the first user plane event report response message responds to the first two user planes. The event reporting request message, the second user plane event reporting response message is responsive to the second user plane event reporting request message, where the first user plane event reporting response message includes a first user plane event, and the second user plane event reporting response The message includes the second user plane event; or
用户面事件上报模块 72P在基于长轮询的长连接上向中间网元发送第一 用户面事件和第二用户面事件, 以使中间网元在基于长轮询的长连接上接收 到 AF 实体发送的一条用户面事件上报请求消息后和第二用户面事件上报请 求消息后, 在基于长轮询的长连接上向 AF 实体发送第一用户面事件上报响 应消息和第二用户面事件上报响应消息, 第一用户面事件上报响应消息响应 第一用户面事件上报请求消息, 第二用户面事件上报响应消息响应第二用户 面事件上报请求消息,第一用户面事件上报响应消息中包含第一用户面事件, 第二用户面事件上报响应消息中包含第二用户面事件。 The user plane event reporting module 72P sends the first user plane event and the second user plane event to the intermediate network element on the long connection based on the long polling, so that the intermediate network element receives the AF entity on the long connection based on the long polling. After sending a user plane event report request message and a second user face event report After the message is obtained, the first user plane event report response message and the second user plane event report response message are sent to the AF entity on the long connection based on the long polling, and the first user plane event report response message is sent to the first user plane event report. The request message, the second user plane event report response message is responsive to the second user plane event report request message, the first user plane event report response message includes the first user plane event, and the second user plane event report response message includes the second user Face event.
本实施例提供的 PCRF可用于执行上述任一方法实施例提供的技术方案, 具体实现方式和技术效果类似, 故不再赘述。  The PCRF provided in this embodiment may be used to perform the technical solution provided by any of the foregoing method embodiments, and the specific implementation manners and technical effects are similar, and therefore are not described again.
图 10为本发明实施例十提供的 AF实体的结构示意图, 如图 10所示, 本实施例提供的 AF实体包括:长连接建立模块 81、用户面事件接收模块 82。  FIG. 10 is a schematic structural diagram of an AF entity according to Embodiment 10 of the present invention. As shown in FIG. 10, the AF entity provided in this embodiment includes: a long connection establishing module 81 and a user plane event receiving module 82.
其中, 长连接建立模块 81, 用于与策略与计费规则功能 PCRF实体建立 长连接;  The long connection establishing module 81 is configured to establish a long connection with the policy and charging rule function PCRF entity;
用户面事件接收模块 82, 用于在建立的长连接上接收 PCRF实体上报的 第一用户面事件和第二用户面事件, 其中, 第一用户面事件和第二用户面事 件为非空的用户面事件。  The user plane event receiving module 82 is configured to receive, by the established long connection, the first user plane event and the second user plane event reported by the PCRF entity, where the first user plane event and the second user plane event are non-empty users. Face event.
本实施例的 AF 实体, 可以用于执行实施例四提供的技术方案, 其实现 原理和技术效果类似, 此处不再赘述。  The AF entity in this embodiment may be used to implement the technical solution provided in the fourth embodiment, and the implementation principle and technical effects are similar, and details are not described herein again.
本实施例中, 长连接建立模块 81具体用于: 与 PCRF实体直接建立长连 接; 或者, 通过中间网元与 PCRF实体建立长连接。  In this embodiment, the long connection establishing module 81 is specifically configured to: directly establish a long connection with the PCRF entity; or establish a long connection with the PCRF entity by using the intermediate network element.
其中, 长连接可以为基于流的长连接, 也可以为基于轮询的长连接。 当长连接建立模块 81建立的长连接为基于流的长连接时,用户面事件接 收模块 82具体用于:在基于流的长连接上接收 PCRF实体上报的第一用户面 事件和第二用户面事件。 具体地, 用户面事件接收模块 82用于:  The long connection may be a long connection based on a flow or a long connection based on a poll. When the long connection established by the long connection establishing module 81 is a long connection based on the flow, the user plane event receiving module 82 is specifically configured to: receive the first user plane event and the second user plane reported by the PCRF entity on the long connection based on the flow event. Specifically, the user plane event receiving module 82 is configured to:
在基于流的长连接上向 PCRF实体发送第一用户面事件上报请求消息后, 在基于流的长连接上接收 PCRF实体发送的第一用户面事件上报响应消息和 第二用户面事件上报响应消息以响应第一用户面事件上报请求消息, 第一用 户面事件上报响应消息中包含第一用户面事件, 第二用户面事件上报响应消 息中包含第二用户面事件; 或者,  After the first user plane event report request message is sent to the PCRF entity on the flow-based long connection, the first user plane event report response message and the second user plane event report response message sent by the PCRF entity are received on the flow-based long connection. In response to the first user plane event report request message, the first user plane event report response message includes a first user plane event, and the second user plane event report response message includes a second user plane event; or
在基于流的长连接上向中间网元发送第一用户面事件上报请求消息后, 在基于流的长连接上接收中间网元发送的第一用户面事件上报响应消息和第 二用户面事件上报响应消息以响应第一用户面事件上报请求消息, 第一用户 面事件上报响应消息中包含第一用户面事件, 第二用户面事件上报响应消息 中包含第二用户面事件。 After the first user plane event report request message is sent to the intermediate network element, the first user plane event report response message and the second user plane event report sent by the intermediate network element are received on the flow-based long connection. Responding to the first user plane event report request message in response to the message, the first user The face event report response message includes a first user plane event, and the second user plane event report response message includes a second user plane event.
当长连接建立模块 81建立的长连接为基于长轮询的长连接时,用户面事 件接收模块 82具体用于:在基于长轮询的长连接上接收 PCRF实体或者中间 网元上报的第一用户面事件和第二用户面事件。 具体地, 用户面事件接收模 块 82用于:  When the long connection established by the long connection establishment module 81 is a long connection based on the long polling, the user plane event receiving module 82 is specifically configured to: receive the first reported by the PCRF entity or the intermediate network element on the long connection based on the long polling User plane events and second user plane events. Specifically, the user plane event receiving module 82 is used to:
在基于长轮询的长连接上向 PCRF实体发送第一用户面事件上报请求消 息后和第二用户面事件上报请求消息后,在基于长轮询的长连接上接收 PCRF 实体发送的第一用户面事件上报响应消息和第二用户面事件上报响应消息, 第一用户面事件上报响应消息响应第一两条用户面事件上报请求消息, 第二 用户面事件上报响应消息响应第二用户面事件上报请求消息, 第一用户面事 件上报响应消息中包含第一用户面事件, 第二用户面事件上报响应消息中包 含第二用户面事件; 或者,  After the first user plane event reporting request message and the second user plane event reporting request message are sent to the PCRF entity on the long connection based on the long polling, the first user sent by the PCRF entity is received on the long polling based long connection. The first user plane event reporting response message and the second user plane event reporting response message are responsive to the first two user plane event reporting request messages, and the second user plane event reporting response message is responsive to the second user plane event reporting. The request message, the first user plane event report response message includes a first user plane event, and the second user plane event report response message includes a second user plane event; or
在基于长轮询的长连接上向中间网元发送第一用户面事件上报请求消息 和第二用户面事件上报请求消息后, 在基于长轮询的长连接上接收中间网元 发送的第一用户面事件上报响应消息和第二用户面事件上报请求消息, 第一 用户面事件上报响应消息响应第一用户面事件上报请求消息, 第二用户面事 件上报响应消息响应第二用户面事件上报请求消息, 第一用户面事件上报响 应消息中包含第一用户面事件, 第二用户面事件上报响应消息中包含第二用 户面事件。  After the first user plane event reporting request message and the second user plane event reporting request message are sent to the intermediate network element on the long connection based on the long polling, the first sending of the intermediate network element is received on the long connection based on the long polling The user plane event report response message and the second user plane event report request message, the first user plane event report response message responds to the first user plane event report request message, and the second user plane event report response message responds to the second user plane event report request message. The first user plane event report response message includes a first user plane event, and the second user plane event report response message includes a second user plane event.
本实施例中,长连接建立模块 81具体用于,在会话建立完成后,与 PCRF 实体建立长连接, 然后通过该长连接向 AF实体上报用户面事件。  In this embodiment, the long connection establishing module 81 is specifically configured to establish a long connection with the PCRF entity after the session establishment is completed, and then report the user plane event to the AF entity through the long connection.
本实施例的 AF 实体, 可以用于执行上述任一方法实施例提供的技术方 案, 其实现原理和技术效果类似, 此处不再赘述。  The AF entity of this embodiment may be used to perform the technical solution provided by any of the foregoing method embodiments, and the implementation principle and technical effects are similar, and details are not described herein again.
图 11为本发明实施例十一提供的 PCRF实体的结构示意图, 如图 11所 示, 本实施例提供的 PCRF实体 900包括: 处理器 91和存储器 92, PCRF实 体 900还可以包括发射器 93、接收器 94。发射器 93和接收器 94可以和处理 器 91通过总线相连。 其中, 存储器 92存储执行指令, 当 PCRF实体运行时, 处理器 91与存储器 92之间通信,处理器 91执行执行指令使得 PCRF实体执 行本发明提供的用户面事件处理方法。本实施例中, 处理器 91用于执行以下 操作: FIG. 11 is a schematic structural diagram of a PCRF entity according to Embodiment 11 of the present invention. As shown in FIG. 11, the PCRF entity 900 provided in this embodiment includes: a processor 91 and a memory 92. The PCRF entity 900 may further include a transmitter 93. Receiver 94. Transmitter 93 and receiver 94 can be coupled to processor 91 via a bus. The memory 92 stores execution instructions. When the PCRF entity is running, the processor 91 communicates with the memory 92, and the processor 91 executes the execution instructions so that the PCRF entity executes the user plane event processing method provided by the present invention. In this embodiment, the processor 91 is configured to execute the following Operation:
通过接收器 94与应用功能 AF实体建立长连接;  Establishing a long connection with the application function AF entity through the receiver 94;
通过发射器 93在建立的长连接上向 AF实体上报第一用户面事件第二用 户面事件, 并在长连接上抑制发送空的用户面事件, 其中, 第一用户面事件 和第二用户面事件为非空的用户面事件。  The first user plane event second user plane event is reported to the AF entity by the transmitter 93 on the established long connection, and the null user plane event is suppressed on the long connection, wherein the first user plane event and the second user plane The event is a non-empty user plane event.
PCRF实体可与 AF实体直接建立长连接; 或者, PCRF实体通过中间网 元与 AF实体建立长连接。  The PCRF entity can establish a long connection directly with the AF entity. Alternatively, the PCRF entity establishes a long connection with the AF entity through the intermediate network element.
PCRF实体与 AF实体建立长连接为基于流的长连接, 则处理器 91具体 用于: 在基于流的长连接上向 AF 实体上报第一用户面事件和第二用户面事 件。  The PCRF entity establishes a long connection with the AF entity as a long flow-based connection, and the processor 91 is specifically configured to: report the first user plane event and the second user plane event to the AF entity on the long connection based on the flow.
具体地, 当接收器 94在基于流的长连接上接收到 AF实体发送的第一用 户面事件上报请求消息后, 处理器 91控制发射器 93在基于流的长连接上向 AF 实体发送第一用户面事件上报响应消息和第二用户面事件上报响应消息 以响应第一用户面事件上报请求消息, 该第一用户面事件上报响应消息中包 含第一用户面事件,该第二用户面事件上报响应消息中包含第二用户面事件; 或者,  Specifically, after the receiver 94 receives the first user plane event report request message sent by the AF entity on the long connection based on the flow, the processor 91 controls the transmitter 93 to send the first to the AF entity on the long connection based on the flow. The user plane event report response message and the second user plane event report response message are in response to the first user plane event report request message, where the first user plane event report response message includes a first user plane event, and the second user plane event report The response message includes a second user plane event; or,
发射器 93 在基于流的长连接上向中间网元发送第一用户面事件和第二 用户面事件, 以使中间网元在基于流的长连接上接收到 AF 实体发送的第一 用户面事件上报请求消息后, 在基于流的长连接上向 AF 实体发送第一用户 面事件上报响应消息和第二用户面事件上报响应消息以响应第一用户面事件 上报请求消息, 第一用户面事件上报响应消息中第一用户面事件, 第二用户 面事件上报响应消息中包含第二用户面事件。  The transmitter 93 sends the first user plane event and the second user plane event to the intermediate network element on the long connection based on the flow, so that the intermediate network element receives the first user plane event sent by the AF entity on the long connection based on the flow. After the request message is reported, the first user plane event report response message and the second user plane event report response message are sent to the AF entity in response to the first user plane event report request message, and the first user plane event report is sent on the flow-based long connection. In response to the first user plane event in the message, the second user plane event reporting response message includes a second user plane event.
PCRF实体与 AF实体建立长连接为基于长轮询的长连接, 则处理器 91 具体用于: 在基于长轮询的长连接上向 AF 实体上报第一用户面事件和第二 用户面事件。  The PCRF entity establishes a long connection with the AF entity as a long connection based on the long polling, and the processor 91 is specifically configured to: report the first user plane event and the second user plane event to the AF entity on the long connection based on the long polling.
具体地, 具体地, 接收器 94在基于长轮询的长连接上接收到 AF实体发 送的第一用户面事件上报请求消息第二用户面事件上报请求消息, 在基于长 轮询的长连接上向 AF 实体发送第一用户面事件上报响应消息和第二用户面 事件上报响应消息, 第一用户面事件上报响应消息响应第一两条用户面事件 上报请求消息, 第二用户面事件上报响应消息响应第二用户面事件上报请求 消息, 第一用户面事件上报响应消息中包含第一用户面事件, 第二用户面事 件上报响应消息中包含第二用户面事件; Specifically, the receiver 94 receives the first user plane event report request message sent by the AF entity on the long connection based on the long poll, and the second user plane event report request message is sent on the long connection based on the long poll. Sending a first user plane event report response message and a second user plane event report response message to the AF entity, the first user plane event report response message responding to the first two user plane event report request messages, and the second user plane event report response message Responding to the second user plane event escalation request The first user plane event report response message includes a first user plane event, and the second user plane event report response message includes a second user plane event;
或者, PCRF实体向在基于长轮询的长连接上向中间网元发送第一用户面 事件和第二用户面事件, 以使中间网元在基于长轮询的长连接上接收到 AF 实体发送的第一用户面事件上报请求消息和第二用户面事件上报请求消息 后, 在基于长轮询的长连接上向 AF实体发送第一用户面事件上报响应消息 和第二用户面事件上报响应消息, 第一用户面事件上报响应消息响应第一用 户面事件上报请求消息, 第二用户面事件上报响应消息响应第二用户面事件 上报请求消息, 第一用户面事件上报响应消息中包含第一用户面事件, 第二 用户面事件上报响应消息中包含第二用户面事件。  Or the PCRF entity sends the first user plane event and the second user plane event to the intermediate network element on the long connection based on the long polling, so that the intermediate network element receives the AF entity sending on the long polling based long connection. After the first user plane event reporting request message and the second user plane event reporting request message, the first user plane event reporting response message and the second user plane event reporting response message are sent to the AF entity on the long polling based long connection. The first user plane event reporting response message is responsive to the first user plane event reporting request message, the second user plane event reporting response message is responsive to the second user plane event reporting request message, and the first user plane event reporting response message includes the first user. The second user plane event report response message includes a second user plane event.
本实施例提供的 PCRF,可以用于执行上述方法实施例的技术方案,其实 现原理和技术效果类似, 此处不再赘述。  The PCRF provided in this embodiment may be used to implement the technical solution of the foregoing method embodiments. The principle and the technical effects are similar, and details are not described herein again.
图 12为本发明实施例十二提供的 AF实体的结构示意图, 如图 12所示, 本实施例提供的 AF实体 100包括: 处理器 11和存储器 12, AF实体 100还 可以包括发射器 13和接收器 14, 发射器 13和接收器 14以及存储器 12都可 以通过总线与处理器 11相连。 其中, 存储器 11存储执行指令, 当 AF实体 运行时, 处理器 11与存储器 12之间通信, 处理器 11执行所述执行指令使得 AF实体执行本实施例提供的用户面事件处理方法。 处理器 11具体用于执行 以下操作:  FIG. 12 is a schematic structural diagram of an AF entity according to Embodiment 12 of the present invention. As shown in FIG. 12, the AF entity 100 provided in this embodiment includes: a processor 11 and a memory 12, and the AF entity 100 may further include a transmitter 13 and The receiver 14, the transmitter 13 and the receiver 14, and the memory 12 can all be connected to the processor 11 via a bus. The memory 11 stores execution instructions. When the AF entity is running, the processor 11 communicates with the memory 12, and the processor 11 executes the execution instructions so that the AF entity executes the user plane event processing method provided by the embodiment. The processor 11 is specifically configured to perform the following operations:
处理器 11通过控制发射器 13与计费规则功能 PCRF实体建立长连接; 处理器 11通过控制接收器 14在建立的长连接上接收 PCRF实体向上报 的第一用户面事件和第二用户面事件, 其中, 所述第一用户面事件和第二用 户面事件为非空的用户面事件。  The processor 11 establishes a long connection with the charging rule function PCRF entity by controlling the transmitter 13; the processor 11 receives the first user plane event and the second user plane event reported by the PCRF entity on the established long connection by controlling the receiver 14. The first user plane event and the second user plane event are non-empty user plane events.
本实施例中, AF实体与 PCRF实体建立直接长连接; 或者, AF实体通 过中间网元与 PCRF实体建立长连接。 具体地, AF实体在会话建立完成后, 与 PCRF实体建立长连接。 其中, 长连接为基于流的长连接, 或者基于轮询 的长连接。  In this embodiment, the AF entity establishes a direct long connection with the PCRF entity; or the AF entity establishes a long connection with the PCRF entity through the intermediate network element. Specifically, the AF entity establishes a long connection with the PCRF entity after the session establishment is completed. Among them, long connections are long connections based on flows, or long connections based on polling.
若长连接为基于流的长连接, 接收器 14在处理器 11的控制下, 在基于 流的长连接上接收 PCRF实体采用基于流的推送方式上报的第一用户面事件 和第二用户面事件。 具体地,发射器 13在基于流的长连接上向 PCRF实体发送第一用户面事 件上报请求消息后,接收器 14在基于流的长连接上接收 PCRF实体发送的第 一用户面事件上报响应消息第二用户面事件上报响应消息以响应第一用户面 事件上报请求消息, 第一用户面事件上报响应消息中包含用户面事件, 第二 用户面事件上报响应消息中包含第二用户面事件; 或者, If the long connection is a long stream-based connection, the receiver 14 receives the first user plane event and the second user plane event reported by the PCRF entity in the flow-based push mode on the flow-based long connection under the control of the processor 11. . Specifically, after the transmitter 13 sends the first user plane event report request message to the PCRF entity on the long connection based on the flow, the receiver 14 receives the first user plane event report response message sent by the PCRF entity on the long connection based on the flow. The second user plane event reporting response message is in response to the first user plane event reporting request message, the first user plane event reporting response message includes a user plane event, and the second user plane event reporting response message includes the second user plane event; or ,
发射器 13 在基于流的长连接上向中间网元发送第一用户面事件上报请 求消息后,接收器 14在基于流的长连接上接收中间网元发送的第一用户面事 件上报响应消息和第二用户面事件上报响应消息以响应第一用户面事件上报 请求消息, 第一用户面事件上报响应消息中包含第一用户面事件, 第二用户 面事件上报响应消息中包含第二用户面事件。  After the transmitter 13 sends the first user plane event report request message to the intermediate network element on the long connection based on the flow, the receiver 14 receives the first user plane event report response message sent by the intermediate network element on the long connection based on the flow and The second user plane event report response message is sent to the first user plane event report request message, the first user plane event report response message includes the first user plane event, and the second user plane event report response message includes the second user plane event. .
若长连接为基于长轮询的长连接, 处理器 11控制接收器 14在基于长轮 询的长连接上接收 PCRF实体上报的第一用户面事件和第二用户面事件。  If the long connection is a long connection based on long polling, the processor 11 controls the receiver 14 to receive the first user plane event and the second user plane event reported by the PCRF entity on the long connection based on the long poll.
具体地,发射器 13在基于长轮询的长连接上向所述 PCRF实体发送第一 用户面事件上报请求消息后, 接收器 14在基于长轮询的长连接上接收 PCRF 实体发送的第一用户面事件上报响应消息和第二用户面事件上报响应消息, 所述第一用户面事件上报响应消息响应所述第一两条用户面事件上报请求消 息, 所述第二用户面事件上报响应消息响应所述第二用户面事件上报请求消 息, 所述第一用户面事件上报响应消息中包含所述第一用户面事件, 所述第 二用户面事件上报响应消息中包含所述第二用户面事件。  Specifically, after the transmitter 13 sends the first user plane event report request message to the PCRF entity on the long poll-based long connection, the receiver 14 receives the first sent by the PCRF entity on the long poll-based long connection. The user plane event report response message and the second user plane event report response message, the first user plane event report response message is responsive to the first two user plane event report request messages, and the second user plane event report response message Responding to the second user plane event report request message, the first user plane event report response message includes the first user plane event, and the second user plane event report response message includes the second user plane event.
或者,发射器 13在基于长轮询的长连接上向中间网元发送第一用户面事 件上报请求消息和第二用户面事件上报请求消息后,接收器 14在基于长轮询 的长连接上接收中间网元发送的第一用户面事件上报响应消息和第二用户面 事件上报请求消息, 第一用户面事件上报响应消息响应第一用户面事件上报 请求消息,第二用户面事件上报响应消息响应第二用户面事件上报请求消息, 第一用户面事件上报响应消息中包含第一用户面事件, 第二用户面事件上报 响应消息中包含第二用户面事件。  Alternatively, after the transmitter 13 sends the first user plane event report request message and the second user plane event report request message to the intermediate network element on the long connection based on the long poll, the receiver 14 is on the long connection based on the long poll. Receiving the first user plane event report response message and the second user plane event report request message sent by the intermediate network element, the first user plane event report response message responding to the first user plane event report request message, and the second user plane event report response message In response to the second user plane event report request message, the first user plane event report response message includes a first user plane event, and the second user plane event report response message includes a second user plane event.
本实施例提供的 PCRF,可以用于执行上述方法实施例的技术方案,其实 现原理和技术效果类似, 此处不再赘述。  The PCRF provided in this embodiment may be used to implement the technical solution of the foregoing method embodiments. The principle and the technical effects are similar, and details are not described herein again.
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分歩骤 可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读 取存储介质中, 该程序在执行时, 执行包括上述方法实施例的歩骤; 而前述 的存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程序代码的介 质。 It will be understood by those skilled in the art that all or part of the steps of implementing the foregoing method embodiments may be performed by hardware related to program instructions, and the foregoing program may be stored in a computer readable In the storage medium, when the program is executed, the steps including the foregoing method embodiments are performed; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk or an optical disk.
最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非对 其限制; 尽管参照前述各实施例对本发明进行了详细的说明, 本领域的普通 技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分或者全部技术特征进行等同替换; 而这些修改或者替换, 并 不使相应技术方案的本质脱离本发明各实施例技术方案的范围。  Finally, it should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting thereof; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims

权 利 要 求 书 claims
1、 一种用户面事件处理方法, 其特征在于, 包括: 1. A user plane event processing method, characterized by including:
策略与计费规则功能 PCRF实体与应用功能 AF实体建立长连接; 所述 PCRF实体在建立的所述长连接上向所述 AF实体上报第一用户面事件和第二 用户面事件, 其中, 所述第一用户面事件和第二用户面事件为非空的用户面 事件, 所述 PCRF实体在所述长连接上抑制发送空的用户面事件。 The policy and charging rule function PCRF entity establishes a persistent connection with the application function AF entity; the PCRF entity reports the first user plane event and the second user plane event to the AF entity on the established persistent connection, where, The first user plane event and the second user plane event are non-empty user plane events, and the PCRF entity suppresses sending empty user plane events on the long connection.
2、 根据权利要求 1所述的方法, 其特征在于, 所述长连接为基于流的长 连接; 2. The method according to claim 1, characterized in that the long connection is a long connection based on streams;
所述 PCRF实体在建立的长连接上向所述 AF实体上报第一用户面事件 和第二用户面事件, 包括: The PCRF entity reports the first user plane event and the second user plane event to the AF entity on the established long connection, including:
所述 PCRF实体在所述基于流的长连接上向所述 AF实体上报所述第一 用户面事件和所述第二用户面事件。 The PCRF entity reports the first user plane event and the second user plane event to the AF entity on the long flow-based connection.
3、 根据权利要求 2所述的方法, 其特征在于, 所述 PCRF实体在所述基 于流的长连接上向所述 AF实体上报所述第一用户面事件和所述第二用户面 事件, 包括: 3. The method according to claim 2, characterized in that, the PCRF entity reports the first user plane event and the second user plane event to the AF entity on the long flow-based connection, include:
所述 PCRF实体在所述基于流的长连接上接收所述 AF实体发送的第一 用户面事件上报请求消息, 在所述基于流的长连接上向所述 AF 实体发送第 一用户面事件上报响应消息和第二用户面事件上报响应消息以响应所述第一 用户面事件上报请求消息, 所述第一用户面事件上报响应消息中包含所述第 —用户面事件, 所述第二用户面事件上报响应消息中包含所述第二用户面事 件; 或者, The PCRF entity receives the first user plane event reporting request message sent by the AF entity on the persistent flow-based connection, and sends the first user plane event report to the AF entity on the persistent flow-based connection. The response message and the second user plane event reporting response message are in response to the first user plane event reporting request message, the first user plane event reporting response message contains the first user plane event, the second user plane The event reporting response message contains the second user plane event; or,
所述 PCRF实体在所述基于流的长连接上向中间网元发送所述第一用户 面事件和第二用户面事件, 以使所述中间网元在所述基于流的长连接上接收 到所述 AF 实体发送的第一用户面事件上报请求消息后, 在所述基于流的长 连接上向所述 AF实体发送第一用户面事件上报响应消息和第二用户面事件 上报响应消息以响应所述第一用户面事件上报请求消息, 所述第一用户面事 件上报响应消息中包含所述第一用户面事件, 所述第二用户面事件上报响应 消息中包含所述第二用户面事件。 The PCRF entity sends the first user plane event and the second user plane event to the intermediate network element on the long flow-based connection, so that the intermediate network element receives the first user plane event on the long flow-based connection. After the first user plane event reporting request message is sent by the AF entity, the first user plane event reporting response message and the second user plane event reporting response message are sent to the AF entity on the flow-based persistent connection in response. The first user plane event reporting request message, the first user plane event reporting response message includes the first user plane event, and the second user plane event reporting response message includes the second user plane event .
4、 根据权利要求 1所述的方法, 其特征在于, 所述长连接为基于长轮询 的长连接; 所述 PCRF实体在建立的所述长连接上向所述 AF上报第一用户面事件 和第二用户面事件, 包括: 4. The method according to claim 1, characterized in that: the long connection is a long connection based on long polling; The PCRF entity reports the first user plane event and the second user plane event to the AF on the established long connection, including:
所述 PCRF实体在所述基于长轮询的长连接上向所述 AF实体上报所述 第一用户面事件和所述第二用户面事件。 The PCRF entity reports the first user plane event and the second user plane event to the AF entity on the long polling-based long connection.
5、 根据权利要求 4所述的方法, 其特征在于, 所述 PCRF实体在所述基 于长轮询的长连接上向所述 AF 实体上报所述第一用户面事件和所述第二用 户面事件, 包括: 5. The method according to claim 4, characterized in that, the PCRF entity reports the first user plane event and the second user plane event to the AF entity on the long polling-based long connection. events, including:
所述 PCRF实体在所述基于长轮询的长连接上接收所述 AF实体发送的 第一用户面事件上报请求消息和第二用户面事件上报请求消息, 在所述基于 长轮询的长连接上向所述 AF 实体发送第一用户面事件上报响应消息和第二 用户面事件上报响应消息, 所述第一用户面事件上报响应消息响应所述第一 两条用户面事件上报请求消息, 所述第二用户面事件上报响应消息响应所述 第二用户面事件上报请求消息, 所述第一用户面事件上报响应消息中包含所 述第一用户面事件, 所述第二用户面事件上报响应消息中包含所述第二用户 面事件; 或者, The PCRF entity receives the first user plane event reporting request message and the second user plane event reporting request message sent by the AF entity on the long polling-based long connection. A first user plane event reporting response message and a second user plane event reporting response message are sent to the AF entity, and the first user plane event reporting response message responds to the first two user plane event reporting request messages, so The second user plane event reporting response message responds to the second user plane event reporting request message, the first user plane event reporting response message contains the first user plane event, and the second user plane event reporting response message The message contains the second user plane event; or,
所述 PCRF实体在所述基于长轮询的长连接上向中间网元发送第一用户 面事件和第二用户面事件, 以使所述中间网元在所述基于长轮询的长连接上 接收到所述 AF 实体发送的第一用户面事件上报请求消息和第二用户面事件 上报请求消息后, 在所述基于长轮询的长连接上向所述 AF 实体发送第一用 户面事件上报响应消息和第二用户面事件上报响应消息, 所述第一用户面事 件上报响应消息响应所述第一用户面事件上报请求消息, 所述第二用户面事 件上报响应消息响应所述第二用户面事件上报请求消息, 所述第一用户面事 件上报响应消息中包含所述第一用户面事件, 所述第二用户面事件上报响应 消息中包含所述第二用户面事件。 The PCRF entity sends the first user plane event and the second user plane event to the intermediate network element on the long polling-based long connection, so that the intermediate network element can After receiving the first user plane event reporting request message and the second user plane event reporting request message sent by the AF entity, send the first user plane event reporting request message to the AF entity on the long polling-based long connection. response message and a second user plane event reporting response message, the first user plane event reporting response message responds to the first user plane event reporting request message, and the second user plane event reporting response message responds to the second user A plane event reporting request message, the first user plane event reporting response message includes the first user plane event, and the second user plane event reporting response message includes the second user plane event.
6、 一种用户面事件处理方法, 其特征在于, 包括: 6. A user plane event processing method, characterized by including:
应用功能 AF实体与策略与计费规则功能 PCRF实体建立长连接; 所述 AF实体在建立的所述长连接上接收所述 PCRF实体上报的第一用 户面事件和第二用户面事件, 其中, 所述第一用户面事件和第二用户面事件 为非空的用户面事件。 The application function AF entity establishes a persistent connection with the policy and charging rules function PCRF entity; the AF entity receives the first user plane event and the second user plane event reported by the PCRF entity on the established persistent connection, where, The first user plane event and the second user plane event are non-null user plane events.
7、 根据权利要求 6所述的方法, 其特征在于, 所述长连接为基于流的长 连接; 7. The method according to claim 6, characterized in that the long connection is a stream-based long connection. connect;
所述 AF实体在建立的所述长连接上接收所述 PCRF实体上报的第一用 户面事件和第二用户面事件, 包括: The AF entity receives the first user plane event and the second user plane event reported by the PCRF entity on the established long connection, including:
所述 AF实体在所述基于流的长连接上接收所述 PCRF实体上报的所述 第一用户面事件和所述第二用户面事件。 The AF entity receives the first user plane event and the second user plane event reported by the PCRF entity on the long flow-based connection.
8、 根据权利要求 7所述的方法, 其特征在于, 所述 AF实体在所述基于 流的长连接上接收所述 PCRF实体上报的所述第一用户面事件和所述第二用 户面事件, 包括: 8. The method according to claim 7, characterized in that, the AF entity receives the first user plane event and the second user plane event reported by the PCRF entity on the long flow-based connection. , include:
所述 AF实体在所述基于流的长连接上向所述 PCRF实体发送第一用户 面事件上报请求消息后, 在所述基于流的长连接上接收所述 PCRF实体发送 的第一用户面事件上报响应消息和第二用户面事件上报响应消息以响应所述 第一用户面事件上报请求消息, 所述第一用户面事件上报响应消息中包含所 述第一用户面事件, 所述第二用户面事件上报响应消息中包含所述第二用户 面事件; 或者, After the AF entity sends a first user plane event reporting request message to the PCRF entity on the persistent flow-based connection, the AF entity receives the first user plane event sent by the PCRF entity on the persistent flow-based connection. The reporting response message and the second user plane event reporting response message are in response to the first user plane event reporting request message, the first user plane event reporting response message contains the first user plane event, and the second user The second user plane event is included in the plane event reporting response message; or,
所述 AF 实体在所述基于流的长连接上向中间网元发送第一用户面事件 上报请求消息后, 在所述基于流的长连接上接收所述中间网元发送的第一用 户面事件上报响应消息和第二用户面事件上报响应消息以响应所述第一用户 面事件上报请求消息, 所述第一用户面事件上报响应消息中包含所述第一用 户面事件, 所述第二用户面事件上报响应消息中包含所述第二用户面事件。 After the AF entity sends the first user plane event reporting request message to the intermediate network element on the persistent flow-based connection, the AF entity receives the first user plane event sent by the intermediate network element on the persistent flow-based connection. The reporting response message and the second user plane event reporting response message are in response to the first user plane event reporting request message, the first user plane event reporting response message contains the first user plane event, and the second user The second user plane event is included in the plane event reporting response message.
9、 根据权利要求 6所述的方法, 其特征在于, 所述长连接为基于长轮询 的长连接; 9. The method according to claim 6, characterized in that the long connection is a long connection based on long polling;
所述 AF实体在建立的所述长连接上接收所述 PCRF实体向上报的第一 用户面事件和第二用户面事件, 包括: The AF entity receives the first user plane event and the second user plane event reported by the PCRF entity on the established long connection, including:
所述 AF实体在所述基于长轮询的长连接上接收所述 PCRF实体上报的 所述第一用户面事件和所述第二用户面事件。 The AF entity receives the first user plane event and the second user plane event reported by the PCRF entity on the long polling-based long connection.
10、 根据权利要求 9所述的方法, 其特征在于, 所述 AF实体在所述基 于长轮询的长连接上接收所述 PCRF实体上报的所述第一用户面事件和所述 第二用户面事件, 包括: 10. The method according to claim 9, characterized in that, the AF entity receives the first user plane event and the second user plane event reported by the PCRF entity on the long polling-based long connection. Faced events include:
所述 AF实体在所述基于长轮询的长连接上向所述 PCRF实体发送第一 用户面事件上报请求消息和第二用户面事件上报请求消息后, 在所述基于长 轮询的长连接上接收所述 PCRF实体发送的第一用户面事件上报响应消息和 第二用户面事件上报响应消息, 所述第一用户面事件上报响应消息响应所述 第一两条用户面事件上报请求消息, 所述第二用户面事件上报响应消息响应 所述第二用户面事件上报请求消息, 所述第一用户面事件上报响应消息中包 含所述第一用户面事件, 所述第二用户面事件上报响应消息中包含所述第二 用户面事件; 或者, After the AF entity sends the first user plane event reporting request message and the second user plane event reporting request message to the PCRF entity on the long polling-based long connection, Receive the first user plane event reporting response message and the second user plane event reporting response message sent by the PCRF entity on the polling long connection, and the first user plane event reporting response message responds to the first two user planes an event reporting request message, the second user plane event reporting response message responds to the second user plane event reporting request message, the first user plane event reporting response message includes the first user plane event, and the The second user plane event reporting response message contains the second user plane event; or,
所述 AF 实体在所述基于长轮询的长连接上向所述中间网元发送第一用 户面事件上报请求消息和第二用户面事件上报请求消息后, 在所述基于长轮 询的长连接上接收所述中间网元发送的第一用户面事件上报响应消息和第二 用户面事件上报请求消息, 所述第一用户面事件上报响应消息响应所述第一 用户面事件上报请求消息, 所述第二用户面事件上报响应消息响应所述第二 用户面事件上报请求消息, 所述第一用户面事件上报响应消息中包含所述第 一用户面事件, 所述第二用户面事件上报响应消息中包含所述第二用户面事 件。 After the AF entity sends the first user plane event reporting request message and the second user plane event reporting request message to the intermediate network element on the long polling-based long connection, after the long polling-based long connection The connection receives the first user plane event reporting response message and the second user plane event reporting request message sent by the intermediate network element, and the first user plane event reporting response message responds to the first user plane event reporting request message, The second user plane event reporting response message responds to the second user plane event reporting request message, the first user plane event reporting response message contains the first user plane event, and the second user plane event reporting response message The response message contains the second user plane event.
11、 根据权利要求 6〜10中任一项所述的方法, 其特征在于, 所述 AF实 体与 PCRF实体建立长连接, 包括: 11. The method according to any one of claims 6 to 10, wherein the AF entity establishes a long connection with the PCRF entity, including:
所述 AF实体在会话建立完成后, 与所述 PCRF实体建立长连接。 After the session establishment is completed, the AF entity establishes a long connection with the PCRF entity.
12、 一种策略与计费规则功能 PCRF实体, 其特征在于, 包括: 长连接建立模块, 用于与应用功能 AF实体建立长连接; 12. A policy and charging rule function PCRF entity, characterized in that it includes: a long connection establishment module, used to establish a long connection with the application function AF entity;
用户面事件上报模块, 用于在建立的所述长连接上向所述 AF 实体上报 第一用户面事件和第二用户面事件, 并在所述长连接上抑制发送空的用户面 事件, 其中, 所述第一用户面事件和第二用户面事件为非空的用户面事件。 The user plane event reporting module is configured to report the first user plane event and the second user plane event to the AF entity on the established long connection, and suppress the sending of empty user plane events on the long connection, where , the first user plane event and the second user plane event are non-null user plane events.
13、 根据权利要求 12所述的 PCRF实体, 其特征在于, 所述长连接建立 模块具体用于: 13. The PCRF entity according to claim 12, characterized in that the long connection establishment module is specifically used for:
与所述 AF实体直接建立所述长连接; 或者, 通过中间网元与所述 AF实 体建立所述长连接。 The long connection is established directly with the AF entity; or, the long connection is established with the AF entity through an intermediate network element.
14、 根据权利要求 13所述的 PCRF实体, 其特征在于, 所述长连接为基 于流的长连接; 14. The PCRF entity according to claim 13, wherein the long connection is a flow-based long connection;
所述用户面事件上报模块具体用于:在所述基于流的长连接上向所述 AF 实体上报所述第一用户面事件和所述第二用户面事件。 The user plane event reporting module is specifically configured to report the first user plane event and the second user plane event to the AF entity on the flow-based persistent connection.
15、 根据权利要求 14所述的 PCRF实体, 其特征在于, 所述用户面事件 上报模块具体用于: 15. The PCRF entity according to claim 14, characterized in that the user plane event reporting module is specifically used to:
在所述基于流的长连接上接收所述 AF实体发送的第一用户面事件上报 请求消息, 在所述基于流的长连接上向所述 AF 实体发送第一用户面事件上 报响应消息和第二用户面事件上报响应消息以响应所述第一用户面事件上报 请求消息, 所述第一用户面事件上报响应消息中包含所述第一用户面事件, 所述第二用户面事件上报响应消息中包含所述第二用户面事件; 或者, Receive the first user plane event reporting request message sent by the AF entity on the long flow-based connection, and send the first user plane event reporting response message and the first user plane event reporting response message to the AF entity on the long flow-based connection. The second user plane event reporting response message is in response to the first user plane event reporting request message, the first user plane event reporting response message contains the first user plane event, and the second user plane event reporting response message contains the second user plane event; or,
在所述基于流的长连接上向所述中间网元发送所述第一用户面事件和第 二用户面事件, 以使所述中间网元在所述基于流的长连接上接收到所述 AF 实体发送的第一用户面事件上报请求消息后, 在所述基于流的长连接上向所 述 AF 实体发送第一用户面事件上报响应消息和第二用户面事件上报响应消 息以响应所述第一用户面事件上报请求消息, 所述第一用户面事件上报响应 消息中包含所述第一用户面事件, 所述第二用户面事件上报响应消息中包含 所述第二用户面事件。 Send the first user plane event and the second user plane event to the intermediate network element on the long flow-based connection, so that the intermediate network element receives the first user plane event on the long flow-based connection. After the AF entity sends the first user plane event reporting request message, it sends the first user plane event reporting response message and the second user plane event reporting response message to the AF entity on the flow-based persistent connection in response to the A first user plane event reporting request message, the first user plane event reporting response message includes the first user plane event, and the second user plane event reporting response message includes the second user plane event.
16、 根据权利要求 13所述的 PCRF实体, 其特征在于, 所述长连接为基 于长轮询的长连接; 16. The PCRF entity according to claim 13, characterized in that the long connection is a long connection based on long polling;
所述用户面事件上报模块具体用于, 在所述基于长轮询的长连接上向所 述 AF实体上报所述第一用户面事件和所述第二用户面事件。 The user plane event reporting module is specifically configured to report the first user plane event and the second user plane event to the AF entity on the long polling-based long connection.
17、 根据权利要求 16所述的 PCRF实体, 其特征在于, 所述用户面事件 上报模块具体用于: 17. The PCRF entity according to claim 16, characterized in that the user plane event reporting module is specifically used to:
在所述基于长轮询的长连接上接收所述 AF 实体发送的第一用户面事件 上报请求消息和第二用户面事件上报请求消息, 在所述基于长轮询的长连接 上向所述 AF 实体发送第一用户面事件上报响应消息和第二用户面事件上报 响应消息, 所述第一用户面事件上报响应消息响应所述第一两条用户面事件 上报请求消息, 所述第二用户面事件上报响应消息响应所述第二用户面事件 上报请求消息, 所述第一用户面事件上报响应消息中包含所述第一用户面事 件, 所述第二用户面事件上报响应消息中包含所述第二用户面事件; 或者, 在所述基于长轮询的长连接上向所述中间网元发送第一用户面事件和第 二用户面事件, 以使所述中间网元在所述基于长轮询的长连接上接收到所述 AF 实体发送的第一用户面事件上报请求消息和第二用户面事件上报请求消 息后, 在所述基于长轮询的长连接上向所述 AF 实体发送第一用户面事件上 报响应消息和第二用户面事件上报响应消息, 所述第一用户面事件上报响应 消息响应所述第一用户面事件上报请求消息, 所述第二用户面事件上报响应 消息响应所述第二用户面事件上报请求消息, 所述第一用户面事件上报响应 消息中包含所述第一用户面事件, 所述第二用户面事件上报响应消息中包含 所述第二用户面事件。 Receive the first user plane event reporting request message and the second user plane event reporting request message sent by the AF entity on the long polling-based long connection, and send the first user plane event reporting request message to the long polling-based long connection on the long polling-based long connection. The AF entity sends a first user plane event reporting response message and a second user plane event reporting response message. The first user plane event reporting response message responds to the first two user plane event reporting request messages. The second user The plane event reporting response message responds to the second user plane event reporting request message, the first user plane event reporting response message includes the first user plane event, and the second user plane event reporting response message includes the the second user plane event; or, send the first user plane event and the second user plane event to the intermediate network element on the long polling-based long connection, so that the intermediate network element can The first user plane event reporting request message and the second user plane event reporting request message sent by the AF entity are received on the long polling long connection. After receiving the message, the first user plane event reporting response message and the second user plane event reporting response message are sent to the AF entity on the long polling-based long connection, and the first user plane event reporting response message responds to the The first user plane event reporting request message, the second user plane event reporting response message responds to the second user plane event reporting request message, and the first user plane event reporting response message includes the first user plane event reporting request message. event, and the second user plane event reporting response message contains the second user plane event.
18、 一种应用功能 AF实体, 其特征在于, 包括: 18. An application function AF entity, characterized by including:
长连接建立模块, 用于与策略与计费规则功能 PCRF实体建立长连接; 用户面事件接收模块, 用于在建立的所述长连接上接收所述 PCRF实体 上报的第一用户面事件和第二用户面事件, 其中, 所述第一用户面事件和第 二用户面事件为非空的用户面事件。 A persistent connection establishment module, configured to establish a persistent connection with the Policy and Charging Rules Function PCRF entity; A user plane event receiving module, configured to receive the first user plane event and the third user plane event reported by the PCRF entity on the established persistent connection. Two user plane events, wherein the first user plane event and the second user plane event are non-null user plane events.
19、 根据权利要求 18所述 AF实体, 其特征在于, 所述长连接建立模块 具体用于: 19. The AF entity according to claim 18, characterized in that the long connection establishment module is specifically used for:
与所述 PCRF 实体直接建立所述长连接; 或者, 通过中间网元与所述 PCRF实体建立所述长连接。 The long connection is established directly with the PCRF entity; or, the long connection is established with the PCRF entity through an intermediate network element.
20、 根据权利要求 19所述的 AF实体, 其特征在于, 所述长连接为基于 流的长连接; 20. The AF entity according to claim 19, wherein the persistent connection is a stream-based persistent connection;
所述用户面事件接收模块, 具体用于在所述基于流的长连接上接收所述 PCRF实体上报的所述第一用户面事件和所述第二用户面事件。 The user plane event receiving module is specifically configured to receive the first user plane event and the second user plane event reported by the PCRF entity on the long flow-based connection.
21、 根据权利要求 20所述的 AF实体, 其特征在于, 所述用户面事件接 收模块具体用于: 21. The AF entity according to claim 20, characterized in that the user plane event receiving module is specifically used for:
在所述基于流的长连接上向所述 PCRF实体发送第一用户面事件上报请 求消息后, 在所述基于流的长连接上接收所述 PCRF实体发送的第一用户面 事件上报响应消息和第二用户面事件上报响应消息以响应所述第一用户面事 件上报请求消息, 所述第一用户面事件上报响应消息中包含所述第一用户面 事件, 所述第二用户面事件上报响应消息中包含所述第二用户面事件; 或者, 在所述基于流的长连接上向所述中间网元发送第一用户面事件上报请求 消息后, 在所述基于流的长连接上接收所述中间网元发送的第一用户面事件 上报响应消息和第二用户面事件上报响应消息以响应所述第一用户面事件上 报请求消息,所述第一用户面事件上报响应消息中包含所述第一用户面事件, 所述第二用户面事件上报响应消息中包含所述第二用户面事件。 After sending the first user plane event reporting request message to the PCRF entity on the long flow-based connection, receiving the first user plane event reporting response message sent by the PCRF entity on the long flow-based connection and The second user plane event reporting response message is in response to the first user plane event reporting request message. The first user plane event reporting response message contains the first user plane event. The second user plane event reporting response message The message contains the second user plane event; or, after sending the first user plane event reporting request message to the intermediate network element on the long flow-based connection, receiving all the user plane events on the long flow-based connection. The first user plane event reporting response message and the second user plane event reporting response message sent by the intermediate network element are in response to the first user plane event reporting request message, and the first user plane event reporting response message contains the The first user interface event, The second user plane event reporting response message includes the second user plane event.
22、 根据权利要求 19所述的 AF实体, 其特征在于, 所述长连接为基于 长轮询的长连接; 22. The AF entity according to claim 19, characterized in that the long connection is a long connection based on long polling;
所述用户面事件接收模块具体用于: 在所述基于长轮询的长连接上接收 所述 PCRF实体上报的所述第一用户面事件和所述第二用户面事件。 The user plane event receiving module is specifically configured to: receive the first user plane event and the second user plane event reported by the PCRF entity on the long polling-based long connection.
23、 根据权利要求 22所述的 AF实体, 其特征在于, 所述用户面事件接 收模块具体用于: 23. The AF entity according to claim 22, characterized in that the user plane event receiving module is specifically used to:
在所述基于长轮询的长连接上向所述 PCRF实体发送第一用户面事件上 报请求消息和第二用户面事件上报请求消息后, 在所述基于长轮询的长连接 上接收所述 PCRF实体发送的第一用户面事件上报响应消息和第二用户面事 件上报响应消息, 所述第一用户面事件上报响应消息响应所述第一两条用户 面事件上报请求消息, 所述第二用户面事件上报响应消息响应所述第二用户 面事件上报请求消息, 所述第一用户面事件上报响应消息中包含所述第一用 户面事件, 所述第二用户面事件上报响应消息中包含所述第二用户面事件; 或者, After sending the first user plane event reporting request message and the second user plane event reporting request message to the PCRF entity on the long polling-based long connection, receive the The first user plane event reporting response message and the second user plane event reporting response message sent by the PCRF entity, the first user plane event reporting response message responds to the first two user plane event reporting request messages, and the second user plane event reporting response message responds to the first two user plane event reporting request messages. The user plane event reporting response message responds to the second user plane event reporting request message, the first user plane event reporting response message includes the first user plane event, and the second user plane event reporting response message includes The second user plane event; or,
在所述基于长轮询的长连接上向所述中间网元发送第一用户面事件上报 请求消息和第二用户面事件上报请求消息后, 在所述基于长轮询的长连接上 接收所述中间网元发送的第一用户面事件上报响应消息和第二用户面事件上 报请求消息, 所述第一用户面事件上报响应消息响应所述第一用户面事件上 报请求消息, 所述第二用户面事件上报响应消息响应所述第二用户面事件上 报请求消息,所述第一用户面事件上报响应消息中包含所述第一用户面事件, 所述第二用户面事件上报响应消息中包含所述第二用户面事件。 After sending the first user plane event reporting request message and the second user plane event reporting request message to the intermediate network element on the long polling-based long connection, receive all the user plane event reporting requests on the long polling-based long connection. The first user plane event reporting response message and the second user plane event reporting request message sent by the intermediate network element, the first user plane event reporting response message responds to the first user plane event reporting request message, and the second user plane event reporting request message is The user plane event reporting response message responds to the second user plane event reporting request message, the first user plane event reporting response message contains the first user plane event, and the second user plane event reporting response message contains The second user plane event.
24、 根据权利要求 18-23任一所述的 AF实体, 其特征在于, 所述长连接 建立模块具体用于: 24. The AF entity according to any one of claims 18 to 23, characterized in that the long connection establishment module is specifically used for:
在会话建立完成后, 与所述 PCRF实体建立长连接。 After the session establishment is completed, a long connection is established with the PCRF entity.
25、 一种策略与计费规则功能 PCRF实体, 其特征在于, 包括: 处理器 和存储器, 所述存储器存储执行指令, 当所述 PCRF实体运行时, 所述处理 器与所述存储器之间通信, 所述处理器执行所述执行指令使得所述 PCRF实 体执行如权利要求 1-5任一项所述的方法。 25. A policy and charging rule function PCRF entity, characterized in that it includes: a processor and a memory, the memory stores execution instructions, and when the PCRF entity is running, communication between the processor and the memory , the processor executes the execution instruction to cause the PCRF entity to execute the method according to any one of claims 1-5.
26、 一种应用功能 AF 实体, 其特征在于, 包括: 处理器和存储器, 所 述存储器存储执行指令, 当所述 AF实体运行时, 所述处理器与所述存储器 之间通信, 所述处理器执行所述执行指令使得所述 AF 实体执行如权利要求 6-12任一项所述的方法。 26. An application function AF entity, characterized by including: a processor and a memory, so The memory stores execution instructions. When the AF entity is running, there is communication between the processor and the memory. The processor executes the execution instructions to cause the AF entity to execute any one of claims 6-12. the method described.
PCT/CN2013/075490 2013-05-10 2013-05-10 User plane event processing method, pcrf entity, and af entity WO2014179992A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201380000728.8A CN104303488A (en) 2013-05-10 2013-05-10 User plane event processing method, PCRF entity, and AF entity
PCT/CN2013/075490 WO2014179992A1 (en) 2013-05-10 2013-05-10 User plane event processing method, pcrf entity, and af entity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/075490 WO2014179992A1 (en) 2013-05-10 2013-05-10 User plane event processing method, pcrf entity, and af entity

Publications (1)

Publication Number Publication Date
WO2014179992A1 true WO2014179992A1 (en) 2014-11-13

Family

ID=51866653

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/075490 WO2014179992A1 (en) 2013-05-10 2013-05-10 User plane event processing method, pcrf entity, and af entity

Country Status (2)

Country Link
CN (1) CN104303488A (en)
WO (1) WO2014179992A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893129A (en) * 2016-03-30 2016-08-24 北京小米移动软件有限公司 Processing method and device for application programs in terminal

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107786315B (en) * 2016-08-29 2021-11-12 中兴通讯股份有限公司 Usage quota authorization method and device
CN107800544B (en) * 2016-08-30 2022-09-09 中兴通讯股份有限公司 User position information processing method and device
WO2018076215A1 (en) * 2016-10-26 2018-05-03 华为技术有限公司 Policy control rule transmission method and apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102510574A (en) * 2011-11-01 2012-06-20 北京瑞信在线系统技术有限公司 Method, equipment and system for synchronizing events based on mobile intelligent terminal
CN102868759A (en) * 2012-09-28 2013-01-09 方正国际软件有限公司 System and method for browser interface data refreshing controlled by server
CN102891877A (en) * 2011-07-22 2013-01-23 中兴通讯股份有限公司 Online processing system and method for implementing terminal application

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102769603B (en) * 2011-05-03 2016-06-22 中国移动通信集团公司 The method of a kind of data transmission, system and equipment
CN102769883A (en) * 2011-05-03 2012-11-07 中国移动通信集团公司 Method and equipment for transmitting heartbeat data packet based on always online of TCP (Transmission Control Protocol)
US8949928B2 (en) * 2011-06-22 2015-02-03 Telefonaktiebolaget Lm Ericsson (Publ) Method for personalizing parental control in a PCC architecture

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891877A (en) * 2011-07-22 2013-01-23 中兴通讯股份有限公司 Online processing system and method for implementing terminal application
CN102510574A (en) * 2011-11-01 2012-06-20 北京瑞信在线系统技术有限公司 Method, equipment and system for synchronizing events based on mobile intelligent terminal
CN102868759A (en) * 2012-09-28 2013-01-09 方正国际软件有限公司 System and method for browser interface data refreshing controlled by server

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893129A (en) * 2016-03-30 2016-08-24 北京小米移动软件有限公司 Processing method and device for application programs in terminal

Also Published As

Publication number Publication date
CN104303488A (en) 2015-01-21

Similar Documents

Publication Publication Date Title
US11611949B2 (en) Keeping the UE awake
EP3171542B1 (en) Session management method, application function entity, policy server and protocol converter
EP3266188B1 (en) Network and application management using service layer capabilities
KR101440670B1 (en) A method and a network element for controlling the end-to-end overload based on the diameter application
EP3590243A1 (en) Network service continuity without session continuity
WO2008077299A1 (en) A redirector, a relay and a routing information configuration system and an updating method
WO2012174934A1 (en) Adaptive method and device for heartbeat period
WO2011137839A1 (en) Method, policy server and gateway for determining policies
WO2014048309A1 (en) Method for triggering terminal and relevant device
WO2011147074A1 (en) Method, system and corresponding apparatus for implementing policy and charging control
WO2014101731A1 (en) System and method for opening network capabilities, and related network elements
WO2015103875A1 (en) Session management method, policy server and application function entity
WO2014179992A1 (en) User plane event processing method, pcrf entity, and af entity
WO2012072045A1 (en) Method, network node and system for data transmission in cdn network
WO2008141572A1 (en) Method and system for performing keepalive monitoring on client sessions
WO2009089776A1 (en) Method and apparatus for the policy and charging rule function information maintenance
WO2013152614A1 (en) System and method for network access based on application layer data
JP2016218923A (en) Communication device, communication device control method, program, and communication system
US20160226765A1 (en) Information transmission method and apparatus
WO2013185288A1 (en) Method, system and device for processing data packet
Cisco Commands: debug ppp bap through debug sdllc
US20160381147A1 (en) Information transmission method and apparatus
Nikitinskiy et al. A stateless transport protocol in software defined networks
WO2013071860A1 (en) Policy deciding method and network device
WO2012130064A1 (en) Method and system for transmitting data

Legal Events

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

Ref document number: 13883907

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13883907

Country of ref document: EP

Kind code of ref document: A1