[go: up one dir, main page]

CN106656523A - Charging method and equipment for session merging - Google Patents

Charging method and equipment for session merging Download PDF

Info

Publication number
CN106656523A
CN106656523A CN201510717949.8A CN201510717949A CN106656523A CN 106656523 A CN106656523 A CN 106656523A CN 201510717949 A CN201510717949 A CN 201510717949A CN 106656523 A CN106656523 A CN 106656523A
Authority
CN
China
Prior art keywords
session
service
merging
ocs
merged
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.)
Pending
Application number
CN201510717949.8A
Other languages
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201510717949.8A priority Critical patent/CN106656523A/en
Publication of CN106656523A publication Critical patent/CN106656523A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1403Architecture for metering, charging or billing
    • H04L12/1407Policy-and-charging control [PCC] architecture
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/141Indication of costs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing

Landscapes

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

Abstract

The embodiment of the invention provides a charging method and equipment for session merging. The method includes the following steps: a gateway device establishes a first Gy session; a first charging request is sent to an OCS, and the first charging request is used for requesting a first service to be charged through the first Gy session o RG of the first service; the OCS determines merging of the first Gy session and a second Gy session according to the first charging request, and sends a session merging indication message to the gateway device; the gateway device merges the first Gy session and the second Gy session according to the session merging indication message, wherein the second Gy session is a Gy session of a second service which a terminal is visiting, and a session merging confirmation message is sent to the OCS; and the OCS charges the first service and the second service through the merged Gy session. Thus charging of the plurality of services on the same Gy session is realized, network interaction between the gateway device and the OCS can be reduced, and network resources are saved.

Description

Charging method and device for session merging
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a charging method and charging equipment for session merging.
Background
With the wide application of 4G LTE technology and networks, the MBB mobile data service is expanding and increasing, and the requirements for the session capability and flexibility of charging are higher and higher. In the 4G LTE network, a user can access multiple services (for example, access a search website and an update video while performing instant chat communication for WeChat) by using a mobile phone terminal, a charging session interaction is performed between a core meat and an Online charging system (english: Online charging system, abbreviated as OCS), and the multiple services are interacted through multiple Gy charging sessions. Wherein, the Gy session is a charging message based on a session mode of a diameter protocol, and the 3GPP defines that the Gy session is located between a core network PGW/GGSN and an OCS, and is mainly used for charging, authorizing, and deducting traffic generated by user internet access.
In the prior art. The same user terminal uses multiple data (internet access, downloading, video watching, etc.) services to access the internet, and the PGW/GGSN creates a Gy session between each service and the OCS. Each service has a Gy session independent of other services, and several Gy sessions exist in several services, which results in more network interactions between the PGW/GGSN and the OCS and large consumption of network resources.
Disclosure of Invention
The embodiment of the invention provides a charging method and device for session merging, which are used for reducing network interaction between gateway equipment and an OCS (online charging system) and saving network resources.
In a first aspect, an embodiment of the present invention provides a charging method for session merging, where the charging method includes: the gateway equipment establishes a first Gy session, wherein the first Gy session is a Gy session of a first service which needs to be accessed by the terminal; sending a first charging request to the OCS, wherein the first charging request comprises a session identifier of a first Gy session and an RG of a first service, and the first charging request is used for requesting to charge the first service through the first Gy session according to the RG of the first service; receiving a session merging indication message sent by the OCS, wherein the session merging indication message comprises a session merging indication, the session merging indication is used for indicating that a first Gy session and a second Gy session are merged, and the second Gy session is a Gy session of a second service which is accessed by the terminal; merging the first Gy session and the second Gy session according to the session merging indication message; sending a session merging confirmation message to the OCS, wherein the session merging confirmation message comprises a session identifier of the merged Gy session, an RG of the first service and an RG of the second service; and the OCS charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the combined Gy session. Therefore, charging of a plurality of services on the same Gy session is realized, and the plurality of services share the same Gy session, so that network interaction between the gateway equipment and the OCS can be reduced, and network resources are saved.
According to the first aspect, in a first possible implementation manner of the first aspect, the session merging indication message further includes a session identifier of the second Gy session, and the session merging indication is used to indicate that the second Gy session is merged into the first Gy session; the gateway device merges the first Gy session and the second Gy session according to the session merging indication message, and the method comprises the following steps: the gateway equipment merges the second Gy session into the first Gy session according to the session merging indication message; the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the first Gy session; or,
the session merging indication message also comprises a session identifier of the second Gy session, and the session merging indication is used for indicating that the first Gy session is merged into the second Gy session; the gateway device merges the first Gy session and the second Gy session according to the session merging indication message, and the method comprises the following steps: the gateway equipment merges the first Gy session into a second Gy session according to the session merging indication message; the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the second Gy session; or,
the session merging indication message also comprises a session identifier of the second Gy session, and the session merging indication is used for indicating that the first Gy session and the second Gy session are merged into a third Gy session; the gateway device merges the first Gy session and the second Gy session according to the session merging indication message, and the method comprises the following steps: the gateway equipment establishes a third Gy session according to the session merging indication message, and merges the first Gy session and the second Gy session into the third Gy session; the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the third Gy session.
According to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the merging, by the gateway device, the second Gy session into the first Gy session includes: the gateway equipment releases the second Gy session and generates a session merging confirmation message comprising the session identifier of the first Gy session, the RG of the first service and the RG of the second service; or,
the gateway device merging the first Gy session into a second Gy session includes: the gateway equipment releases the first Gy session and generates a session merging confirmation message comprising a session identifier of the second Gy session, an RG of the first service and an RG of the second service; or,
the gateway device merging the first Gy session and the second Gy session into a third Gy session, including: the gateway equipment releases the first Gy session and the second Gy session, and generates a session merging confirmation message comprising the session identification of the third Gy session, the RG of the first service and the RG of the second service.
According to the first aspect or any one of the foregoing possible implementation manners of the first aspect, in a third possible implementation manner of the first aspect, before the gateway device merges the first Gy session and the second Gy session according to the session merging indication message, the gateway device further determines that the second Gy session is an effective session according to the session merging indication message. To ensure that the gateway device merges the first Gy session and the second Gy session, the second Gy session being a Gy session for the service the terminal is accessing.
According to the first aspect or any one of the foregoing possible implementation manners of the first aspect, in a fourth possible implementation manner of the first aspect, the session merging indication message is a first charging response; and/or
The session merging confirmation message is a second charging request, and the second charging request is used for requesting to charge the first service according to the RG of the first service through the merged Gy session and charge the second service according to the RG of the second service; after sending the session merging confirmation message to the OCS, the gateway device further receives a second charging response sent by the OCS, where the second charging response is used to instruct the OCS to charge the first service according to the RG of the first service through the merged Gy session and to charge the second service according to the RG of the second service.
In a second aspect, an embodiment of the present invention provides a charging method for session merging, where the charging method includes: the OCS receives a first charging request sent by the gateway equipment, wherein the first charging request comprises a session identifier of a first Gy session and an RG (gateway group) of a first service, and the first Gy session is a Gy session of the first service which a terminal needs to access; the first charging request is used for requesting to charge the first service through the first Gy session according to the RG of the first service; determining to combine the first Gy session and a second Gy session, wherein the second Gy session is a Gy session of a second service which is accessed by the terminal; sending a session merging indication message to the gateway device, wherein the session merging indication message comprises a session merging indication, and the session merging indication is used for indicating the gateway device to merge the first Gy session and the second Gy session; receiving a session merging confirmation message sent by the gateway equipment, wherein the session merging confirmation message comprises a session identifier of a combined Gy session, an RG of a first service and an RG of a second service; and charging the first service according to the RG of the first service and charging the second service according to the RG of the second service through the combined Gy session. Therefore, charging of a plurality of services on the same Gy session is realized, and the plurality of services share the same Gy session, so that network interaction between the gateway equipment and the OCS can be reduced, and network resources are saved.
According to the second aspect, in a first possible implementation manner of the second aspect, the determining, by the OCS, to merge the first Gy session and the second Gy session includes: and determining to merge the first Gy session and the second Gy session according to a preset session merging rule, wherein the preset session merging rule is used for indicating that the first Gy session and the second Gy session need to be merged.
According to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the first charging request further includes parameter information of the first Gy session; before determining to merge the first Gy session and the second Gy session, the OCS also stores the parameter information of the first Gy session in a session list of a user of the terminal, wherein the session list of the user of the terminal comprises the parameter information of the Gy session of the service which is accessed by the terminal; and determining the second Gy session as the Gy session the terminal is accessing according to the session list of the user of the terminal.
According to the second aspect or any one of the foregoing possible implementations of the second aspect, in a third possible implementation of the second aspect, the session merging indication message further includes a session identifier of the second Gy session, and the session merging indication is used to indicate that the second Gy session is merged into the first Gy session; the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the first Gy session; the OCS charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the merged Gy session, including: through the merged first Gy session, charging the first service according to the RG of the first service and charging the second service according to the RG of the second service; or,
the session merging indication message also comprises a session identifier of the second Gy session, and the session merging indication is used for indicating that the first Gy session is merged into the second Gy session; the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the second Gy session; the OCS charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the merged Gy session, including: through the merged second Gy session, charging the first service according to the RG of the first service and charging the second service according to the RG of the second service; or,
the session merging indication further comprises a session identifier of the second Gy session, and the session merging indication is used for indicating that the first Gy session and the second Gy session are merged into a third Gy session; the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the third Gy session; the OCS charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the merged Gy session, including: and charging the first service according to the RG of the first service and charging the second service according to the RG of the second service through the third Gy session.
According to a third possible implementation manner of the second aspect, in a fourth possible implementation manner of the second aspect, the OCS further identifies the second Gy session as an invalid session before the OCS charges, through the merged first Gy session, the first service according to the RG of the first service and charges the second service according to the RG of the second service; or,
the OCS also marks the first Gy session as an invalid session before charging the first service according to the RG of the first service and charging the second service according to the RG of the second service through the merged second Gy session; or,
before the OCS charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the third Gy session, the first Gy session and the second Gy session are respectively identified as invalid sessions. So that other Gy sessions are not merged into the Gy session that has been identified as an invalid session.
According to the second aspect or any one of the foregoing possible implementations of the second aspect, in a fifth possible implementation of the second aspect, the session merging indication message is a first charging response; and/or
The session merging confirmation message is a second charging request, and the second charging request is used for requesting the OCS to charge the first service according to the RG of the first service through the merged Gy session and charge the second service according to the RG of the second service; after receiving the session merging confirmation message sent by the gateway device, the OCS further sends a second charging response to the gateway device, where the second charging response is used to instruct the OCS to charge the first service according to the RG of the first service and to charge the second service according to the RG of the second service through the merged Gy session.
In a third aspect, an embodiment of the present invention provides a gateway device, including: the establishing unit is used for establishing a first Gy session, and the first Gy session is a Gy session of a first service which needs to be accessed by the terminal; a sending unit, configured to send a first charging request to an OCS, where the first charging request includes a session identifier of a first Gy session and an RG of a first service, and the first charging request is used to request that charging is performed on the first service according to the RG of the first service through the first Gy session; a receiving unit, configured to receive a session merging indication message sent by the OCS, where the session merging indication message includes a session merging indication, and the session merging indication is used to indicate that a first Gy session and a second Gy session are merged, where the second Gy session is a Gy session of a second service being accessed by the terminal; the processing unit is used for merging the first Gy session and the second Gy session according to the session merging indication message; a sending unit, configured to send a session merging confirmation message to the OCS, where the session merging confirmation message includes a session identifier of the merged Gy session, an RG of the first service, and an RG of the second service; and the OCS charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the combined Gy session. Therefore, charging of a plurality of services on the same Gy session is realized, and the plurality of services share the same Gy session, so that network interaction between the gateway equipment and the OCS can be reduced, and network resources are saved.
According to the third aspect, in a first possible implementation manner of the third aspect, the session merging indication message further includes a session identifier of the second Gy session, and the session merging indication is used to indicate that the second Gy session is merged into the first Gy session; the processing unit is specifically configured to: merging the second Gy session into the first Gy session according to the session merging indication message; the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the first Gy session; or,
the session merging indication message also comprises a session identifier of the second Gy session, and the session merging indication is used for indicating that the first Gy session is merged into the second Gy session; the processing unit is specifically configured to: merging the first Gy session into a second Gy session according to the session merging indication message; the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the second Gy session; or,
the session merging indication message also comprises a session identifier of the second Gy session, and the session merging indication is used for indicating that the first Gy session and the second Gy session are merged into a third Gy session; the processing unit is specifically configured to: establishing a third Gy session according to the session merging indication message, and merging the first Gy session and the second Gy session into the third Gy session; the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the third Gy session.
According to the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, when the processing unit merges the second Gy session into the first Gy session, the processing unit is specifically configured to: releasing the second Gy session, and generating a session merging confirmation message comprising the session identifier of the first Gy session, the RG of the first service and the RG of the second service; or,
when merging the first Gy session into the second Gy session, the processing unit is specifically configured to: releasing the first Gy session, and generating a session merging confirmation message comprising a session identifier of the second Gy session, an RG of the first service and an RG of the second service; or,
when merging the first Gy session and the second Gy session into the third Gy session, the processing unit is specifically configured to: and releasing the first Gy session and the second Gy session, and generating a session merging confirmation message comprising the session identifier of the third Gy session, the RG of the first service and the RG of the second service.
According to the third aspect or any one of the foregoing possible implementations of the third aspect, in a third possible implementation of the third aspect, the processing unit is further configured to determine, before merging the first Gy session and the second Gy session according to the session merging indication message, that the second Gy session is an effective session according to the session merging indication message. To ensure that the gateway device merges the first Gy session and the second Gy session, the second Gy session being a Gy session for the service the terminal is accessing.
According to the third aspect or any one of the possible implementation manners of the third aspect above, in a fourth possible implementation manner of the third aspect, the session merging indication message is a first charging response; and/or
The session merging confirmation message is a second charging request, and the second charging request is used for requesting to charge the first service according to the RG of the first service through the merged Gy session and charge the second service according to the RG of the second service; the receiving unit is further configured to receive a second charging response sent by the OCS after the sending unit sends the session merging confirmation message to the OCS, where the second charging response is used to instruct the OCS to charge the first service according to the RG of the first service through the merged Gy session and to charge the second service according to the RG of the second service.
In a fourth aspect, an embodiment of the present invention provides an OCS, including: a receiving unit, configured to receive a first charging request sent by a gateway device, where the first charging request includes a session identifier of a first Gy session and an RG of a first service, and the first Gy session is a Gy session of the first service that a terminal needs to access; the first charging request is used for requesting to charge the first service through the first Gy session according to the RG of the first service; the terminal comprises a processing unit, a processing unit and a processing unit, wherein the processing unit is used for determining to merge a first Gy session and a second Gy session, and the second Gy session is a Gy session of a second service which is accessed by the terminal; a sending unit, configured to send a session merging indication message to the gateway device, where the session merging indication message includes a session merging indication, and the session merging indication is used to indicate the gateway device to merge the first Gy session and the second Gy session; a receiving unit, configured to receive a session merging confirmation message sent by the gateway device, where the session merging confirmation message includes a session identifier of the merged Gy session, an RG of the first service, and an RG of the second service; and the charging unit is used for charging the first service according to the RG of the first service and charging the second service according to the RG of the second service through the combined Gy session. Therefore, charging of a plurality of services on the same Gy session is realized, and the plurality of services share the same Gy session, so that network interaction between the gateway equipment and the OCS can be reduced, and network resources are saved.
According to a fourth aspect, in a first possible implementation manner of the fourth aspect, the processing unit is specifically configured to: and determining to merge the first Gy session and the second Gy session according to a preset session merging rule, wherein the preset session merging rule is used for indicating that the first Gy session and the second Gy session need to be merged.
According to the fourth aspect or the first possible implementation manner of the fourth aspect, in a second possible implementation manner of the fourth aspect, the first charging request further includes parameter information of the first Gy session; the processing unit is further configured to store the parameter information of the first Gy session in a session list of a user of the terminal before determining to merge the first Gy session with the second Gy session, the session list of the user of the terminal including the parameter information of the Gy session of the service being accessed by the terminal; and determining the second Gy session as the Gy session the terminal is accessing according to the session list of the user of the terminal.
According to the fourth aspect or any one of the above possible implementation manners of the fourth aspect, in a third possible implementation manner of the fourth aspect, the session merging indication message further includes a session identifier of the second Gy session, and the session merging indication is used to indicate that the second Gy session is merged into the first Gy session; the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the first Gy session; the charging unit is specifically configured to: through the merged first Gy session, charging the first service according to the RG of the first service and charging the second service according to the RG of the second service; or,
the session merging indication message also comprises a session identifier of the second Gy session, and the session merging indication is used for indicating that the first Gy session is merged into the second Gy session; the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the second Gy session; the charging unit is specifically configured to: through the merged second Gy session, charging the first service according to the RG of the first service and charging the second service according to the RG of the second service; or,
the session merging indication further comprises a session identifier of the second Gy session, and the session merging indication is used for indicating that the first Gy session and the second Gy session are merged into a third Gy session; the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the third Gy session; the charging unit is specifically configured to: and charging the first service according to the RG of the first service and charging the second service according to the RG of the second service through the third Gy session.
According to a third possible implementation manner of the fourth aspect, in a fourth possible implementation manner of the fourth aspect, the processing unit is further configured to identify the second Gy session as an invalid session before the charging unit charges, through the merged first Gy session, the first service according to the RG of the first service and charges the second service according to the RG of the second service; or,
the processing unit is further configured to identify the first Gy session as an invalid session before the charging unit charges, through the merged second Gy session, the first service according to the RG of the first service and charges the second service according to the RG of the second service; or,
the processing unit is further configured to respectively identify the first Gy session and the second Gy session as invalid sessions before the charging unit charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the third Gy session. So that other Gy sessions are not merged into the Gy session that has been identified as an invalid session.
According to the fourth aspect or any one of the possible implementation manners of the fourth aspect above, in a fifth possible implementation manner of the fourth aspect, the session merging indication message is a first charging response; and/or
The session merging confirmation message is a second charging request, and the second charging request is used for requesting the OCS to charge the first service according to the RG of the first service through the merged Gy session and charge the second service according to the RG of the second service; the sending unit is further configured to send, after the receiving unit receives the session merging confirmation message sent by the gateway device, a second charging response to the gateway device, where the second charging response is used to instruct the OCS to charge the first service according to the RG of the first service through the merged Gy session and to charge the second service according to the RG of the second service.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a network architecture diagram of a session merging charging method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a gateway device according to a first embodiment of the present invention;
fig. 3 is a schematic structural diagram of an OCS according to an embodiment of the present invention;
fig. 4 is a flowchart of a session merging charging method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a gateway device according to a second embodiment of the present invention;
fig. 6 is a schematic structural diagram of an OCS according to a second embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a network architecture diagram of a charging method for session merging according to an embodiment of the present invention, as shown in fig. 1, only a terminal, a gateway device, and an OCS are shown in the network architecture of this embodiment, and other network devices related to charging are not shown in fig. 1. Wherein, the terminal 100 is communicatively connected to the gateway device 200, and the terminal 100 is communicatively connected to the gateway device 200 through a base station (not shown in fig. 1), the gateway device 200 is communicatively connected to the OCS300, when the terminal 100 accesses a service, an IP-CAN session is established between the terminal 100 and the gateway device 200, the gateway device 200 creates a Gy session to the OCS300 for charging, the charging for session merging in this embodiment refers to merging charging for services corresponding to a plurality of Gy sessions between the gateway device 200 and the OCS 300. The gateway device 200 is, for example, a PGW or a GGSN, but the embodiment is not limited thereto. Based on the network architecture shown in fig. 1, the following embodiments are provided to illustrate embodiments of the present invention in detail.
Fig. 2 is a schematic structural diagram of a gateway device according to an embodiment of the present invention, and as shown in fig. 2, the gateway device according to this embodiment includes a communication interface 11, a memory 13, and a processor 12. The communication interface 11, the processor 12, and the memory 13 are connected to each other via a bus 14. The bus 14 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 2, but it is not intended that there be only one bus or one type of bus. The communication interface 11 is used to enable communication between the gateway device and other devices or communication networks (such as, but not limited to, PLMN/PSTN, internet, etc.). For example, for supporting communication between the gateway device and the terminal and OCS shown in fig. 1. A memory 13 for storing an operating system, program codes, and data. The Memory 13 may include a Random Access Memory (RAM), and may further include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory.
The processor 12 executes the program codes stored in the memory 13 to implement the session merging charging method executed by the gateway device according to the embodiments of the present invention described below.
The Processor 12 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and so on; the Integrated Circuit can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
Fig. 3 is a schematic structural diagram of an OCS according to an embodiment of the present invention. As shown in fig. 3, the OCS of the present embodiment includes a communication interface 21, a memory 23, and a processor 22. The communication interface 21, the processor 22, and the memory 23 are connected to each other via a bus 24. The bus 24 may be a PCI bus or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 3, but this does not mean only one bus or one type of bus. Communication interface 21 is used to enable communication between the OCS and other devices or communication networks (such as, but not limited to, PLMN/PSTN, internet, etc.). For example, to support communication between the OCS and the gateway device shown in fig. 1. A memory 23 for storing an operating system, program codes, and data. The memory 23 may comprise RAM and may also include non-volatile memory, such as at least one disk memory.
Processor 22 executes the program codes stored in memory 23 to implement the charging method for session merging performed by the OCS according to the embodiments of the present invention described below.
The processor 22 may be a general-purpose processor including a CPU, NP, etc.; but also DSPs, ASICs, FPGAs or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
Fig. 4 is a flowchart of a charging method for session merging according to an embodiment of the present invention, and as shown in fig. 4, the method according to this embodiment may include:
s101, the gateway equipment establishes a first Gy session.
In this embodiment, the first Gy session is a Gy session of a first service that the terminal needs to access, and after the gateway device determines that the terminal needs to access the first service, the gateway device may establish the Gy session of the first service, where the Gy session of the first service is referred to as a first Gy session. The first service is, for example, hundred degree video.
S102, the gateway equipment sends a first charging request to the OCS, and the OCS receives the first charging request sent by the gateway equipment.
In this embodiment, after establishing the first Gy session, the gateway device sends a first charging request to the OCS, where the first charging request includes a session identifier of the first Gy session and a Rate Group (RG) of the first service, and the first charging request is used to request the OCS to charge the first service through the first Gy session corresponding to the session identifier, according to the RG of the first service. The first charging Request may be a Credit Control Request (CCR) of the first service, such as an initial CCR (initial), that is, CCR-I. Accordingly, the OCS receives the first charging request sent by the gateway device.
Optionally, the first charging request further includes parameter information of the first Gy session, for example: a subscriber Identity, an International Mobile Equipment Identity (IMEI) or a prefix of the IMEI, an Access Point Name (APN), an Internet Protocol (IP) address of a Serving GPRS Support Node (SGSN), and so on. Before executing S103, the OCS stores the parameter information of the first Gy session in the session list of the user of the terminal according to the first charging request, where the session list of the user of the terminal includes the parameter information of the Gy session that the terminal is accessing, and further, the OCS may determine the Gy session that the terminal is accessing, for example, the second Gy session, according to the session list of the user of the terminal. The parameter information of the second Gy session is stored in the session list of the user of the terminal by the OCS receiving the charging request of the second Gy session sent by the gateway device.
S103, the OCS determines to merge the first Gy session and the second Gy session.
In this embodiment, after receiving the first charging request, the OCS determines that the first Gy session may be merged with a second Gy session, where the second Gy session is a Gy session of a second service that the terminal is accessing. The second service is for example WeChat.
In an alternative implementation of S103, the OCS may determine to merge the first Gy session and the second Gy session according to a preset session merging rule, where the preset session merging rule is used to indicate that the first Gy session and the second Gy session need to be merged. An example of the preset session merging rule is shown in table one, but the embodiment is not limited thereto. As can be seen from table one, the group number of the first service is the same as the group number of the second service, and therefore, the Gy session of the first service and the Gy session of the second service can be merged.
Watch 1
S104, the OCS sends a session merging indication message to the gateway equipment, and the gateway equipment receives the session merging indication message sent by the OCS.
In this embodiment, after determining to merge the first Gy session and the second Gy session, the OCS sends a session merging indication message to the gateway device, where the session merging indication message includes a session merging indication, and the session merging indication is used to indicate the gateway device to merge the first Gy session and the second Gy session. The session merging indication message may be a first charging response corresponding to the first charging request, where the first charging response may be a Credit Control response (CCA for short) of the first service, such as an initial CCA (initial CCA), that is, CCA-I, and the session merging indication may be added by extending a Gy interface AVP in the CCA-I in this embodiment. Accordingly, the gateway device receives the session merging indication message sent by the OCS.
S105, the gateway device merges the first Gy session and the second Gy session according to the session merging indication message.
In this embodiment, after receiving the session merging indication message sent by the OCS, the gateway device merges the first Gy session and the second Gy session according to the session merging indication message.
S106, the gateway equipment sends a session merging confirmation message to the OCS, and the OCS receives the session merging confirmation message sent by the gateway equipment.
In this embodiment, after merging the first Gy session and the second Gy session according to the session merging indication message, the gateway device sends a session merging confirmation message to the OCS, where the session merging confirmation message includes a session identifier of the merged Gy session, an RG of the first service, and an RG of the second service. Accordingly, the OCS receives the session merging confirmation message transmitted by the gateway device.
S107, the OCS charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the combined Gy session.
In this embodiment, after receiving the session merging confirmation message sent by the gateway device, the OCS determines that the gateway device has merged the first Gy session and the second Gy session according to the session merging confirmation message, and then charges, according to the merged Gy session, the first service according to the RG of the first service in the session merging confirmation message and charges the second service according to the RG of the second service. In the prior art, a first service is charged according to an RG of the first service through a first Gy session, and a second service is charged according to an RG of the second service through a second Gy session, wherein two Gy sessions are required to be charged respectively in the prior art; in the embodiment of the invention, the merged Gy session is used for charging the first service according to the RG of the first service and charging the second service according to the RG of the second service, and the charging of the two services in the embodiment only needs to be carried out through one Gy session.
Optionally, the session merging indication message may be a second charging request, where the second charging request may be a CCR, and the second charging request is used to request that the OCS charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the merged Gy session. After receiving the second charging request, the OCS further sends a second charging response to the gateway device, where the second charging response is used to instruct the OCS to charge the first service according to the RG of the first service and to charge the second service according to the RG of the second service through the merged Gy session, and the second charging response may be a CCA; accordingly, the gateway device receives the second charging response sent by the OCS.
In the charging method for session merging provided in this embodiment, after the first Gy session is established by the gateway device, a first charging request is sent to the OCS; the OCS determines to combine the first Gy session and the second Gy session according to the first charging request, and sends a session combination indication message to the gateway equipment; the gateway equipment merges the first Gy session and the second Gy session according to the session merging indication message, and sends a session merging confirmation message to the OCS, and the OCS charges the first service and the second service through the merged Gy session, so that the charging of a plurality of services on the same Gy session is realized.
In the charging method for session merging according to the second embodiment of the present invention, this embodiment describes S104 to S107 in detail on the basis of the charging method for session merging according to the first embodiment of the present invention. After determining to merge the first Gy session and the second Gy session, the OCS sends a session merging indication message including a session identifier of the second Gy session and a session merging indication to the gateway device, where the session merging indication is used to instruct the gateway device to merge the second Gy session into the first Gy session; after receiving the session merging instruction message, the gateway device merges the second Gy session into the first Gy session according to the session identifier and the session merging instruction of the second Gy session in the session merging request message, and then sends a session merging confirmation message to the OCS, where the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the first Gy session; after receiving the session merging confirmation message, the OCS charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the merged first Gy session. In this embodiment, the session merging confirmation message may be a CCR of the first Gy session, that is, an updated CCR (CCR-U).
Optionally, an implementation manner of merging the second Gy session into the first Gy session by the gateway device is as follows: the gateway equipment releases the second Gy session and generates a session merging confirmation message, wherein the session merging confirmation message comprises the session identifier of the first Gy session, the RG of the first service and the RG of the second service, and the second Gy session can be determined to be merged into the first Gy session after the session merging confirmation message is generated.
Optionally, before the OCS charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the merged first Gy session, the OCS further identifies that the second Gy session is an invalid session, for example, identifies the state of the second Gy session as invalid in a session list of the user of the terminal.
In the charging method for session merging according to the third embodiment of the present invention, this embodiment describes details of S104 to S107 on the basis of the charging method for session merging according to the first embodiment of the present invention. After determining to merge the first Gy session and the second Gy session, the OCS sends a session merging indication message including a session identifier of the second Gy session and a session merging indication to the gateway device, where the session merging indication is used to indicate the gateway device to merge the first Gy session into the second Gy session; after receiving the session merging instruction message, the gateway device merges the first Gy session into the second Gy session according to the session identifier and the session merging instruction of the second Gy session in the session merging request message, and then sends a session merging confirmation message to the OCS, where the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the second Gy session; after receiving the session merging confirmation message, the OCS charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the merged second Gy session. In this embodiment, the session merge confirm message may be a CCR of the second Gy session, i.e., an updated CCR (CCR-U).
Optionally, an implementation manner of merging the first Gy session into the second Gy session by the gateway device is as follows: the gateway equipment releases the first Gy session and generates a session merging confirmation message, wherein the session merging confirmation message comprises the session identifier of the second Gy session, the RG of the first service and the RG of the second service, and the first Gy session can be determined to be merged into the second Gy session after the session merging confirmation message is generated.
Optionally, before the OCS charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the merged second Gy session, the OCS further identifies that the first Gy session is an invalid session, for example, identifies the state of the first Gy session as invalid in a session list of a user of the terminal.
In the charging method for session merging according to the fourth embodiment of the present invention, this embodiment describes S104 to S107 in detail on the basis of the charging method for session merging according to the first embodiment of the present invention. After determining to merge the first Gy session and the second Gy session, the OCS sends a session merging indication message including a session identifier of the second Gy session and a session merging indication to the gateway device, where the session merging indication is used to instruct the gateway device to merge the first Gy session and the second Gy session into a third Gy session; after receiving the session merging instruction message, the gateway device establishes a third Gy session according to the session merging request message, merges the first Gy session and the second Gy session into the third Gy session, and then sends a session merging confirmation message to the OCS, where a session identifier of the merged Gy session included in the session merging confirmation message is a session identifier of the third Gy session; after receiving the session merging confirmation message, the OCS charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the third Gy session. In this embodiment, the session merge confirm message may be a CCR of the third Gy session, i.e. an initial CCR (CCR-I).
Optionally, an implementation manner of merging the first Gy session into the second Gy session by the gateway device is as follows: the gateway device releases the first Gy session and the second Gy session, generates a session merging confirmation message, wherein the session merging confirmation message comprises a session identifier of the third Gy session, an RG of the first service and an RG of the second service, and the first Gy session and the second Gy session can be determined to be merged into the third Gy session after the session merging confirmation message is generated.
Optionally, before the OCS charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the third Gy session, the OCS further identifies the first Gy session and the second Gy session as invalid sessions, for example, identifies the state of the first Gy session as invalid and identifies the state of the second Gy session as invalid in a session list of a user of the terminal.
On the basis of the above embodiments of the present invention, before merging the first Gy session and the second Gy session according to the session merging indication message, the gateway device further determines that the second Gy session is an effective session according to the identifier of the second Gy session in the session merging indication message; to ensure that the gateway device merges the first Gy session and the second Gy session, the second Gy session being a Gy session for the service the terminal is accessing.
The charging method for session merging provided by each embodiment of the invention merges two independent Gy sessions and adopts a standard credit pool technology, so that two services can share an authorized quota. Moreover, for services accessed simultaneously, a list file can be written, so that under the scene of many service access types, too many lists in the prior art easily cause inconvenience for user query.
It should be noted that, in this embodiment, only the merging procedure of the Gy sessions of two services is shown, but the embodiment of the present invention is not limited to this, and this embodiment may also be applied to merging the Gy sessions of at least two services.
Fig. 5 is a schematic structural diagram of a gateway device according to a second embodiment of the present invention, and as shown in fig. 5, the gateway device according to this embodiment may include: a establishing unit 31, a transmitting unit 32, a receiving unit 33 and a processing unit 34; the establishing unit 31 is configured to establish a first Gy session, where the first Gy session is a Gy session of a first service that a terminal needs to access; a sending unit 32, configured to send a first charging request to the OCS, where the first charging request includes a session identifier of a first Gy session and an RG of a first service, and the first charging request is used to request that charging is performed on the first service according to the RG of the first service through the first Gy session; a receiving unit 33, configured to receive a session merging indication message sent by the OCS, where the session merging indication message includes a session merging indication, and the session merging indication is used to indicate that a first Gy session and a second Gy session are merged, where the second Gy session is a Gy session of a second service that is being accessed by the terminal; a processing unit 34, configured to merge the first Gy session and the second Gy session according to the session merging indication message; a sending unit 32, further configured to send a session merging confirmation message to the OCS, where the session merging confirmation message includes a session identifier of the merged Gy session, an RG of the first service, and an RG of the second service; and the OCS charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the combined Gy session.
Optionally, the session merging indication message further includes a session identifier of the second Gy session, and the session merging indication is used to indicate that the second Gy session is merged into the first Gy session; the processing unit 34 is specifically configured to: merging the second Gy session into the first Gy session according to the session merging indication message; the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the first Gy session; or,
the session merging indication message also comprises a session identifier of the second Gy session, and the session merging indication is used for indicating that the first Gy session is merged into the second Gy session; the processing unit 34 is specifically configured to: merging the first Gy session into a second Gy session according to the session merging indication message; the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the second Gy session; or,
the session merging indication message also comprises a session identifier of the second Gy session, and the session merging indication is used for indicating that the first Gy session and the second Gy session are merged into a third Gy session; the processing unit 34 is specifically configured to: establishing a third Gy session according to the session merging indication message, and merging the first Gy session and the second Gy session into the third Gy session; the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the third Gy session.
Optionally, when merging the second Gy session into the first Gy session, the processing unit 34 is specifically configured to: releasing the second Gy session, and generating a session merging confirmation message comprising the session identifier of the first Gy session, the RG of the first service and the RG of the second service; or,
when merging the first Gy session into the second Gy session, the processing unit 34 is specifically configured to: releasing the first Gy session, and generating a session merging confirmation message comprising a session identifier of the second Gy session, an RG of the first service and an RG of the second service; or,
when merging the first Gy session and the second Gy session into the third Gy session, the processing unit 34 is specifically configured to: and releasing the first Gy session and the second Gy session, and generating a session merging confirmation message comprising the session identifier of the third Gy session, the RG of the first service and the RG of the second service.
Optionally, the processing unit 34 is further configured to determine, before merging the first Gy session and the second Gy session according to the session merging indication message, that the second Gy session is an active session according to the session merging indication message.
Optionally, the session merging indication message is a first charging response; and/or
The session merging confirmation message is a second charging request, and the second charging request is used for requesting to charge the first service according to the RG of the first service through the merged Gy session and charge the second service according to the RG of the second service; the receiving unit 33 is further configured to receive a second charging response sent by the OCS after the sending unit 32 sends the session merging confirmation message to the OCS, where the second charging response is used to instruct the OCS to charge the first service according to the RG of the first service and to charge the second service according to the RG of the second service through the merged Gy session.
The gateway device of this embodiment may be configured to execute the technical solutions of the gateway devices in the above method embodiments of the present invention, and the implementation principles and technical effects are similar, which are not described herein again.
Fig. 6 is a schematic structural diagram of an OCS provided in the second embodiment of the present invention, and as shown in fig. 6, the OCS in this embodiment may include: the terminal comprises a receiving unit 41, a processing unit 42, a sending unit 43, and a charging unit 44, where the receiving unit 41 is configured to receive a first charging request sent by a gateway device, where the first charging request includes a session identifier of a first Gy session and an RG of a first service, and the first Gy session is a Gy session of the first service that the terminal needs to access; the first charging request is used for requesting to charge the first service through the first Gy session according to the RG of the first service; a processing unit 42, configured to determine to merge the first Gy session and a second Gy session, where the second Gy session is a Gy session of a second service that the terminal is accessing; a sending unit 43, configured to send a session merging indication message to the gateway device, where the session merging indication message includes a session merging indication, and the session merging indication is used to instruct the gateway device to merge the first Gy session and the second Gy session; a receiving unit 41, further configured to receive a session merging confirmation message sent by the gateway device, where the session merging confirmation message includes a session identifier of the merged Gy session, an RG of the first service, and an RG of the second service; and the charging unit 44 is configured to charge, through the merged Gy session, the first service according to the RG of the first service and charge the second service according to the RG of the second service.
Optionally, the processing unit 42 is specifically configured to: and determining to merge the first Gy session and the second Gy session according to a preset session merging rule, wherein the preset session merging rule is used for indicating that the first Gy session and the second Gy session need to be merged.
Optionally, the first charging request further includes parameter information of the first Gy session; the processing unit 42 is further configured to, before determining to merge the first Gy session with the second Gy session, store the parameter information of the first Gy session in a session list of the user of the terminal, where the session list of the user of the terminal includes the parameter information of the Gy session of the service being accessed by the terminal; and determining the second Gy session as the Gy session the terminal is accessing according to the session list of the user of the terminal.
Optionally, the session merging indication message further includes a session identifier of the second Gy session, and the session merging indication is used to indicate that the second Gy session is merged into the first Gy session; the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the first Gy session; the charging unit 44 is specifically configured to: through the merged first Gy session, charging the first service according to the RG of the first service and charging the second service according to the RG of the second service; or,
the session merging indication message also comprises a session identifier of the second Gy session, and the session merging indication is used for indicating that the first Gy session is merged into the second Gy session; the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the second Gy session; the charging unit 44 is specifically configured to: through the merged second Gy session, charging the first service according to the RG of the first service and charging the second service according to the RG of the second service; or,
the session merging indication further comprises a session identifier of the second Gy session, and the session merging indication is used for indicating that the first Gy session and the second Gy session are merged into a third Gy session; the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the third Gy session; the charging unit 44 is specifically configured to: and charging the first service according to the RG of the first service and charging the second service according to the RG of the second service through the third Gy session.
Optionally, the processing unit 42 is further configured to identify the second Gy session as an invalid session before the charging unit 44 charges, through the merged first Gy session, the first service according to the RG of the first service and charges the second service according to the RG of the second service; or,
the processing unit 42 is further configured to identify the first Gy session as an invalid session before the charging unit 44 charges, through the merged second Gy session, the first service according to the RG of the first service and charges the second service according to the RG of the second service; or,
the processing unit 42 is further configured to respectively identify the first Gy session and the second Gy session as invalid sessions before the charging unit 44 charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the third Gy session.
Optionally, the session merging indication message is a first charging response; and/or
The session merging confirmation message is a second charging request, and the second charging request is used for requesting the OCS to charge the first service according to the RG of the first service through the merged Gy session and charge the second service according to the RG of the second service; the sending unit 43 is further configured to send, after the receiving unit 41 receives the session merging confirmation message sent by the gateway device, a second charging response to the gateway device, where the second charging response is used to instruct the OCS to charge the first service according to the RG of the first service through the merged Gy session and to charge the second service according to the RG of the second service.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: Read-Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (22)

1. A charging method for session merging is characterized by comprising the following steps:
the gateway equipment establishes a first Gy session, wherein the first Gy session is a Gy session of a first service which a terminal needs to access;
the gateway equipment sends a first charging request to an Online Charging System (OCS), wherein the first charging request comprises a session identifier of the first Gy session and a rate group RG of the first service, and the first charging request is used for requesting to charge the first service through the first Gy session according to the RG of the first service;
the gateway device receives a session merging indication message sent by the OCS, wherein the session merging indication message comprises a session merging indication, the session merging indication is used for indicating that the first Gy session and a second Gy session are merged, and the second Gy session is a Gy session of a second service which is accessed by the terminal;
the gateway equipment merges the first Gy session and the second Gy session according to the session merging indication message;
the gateway equipment sends a session merging confirmation message to the OCS, wherein the session merging confirmation message comprises a session identifier of the merged Gy session, the RG of the first service and the RG of the second service; and the OCS charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the combined Gy session.
2. The method according to claim 1, wherein the session merge indication message further includes a session identifier of the second Gy session, and the session merge indication is used to indicate that the second Gy session is merged into the first Gy session; the gateway device merges the first Gy session and the second Gy session according to the session merging indication message, and the method includes: the gateway device merges the second Gy session into the first Gy session according to the session merging indication message; the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the first Gy session; or,
the session merging indication message further comprises a session identifier of the second Gy session, and the session merging indication is used for indicating that the first Gy session is merged into the second Gy session; the gateway device merges the first Gy session and the second Gy session according to the session merging indication message, and the method includes: the gateway device merges the first Gy session into the second Gy session according to the session merging indication message; the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the second Gy session; or,
the session merging indication message further comprises a session identifier of the second Gy session, and the session merging indication is used for indicating that the first Gy session and the second Gy session are merged into a third Gy session; the gateway device merges the first Gy session and the second Gy session according to the session merging indication message, and the method includes: the gateway device establishes a third Gy session according to the session merging indication message, and merges the first Gy session and the second Gy session into the third Gy session; and the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the third Gy session.
3. The method of claim 2, wherein the merging the second Gy session into the first Gy session by the gateway device comprises: the gateway equipment releases the second Gy session and generates the session merging confirmation message comprising the session identifier of the first Gy session, the RG of the first service and the RG of the second service; or,
the gateway device merging the first Gy session into the second Gy session includes: the gateway equipment releases the first Gy session and generates the session merging confirmation message comprising the session identifier of the second Gy session, the RG of the first service and the RG of the second service; or,
the gateway device merging the first Gy session and the second Gy session into the third Gy session includes: the gateway device releases the first Gy session and the second Gy session, and generates the session merging confirmation message including the session identifier of the third Gy session, the RG of the first service and the RG of the second service.
4. The method according to any of claims 1-3, wherein before the gateway device merges the first Gy session and the second Gy session according to the session merge indication message, the method further comprises:
and the gateway equipment determines the second Gy session as an effective session according to the session merging indication message.
5. The method according to any of claims 1-4, wherein the session merging indication message is a first charging response; and/or
The session merging confirmation message is a second charging request, and the second charging request is used for requesting charging of the first service according to the RG of the first service through the merged Gy session and charging of the second service according to the RG of the second service; after the gateway device sends a session merging confirmation message to the OCS, the method further includes: and the gateway equipment receives a second charging response sent by the OCS, wherein the second charging response is used for indicating that the OCS charges the first service according to the RG of the first service through the combined Gy session and charges the second service according to the RG of the second service.
6. A charging method for session merging is characterized by comprising the following steps:
an online charging system OCS receives a first charging request sent by gateway equipment, wherein the first charging request comprises a session identifier of a first Gy session and a rate group RG of a first service, and the first Gy session is a Gy session of the first service which a terminal needs to access; the first charging request is used for requesting to charge the first service through a first Gy session according to the RG of the first service;
the OCS determines to combine the first Gy session and a second Gy session, wherein the second Gy session is a Gy session of a second service accessed by the terminal;
the OCS sends a session merging indication message to the gateway device, wherein the session merging indication message comprises a session merging indication, and the session merging indication is used for indicating the gateway device to merge the first Gy session and the second Gy session;
the OCS receives a session merging confirmation message sent by the gateway equipment, wherein the session merging confirmation message comprises a session identifier of the merged Gy session, the RG of the first service and the RG of the second service;
and the OCS charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the combined Gy session.
7. The method of claim 6, wherein the OCS determining to merge the first Gy session with the second Gy session comprises:
and the OCS determines to merge the first Gy session and the second Gy session according to a preset session merging rule, wherein the preset session merging rule is used for indicating that the first Gy session and the second Gy session need to be merged.
8. The method according to claim 6 or 7, wherein the first charging request further comprises parameter information of the first Gy session; before the OCS determines to merge the first Gy session and the second Gy session, the method further includes:
the OCS stores the parameter information of the first Gy session in a session list of a user of the terminal, wherein the session list of the user of the terminal comprises the parameter information of the Gy session of the service accessed by the terminal; and determining the second Gy session to be the Gy session accessed by the terminal according to the session list of the user of the terminal.
9. The method according to any of claims 6-8, wherein the session merge indication message further comprises a session identifier of the second Gy session, and the session merge indication is used to indicate that the second Gy session is merged into the first Gy session; the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the first Gy session; the OCS charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the merged Gy session, including: the OCS charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the merged first Gy session; or,
the session merging indication message further comprises a session identifier of the second Gy session, and the session merging indication is used for indicating that the first Gy session is merged into the second Gy session; the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the second Gy session; the OCS charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the merged Gy session, including: the OCS charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the merged second Gy session; or,
the session merging indication further comprises a session identifier of the second Gy session, and the session merging indication is used for indicating that the first Gy session and the second Gy session are merged into a third Gy session; the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the third Gy session; the OCS charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the merged Gy session, including: and the OCS charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the third Gy session.
10. The method of claim 9, wherein before the OCS charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the merged first Gy session, the method further comprises: the OCS identifies the second Gy session as an invalid session; or,
before the OCS charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the merged second Gy session, the method further includes: the OCS identifies the first Gy session as an invalid session; or,
before the OCS charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the third Gy session, the method further includes: the OCS respectively identifies the first Gy session and the second Gy session as invalid sessions.
11. The method according to any of claims 6-10, wherein the session merging indication message is a first charging response; and/or
The session merging confirmation message is a second charging request, where the second charging request is used to request the OCS to charge the first service according to the RG of the first service through the merged Gy session and to charge the second service according to the RG of the second service; after receiving the session merging confirmation message sent by the gateway device, the OCS further includes: and the OCS sends a second charging response to the gateway equipment, wherein the second charging response is used for indicating that the OCS charges the first service according to the RG of the first service through the combined Gy session and charges the second service according to the RG of the second service.
12. A gateway device, comprising:
the establishing unit is used for establishing a first Gy session, and the first Gy session is a Gy session of a first service which a terminal needs to access;
a sending unit, configured to send a first charging request to an online charging system OCS, where the first charging request includes a session identifier of the first Gy session and a rate group RG of the first service, and the first charging request is used to request that the first service is charged according to the RG of the first service through the first Gy session;
a receiving unit, configured to receive a session merging indication message sent by the OCS, where the session merging indication message includes a session merging indication, and the session merging indication is used to indicate that the first Gy session and a second Gy session are merged, where the second Gy session is a Gy session of a second service that the terminal is accessing;
a processing unit, configured to merge the first Gy session and the second Gy session according to the session merging indication message;
the sending unit is further configured to send a session merging confirmation message to the OCS, where the session merging confirmation message includes a session identifier of the merged Gy session, an RG of the first service, and an RG of the second service; and the OCS charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the combined Gy session.
13. The gateway device according to claim 12, wherein the session merge indication message further includes a session identifier of the second Gy session, and wherein the session merge indication indicates that the second Gy session is to be merged into the first Gy session; the processing unit is specifically configured to: merging the second Gy session into the first Gy session according to the session merging indication message; the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the first Gy session; or,
the session merging indication message further comprises a session identifier of the second Gy session, and the session merging indication is used for indicating that the first Gy session is merged into the second Gy session; the processing unit is specifically configured to: merging the first Gy session into the second Gy session according to the session merging indication message; the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the second Gy session; or,
the session merging indication message further comprises a session identifier of the second Gy session, and the session merging indication is used for indicating that the first Gy session and the second Gy session are merged into a third Gy session; the processing unit is specifically configured to: establishing a third Gy session according to the session merging indication message, and merging the first Gy session and the second Gy session into the third Gy session; and the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the third Gy session.
14. The gateway device according to claim 13, wherein the processing unit, when merging the second Gy session into the first Gy session, is specifically configured to: releasing the second Gy session, and generating the session merging confirmation message including the session identifier of the first Gy session, the RG of the first service and the RG of the second service; or,
when merging the first Gy session into the second Gy session, the processing unit is specifically configured to: releasing the first Gy session, and generating the session merging confirmation message including the session identifier of the second Gy session, the RG of the first service and the RG of the second service; or,
when merging the first Gy session and the second Gy session into the third Gy session, the processing unit is specifically configured to: releasing the first Gy session and the second Gy session, and generating the session merging confirmation message including the session identifier of the third Gy session, the RG of the first service, and the RG of the second service.
15. The gateway device according to any of claims 12 to 14, wherein the processing unit is further configured to determine that the second Gy session is an active session according to the session merge indication message before merging the first Gy session and the second Gy session according to the session merge indication message.
16. The gateway device according to any of claims 12-15, wherein the session merging indication message is a first charging response; and/or
The session merging confirmation message is a second charging request, and the second charging request is used for requesting charging of the first service according to the RG of the first service through the merged Gy session and charging of the second service according to the RG of the second service; the receiving unit is further configured to receive a second charging response sent by the OCS after the sending unit sends a session merging confirmation message to the OCS, where the second charging response is used to instruct the OCS to charge the first service according to the RG of the first service through the merged Gy session and to charge the second service according to the RG of the second service.
17. An OCS (online charging System), comprising:
a receiving unit, configured to receive a first charging request sent by a gateway device, where the first charging request includes a session identifier of a first Gy session and a rate group RG of a first service, and the first Gy session is a Gy session of the first service that a terminal needs to access; the first charging request is used for requesting to charge the first service through a first Gy session according to the RG of the first service;
a processing unit, configured to determine to merge the first Gy session and a second Gy session, where the second Gy session is a Gy session of a second service that the terminal is accessing;
a sending unit, configured to send a session merging indication message to the gateway device, where the session merging indication message includes a session merging indication, and the session merging indication is used to instruct the gateway device to merge the first Gy session and the second Gy session;
the receiving unit is further configured to receive a session merging confirmation message sent by the gateway device, where the session merging confirmation message includes a session identifier of the merged Gy session, an RG of the first service, and an RG of the second service;
and the charging unit is used for charging the first service according to the RG of the first service and charging the second service according to the RG of the second service through the combined Gy session.
18. The OCS of claim 17, wherein the processing unit is specifically configured to: and determining to merge the first Gy session and the second Gy session according to a preset session merging rule, wherein the preset session merging rule is used for indicating that the first Gy session and the second Gy session need to be merged.
19. The OCS of claim 17 or 18, wherein the first charging request further comprises parameter information for the first Gy session; the processing unit is further configured to store the parameter information of the first Gy session in a session list of a user of the terminal before determining to merge the first Gy session and a second Gy session, the session list of the user of the terminal including the parameter information of the Gy session of the service being accessed by the terminal; and determining the second Gy session to be the Gy session accessed by the terminal according to the session list of the user of the terminal.
20. The OCS according to any of claims 17 to 19, wherein the session merge indication message further comprises a session identifier of the second Gy session, wherein the session merge indication indicates that the second Gy session is to be merged into the first Gy session; the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the first Gy session; the charging unit is specifically configured to: through the merged first Gy session, charging the first service according to the RG of the first service and charging the second service according to the RG of the second service; or,
the session merging indication message further comprises a session identifier of the second Gy session, and the session merging indication is used for indicating that the first Gy session is merged into the second Gy session; the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the second Gy session; the charging unit is specifically configured to: through the merged second Gy session, charging the first service according to the RG of the first service and charging the second service according to the RG of the second service; or,
the session merging indication further comprises a session identifier of the second Gy session, and the session merging indication is used for indicating that the first Gy session and the second Gy session are merged into a third Gy session; the session identifier of the merged Gy session included in the session merging confirmation message is the session identifier of the third Gy session; the charging unit is specifically configured to: and charging the first service according to the RG of the first service and charging the second service according to the RG of the second service through the third Gy session.
21. The OCS of claim 20, wherein the processing unit is further configured to identify the second Gy session as an invalid session before the charging unit charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the merged first Gy session; or,
the processing unit is further configured to identify the first Gy session as an invalid session before the charging unit charges, through the merged second Gy session, the first service according to the RG of the first service and charges the second service according to the RG of the second service; or,
the processing unit is further configured to respectively identify the first Gy session and the second Gy session as invalid sessions before the charging unit charges the first service according to the RG of the first service and charges the second service according to the RG of the second service through the third Gy session.
22. The OCS according to any of claims 17-21, wherein the session merging indication message is a first charging response; and/or
The session merging confirmation message is a second charging request, where the second charging request is used to request the OCS to charge the first service according to the RG of the first service through the merged Gy session and to charge the second service according to the RG of the second service; the sending unit is further configured to send a second charging response to the gateway device after the receiving unit receives the session merging confirmation message sent by the gateway device, where the second charging response is used to instruct the OCS to charge the first service according to the RG of the first service through the merged Gy session and to charge the second service according to the RG of the second service.
CN201510717949.8A 2015-10-29 2015-10-29 Charging method and equipment for session merging Pending CN106656523A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510717949.8A CN106656523A (en) 2015-10-29 2015-10-29 Charging method and equipment for session merging

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510717949.8A CN106656523A (en) 2015-10-29 2015-10-29 Charging method and equipment for session merging

Publications (1)

Publication Number Publication Date
CN106656523A true CN106656523A (en) 2017-05-10

Family

ID=58830792

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510717949.8A Pending CN106656523A (en) 2015-10-29 2015-10-29 Charging method and equipment for session merging

Country Status (1)

Country Link
CN (1) CN106656523A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547323A (en) * 2017-07-04 2018-01-05 新华三技术有限公司 Message transmitting method, device, associated electronic device and readable storage medium storing program for executing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547323A (en) * 2017-07-04 2018-01-05 新华三技术有限公司 Message transmitting method, device, associated electronic device and readable storage medium storing program for executing
CN107547323B (en) * 2017-07-04 2020-10-30 新华三技术有限公司 Message transmission method and device, related electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
US11272440B2 (en) Network slice selection method and apparatus
US10382943B2 (en) Data service processing method, apparatus, and system in roaming scenario
KR101603025B1 (en) Pcrn roaming agreement
CN111132123A (en) Routing method, device and system for policy control
EP2787768B1 (en) Access method and system
CN107645722B (en) Private network selective access method and system, public network MME, HSS and base station
US20150071128A1 (en) Mobile communication system, gateway device, charging policy control method, and non-transitory computer readable medium storing program
CN106507382B (en) A Diameter message routing method and routing proxy node
CN112702180A (en) Policy control method, device and system
WO2016078090A1 (en) Charging control device, method and system
CN106656523A (en) Charging method and equipment for session merging
CN103379479A (en) Method, system and device for determining of user identification and informing of parameter information
WO2023006061A1 (en) Method and apparatus for charging
CN109309766B (en) Addressing method and device
WO2012086795A1 (en) Mobile communication terminal, contract information management system, terminal control method, and contract information transmission method
JP5269872B2 (en) COMMUNICATION SYSTEM, SERVICE CONTROL DEVICE, AND COMMUNICATION METHOD
KR20130060967A (en) Data service method of multiple pdn based odb scheme for lte mobile users
CN103828405B (en) Group control method, mobility management entity and user equipment
CN106301807B (en) Data service charging method, PCEF (policy and charging enforcement function) equipment, OCS (online charging System) and system
CN102726116A (en) Method, device and system for indicating PPC user
CN103229576A (en) Connection establishment method and device
CN102056125B (en) Method, equipment and system for realizing service control during roaming
KR101971120B1 (en) Apparatus and method for processing data call
CN103686648A (en) Method, device and system for requesting policy and charging control rule information
CN108271153A (en) A kind of methods, devices and systems for realizing user equipment authority identification

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170510

WD01 Invention patent application deemed withdrawn after publication