[go: up one dir, main page]

WO2015010576A1 - Session management method, application function entity, policy server and protocol converter - Google Patents

Session management method, application function entity, policy server and protocol converter Download PDF

Info

Publication number
WO2015010576A1
WO2015010576A1 PCT/CN2014/082548 CN2014082548W WO2015010576A1 WO 2015010576 A1 WO2015010576 A1 WO 2015010576A1 CN 2014082548 W CN2014082548 W CN 2014082548W WO 2015010576 A1 WO2015010576 A1 WO 2015010576A1
Authority
WO
WIPO (PCT)
Prior art keywords
entity
request message
session
policy server
http request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2014/082548
Other languages
French (fr)
Chinese (zh)
Inventor
周晓云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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
Priority claimed from PCT/CN2014/075677 external-priority patent/WO2014173252A1/en
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to EP14828651.1A priority Critical patent/EP3171542B1/en
Priority to US15/506,945 priority patent/US10225151B2/en
Publication of WO2015010576A1 publication Critical patent/WO2015010576A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • 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/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0273Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using web services for network management, e.g. simple object access protocol [SOAP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/12Setup of transport tunnels

Definitions

  • Session management method application functional entity, policy server and protocol converter
  • the present invention relates to the field of communications, and in particular, to a session management method, an application function entity, a policy server, and a protocol converter.
  • FIG 1 is the Policy and Charging Control (PCC) defined by the 3rd Generation Partnership Project (3GPP).
  • PCC Policy and Charging Control
  • the Policy and Charging Rules Function is used to formulate QoS and charging policies for network resources.
  • the PCRF formulates the control policy, and needs to combine the service information received from the AF, the user subscription information received from the User Profile Repository (SPR), the policy configured by the operator, and the like.
  • the PCRF sends the control policy for the service to the Policy and Charging Enforcement Function (PCEF) or the Bearer Binding and Event Report Function (BBERF).
  • PCEF Policy and Charging Enforcement Function
  • BBERF Bearer Binding and Event Report Function
  • the PCRF can subscribe to the bearer layer related events to the PCEF and/or BBERF to be aware of the event when the bearer layer occurs, and to change the control strategy.
  • the PCEF and the Traffic Detection Function can perform application detection and control functions based on the PCC rules (PCEF) or ADC rules (TDF) issued by the PCRF.
  • PCC Protocol Converter
  • the Rx interface needs to support two-way communication, that is, the AF provides service information to the PCRF, and the PCRF needs to provide a Traffic Plane Event to the AF in real time.
  • the SOAP or REST protocols are based on the Hypertext Transfer Protocol (HTTP).
  • HTTP is a stateless protocol.
  • the client requests a URL
  • the server responds, sends back the response content, and connects to the port. It cannot implement two-way communication.
  • the following three solutions are proposed in the industry:
  • the browser sends a request. After the server receives the connection, it suspends the connection until it has data to send to the client. After the data is sent, the connection is disconnected. When the client receives the data, it requests the server to take the data again.
  • the downside of this approach is that the connection needs to be maintained, taking up resources from the server and client.
  • the related protocol stipulates that the same client and server can only maintain a maximum of 2 HTTP TCP connections. If more than 2 HTTP TCP connections are maintained, the protocol is inconsistent with the related protocols, resulting in interoperability problems.
  • the related art also proposes that multiple HTTP requests can be encapsulated into one TCP connection (becoming HTTP Pipelining), and Long-Polling is used to implement the server to actively provide data to the client.
  • This scheme requires the client to send a new request after Long-Polling is completed, which will cause a delay.
  • Embodiments of the present invention provide a session management method, an application function entity, a policy server, and a protocol converter, which reduce the use of network resources while realizing two-way communication, and can ensure real-time performance.
  • a session management method including:
  • the AF entity When the application function (AF) entity establishes an AF session with the policy server, the AF entity sends a first hypertext transfer protocol (HTTP) request message to the policy server;
  • HTTP hypertext transfer protocol
  • the AF entity sends the AF session identification information to the policy server by using the first HTTP request message; or the AF entity obtains the response from the response of the first HTTP request message returned by the policy server.
  • the AF entity returns a response to the second HTTP request message to the policy server.
  • the policy server is a Policy and Charging Rules Function (PCRF) entity or a Protocol Translator (PC).
  • the AF entity when the AF entity modifies or terminates the AF session, the AF entity sends a third HTTP request message to the policy server, where the third HTTP request message carries the AF session identifier information;
  • the AF entity receives an answer to the third HTTP request message returned by the policy server.
  • the AF session identification information is a globally unique identifier.
  • the AF session identification information is represented by any combination of the following:
  • the service session identifier and the IP address of the UE are mapped to the service session identifier and the IP address of the UE.
  • Service session identifier IP address of the UE, and IP domain identifier
  • Service session identifier Service session identifier, UE's IP address, and packet data network (PDN) identity
  • service session identity service session identity and user identity.
  • the AF entity supports both an HTTP client and an HTTP server
  • the policy server supports both an HTTP client and an HTTP server.
  • the sending, by the AF entity, the first HTTP request message or the third HTTP request message to the policy server includes:
  • the AF entity When the AF entity and the policy server already have a first Transmission Control Protocol (TCP) connection, the AF entity sends the first HTTP request message to the policy server by using the first TCP connection or Third HTTP request message;
  • TCP Transmission Control Protocol
  • the AF When the AF entity and the policy server do not establish the first TCP connection, the AF first establishes a first TCP connection with the policy server, and then sends the first HTTP request message or the third HTTP request. Message.
  • the AF entity reserves the relationship between the AF entity and the policy server.
  • a session management method including:
  • the policy server receives a first hypertext transfer protocol (HTTP) request message that is sent by the application function (AF) entity and carries the AF session identifier information, and returns a response of the first HTTP request message to the AF entity; or, receives the AF
  • HTTP hypertext transfer protocol
  • the first HTTP request message sent by the entity, the AF session identifier information is allocated to the AF session, and the response of the first HTTP request message carrying the AF session identifier information is returned to the AF entity;
  • the policy server is a Policy and Charging Rules Function (PCRF) entity or a protocol converter (PC).
  • PC Policy and Charging Rules Function
  • the sending, by the policy server, the second HTTP request message to the AF entity includes:
  • the policy server sends the second HTTP request message to the AF entity by using the second TCP connection; the policy server and the When the AF entity does not establish a second TCP connection, the policy server first establishes a second TCP connection with the AF entity, and then sends the second HTTP request message.
  • the method further includes:
  • the policy server After receiving the response of the second HTTP request message sent by the AF entity, the policy server retains the second TCP connection between the policy server and the AF entity; or
  • the policy server After receiving the response of the second HTTP request message sent by the AF entity, the policy server disconnects the second TCP connection between the policy server and the AF entity.
  • the policy server is a PC
  • the method further includes: the PC sending a Diameter Authentication Authorization Request (AAR) message to the PCRF entity, requesting to establish a diameter session.
  • AAR Diameter Authentication Authorization Request
  • the AAR message carries a diameter session identifier, and the PC maintains a correspondence between the AF session identifier information and the diameter session identifier.
  • the method further includes: the policy server receiving a third HTTP request message that is sent by the AF entity to the PC and carrying the AF session identifier information, where the PC sends a Diameter AAR message to the PCRF entity. Or a Diameter Session Termination Request (STR) message, the AAR or STR message carrying the diameter session identifier.
  • the policy server when the policy server is a PC, the policy server sends a second HTTP request message to the AF entity, including:
  • the PCRF entity sends a diameter re-authentication request carrying the diameter session identifier to the PC
  • RAR when terminating a session request (ASR) or a session termination response (STA) message, the PC sends the second HTTP request message carrying the AF session identification information to the AF entity.
  • An AF entity including:
  • a first unit configured to: when the AF entity establishes an AF session with the policy server, send a first hypertext transfer protocol (HTTP) request message to the policy server, and receive a first HTTP request returned by the policy server Response to the message;
  • HTTP hypertext transfer protocol
  • the first unit is configured to: carry the AF session identifier information in the first HTTP request message, or obtain the AF session identifier information from the response of the first HTTP request message returned by the policy server;
  • a second unit configured to: receive a second HTTP request message carrying the AF session identification information, when the policy server notifies the AF entity of the bearer layer event of the AF session, and send the The policy server returns a response to the second HTTP request message.
  • the AF entity further includes:
  • a third unit configured to: when the AF entity modifies or terminates the AF session, sending a third HTTP request message to the policy server, where the third HTTP request message carries the AF session identifier information, And receiving a response of the third HTTP request message returned by the policy server.
  • the first unit is configured to: when the AF entity and the policy server already have a first Transmission Control Protocol (TCP) connection, use the first TCP connection to the policy server Sending the first HTTP request message, when the first TCP connection is not established between the AF and the policy server, first establishing a first TCP connection with the policy server, and then sending the first HTTP request message;
  • TCP Transmission Control Protocol
  • the third unit is configured to: when the AF entity and the policy server already have a first TCP connection, send the third HTTP request message to the policy server by using the first TCP connection, When the first TCP connection is not established between the AF and the policy server, first establishing a first TCP connection with the policy server, and then sending the third HTTP request message.
  • the first unit is further configured to: after receiving the response of the first HTTP request message sent by the policy server, retain the first between the AF entity and the policy server a TCP connection, or disconnecting the first TCP connection between the AF entity and the policy server;
  • the third unit is further configured to: after receiving the response of the third HTTP request message sent by the policy server, retain the first TCP connection between the AF entity and the policy server, or Disconnecting the first TCP connection between the AF entity and the policy server.
  • the second unit is configured to: receive the second HTTP request message by using a second TCP connection between the policy server and the AF entity, and use the second TCP connection Returning a response to the second HTTP request message to the policy server.
  • a policy server including:
  • a first unit configured to: receive, by the application function (AF) entity, a first hypertext transfer protocol (HTTP) request message carrying AF session identification information, and return the first HTTP request message to the AF entity Receiving; or receiving a first HTTP request message sent by the AF entity, assigning AF session identification information to the AF session, and returning, to the AF entity, a response of the first HTTP request message carrying the AF session identification information;
  • AF application function
  • HTTP hypertext transfer protocol
  • a second unit configured to: when notifying the AF entity of the bearer layer event of the AF session, sending a second HTTP request message to the AF entity, where the second HTTP request message carries the AF session Identification information, and receiving a response of the second HTTP request message returned by the AF entity.
  • the first unit is configured to: receive the first HTTP request message by using a first TCP connection between the AF entity and the policy server, and use the first TCP connection to The AF entity returns a response to the first HTTP request message.
  • the second unit is configured to: when the policy server and the AF have a second TCP connection, send the second HTTP request message to the AF by using the second TCP connection. ;
  • the policy server When the policy server does not establish a second TCP connection with the AF, first establish a second TCP connection with the AF, and then send the second HTTP request message.
  • the second unit is configured to: after receiving the response of the second HTTP request message sent by the AF entity, retain the second TCP between the policy server and the AF entity Connecting, or disconnecting the second TCP connection between the policy server and the AF.
  • the policy server is a policy and charging rule function (PCRF) entity or protocol transfer.
  • PC policy and charging rule function
  • PC PC
  • the first unit is configured to: receive, in an application function (AF) session establishment process, a first hypertext transfer protocol (HTTP) request message that carries the AF session identifier information sent by the AF entity, to the policy and charging rule function a (PCRF) entity sends a Diameter Authentication Authorization Request (AAR) message, requesting to establish a diameter session, the AAR message carrying a diameter session identifier, and maintaining a correspondence between the AF session identifier information and the diameter session identifier; or, receiving a first hypertext transfer protocol (HTTP) request message sent by the AF entity, assigning AF session identification information to the AF session, and sending a Diameter Authentication Authorization Request (AAR) message to the Policy and Charging Rules Function (PCRF) entity, requesting to establish a diameter session, the AAR message carrying a diameter session identifier, and maintaining a correspondence between the AF session identifier information and the diameter session identifier;
  • HTTP application function
  • PCRF Policy and Charging Rules Function
  • a second unit configured to: receive, in an AF session modification or termination process, a third HTTP request message that is sent by the AF entity and that carries the AF session identification information, and send, to the PCRF entity, the path session identifier that carries the diameter Diameter AAR or Diameter Session End Request (STR) message;
  • a third unit configured to: receive a diameter re-authentication request (RAR), a termination session request (ASR), or a session termination response (STA) that is sent by the PCRF entity and that carries the diameter session identifier in a bearer layer event reporting process. a message, and sending the second HTTP request message carrying the AF session identification information to the AF.
  • RAR diameter re-authentication request
  • ASR termination session request
  • STA session termination response
  • the embodiment of the present invention further provides a computer program, including program instructions, when the program instruction is executed by an application function entity, so that the application function entity can execute the above method.
  • the embodiment of the invention further provides a computer program, comprising program instructions, when the program instruction is executed by the policy server, so that the policy server can execute the above method.
  • Embodiments of the present invention also provide a carrier carrying any of the above computer programs.
  • FIG. 3 is a flowchart of establishing an AF session according to Embodiment 1 of the present invention.
  • FIG. 5 is a flowchart of an AF session termination according to Embodiment 1 of the present invention.
  • FIG. 7 is a flowchart of an IP-CAN session termination according to Embodiment 1 of the present invention.
  • FIG. 8 is a flowchart of establishing an AF session according to Embodiment 2 of the present invention.
  • FIG. 9 is a flowchart of an AF session modification according to Embodiment 2 of the present invention.
  • FIG. 10 is a flowchart of an AF session termination according to Embodiment 2 of the present invention.
  • FIG. 11 is a flowchart of event reporting according to Embodiment 2 of the present invention.
  • FIG. 12 is a flowchart of IP-CAN session termination according to Embodiment 2 of the present invention.
  • This embodiment provides a session management method, including:
  • the AF entity When the AF entity establishes an AF session with the policy server, the AF entity sends a first HTTP request message to the policy server;
  • the AF entity carries the AF session identification information in the first HTTP request message to notify the policy server, and the policy server returns a response of the first HTTP request message to the AF entity; or, after the policy server receives the first HTTP request message, Assigning AF session identification information to the AF session, and transmitting the AF session identification information to the AF entity in response to the first HTTP request message;
  • the policy server when the policy server notifies the AF entity of the bearer layer event of the above AF session Sending a second HTTP request message to the AF entity, where the second HTTP request message carries the AF session identifier information, and the AF entity returns a response of the second HTTP request message to the policy server.
  • the policy server can be a PCRF entity or a PC.
  • the AF session identification information involved in the above method is a globally unique identifier, or a combination of a service session identifier and other information.
  • the combination of the service session identifier and other information may be represented by any combination of the following: a service session identifier and an IP address of the UE, where the service session identifier is capable of uniquely identifying the IP address of the same UE.
  • a service session identifier an IP address of the UE, and an IP domain identifier
  • the service session identifier is an identifier that can uniquely identify the AF session in the case of an IP address and an IP domain identifier of the same UE
  • An address and a packet data network PDN identifier where the service session identifier is an identifier service session identifier and a user identifier that can uniquely identify the AF session in the case of an IP address and a PDN identifier of the same UE, where the service session identifier
  • the identifier of the AF session is uniquely identified in the case of the same UE's IP address and user identity.
  • the AF entity when the AF entity and the policy server modify or terminate the AF session, the AF entity sends a third HTTP request message to the policy server, where the third HTTP request message carries the AF session identifier information.
  • the Policy Server will return a response to the third HTTP request message.
  • FIG. 3 is a flow chart of session management during the initial provision of session information (ie, during the establishment of the AF session), including the following steps 301 to 303:
  • Step 301 The user equipment UE is attached to the network, initiates an attach procedure, or the UE initiates another PDN connection establishment process, and the UE interacts with the AF entity to perform media negotiation.
  • the AF entity determines business related information.
  • Step 302. The AF entity initiates an AF session establishment process to the PCRF entity to establish an AF session.
  • AF session identification information For AF session identification information and business information.
  • the AF session identification information may be assigned to the AF entity by the PCRF entity at this time by the AF entity or in an interaction before this.
  • the AF entity sends a first HTTP request message to the PCRF, where the first HTTP request message carries the AF session identification information and the service information.
  • the first HTTP request message can also carry an explicit AF session establishment indication.
  • the AF entity's own Uniform Resource Locator (URL) (denoted as URL 1) can also be carried in the message.
  • the AF entity may construct a PCRF URL for addressing the PCRF according to the UE's IP address, user identification (if any), PDN information, and domain identification information.
  • the AF session identifier information may be a globally unique identifier for the AF session, or may be a combination of the service session identifier and other information that uniquely identifies the AF session.
  • the AF session identifier information is a service.
  • service session identifier is an identifier that can uniquely identify the AF session in the case of an IP address and an IP domain identifier of the same UE;
  • the service session identifier is an identifier that can uniquely identify the AF session in the case of an IP address and a PDN identifier of the same UE.
  • a service session identifier is an identifier that can uniquely identify the session of the AF in the case of an IP address and a user identifier of the same UE.
  • Step 303 The PCRF entity saves the service information provided by the AF entity, and the PCRF entity returns a response of the first HTTP request message to the AF entity.
  • the AF entity uses The existing first TCP connection sends a first HTTP request message to the PCRF. If the first TCP connection does not exist, the AF and the PCRF first establish a first TCP connection, and then send the first HTTP request message. After the step 303 is performed, the first TCP connection is not disconnected.
  • step 302 the AF entity establishes a first TCP connection with the PCRF entity, and then sends a first HTTP request message. After performing step 303, the first TCP connection is disconnected.
  • the AF session identification information used to identify the AF session is assigned by the AF entity (if the AF session identification information is an independent global unique identifier, the AF session identification information is allocated by the AF; if the AF session identification information is a service session A combination of identification and other information, then the business session identifier is assigned to the AF).
  • the AF session identification information is an independent globally unique identifier, it can also be assigned by the PCRF entity.
  • the AF sends the first HTTP request message to the PCRF entity to carry only the service information (the service information includes the UE IP address, the IP domain identifier (optional), the user identifier (optional), and the PDN identifier (optional))
  • the PCRF entity allocates a global AF session identifier to the AF session according to the service information, and sends the AF session identifier to the AF entity in the response of the first HTTP request message. If the AF session identification information is a combination of the service session identifier and other information, the service session identifier may also be assigned by the PCRF entity.
  • the AF entity sends the first HTTP request message to the PCRF entity to carry only the service information (the service information includes the UE IP address, the IP domain identifier (optional), the user identifier (optional), and the PDN identifier (optional).
  • the PCRF entity allocates a service session identifier to the AF session according to the service information, and sends other information in the combination of the service session identifier and the AF session identifier information to the AF entity in the response of the first HTTP request message ( That is, AF session identification information).
  • the AF may aggregate multiple pieces of information requesting to establish an AF session in an HTTP request message (for example, carrying service information corresponding to multiple AF sessions and AF session identification information (if AF session identification information is assigned by AF)), and the PCRF entity responds in HTTP
  • the message may also aggregate the response information of the multiple AF sessions that are requested to be established (for example, the AF session identification information allocated by the PCRF entity for each AF session (if the AF session identification information is allocated by the P entity CRF)).
  • Figure 4 shows the session management process during the session information update process (that is, during the AF session modification process).
  • the figure includes the following steps 401 to 403:
  • Step 401 The UE interacts with the AF entity to perform media renegotiation.
  • AF determines business related information.
  • Step 402 The AF entity initiates an AF session modification process to the PCRF entity (ie, modifies the AF session established in FIG. 3) to provide updated service information.
  • the AF entity sends a third HTTP request message to the PCRF entity, carrying the updated media description information and the AF session identification information defined in FIG.
  • the third HTTP request message can also carry an explicit AF session modification indication.
  • Step 403. The PCRF entity determines the previously saved service information according to the AF session identification information, and performs corresponding update.
  • the PCRF entity returns a response to the third HTTP request message to the AF entity.
  • step 402 uses the existing TCP connection (i.e., the first TCP connection) to send a third HTTP request message to the PCRF entity. After performing step 403, the first TCP connection is also not broken.
  • step 402 the AF entity sends a third HTTP request message after establishing a first TCP connection with the PCRF entity. After performing step 403, the first TCP connection is broken.
  • the AF may aggregate multiple information for modifying the AF session in an HTTP request message (for example, carrying service information corresponding to multiple AF sessions and AF session identification information), and the PCRF entity may aggregate multiple requests for modification in the HTTP response message.
  • the response information of the AF session for example, carrying service information corresponding to multiple AF sessions and AF session identification information.
  • Figure 5 is a flow chart of session management during the termination of the AF session, including the following steps 501 to 503: Step 501.
  • the UE interacts with the AF entity to terminate the session.
  • Step 502. The AF entity initiates an AF session termination process to the PCRF entity, and terminates the establishment of FIG.
  • the AF entity sends a third HTTP request message to the PCRF entity, Carrying the session termination indication and the AF session identification information defined in FIG.
  • the third HTTP request message may also carry an explicit AF session termination indication.
  • Step 503. The PCRF entity determines the previously saved service information according to the AF session identification information, and deletes it.
  • the PCRF entity returns a response to the third HTTP request message to the AF entity.
  • step 502 the AF entity sends a third HTTP request message to the PCRF entity using the existing TCP connection (ie, the first TCP connection). After performing step 503, the first TCP connection is also not broken.
  • step 502 the AF entity sends a third HTTP request message after establishing a first TCP connection with the PCRF entity. After performing step 503, the first TCP connection is broken.
  • the AF entity may aggregate information of multiple request termination AF sessions in an HTTP request message (for example, carrying service information corresponding to multiple AF sessions and AF session identification information), and the PCRF entity may also aggregate the request termination in the HTTP response message. Response information for AF sessions.
  • FIG. 6 is a flowchart of session management in a bearer layer event reporting process, including the following steps 601 to
  • Step 601. The PCRF entity perceives a bearer layer event, such as an IP-CAN type change.
  • Step 602 The PCRF entity reports the bearer layer event related to the AF session established in Figure 3 to the AF entity.
  • the PCRF entity sends a second HTTP request message to the AF entity, where the bearer layer event and the AF session identification information defined in Embodiment 1 are carried.
  • the URL used to locate the AF entity in the second HTTP message is the URL1 provided by the AF entity in FIG.
  • Step 603. The AF entity determines an application layer session corresponding to the UE according to the AF session identification information, and learns a bearer layer event corresponding to the application layer session. Thereby performing related processing.
  • the AF entity returns a response to the second HTTP request message to the PCRF entity.
  • step 602 if a TCP connection (ie, a second TCP connection) already exists between the PCRF entity and the AF entity, the PCRF entity sends the second HTTP request to the AF entity by using the existing TCP connection (ie, the second TCP connection).
  • the existing TCP connection ie, the second TCP connection.
  • the PCRF entity sends a second TCP request message after establishing a second TCP connection with the AF entity.
  • the second TCP connection is also not broken.
  • step 602 the PCRF establishes a second TCP connection with the AF and sends a second HTTP request message. After performing step 603, the second TCP connection is broken.
  • the PCRF entity may aggregate event information of multiple AF sessions in an HTTP request message (for example, carrying event information corresponding to multiple AF sessions and AF session identification information), and the AF entity may also aggregate multiple AF session events in the HTTP response message. Evaluated response information.
  • Figure 7 is a flow chart of session management during the IP-CAN session termination process (the PCRF entity notifies the AF entity that the IP-CAN session termination can be considered as a special bearer layer event report), and includes the following steps 701 to 703:
  • Step 701. The PCRF entity perceives the termination of the IP-CAN session.
  • Step 702. The PCRF entity notifies the AF entity of the loss of the transmission resource associated with the AF session established in FIG.
  • the PCRF entity sends a second HTTP request message to the AF entity, carrying the request session termination indication and the AF session identification information defined in FIG.
  • the URL used to address the AF entity in the second HTTP request message is URL1 provided by the AF entity in FIG.
  • Step 703. The AF entity determines an application layer session corresponding to the UE according to the AF session identifier information, and learns that the transmission resource corresponding to the application layer session is lost. Thereby performing related processing.
  • the AF entity returns a response to the second HTTP request message to the PCRF entity.
  • step 702 if the PCRF is real The physical connection with the AF entity already exists (ie, the second TCP connection), and the PCRF entity sends the second HTTP request message to the AF entity by using the existing TCP connection (ie, the second TCP connection), if the PCRF entity and the AF entity If there is no TCP connection, the PCRF entity sends a second HTTP request message after establishing a second TCP connection with the AF entity. After performing step 703, the second TCP connection is also not broken.
  • step 702 the PCRF entity sends a second TCP request message after establishing a second TCP connection with the AF entity. After performing step 703, the second TCP connection is broken.
  • the PCRF can aggregate the transmission resource loss event information of multiple AF sessions in an HTTP request message (for example, carrying event information corresponding to multiple AF sessions and AF session identification information), and the AF entity can also aggregate multiple AFs in the HTTP response message.
  • the response information reported by the session event for example, carrying event information corresponding to multiple AF sessions and AF session identification information.
  • FIG. 8 is a flow chart of session management during the initial provision of session information (ie, during the establishment of the AF session), including the following steps 801 to 805:
  • Step 801. The user equipment UE attaches to the network, initiates an attach procedure, or after the UE initiates another PDN connection establishment process, the UE interacts with the AF to perform media negotiation, and the AF entity determines service related information.
  • Step 802. The AF entity initiates an AF session establishment process to the PC, requesting to establish an AF session, providing
  • the AF session identification information may be assigned by the AF entity at this time or by a PC in an earlier interaction.
  • the AF entity sends a first HTTP request message to the PCRF entity, where the first HTTP request message carries the AF session identification information and the service information.
  • the PC saves the AF session identification information and service information therein.
  • the first HTTP message may also carry an explicit AF session establishment indication.
  • AF's own Uniform Resource Locator (URL) (denoted as URL2) can also be carried in the message.
  • the AF entity may construct a URL of the PC for addressing the PC based on the IP address of the UE, the user identification (if present), the PDN information, and the domain identification information.
  • the AF session identifier information may be a globally unique identifier for separately identifying the AF session, or may be a combination of the service session identifier and other information to uniquely identify the AF session.
  • the AF session identifier information is When a combination of a service session identifier and other information, the AF session identification information may be represented by any combination of the following:
  • service session identifier is an identifier that can uniquely identify the session of the AF in the case of an IP address of the same UE;
  • service session identifier is an identifier that can uniquely identify the AF session in the case of an IP address and an IP domain identifier of the same UE;
  • the service session identifier is an identifier that can uniquely identify the AF session in the case of an IP address and a PDN identifier of the same UE.
  • a service session identifier is an identifier that can uniquely identify the AF session in the case of an IP address and a user identifier of the same UE.
  • Step 803. The PC initiates an AF session establishment procedure to the PCRF entity to request an AF session to provide service information.
  • the AF entity sends a Diameter Authentication and Authorization Request (AAR) message to the PCRF entity, and the AAR message carries the AF session identification information, the Diameter session identifier, and the media information description.
  • the PC saves the correspondence between the Diameter session identifier and the AF session identification information in step 802.
  • the PC may not directly save the AF session identification information, but may save the correspondence between the Diameter session identifier and the AF session identification information in step 802. (For example, the PC can push out the Diameter session identifier according to the AF session identification information according to a fixed algorithm, so that when the PC receives the Diameter session identifier in the future, the corresponding AF session identification information can be pushed out according to the algorithm.).
  • the PC also stores the correspondence between URL2 and the Diameter session ID.
  • Step 804. The PCRF entity saves the service information, and the PCRF entity returns a Diameter AAA message to the PC.
  • Step 805. The PC returns a response of the first HTTP request message to the AF entity entity.
  • the following two schemes can be used:
  • step 802 if the AF entity has a TCP connection with the PC (that is, the first TCP connection), the AF entity sends the first HTTP request message to the PC by using the existing TCP connection, and if there is no TCP connection, the AF entity The first HTTP request message is sent after establishing a TCP connection (ie, the first TCP connection) with the PC. After performing step 805, the first TCP connection is also not broken.
  • step 802 the AF entity sends a first HTTP request message after establishing a first TCP connection with the PC. After performing step 805, the first TCP connection is broken.
  • the AF session identification information used to identify the AF session is assigned by the AF entity.
  • the AF session identification information is an independent global unique identifier
  • the AF session identifier is assigned by the AF; if the AF session identification information is a service When the session identifier and other information are combined, then the service session identifier is assigned to the AF).
  • relevant information can also be assigned by the PC.
  • the AF session identification information is an independent globally unique identifier, then the globally unique identifier can also be assigned by the PC.
  • the AF entity sends the first HTTP request message to the PC to carry only the service information (the service information includes the UE IP address, the IP domain identifier (optional), the user identifier (optional), and the PDN identifier (optional))
  • the PC allocates a global AF session identifier to the AF session according to the service information, and the PC saves the correspondence between the Diameter session identifier and the AF session identifier assigned by the PC.
  • the PC returns an AF session identifier to the AF in response to the first HTTP request message.
  • the AF session identification information is a combination of the service session identifier and other information, the service session identifier can also be assigned by the PC.
  • the AF entity sends the first HTTP request message to the PCRF entity to carry only the service information.
  • the service information includes the UE IP address, the IP domain identifier (optional), the user identifier (optional), and the PDN identifier (optional).
  • the PC allocates a service session identifier to the AF session according to the service information, and the PC saves the correspondence between the Diameter session identifier and the service session identifier and other information combination (ie, AF session identifier information).
  • the PC returns other information (i.e., AF session identification information) in the combination of the service session identifier and the AF session identifier information to the AF entity in response to the first HTTP request message.
  • the AF entity can aggregate multiple requests to establish an AF session information in an HTTP request message.
  • the PC may also aggregate response information of multiple AF sessions requested in the HTTP response message (such as PC).
  • AF session identification information assigned to each AF session if the AF session identification information is assigned by the PC.
  • FIG. 9 is a flow chart of the session management process during the session information update process, that is, during the AF session modification process, and includes the following steps 901 to 905:
  • Step 901. The UE interacts with the AF entity to perform media renegotiation, and the AF entity determines service related information.
  • Step 902. The AF entity initiates an AF session modification process to the PC to modify the AF session established in FIG. 8 to provide AF session identification information and service information.
  • the AF entity sends a third HTTP request message to the PC, where the third HTTP request message carries the AF session identification information and the media information description defined in FIG. Furthermore, the third HTTP request message may also carry an explicit AF session modification indication.
  • the PC determines the previously saved service information based on the AF session identification information and updates it.
  • Step 903. The PC determines a corresponding Diameter session according to the AF session identification information.
  • the PC initiates an AF session modification process to the PCRF to provide service information.
  • the AF sends a Diameter AAR message to the PCRF entity, where the AAR message carries the corresponding Diameter session entity identifier and media information description.
  • Step 904. The PCRF entity saves the service information and updates according to the Diameter session identifier, and the PCRF entity returns a Diameter Authentication 4 (Authentication and Authorization Answer, AAA for short message) message to the PC;
  • Diameter Authentication 4 Authentication and Authorization Answer, AAA for short message
  • Step 905. The PC returns a response of the third HTTP request message to the AF entity.
  • step 902 the AF entity first sends a third HTTP request message after establishing a first TCP connection with the PC. After performing step 905, The first TCP connection is broken.
  • the AF may aggregate multiple information for modifying the AF session in an HTTP request message (for example, carrying service information corresponding to multiple AF sessions and AF session identification information), and the PC may aggregate the multiple AFs requested to be modified in the HTTP response message.
  • the response information of the session for example, carrying service information corresponding to multiple AF sessions and AF session identification information
  • Figure 10 is a flowchart of session management during the termination of the AF session, including the following steps 1001 to 1005:
  • Step 1001. The UE interacts with the AF entity to terminate the session.
  • Step 1002 The AF entity initiates an AF session termination process to the PC to terminate the AF session established in FIG.
  • the AF entity sends a third HTTP request message to the PC, where the third HTTP request message carries the AF session identification information and the session termination indication defined in FIG.
  • Step 1003 The PC determines a corresponding Diameter session according to the AF session identification information.
  • the PC initiates an AF session termination process to the PCRF entity.
  • the AF entity sends a Diameter Session Termination Request (STR) message to the PCRF, and the STR message carries the corresponding Diameter session identifier.
  • STR Diameter Session Termination Request
  • Step 1004. The PCRF entity determines that the service information is saved and deletes according to the Diameter session identifier, and the PCRF entity returns a Session Termination Answer (STA) message to the PC.
  • STA Session Termination Answer
  • Step 1005. The PC deletes the corresponding service information, and the PC returns a response of the third HTTP request message to the AF entity.
  • the AF entity sends a third HTTP request message to the PC using the existing TCP connection (ie, the first TCP connection).
  • step 1002 the AF entity first sends a third HTTP connection message after establishing a first TCP connection with the PC. After performing step 1005, The first TCP connection is broken.
  • the AF may aggregate information of multiple request termination AF sessions in an HTTP request message (for example, carrying service information corresponding to multiple AF sessions and AF session identification information), and the PC may aggregate multiple AFs that are requested to be terminated in the HTTP response message.
  • the response information of the session for example, carrying service information corresponding to multiple AF sessions and AF session identification information
  • Figure 11 is a flow chart of session management during the bearer layer event reporting process, including the following steps 1101 to 1105:
  • Step 1101. The PCRF entity perceives a bearer layer event, such as an IP-CAN type change.
  • Step 1102 The PCRF entity reports the AF session-related bearer layer event established in Figure 8 to the PC. In this step, the PCRF entity sends a Diameter re-authentication request to the AF entity.
  • Step 1103 The PC determines the AF session identification information according to the Diameter session identifier.
  • the PC reports the bearer layer event to the AF.
  • the PC sends a second HTTP request message to the AF entity, where the bearer layer event and the corresponding AF session identifier information are carried.
  • the URL used to address the AF in the second HTTP request message is URL2 provided by AF in FIG.
  • Step 1104 The AF entity determines an application layer session corresponding to the UE according to the AF session identifier information, and learns the bearer layer event corresponding to the application layer session. Thereby performing related processing.
  • the AF returns a response to the second HTTP request message to the PC.
  • Step 1105. The PC returns a Diameter Re-Authentication Answer (RAA) message to the PCRF entity.
  • RAA Diameter Re-Authentication Answer
  • the PC sends an second HTTP request message to the AF by using the existing TCP connection. If there is no TCP connection, the PC first sends a second TCP connection with the AF and then sends the second HTTP connection message. The second HTTP request message. After performing step 1104, the second TCP connection It does not disconnect.
  • step 1103 the PC first sends a second TCP request message after establishing a second TCP connection with the AF entity. After performing step 1104, the second TCP connection is broken.
  • the PC may aggregate event information of multiple AF sessions in an HTTP request message (for example, carrying event information corresponding to multiple AF sessions and AF session identification information), and the AF may also aggregate multiple AF session events in the HTTP response message. Answer the message.
  • Figure 12 is a flowchart of the session management in the IP-CAN termination process (the PCRF entity notifies the AF entity that the IP-CAN session termination can be considered as a special bearer layer event report), and includes the following steps 1201 to 1205:
  • Step 1201. The PCRF entity perceives the termination of the IP-CAN session.
  • Step 1202 The PCRF entity sends a Diameter Termination Session Request (ASR) message to the PC, where the Diameter session identifier is carried;
  • ASR Diameter Termination Session Request
  • Step 1203. The PC returns a Diameter termination session response to the PCRF entity (Abort Session
  • ASA Answer, referred to as ASA
  • Step 1204. The PC sends a Diameter STR message to the PCRF entity, carrying the Diameter session identifier.
  • Step 1205. The PCRF entity returns a Diameter STA message to the PC.
  • Step 1206 The PC determines corresponding AF session identification information according to the Diameter session message.
  • the PC notifies the AF entity that the transmission resources associated with the AF session established in Figure 8 are lost. This step can be triggered by step 1202 or step 1205.
  • the PC sends a second HTTP request message to the AF entity, where the request carries the session termination indication and the corresponding AF session identification information.
  • the URL for addressing AF in the second HTTP message is URL1 provided by AF in FIG.
  • Step 1207 The AF entity determines an application layer session corresponding to the UE according to the AF session identifier information, and learns that the transmission resource corresponding to the application layer session is lost. Thereby performing related processing.
  • the AF entity returns a response to the second HTTP request message to the PC.
  • the following two schemes can be used:
  • step 1106 if the PC and the AF entity already have a TCP connection (ie, a second TCP connection), the PC sends an second HTTP request message to the AF entity by using the existing TCP connection. If there is no TCP connection, the PC first Sending a second HTTP request message after establishing a second TCP connection with the AF. After performing step 1107, the second TCP connection is also not broken.
  • a TCP connection ie, a second TCP connection
  • step 1106 the PC first sends a second TCP connection message after establishing a second TCP connection with the AF. After performing step 1107, the second TCP connection is broken.
  • the PC may aggregate the transmission resource loss event information of multiple AF sessions in an HTTP request message (for example, carrying event information corresponding to multiple AF sessions and AF session identification information), and the AF may also aggregate multiple AF sessions in the HTTP response message. The response information reported by the event.
  • step 302 the content of the first HTTP request message sent by the AF entity to the PCRF entity and the PC respectively is described in the XML language as follows (Example 1):
  • IP-Domain-ID ... "> ⁇ IP-Domain-Id>
  • Max-equested-Bandwidth-UL ... "> ⁇ Max- eqeusted-Bandwidth>
  • Max-equested-Bandwidth-DL ... "> ⁇ Max- equested-Bandwidth-DL>
  • AF-Application-Identifier ... "> ⁇ /AF-Application-Identifier>
  • Media-Type ... "> ⁇ Media-Type>
  • Max-equested-Bandwidth-UL ... "> ⁇ Max- eqeusted-Bandwidth-UL>
  • Max-equested-Bandwidth-DL ... "> ⁇ Max- equested-Bandwidth-DL>
  • Min-Requested-Bandwidth-UL ... "> ⁇ Min-Reqeusted-Bandwidth-UL>
  • Min-Requested-Bandwidth-DL ... "> ⁇ Min-Requested-Bandwidth-DL>
  • step 302 and in step 802 the contents of the first HTTP request message sent by the AF entity to the PCRF entity and the PC, respectively, are described in the JSON language as follows (Example 2):
  • the Framed-IP-Address and the Framed-IPv6-Prefix are respectively used to carry the IPv4 address and IPv6 address of the UE. (The UE only uses one address to access the service at the same time, so the two AVPs are not carried at the same time).
  • Service-Session-Id is used to carry the service session identifier.
  • the IP-Domain-Id is used to carry the IP domain identifier, and the Called-Station-Id is used to carry the PDN identifier.
  • the Subscription-Id is used to carry the user ID.
  • step 402 and in step 902 the contents of the third HTTP request message sent by the AF entity to the PCRF entity and the PC respectively are described in XML language as follows, similar to Example 1, and the JSON language description is similar to Example 2 as follows. If the Service-Session-Id of step 302 or step 802 is a globally unique identifier (ie, an AF session identifier), then Framed-IP-Address, Framed-IPv6-Prefix, Called-Station-Id, Subscription-Id, IP-Domain- Parameters such as Id are not carried; if step 302 or If the Service-Session-Id of step 802 is not a globally unique identifier, the same parameters as in step 302 and step 802 are carried to uniquely identify the AF session.
  • a globally unique identifier ie, an AF session identifier
  • step 502 and in step 1002 the contents of the third HTTP request message sent by the AF entity to the PCRF entity and the PC, respectively, are described in XML language as follows (Example 3):
  • Service-Session-ID " ... "> ⁇ /Service-Session-Id>
  • IP-Domain-ID " ⁇ "> ⁇ IP-Domain-Id>
  • step 502 and in step 1002 the contents of the third HTTP request message sent by the AF entity to the PCRF entity and the PC respectively are described in the JSON language as follows (Example 4)
  • Service-Session-Id of step 302 or step 802 is a globally unique identifier (ie, an AF session identifier), then Framed-IP-Address, Framed-IPv6-Prefix, Called-Station-Id, Subscription-Id, IP-Domain- The parameters such as Id are not carried; if the Service-Session-Id of step 302 or step 802 is not a globally unique identifier, the same parameters as in step 302 and step 802 are carried to uniquely identify the AF session.
  • a globally unique identifier ie, an AF session identifier
  • IP-Domain-ID ... "> ⁇ IP-Domain-Id>
  • Access-Network-Charging-Identifier "> ⁇ / Access-Network-Charging-Identifier >
  • IP-CAN-Type ... "> ⁇ IP-CAN-Type>
  • step 602 and in step 1103, the contents of the second HTTP request message sent by the PCRF entity to the AF entity and the PC to the AF entity are described in the JSON language as follows (Example 6):
  • IP-CAN-Type "Valuel4"
  • Service-Session-Id of step 302 or step 802 is a globally unique identifier (ie, an AF session identifier), then Framed-IP-Address, Framed-IPv6-Prefix, Called-Station-Id, Subscription-Id, IP-Domain- The parameters such as Id are not carried; if the Service-Session-Id of step 302 or step 802 is not a globally unique identifier, the same parameters as in step 302 and step 802 are carried to uniquely identify the AF session.
  • a globally unique identifier ie, an AF session identifier
  • step 702 and in step 1103, the contents of the second HTTP request message sent by the PCRF entity to the AF entity and the PC to the AF entity are described in the XML language as follows (Example 7):
  • IP-Domain-ID ... "> ⁇ IP-Domain-Id>
  • step 702 and in step 1103, the contents of the second HTTP request message sent by the PCRF entity to the AF entity and the PC to the AF entity are described in the JSON language as follows (Example 8):
  • Service-Session-Id of step 302 or step 802 is a globally unique identifier (ie, an AF session) ID), Framed-IP-Address, Framed-IPv6-Prefix, Called-Station-Id, Subscription-Id, IP-Domain-Id, etc. are not carried; if the Service-Session-Id of step 302 or step 802 is not global The unique identifier then carries the same parameters as in steps 302 and 802 to uniquely identify the AF session.
  • a globally unique identifier ie, an AF session ID
  • the embodiment provides an application function (AF) entity, which supports both an HTTP client and an HTTP server, and can implement various functions of the AF in the above embodiment 1.
  • the AF entity includes at least the following units.
  • the first unit is configured to: when the AF entity establishes an AF session with the policy server, send a first HTTP request message to the policy server, and receive a response of the first HTTP request message returned by the policy server;
  • the first unit carries the AF session identifier information in the first HTTP request message; or obtains the AF session identifier information from the response of the first HTTP request message returned by the policy server;
  • the second unit is configured to: when receiving the bearer layer event of the AF session, the policy server sends the second HTTP request message carrying the AF session identifier information to the policy server Returning a response to the second HTTP request message.
  • the AF entity may further include: a third unit, where the unit sends a third HTTP request message to the policy server when the AF and the policy server modify or terminate the AF session, where The third HTTP request message carries the AF session identification information, and receives a response of the third HTTP request message returned by the policy server.
  • the HTTP persistent connection mechanism may or may not be used.
  • the first unit when the AF entity and the policy server already have a TCP connection (ie, the first TCP connection), the first HTTP request message is sent by using the first TCP connection, and the first AF request message is not between the AF and the policy server.
  • the first unit When a TCP connection is established, the first unit first establishes a first TCP connection with the policy server, and then sends a first HTTP request message.
  • the first TCP connection message is sent by using the first TCP connection, and when the AF connection is not established between the AF and the policy server, the third unit first establishes a first TCP connection with the policy server, and then sends The third HTTP request message.
  • the first unit is configured to: after receiving the response of the first HTTP request message sent by the policy server, the first TCP connection between the AF and the policy server may be disconnected. Similarly, after receiving the response of the third HTTP request message sent by the policy server, the third unit may also reserve or disconnect the first TCP connection between the AF and the policy server. It should be noted that the foregoing second unit is configured to: when receiving the second HTTP request message sent by the policy server, receive the second TCP connection between the policy server and the AF entity, correspondingly, The second unit also responds with a second TCP connection returning a second HTTP request message to the policy server.
  • Embodiment 3 provides a policy server that supports both an HTTP client and an HTTP server, and implements various functions of the policy server in Embodiment 1 above, and includes at least a first unit and a second unit.
  • the first unit is configured to: receive a first HTTP request message that is sent by the AF entity and that carries the AF session identification information, and return a response of the first HTTP request message to the AF entity; or receive the first HTTP request message sent by the AF entity. And assigning AF session identification information to the AF session, and returning, to the AF entity, a response of the first HTTP request message carrying the AF session identification information.
  • the first unit is configured to: when receiving the first HTTP request message, receive the first TCP connection between the AF entity and the policy server, and correspondingly, use the first TCP connection. Returning the response of the first HTTP request message to the AF entity.
  • the second unit is configured to: when notifying the AF entity of the bearer layer event of the AF session, send a second HTTP request message to the AF entity, where the second HTTP request message carries the AF session identifier information, and receives the AF entity return The response of the second HTTP request message.
  • the second unit sends the second HTTP request message when the second TCP connection exists between the policy server and the AF, the second HTTP connection message is sent to the AF by using the second TCP connection, and the policy is When the second TCP connection is not established between the server and the AF, the second TCP connection is established with the AF, and the second HTTP request message is sent.
  • the foregoing second unit may reserve or disconnect the second TCP connection between the policy server and the AF entity.
  • the foregoing policy server may be a PCRF entity or a PC.
  • the session management process between the PCRF entity or the PC and the AF entity refer to the corresponding content in the foregoing Embodiment 1, and details are not described herein again.
  • the embodiment provides a protocol converter, which can be used as the policy server in the foregoing embodiment 1 for session management.
  • the protocol converter includes at least the following units:
  • the first unit is configured to: during the establishment of the AF session, the receiving AF entity sends the carried
  • the first HTTP request message of the AF session identification information is sent to the PCRF entity to send a Diameter Authentication 4 Authorization Request (AAR) message carrying a Diameter session identifier to request to establish a diameter session, and maintain the AF session identification information and the Diameter session identifier.
  • AAR Diameter Authentication 4 Authorization Request
  • the first HTTP request message sent by the AF entity the AF session identification information is allocated to the AF session, and the Diameter authentication authorization request carrying the Diameter session identifier is sent to the PCRF entity.
  • AAR Diameter Authentication 4 Authorization Request
  • the second unit is configured to: receive a third HTTP request message that is sent by the AF entity and that carries the AF session identifier information, and send a Diameter AAR or Diameter STR message carrying the Diameter session identifier to the PCRF entity during the AF session modification or termination process. ;
  • the third unit is configured to: receive a Diameter RAR, ASR or STA message that is sent by the PCRF entity and carry the Diameter session identifier, and send a second HTTP request carrying the AF session identifier information to the AF, in the bearer layer event reporting process. Message.
  • the embodiment of the present invention further provides a computer program, including program instructions, when the program instruction is executed by an application function entity, so that the application function entity can execute the above method.
  • the embodiment of the invention further provides a computer program, comprising program instructions, when the program instruction is executed by the policy server, so that the policy server can execute the above method.
  • Embodiments of the present invention also provide a carrier carrying any of the above computer programs.
  • the above embodiment solves the problem that the AF entity and the PCRF entity or the PC can perform bidirectional information transmission based on HTTP real time.
  • the embodiment of the invention solves the problem that the AF entity and the PCRF entity or the PC can perform two-way information transmission based on HTTP real-time.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

Disclosed are a session management method, an application function entity, a policy server and a protocol converter, which relate to the field of communications. The method comprises: when an AF entity is establishing an AF session with a policy server, the AF entity sending a first HTTP request message to the policy server, wherein AF session identification information is sent to the policy server by the AF entity through the first HTTP request message, or the AF session identification information is allocated by the policy server and is sent to the AF entity through a response of the first HTTP request message; when the policy server notifies the AF entity of a bearing layer event of the above-mentioned AF session, the policy server sending a second HTTP request message which carries the AF session identification information to the AF entity; and the AF entity returning a response of the second HTTP request message to the policy server.

Description

会话管理方法、 应用功能实体、 策略服务器和协议转换器 技术领域  Session management method, application functional entity, policy server and protocol converter

本发明涉及通信领域, 具体的, 涉及一种会话管理方法、应用功能实体、 策略服务器和协议转换器。  The present invention relates to the field of communications, and in particular, to a session management method, an application function entity, a policy server, and a protocol converter.

背景技术 Background technique

图 1是第三代合作伙伴计划 ( 3rd Generation Partnership Project, 简称为 3GPP ) 定义的策略和计费控制架构 (Policy and Charging Control, 简称为 PCC ) 。  Figure 1 is the Policy and Charging Control (PCC) defined by the 3rd Generation Partnership Project (3GPP).

策略和计费规则功能 (Policy and Charging Rules Function, 简称为 PCRF ) 为业务使用网络资源进行 QoS和计费策略的制订。 PCRF制定所述控制策略 需要结合从 AF接收的业务信息, 从用户签约数据库 (Subscription Profile Repository, 简称为 SPR )接收的用户签约信息, 运营商配置的策略等。 PCRF 将为业务制定的控制策略下发给策略和计费执行功能 (Policy and Charging Enforcement Function, 简称为 PCEF )或者承载绑定和事件上报功能(Bearer Binding and Event Report Function , 简称为 BBERF )执行。 同时 PCRF可以向 PCEF和 /或 BBERF订阅承载层相关事件,以便当承载层发生所述事件时及时 感知, 并更改控制策略。 此外, PCEF 以及业务检测功能(Traffic Detection Function, 简称 TDF ) 能够根据 PCRF下发的 PCC规则 ( PCEF )或 ADC规 则 ( TDF )执行应用检测和控制功能。  The Policy and Charging Rules Function (PCRF) is used to formulate QoS and charging policies for network resources. The PCRF formulates the control policy, and needs to combine the service information received from the AF, the user subscription information received from the User Profile Repository (SPR), the policy configured by the operator, and the like. The PCRF sends the control policy for the service to the Policy and Charging Enforcement Function (PCEF) or the Bearer Binding and Event Report Function (BBERF). At the same time, the PCRF can subscribe to the bearer layer related events to the PCEF and/or BBERF to be aware of the event when the bearer layer occurs, and to change the control strategy. In addition, the PCEF and the Traffic Detection Function (TDF) can perform application detection and control functions based on the PCC rules (PCEF) or ADC rules (TDF) issued by the PCRF.

随着移动互联网的发展,运营商需要与第三方数据应用提供商进行互通, 为第三方数据应用提供商提供的业务进行 QoS保障。 由于目前 PCC支持的 Rx接口釆用的 Diameter协议, 而对于大多数第三方数据应用提供商来说,他 们更擅长基于 SOAP、 REST协议的开发。 目前业界研究 PCC架构支持基于 SOAP/REST协议的 Rx接口。 提出了两种方案, 一种是 PCRF支持 SOAP或 REST协议,另一种是在 PCRF和 AF直接设置一个称为协议转换器( Protocol Converter, 简称 PC ) 的网元, 用于将 SOAP或 REST协议转换成 Diameter。 目前 SOAP协议支持 XML语言,而 REST协议支持 XML和 JSON两种语言。 Rx接口需要支持双向通信, 即 AF向 PCRF提供业务信息, PCRF需要 向 AF实时的提供承载层事件( Traffic Plane Event ) 。 然而, SOAP或 REST 协议都是基于超文本传输协议(Hypertext transfer protocol, 简称 HTTP ) 。 With the development of the mobile Internet, operators need to communicate with third-party data application providers to provide QoS for services provided by third-party data application providers. Due to the Diameter protocol currently used by the RX interface supported by PCC, for most third-party data application providers, they are better at developing based on SOAP and REST protocols. Currently, the industry research PCC architecture supports the Rx interface based on the SOAP/REST protocol. Two schemes are proposed, one is that PCRF supports SOAP or REST protocol, and the other is to directly set up a network element called Protocol Converter (PC) in PCRF and AF for SOAP or REST protocol. Convert to Diameter. Currently the SOAP protocol supports the XML language, while the REST protocol supports both XML and JSON languages. The Rx interface needs to support two-way communication, that is, the AF provides service information to the PCRF, and the PCRF needs to provide a Traffic Plane Event to the AF in real time. However, the SOAP or REST protocols are based on the Hypertext Transfer Protocol (HTTP).

HTTP是无状态的协议, 客户端请求一个 URL, 服务器端响应, 发回响应内 容,连接端口,无法实现双向通信。为了实现服务器向客户端主动 Push信息, 目前业界提出了如下 3中方案: HTTP is a stateless protocol. The client requests a URL, the server responds, sends back the response content, and connects to the port. It cannot implement two-way communication. In order to realize the active push information of the server to the client, the following three solutions are proposed in the industry:

1. Polling: 浏览器不停的发出请求获得最新数据, 模拟成 push。 这种方 案的确定是延迟大, 信令开销大。  1. Polling: The browser keeps requesting to get the latest data, which is simulated as push. The determination of this scheme is that the delay is large and the signaling overhead is large.

2. Streaming: 服务器接收到客户端的 HTTP请求并返回确认消息后, 服 务器和客户端的连接不断开, 通过该连接服务器端可以持续向客户端发送数 据。 这种方案的缺点是连接需要保持, 占用了服务器和客户端的资源。 其代 理支持不好, 因为代理可能会緩存数据。  2. Streaming: After the server receives the HTTP request from the client and returns the confirmation message, the connection between the server and the client is not disconnected. Through the connection server, the server can continuously send data to the client. The downside of this approach is that the connection needs to be maintained, taking up resources on the server and client. Its proxy support is not good because the proxy may cache data.

3. Long-Polling: 浏览器发请求, 服务器接到后挂起连接, 直到有数据要 发送到客户端, 发完数据后断开连接; 客户端接收到数据, 又再一次请求服 务器拿数据。 这种方案的缺点是连接需要保持, 占用了服务器和客户端的资 源。  3. Long-Polling: The browser sends a request. After the server receives the connection, it suspends the connection until it has data to send to the client. After the data is sent, the connection is disconnected. When the client receives the data, it requests the server to take the data again. The downside of this approach is that the connection needs to be maintained, taking up resources from the server and client.

考虑到 PCC的特殊应用, 第三方数据应用需要向大量的用户提供服务, 因此若釆用 Streaming或 Long-Polling的方案,第三方数据应用服务器和 PCRF 或 PC之间要保持大量的传输控制协议( Transmission Control Protocol, 简称 TCP )连接。  Considering the special application of PCC, third-party data applications need to provide services to a large number of users. Therefore, if Streaming or Long-Polling is adopted, a large number of transmission control protocols should be maintained between the third-party data application server and the PCRF or PC ( Transmission Control Protocol (TCP) connection.

此外, 相关协议中也规定, 同一个客户端和服务器之前最多只能维持 2 个 HTTP的 TCP连接, 若维持多余 2个 HTTP的 TCP连接, 与相关协议不一 致, 导致互通性问题。  In addition, the related protocol also stipulates that the same client and server can only maintain a maximum of 2 HTTP TCP connections. If more than 2 HTTP TCP connections are maintained, the protocol is inconsistent with the related protocols, resulting in interoperability problems.

相关技术也提出, 可以将多个 HTTP请求封装到一个 TCP连接里(成为 HTTP Pipelining ) , 并釆用 Long-Polling的方式实现服务器主动向客户端提供 数据。 但是这种方案要求客户端必须要在 Long-Polling完成后, 才能发送新 的请求, 这样会导致延迟。 发明内容 The related art also proposes that multiple HTTP requests can be encapsulated into one TCP connection (becoming HTTP Pipelining), and Long-Polling is used to implement the server to actively provide data to the client. However, this scheme requires the client to send a new request after Long-Polling is completed, which will cause a delay. Summary of the invention

本发明实施例提供一种会话管理方法、 应用功能实体、 策略服务器和协 议转换器, 在实现双向通信的同时, 减少网络资源的使用, 并且能够保证实 时性。 一种会话管理方法, 包括:  Embodiments of the present invention provide a session management method, an application function entity, a policy server, and a protocol converter, which reduce the use of network resources while realizing two-way communication, and can ensure real-time performance. A session management method, including:

当应用功能(AF ) 实体与策略服务器建立 AF会话时, 所述 AF实体向 所述策略服务器发送第一超文本传输协议(HTTP )请求消息;  When the application function (AF) entity establishes an AF session with the policy server, the AF entity sends a first hypertext transfer protocol (HTTP) request message to the policy server;

其中,所述 AF实体通过所述第一 HTTP请求消息将 AF会话标识信息发 送给所述策略服务器;或者,所述 AF实体从所述策略服务器返回的第一 HTTP 请求消息的应答中获取所述策略服务器为所述 AF会话分配的 AF会话标识信 息;  The AF entity sends the AF session identification information to the policy server by using the first HTTP request message; or the AF entity obtains the response from the response of the first HTTP request message returned by the policy server. The AF session identification information allocated by the policy server for the AF session;

所述 AF实体接收所述策略服务器向所述 AF实体通知所述 AF会话的承 载层事件时, 向所述 AF实体发送的第二 HTTP请求消息, 所述第二 HTTP 请求消息中携带所述 AF会话标识信息;  Receiving, by the AF entity, a second HTTP request message sent to the AF entity when the policy server notifies the AF entity of the bearer layer event of the AF session, where the second HTTP request message carries the AF Session identification information;

所述 AF实体向所述策略服务器返回所述第二 HTTP请求消息的应答。 较佳的, 所述策略服务器为策略和计费规则功能(PCRF )实体或协议转 换器 ( PC ) 。  The AF entity returns a response to the second HTTP request message to the policy server. Preferably, the policy server is a Policy and Charging Rules Function (PCRF) entity or a Protocol Translator (PC).

较佳的, 当所述 AF 实体修改或终结所述 AF会话时, 所述 AF实体向所 述策略服务器发送第三 HTTP请求消息, 所述第三 HTTP请求消息中携带所 述 AF会话标识信息;  Preferably, when the AF entity modifies or terminates the AF session, the AF entity sends a third HTTP request message to the policy server, where the third HTTP request message carries the AF session identifier information;

所述 AF实体接收所述策略服务器返回的所述第三 HTTP请求消息的应 答。  The AF entity receives an answer to the third HTTP request message returned by the policy server.

较佳的, 所述 AF会话标识信息为一个全局唯一标识。  Preferably, the AF session identification information is a globally unique identifier.

较佳的, 所述 AF会话标识信息釆用如下任一种组合表示:  Preferably, the AF session identification information is represented by any combination of the following:

业务会话标识和 UE的 IP地址;  The service session identifier and the IP address of the UE;

业务会话标识、 UE的 IP地址和 IP域标识; 业务会话标识、 UE的 IP地址和分组数据网络 ( PDN )标识; 业务会话标识和用户标识。 较佳的,所述 AF实体同时支持 HTTP客户端和 HTTP服务器,并且所述 策略服务器同时支持 HTTP客户端和 HTTP服务器。 较佳的,所述 AF实体向所述策略服务器发送所述第一 HTTP请求消息或 所述第三 HTTP请求消息, 包括: Service session identifier, IP address of the UE, and IP domain identifier; Service session identifier, UE's IP address, and packet data network (PDN) identity; service session identity and user identity. Preferably, the AF entity supports both an HTTP client and an HTTP server, and the policy server supports both an HTTP client and an HTTP server. Preferably, the sending, by the AF entity, the first HTTP request message or the third HTTP request message to the policy server includes:

所述 AF实体与所述策略服务器已存在第一传输控制协议( TCP )连接时, 所述 AF实体釆用所述第一 TCP连接向所述策略服务器发送所述第一 HTTP 请求消息或所述第三 HTTP请求消息;  When the AF entity and the policy server already have a first Transmission Control Protocol (TCP) connection, the AF entity sends the first HTTP request message to the policy server by using the first TCP connection or Third HTTP request message;

所述 AF实体与所述策略服务器未建立所述第一 TCP连接时, 所述 AF 先与所述策略服务器建立第一 TCP连接, 再发送所述第一 HTTP请求消息或 所述第三 HTTP请求消息。  When the AF entity and the policy server do not establish the first TCP connection, the AF first establishes a first TCP connection with the policy server, and then sends the first HTTP request message or the third HTTP request. Message.

较佳的,所述 AF实体接收到所述策略服务器发送的所述第一 HTTP请求 消息或所述第三 HTTP请求消息的应答后,保留所述 AF实体与所述策略服务 器之间的所述第一 TCP连接; 或者  Preferably, after the AF entity receives the response of the first HTTP request message or the third HTTP request message sent by the policy server, the AF entity reserves the relationship between the AF entity and the policy server. First TCP connection; or

所述 AF实体接收到所述策略服务器发送的所述第一 HTTP请求消息或 所述第三 HTTP请求消息的应答后,断开所述 AF实体与所述策略服务器之间 的所述第一 TCP连接。 一种会话管理方法, 包括:  After receiving the response of the first HTTP request message or the third HTTP request message sent by the policy server, the AF entity disconnects the first TCP between the AF entity and the policy server. connection. A session management method, including:

策略服务器接收应用功能 ( AF ) 实体发送的携带有 AF会话标识信息的 第一超文本传输协议( HTTP )请求消息, 向所述 AF实体返回所述第一 HTTP 请求消息的应答; 或者, 接收 AF实体发送的第一 HTTP请求消息, 为 AF会 话分配 AF会话标识信息, 并向所述 AF实体返回携带所述 AF会话标识信息 的所述第一 HTTP请求消息的应答;  The policy server receives a first hypertext transfer protocol (HTTP) request message that is sent by the application function (AF) entity and carries the AF session identifier information, and returns a response of the first HTTP request message to the AF entity; or, receives the AF The first HTTP request message sent by the entity, the AF session identifier information is allocated to the AF session, and the response of the first HTTP request message carrying the AF session identifier information is returned to the AF entity;

在向所述 AF实体通知所述 AF会话的承载层事件时, 向所述 AF实体发 送第二 HTTP请求消息,所述第二 HTTP请求消息中携带所述 AF会话标识信 息, 以及接收所述 AF实体返回的所述第二 HTTP请求消息的应答。 较佳的, 所述策略服务器为策略和计费规则功能(PCRF )实体或协议转 换器 ( PC ) 。 较佳的,所述策略服务器向所述 AF实体发送所述第二 HTTP请求消息包 括: Sending a second HTTP request message to the AF entity, the second HTTP request message carrying the AF session identification information, and receiving the AF, when notifying the AF entity of the bearer layer event of the AF session The response of the second HTTP request message returned by the entity. Preferably, the policy server is a Policy and Charging Rules Function (PCRF) entity or a protocol converter (PC). Preferably, the sending, by the policy server, the second HTTP request message to the AF entity includes:

所述策略服务器与所述 AF实体已存在第二 TCP连接时, 所述策略服务 器釆用所述第二 TCP连接向所述 AF实体发送所述第二 HTTP请求消息; 所述策略服务器与所述 AF实体未建立第二 TCP连接时, 所述策略服务 器先与所述 AF实体建立第二 TCP连接, 再发送所述第二 HTTP请求消息。 较佳的, 该方法还包括:  When the policy server and the AF entity have a second TCP connection, the policy server sends the second HTTP request message to the AF entity by using the second TCP connection; the policy server and the When the AF entity does not establish a second TCP connection, the policy server first establishes a second TCP connection with the AF entity, and then sends the second HTTP request message. Preferably, the method further includes:

所述策略服务器接收到所述 AF实体发送的所述第二 HTTP请求消息的 应答后, 保留所述策略服务器与所述 AF实体之间的所述第二 TCP连接; 或 者  After receiving the response of the second HTTP request message sent by the AF entity, the policy server retains the second TCP connection between the policy server and the AF entity; or

所述策略服务器接收到所述 AF实体发送的所述第二 HTTP请求消息的 应答后, 断开所述策略服务器与所述 AF实体之间的所述第二 TCP连接。 较佳的, 所述策略服务器为 PC, 所述策略服务器接收所述第一 HTTP请 求消息后, 该方法还包括: 所述 PC 向 PCRF 实体发送直径认证授权请求 ( AAR )消息, 请求建立直径会话, 所述 AAR消息中携带直径会话标识, 且 所述 PC保持所述 AF会话标识信息与所述直径会话标识的对应关系。 较佳的, 上述方法还包括: 所述策略服务器接收所述 AF实体向所述 PC 发送的携带所述 AF会话标识信息的第三 HTTP请求消息, 所述 PC向所述 PCRF实体发送直径 AAR消息或 直径会话终结请求( STR )消息,所述 AAR 或 STR消息中携带所述直径 会话标识。 较佳的, 所述策略服务器为 PC时, 所述策略服务器向所述 AF实体发送 第二 HTTP请求消息, 包括:  After receiving the response of the second HTTP request message sent by the AF entity, the policy server disconnects the second TCP connection between the policy server and the AF entity. Preferably, the policy server is a PC, and after the policy server receives the first HTTP request message, the method further includes: the PC sending a Diameter Authentication Authorization Request (AAR) message to the PCRF entity, requesting to establish a diameter session. The AAR message carries a diameter session identifier, and the PC maintains a correspondence between the AF session identifier information and the diameter session identifier. Preferably, the method further includes: the policy server receiving a third HTTP request message that is sent by the AF entity to the PC and carrying the AF session identifier information, where the PC sends a Diameter AAR message to the PCRF entity. Or a Diameter Session Termination Request (STR) message, the AAR or STR message carrying the diameter session identifier. Preferably, when the policy server is a PC, the policy server sends a second HTTP request message to the AF entity, including:

PCRF 实体向所述 PC 发送携带所述直径会话标识的直径重认证请求 The PCRF entity sends a diameter re-authentication request carrying the diameter session identifier to the PC

( RAR ) , 终止会话请求(ASR )或会话终结应答 (STA)消息时, 所述 PC向 所述 AF实体发送携带有所述 AF会话标识信息的所述第二 HTTP请求消息。 一种 AF实体, 包括: (RAR), when terminating a session request (ASR) or a session termination response (STA) message, the PC sends the second HTTP request message carrying the AF session identification information to the AF entity. An AF entity, including:

第一单元, 其设置为: 在所述 AF实体与策略服务器建立 AF会话时, 向 所述策略服务器发送第一超文本传输协议(HTTP )请求消息以及接收所述策 略服务器返回的第一 HTTP请求消息的应答;  a first unit, configured to: when the AF entity establishes an AF session with the policy server, send a first hypertext transfer protocol (HTTP) request message to the policy server, and receive a first HTTP request returned by the policy server Response to the message;

其中, 所述第一单元是设置为: 在所述第一 HTTP请求消息中携带 AF 会话标识信息, 或者从所述策略服务器返回的第一 HTTP请求消息的应答中 获取 AF会话标识信息;  The first unit is configured to: carry the AF session identifier information in the first HTTP request message, or obtain the AF session identifier information from the response of the first HTTP request message returned by the policy server;

第二单元, 其设置为: 接收所述策略服务器向所述 AF实体通知所述 AF 会话的承载层事件时,发送的携带有所述 AF会话标识信息的第二 HTTP请求 消息, 并向所述策略服务器返回所述第二 HTTP请求消息的应答。 较佳的, 所述 AF实体还包括:  a second unit, configured to: receive a second HTTP request message carrying the AF session identification information, when the policy server notifies the AF entity of the bearer layer event of the AF session, and send the The policy server returns a response to the second HTTP request message. Preferably, the AF entity further includes:

第三单元, 其设置为: 在所述 AF实体修改或终结所述 AF会话时, 向所 述策略服务器发送第三 HTTP请求消息, 所述第三 HTTP请求消息中携带所 述 AF会话标识信息,以及接收所述策略服务器返回的所述第三 HTTP请求消 息的应答。  a third unit, configured to: when the AF entity modifies or terminates the AF session, sending a third HTTP request message to the policy server, where the third HTTP request message carries the AF session identifier information, And receiving a response of the third HTTP request message returned by the policy server.

较佳的, 所述第一单元, 是设置为: 在所述 AF 实体与所述策略服务器 已存在第一传输控制协议(TCP )连接时, 釆用所述第一 TCP连接向所述策 略服务器发送所述第一 HTTP请求消息,在本 AF与所述策略服务器未建立所 述第一 TCP连接时,先与所述策略服务器建立第一 TCP连接,再发送所述第 一 HTTP请求消息;  Preferably, the first unit is configured to: when the AF entity and the policy server already have a first Transmission Control Protocol (TCP) connection, use the first TCP connection to the policy server Sending the first HTTP request message, when the first TCP connection is not established between the AF and the policy server, first establishing a first TCP connection with the policy server, and then sending the first HTTP request message;

所述第三单元, 是设置为: 在所述 AF 实体与所述策略服务器已存在第 一 TCP 连接时, 釆用所述第一 TCP连接向所述策略服务器发送所述第三 HTTP请求消息, 在本 AF与所述策略服务器未建立所述第一 TCP连接时, 先与所述策略服务器建立第一 TCP连接, 再发送所述第三 HTTP请求消息。  The third unit is configured to: when the AF entity and the policy server already have a first TCP connection, send the third HTTP request message to the policy server by using the first TCP connection, When the first TCP connection is not established between the AF and the policy server, first establishing a first TCP connection with the policy server, and then sending the third HTTP request message.

较佳的, 所述第一单元, 还设置为: 接收到所述策略服务器发送的所述 第一 HTTP请求消息的应答后,保留所述 AF实体与所述策略服务器之间的所 述第一 TCP连接, 或者断开所述 AF实体与所述策略服务器之间的所述第一 TCP连接; 所述第三单元,还设置为:接收到所述策略服务器发送的所述第三 HTTP 请求消息的应答后,保留所述 AF实体与所述策略服务器之间的所述第一 TCP 连接, 或者断开所述 AF实体与所述策略服务器之间的所述第一 TCP连接。 Preferably, the first unit is further configured to: after receiving the response of the first HTTP request message sent by the policy server, retain the first between the AF entity and the policy server a TCP connection, or disconnecting the first TCP connection between the AF entity and the policy server; The third unit is further configured to: after receiving the response of the third HTTP request message sent by the policy server, retain the first TCP connection between the AF entity and the policy server, or Disconnecting the first TCP connection between the AF entity and the policy server.

较佳的, 所述第二单元, 是设置为: 釆用所述策略服务器与所述 AF 实 体之间的第二 TCP连接接收所述第二 HTTP请求消息, 并釆用所述第二 TCP 连接向所述策略服务器返回所述第二 HTTP请求消息的应答。 一种策略服务器, 包括:  Preferably, the second unit is configured to: receive the second HTTP request message by using a second TCP connection between the policy server and the AF entity, and use the second TCP connection Returning a response to the second HTTP request message to the policy server. A policy server, including:

第一单元, 其设置为: 接收应用功能(AF ) 实体发送的携带有 AF会话 标识信息的第一超文本传输协议(HTTP )请求消息, 向所述 AF实体返回所 述第一 HTTP请求消息的应答; 或者,接收 AF实体发送的第一 HTTP请求消 息, 为 AF会话分配 AF会话标识信息, 并向所述 AF实体返回携带所述 AF 会话标识信息的所述第一 HTTP请求消息的应答;  a first unit, configured to: receive, by the application function (AF) entity, a first hypertext transfer protocol (HTTP) request message carrying AF session identification information, and return the first HTTP request message to the AF entity Receiving; or receiving a first HTTP request message sent by the AF entity, assigning AF session identification information to the AF session, and returning, to the AF entity, a response of the first HTTP request message carrying the AF session identification information;

第二单元, 其设置为: 在向所述 AF实体通知所述 AF会话的承载层事件 时, 向所述 AF实体发送第二 HTTP请求消息, 所述第二 HTTP请求消息中携 带所述 AF会话标识信息, 以及接收所述 AF实体返回的所述第二 HTTP请求 消息的应答。  a second unit, configured to: when notifying the AF entity of the bearer layer event of the AF session, sending a second HTTP request message to the AF entity, where the second HTTP request message carries the AF session Identification information, and receiving a response of the second HTTP request message returned by the AF entity.

较佳的, 所述第一单元, 是设置为: 釆用所述 AF 实体与本策略服务器 之间的第一 TCP连接接收所述第一 HTTP请求消息,并釆用所述第一 TCP连 接向所述 AF实体返回所述第一 HTTP请求消息的应答。  Preferably, the first unit is configured to: receive the first HTTP request message by using a first TCP connection between the AF entity and the policy server, and use the first TCP connection to The AF entity returns a response to the first HTTP request message.

较佳的, 所述第二单元, 是设置为: 在本策略服务器与所述 AF 已存在 第二 TCP连接时, 釆用所述第二 TCP连接向所述 AF发送所述第二 HTTP请 求消息;  Preferably, the second unit is configured to: when the policy server and the AF have a second TCP connection, send the second HTTP request message to the AF by using the second TCP connection. ;

所述策略服务器与所述 AF未建立第二 TCP连接时, 先与所述 AF建立 第二 TCP连接, 再发送所述第二 HTTP请求消息。  When the policy server does not establish a second TCP connection with the AF, first establish a second TCP connection with the AF, and then send the second HTTP request message.

较佳的, 所述第二单元, 是设置为: 接收到所述 AF 实体发送的所述第 二 HTTP请求消息的应答后,保留本策略服务器与所述 AF实体之间的所述第 二 TCP连接, 或者断开本策略服务器与所述 AF之间的所述第二 TCP连接。  Preferably, the second unit is configured to: after receiving the response of the second HTTP request message sent by the AF entity, retain the second TCP between the policy server and the AF entity Connecting, or disconnecting the second TCP connection between the policy server and the AF.

较佳的, 所述策略服务器为策略和计费规则功能(PCRF )实体或协议转 换器 ( PC ) 一种协议转换器, 其中, 包括: Preferably, the policy server is a policy and charging rule function (PCRF) entity or protocol transfer. Converter (PC) A protocol converter, which includes:

第一单元, 其设置为: 在应用功能(AF )会话建立过程中, 接收 AF实 体发送的携带有 AF会话标识信息的第一超文本传输协议( HTTP )请求消息, 向策略和计费规则功能(PCRF ) 实体发送直径认证授权请求(AAR ) 消息, 请求建立直径会话, 所述 AAR消息中携带直径会话标识, 以及保持所述 AF 会话标识信息与所述直径会话标识的对应关系; 或者, 接收 AF 实体发送的 第一超文本传输协议( HTTP )请求消息, 为所述 AF会话分配 AF会话标识 信息, 向策略和计费规则功能(PCRF ) 实体发送直径认证授权请求(AAR ) 消息, 请求建立直径会话, 所述 AAR消息中携带直径会话标识, 以及保持所 述 AF会话标识信息与所述直径会话标识的对应关系;  The first unit is configured to: receive, in an application function (AF) session establishment process, a first hypertext transfer protocol (HTTP) request message that carries the AF session identifier information sent by the AF entity, to the policy and charging rule function a (PCRF) entity sends a Diameter Authentication Authorization Request (AAR) message, requesting to establish a diameter session, the AAR message carrying a diameter session identifier, and maintaining a correspondence between the AF session identifier information and the diameter session identifier; or, receiving a first hypertext transfer protocol (HTTP) request message sent by the AF entity, assigning AF session identification information to the AF session, and sending a Diameter Authentication Authorization Request (AAR) message to the Policy and Charging Rules Function (PCRF) entity, requesting to establish a diameter session, the AAR message carrying a diameter session identifier, and maintaining a correspondence between the AF session identifier information and the diameter session identifier;

第二单元, 其设置为: 在 AF会话修改或终结过程中, 接收 AF实体发送 的携带有所述 AF会话标识信息的第三 HTTP请求消息,向所述 PCRF实体发 送携带所述直径会话标识的直径 AAR或 直径会话终结请求(STR ) 消息; 以及  a second unit, configured to: receive, in an AF session modification or termination process, a third HTTP request message that is sent by the AF entity and that carries the AF session identification information, and send, to the PCRF entity, the path session identifier that carries the diameter Diameter AAR or Diameter Session End Request (STR) message;

第三单元, 其设置为: 在承载层事件上报过程中, 接收所述 PCRF实体 发送的携带所述直径 会话标识的直径重认证请求 (RAR ) , 终止会话请求 ( ASR )或会话终结应答(STA ) 消息, 并向所述 AF发送携带有所述 AF会 话标识信息的所述第二 HTTP请求消息。  And a third unit, configured to: receive a diameter re-authentication request (RAR), a termination session request (ASR), or a session termination response (STA) that is sent by the PCRF entity and that carries the diameter session identifier in a bearer layer event reporting process. a message, and sending the second HTTP request message carrying the AF session identification information to the AF.

本发明实施例还提供一种计算机程序, 包括程序指令, 当该程序指令被 应用功能实体执行时, 使得该应用功能实体可执行上述方法。 The embodiment of the present invention further provides a computer program, including program instructions, when the program instruction is executed by an application function entity, so that the application function entity can execute the above method.

本发明实施例还提供一种计算机程序, 包括程序指令, 当该程序指令被 策略服务器执行时, 使得该策略服务器可执行上述方法。  The embodiment of the invention further provides a computer program, comprising program instructions, when the program instruction is executed by the policy server, so that the policy server can execute the above method.

本发明实施例还提供一种载有上述任一计算机程序的载体。  Embodiments of the present invention also provide a carrier carrying any of the above computer programs.

本申请实施例的技术方案解决了 AF和 PCRF或 PC可以基于 HTTP实时 的进行双向信息传送的问题。 附图概述 The technical solution of the embodiment of the present application solves the problem that the AF and the PCRF or the PC can perform bidirectional information transmission based on HTTP real-time. BRIEF abstract

图 1是相关技术的 PCC架构图;  1 is a PCC architecture diagram of a related art;

图 2是现有技术部署 PC的 PCC架构图;  2 is a PCC architecture diagram of a prior art deployment PC;

图 3是本发明实施例一的 AF会话建立的流程图;  3 is a flowchart of establishing an AF session according to Embodiment 1 of the present invention;

图 4是本发明实施例一的 AF会话修改的流程图;  4 is a flowchart of an AF session modification according to Embodiment 1 of the present invention;

图 5是本发明实施例一的 AF会话终结的流程图;  FIG. 5 is a flowchart of an AF session termination according to Embodiment 1 of the present invention; FIG.

图 6是本发明实施例一的事件上报的流程图;  6 is a flowchart of event reporting according to Embodiment 1 of the present invention;

图 7是本发明实施例一的 IP-CAN会话终结的流程图;  7 is a flowchart of an IP-CAN session termination according to Embodiment 1 of the present invention;

图 8是本发明实施例二的 AF会话建立的流程图;  8 is a flowchart of establishing an AF session according to Embodiment 2 of the present invention;

图 9是本发明实施例二的 AF会话修改的流程图;  9 is a flowchart of an AF session modification according to Embodiment 2 of the present invention;

图 10是本发明实施例二的 AF会话终结的流程图;  10 is a flowchart of an AF session termination according to Embodiment 2 of the present invention;

图 11是本发明实施例二的事件上报的流程图;  11 is a flowchart of event reporting according to Embodiment 2 of the present invention;

图 12是本发明实施例二的 IP-CAN会话终结的流程图。  FIG. 12 is a flowchart of IP-CAN session termination according to Embodiment 2 of the present invention.

本发明的较佳实施方式 Preferred embodiment of the invention

下文将结合附图对本发明的实施例做详细说明。 需要说明的是, 在不冲 突的情况下, 本申请的实施例和实施例中的特征可以任意相互组合。  Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of non-conflict, the features of the embodiments and the embodiments of the present application may be arbitrarily combined with each other.

实施例 1 Example 1

本实施例提供一种会话管理方法, 包括:  This embodiment provides a session management method, including:

当 AF实体与策略服务器建立 AF会话时, AF实体向策略服务器发送第 一 HTTP请求消息;  When the AF entity establishes an AF session with the policy server, the AF entity sends a first HTTP request message to the policy server;

其中, AF实体在该第一 HTTP请求消息中携带 AF会话标识信息以通知 给策略服务器,策略服务器向 AF实体返回第一 HTTP请求消息的应答;或者, 策略服务器收到第一 HTTP请求消息后, 为 AF会话分配 AF会话标识信息, 并将 AF会话标识信息在第一 HTTP请求消息的应答中发送给 AF实体;  The AF entity carries the AF session identification information in the first HTTP request message to notify the policy server, and the policy server returns a response of the first HTTP request message to the AF entity; or, after the policy server receives the first HTTP request message, Assigning AF session identification information to the AF session, and transmitting the AF session identification information to the AF entity in response to the first HTTP request message;

当策略服务器向 AF实体通知上述 AF会话的承载层事件时,策略服务器 向 AF实体发送第二 HTTP请求消息, 该第二 HTTP请求消息中携带上述 AF 会话标识信息, AF实体向策略服务器返回第二 HTTP请求消息的应答。 其中, 策略服务器可以为 PCRF实体或 PC 。 Policy server when the policy server notifies the AF entity of the bearer layer event of the above AF session Sending a second HTTP request message to the AF entity, where the second HTTP request message carries the AF session identifier information, and the AF entity returns a response of the second HTTP request message to the policy server. The policy server can be a PCRF entity or a PC.

而上述方法中所涉及的 AF会话标识信息是一个全局唯一标识, 或是业 务会话标识与其他信息的组合。 而业务会话标识与其他信息的组合, 可釆用 如下任一种组合表示: 业务会话标识和 UE的 IP地址, 其中, 所述业务会话标识为能够在相同 UE的 IP地址情况下唯一标识所述 AF会话的标识;  The AF session identification information involved in the above method is a globally unique identifier, or a combination of a service session identifier and other information. The combination of the service session identifier and other information may be represented by any combination of the following: a service session identifier and an IP address of the UE, where the service session identifier is capable of uniquely identifying the IP address of the same UE. The identity of the AF session;

业务会话标识、 UE的 IP地址和 IP域标识, 其中, 所述业务会话标识为 能够在相同 UE的 IP地址和 IP域标识情况下唯一标识所述 AF会话的标识; 业务会话标识、 UE的 IP地址和分组数据网络 PDN标识, 其中, 所述业 务会话标识为能够在相同 UE的 IP地址和 PDN标识情况下唯一标识所述 AF 会话的标识 业务会话标识、 用户标识, 其中, 所述业务会话标识为能够在相同 UE 的 IP地址和用户标识情况下唯一标识所述 AF会话的标识。  a service session identifier, an IP address of the UE, and an IP domain identifier, where the service session identifier is an identifier that can uniquely identify the AF session in the case of an IP address and an IP domain identifier of the same UE; An address and a packet data network PDN identifier, where the service session identifier is an identifier service session identifier and a user identifier that can uniquely identify the AF session in the case of an IP address and a PDN identifier of the same UE, where the service session identifier The identifier of the AF session is uniquely identified in the case of the same UE's IP address and user identity.

另外, 在上述方法的基础上, 当 AF 实体与策略服务器修改或终结上述 AF会话时, AF 实体还会向策略服务器发送第三 HTTP请求消息, 该第三 HTTP请求消息中携带 AF会话标识信息, 而策略服务器则要返回第三 HTTP 请求消息的应答。  In addition, on the basis of the foregoing method, when the AF entity and the policy server modify or terminate the AF session, the AF entity sends a third HTTP request message to the policy server, where the third HTTP request message carries the AF session identifier information. The Policy Server will return a response to the third HTTP request message.

下面结合应用场景, 详细说明上述方法的实现过程。  The implementation process of the above method will be described in detail below in conjunction with the application scenario.

首先, 以图 1所示的 PCC架构为例, 说明 AF实体跟 PCRF实体(即策 略服务器 )之间的 Rx接口支持 SOAP或 REST协议的会话流程。  First, take the PCC architecture shown in Figure 1 as an example to illustrate that the Rx interface between the AF entity and the PCRF entity (that is, the policy server) supports the SOAP or REST protocol session flow.

图 3为会话信息初始提供过程中 (即 AF会话建立过程中) 的会话管理 流程图, 包括如下步骤 301至 303:  FIG. 3 is a flow chart of session management during the initial provision of session information (ie, during the establishment of the AF session), including the following steps 301 to 303:

步骤 301. 用户设备 UE附着到网络, 发起附着流程, 或者 UE发起另外 的 PDN连接建立流程后, UE与 AF实体进行交互, 进行媒体协商。 AF实体 确定业务相关信息。  Step 301. The user equipment UE is attached to the network, initiates an attach procedure, or the UE initiates another PDN connection establishment process, and the UE interacts with the AF entity to perform media negotiation. The AF entity determines business related information.

步骤 302.AF实体向 PCRF实体发起 AF会话建立流程建立 AF会话, 提 供 AF会话标识信息和业务信息。 该 AF会话标识信息可以是在此时由 AF实 体分配或是在此之前的一个交互中由 PCRF实体分配给 AF实体。 Step 302. The AF entity initiates an AF session establishment process to the PCRF entity to establish an AF session. For AF session identification information and business information. The AF session identification information may be assigned to the AF entity by the PCRF entity at this time by the AF entity or in an interaction before this.

该步骤中 , AF实体向 PCRF发送第一 HTTP请求消息, 该第一 HTTP请 求消息中携带 AF会话标识信息和业务信息。此外,该第一 HTTP请求消息还 可以携带一个显式的 AF 会话建立指示。 AF 实体自身的统一资源定位符 ( Uniform Resource Locator , URL ) (表示为 URL 1 )也可以携带在该消息中。 AF实体可根据 UE的 IP地址、 用户标识(如果存在的话 ) , PDN信息, 域 标识信息构造 PCRF的 URL用于寻址 PCRF。  In this step, the AF entity sends a first HTTP request message to the PCRF, where the first HTTP request message carries the AF session identification information and the service information. In addition, the first HTTP request message can also carry an explicit AF session establishment indication. The AF entity's own Uniform Resource Locator (URL) (denoted as URL 1) can also be carried in the message. The AF entity may construct a PCRF URL for addressing the PCRF according to the UE's IP address, user identification (if any), PDN information, and domain identification information.

其中, AF会话标识信息可以是一个全局唯一标识用于该 AF会话的信息, 也可由业务会话标识结合其他信息组成的唯一标识该 AF会话的信息组合, 本实施例中, AF会话标识信息为业务会话标识和其他信息的组合时, 可以釆 用以下任一种组合:  The AF session identifier information may be a globally unique identifier for the AF session, or may be a combination of the service session identifier and other information that uniquely identifies the AF session. In this embodiment, the AF session identifier information is a service. When combining a session ID with other information, you can use any of the following combinations:

1 )业务会话标识和 UE的 IP地址, 其中, 所述业务会话标识为能够在相 同 UE的 IP地址情况下唯一标识所述 AF会话的标识;  1) a service session identifier and an IP address of the UE, where the service session identifier is an identifier that can uniquely identify the AF session in the case of an IP address of the same UE;

2 )业务会话标识、 UE的 IP地址和 IP域标识, 其中, 所述业务会话标 识为能够在相同 UE的 IP地址和 IP域标识情况下唯一标识所述 AF会话的标 识;  2) a service session identifier, an IP address of the UE, and an IP domain identifier, where the service session identifier is an identifier that can uniquely identify the AF session in the case of an IP address and an IP domain identifier of the same UE;

3 )业务会话标识、 UE的 IP地址和分组数据网络 PDN标识, 其中, 所 述业务会话标识为能够在相同 UE的 IP地址和 PDN标识情况下唯一标识所述 AF会话的标识  3) a service session identifier, an IP address of the UE, and a PDN identifier of the packet data network, where the service session identifier is an identifier that can uniquely identify the AF session in the case of an IP address and a PDN identifier of the same UE.

4 ) 业务会话标识、 用户标识, 其中, 所述业务会话标识为能够在相同 UE的 IP地址和用户标识情况下唯一标识所述 AF的会话的标识。  4) a service session identifier, a user identifier, where the service session identifier is an identifier that can uniquely identify the session of the AF in the case of an IP address and a user identifier of the same UE.

步骤 303. PCRF实体保存 AF实体提供的业务信息, PCRF实体向 AF实 体返回第一 HTTP请求消息的应答。  Step 303. The PCRF entity saves the service information provided by the AF entity, and the PCRF entity returns a response of the first HTTP request message to the AF entity.

在上述流程中, 对于 AF实体和 PCRF实体之间 TCP连接的处理, 可以 釆用以下两种方案:  In the above process, for the processing of the TCP connection between the AF entity and the PCRF entity, the following two schemes can be used:

1 )釆用 HTTP persistent connection机制。 执行步骤 302时, 若 AF实体 与 PCRF已存在 TCP连接 (本实施例称为第一 TCP连接) , 则 AF实体釆用 已有的第一 TCP连接向 PCRF发送第一 HTTP请求消息, 若不存在第一 TCP 连接, 则 AF与 PCRF先建立第一 TCP连接后, 再发送第一 HTTP请求消息。 而在执行步骤 303后, 第一 TCP连接也不断开。 1) Use the HTTP persistent connection mechanism. When the step 302 is performed, if the AF entity has a TCP connection with the PCRF (referred to as the first TCP connection in this embodiment), the AF entity uses The existing first TCP connection sends a first HTTP request message to the PCRF. If the first TCP connection does not exist, the AF and the PCRF first establish a first TCP connection, and then send the first HTTP request message. After the step 303 is performed, the first TCP connection is not disconnected.

2 ) 不釆用 HTTP persistent connection机制。 执行步骤 302时, AF实体 与 PCRF实体建立第一 TCP连接后, 再发送第一 HTTP请求消息。 在执行步 骤 303后, 断开第一 TCP连接。  2) Do not use the HTTP persistent connection mechanism. When step 302 is performed, the AF entity establishes a first TCP connection with the PCRF entity, and then sends a first HTTP request message. After performing step 303, the first TCP connection is disconnected.

在上述流程,用来标识 AF会话的 AF会话标识信息是 AF实体分配的(若 AF会话标识信息是一个独立的全局唯一标识, 这个 AF会话标识信息由 AF 分配; 若 AF会话标识信息为业务会话标识和其他信息的组合, 那么业务会 话标识为 AF分配的)。 当然, 相关信息也可以由 PCRF实体分配。 若 AF会 话标识信息是一个独立的全局唯一标识, 那么也可以由 PCRF实体分配。 即 步骤 302中, AF向 PCRF实体发送第一 HTTP请求消息仅携带业务信息(业 务信息中包括 UE IP地址、 IP域标识(可选) , 用户标识(可选) , PDN标 识(可选) ) , 在步骤 303中, PCRF实体根据业务信息为 AF会话分配一个 全局的 AF会话标识, 并在第一 HTTP请求消息的应答中发送给 AF实体。 若 AF会话标识信息是业务会话标识和其他信息的组合,那么业务会话标识也可 以由 PCRF实体分配。 即步骤 302中, AF实体向 PCRF实体发送第一 HTTP 请求消息仅携带业务信息(业务信息中包括 UE IP地址、 IP域标识(可选), 用户标识(可选) , PDN标识(可选) ) , 在步骤 303中, PCRF实体根据 业务信息为 AF会话分配一个业务会话标识,并在第一 HTTP请求消息的应答 中将业务会话标识和 AF会话标识信息组合中的其他信息发送给 AF实体(即 AF会话标识信息) 。  In the above process, the AF session identification information used to identify the AF session is assigned by the AF entity (if the AF session identification information is an independent global unique identifier, the AF session identification information is allocated by the AF; if the AF session identification information is a service session A combination of identification and other information, then the business session identifier is assigned to the AF). Of course, related information can also be assigned by the PCRF entity. If the AF session identification information is an independent globally unique identifier, it can also be assigned by the PCRF entity. That is, in step 302, the AF sends the first HTTP request message to the PCRF entity to carry only the service information (the service information includes the UE IP address, the IP domain identifier (optional), the user identifier (optional), and the PDN identifier (optional)) In step 303, the PCRF entity allocates a global AF session identifier to the AF session according to the service information, and sends the AF session identifier to the AF entity in the response of the first HTTP request message. If the AF session identification information is a combination of the service session identifier and other information, the service session identifier may also be assigned by the PCRF entity. That is, in step 302, the AF entity sends the first HTTP request message to the PCRF entity to carry only the service information (the service information includes the UE IP address, the IP domain identifier (optional), the user identifier (optional), and the PDN identifier (optional). In step 303, the PCRF entity allocates a service session identifier to the AF session according to the service information, and sends other information in the combination of the service session identifier and the AF session identifier information to the AF entity in the response of the first HTTP request message ( That is, AF session identification information).

AF可以在一个 HTTP请求消息中聚合多个请求建立 AF会话的信息 (譬 如携带多个 AF会话对应的业务信息和 AF会话标识信息(如果由 AF分配 AF 会话标识信息) ), PCRF实体在 HTTP应答消息中也可以聚合请求建立的多 个 AF会话的应答信息 (譬如 PCRF实体为每个 AF会话分配的 AF会话标识信 息 (如果由 P实体 CRF分配 AF会话标识信息 ) )。  The AF may aggregate multiple pieces of information requesting to establish an AF session in an HTTP request message (for example, carrying service information corresponding to multiple AF sessions and AF session identification information (if AF session identification information is assigned by AF)), and the PCRF entity responds in HTTP The message may also aggregate the response information of the multiple AF sessions that are requested to be established (for example, the AF session identification information allocated by the PCRF entity for each AF session (if the AF session identification information is allocated by the P entity CRF)).

图 4为会话信息更新过程中 (即 AF会话修改过程中) 的会话管理流程 图, 包括如下步骤 401至 403: Figure 4 shows the session management process during the session information update process (that is, during the AF session modification process). The figure includes the following steps 401 to 403:

步骤 401. UE与 AF实体进行交互, 进行媒体重协商。 AF确定业务相关 信息。  Step 401. The UE interacts with the AF entity to perform media renegotiation. AF determines business related information.

步骤 402.AF实体向 PCRF实体发起 AF会话修改流程 (即修改图 3建立 的 AF会话) , 提供更新的业务信息。  Step 402: The AF entity initiates an AF session modification process to the PCRF entity (ie, modifies the AF session established in FIG. 3) to provide updated service information.

该步骤中, AF实体向 PCRF实体发送第三 HTTP请求消息, 携带更新的 媒体描述信息和图 3中定义的 AF会话标识信息。此外,该第三 HTTP请求消 息还可以携带一个显式的 AF会话修改指示。  In this step, the AF entity sends a third HTTP request message to the PCRF entity, carrying the updated media description information and the AF session identification information defined in FIG. In addition, the third HTTP request message can also carry an explicit AF session modification indication.

步骤 403. PCRF实体根据 AF会话标识信息确定之前保存的业务信息,并 进行相应的更新。 PCRF实体向 AF实体返回第三 HTTP请求消息的应答。  Step 403. The PCRF entity determines the previously saved service information according to the AF session identification information, and performs corresponding update. The PCRF entity returns a response to the third HTTP request message to the AF entity.

在上述流程中, 对于 AF实体和 PCRF实体之间 TCP连接的处理, 可以 釆用以下两种方案:  In the above process, for the processing of the TCP connection between the AF entity and the PCRF entity, the following two schemes can be used:

1 )釆用 HTTP persistent connection机制。 即执行步骤 402时, AF釆用已 有的 TCP连接 (即第一 TCP连接) 向 PCRF实体发送第三 HTTP请求消息。 在执行步骤 403后, 第一 TCP连接也不断开。  1) Use the HTTP persistent connection mechanism. That is, when step 402 is performed, AF uses the existing TCP connection (i.e., the first TCP connection) to send a third HTTP request message to the PCRF entity. After performing step 403, the first TCP connection is also not broken.

2 ) 不釆用 HTTP persistent connection机制。 执行步骤 402时, AF实体 与 PCRF实体建立第一 TCP连接后发送第三 HTTP请求消息。在执行步骤 403 后, 第一 TCP连接断开。  2) Do not use the HTTP persistent connection mechanism. When step 402 is performed, the AF entity sends a third HTTP request message after establishing a first TCP connection with the PCRF entity. After performing step 403, the first TCP connection is broken.

AF可以在一个 HTTP请求消息中聚合多个请求修改 AF会话的信息 (譬 如携带多个 AF会话对应的业务信息和 AF会话标识信息), PCRF实体在 HTTP 应答消息中也可以聚合请求修改的多个 AF会话的应答信息。  The AF may aggregate multiple information for modifying the AF session in an HTTP request message (for example, carrying service information corresponding to multiple AF sessions and AF session identification information), and the PCRF entity may aggregate multiple requests for modification in the HTTP response message. The response information of the AF session.

图 5为 AF会话终结过程中的会话管理流程图,包括如下步骤 501至 503: 步骤 501. UE与 AF实体进行交互, 终结会话。 Figure 5 is a flow chart of session management during the termination of the AF session, including the following steps 501 to 503: Step 501. The UE interacts with the AF entity to terminate the session.

步骤 502.AF实体向 PCRF实体发起 AF会话终结流程, 终结图 3建立的 Step 502. The AF entity initiates an AF session termination process to the PCRF entity, and terminates the establishment of FIG.

AF会话。 AF session.

该步骤的具体实现为: AF实体向 PCRF实体发送第三 HTTP请求消息, 携带会话终结指示和图 3中定义的 AF会话标识信息。该第三 HTTP请求消息 还可携带显式的 AF会话终结指示。 The specific implementation of the step is: the AF entity sends a third HTTP request message to the PCRF entity, Carrying the session termination indication and the AF session identification information defined in FIG. The third HTTP request message may also carry an explicit AF session termination indication.

步骤 503. PCRF实体根据 AF会话标识信息确定之前保存的业务信息,并 进行删除。 PCRF实体向 AF实体返回第三 HTTP请求消息的应答。  Step 503. The PCRF entity determines the previously saved service information according to the AF session identification information, and deletes it. The PCRF entity returns a response to the third HTTP request message to the AF entity.

在上述流程中, 对于 AF实体和 PCRF实体之间 TCP连接的处理, 可以 釆用以下两种方案:  In the above process, for the processing of the TCP connection between the AF entity and the PCRF entity, the following two schemes can be used:

1 )釆用 HTTP persistent connection机制。 执行步骤 502时, AF实体釆用 已有的 TCP连接(即第一 TCP连接)向 PCRF实体发送第三 HTTP请求消息。 在执行步骤 503后, 第一 TCP连接也不断开。  1) Use the HTTP persistent connection mechanism. When step 502 is performed, the AF entity sends a third HTTP request message to the PCRF entity using the existing TCP connection (ie, the first TCP connection). After performing step 503, the first TCP connection is also not broken.

2 ) 不釆用 HTTP persistent connection机制。 执行步骤 502时, AF实体 与 PCRF实体建立第一 TCP连接后发送第三 HTTP请求消息。在执行步骤 503 后, 第一 TCP连接断开。  2) Do not use the HTTP persistent connection mechanism. When step 502 is performed, the AF entity sends a third HTTP request message after establishing a first TCP connection with the PCRF entity. After performing step 503, the first TCP connection is broken.

AF实体可以在一个 HTTP请求消息中聚合多个请求终结 AF会话的信息 (譬如携带多个 AF会话对应的业务信息和 AF会话标识信息 ) , PCRF实体 在 HTTP应答消息中也可以聚合请求终结的多个 AF会话的应答信息。  The AF entity may aggregate information of multiple request termination AF sessions in an HTTP request message (for example, carrying service information corresponding to multiple AF sessions and AF session identification information), and the PCRF entity may also aggregate the request termination in the HTTP response message. Response information for AF sessions.

图 6为承载层事件上报过程中的会话管理流程图, 包括如下步骤 601至FIG. 6 is a flowchart of session management in a bearer layer event reporting process, including the following steps 601 to

603: 603:

步骤 601.PCRF实体感知到承载层事件, 如 IP-CAN类型改变。  Step 601. The PCRF entity perceives a bearer layer event, such as an IP-CAN type change.

步骤 602.PCRF实体向 AF实体上报图 3建立的 AF会话相关的承载层事 件。  Step 602: The PCRF entity reports the bearer layer event related to the AF session established in Figure 3 to the AF entity.

该步骤中, PCRF实体向 AF实体发送第二 HTTP请求消息, 其中携带承 载层事件和实施例 1中定义的 AF会话标识信息。该第二 HTTP消息中用于寻 址 AF实体的 URL为图 3中 AF实体提供的 URL1。  In this step, the PCRF entity sends a second HTTP request message to the AF entity, where the bearer layer event and the AF session identification information defined in Embodiment 1 are carried. The URL used to locate the AF entity in the second HTTP message is the URL1 provided by the AF entity in FIG.

步骤 603.AF实体根据 AF会话标识信息确定该 UE对应的应用层会话, 获知该应用层会话对应的承载层事件。从而进行相关的处理。 AF实体向 PCRF 实体返回第二 HTTP请求消息的应答。  Step 603. The AF entity determines an application layer session corresponding to the UE according to the AF session identification information, and learns a bearer layer event corresponding to the application layer session. Thereby performing related processing. The AF entity returns a response to the second HTTP request message to the PCRF entity.

在上述流程中, 对于 PCRF实体和 AF实体之间 TCP连接的处理, 可以 釆用以下两种方案: In the above process, for the processing of the TCP connection between the PCRF entity and the AF entity, Use the following two options:

1 )釆用 HTTP persistent connection机制。 执行步骤 602时, 若 PCRF实 体与 AF实体之间已存在 TCP连接 (即第二 TCP连接 ) , 则 PCRF实体釆用 已有的 TCP连接 (即第二 TCP连接) 向 AF实体发送第二 HTTP请求消息, 若 PCRF实体与 AF实体之间不存在 TCP连接,则 PCRF实体与 AF实体建立 第二 TCP连接后发送第二 HTTP请求消息。在执行步骤 603后, 第二 TCP连 接也不断开。  1) Use the HTTP persistent connection mechanism. When step 602 is performed, if a TCP connection (ie, a second TCP connection) already exists between the PCRF entity and the AF entity, the PCRF entity sends the second HTTP request to the AF entity by using the existing TCP connection (ie, the second TCP connection). The message, if there is no TCP connection between the PCRF entity and the AF entity, the PCRF entity sends a second TCP request message after establishing a second TCP connection with the AF entity. After performing step 603, the second TCP connection is also not broken.

2 )不釆用 HTTP persistent connection机制。 执行步骤 602时, PCRF与 AF建立第二 TCP连接后发送第二 HTTP请求消息。 在执行步骤 603后, 第 二 TCP连接断开。  2) Do not use the HTTP persistent connection mechanism. When step 602 is performed, the PCRF establishes a second TCP connection with the AF and sends a second HTTP request message. After performing step 603, the second TCP connection is broken.

PCRF实体可以在一个 HTTP请求消息中聚合多个 AF会话的事件信息 (譬如携带多个 AF会话对应的事件信息和 AF会话标识信息 ) , AF实体在 HTTP应答消息中也可以聚合多个 AF会话事件上报的应答信息。  The PCRF entity may aggregate event information of multiple AF sessions in an HTTP request message (for example, carrying event information corresponding to multiple AF sessions and AF session identification information), and the AF entity may also aggregate multiple AF session events in the HTTP response message. Evaluated response information.

图 7为 IP-CAN会话终结过程中的会话管理流程图 (PCRF实体通知 AF 实体 IP-CAN会话终结可以认为一种特殊的承载层事件上报) , 包括如下步 骤 701至 703:  Figure 7 is a flow chart of session management during the IP-CAN session termination process (the PCRF entity notifies the AF entity that the IP-CAN session termination can be considered as a special bearer layer event report), and includes the following steps 701 to 703:

步骤 701. PCRF实体感知到 IP-CAN会话终结。  Step 701. The PCRF entity perceives the termination of the IP-CAN session.

步骤 702.PCRF实体向 AF实体通知图 3建立的 AF会话相关的传输资源 丟失。  Step 702. The PCRF entity notifies the AF entity of the loss of the transmission resource associated with the AF session established in FIG.

该步骤中, PCRF实体向 AF实体发送第二 HTTP请求消息, 携带请求会 话终结指示和图 3中定义的 AF会话标识信息。该第二 HTTP请求消息中用于 寻址 AF实体的 URL为图 3中 AF实体提供的 URL1。  In this step, the PCRF entity sends a second HTTP request message to the AF entity, carrying the request session termination indication and the AF session identification information defined in FIG. The URL used to address the AF entity in the second HTTP request message is URL1 provided by the AF entity in FIG.

步骤 703.AF实体根据 AF会话标识信息确定该 UE对应的应用层会话, 获知该应用层会话对应的传输资源丟失。 从而进行相关的处理。 AF 实体向 PCRF实体返回第二 HTTP请求消息的应答。  Step 703. The AF entity determines an application layer session corresponding to the UE according to the AF session identifier information, and learns that the transmission resource corresponding to the application layer session is lost. Thereby performing related processing. The AF entity returns a response to the second HTTP request message to the PCRF entity.

在上述流程中, 对于 PCRF实体和 AF实体之间 TCP连接的处理, 可以 釆用以下两种方案:  In the above process, for the processing of the TCP connection between the PCRF entity and the AF entity, the following two schemes can be used:

1 )釆用 HTTP persistent connection机制。 执行步骤 702时, 若 PCRF实 体与 AF实体已存在 TCP连接 (即第二 TCP连接 ) , 则 PCRF实体釆用已有 的 TCP连接(即第二 TCP连接)向 AF实体发送第二 HTTP请求消息,若 PCRF 实体与 AF实体之间不存在 TCP连接,则 PCRF实体与 AF实体建立第二 TCP 连接后发送第二 HTTP请求消息。 在执行步骤 703后, 第二 TCP连接也不断 开。 1) Use the HTTP persistent connection mechanism. When performing step 702, if the PCRF is real The physical connection with the AF entity already exists (ie, the second TCP connection), and the PCRF entity sends the second HTTP request message to the AF entity by using the existing TCP connection (ie, the second TCP connection), if the PCRF entity and the AF entity If there is no TCP connection, the PCRF entity sends a second HTTP request message after establishing a second TCP connection with the AF entity. After performing step 703, the second TCP connection is also not broken.

2 ) 不釆用 HTTP persistent connection机制。 执行步骤 702时, PCRF实 体与 AF实体建立第二 TCP连接后发送第二 HTTP请求消息。在执行步骤 703 后, 第二 TCP连接断开。  2) Do not use the HTTP persistent connection mechanism. When step 702 is performed, the PCRF entity sends a second TCP request message after establishing a second TCP connection with the AF entity. After performing step 703, the second TCP connection is broken.

PCRF可以在一个 HTTP请求消息中聚合多个 AF会话的传输资源丟失事 件信息 (譬如携带多个 AF会话对应的事件信息和 AF会话标识信息 ) , AF 实体在 HTTP应答消息中也可以聚合多个 AF会话事件上报的应答信息。  The PCRF can aggregate the transmission resource loss event information of multiple AF sessions in an HTTP request message (for example, carrying event information corresponding to multiple AF sessions and AF session identification information), and the AF entity can also aggregate multiple AFs in the HTTP response message. The response information reported by the session event.

下面, 以图 2所示的 PCC架构为例, 说明 AF实体跟 PCRF实体之间存 在 PC的会话流程。 The following takes the PCC architecture shown in Figure 2 as an example to illustrate the session flow between the AF entity and the PCRF entity.

图 8为会话信息初始提供过程中 (即 AF会话建立过程中) 的会话管理 流程图, 包括如下步骤 801至 805:  FIG. 8 is a flow chart of session management during the initial provision of session information (ie, during the establishment of the AF session), including the following steps 801 to 805:

步骤 801. 用户设备 UE附着到网络, 发起附着流程, 或者 UE发起另外 的 PDN连接建立流程后, UE与 AF进行交互, 进行媒体协商, AF实体确定 业务相关信息。  Step 801. The user equipment UE attaches to the network, initiates an attach procedure, or after the UE initiates another PDN connection establishment process, the UE interacts with the AF to perform media negotiation, and the AF entity determines service related information.

步骤 802.AF实体向 PC发起 AF会话建立流程请求建立 AF会话, 提供 Step 802. The AF entity initiates an AF session establishment process to the PC, requesting to establish an AF session, providing

AF会话标识信息和业务信息。 该 AF会话标识信息可以是在此时由 AF实体 分配或是在此之前的一个交互中由 PC分配。 AF session identification information and business information. The AF session identification information may be assigned by the AF entity at this time or by a PC in an earlier interaction.

该步骤中, AF实体向 PCRF实体发送第一 HTTP请求消息, 第一 HTTP 请求消息中携带 AF会话标识信息和业务信息。 PC保存其中的 AF会话标识 信息和业务信息。此外,该第一 HTTP消息中还可以携带一个显式的 AF会话 建立指示。 AF自身的统一资源定位符 ( Uniform Resource Locator, URL ) (表 示为 URL2 )也可以携带在该消息中。 AF实体可根据 UE的 IP地址、 用户标 识(如果存在的话) , PDN信息, 域标识信息构造 PC的 URL用于寻址 PC。 其中, AF会话标识信息可以是一个全局唯一标识用来单独标识该 AF会 话, 也可以是由业务会话标识结合其他信息组成唯一标识该 AF会话的信息 组合, 本实施例中, AF会话标识信息为业务会话标识和其他信息的组合时, 可以釆用以下任一种组合表示 AF会话标识信息: In this step, the AF entity sends a first HTTP request message to the PCRF entity, where the first HTTP request message carries the AF session identification information and the service information. The PC saves the AF session identification information and service information therein. In addition, the first HTTP message may also carry an explicit AF session establishment indication. AF's own Uniform Resource Locator (URL) (denoted as URL2) can also be carried in the message. The AF entity may construct a URL of the PC for addressing the PC based on the IP address of the UE, the user identification (if present), the PDN information, and the domain identification information. The AF session identifier information may be a globally unique identifier for separately identifying the AF session, or may be a combination of the service session identifier and other information to uniquely identify the AF session. In this embodiment, the AF session identifier information is When a combination of a service session identifier and other information, the AF session identification information may be represented by any combination of the following:

1 )业务会话标识和 UE的 IP地址, 其中, 所述业务会话标识为能够在相 同 UE的 IP地址情况下唯一标识所述 AF的会话的标识;  1) a service session identifier and an IP address of the UE, where the service session identifier is an identifier that can uniquely identify the session of the AF in the case of an IP address of the same UE;

2 )业务会话标识、 UE的 IP地址和 IP域标识, 其中, 所述业务会话标 识为能够在相同 UE的 IP地址和 IP域标识情况下唯一标识所述 AF会话的标 识;  2) a service session identifier, an IP address of the UE, and an IP domain identifier, where the service session identifier is an identifier that can uniquely identify the AF session in the case of an IP address and an IP domain identifier of the same UE;

3 )业务会话标识、 UE的 IP地址和分组数据网络 PDN标识, 其中, 所 述业务会话标识为能够在相同 UE的 IP地址和 PDN标识情况下唯一标识所述 AF会话的标识  3) a service session identifier, an IP address of the UE, and a PDN identifier of the packet data network, where the service session identifier is an identifier that can uniquely identify the AF session in the case of an IP address and a PDN identifier of the same UE.

4 ) 业务会话标识、 用户标识, 其中, 所述业务会话标识为能够在相同 UE的 IP地址和用户标识情况下唯一标识所述 AF会话的标识。  4) a service session identifier, a user identifier, where the service session identifier is an identifier that can uniquely identify the AF session in the case of an IP address and a user identifier of the same UE.

步骤 803.PC向 PCRF实体发起 AF会话建立流程请求建立 AF会话, 提 供业务信息。  Step 803. The PC initiates an AF session establishment procedure to the PCRF entity to request an AF session to provide service information.

该步骤中, AF 实体向 PCRF 实体发送直径(Diameter ) 认证授权请求 ( Authentication and Authorization Request, 简称 AAR ) 消息 , AAR消息中携 带 AF会话标识信息, Diameter会话标识, 以及媒体信息描述。 并且, PC保 存 Diameter会话标识与步骤 802中的 AF会话标识信息的对应关系。 PC也可 不直接保存 AF会话标识信息, 而保存 Diameter会话标识与步骤 802中的 AF 会话标识信息的对应关系即可。 (譬如 PC可以根据固定的算法根据 AF会话 标识信息推倒出 Diameter会话标识, 这样当将来 PC收到 Diameter会话标识 时就可以根据算法推倒出对应的 AF会话标识信息。 )。此外, PC还保存 URL2 与 Diameter会话标识的对应关系。  In this step, the AF entity sends a Diameter Authentication and Authorization Request (AAR) message to the PCRF entity, and the AAR message carries the AF session identification information, the Diameter session identifier, and the media information description. And, the PC saves the correspondence between the Diameter session identifier and the AF session identification information in step 802. The PC may not directly save the AF session identification information, but may save the correspondence between the Diameter session identifier and the AF session identification information in step 802. (For example, the PC can push out the Diameter session identifier according to the AF session identification information according to a fixed algorithm, so that when the PC receives the Diameter session identifier in the future, the corresponding AF session identification information can be pushed out according to the algorithm.). In addition, the PC also stores the correspondence between URL2 and the Diameter session ID.

步骤 804. PCRF实体保存业务信息, PCRF实体向 PC返回 Diameter AAA 消息;  Step 804. The PCRF entity saves the service information, and the PCRF entity returns a Diameter AAA message to the PC.

步骤 805. PC向 AF实体实体返回第一 HTTP请求消息的应答。 上述流程中, 对于 AF实体和 PC之间 TCP连接的处理, 可以釆用以下 两种方案: Step 805. The PC returns a response of the first HTTP request message to the AF entity entity. In the above process, for the processing of the TCP connection between the AF entity and the PC, the following two schemes can be used:

1 )釆用 HTTP persistent connection机制。 执行步骤 802时, 若 AF实体 与 PC已存在 TCP连接 (即第一 TCP连接) , 则 AF实体釆用已有的 TCP连 接向 PC发送第一 HTTP请求消息, 若不存在 TCP连接, 则 AF实体先与 PC 建立 TCP连接(即第一 TCP连接 )后发送第一 HTTP请求消息。 在执行步骤 805后, 第一 TCP连接也不断开。  1) Use the HTTP persistent connection mechanism. When the step 802 is performed, if the AF entity has a TCP connection with the PC (that is, the first TCP connection), the AF entity sends the first HTTP request message to the PC by using the existing TCP connection, and if there is no TCP connection, the AF entity The first HTTP request message is sent after establishing a TCP connection (ie, the first TCP connection) with the PC. After performing step 805, the first TCP connection is also not broken.

2 )不釆用 HTTP persistent connection机制。 执行步骤 802时, AF实体与 PC建立第一 TCP连接后发送第一 HTTP请求消息。 在执行步骤 805后, 第 一 TCP连接断开。  2) Do not use the HTTP persistent connection mechanism. When step 802 is performed, the AF entity sends a first HTTP request message after establishing a first TCP connection with the PC. After performing step 805, the first TCP connection is broken.

在上述流程中, 用来标识 AF会话的 AF会话标识信息是 AF实体分配的 (若 AF会话标识信息是一个独立的全局唯一标识时, 这个 AF会话标识由 AF分配; 若 AF会话标识信息为业务会话标识和其他信息的组合时, 那么业 务会话标识为 AF分配的) 。 当然相关信息也可以由 PC分配。 ( 1 )若 AF 会话标识信息是一个独立的全局唯一标识, 那么这个全局唯一标识也可以由 PC分配。 即步骤 802中, AF实体向 PC发送第一 HTTP请求消息仅携带业务 信息(业务信息中包括 UE IP地址、 IP域标识(可选) , 用户标识(可选) , PDN标识(可选) ) , 在步骤 803中, PC根据业务信息为 AF会话分配一个 全局的 AF会话标识, 并且 PC保存 Diameter会话标识与 PC分配的 AF会话 标识的对应关系。 在步骤 805中, PC在第一 HTTP请求消息的应答中向 AF 返回 AF会话标识。 (2) 若 AF会话标识信息是业务会话标识和其他信息的组 合, 那么业务会话标识也可以由 PC分配。 即步骤 802中, AF实体向 PCRF 实体发送第一 HTTP请求消息仅携带业务信息(业务信息中包括 UE IP地址、 IP域标识(可选) , 用户标识(可选) , PDN标识(可选) ) , 在步骤 803 中, PC根据业务信息为 AF会话分配一个业务会话标识,并且 PC保存 Diameter 会话标识与业务会话标识和其他信息组合(即 AF会话标识信息) 的对应关 系。 在步骤 805中, PC在第一 HTTP请求消息的应答中向 AF实体返回业务 会话标识和 AF会话标识信息组合中的其他信息 (即 AF会话标识信息) 。  In the above process, the AF session identification information used to identify the AF session is assigned by the AF entity. (If the AF session identification information is an independent global unique identifier, the AF session identifier is assigned by the AF; if the AF session identification information is a service When the session identifier and other information are combined, then the service session identifier is assigned to the AF). Of course, relevant information can also be assigned by the PC. (1) If the AF session identification information is an independent globally unique identifier, then the globally unique identifier can also be assigned by the PC. In step 802, the AF entity sends the first HTTP request message to the PC to carry only the service information (the service information includes the UE IP address, the IP domain identifier (optional), the user identifier (optional), and the PDN identifier (optional)) In step 803, the PC allocates a global AF session identifier to the AF session according to the service information, and the PC saves the correspondence between the Diameter session identifier and the AF session identifier assigned by the PC. In step 805, the PC returns an AF session identifier to the AF in response to the first HTTP request message. (2) If the AF session identification information is a combination of the service session identifier and other information, the service session identifier can also be assigned by the PC. In step 802, the AF entity sends the first HTTP request message to the PCRF entity to carry only the service information. The service information includes the UE IP address, the IP domain identifier (optional), the user identifier (optional), and the PDN identifier (optional). In step 803, the PC allocates a service session identifier to the AF session according to the service information, and the PC saves the correspondence between the Diameter session identifier and the service session identifier and other information combination (ie, AF session identifier information). In step 805, the PC returns other information (i.e., AF session identification information) in the combination of the service session identifier and the AF session identifier information to the AF entity in response to the first HTTP request message.

AF实体可以在一个 HTTP请求消息中聚合多个请求建立 AF会话的信息 (譬如携带多个 AF会话对应的业务信息和 AF会话标识信息 (如果由 AF分 配 AF会话标识信息) ) , PC在 HTTP应答消息中也可以聚合请求建立的多 个 AF会话的应答信息 (譬如 PC为每个 AF会话分配的 AF会话标识信息(如 果由 PC分配 AF会话标识信息 ) )。 The AF entity can aggregate multiple requests to establish an AF session information in an HTTP request message. (For example, carrying service information corresponding to multiple AF sessions and AF session identification information (if AF session identification information is assigned by AF)), the PC may also aggregate response information of multiple AF sessions requested in the HTTP response message (such as PC). AF session identification information assigned to each AF session (if the AF session identification information is assigned by the PC).

图 9为会话信息更新过程中 (即 AF会话修改过程中) 的会话管理流程 图, 包括如下步骤 901至 905:  FIG. 9 is a flow chart of the session management process during the session information update process, that is, during the AF session modification process, and includes the following steps 901 to 905:

步骤 901. UE与 AF实体进行交互, 进行媒体重协商, AF实体确定业务 相关信息。  Step 901. The UE interacts with the AF entity to perform media renegotiation, and the AF entity determines service related information.

步骤 902.AF实体向 PC发起 AF会话修改流程修改图 8建立的 AF会话, 提供 AF会话标识信息和业务信息。  Step 902. The AF entity initiates an AF session modification process to the PC to modify the AF session established in FIG. 8 to provide AF session identification information and service information.

该步骤中, AF实体向 PC发送第三 HTTP请求消息, 第三 HTTP请求消 息中携带图 8定义的 AF会话标识信息以及媒体信息描述。此夕卜,该第三 HTTP 请求消息中还可以携带一个显式的 AF会话修改指示。 PC根据 AF会话标识 信息确定之前保存的业务信息, 并进行更新。  In this step, the AF entity sends a third HTTP request message to the PC, where the third HTTP request message carries the AF session identification information and the media information description defined in FIG. Furthermore, the third HTTP request message may also carry an explicit AF session modification indication. The PC determines the previously saved service information based on the AF session identification information and updates it.

步骤 903.PC根据 AF会话标识信息确定对应的 Diameter会话。 PC向 PCRF 发起 AF会话修改流程, 提供业务信息。  Step 903. The PC determines a corresponding Diameter session according to the AF session identification information. The PC initiates an AF session modification process to the PCRF to provide service information.

该步骤中, AF向 PCRF实体发送 Diameter AAR消息, AAR消息中携带 对应的 Diameter会话实体标识和媒体信息描述。  In this step, the AF sends a Diameter AAR message to the PCRF entity, where the AAR message carries the corresponding Diameter session entity identifier and media information description.

步骤 904. PCRF实体根据 Diameter会话标识确认之前保存业务信息并进 行更新, PCRF实体向 PC返回 Diameter认证 4受权应答 ( Authentication and Authorization Answer, 简称 AAA ) 消息;  Step 904. The PCRF entity saves the service information and updates according to the Diameter session identifier, and the PCRF entity returns a Diameter Authentication 4 (Authentication and Authorization Answer, AAA for short message) message to the PC;

步骤 905. PC向 AF实体返回第三 HTTP请求消息的应答。  Step 905. The PC returns a response of the third HTTP request message to the AF entity.

上述流程中, 对于 AF实体和 PC之间 TCP连接的处理, 可以釆用以下 两种方案:  In the above process, for the processing of the TCP connection between the AF entity and the PC, the following two schemes can be used:

1 )釆用 HTTP persistent connection机制。 AF实体釆用已有的 TCP连接 1) Use the HTTP persistent connection mechanism. AF entity uses existing TCP connection

(即第一 TCP连接 ) 向 PC发送第三 HTTP请求消息。 (ie, the first TCP connection) sends a third HTTP request message to the PC.

2 ) 不釆用 HTTP persistent connection机制。 执行步骤 902时, AF实体 先与 PC建立第一 TCP连接后发送第三 HTTP请求消息。在执行步骤 905后, 第一 TCP连接断开。 2) Do not use the HTTP persistent connection mechanism. When step 902 is performed, the AF entity first sends a third HTTP request message after establishing a first TCP connection with the PC. After performing step 905, The first TCP connection is broken.

AF可以在一个 HTTP请求消息中聚合多个请求修改 AF会话的信息 (譬 如携带多个 AF会话对应的业务信息和 AF会话标识信息) , PC在 HTTP应 答消息中也可以聚合请求修改的多个 AF会话的应答信息。  The AF may aggregate multiple information for modifying the AF session in an HTTP request message (for example, carrying service information corresponding to multiple AF sessions and AF session identification information), and the PC may aggregate the multiple AFs requested to be modified in the HTTP response message. The response information of the session.

图 10为 AF会话终结过程中的会话管理流程图, 包括如下步骤 1001至 1005: Figure 10 is a flowchart of session management during the termination of the AF session, including the following steps 1001 to 1005:

步骤 1001. UE与 AF实体进行交互, 终结会话。  Step 1001. The UE interacts with the AF entity to terminate the session.

步骤 1002.AF实体向 PC发起 AF会话终结流程终结图 8建立的 AF会话。 该步骤中, AF实体向 PC发送第三 HTTP请求消息, 第三 HTTP请求消 息中携带图 8中定义的 AF会话标识信息以及会话终结指示。  Step 1002. The AF entity initiates an AF session termination process to the PC to terminate the AF session established in FIG. In this step, the AF entity sends a third HTTP request message to the PC, where the third HTTP request message carries the AF session identification information and the session termination indication defined in FIG.

步骤 1003.PC根据 AF会话标识信息确定对应的 Diameter会话。 PC向 PCRF实体发起 AF会话终结流程。  Step 1003: The PC determines a corresponding Diameter session according to the AF session identification information. The PC initiates an AF session termination process to the PCRF entity.

该步骤中, AF 实体向 PCRF 发送 Diameter会话终结请求 (Session Termination Request , 简称 STR )消息, STR消息中携带对应的 Diameter会话 标识。  In this step, the AF entity sends a Diameter Session Termination Request (STR) message to the PCRF, and the STR message carries the corresponding Diameter session identifier.

步骤 1004. PCRF实体根据 Diameter会话标识确定之前保存业务信息并进 行删除, PCRF实体向 PC返回 Diameter会话终结应答 ( Session Termination Answer, 简称 STA ) 消息;  Step 1004. The PCRF entity determines that the service information is saved and deletes according to the Diameter session identifier, and the PCRF entity returns a Session Termination Answer (STA) message to the PC.

步骤 1005. PC删除对应的业务信息, PC向 AF实体返回第三 HTTP请求 消息的应答。  Step 1005. The PC deletes the corresponding service information, and the PC returns a response of the third HTTP request message to the AF entity.

上述流程中, 对于 AF实体和 PC之间 TCP连接的处理, 可以釆用以下 两种方案:  In the above process, for the processing of the TCP connection between the AF entity and the PC, the following two schemes can be used:

1 )釆用 HTTP persistent connection机制。 AF实体釆用已有的 TCP连接 (即第一 TCP连接 ) 向 PC发送第三 HTTP请求消息。  1) Use the HTTP persistent connection mechanism. The AF entity sends a third HTTP request message to the PC using the existing TCP connection (ie, the first TCP connection).

2 )不釆用 HTTP persistent connection机制。 执行步骤 1002时, AF实体 先与 PC建立第一 TCP连接后发送第三 HTTP请求消息。在执行步骤 1005后, 第一 TCP连接断开。 2) Do not use the HTTP persistent connection mechanism. When step 1002 is performed, the AF entity first sends a third HTTP connection message after establishing a first TCP connection with the PC. After performing step 1005, The first TCP connection is broken.

AF可以在一个 HTTP请求消息中聚合多个请求终结 AF会话的信息 (譬 如携带多个 AF会话对应的业务信息和 AF会话标识信息) , PC在 HTTP应 答消息中也可以聚合请求终结的多个 AF会话的应答信息。  The AF may aggregate information of multiple request termination AF sessions in an HTTP request message (for example, carrying service information corresponding to multiple AF sessions and AF session identification information), and the PC may aggregate multiple AFs that are requested to be terminated in the HTTP response message. The response information of the session.

图 11 为承载层事件上报过程中的会话管理流程图, 包括如下步骤 1101 至 1105: Figure 11 is a flow chart of session management during the bearer layer event reporting process, including the following steps 1101 to 1105:

步骤 1101.PCRF实体感知到承载层事件, 如 IP-CAN类型改变。  Step 1101. The PCRF entity perceives a bearer layer event, such as an IP-CAN type change.

步骤 1102.PCRF实体向 PC上报图 8中建立的 AF会话相关承载层事件。 该步骤中, PCRF 实体向 AF 实体发送 Diameter 重认证请求 Step 1102: The PCRF entity reports the AF session-related bearer layer event established in Figure 8 to the PC. In this step, the PCRF entity sends a Diameter re-authentication request to the AF entity.

( Re-Authentication Request, 简称 RAR ) 消息, 携带承载层事件和步骤 803 定义的 Diameter会话标识。 (Re-Authentication Request, RAR for short) message, carrying the bearer layer event and the Diameter session identifier defined in step 803.

步骤 1103.PC根据 Diameter会话标识确定 AF会话标识信息。 PC向 AF 上报承载层事件。  Step 1103: The PC determines the AF session identification information according to the Diameter session identifier. The PC reports the bearer layer event to the AF.

该步骤中, PC向 AF实体发送第二 HTTP请求消息, 其中携带承载层事 件和对应的 AF会话标识信息。该第二 HTTP请求消息中用于寻址 AF的 URL 为图 8中 AF提供的 URL2。  In this step, the PC sends a second HTTP request message to the AF entity, where the bearer layer event and the corresponding AF session identifier information are carried. The URL used to address the AF in the second HTTP request message is URL2 provided by AF in FIG.

步骤 1104.AF实体根据 AF会话标识信息确定该 UE对应的应用层会话, 获知该应用层会话对应的承载层事件。 从而进行相关的处理。 AF向 PC返回 第二 HTTP请求消息的应答。  Step 1104: The AF entity determines an application layer session corresponding to the UE according to the AF session identifier information, and learns the bearer layer event corresponding to the application layer session. Thereby performing related processing. The AF returns a response to the second HTTP request message to the PC.

步骤 1105. PC向 PCRF实体返回 Diameter重认证应答( Re-Authentication Answer, 简称 RAA ) 消息。  Step 1105. The PC returns a Diameter Re-Authentication Answer (RAA) message to the PCRF entity.

上述流程中, 对于 PC和 AF实体之间 TCP连接的处理, 可以釆用以下 两种方案:  In the above process, for the processing of the TCP connection between the PC and the AF entity, the following two schemes can be used:

1 )釆用 HTTP persistent connection机制。 执行步骤 1103时, 若 PC与 1) Use the HTTP persistent connection mechanism. When performing step 1103, if PC and

AF实体已存在 TCP连接 (即第二 TCP连接 ) , 则 PC釆用已有的 TCP连接 向 AF发送第二 HTTP请求消息, 若不存在 TCP连接, 则 PC先与 AF建立第 二 TCP连接后发送第二 HTTP请求消息。 在执行步骤 1104后, 第二 TCP连 接也不断开。 If the AF entity already has a TCP connection (ie, a second TCP connection), the PC sends an second HTTP request message to the AF by using the existing TCP connection. If there is no TCP connection, the PC first sends a second TCP connection with the AF and then sends the second HTTP connection message. The second HTTP request message. After performing step 1104, the second TCP connection It does not disconnect.

2 )不釆用 HTTP persistent connection机制。 执行步骤 1103时, PC先与 AF实体建立第二 TCP连接后发送第二 HTTP请求消息。在执行步骤 1104后, 第二 TCP连接断开。  2) Do not use the HTTP persistent connection mechanism. When step 1103 is performed, the PC first sends a second TCP request message after establishing a second TCP connection with the AF entity. After performing step 1104, the second TCP connection is broken.

PC可以在一个 HTTP请求消息中聚合多个 AF会话的事件信息 (譬如携 带多个 AF会话对应的事件信息和 AF会话标识信息) , AF在 HTTP应答消 息中也可以聚合多个 AF会话事件上报的应答信息。  The PC may aggregate event information of multiple AF sessions in an HTTP request message (for example, carrying event information corresponding to multiple AF sessions and AF session identification information), and the AF may also aggregate multiple AF session events in the HTTP response message. Answer the message.

图 12为 IP-CAN终结过程中的会话管理流程图(PCRF实体通知 AF实体 IP-CAN会话终结可以认为一种特殊的承载层事件上报), 包括如下步骤 1201 至 1205: Figure 12 is a flowchart of the session management in the IP-CAN termination process (the PCRF entity notifies the AF entity that the IP-CAN session termination can be considered as a special bearer layer event report), and includes the following steps 1201 to 1205:

步骤 1201. PCRF实体感知到 IP-CAN会话终结。  Step 1201. The PCRF entity perceives the termination of the IP-CAN session.

步骤 1202.PCRF实体向 PC发送 Diameter终止会话请求( Abort Session Request, 简称 ASR ) 消息, 其中携带 Diameter会话标识;  Step 1202: The PCRF entity sends a Diameter Termination Session Request (ASR) message to the PC, where the Diameter session identifier is carried;

步骤 1203.PC向 PCRF实体返回 Diameter终止会话应答 ( Abort Session Step 1203. The PC returns a Diameter termination session response to the PCRF entity (Abort Session

Answer, 简称 ASA ) 消息。 Answer, referred to as ASA) message.

步骤 1204. PC向 PCRF实体发送 Diameter STR消息 , 携带 Diameter会话 标识;  Step 1204. The PC sends a Diameter STR message to the PCRF entity, carrying the Diameter session identifier.

步骤 1205.PCRF实体向 PC返回 Diameter STA消息。  Step 1205. The PCRF entity returns a Diameter STA message to the PC.

步骤 1206.PC根据 Diameter会话消息确定对应的 AF会话标识信息。 PC 通知 AF实体图 8中建立的 AF会话相关的传输资源丟失。该步骤可以有步骤 1202或步骤 1205触发。  Step 1206. The PC determines corresponding AF session identification information according to the Diameter session message. The PC notifies the AF entity that the transmission resources associated with the AF session established in Figure 8 are lost. This step can be triggered by step 1202 or step 1205.

该步骤中, PC向 AF实体发送第二 HTTP请求消息, 其中携带请求会话 终结指示和对应的 AF会话标识信息。 该第二 HTTP消息中用于寻址 AF的 URL为图 8中 AF提供的 URL1。  In this step, the PC sends a second HTTP request message to the AF entity, where the request carries the session termination indication and the corresponding AF session identification information. The URL for addressing AF in the second HTTP message is URL1 provided by AF in FIG.

步骤 1207.AF实体根据 AF会话标识信息确定该 UE对应的应用层会话, 获知该应用层会话对应的传输资源丟失。 从而进行相关的处理。 AF 实体向 PC返回第二 HTTP请求消息的应答。 上述流程中, 对于 PC和 AF实体之间 TCP连接的处理, 可以釆用以下 两种方案: Step 1207: The AF entity determines an application layer session corresponding to the UE according to the AF session identifier information, and learns that the transmission resource corresponding to the application layer session is lost. Thereby performing related processing. The AF entity returns a response to the second HTTP request message to the PC. In the above process, for the processing of the TCP connection between the PC and the AF entity, the following two schemes can be used:

1 )釆用 HTTP persistent connection机制。 执行步骤 1106时, 若 PC与 AF实体已存在 TCP连接 (即第二 TCP连接 ) , 则 PC釆用已有的 TCP连接 向 AF实体发送第二 HTTP请求消息, 若不存在 TCP连接, 则 PC先与 AF建 立第二 TCP连接后发送第二 HTTP请求消息。在执行步骤 1107后,第二 TCP 连接也不断开。  1) Use the HTTP persistent connection mechanism. When the step 1106 is performed, if the PC and the AF entity already have a TCP connection (ie, a second TCP connection), the PC sends an second HTTP request message to the AF entity by using the existing TCP connection. If there is no TCP connection, the PC first Sending a second HTTP request message after establishing a second TCP connection with the AF. After performing step 1107, the second TCP connection is also not broken.

2 )不釆用 HTTP persistent connection机制。 执行步骤 1106时, PC先与 AF建立第二 TCP连接后发送第二 HTTP请求消息。 在执行步骤 1107后, 第 二 TCP连接断开。  2) Do not use the HTTP persistent connection mechanism. When step 1106 is performed, the PC first sends a second TCP connection message after establishing a second TCP connection with the AF. After performing step 1107, the second TCP connection is broken.

PC可以在一个 HTTP请求消息中聚合多个 AF会话的传输资源丟失事件 信息 (譬如携带多个 AF会话对应的事件信息和 AF会话标识信息) , AF在 HTTP应答消息中也可以聚合多个 AF会话事件上报的应答信息。  The PC may aggregate the transmission resource loss event information of multiple AF sessions in an HTTP request message (for example, carrying event information corresponding to multiple AF sessions and AF session identification information), and the AF may also aggregate multiple AF sessions in the HTTP response message. The response information reported by the event.

可选地, 在上述步骤 302中和步骤 802中, AF实体分别向 PCRF实体和 PC发送的第一 HTTP请求消息中的内容以 XML语言描述如下 (Example 1):  Optionally, in the foregoing step 302 and in step 802, the content of the first HTTP request message sent by the AF entity to the PCRF entity and the PC respectively is described in the XML language as follows (Example 1):

<AAR command> <AAR command>

<Framed-IP-Address Framed-IP-Address=" ... ">< Framed-IP-Address>  <Framed-IP-Address Framed-IP-Address=" ... ">< Framed-IP-Address>

<Framed-IPv6-Prefix Framed-IPv6-Prefix=" ... ' ' >< Fr amed-ΙΡνό -Prefix>  <Framed-IPv6-Prefix Framed-IPv6-Prefix=" ... ' ' >< Fr amed-ΙΡνό -Prefix>

<Subscriptions-Id Subscriptions-ID="... "></Subscription-Id>  <Subscriptions-Id Subscriptions-ID="... "></Subscription-Id>

<Called-Station-Id Called-Station-ID="... "></Called-Station-Id>  <Called-Station-Id Called-Station-ID="... "></Called-Station-Id>

<Service-Session-Id Service-Session-ID="... "></Service-Session-Id>  <Service-Session-Id Service-Session-ID="... "></Service-Session-Id>

<IP-Domain-Id IP-Domain-ID="... ">< IP-Domain-Id>  <IP-Domain-Id IP-Domain-ID="... ">< IP-Domain-Id>

<AF-Application-Identifier AF-Application-Identifier=" ... "></AF-Application-Identifier> <Media-Component-Description>  <AF-Application-Identifier AF-Application-Identifier=" ... "></AF-Application-Identifier> <Media-Component-Description>

<Media-Component-Number  <Media-Component-Number

Media- Component-Number= ' ' ... ' ' >< Media- Component-Number>  Media- Component-Number= ' ' ... ' ' >< Media- Component-Number>

<Media-Sub-Component>  <Media-Sub-Component>

<Flow-Number Flow-Number= ' ' ... ' ' >< Flow-Number>  <Flow-Number Flow-Number= ' ' ... ' ' >< Flow-Number>

<Flow-Description Flow-Description=" ... ">< Flow-Description>  <Flow-Description Flow-Description=" ... ">< Flow-Description>

<Flow-Status Flow-Status="... ">< Flow-Status>  <Flow-Status Flow-Status="... ">< Flow-Status>

<Flow-Usage Flow-Usage=" ... ">< Flow-Usage>  <Flow-Usage Flow-Usage=" ... ">< Flow-Usage>

<Max- equested-Bandwidth-UL  <Max- equested-Bandwidth-UL

Max- equested-Bandwidth-UL=" ... ">< Max- eqeusted-Bandwidth>  Max-equested-Bandwidth-UL=" ... ">< Max- eqeusted-Bandwidth>

<Max- equested-Bandwidth-DL Max- equested-Bandwidth-DL=" ... ">< Max- equested-Bandwidth-DL> <Max- equested-Bandwidth-DL Max-equested-Bandwidth-DL=" ... ">< Max- equested-Bandwidth-DL>

<AF- Signalling-Protocol AF-Signalling-Protocol=" ... "></AF-Signalling-Protocol> < Media-Sub-Component>  <AF- Signalling-Protocol AF-Signalling-Protocol=" ... "></AF-Signalling-Protocol> < Media-Sub-Component>

<AF-Application-Identifier AF-Application-Identifier=" ... "></AF-Application-Identifier> <Media-Type Media-Type=" ... ">< Media-Type>  <AF-Application-Identifier AF-Application-Identifier=" ... "></AF-Application-Identifier> <Media-Type Media-Type=" ... ">< Media-Type>

<Max- equested-Bandwidth-UL  <Max- equested-Bandwidth-UL

Max- equested-Bandwidth-UL=" ... ">< Max- eqeusted-Bandwidth-UL> Max-equested-Bandwidth-UL=" ... ">< Max- eqeusted-Bandwidth-UL>

<Max- equested-Bandwidth-DL  <Max- equested-Bandwidth-DL

Max- equested-Bandwidth-DL=" ... ">< Max- equested-Bandwidth-DL> Max-equested-Bandwidth-DL=" ... ">< Max- equested-Bandwidth-DL>

<Min-Requested-Bandwidth-UL  <Min-Requested-Bandwidth-UL

Min-Requested-Bandwidth-UL=" ... ">< Min-Reqeusted-Bandwidth-UL>  Min-Requested-Bandwidth-UL=" ... ">< Min-Reqeusted-Bandwidth-UL>

<Min-Requested-Bandwidth-DL  <Min-Requested-Bandwidth-DL

Min-Requested-Bandwidth-DL=" ... ">< Min-Requested-Bandwidth-DL> Min-Requested-Bandwidth-DL=" ... ">< Min-Requested-Bandwidth-DL>

<Flow-Status Flow-Status="... ">< Flow-Status>  <Flow-Status Flow-Status="... ">< Flow-Status>

<Reservation-Priority Reservation-Priority^" ... ">< Reservation-Priority> <Reservation-Priority Reservation-Priority^" ... ">< Reservation-Priority>

<RS-Bandwidth RS-Bandwidth="... ">< RS-Bandwidth> <RS-Bandwidth RS-Bandwidth="... ">< RS-Bandwidth>

<RR-Bandwidth RR-Bandwidth=" ... ">< RR-Bandwidth>  <RR-Bandwidth RR-Bandwidth=" ... ">< RR-Bandwidth>

<Codec-Data Codec-Data="... "></Codec-Data>  <Codec-Data Codec-Data="... "></Codec-Data>

< Media-Component-Description>  < Media-Component-Description>

<Service-Info-Status Service-Info-Status=" ... "></Service-Info-Status>  <Service-Info-Status Service-Info-Status=" ... "></Service-Info-Status>

<AF-Charging-Identifier AF-Charging-Identifier=" ... "></AF-Charging-Identifier>  <AF-Charging-Identifier AF-Charging-Identifier=" ... "></AF-Charging-Identifier>

<SIP-Forking-Indication SIP-Forking-Indication="... "></SIP-Forking-Indication>  <SIP-Forking-Indication SIP-Forking-Indication="... "></SIP-Forking-Indication>

<Specific-Action Specific-Action=M... "></Specifici-Action> <Specific-Action Specific-Action= M ... "></Specifici-Action>

</AAR command>  </AAR command>

在步骤 302中和步骤 802中, AF实体分别向 PCRF实体和 PC发送的第 一 HTTP请求消息中的内容以 JSON语言描述如下 (Example 2):  In step 302 and in step 802, the contents of the first HTTP request message sent by the AF entity to the PCRF entity and the PC, respectively, are described in the JSON language as follows (Example 2):

{ "AAR": { "AAR":

{  {

"Framed-IP-Address": "Valuel",  "Framed-IP-Address": "Valuel",

, ' Framed-IPv6 -Prefix": "Value2 ' ' ,  , ' Framed-IPv6 -Prefix": "Value2 ' ' ,

"Subscription-Id": "Value3 ",  "Subscription-Id": "Value3",

"Called- Station-Id": "Value4",  "Called- Station-Id": "Value4",

"Service-Session-Id": "Value5",  "Service-Session-Id": "Value5",

"IP-Domain-Id": "Value6",  "IP-Domain-Id": "Value6",

" AF-Application-Identifier": "Value7",  "AF-Application-Identifier": "Value7",

"Media-Component-Description":  "Media-Component-Description":

{  {

"Optional": "YES"  "Optional": "YES"

"Media-Component-Number": "Value8",  "Media-Component-Number": "Value8",

"AF-Application-Identifier": "Value9", "Media-Type": "ValuelO", "AF-Application-Identifier": "Value9", "Media-Type": "ValuelO",

"Max- equested-Bandwidth-UL": "Valuel l",  "Max-equested-Bandwidth-UL": "Valuel l",

"Max- equested-Bandwidth-DL": "Valuel2",  "Max-equested-Bandwidth-DL": "Valuel2",

"Min-Requested-Bandwidth-UL": "Valuel3",  "Min-Requested-Bandwidth-UL": "Valuel3",

"Min-Requested-Bandwidth-DL": "Valuel4"  "Min-Requested-Bandwidth-DL": "Valuel4"

"Flow-Status": "Value 15  "Flow-Status": "Value 15

"Reservation-Priority": "Valuel6",  "Reservation-Priority": "Valuel6",

"RS-Bandwidth": "Valuel7",  "RS-Bandwidth": "Valuel7",

"RR-Bandwidth": "Valuel8",  "RR-Bandwidth": "Valuel8",

"Codec-Data": "Valuel9",  "Codec-Data": "Valuel9",

"Media-Sub-Component":  "Media-Sub-Component":

{  {

"Flow-Number": "Value20",  "Flow-Number": "Value20",

"Flow-Status": "Value21",  "Flow-Status": "Value21",

"Flow-Usage": "Value22",  "Flow-Usage": "Value22",

"Max-Requested-Bandwidth-UL": "Value23  "Max-Requested-Bandwidth-UL": "Value23

"Max-Requested-Bandwidth-DL": "Value24",  "Max-Requested-Bandwidth-DL": "Value24",

"AF- Signalling-Protocol": "Value25",  "AF-Signal-Protocol": "Value25",

"Flow-Description": "Value26",  "Flow-Description": "Value26",

} }

"Service-Info- Status": "Value27"  "Service-Info- Status": "Value27"

" AF-Charging-Identifier": "Value28"  "AF-Charging-Identifier": "Value28"

" SIP-Forking-Indication": "Value29"  "SIP-Forking-Indication": "Value29"

" Specific- Action": "Value30"  " Specific- Action": "Value30"

}  }

}  }

其中 Framed-IP- Address, Framed-IPv6-Prefix分别用来携带 UE的 IPv4地 址和 IPv6地址 (UE同一个时刻只会釆用一个地址访问业务, 因此这两个 AVP 不会同时携带)。 Service-Session-Id为用来携带业务会话标识。 IP-Domain-Id 用来携带 IP域标识, Called-Station-Id用来携带 PDN标识。 Subscription-Id用 来携带用户标识。  The Framed-IP-Address and the Framed-IPv6-Prefix are respectively used to carry the IPv4 address and IPv6 address of the UE. (The UE only uses one address to access the service at the same time, so the two AVPs are not carried at the same time). Service-Session-Id is used to carry the service session identifier. The IP-Domain-Id is used to carry the IP domain identifier, and the Called-Station-Id is used to carry the PDN identifier. The Subscription-Id is used to carry the user ID.

在步骤 402中和步骤 902中, AF实体分别向 PCRF实体和 PC发送的第 三 HTTP请求消息中的内容以 XML语言描述如下与 Example 1类似,以 JSON 语言描述如下与 Example 2类似。若步骤 302或步骤 802的 Service-Session-Id 为全局唯一标识(即 AF会话标识),则 Framed-IP-Address, Framed-IPv6-Prefix, Called-Station-Id, Subscription-Id, IP-Domain-Id等参数不携带; 若步骤 302或 步骤 802的 Service-Session-Id为不是全局唯一标识, 则还是携带与步骤 302 和步骤 802中相同的参数以便唯一标识 AF会话。 In step 402 and in step 902, the contents of the third HTTP request message sent by the AF entity to the PCRF entity and the PC respectively are described in XML language as follows, similar to Example 1, and the JSON language description is similar to Example 2 as follows. If the Service-Session-Id of step 302 or step 802 is a globally unique identifier (ie, an AF session identifier), then Framed-IP-Address, Framed-IPv6-Prefix, Called-Station-Id, Subscription-Id, IP-Domain- Parameters such as Id are not carried; if step 302 or If the Service-Session-Id of step 802 is not a globally unique identifier, the same parameters as in step 302 and step 802 are carried to uniquely identify the AF session.

在步骤 502中和步骤 1002中, AF实体分别向 PCRF实体和 PC发送的第 三 HTTP请求消息中的内容以 XML语言描述如下 ( Example 3 ) :  In step 502 and in step 1002, the contents of the third HTTP request message sent by the AF entity to the PCRF entity and the PC, respectively, are described in XML language as follows (Example 3):

<ST command>  <ST command>

<Framed-IP-Address Framed-IP-Address= " ... ">< F ramed-IP-Address>  <Framed-IP-Address Framed-IP-Address= " ... ">< F ramed-IP-Address>

<Framed-IPv6-Prefix Framed-IPv6-Prefix= " ... ">< F ramed-IPv6-Prefix>  <Framed-IPv6-Prefix Framed-IPv6-Prefix= " ... ">< F ramed-IPv6-Prefix>

<Subscriptions-Id Subscriptions-ID= " ... "></Subscription-Id>  <Subscriptions-Id Subscriptions-ID= " ... "></Subscription-Id>

<Called-Station-Id Called-Station-ID=" ... "></Called-Station-Id>  <Called-Station-Id Called-Station-ID=" ... "></Called-Station-Id>

<Service-Session-Id Service-Session-ID= " ... "></Service-Session-Id>  <Service-Session-Id Service-Session-ID= " ... "></Service-Session-Id>

<IP-Domain-Id IP-Domain-ID="■■■ ">< IP-Domain-Id>  <IP-Domain-Id IP-Domain-ID="■■■ ">< IP-Domain-Id>

<Termination-Cause Termination-Cause ="■■ . "></Termination-Cause >  <Termination-Cause Termination-Cause ="■■ . "></Termination-Cause >

</STA command>  </STA command>

在步骤 502中和步骤 1002中, AF实体分别向 PCRF实体和 PC发送的第 三 HTTP请求消息中的内容以 JSON语言描述如下 ( Example 4 )  In step 502 and in step 1002, the contents of the third HTTP request message sent by the AF entity to the PCRF entity and the PC respectively are described in the JSON language as follows (Example 4)

{ "STR":  { "STR":

{  {

"Framed-IP-Address": "Valuel",  "Framed-IP-Address": "Valuel",

, ' Framed-IPv6 -Prefix": "Value2 ' ' ,  , ' Framed-IPv6 -Prefix": "Value2 ' ' ,

"Subscription-Id": "Value3",  "Subscription-Id": "Value3",

"Called- Station-Id": "Value4",  "Called- Station-Id": "Value4",

"Service-Session-Id": "Value5",  "Service-Session-Id": "Value5",

"IP-Domain-Id": "Value6",  "IP-Domain-Id": "Value6",

"Termination-Cause": "Value7",  "Termination-Cause": "Value7",

}  }

}  }

若步骤 302或步骤 802的 Service-Session-Id为全局唯一标识(即 AF会话 标识 ) , 则 Framed-IP-Address, Framed-IPv6-Prefix , Called- Station-Id, Subscription-Id, IP-Domain-Id 等参数不携带; 若步骤 302 或步骤 802 的 Service-Session-Id不是全局唯一标识,则还是携带与步骤 302和步骤 802中相 同的参数以便唯一标识 AF会话。  If the Service-Session-Id of step 302 or step 802 is a globally unique identifier (ie, an AF session identifier), then Framed-IP-Address, Framed-IPv6-Prefix, Called-Station-Id, Subscription-Id, IP-Domain- The parameters such as Id are not carried; if the Service-Session-Id of step 302 or step 802 is not a globally unique identifier, the same parameters as in step 302 and step 802 are carried to uniquely identify the AF session.

在步骤 602中和步骤 1103中, PCRF实体向 AF实体以及 PC向 AF实体 发送的第二 HTTP请求消息中的内容以 XML语言描述如下 ( Example 5 ) : <RAR command> <Framed-IP-Address Framed-IP-Address=" ... ">< Framed-IP-Address> In step 602 and in step 1103, the content of the second HTTP request message sent by the PCRF entity to the AF entity and the PC to the AF entity is described in the XML language as follows (Example 5): <RAR command> <Framed-IP-Address Framed-IP-Address=" ... "><Framed-IP-Address>

<Framed-IPv6-Prefix Framed-IPv6-Prefix=" ... ' ' >< Fr amed-ΙΡνό -Prefix>  <Framed-IPv6-Prefix Framed-IPv6-Prefix=" ... ' ' >< Fr amed-ΙΡνό -Prefix>

<Subscriptions-Id Subscriptions-ID="... "></Subscription-Id>  <Subscriptions-Id Subscriptions-ID="... "></Subscription-Id>

<Called-Station-Id Called-Station-ID="... "></Called-Station-Id>  <Called-Station-Id Called-Station-ID="... "></Called-Station-Id>

<Service-Session-Id Service-Session-ID="... "></Service-Session-Id>  <Service-Session-Id Service-Session-ID="... "></Service-Session-Id>

<IP-Domain-Id IP-Domain-ID="... ">< IP-Domain-Id>  <IP-Domain-Id IP-Domain-ID="... ">< IP-Domain-Id>

<Specific-Action Specific-Action=M... "></Specific-Action> <Specific-Action Specific-Action= M ... "></Specific-Action>

<Abort-Cause Abort-Cause:"... "></Abort-Cause>  <Abort-Cause Abort-Cause:"... "></Abort-Cause>

<Access-Network-Charging-Identifier Access-Network-Charging-Identifier "></ Access-Network-Charging-Identifier >  <Access-Network-Charging-Identifier Access-Network-Charging-Identifier "></ Access-Network-Charging-Identifier >

<Access-Network-Charging-Address Access-Network-Charging-Address ="... "></ <Access-Network-Charging-Address Access-Network-Charging-Address ="... "></

Access-Network-Charging-Address> Access-Network-Charging-Address>

<Flows >  <Flows >

<Media-Component-Number  <Media-Component-Number

Media- Component-Number= ' ' ... ' ' >< Media- Component-Number>  Media- Component-Number= ' ' ... ' ' >< Media- Component-Number>

<Flow-Number Flow-Number= ' ' ... ' ' >< Flow-Number>  <Flow-Number Flow-Number= ' ' ... ' ' >< Flow-Number>

<Final-Unit- Action Final-Unit- Action^" ... ">< Final-Unit-Action>  <Final-Unit- Action Final-Unit- Action^" ... ">< Final-Unit-Action>

< Flows>  < Flows>

<IP-CAN-Type IP-CAN-Type=" ... ">< IP-CAN-Type>  <IP-CAN-Type IP-CAN-Type=" ... ">< IP-CAN-Type>

<RAT-Type RAT-Type>=" ... ">< RAT-Type>  <RAT-Type RAT-Type>=" ... ">< RAT-Type>

< RAR command>  < RAR command>

在步骤 602中和步骤 1103中, PCRF实体向 AF实体以及 PC向 AF实体 发送的第二 HTTP请求消息中的内容以 JSON语言描述如下 (Example 6 ) :  In step 602 and in step 1103, the contents of the second HTTP request message sent by the PCRF entity to the AF entity and the PC to the AF entity are described in the JSON language as follows (Example 6):

{ "RAR":  { "RAR":

{  {

"Framed-IP-Address": "Valuel",  "Framed-IP-Address": "Valuel",

, ' Framed-IPv6 -Prefix": "Value2 ' ' ,  , ' Framed-IPv6 -Prefix": "Value2 ' ' ,

"Subscription-Id": "Value3 ",  "Subscription-Id": "Value3",

"Called- Station-Id": "Value4",  "Called- Station-Id": "Value4",

"Service-Session-Id": "Value5",  "Service-Session-Id": "Value5",

"IP-Domain-Id": "Value6",  "IP-Domain-Id": "Value6",

" Specific-Action": "Value7",  "Specific-Action": "Value7",

" Abort-Cause": "Value8",  "Abort-Cause": "Value8",

" Access-Network-Charging-Identifier ": "Value9",  "Access-Network-Charging-Identifier": "Value9",

" Access-Network-Charging-Address": "ValuelO",  "Access-Network-Charging-Address": "ValuelO",

"Flows":  "Flows":

{  {

" Media-Component-Number ": "Valuel 1",  "Media-Component-Number": "Valuel 1",

" Flow-Number ": "Valuel2",  "Flow-Number": "Valuel2",

" Final-Unit- Action": "Valuel3", } " Final-Unit- Action": "Valuel3", }

" IP-CAN-Type": "Valuel4",  "IP-CAN-Type": "Valuel4",

" RAT-Type ": "Valuel5",  "RAT-Type": "Valuel5",

}  }

}  }

若步骤 302或步骤 802的 Service-Session-Id为全局唯一标识(即 AF会话 标识 ) , 则 Framed-IP-Address, Framed-IPv6-Prefix , Called- Station-Id, Subscription-Id, IP-Domain-Id 等参数不携带; 若步骤 302 或步骤 802 的 Service-Session-Id不是全局唯一标识,则还是携带与步骤 302和步骤 802中相 同的参数以便唯一标识 AF会话。  If the Service-Session-Id of step 302 or step 802 is a globally unique identifier (ie, an AF session identifier), then Framed-IP-Address, Framed-IPv6-Prefix, Called-Station-Id, Subscription-Id, IP-Domain- The parameters such as Id are not carried; if the Service-Session-Id of step 302 or step 802 is not a globally unique identifier, the same parameters as in step 302 and step 802 are carried to uniquely identify the AF session.

在步骤 702中和步骤 1103中, PCRF实体向 AF实体以及 PC向 AF实体 发送的第二 HTTP请求消息中的内容以 XML语言描述如下 ( Example 7 ) :In step 702 and in step 1103, the contents of the second HTTP request message sent by the PCRF entity to the AF entity and the PC to the AF entity are described in the XML language as follows (Example 7):

<ST command> <ST command>

<Framed-IP-Address Framed-IP-Address=" ... ">< Framed-IP-Address>  <Framed-IP-Address Framed-IP-Address=" ... ">< Framed-IP-Address>

<Framed-IPv6-Prefix Framed-IPv6-Prefix=" ... ' ' >< Fr amed-ΙΡνό -Prefix>  <Framed-IPv6-Prefix Framed-IPv6-Prefix=" ... ' ' >< Fr amed-ΙΡνό -Prefix>

<Subscriptions-Id Subscriptions-ID="... "></Subscription-Id>  <Subscriptions-Id Subscriptions-ID="... "></Subscription-Id>

<Called-Station-Id Called-Station-ID="... "></Called-Station-Id>  <Called-Station-Id Called-Station-ID="... "></Called-Station-Id>

<Service-Session-Id Service-Session-ID="... "></Service-Session-Id>  <Service-Session-Id Service-Session-ID="... "></Service-Session-Id>

<IP-Domain-Id IP-Domain-ID="... ">< IP-Domain-Id>  <IP-Domain-Id IP-Domain-ID="... ">< IP-Domain-Id>

<Abort-Cause Abort-Cause:"... "></Abort-Cause>  <Abort-Cause Abort-Cause:"... "></Abort-Cause>

</ST command>  </ST command>

在步骤 702中和步骤 1103中, PCRF实体向 AF实体以及 PC向 AF实体 发送的第二 HTTP请求消息中的内容以 JSON语言描述如下 (Example 8 ) :  In step 702 and in step 1103, the contents of the second HTTP request message sent by the PCRF entity to the AF entity and the PC to the AF entity are described in the JSON language as follows (Example 8):

{ "RAR":  { "RAR":

{  {

"Framed-IP-Address": "Valuel",  "Framed-IP-Address": "Valuel",

, ' Framed-IPv6 -Prefix": "Value2 ' ' ,  , ' Framed-IPv6 -Prefix": "Value2 ' ' ,

"Subscription-Id": "Value3 ",  "Subscription-Id": "Value3",

"Called- Station-Id": "Value4",  "Called- Station-Id": "Value4",

"Service-Session-Id": "Value5",  "Service-Session-Id": "Value5",

"IP-Domain-Id": "Value6",  "IP-Domain-Id": "Value6",

" Abort-Cause": "Value7",  "Abort-Cause": "Value7",

}  }

}  }

若步骤 302或步骤 802的 Service-Session-Id为全局唯一标识(即 AF会话 标识 ) , 则 Framed-IP-Address, Framed-IPv6-Prefix , Called- Station-Id, Subscription-Id, IP-Domain-Id 等参数不携带; 若步骤 302 或步骤 802 的 Service-Session-Id不是全局唯一标识,则还是携带与步骤 302和步骤 802中相 同的参数以便唯一标识 AF会话。 If the Service-Session-Id of step 302 or step 802 is a globally unique identifier (ie, an AF session) ID), Framed-IP-Address, Framed-IPv6-Prefix, Called-Station-Id, Subscription-Id, IP-Domain-Id, etc. are not carried; if the Service-Session-Id of step 302 or step 802 is not global The unique identifier then carries the same parameters as in steps 302 and 802 to uniquely identify the AF session.

实施例 2 Example 2

本实施例提供一种应用功能( AF )实体,其同时支持 HTTP客户端和 HTTP 服务器, 并可实现上述实施例 1中的 AF的各种功能。 该 AF实体至少包括如 下各单元。  The embodiment provides an application function (AF) entity, which supports both an HTTP client and an HTTP server, and can implement various functions of the AF in the above embodiment 1. The AF entity includes at least the following units.

第一单元, 设置为: 在本 AF实体与策略服务器建立 AF会话时, 向所述 策略服务器发送第一 HTTP请求消息以及接收所述策略服务器返回的第一 HTTP请求消息的应答;  The first unit is configured to: when the AF entity establishes an AF session with the policy server, send a first HTTP request message to the policy server, and receive a response of the first HTTP request message returned by the policy server;

其中,第一单元在所述第一 HTTP请求消息中携带 AF会话标识信息; 或 者,从所述策略服务器返回的第一 HTTP请求消息的应答中获取 AF会话标识 信息;  The first unit carries the AF session identifier information in the first HTTP request message; or obtains the AF session identifier information from the response of the first HTTP request message returned by the policy server;

第二单元, 设置为: 接收所述策略服务器向本 AF实体通知所述 AF会话 的承载层事件时,发送的携带有所述 AF会话标识信息的第二 HTTP请求消息, 并向所述策略服务器返回所述第二 HTTP请求消息的应答。  The second unit is configured to: when receiving the bearer layer event of the AF session, the policy server sends the second HTTP request message carrying the AF session identifier information to the policy server Returning a response to the second HTTP request message.

在上述架构的基础上, AF 实体还可以包括, 第三单元, 该单元在所述 AF与所述策略服务器修改或终结所述 AF会话时, 向所述策略服务器发送第 三 HTTP请求消息, 所述第三 HTTP请求消息中携带所述 AF会话标识信息, 以及接收所述策略服务器返回的所述第三 HTTP请求消息的应答。  On the basis of the foregoing architecture, the AF entity may further include: a third unit, where the unit sends a third HTTP request message to the policy server when the AF and the policy server modify or terminate the AF session, where The third HTTP request message carries the AF session identification information, and receives a response of the third HTTP request message returned by the policy server.

需要说明的是, 本实施例中的 AF实体与策略服务器之间 TCP连接的处 理, 可以釆用或不釆用 HTTP persistent connection机制。 例如, 第一单元, 在 本 AF实体与策略服务器已存在 TCP连接(即第一 TCP连接)时, 釆用该第 一 TCP连接发送第一 HTTP请求消息, 而在本 AF与策略服务器之间未建立 TCP连接时,第一单元先与策略服务器建立第一 TCP连接,再发送第一 HTTP 请求消息。 同样地, 第三单元, 在本 AF实体与策略服务器已存在 TCP连接 (即第一 TCP连接)时, 釆用第一 TCP连接发送第三 HTTP请求消息, 而在 本 AF与策略服务器未建立 TCP连接时, 第三单元先与策略服务器建立第一 TCP连接, 再发送第三 HTTP请求消息。 It should be noted that, in the processing of the TCP connection between the AF entity and the policy server in this embodiment, the HTTP persistent connection mechanism may or may not be used. For example, in the first unit, when the AF entity and the policy server already have a TCP connection (ie, the first TCP connection), the first HTTP request message is sent by using the first TCP connection, and the first AF request message is not between the AF and the policy server. When a TCP connection is established, the first unit first establishes a first TCP connection with the policy server, and then sends a first HTTP request message. Similarly, in the third unit, there is already a TCP connection between the AF entity and the policy server. (ie, the first TCP connection), the first TCP connection message is sent by using the first TCP connection, and when the AF connection is not established between the AF and the policy server, the third unit first establishes a first TCP connection with the policy server, and then sends The third HTTP request message.

而第一单元, 设置为: 接收到策略服务器发送的第一 HTTP请求消息的 应答后, 可以保留可断开本 AF与策略服务器之间的第一 TCP连接。 同样地, 第三单元, 在接收到策略服务器发送的第三 HTTP请求消息的应答后, 也可 以保留或断开本 AF与策略服务器之间的第一 TCP连接。 还要说明的是,上述第二单元,设置为:接收策略服务器发送的第二 HTTP 请求消息时, 是釆用策略服务器与本 AF实体之间的第二 TCP连接进行接收 的, 相应的, 第二单元也是釆用第二 TCP连接向策略服务器返回第二 HTTP 请求消息的应答的。  The first unit is configured to: after receiving the response of the first HTTP request message sent by the policy server, the first TCP connection between the AF and the policy server may be disconnected. Similarly, after receiving the response of the third HTTP request message sent by the policy server, the third unit may also reserve or disconnect the first TCP connection between the AF and the policy server. It should be noted that the foregoing second unit is configured to: when receiving the second HTTP request message sent by the policy server, receive the second TCP connection between the policy server and the AF entity, correspondingly, The second unit also responds with a second TCP connection returning a second HTTP request message to the policy server.

而在具体应用场景下, 上述 AF 实体与策略服务器之间的会话管理过程 可参见上述实施例 1中相应的内容, 在此不再赘述。  For the session management process between the foregoing AF entity and the policy server, refer to the corresponding content in the foregoing Embodiment 1, and details are not described herein again.

实施例 3 本实施例提供一种策略服务器, 其同时支持 HTTP客户端和 HTTP服务 器, 并可实现上述实施例 1 中的策略服务器的各种功能, 其至少包括第一单 元和第二单元。 第一单元, 设置为: 接收 AF实体发送的携带有 AF会话标识信息的第一 HTTP请求消息, 向 AF实体返回第一 HTTP请求消息的应答; 或者接收所述 AF实体发送的第一 HTTP请求消息, 为 AF会话分配 AF会话标识信息, 向 AF实体返回携带该 AF会话标识信息的第一 HTTP请求消息的应答。 Embodiment 3 This embodiment provides a policy server that supports both an HTTP client and an HTTP server, and implements various functions of the policy server in Embodiment 1 above, and includes at least a first unit and a second unit. The first unit is configured to: receive a first HTTP request message that is sent by the AF entity and that carries the AF session identification information, and return a response of the first HTTP request message to the AF entity; or receive the first HTTP request message sent by the AF entity. And assigning AF session identification information to the AF session, and returning, to the AF entity, a response of the first HTTP request message carrying the AF session identification information.

较佳地, 上述第一单元, 设置为: 接收第一 HTTP请求消息时, 是釆用 AF实体与本策略服务器之间的第一 TCP连接进行接收的, 相应地, 也是釆 用第一 TCP连接向 AF实体返回第一 HTTP请求消息的应答的。  Preferably, the first unit is configured to: when receiving the first HTTP request message, receive the first TCP connection between the AF entity and the policy server, and correspondingly, use the first TCP connection. Returning the response of the first HTTP request message to the AF entity.

第二单元, 设置为: 在向 AF实体通知所述 AF会话的承载层事件时, 向 AF实体发送第二 HTTP请求消息, 第二 HTTP请求消息中携带 AF会话标识 信息, 以及接收 AF实体返回的第二 HTTP请求消息的应答。 较佳地, 第二单元发送第二 HTTP请求消息时, 是在本策略服务器与 AF 已存在第二 TCP连接时, 釆用第二 TCP连接向 AF发送第二 HTTP请求消息 的, 而在本策略服务器与 AF之间未建立第二 TCP连接时, 先与 AF建立第 二 TCP连接, 再发送第二 HTTP请求消息的。 The second unit is configured to: when notifying the AF entity of the bearer layer event of the AF session, send a second HTTP request message to the AF entity, where the second HTTP request message carries the AF session identifier information, and receives the AF entity return The response of the second HTTP request message. Preferably, when the second unit sends the second HTTP request message, when the second TCP connection exists between the policy server and the AF, the second HTTP connection message is sent to the AF by using the second TCP connection, and the policy is When the second TCP connection is not established between the server and the AF, the second TCP connection is established with the AF, and the second HTTP request message is sent.

另要说明的是,上述第二单元,在接收到 AF实体发送的第二 HTTP请求 消息的应答后, 可以保留或断开本策略服务器与 AF实体之间的第二 TCP连 接。  It should be noted that, after receiving the response of the second HTTP request message sent by the AF entity, the foregoing second unit may reserve or disconnect the second TCP connection between the policy server and the AF entity.

实际应用中, 上述策略服务器可以是 PCRF实体, 或者是 PC。 PCRF实 体或者 PC与 AF实体之间的会话管理过程可参见上述实施例 1中相应的内容, 在此不再赘述。  In practical applications, the foregoing policy server may be a PCRF entity or a PC. For the session management process between the PCRF entity or the PC and the AF entity, refer to the corresponding content in the foregoing Embodiment 1, and details are not described herein again.

实施例 4 Example 4

本实施例提供一种协议转换器, 其可作为上述实施例 1 中的策略服务器 进行会话管理, 该协议转换器至少包括如下单元:  The embodiment provides a protocol converter, which can be used as the policy server in the foregoing embodiment 1 for session management. The protocol converter includes at least the following units:

第一单元, 设置为: 在 AF会话建立过程中, 接收 AF实体发送的携带有 The first unit is configured to: during the establishment of the AF session, the receiving AF entity sends the carried

AF会话标识信息的第一 HTTP请求消息, 向 PCRF 实体发送携带有直径 ( Diameter )会话标识的 Diameter认证 4受权请求(AAR ) 消息, 以请求建立 直径会话, 并保持 AF会话标识信息与 Diameter会话标识的对应关系; 或者, 在 AF会话建立过程中, 接收 AF实体发送的第一 HTTP请求消息, 为 AF会 话分配 AF会话标识信息, 向 PCRF实体发送携带有直径( Diameter )会话标 识的 Diameter认证授权请求(AAR )消息, 以请求建立直径会话, 并保持 AF 会话标识信息与 Diameter会话标识的对应关系。 The first HTTP request message of the AF session identification information is sent to the PCRF entity to send a Diameter Authentication 4 Authorization Request (AAR) message carrying a Diameter session identifier to request to establish a diameter session, and maintain the AF session identification information and the Diameter session identifier. Or the first HTTP request message sent by the AF entity, the AF session identification information is allocated to the AF session, and the Diameter authentication authorization request carrying the Diameter session identifier is sent to the PCRF entity. (AAR) message, requesting to establish a diameter session, and maintaining the correspondence between the AF session identification information and the Diameter session identifier.

第二单元, 设置为: 在 AF会话修改或终结过程中, 接收 AF实体发送的 携带有 AF会话标识信息的第三 HTTP请求消息,向 PCRF实体发送携带上述 Diameter会话标识的 Diameter AAR或 Diameter STR消息;  The second unit is configured to: receive a third HTTP request message that is sent by the AF entity and that carries the AF session identifier information, and send a Diameter AAR or Diameter STR message carrying the Diameter session identifier to the PCRF entity during the AF session modification or termination process. ;

第三单元, 设置为: 在承载层事件上报过程中, 接收 PCRF实体发送的 携带上述 Diameter会话标识的 Diameter RAR , ASR或 STA消息, 并向 AF 发送携带有上述 AF会话标识信息的第二 HTTP请求消息。 本发明实施例还提供一种计算机程序, 包括程序指令, 当该程序指令被 应用功能实体执行时, 使得该应用功能实体可执行上述方法。 The third unit is configured to: receive a Diameter RAR, ASR or STA message that is sent by the PCRF entity and carry the Diameter session identifier, and send a second HTTP request carrying the AF session identifier information to the AF, in the bearer layer event reporting process. Message. The embodiment of the present invention further provides a computer program, including program instructions, when the program instruction is executed by an application function entity, so that the application function entity can execute the above method.

本发明实施例还提供一种计算机程序, 包括程序指令, 当该程序指令被 策略服务器执行时, 使得该策略服务器可执行上述方法。  The embodiment of the invention further provides a computer program, comprising program instructions, when the program instruction is executed by the policy server, so that the policy server can execute the above method.

本发明实施例还提供一种载有上述任一计算机程序的载体。  Embodiments of the present invention also provide a carrier carrying any of the above computer programs.

综上所述,上述实施例解决了 AF实体和 PCRF实体或 PC可以基于 HTTP 实时的进行双向信息传送的问题。 In summary, the above embodiment solves the problem that the AF entity and the PCRF entity or the PC can perform bidirectional information transmission based on HTTP real time.

本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本申请不限制于任 何特定形式的硬件和软件的结合。 One of ordinary skill in the art will appreciate that all or a portion of the above steps may be accomplished by a program instructing the associated hardware, such as a read-only memory, a magnetic disk, or an optical disk. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware or in the form of a software function module. This application is not limited to any specific form of combination of hardware and software.

以上所述, 仅为本发明的较佳实例而已, 并非用于限定本发明的保护范 围。 凡在本发明的精神和原则之内, 所做的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。 The above description is only a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

工业实用性 Industrial applicability

本发明实施例解决了 AF实体和 PCRF实体或 PC可以基于 HTTP实时的 进行双向信息传送的问题。  The embodiment of the invention solves the problem that the AF entity and the PCRF entity or the PC can perform two-way information transmission based on HTTP real-time.

Claims

权 利 要 求 书 claims 1、 一种会话管理方法, 该方法包括: 1. A session management method, the method includes: 当应用功能(AF ) 实体与策略服务器建立 AF会话时, 所述 AF实体向 所述策略服务器发送第一超文本传输协议(HTTP )请求消息; When the application function (AF) entity establishes an AF session with the policy server, the AF entity sends a first Hypertext Transfer Protocol (HTTP) request message to the policy server; 其中,所述 AF实体通过所述第一 HTTP请求消息将 AF会话标识信息发 送给所述策略服务器;或者,所述 AF实体从所述策略服务器返回的第一 HTTP 请求消息的应答中获取所述策略服务器为所述 AF会话分配的 AF会话标识信 息; Wherein, the AF entity sends the AF session identification information to the policy server through the first HTTP request message; or, the AF entity obtains the AF session identification information from the response of the first HTTP request message returned by the policy server. AF session identification information assigned by the policy server to the AF session; 所述 AF实体接收所述策略服务器向所述 AF实体通知所述 AF会话的承 载层事件时, 向所述 AF实体发送的第二 HTTP请求消息, 所述第二 HTTP 请求消息中携带所述 AF会话标识信息; When the AF entity receives the second HTTP request message sent to the AF entity by the policy server notifying the AF entity of the bearer layer event of the AF session, the second HTTP request message carries the AF Session identification information; 所述 AF实体向所述策略服务器返回所述第二 HTTP请求消息的应答。 The AF entity returns a response to the second HTTP request message to the policy server. 2、 如权利要求 1所述的方法, 其中, 2. The method of claim 1, wherein, 所述策略服务器为策略和计费规则功能( PCRF )实体或协议转换器( PC )。 The policy server is a policy and charging rule function (PCRF) entity or a protocol converter (PC). 3、 如权利要求 1或 2所述的方法, 其中, 3. The method according to claim 1 or 2, wherein, 当所述 AF 实体修改或终结所述 AF会话时,所述 AF实体向所述策略服 务器发送第三 HTTP请求消息,所述第三 HTTP请求消息中携带所述 AF会话 标识信息; When the AF entity modifies or terminates the AF session, the AF entity sends a third HTTP request message to the policy server, where the third HTTP request message carries the AF session identification information; 所述 AF实体接收所述策略服务器返回的所述第三 HTTP请求消息的应 答。 The AF entity receives the response to the third HTTP request message returned by the policy server. 4. 如权利要求 1或 2所述的方法, 其中, 所述 AF会话标识信息为一个 全局唯一标识。 4. The method according to claim 1 or 2, wherein the AF session identification information is a globally unique identification. 5、 如权利要求 1或 2所述的方法, 其中, 所述 AF会话标识信息釆用如 下任一种组合表示: 5. The method according to claim 1 or 2, wherein the AF session identification information is represented by any combination of the following: 业务会话标识和 UE的 IP地址; Service session identifier and UE’s IP address; 业务会话标识、 UE的 IP地址和 IP域标识; 业务会话标识、 UE的 IP地址和分组数据网络 ( PDN )标识; 业务会话标识和用户标识。 Service session identifier, UE’s IP address and IP domain identifier; The service session identifier, the UE's IP address and the packet data network (PDN) identifier; the service session identifier and the user identifier. 6、 如权利要求 1或 2所述的方法, 其中, 所述 AF实体同时支持 HTTP 客户端和 HTTP服务器,并且所述策略服务器同时支持 HTTP客户端和 HTTP 服务器。 6. The method of claim 1 or 2, wherein the AF entity supports both an HTTP client and an HTTP server, and the policy server supports both an HTTP client and an HTTP server. 7、 如权利要求 3所述的方法, 其中, 所述 AF实体向所述策略服务器发 送所述第一 HTTP请求消息或所述第三 HTTP请求消息, 包括: 7. The method of claim 3, wherein the AF entity sends the first HTTP request message or the third HTTP request message to the policy server, including: 所述 AF实体与所述策略服务器已存在第一传输控制协议( TCP )连接时, 所述 AF实体釆用所述第一 TCP连接向所述策略服务器发送所述第一 HTTP 请求消息或所述第三 HTTP请求消息; When the AF entity has a first Transmission Control Protocol (TCP) connection with the policy server, the AF entity uses the first TCP connection to send the first HTTP request message or the first HTTP request message to the policy server. The third HTTP request message; 所述 AF实体与所述策略服务器未建立所述第一 TCP连接时, 所述 AF 先与所述策略服务器建立第一 TCP连接, 再发送所述第一 HTTP请求消息或 所述第三 HTTP请求消息。 When the first TCP connection is not established between the AF entity and the policy server, the AF first establishes the first TCP connection with the policy server, and then sends the first HTTP request message or the third HTTP request. information. 8、 如权利要求 7所述的方法, 其中, 8. The method of claim 7, wherein, 所述 AF实体接收到所述策略服务器发送的所述第一 HTTP请求消息或 所述第三 HTTP请求消息的应答后,保留所述 AF实体与所述策略服务器之间 的所述第一 TCP连接; 或者 After receiving the first HTTP request message or the response to the third HTTP request message sent by the policy server, the AF entity retains the first TCP connection between the AF entity and the policy server. ; or 所述 AF实体接收到所述策略服务器发送的所述第一 HTTP请求消息或 所述第三 HTTP请求消息的应答后,断开所述 AF实体与所述策略服务器之间 的所述第一 TCP连接。 After receiving the first HTTP request message or the response to the third HTTP request message sent by the policy server, the AF entity disconnects the first TCP between the AF entity and the policy server. connect. 9、 一种会话管理方法, 该方法包括: 9. A session management method, the method includes: 策略服务器接收应用功能(AF ) 实体发送的携带有 AF会话标识信息的 第一超文本传输协议( HTTP )请求消息, 向所述 AF实体返回所述第一 HTTP 请求消息的应答; 或者, 接收 AF实体发送的第一 HTTP请求消息, 为 AF会 话分配 AF会话标识信息, 并向所述 AF实体返回携带所述 AF会话标识信息 的所述第一 HTTP请求消息的应答; 在向所述 AF实体通知所述 AF会话的承载层事件时, 向所述 AF实体发 送第二 HTTP请求消息,所述第二 HTTP请求消息中携带所述 AF会话标识信 息, 以及接收所述 AF实体返回的所述第二 HTTP请求消息的应答。 The policy server receives the first Hypertext Transfer Protocol (HTTP) request message carrying the AF session identification information sent by the application function (AF) entity, and returns a response to the first HTTP request message to the AF entity; or, receives the AF The first HTTP request message sent by the entity allocates AF session identification information to the AF session, and returns a response to the first HTTP request message carrying the AF session identification information to the AF entity; When notifying the AF entity of the bearer layer event of the AF session, sending a second HTTP request message to the AF entity, where the second HTTP request message carries the AF session identification information, and receiving the AF The response to the second HTTP request message returned by the entity. 10、 如权利要求 9所述的方法, 其中, 所述策略服务器为策略和计费规则功能( PCRF )实体或协议转换器( PC )。 10. The method of claim 9, wherein the policy server is a Policy and Charging Rules Function (PCRF) entity or a Protocol Converter (PC). 11、 如权利要求 9或 10所述的方法, 其中, 所述策略服务器向所述 AF 实体发送所述第二 HTTP请求消息包括: 11. The method according to claim 9 or 10, wherein sending the second HTTP request message by the policy server to the AF entity includes: 所述策略服务器与所述 AF实体已存在第二 TCP连接时, 所述策略服务 器釆用所述第二 TCP连接向所述 AF实体发送所述第二 HTTP请求消息; 所述策略服务器与所述 AF实体未建立第二 TCP连接时, 所述策略服务 器先与所述 AF实体建立第二 TCP连接, 再发送所述第二 HTTP请求消息。 When the policy server and the AF entity already have a second TCP connection, the policy server uses the second TCP connection to send the second HTTP request message to the AF entity; the policy server and the When the AF entity does not establish the second TCP connection, the policy server first establishes the second TCP connection with the AF entity, and then sends the second HTTP request message. 12、 如权利要求 11所述的方法, 还包括: 12. The method of claim 11, further comprising: 所述策略服务器接收到所述 AF实体发送的所述第二 HTTP请求消息的 应答后, 保留所述策略服务器与所述 AF实体之间的所述第二 TCP连接; 或 者 After the policy server receives the response to the second HTTP request message sent by the AF entity, retain the second TCP connection between the policy server and the AF entity; or 所述策略服务器接收到所述 AF实体发送的所述第二 HTTP请求消息的 应答后, 断开所述策略服务器与所述 AF实体之间的所述第二 TCP连接。 After receiving the response to the second HTTP request message sent by the AF entity, the policy server disconnects the second TCP connection between the policy server and the AF entity. 13、 如权利要求 10所述的方法, 其中, 所述策略服务器为 PC, 所述策 略服务器接收所述第一 HTTP请求消息后, 该方法还包括: 所述 PC向 PCRF 实体发送直径认证授权请求 (AAR ) 消息, 请求建立直径会话, 所述 AAR 消息中携带直径会话标识,且所述 PC保持所述 AF会话标识信息与所述直径 会话标识的对应关系。 13. The method of claim 10, wherein the policy server is a PC, and after the policy server receives the first HTTP request message, the method further includes: the PC sends a diameter authentication authorization request to the PCRF entity. (AAR) message, requesting the establishment of a Diameter session, the AAR message carries a Diameter session identifier, and the PC maintains the corresponding relationship between the AF session identifier information and the Diameter session identifier. 14、 如权利要求 13所述的方法, 还包括: 所述策略服务器接收所述 AF 实体向所述 PC发送的携带所述 AF会话标识信息的第三 HTTP请求消息, 所 述 PC向所述 PCRF实体发送直径 AAR消息或 直径会话终结请求( STR )消 息, 所述 AAR或 STR消息中携带所述直径 会话标识。 14. The method of claim 13, further comprising: the policy server receiving a third HTTP request message carrying the AF session identification information sent by the AF entity to the PC, and the PC sends a request to the PCRF The entity sends a Diameter AAR message or a Diameter Session Termination Request (STR) message, where the AAR or STR message carries the Diameter session identifier. 15、 如权利要求 10所述的方法, 其中, 所述策略服务器为 PC时, 所述 策略服务器向所述 AF实体发送第二 HTTP请求消息, 包括: 15. The method of claim 10, wherein when the policy server is a PC, the policy server sends a second HTTP request message to the AF entity, including: PCRF 实体向所述 PC 发送携带所述直径会话标识的直径重认证请求 ( RAR ) , 终止会话请求(ASR )或会话终结应答 (STA)消息时, 所述 PC向 所述 AF实体发送携带有所述 AF会话标识信息的所述第二 HTTP请求消息。 When the PCRF entity sends a Diameter re-authentication request (RAR), session termination request (ASR) or session termination response (STA) message carrying the Diameter session identifier to the PC, the PC sends a Diameter re-authentication request (RAR) carrying the Diameter session identifier to the AF entity. the second HTTP request message containing the AF session identification information. 16、 一种应用功能(AF ) 实体, 其中, 包括: 16. An application function (AF) entity, including: 第一单元, 其设置为: 在所述 AF实体与策略服务器建立 AF会话时, 向 所述策略服务器发送第一超文本传输协议(HTTP )请求消息以及接收所述策 略服务器返回的第一 HTTP请求消息的应答; The first unit is configured to: when the AF entity establishes an AF session with the policy server, send a first Hypertext Transfer Protocol (HTTP) request message to the policy server and receive the first HTTP request returned by the policy server. response to the message; 其中, 所述第一单元是设置为: 在所述第一 HTTP请求消息中携带 AF 会话标识信息, 或者从所述策略服务器返回的第一 HTTP请求消息的应答中 获取 AF会话标识信息; Wherein, the first unit is configured to: carry AF session identification information in the first HTTP request message, or obtain AF session identification information from the response of the first HTTP request message returned by the policy server; 第二单元, 其设置为: 接收所述策略服务器向所述 AF实体通知所述 AF 会话的承载层事件时,发送的携带有所述 AF会话标识信息的第二 HTTP请求 消息, 并向所述策略服务器返回所述第二 HTTP请求消息的应答。 The second unit is configured to: receive a second HTTP request message carrying the AF session identification information sent by the policy server when notifying the AF entity of the bearer layer event of the AF session, and send the request message to the AF entity. The policy server returns a response to the second HTTP request message. 17、 如权利要求 16所述的 AF实体, 还包括: 17. The AF entity as claimed in claim 16, further comprising: 第三单元, 其设置为: 在所述 AF实体修改或终结所述 AF会话时, 向所 述策略服务器发送第三 HTTP请求消息, 所述第三 HTTP请求消息中携带所 述 AF会话标识信息,以及接收所述策略服务器返回的所述第三 HTTP请求消 息的应答。 The third unit is configured to: when the AF entity modifies or terminates the AF session, sends a third HTTP request message to the policy server, where the third HTTP request message carries the AF session identification information, and receiving a response to the third HTTP request message returned by the policy server. 18、 如权利要求 17所述的 AF实体, 其中, 18. The AF entity as claimed in claim 17, wherein, 所述第一单元, 是设置为: 在所述 AF 实体与所述策略服务器已存在第 一传输控制协议(TCP )连接时, 釆用所述第一 TCP连接向所述策略服务器 发送所述第一 HTTP请求消息, 在本 AF与所述策略服务器未建立所述第一 TCP连接时,先与所述策略服务器建立第一 TCP连接,再发送所述第一 HTTP 请求消息; The first unit is configured to: when the AF entity and the policy server already have a first Transmission Control Protocol (TCP) connection, use the first TCP connection to send the third transmission control protocol (TCP) connection to the policy server. An HTTP request message. When the first TCP connection is not established between the AF and the policy server, it first establishes the first TCP connection with the policy server and then sends the first HTTP request message; 所述第三单元, 是设置为: 在所述 AF 实体与所述策略服务器已存在第 一 TCP 连接时, 釆用所述第一 TCP连接向所述策略服务器发送所述第三 HTTP请求消息, 在本 AF与所述策略服务器未建立所述第一 TCP连接时, 先与所述策略服务器建立第一 TCP连接, 再发送所述第三 HTTP请求消息。 The third unit is set to: The AF entity and the policy server already exist. When a TCP connection is established, the first TCP connection is used to send the third HTTP request message to the policy server. When the first TCP connection is not established between the AF and the policy server, the AF first communicates with the policy server. The server establishes the first TCP connection and then sends the third HTTP request message. 19、 如权利要求 18所述的 AF实体, 其中, 19. The AF entity as claimed in claim 18, wherein, 所述第一单元,还设置为:接收到所述策略服务器发送的所述第一 HTTP 请求消息的应答后,保留所述 AF实体与所述策略服务器之间的所述第一 TCP 连接, 或者断开所述 AF实体与所述策略服务器之间的所述第一 TCP连接; 所述第三单元,还设置为:接收到所述策略服务器发送的所述第三 HTTP 请求消息的应答后,保留所述 AF实体与所述策略服务器之间的所述第一 TCP 连接, 或者断开所述 AF实体与所述策略服务器之间的所述第一 TCP连接。 The first unit is further configured to: after receiving a response to the first HTTP request message sent by the policy server, retain the first TCP connection between the AF entity and the policy server, or Disconnect the first TCP connection between the AF entity and the policy server; The third unit is further configured to: after receiving a response to the third HTTP request message sent by the policy server, The first TCP connection between the AF entity and the policy server is retained, or the first TCP connection between the AF entity and the policy server is disconnected. 20、 如权利要求 16至 19任一项所述的 AF实体, 其中, 20. The AF entity according to any one of claims 16 to 19, wherein, 所述第二单元, 是设置为: 釆用所述策略服务器与所述 AF 实体之间的 第二 TCP连接接收所述第二 HTTP请求消息,并釆用所述第二 TCP连接向所 述策略服务器返回所述第二 HTTP请求消息的应答。 The second unit is configured to: use a second TCP connection between the policy server and the AF entity to receive the second HTTP request message, and use the second TCP connection to send a request to the policy The server returns a response to the second HTTP request message. 21、 一种策略服务器, 包括: 21. A policy server, including: 第一单元, 其设置为: 接收应用功能(AF ) 实体发送的携带有 AF会话 标识信息的第一超文本传输协议(HTTP )请求消息, 向所述 AF实体返回所 述第一 HTTP请求消息的应答; 或者,接收 AF实体发送的第一 HTTP请求消 息, 为 AF会话分配 AF会话标识信息, 并向所述 AF实体返回携带所述 AF 会话标识信息的所述第一 HTTP请求消息的应答; The first unit is configured to: receive a first Hypertext Transfer Protocol (HTTP) request message carrying AF session identification information sent by an application function (AF) entity, and return the first HTTP request message to the AF entity. Respond; or, receive the first HTTP request message sent by the AF entity, allocate AF session identification information to the AF session, and return to the AF entity a response to the first HTTP request message carrying the AF session identification information; 第二单元, 其设置为: 在向所述 AF实体通知所述 AF会话的承载层事件 时, 向所述 AF实体发送第二 HTTP请求消息, 所述第二 HTTP请求消息中携 带所述 AF会话标识信息, 以及接收所述 AF实体返回的所述第二 HTTP请求 消息的应答。 The second unit is configured to: when notifying the AF entity of the bearer layer event of the AF session, send a second HTTP request message to the AF entity, where the second HTTP request message carries the AF session identification information, and receiving a response to the second HTTP request message returned by the AF entity. 22、 如权利要求 21所述的策略服务器, 其中, 22. The policy server of claim 21, wherein, 所述第一单元, 是设置为: 釆用所述 AF 实体与本策略服务器之间的第 一 TCP连接接收所述第一 HTTP请求消息,并釆用所述第一 TCP连接向所述 AF实体返回所述第一 HTTP请求消息的应答。 The first unit is configured to: use the first TCP connection between the AF entity and the policy server to receive the first HTTP request message, and use the first TCP connection to send the message to the policy server. The AF entity returns a response to the first HTTP request message. 23、 如权利要求 21所述的策略服务器, 其中, 23. The policy server of claim 21, wherein, 所述第二单元, 是设置为: 在本策略服务器与所述 AF 已存在第二 TCP 连接时, 釆用所述第二 TCP连接向所述 AF发送所述第二 HTTP请求消息; 所述策略服务器与所述 AF未建立第二 TCP连接时, 先与所述 AF建立 第二 TCP连接, 再发送所述第二 HTTP请求消息。 The second unit is configured to: when the policy server and the AF already have a second TCP connection, use the second TCP connection to send the second HTTP request message to the AF; the policy When the server has not established a second TCP connection with the AF, it first establishes a second TCP connection with the AF, and then sends the second HTTP request message. 24、 如权利要求 23所述的策略服务器, 其中, 24. The policy server of claim 23, wherein, 所述第二单元, 是设置为: 接收到所述 AF 实体发送的所述第二 HTTP 请求消息的应答后, 保留本策略服务器与所述 AF实体之间的所述第二 TCP 连接, 或者断开本策略服务器与所述 AF之间的所述第二 TCP连接。 The second unit is configured to: after receiving the response to the second HTTP request message sent by the AF entity, retain the second TCP connection between the policy server and the AF entity, or disconnect it. The second TCP connection between the folio policy server and the AF. 25、 如权利要求 21至 24任一项所述的策略服务器, 其中, 25. The policy server according to any one of claims 21 to 24, wherein, 所述策略服务器为策略和计费规则功能( PCRF )实体或协议转换器( PC )。 The policy server is a policy and charging rule function (PCRF) entity or a protocol converter (PC). 26、 一种协议转换器, 其中, 包括: 26. A protocol converter, including: 第一单元, 其设置为: 在应用功能(AF )会话建立过程中, 接收 AF实 体发送的携带有 AF会话标识信息的第一超文本传输协议( HTTP )请求消息, 向策略和计费规则功能(PCRF ) 实体发送直径认证授权请求(AAR ) 消息, 请求建立直径会话, 所述 AAR消息中携带直径会话标识, 以及保持所述 AF 会话标识信息与所述直径会话标识的对应关系; 或者, 接收 AF 实体发送的 第一超文本传输协议( HTTP )请求消息, 为所述 AF会话分配 AF会话标识 信息, 向策略和计费规则功能(PCRF ) 实体发送直径认证授权请求(AAR ) 消息, 请求建立直径会话, 所述 AAR消息中携带直径会话标识, 以及保持所 述 AF会话标识信息与所述直径会话标识的对应关系; The first unit is configured to: during the application function (AF) session establishment process, receive the first Hypertext Transfer Protocol (HTTP) request message carrying the AF session identification information sent by the AF entity, and send the request message to the policy and charging rule function. (PCRF) entity sends a Diameter Authentication Authorization Request (AAR) message to request the establishment of a Diameter session, the AAR message carries the Diameter session identifier, and maintains the corresponding relationship between the AF session identifier information and the Diameter session identifier; or, receive The first Hypertext Transfer Protocol (HTTP) request message sent by the AF entity allocates AF session identification information to the AF session, and sends an Authentication Authorization Request (AAR) message to the Policy and Charging Rules Function (PCRF) entity to request establishment. Diameter session, the AAR message carries the Diameter session identifier, and maintains the corresponding relationship between the AF session identifier information and the Diameter session identifier; 第二单元, 其设置为: 在 AF会话修改或终结过程中, 接收 AF实体发送 的携带有所述 AF会话标识信息的第三 HTTP请求消息,向所述 PCRF实体发 送携带所述直径会话标识的直径 AAR或 直径会话终结请求(STR ) 消息; 以及 The second unit is configured to: during the AF session modification or termination process, receive a third HTTP request message carrying the AF session identification information sent by the AF entity, and send a third HTTP request message carrying the diameter session identification information to the PCRF entity. Diameter AAR or Diameter Session Termination Request (STR) message; and 第三单元, 其设置为: 在承载层事件上报过程中, 接收所述 PCRF实体 发送的携带所述直径 会话标识的直径重认证请求 (RAR ) , 终止会话请求 ( ASR )或会话终结应答(STA ) 消息, 并向所述 AF发送携带有所述 AF会 话标识信息的所述第二 HTTP请求消息。 The third unit is configured to: receive the PCRF entity during the bearer layer event reporting process Send a Diameter re-authentication request (RAR), session termination request (ASR) or session termination response (STA) message carrying the Diameter session identifier, and send the first message carrying the AF session identifier information to the AF. Two HTTP request messages. 27、 一种计算机程序, 包括程序指令, 当该程序指令被应用功能实体执 行时, 使得该应用功能实体可执行权利要求 1-8任一项所述的方法。 27. A computer program, including program instructions. When the program instructions are executed by an application function entity, the application function entity can execute the method described in any one of claims 1-8. 28、 一种计算机程序, 包括程序指令, 当该程序指令被策略服务器执行 时, 使得该策略服务器可执行权利要求 9-15任一项所述的方法。 28. A computer program, including program instructions. When the program instructions are executed by a policy server, the policy server can execute the method described in any one of claims 9-15. 29、 一种载有权利要求 27或 28所述的计算机程序的载体。 29. A carrier carrying the computer program according to claim 27 or 28.
PCT/CN2014/082548 2013-07-26 2014-07-18 Session management method, application function entity, policy server and protocol converter Ceased WO2015010576A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP14828651.1A EP3171542B1 (en) 2013-07-26 2014-07-18 Session management method, application function entity, policy server and protocol converter
US15/506,945 US10225151B2 (en) 2013-07-26 2014-07-18 Session management method, application function entity, policy server and protocol converter

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
CN201310319571 2013-07-26
CN201310319571.7 2013-07-26
PCT/CN2014/075677 WO2014173252A1 (en) 2013-07-26 2014-04-18 Session management method, application function entity, policy server and protocol converter
CNPCT/CN2014/075677 2014-04-18
CN201410301186.4 2014-06-27
CN201410301186.4A CN104348826A (en) 2013-07-26 2014-06-27 Session management method, AF (application function) entity, policy server and PC (protocol converter)

Publications (1)

Publication Number Publication Date
WO2015010576A1 true WO2015010576A1 (en) 2015-01-29

Family

ID=52392715

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/082548 Ceased WO2015010576A1 (en) 2013-07-26 2014-07-18 Session management method, application function entity, policy server and protocol converter

Country Status (1)

Country Link
WO (1) WO2015010576A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111698290A (en) * 2020-05-19 2020-09-22 展讯通信(天津)有限公司 PDU session multiplexing method, device, user equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217789A (en) * 2008-01-10 2008-07-09 中兴通讯股份有限公司 A method for selecting a policy and charging rule function server in a non-roaming scenario
CN101583112A (en) * 2008-08-12 2009-11-18 中兴通讯股份有限公司 Method and device for marking session information
WO2012058643A2 (en) * 2010-10-29 2012-05-03 F5 Networks, Inc. System and method for on the fly protocol conversion in obtaining policy enforcement information

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217789A (en) * 2008-01-10 2008-07-09 中兴通讯股份有限公司 A method for selecting a policy and charging rule function server in a non-roaming scenario
CN101583112A (en) * 2008-08-12 2009-11-18 中兴通讯股份有限公司 Method and device for marking session information
WO2012058643A2 (en) * 2010-10-29 2012-05-03 F5 Networks, Inc. System and method for on the fly protocol conversion in obtaining policy enforcement information

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
3GPP: "Study on XML based access of AF to the PCRF", TR 29.817 V 12.0.0, 31 March 2014 (2014-03-31), pages 60 - 62, XP055360632 *
3GPP: "STUDY ON XML-BASED ACCESS OF THE APPLICATION FUNCTION (AF) TO THE POLICY AND CHARGING RULES FUNCTION (PCRF)", TR 29.817 V 0.1.0, 30 June 2013 (2013-06-30), pages 7 - 13, XP055360635 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111698290A (en) * 2020-05-19 2020-09-22 展讯通信(天津)有限公司 PDU session multiplexing method, device, user equipment and storage medium
CN111698290B (en) * 2020-05-19 2021-06-15 展讯通信(天津)有限公司 PDU session multiplexing method, device, user equipment and storage medium

Similar Documents

Publication Publication Date Title
EP3171542B1 (en) Session management method, application function entity, policy server and protocol converter
JP7588667B2 (en) Enabling small data usage in 3GPP networks
US8799440B2 (en) Policy and charging control method and system for multi-PDN connections of single APN
CN103209401B (en) Policy control method and system in a kind of converged network
CN101442428B (en) Application method, system and equipment for end-to-end QoS
WO2011097911A1 (en) Method, device and system for selecting policy and charging rules function entity
JP2022504786A (en) Methods and devices for executing application-specific policy rules in communication systems
WO2009033382A1 (en) Method and network element device for acquiring the policy control information of ip access session
EP2080343A1 (en) Devices and method for guaranteeing service requirements per user equipment basis into a bearer
WO2011147074A1 (en) Method, system and corresponding apparatus for implementing policy and charging control
CN113993094B (en) Communication method, first policy control network element and communication system
WO2015103875A1 (en) Session management method, policy server and application function entity
WO2011134327A1 (en) Method and system for determining policy and charging rules function
WO2011144083A2 (en) Policy control method and device
WO2014101731A1 (en) System and method for opening network capabilities, and related network elements
WO2009089776A1 (en) Method and apparatus for the policy and charging rule function information maintenance
WO2017124807A1 (en) Policy charging control method, protocol converter, policy charging rule apparatus and system
WO2011018020A1 (en) Method and system for controlling load balance of pcrf, and redirect dra
US10205659B2 (en) Information transmission using direct HPCRF communications
CN104303488A (en) User plane event processing method, PCRF entity, and AF entity
WO2015135124A1 (en) Information transfer method and apparatus
WO2015010576A1 (en) Session management method, application function entity, policy server and protocol converter
CN104917742B (en) A kind of information transferring method and device
WO2013071860A1 (en) Policy deciding method and network device
WO2011134321A1 (en) Policy sending method and system for machine type communication

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: 14828651

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: 14828651

Country of ref document: EP

Kind code of ref document: A1

REEP Request for entry into the european phase

Ref document number: 2014828651

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 15506945

Country of ref document: US

Ref document number: 2014828651

Country of ref document: EP