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
sessions
business
session
merged
charging
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
Huawei Software 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

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

The charging method and equipment of merged session
Technical field
The present embodiments relate to communication technical field, more particularly to a kind of charging method of merged session and Equipment.
Background technology
With the extensive application of 4G LTE technologies and network, the continuous extension of MBB mobile data services increases Separately, to charging session ability, requirement on flexibility also more and more higher.In 4G LTE networks, user Using mobile phone terminal internet can access simultaneously multiple business (for example carry out wechat instant chat communicate while Also Sohu.com and Tengxun's video are accessed), core meat and Online Charging System (English:Online Charging System, referred to as:OCS chargeable session interaction is carried out between), multiple business are by multiple Gy Chargeable session interaction.Wherein, Gy sessions are the charging messages based on the conversation modes of diameter agreements, 3GPP defines it and is located between core net PGW/GGSN and OCS, is mainly used in producing user's online The charging of raw flow, authorize, deduct fees.
In prior art.Same user terminal (is surfed the Net, downloads, seeing video etc.) using multiple data Business is surfed the Net, and PGW/GGSN can be directed between each business and OCS and create a Gy session.Often Individual business has the Gy sessions independently of other business, and several business there is several Gy sessions, so Cause that the network interaction between PGW/GGSN and OCS is more, network resource consumption is big.
The content of the invention
The embodiment of the present invention provides a kind of charging method and equipment of merged session, for reducing gateway device Network interaction between OCS, saves Internet resources.
In a first aspect, the embodiment of the present invention provides a kind of charging method of merged session, including:Gateway sets Standby to set up a Gy sessions, a Gy sessions are the Gy sessions of the first business that terminal needs to access; The first accounting request is sent to OCS, the session identification of the first accounting request including a Gy sessions and the The RG of one business, the first accounting request is used for request and passes through RG of the Gy sessions according to the first business Charging is carried out to the first business;The merged session instruction message that OCS sends is received, merged session indicates to disappear Breath includes that merged session is indicated, merged session is indicated for indicating to merge a Gy sessions and the 2nd Gy meetings Words, the 2nd Gy sessions are the Gy sessions of the second business that terminal is being accessed;Indicated according to merged session The Gy sessions of message coalescing the first and the 2nd Gy sessions;Merged session is sent to OCS confirm message, meeting Words merge session identification, the RG of the first business and the second industry for confirming that message includes the Gy sessions after merging The RG of business;So that Gy sessions of the OCS after merging, according to the RG of the first business to the first business Carry out charging and charging is carried out to the second business according to the RG of the second business.It is achieved thereby that multiple industry Business carries out charging in same Gy sessions, because multiple business share same Gy sessions, therefore can The network interaction between gateway device and OCS is reduced, Internet resources are saved.
According in a first aspect, in the first possible implementation of first aspect, merged session is indicated Also including the session identification of the 2nd Gy sessions, merged session is indicated for indicating the 2nd Gy sessions message In being incorporated into a Gy sessions;Gateway device according to merged session indicate the Gy sessions of message coalescing the with 2nd Gy sessions, including:Gateway device indicates message by the 2nd Gy merged sessions extremely according to merged session In first Gy sessions;Merged session confirms that the session identification of the Gy sessions after the merging that message includes is The session identification of the first Gy sessions;Or,
Merged session indicates message also including the session identification of the 2nd Gy sessions, and merged session indicates to be used for Indicate in a Gy merged sessions to the 2nd Gy sessions;Gateway device indicates message according to merged session Merge a Gy sessions and the 2nd Gy sessions, including:Gateway device indicates that message will according to merged session In first Gy merged sessions to the 2nd Gy sessions;Merged session is confirmed after the merging that message includes The session identification of Gy sessions is the session identification of the 2nd Gy sessions;Or,
Merged session indicates message also including the session identification of the 2nd Gy sessions, and merged session indicates to be used for Indicate that by a Gy sessions and the 2nd Gy merged sessions be the 3rd Gy sessions;Gateway device is according to session Merge and indicate the Gy sessions of message coalescing the first and the 2nd Gy sessions, including:Gateway device is closed according to session And indicate that message sets up the 3rd Gy sessions, and by a Gy sessions and the 2nd Gy merged sessions to In three Gy sessions;Merged session confirms the session identification of the Gy sessions after the merging that includes of message for the The session identification of three Gy sessions.
According to the first possible implementation of first aspect, in second possible reality of first aspect In existing mode, gateway device by the 2nd Gy merged sessions to a Gy sessions, including:Gateway device The 2nd Gy sessions are discharged, and generates session identification, the RG of the first business for including a Gy sessions Confirm message with the merged session of the RG of the second business;Or,
Gateway device by a Gy merged sessions to the 2nd Gy sessions, including:Gateway device release the One Gy sessions, and generate session identification, the RG of the first business and second for including the 2nd Gy sessions The merged session of the RG of business confirms message;Or,
Gateway device by a Gy sessions and the 2nd Gy merged sessions to the 3rd Gy sessions, including: Gateway device discharges a Gy sessions and the 2nd Gy sessions, and generates the meeting for including the 3rd Gy sessions The merged session of the RG of words mark, the RG of the first business and the second business confirms message.
According to any one possible implementation of first aspect or more first aspect, in first aspect The third possible implementation in, gateway device according to merged session indicate the Gy of message coalescing the Before session and the 2nd Gy sessions, message is indicated always according to merged session, determine the 2nd Gy sessions to have Effect session.To guarantee that gateway device is merging a Gy sessions and during the 2nd Gy sessions, the 2nd Gy meetings Words are the Gy sessions of the business that terminal is being accessed.
According to any one possible implementation of first aspect or more first aspect, in first aspect The 4th kind of possible implementation in, merged session indicate message be the first charging respond;And/or
Merged session confirms that message is the second accounting request, and the second accounting request is used for request after merging Gy sessions charging and the RG according to the second business are carried out to the first business according to the RG of the first business Charging is carried out to the second business;Gateway device also connects after merged session confirmation message is sent to OCS The second charging response that OCS sends is received, the second charging responds the Gy for indicating OCS after merging Session carries out charging to the first business and according to the RG of the second business to according to the RG of the first business Two business carry out charging.
Second aspect, the embodiment of the present invention provides a kind of charging method of merged session, including:OCS connects The first accounting request that gateway device sends is received, the first accounting request includes the session mark of a Gy sessions Know the RG with the first business, a Gy sessions are the Gy sessions of the first business that terminal needs to access; First accounting request is used for request to be carried out according to the RG of the first business by a Gy sessions to the first business Charging;It is determined that merging a Gy sessions and the 2nd Gy sessions, the 2nd Gy sessions are accessed for terminal The second business Gy sessions;Merged session being sent to gateway device and indicating message, merged session is indicated Message indicates that merged session is indicated for indicating that gateway device merges a Gy sessions including merged session With the 2nd Gy sessions;The merged session confirmation message that gateway device sends is received, merged session confirms to disappear Breath includes the RG of the session identification, the RG of the first business and the second business of the Gy sessions after merging;It is logical The Gy sessions crossed after merging, charging is carried out to the first business and according to second according to the RG of the first business The RG of business carries out charging to the second business.It is achieved thereby that multiple business are enterprising in same Gy sessions Row charging, because multiple business share same Gy sessions, therefore can reduce gateway device and OCS it Between network interaction, save Internet resources.
According to second aspect, in the first possible implementation of second aspect, OCS determines merging First Gy sessions and the 2nd Gy sessions, including:According to default merged session rule, it is determined that merging first Gy sessions and the 2nd Gy sessions, preset merged session rule for indicating a Gy sessions and the 2nd Gy Session needs to merge.
According to the first possible implementation of second aspect or second aspect, the second of second aspect In planting possible implementation, the first accounting request is also including the parameter information of a Gy sessions;OCS Before it is determined that merging a Gy sessions and the 2nd Gy sessions, also by the parameter information of a Gy sessions In being stored in the session list of the user of terminal, the session list of the user of terminal is accessed including terminal Business Gy sessions parameter information;And the session list of the user according to terminal, determine second Gy sessions are the Gy sessions that terminal is being accessed.
According to any one possible implementation of second aspect or more second aspect, in second aspect The third possible implementation in, merged session indicate message also including the 2nd Gy sessions session Mark, merged session is indicated for indicating in the 2nd Gy merged sessions to a Gy sessions;Session is closed And confirm that the session identification of the Gy sessions after the merging that message includes is the session mark of a Gy sessions Know;Gy sessions of the OCS after merging, charging is carried out according to the RG of the first business to the first business And charging is carried out to the second business according to the RG of the second business, including:A Gy after merging Session, charging is carried out to the first business and according to RG pair of the second business according to the RG of the first business Second business carries out charging;Or,
Merged session indicates message also including the session identification of the 2nd Gy sessions, and merged session indicates to be used for Indicate in a Gy merged sessions to the 2nd Gy sessions;Merged session confirms the merging that message includes The session identification of Gy sessions afterwards is the session identification of the 2nd Gy sessions;Gys of the OCS after merging Session, charging is carried out to the first business and according to RG pair of the second business according to the RG of the first business Second business carries out charging, including:The 2nd Gy sessions after merging, according to the RG of the first business Charging is carried out to the first business and charging is carried out to the second business according to the RG of the second business;Or,
Merged session indicates that also including the session identification of the 2nd Gy sessions merged session is indicated for indicating It is the 3rd Gy sessions by a Gy sessions and the 2nd Gy merged sessions;Merged session confirms to be wrapped in message The session identification of the Gy sessions after the merging for including is the session identification of the 3rd Gy sessions;OCS is by merging Gy sessions afterwards, charging is carried out to the first business and according to the second business according to the RG of the first business RG carries out charging to the second business, including:By the 3rd Gy sessions, according to RG pair of the first business First business carries out charging and carries out charging to the second business according to the RG of the second business.
According to the third possible implementation of second aspect, in the 4th kind of possible reality of second aspect In existing mode, a Gy sessions of the OCS after by merging, according to the RG of the first business to first Business carries out charging and the second business is carried out before charging according to the RG of the second business, also identifies Two Gy sessions are invalid session;Or,
OCS enters according to the RG of the first business in the 2nd Gy sessions after merging to the first business Row charging and the second business is carried out before charging according to the RG of the second business, also identify a Gy Session is invalid session;Or,
OCS by the 3rd Gy sessions, according to the RG of the first business charging is carried out to the first business with And the second business is carried out before charging according to the RG of the second business, also respectively identify a Gy sessions and 2nd Gy sessions are invalid session.So that other Gy sessions will not be incorporated into it is identified for invalid In the Gy sessions of session.
According to any one possible implementation of second aspect or more second aspect, in second aspect The 5th kind of possible implementation in, merged session indicate message be the first charging respond;And/or
Merged session confirms that message is the second accounting request, and the second charging is used to ask OCS after merging Gy sessions charging and the RG according to the second business are carried out to the first business according to the RG of the first business Charging is carried out to the second business;OCS receive gateway device send merged session confirm message after, The the second charging response for also sending to gateway device, the second charging is responded for indicating OCS after merging Gy sessions charging and the RG according to the second business are carried out to the first business according to the RG of the first business Charging is carried out to the second business.
The third aspect, the embodiment of the present invention provides a kind of gateway device, including:Unit is set up, for building A vertical Gy sessions, a Gy sessions are the Gy sessions of the first business that terminal needs to access;Send Unit, for sending the first accounting request to OCS, the first accounting request includes the meeting of a Gy sessions The RG of words mark and the first business, the first accounting request is used for request by a Gy sessions according to first The RG of business carries out charging to the first business;Receiving unit, for receiving the merged session of OCS transmissions Message is indicated, merged session indicates that message is indicated including merged session, merged session is indicated for indicating to close And Gy sessions and a 2nd Gy sessions, the 2nd Gy sessions are the second business that terminal is being accessed Gy sessions;Processing unit, for indicating the Gy sessions of message coalescing the first and the 2nd Gy according to merged session Session;Transmitting element, is additionally operable to send merged session confirmation message to OCS, and merged session confirms message Including the RG of the session identification, the RG of the first business and the second business of the Gy sessions after merging;So that OCS by merge after Gy sessions, according to the RG of the first business the first business is carried out charging and Charging is carried out to the second business according to the RG of the second business.It is achieved thereby that multiple business are in same Gy Charging is carried out in session, because multiple business share same Gy sessions, therefore gateway device can be reduced Network interaction between OCS, saves Internet resources.
According to the third aspect, in the first possible implementation of the third aspect, merged session is indicated Also including the session identification of the 2nd Gy sessions, merged session is indicated for indicating the 2nd Gy sessions message In being incorporated into a Gy sessions;Processing unit specifically for:Indicate message by second according to merged session Gy merged sessions are into a Gy sessions;Merged session confirms the Gy meetings after the merging that message includes The session identification of words is the session identification of a Gy sessions;Or,
Merged session indicates message also including the session identification of the 2nd Gy sessions, and merged session indicates to be used for Indicate in a Gy merged sessions to the 2nd Gy sessions;Processing unit specifically for:Closed according to session And indicate message by a Gy merged sessions to the 2nd Gy sessions;Merged session confirms that message includes Merging after Gy sessions session identification be the 2nd Gy sessions session identification;Or,
Merged session indicates message also including the session identification of the 2nd Gy sessions, and merged session indicates to be used for Indicate that by a Gy sessions and the 2nd Gy merged sessions be the 3rd Gy sessions;Processing unit specifically for: Indicate that message sets up the 3rd Gy sessions according to merged session, and by a Gy sessions and the 2nd Gy meetings Words are incorporated into the 3rd Gy sessions;Merged session confirms the meeting of the Gy sessions after the merging that message includes Words are designated the session identification of the 3rd Gy sessions.
According to the first possible implementation of the third aspect, in second possible reality of the third aspect In existing mode, processing unit when by the 2nd Gy merged sessions to a Gy sessions, specifically for: The 2nd Gy sessions are discharged, and generates session identification, the RG of the first business for including a Gy sessions Confirm message with the merged session of the RG of the second business;Or,
Processing unit when by a Gy merged sessions to the 2nd Gy sessions, specifically for:Release the One Gy sessions, and generate session identification, the RG of the first business and second for including the 2nd Gy sessions The merged session of the RG of business confirms message;Or,
Processing unit has when by a Gy sessions and the 2nd Gy merged sessions to the 3rd Gy sessions Body is used for:A Gy sessions and the 2nd Gy sessions are discharged, and generates the meeting for including the 3rd Gy sessions The merged session of the RG of words mark, the RG of the first business and the second business confirms message.
According to any one possible implementation of third aspect or more third aspect, in the third aspect The third possible implementation in, processing unit be additionally operable to according to merged session indicate message coalescing Before first Gy sessions and the 2nd Gy sessions, message is indicated according to merged session, determine the 2nd Gy meetings Talk about as active session.To guarantee that gateway device is merging a Gy sessions and during the 2nd Gy sessions, second Gy sessions are the Gy sessions of the business that terminal is being accessed.
According to any one possible implementation of third aspect or more third aspect, in the third aspect The 4th kind of possible implementation in, merged session indicate message be the first charging respond;And/or
Merged session confirms that message is the second accounting request, and the second accounting request is used for request after merging Gy sessions charging and the RG according to the second business are carried out to the first business according to the RG of the first business Charging is carried out to the second business;Receiving unit is additionally operable to send merged session confirmation to OCS in transmitting element After message, the second charging response that OCS sends is received, the second charging is responded for indicating that OCS leads to The Gy sessions crossed after merging carry out charging to the first business and according to the second industry according to the RG of the first business The RG of business carries out charging to the second business.
Fourth aspect, the embodiment of the present invention provides a kind of OCS, including:Receiving unit, for receiving net The first accounting request that pass equipment sends, the first accounting request include the session identification of a Gy sessions and The RG of the first business, a Gy sessions are the Gy sessions of the first business that terminal needs to access;First Accounting request is based on asking to carry out the first business according to the RG of the first business by a Gy sessions Take;Processing unit, for determining a Gy sessions and the 2nd Gy sessions are merged, and the 2nd Gy sessions are The Gy sessions of the second business that terminal is being accessed;Transmitting element, for sending session to gateway device Merge and indicate message, merged session indicates that message is indicated including merged session, and merged session is indicated for referring to Show that gateway device merges a Gy sessions and the 2nd Gy sessions;Receiving unit, is additionally operable to reception gateway and sets The merged session that preparation is sent confirms message, and merged session confirms that message includes the meeting of the Gy sessions after merging The RG of words mark, the RG of the first business and the second business;Charging Detail Record unit, for after merging Gy sessions, according to the RG of the first business charging and the RG according to the second business are carried out to the first business Charging is carried out to the second business.It is achieved thereby that multiple business carry out charging in same Gy sessions, Because multiple business share same Gy sessions, therefore the network between gateway device and OCS can be reduced Interaction, saves Internet resources.
According to fourth aspect, in the first possible implementation of fourth aspect, processing unit is concrete For:According to default merged session rule, it is determined that merging a Gy sessions and the 2nd Gy sessions, preset Merged session rule needs to merge for indicating a Gy sessions with the 2nd Gy sessions.
According to the first possible implementation of fourth aspect or fourth aspect, the second of fourth aspect In planting possible implementation, the first accounting request is also including the parameter information of a Gy sessions;Process Unit is additionally operable to before it is determined that merging a Gy sessions and the 2nd Gy sessions, by a Gy sessions Parameter information is stored in the session list of the user of terminal, and the session list of the user of terminal includes terminal The parameter information of the Gy sessions of the business for accessing;And the session list of the user according to terminal, Determine that the 2nd Gy sessions are the Gy sessions that terminal is being accessed.
According to any one possible implementation of fourth aspect or more fourth aspect, in fourth aspect The third possible implementation in, merged session indicate message also including the 2nd Gy sessions session Mark, merged session is indicated for indicating in the 2nd Gy merged sessions to a Gy sessions;Session is closed And confirm that the session identification of the Gy sessions after the merging that message includes is the session mark of a Gy sessions Know;Charging Detail Record unit specifically for:A Gy sessions after merging, according to RG pair of the first business First business carries out charging and carries out charging to the second business according to the RG of the second business;Or,
Merged session indicates message also including the session identification of the 2nd Gy sessions, and merged session indicates to be used for Indicate in a Gy merged sessions to the 2nd Gy sessions;Merged session confirms the merging that message includes The session identification of Gy sessions afterwards is the session identification of the 2nd Gy sessions;Charging Detail Record unit specifically for:It is logical Cross merge after the 2nd Gy sessions, according to the RG of the first business the first business is carried out charging and according to The RG of the second business carries out charging to the second business;Or,
Merged session indicates that also including the session identification of the 2nd Gy sessions merged session is indicated for indicating It is the 3rd Gy sessions by a Gy sessions and the 2nd Gy merged sessions;Merged session confirms to be wrapped in message The session identification of the Gy sessions after the merging for including is the session identification of the 3rd Gy sessions;Charging Detail Record unit is concrete For:By the 3rd Gy sessions, according to the RG of the first business the first business is carried out charging and according to The RG of the second business carries out charging to the second business.
According to the third possible implementation of fourth aspect, in the 4th kind of possible reality of fourth aspect In existing mode, processing unit is additionally operable in Charging Detail Record unit by the Gy sessions after merging, according to the The RG of one business carries out charging to the first business and the second business is carried out according to the RG of the second business Before charging, the 2nd Gy sessions of mark are invalid session;Or,
Processing unit is additionally operable to the 2nd Gy sessions in Charging Detail Record unit after merging, according to the first business RG the first business is carried out charging and according to the RG of the second business the second business is carried out charging it Before, the first Gy sessions of mark are invalid session;Or,
Processing unit is additionally operable in Charging Detail Record unit by the 3rd Gy sessions, according to the RG of the first business to the One business carries out charging and the second business is carried out before charging according to the RG of the second business, marks respectively It is invalid session to know a Gy sessions and the 2nd Gy sessions.So that other Gy sessions are not joined And into the identified Gy sessions for invalid session.
According to any one possible implementation of fourth aspect or more fourth aspect, in fourth aspect The 5th kind of possible implementation in, merged session indicate message be the first charging respond;And/or
Merged session confirms that message is the second accounting request, and the second charging is used to ask OCS after merging Gy sessions charging and the RG according to the second business are carried out to the first business according to the RG of the first business Charging is carried out to the second business;Transmitting element is additionally operable to receive the session that gateway device sends in receiving unit Merge and confirm after message, to the second charging response that gateway device sends, the second charging is responded for referring to Show OCS by merge after Gy sessions according to the RG of the first business the first business is carried out charging and Charging is carried out to the second business according to the RG of the second business.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality Apply the accompanying drawing to be used needed for example or description of the prior art to be briefly described, it should be apparent that, under Accompanying drawing in the description of face is some embodiments of the present invention, for those of ordinary skill in the art, On the premise of not paying creative work, can be with according to these other accompanying drawings of accompanying drawings acquisition.
Fig. 1 is the network architecture diagram of the charging method of merged session provided in an embodiment of the present invention;
Fig. 2 is the structural representation of the gateway device that the embodiment of the present invention one is provided;
Fig. 3 is the structural representation of the OCS that the embodiment of the present invention one is provided;
Fig. 4 is the flow chart of the charging method of the merged session that the embodiment of the present invention one is provided;
Fig. 5 is the structural representation of the gateway device that the embodiment of the present invention two is provided;
Fig. 6 is the structural representation of the OCS that the embodiment of the present invention two is provided.
Specific embodiment
To make purpose, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with this Accompanying drawing in bright embodiment, is clearly and completely described to the technical scheme in the embodiment of the present invention, Obviously, described embodiment is a part of embodiment of the invention, rather than the embodiment of whole.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained under the premise of creative work is not made The every other embodiment for obtaining, belongs to the scope of protection of the invention.
Fig. 1 is the network architecture diagram of the charging method of merged session provided in an embodiment of the present invention, such as Fig. 1 It is shown, terminal, gateway device and OCS are illustrate only in the network architecture of the present embodiment, other and charging Not shown in related network equipment Fig. 1.Wherein, terminal 100 is communicated to connect with gateway device 200, And terminal 100 is communicated to connect by base station (not shown in figure 1) with the gateway device 200, gateway Equipment 200 and OCS300 are communicated to connect, when 100 access service of terminal, the terminal 100 and the net IP-CAN sessions are set up between pass equipment 200, the gateway device 200 creates Gy sessions to OCS300 Carry out charging, the charging of the merged session in the present embodiment refer to by gateway device 200 and OCS300 it Between the corresponding business of multiple Gy sessions merge charging.Gateway device 200 be, for example, PGW or GGSN, but the present embodiment is not limited to this.Based on the network architecture shown in Fig. 1, the embodiment of the present invention Following each embodiments are provided to describe embodiment of the present invention in detail.
Fig. 2 is the structural representation of the gateway device that the embodiment of the present invention one is provided, as shown in Fig. 2 this The gateway device of embodiment includes communication interface 11, memory 13 and processor 12.Wherein, communication connects Mouth 11, processor 12, memory 13 are connected with each other by bus 14.Bus 14 can be peripheral hardware portion Part interconnection standards (English:Peripheral Component Interconnect, referred to as:PCI) bus or EISA (English:Extended Industry Standard Architecture, referred to as:EISA) Bus etc..The bus can be divided into address bus, data/address bus, controlling bus etc..For ease of representing, Only represented with a thick line in Fig. 2, it is not intended that only one bus or a type of bus.It is logical Letter interface 11 is used to realize gateway device with other equipment or communication network (such as but not limited to PLMN/PSTN, internet etc.) between communication.For example, for shown in gateway support equipment and Fig. 1 Terminal and OCS between communication.Memory 13, for deposit operation system, program code and data. Memory 13 may be comprising random access memory (English:Random Access Memory, referred to as: RAM), it is also possible to also including nonvolatile memory (non-volatile memory), for example, at least one Magnetic disc store.
Processor 12 performs the program code that memory 13 is deposited, and realizes the following each embodiments of the present invention The charging method of the merged session performed by the gateway device of offer.
Above-mentioned processor 12 can be general processor, including central processing unit (English:Central Processing Unit, referred to as:CPU), network processing unit (English:Network Processor, letter Claim:NP) etc.;Can also be digital signal processor (English:Digital Signal Processor, letter Claim:DSP), special IC (English:Application Specific Integrated Circuit, letter Claim:ASIC), field programmable gate array (English:Field-Programmable Gate Array, Referred to as:FPGA) either other PLDs, discrete gate or transistor logic, discrete Nextport hardware component NextPort.
Fig. 3 is the structural representation of the OCS that the embodiment of the present invention one is provided.As shown in figure 3, this enforcement The OCS of example includes communication interface 21, memory 23 and processor 22.Wherein, communication interface 21, Processor 22, memory 23 are connected with each other by bus 24.Bus 24 can be pci bus or EISA Bus etc..The bus can be divided into address bus, data/address bus, controlling bus etc..For ease of representing, Only represented with a thick line in Fig. 3, it is not intended that only one bus or a type of bus.It is logical Letter interface 21 be used to realizing OCS and other equipment or communication network (such as but not limited to PLMN/PSTN, Internet etc.) between communication.For example, it is logical between the gateway device shown in OCS and Fig. 1 for supporting Letter.Memory 23, for deposit operation system, program code and data.Memory 23 may be included RAM, it is also possible to also including nonvolatile memory, for example, at least one magnetic disc store.
Processor 22 performs the program code that memory 23 is deposited, and realizes the following each embodiments of the present invention The charging method of the merged session performed by the OCS of offer.
Above-mentioned processor 22 can be general processor, including CPU, NP etc.;Can also be DSP, ASIC, FPGA either other PLDs, discrete gate or transistor logic, discrete Nextport hardware component NextPort.
Fig. 4 is the flow chart of the charging method of the merged session that the embodiment of the present invention one is provided, such as Fig. 4 institutes Show, the method for the present embodiment can include:
S101, gateway device set up a Gy sessions.
In the present embodiment, a Gy sessions are the Gy sessions of the first business that terminal needs to access, and work as net Pass equipment determines that the terminal needs to access after the first business, and the gateway device can set up first business Gy sessions, the Gy sessions of first business are referred to as a Gy sessions.First business is, for example, that Baidu regards Frequently.
S102, gateway device to OCS sends the first accounting request, and OCS receives that gateway device sends One accounting request.
In the present embodiment, gateway device is set up after a Gy sessions, and sending the first charging to OCS please Ask, first accounting request includes the session identification of a Gy sessions and the rate group (English of first business Text:Rating Group, referred to as:RG), first accounting request is used to ask OCS to pass through the session A corresponding Gy sessions are identified, charging is carried out to the first business according to the RG of first business.This One accounting request can be the credit control request (English of the first business:Credit Control Request, Referred to as:CCR), such as the CCR, i.e. CCR-I of initial (initial).Correspondingly, OCS receives gateway The first accounting request that equipment sends.
Alternatively, the first accounting request also includes the parameter information of a Gy sessions, for example:User Identification code, mobile device international identity code (English:International Mobile Equipment Identity, Referred to as:) or the prefix of IMEI, APN (English IMEI:Access Point Name, referred to as: APN), Serving GPRS Support Node (English:Serving GPRS Support Node, referred to as: SGSN Internet protocol (English):Internet Protocol, referred to as:IP) address etc..OCS According to the first accounting request before S103 is performed, the parameter information of a Gy sessions is stored in into the end In the session list of the user at end, the session list of the user of the terminal includes what the terminal was being accessed The parameter information of Gy sessions, and then OCS can determine the end according to the session list of the user of the terminal Rectify in the Gy sessions for accessing, such as the 2nd Gy sessions.The parameter information of the 2nd Gy sessions is OCS Receive the accounting request of the 2nd Gy sessions of gateway device transmission and be stored in the meeting of the user of the terminal In words list.
S103, OCS determine the first Gy sessions of merging and the 2nd Gy sessions.
In the present embodiment, OCS is received after the first accounting request, it is determined that can by a Gy sessions with 2nd Gy sessions are merged, and the 2nd Gy sessions are the Gy of the second business that the terminal is being accessed Session.Second business is, for example, wechat.
In a kind of optional implementation of S103, OCS can be regular according to default merged session, It is determined that merging a Gy sessions and the 2nd Gy sessions, the default merged session rule is for instruction first Gy sessions need to merge with the 2nd Gy sessions.Wherein, an example such as table of merged session rule is preset Shown in one, but the present embodiment is not limited to this.As shown in Table 1, the group number of the first business and the second business Group number it is identical, therefore, the Gy sessions of the first business can merge with the Gy sessions of the second business.
Table one
S104, OCS send merged session and indicate message to gateway device, and gateway device receives OCS and sends Merged session indicate message.
In the present embodiment, OCS sets after it is determined that merging a Gy sessions and the 2nd Gy sessions to gateway Preparation send merged session to indicate message, and the merged session indicates that message is indicated including merged session, the session Merge and indicate for indicating that the gateway device merges a Gy sessions and the 2nd Gy sessions.The session is closed And indicating that message can be the first accounting request corresponding first charging response, first charging response can be with It is the diameter credit control response (English of the first business:Credit Control Answer, referred to as:CCA), Such as the CCA of initial (initial), i.e. CCA-I, the present embodiment can be by the Gy in extension CCA-I Interface AVP come add merged session indicate.Correspondingly, gateway device receives the session conjunction that OCS sends And indicate message.
S105, gateway device indicate the Gy sessions of message coalescing the first and the 2nd Gy sessions according to merged session.
In the present embodiment, gateway device receives the merged session of OCS transmissions and indicates after message, according to The merged session indicates the Gy sessions of message coalescing the first and the 2nd Gy sessions.
S106, gateway device send merged session and confirm message to OCS, and OCS receives gateway device and sends Merged session confirm message.
In the present embodiment, gateway device indicates the Gy sessions of message coalescing the first and second according to merged session After Gy sessions, send merged session to OCS and confirm message, the merged session confirms that message includes closing And after Gy sessions session identification, the RG of the first business and the second business RG.Correspondingly, OCS Receive the merged session confirmation message that gateway device sends.
The Gy sessions of S107, OCS after merging, enter according to the RG of the first business to the first business Row charging and charging is carried out to the second business according to the RG of the second business.
In the present embodiment, OCS receives the merged session of gateway device transmission and confirms after message, according to meeting Words merge confirmation message and determine that gateway device has merged a Gy sessions and the 2nd Gy sessions, then pass through Gy sessions after merging, confirm that the RG of the first business in message enters to the first business according to merged session Row charging and charging is carried out to the second business according to the RG of the second business.It is by prior art One Gy sessions carry out charging to the first business according to the RG of the first business, and by the 2nd Gy sessions According to the RG of the second business to the second service billing, charging is carried out respectively to two business in prior art Need to pass through two Gy sessions respectively;And be Gy sessions after merging in the embodiment of the present invention according to The RG of the first business carries out charging to the first business and the second business is entered according to the RG of the second business Two business are carried out charging and are only needed to by a Gy session by row charging in the present embodiment.
Alternatively, above-mentioned merged session indicates that message can be the second accounting request, and second charging please It can be CCR to ask, and second accounting request is used to ask OCS to pass through the Gy sessions after merging according to the The RG of one business carries out charging to the first business and the second business is carried out according to the RG of the second business Charging.OCS is received after second accounting request, also sends the second charging response to gateway device, should Second charging is responded for indicating Gy sessions of the OCS after merging according to RG pair of first business First business carries out charging and carries out charging to the second business according to the RG of the second business, second meter Expense response can be CCA;Correspondingly, gateway device receives the second charging response that OCS sends.
The charging method of the merged session that the present embodiment is provided, by gateway device a Gy sessions are set up Afterwards, the first accounting request is sent to OCS;OCS determines the first Gy of merging according to the first accounting request Session and the 2nd Gy sessions, and send merged session instruction message to gateway device;Gateway device according to Merged session indicates the Gy sessions of message coalescing the first and the 2nd Gy sessions, and sends session conjunction to OCS And confirm message, Gy sessions of the OCS after merging carries out charging to the first business and the second business, It is achieved thereby that multiple business carry out charging in same Gy sessions, because multiple business share same Individual Gy sessions, therefore the network interaction between gateway device and OCS can be reduced, save Internet resources.
In the charging method of the merged session of the embodiment of the present invention two, the present embodiment is in the embodiment of the present invention On the basis of the charging method that one session for providing can be simultaneously, S104-S107 is described in detail.OCS After it is determined that merging the Gy sessions of a Gy sessions the 2nd, sending to gateway device includes the 2nd Gy meetings The merged session that the session identification of words and merged session are indicated indicates message, and the merged session is indicated for referring to Show gateway device by the 2nd Gy merged sessions to a Gy sessions;Gateway device receives the session and closes And indicate after message, the session identification of the 2nd Gy sessions in merged session request message and meeting Words merge instruction, by the 2nd Gy merged sessions to a Gy sessions, then send session to OCS Merge and confirm message, the merged session confirms the session identification of the Gy sessions after the merging that message includes For the session identification of a Gy sessions;OCS receives the merged session and confirms after message, by closing And after a Gy sessions, charging is carried out to the first business and according to second according to the RG of the first business The RG of business carries out charging to the second business.In the present embodiment, merged session confirms that message can be The CCR of the first Gy sessions, that is, the CCR for updating (CCR-U).
Alternatively, gateway device is by a kind of optional reality in the 2nd Gy merged sessions to a Gy sessions Now mode is:Gateway device discharges the 2nd Gy sessions, generates merged session and confirms message, and the session is closed And confirm that message includes the RG of the session identification, the RG of the first business and the second business of a Gy sessions, The merged session confirms that message can determine that by the 2nd Gy merged sessions to a Gy sessions after generating In.
Alternatively, a Gy sessions of the OCS after merging, according to the RG of the first business to first Business carries out charging and the second business is carried out before charging according to the RG of the second business, and OCS is also marked It is invalid session to know the 2nd Gy sessions, such as by the 2nd Gy meetings in the session list of the user of terminal The status indicator of words is invalid.
In the charging method of the merged session of the embodiment of the present invention three, the present embodiment is in the embodiment of the present invention On the basis of the charging method that one session for providing can be simultaneously, S104-S107 is described in detail.OCS After it is determined that merging the Gy sessions of a Gy sessions the 2nd, sending to gateway device includes the 2nd Gy meetings The merged session that the session identification of words and merged session are indicated indicates message, and the merged session is indicated for referring to Show gateway device by a Gy merged sessions to the 2nd Gy sessions;Gateway device receives the session and closes And indicate after message, the session identification of the 2nd Gy sessions in merged session request message and meeting Words merge instruction, by a Gy merged sessions to the 2nd Gy sessions, then send session to OCS Merge and confirm message, the merged session confirms the session identification of the Gy sessions after the merging that message includes For the session identification of the 2nd Gy sessions;OCS receives the merged session and confirms after message, by closing And after the 2nd Gy sessions, charging is carried out to the first business and according to second according to the RG of the first business The RG of business carries out charging to the second business.In the present embodiment, merged session confirms that message can be The CCR of the 2nd Gy sessions, that is, the CCR for updating (CCR-U).
Alternatively, gateway device is by a kind of optional reality in a Gy merged sessions to the 2nd Gy sessions Now mode is:Gateway device discharges a Gy sessions, generates merged session and confirms message, and the session is closed And confirm that message includes the RG of the session identification, the RG of the first business and the second business of the 2nd Gy sessions, The merged session confirms that message can determine that by a Gy merged sessions to the 2nd Gy sessions after generating In.
Alternatively, twoth Gy sessions of the OCS after merging, according to the RG of the first business to first Business carries out charging and the second business is carried out before charging according to the RG of the second business, and OCS is also marked It is invalid session to know a Gy sessions, such as by a Gy meetings in the session list of the user of terminal The status indicator of words is invalid.
In the charging method of the merged session of the embodiment of the present invention four, the present embodiment is in the embodiment of the present invention On the basis of the charging method that one session for providing can be simultaneously, S104-S107 is described in detail.OCS After it is determined that merging a Gy sessions and the 2nd Gy sessions, sending to gateway device includes the 2nd Gy The merged session that the session identification of session and merged session are indicated indicates message, and the merged session indicates to be used for Indicate that a Gy sessions and the 2nd Gy merged sessions are the 3rd Gy sessions by gateway device;Gateway device Receive the merged session to indicate after message, according to merged session request message the 3rd Gy sessions to be set up, And by a Gy sessions and the 2nd Gy merged sessions to the 3rd Gy sessions, then send to OCS Merged session confirms message, and the merged session confirms the session of the Gy sessions after the merging that message includes It is designated the session identification of the 3rd Gy sessions;OCS receives the merged session and confirms after message, to lead to The 3rd Gy sessions are crossed, charging is carried out to the first business and according to the second business according to the RG of the first business RG charging is carried out to the second business.In the present embodiment, merged session confirms that message can be the 3rd The CCR of Gy sessions, i.e., initial CCR (CCR-I).
Alternatively, gateway device is by a kind of optional reality in a Gy merged sessions to the 2nd Gy sessions Now mode is:Gateway device discharges a Gy sessions and the 2nd Gy sessions, generates merged session and confirms to disappear Breath, the merged session confirms that message includes the session identification of the 3rd Gy sessions, the RG of the first business and the The RG of two business, the merged session confirms that message can determine that a Gy sessions and second after generating Gy merged sessions are into the 3rd Gy sessions.
Alternatively, OCS is carried out according to the RG of the first business by the 3rd Gy sessions to the first business Charging and the second business is carried out before charging according to the RG of the second business, also respectively mark should for OCS First Gy sessions and the 2nd Gy sessions are invalid session, such as in the session list of the user of terminal Status indicator by a Gy sessions is invalid and is invalid by the status indicator of the 2nd Gy sessions.
On the basis of the various embodiments described above of the present invention, gateway device is indicating that message is closed according to merged session And the first before Gy sessions and the 2nd Gy sessions, always according to merged session the 2nd Gy in message is indicated The mark of session, determines that the 2nd Gy sessions are active session;To guarantee that gateway device is merging a Gy When session and the 2nd Gy sessions, the 2nd Gy sessions are the Gy sessions of the business that terminal is being accessed.
The charging method of the merged session that various embodiments of the present invention are provided, by two independent Gy meetings Words merge, using the credit pool technologies of standard so that two business can share the quota of mandate. And, for the business for accessing simultaneously, a inventory file can be write, therefore Operational Visit type is a lot Scene under, inventory of the prior art be easily caused too much user inquiry inconvenience.
It should be noted that the merging process of the Gy sessions of two business is illustrate only in the present embodiment, But the embodiment of the present invention is not limited to this, the present embodiment can also be applied to the Gy meetings of at least two business The merging of words.
Fig. 5 is the structural representation of the gateway device that the embodiment of the present invention two is provided, as shown in figure 5, this The gateway device of embodiment can include:Set up unit 31, transmitting element 32, receiving unit 33 and place Reason unit 34;Wherein, unit 31 is set up, for setting up a Gy sessions, a Gy sessions are for eventually End needs the Gy sessions of the first business for accessing;Transmitting element 32, for sending the first charging to OCS Request, the first accounting request includes the session identification of a Gy sessions and the RG of the first business, the first meter Expense request carries out charging according to the RG of the first business by a Gy sessions for request to the first business; Receiving unit 33, the merged session for receiving OCS transmissions indicates message, and merged session indicates message package Merged session instruction is included, merged session is indicated for indicating to merge a Gy sessions and the 2nd Gy sessions, 2nd Gy sessions are the Gy sessions of the second business that terminal is being accessed;Processing unit 34, for basis Merged session indicates the Gy sessions of message coalescing the first and the 2nd Gy sessions;Transmitting element 32, be additionally operable to OCS sends merged session and confirms message, and merged session confirms that message includes the meeting of the Gy sessions after merging The RG of words mark, the RG of the first business and the second business;So that Gy sessions of the OCS after merging, Charging is carried out to the first business and according to the RG of the second business to the second industry according to the RG of the first business Business carries out charging.
Alternatively, merged session indicates message also including the session identification of the 2nd Gy sessions, merged session Indicate for indicating in the 2nd Gy merged sessions to a Gy sessions;Processing unit 34 specifically for: Indicate message by the 2nd Gy merged sessions to a Gy sessions according to merged session;Merged session confirms The session identification of the Gy sessions after the merging that message includes is the session identification of a Gy sessions;Or,
Merged session indicates message also including the session identification of the 2nd Gy sessions, and merged session indicates to be used for Indicate in a Gy merged sessions to the 2nd Gy sessions;Processing unit 34 specifically for:According to meeting Words merge instruction message by a Gy merged sessions to the 2nd Gy sessions;Merged session is confirmed in message Including merging after Gy sessions session identification be the 2nd Gy sessions session identification;Or,
Merged session indicates message also including the session identification of the 2nd Gy sessions, and merged session indicates to be used for Indicate that by a Gy sessions and the 2nd Gy merged sessions be the 3rd Gy sessions;Processing unit 34 is specifically used In:Indicate that message sets up the 3rd Gy sessions according to merged session, and by a Gy sessions and second Gy merged sessions are into the 3rd Gy sessions;Merged session confirms the Gy meetings after the merging that message includes The session identification of words is the session identification of the 3rd Gy sessions.
Alternatively, processing unit 34 is when by the 2nd Gy merged sessions to a Gy sessions, specifically For:The 2nd Gy sessions are discharged, and generates session identification, the first business for including a Gy sessions RG and the second business RG merged session confirm message;Or,
Processing unit 34 when by a Gy merged sessions to the 2nd Gy sessions, specifically for:Release Put a Gy sessions, and generate include the session identification of the 2nd Gy sessions, the RG of the first business and The merged session of the RG of the second business confirms message;Or,
Processing unit 34 when by a Gy sessions and the 2nd Gy merged sessions to the 3rd Gy sessions, Specifically for:A Gy sessions and the 2nd Gy sessions are discharged, and generation includes the 3rd Gy sessions The merged session of the RG of session identification, the RG of the first business and the second business confirms message.
Alternatively, processing unit 34 is additionally operable to indicating the Gy sessions of message coalescing the according to merged session Before the 2nd Gy sessions, message is indicated according to merged session, determine that the 2nd Gy sessions are active session.
Alternatively, merged session indicates message for the first charging response;And/or
Merged session confirms that message is the second accounting request, and the second accounting request is used for request after merging Gy sessions charging and the RG according to the second business are carried out to the first business according to the RG of the first business Charging is carried out to the second business;Receiving unit 33 is additionally operable to send session conjunction to OCS in transmitting element 32 And confirm after message, receive the second charging response that OCS sends, the second charging is responded for indicating Gy sessions of the OCS after merging carries out charging and root according to the RG of the first business to the first business Charging is carried out to the second business according to the RG of the second business.
The gateway device of the present embodiment, can be used for gateway in execution above-mentioned each method embodiment of the invention and sets Standby technical scheme, it realizes that principle is similar with technique effect, and here is omitted.
Fig. 6 is the structural representation of the OCS that the embodiment of the present invention two is provided, as shown in fig. 6, this enforcement The OCS of example can include:Receiving unit 41, processing unit 42, transmitting element 43, Charging Detail Record unit 44, Wherein, receiving unit 41, for receiving the first accounting request of gateway device transmission, the first accounting request The RG of session identification and the first business including a Gy sessions, a Gy sessions need to visit for terminal The Gy sessions of the first business asked;First accounting request is used for request by a Gy sessions according to first The RG of business carries out charging to the first business;Processing unit 42, for determining a Gy sessions are merged With the 2nd Gy sessions, the 2nd Gy sessions are the Gy sessions of the second business that terminal is being accessed;Send Unit 43, for sending merged session to gateway device message is indicated, merged session indicates that message includes meeting Words merge instruction, and merged session is indicated for indicating that gateway device merges a Gy sessions and the 2nd Gy meetings Words;Receiving unit 41, is additionally operable to receive the merged session confirmation message that gateway device sends, merged session Confirm that message includes session identification, the RG of the first business and second business of the Gy sessions after merging RG;Charging Detail Record unit 44, for the Gy sessions after merging, according to the RG of the first business to first Business carries out charging and carries out charging to the second business according to the RG of the second business.
Alternatively, processing unit 42 specifically for:According to default merged session rule, it is determined that merging first Gy sessions and the 2nd Gy sessions, preset merged session rule for indicating a Gy sessions and the 2nd Gy Session needs to merge.
Alternatively, the first accounting request is also including the parameter information of a Gy sessions;Processing unit 42 is also For before it is determined that merging a Gy sessions and the 2nd Gy sessions, the parameter of a Gy sessions being believed Breath is stored in the session list of the user of terminal, and the session list of the user of terminal is visited including terminal The parameter information of the Gy sessions of the business asked;And the session list of the user according to terminal, determine Two Gy sessions are the Gy sessions that terminal is being accessed.
Alternatively, merged session indicates message also including the session identification of the 2nd Gy sessions, merged session Indicate for indicating in the 2nd Gy merged sessions to a Gy sessions;Merged session confirms to be wrapped in message The session identification of the Gy sessions after the merging for including is the session identification of a Gy sessions;Charging Detail Record unit 44 Specifically for:A Gy sessions after merging, are carried out according to the RG of the first business to the first business Charging and charging is carried out to the second business according to the RG of the second business;Or,
Merged session indicates message also including the session identification of the 2nd Gy sessions, and merged session indicates to be used for Indicate in a Gy merged sessions to the 2nd Gy sessions;Merged session confirms the merging that message includes The session identification of Gy sessions afterwards is the session identification of the 2nd Gy sessions;Charging Detail Record unit 44 specifically for: The 2nd Gy sessions after merging, charging and root are carried out according to the RG of the first business to the first business Charging is carried out to the second business according to the RG of the second business;Or,
Merged session indicates that also including the session identification of the 2nd Gy sessions merged session is indicated for indicating It is the 3rd Gy sessions by a Gy sessions and the 2nd Gy merged sessions;Merged session confirms to be wrapped in message The session identification of the Gy sessions after the merging for including is the session identification of the 3rd Gy sessions;Charging Detail Record unit 44 Specifically for:By the 3rd Gy sessions, according to the RG of the first business the first business is carried out charging and Charging is carried out to the second business according to the RG of the second business.
Alternatively, processing unit 42 is additionally operable to the Gy sessions in Charging Detail Record unit 44 after merging, Charging is carried out to the first business and according to the RG of the second business to the second industry according to the RG of the first business Business is carried out before charging, and the 2nd Gy sessions of mark are invalid session;Or,
Processing unit 42 is additionally operable to the 2nd Gy sessions in Charging Detail Record unit 44 after merging, according to the The RG of one business carries out charging to the first business and the second business is carried out according to the RG of the second business Before charging, the first Gy sessions of mark are invalid session;Or,
Processing unit 42 is additionally operable in Charging Detail Record unit 44 by the 3rd Gy sessions, according to the first business RG carries out charging to the first business and the second business is carried out before charging according to the RG of the second business, It is invalid session to identify a Gy sessions and the 2nd Gy sessions respectively.
Alternatively, merged session indicates message for the first charging response;And/or
Merged session confirms that message is the second accounting request, and the second charging is used to ask OCS after merging Gy sessions charging and the RG according to the second business are carried out to the first business according to the RG of the first business Charging is carried out to the second business;Transmitting element 43 is additionally operable to receive gateway device transmission in receiving unit 41 Merged session confirm message after, to gateway device send the second charging response, the second charging response Based on indicating that Gy sessions of the OCS after merging is carried out according to the RG of the first business to the first business Take and charging is carried out to the second business according to the RG of the second business.
One of ordinary skill in the art will appreciate that:Realize all or part of step of above-mentioned each method embodiment Suddenly can be completed by the related hardware of programmed instruction.Aforesaid program can be stored in a computer can In reading storage medium.The program upon execution, performs the step of including above-mentioned each method embodiment;And Aforesaid storage medium includes:Read-only memory (English:Read-Only Memory, referred to as:ROM)、 Random access memory (English:Random Access Memory, referred to as:RAM), magnetic disc or CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above is only illustrating technical scheme rather than right Its restriction;Although being described in detail to the present invention with reference to foregoing embodiments, this area it is common Technical staff should be understood:It still can modify to the technical scheme described in foregoing embodiments, Either equivalent is carried out to which part or all technical characteristic;And these modifications or replacement, and The scope of the essence disengaging various embodiments of the present invention technical scheme of appropriate technical solution is not made.

Claims (22)

1. a kind of charging method of merged session, it is characterised in that include:
Gateway device sets up a Gy sessions, and a Gy sessions are the first industry that terminal needs to access The Gy sessions of business;
The gateway device to Online Charging System OCS sends the first accounting request, and first charging please Seek rate group RG of session identification including a Gy sessions and first business, described first Accounting request be used for request by a Gy sessions according to the RG of first business to described first Business carries out charging;
The gateway device receives the merged session instruction message that the OCS sends, and the merged session refers to Show that message is indicated including merged session, the merged session is indicated for indicating to merge a Gy meetings Words and the 2nd Gy sessions, the 2nd Gy sessions are the Gy of the second business that the terminal is being accessed Session;
The gateway device according to the merged session indicate message coalescing described in a Gy sessions with it is described 2nd Gy sessions;
The gateway device sends merged session and confirms message to the OCS, and the merged session confirms to disappear Breath includes session identification, the RG of first business and second business of the Gy sessions after merging RG;So that Gy sessions of the OCS after merging, according to the RG of first business to described First business carries out charging and carries out charging to the second business according to the RG of second business.
2. method according to claim 1, it is characterised in that the merged session indicates message also Including the session identification of the 2nd Gy sessions, the merged session is indicated for indicating described second Gy merged sessions are into a Gy sessions;The gateway device indicates to disappear according to the merged session Breath merges a Gy sessions and the 2nd Gy sessions, including:The gateway device is according to described Merged session indicates message by the 2nd Gy merged sessions to a Gy sessions;The session The session identification for merging the Gy sessions after the merging that confirmation message includes is the meeting of a Gy sessions Words mark;Or,
The merged session indicates message also including the session identification of the 2nd Gy sessions, the session Merge and indicate for indicating in a Gy merged sessions to the 2nd Gy sessions;The gateway An equipment Gy sessions and the 2nd Gy sessions according to the merged session indicates message coalescing, Including:The gateway device indicates message by a Gy merged sessions extremely according to the merged session In the 2nd Gy sessions;The merged session confirms the meeting of the Gy sessions after the merging that message includes Words are designated the session identification of the 2nd Gy sessions;Or,
The merged session indicates message also including the session identification of the 2nd Gy sessions, the session Merge and indicate for indicating that by a Gy sessions and the 2nd Gy merged sessions be the 3rd Gy meetings Words;The gateway device according to the merged session indicate message coalescing described in a Gy sessions with it is described 2nd Gy sessions, including:The gateway device indicates that message sets up the 3rd Gy according to the merged session Session, and by a Gy sessions and the 2nd Gy merged sessions to the 3rd Gy sessions In;The merged session confirms the session identification of the Gy sessions after the merging that message includes for described the The session identification of three Gy sessions.
3. method according to claim 2, it is characterised in that the gateway device is by described second Gy merged sessions into a Gy sessions, including:The gateway device discharges the 2nd Gy Session, and generate session identification, the RG of first business and the institute for including a Gy sessions The merged session for stating the RG of the second business confirms message;Or,
The gateway device by a Gy merged sessions to the 2nd Gy sessions, including:Institute State gateway device and discharge a Gy sessions, and generate the session mark for including the 2nd Gy sessions The merged session of the RG of knowledge, the RG of first business and second business confirms message; Or,
The gateway device is by a Gy sessions and the 2nd Gy merged sessions to the described 3rd In Gy sessions, including:The gateway device discharges a Gy sessions and the 2nd Gy sessions, And generation includes session identification, the RG of first business and described second of the 3rd Gy sessions The merged session of the RG of business confirms message.
4. the method according to claim 1-3 any one, it is characterised in that the gateway device Before a Gy sessions and the 2nd Gy sessions according to the merged session indicates message coalescing, Also include:
The gateway device indicates message according to the merged session, determines the 2nd Gy sessions to have Effect session.
5. the method according to claim 1-4 any one, it is characterised in that the merged session Message is indicated for the first charging response;And/or
The merged session confirms that message is the second accounting request, and second accounting request is used to ask to lead to The Gy sessions crossed after merging carry out charging and root according to the RG of first business to first business Charging is carried out to second business according to the RG of second business;The gateway device is to the OCS Send merged session to confirm after message, also to include:The gateway device receive that the OCS sends the Two chargings are responded, and second charging responds the Gy session roots for indicating the OCS after merging Charging and the RG according to second business are carried out to first business according to the RG of first business Charging is carried out to second business.
6. a kind of charging method of merged session, it is characterised in that include:
Online Charging System OCS receives the first accounting request that gateway device sends, and first charging please Ask rate group RG of session identification including a Gy sessions and the first business, a Gy sessions The Gy sessions of first business for needing to access for terminal;First accounting request is used to ask to lead to Cross a Gy sessions carries out charging according to the RG of first business to first business;
The OCS determines merging the first Gy sessions and the 2nd Gy sessions, the 2nd Gy sessions The Gy sessions of the second business accessed for the terminal;
The OCS sends merged session and indicates message to the gateway device, and the merged session indicates to disappear Breath includes that merged session is indicated, the merged session is indicated for indicating that the gateway device merges described the One Gy sessions and the 2nd Gy sessions;
The OCS receives the merged session confirmation message that the gateway device sends, and the merged session is true Recognizing message includes session identification, the RG of first business and second industry of the Gy sessions after merging The RG of business;
Gy sessions of the OCS after merging, according to the RG of first business to described first Business carries out charging and carries out charging to second business according to the RG of second business.
7. method according to claim 6, it is characterised in that the OCS determines and merges described First Gy sessions and the 2nd Gy sessions, including:
The OCS is according to default merged session rule, it is determined that merging the Gy sessions with described the Two Gy sessions, the default merged session rule is used to indicate a Gy sessions and described second Gy sessions need to merge.
8. the method according to claim 6 or 7, it is characterised in that first accounting request is also Including the parameter information of a Gy sessions;The OCS determine merge a Gy sessions with Before 2nd Gy sessions, also include:
The parameter information of the first Gy sessions is stored in the OCS session of the user of the terminal In list, the session list of the user of the terminal includes the Gy meetings of the business that the terminal is being accessed The parameter information of words;And the session list of the user according to the terminal, determine the 2nd Gy meetings Talk about the Gy sessions accessed for the terminal.
9. the method according to claim 6-8 any one, it is characterised in that the merged session Message is indicated also including the session identification of the 2nd Gy sessions, the merged session is indicated for indicating By in the 2nd Gy merged sessions to a Gy sessions;The merged session confirms to be wrapped in message The session identification of the Gy sessions after the merging for including is the session identification of a Gy sessions;The OCS Gy sessions after merging, according to the RG of first business charging is carried out to first business with And charging is carried out to second business according to the RG of second business, including:The OCS passes through A Gy sessions after merging, according to the RG of first business charging is carried out to first business with And charging is carried out to second business according to the RG of second business;Or,
The merged session indicates message also including the session identification of the 2nd Gy sessions, the session Merge and indicate for indicating in a Gy merged sessions to the 2nd Gy sessions;The session The session identification for merging the Gy sessions after the merging that confirmation message includes is the meeting of the 2nd Gy sessions Words mark;Gy sessions of the OCS after merging, according to the RG of first business to described First business carries out charging and carries out charging to second business according to the RG of second business, Including:Twoth Gy sessions of the OCS after merging, according to the RG of first business to institute Stating the first business carries out charging and carries out charging to second business according to the RG of second business; Or,
The merged session is indicated also including the session identification of the 2nd Gy sessions, the merged session Indicate for indicating that by a Gy sessions and the 2nd Gy merged sessions be the 3rd Gy sessions; The merged session confirms that the session identification of the Gy sessions after the merging that message includes is the 3rd Gy The session identification of session;Gy sessions of the OCS after merging, according to the RG of first business Charging is carried out to first business and second business is carried out according to the RG of second business Charging, including:The OCS by the 3rd Gy sessions, according to RG pair of first business First business carries out charging and second business is counted according to the RG of second business Take.
10. method according to claim 9, it is characterised in that the OCS is after merging First Gy sessions, charging is carried out and according to institute according to the RG of first business to first business State the RG of the second business carries out before charging, also including to second business:The OCS identifies institute The 2nd Gy sessions are stated for invalid session;Or,
Twoth Gy sessions of the OCS after merging, according to the RG of first business to described First business carry out charging and according to the RG of second business second business is carried out charging it Before, also include:It is invalid session that the OCS identifies a Gy sessions;Or,
The OCS by the 3rd Gy sessions, according to the RG of first business to described first Business carries out charging and second business is carried out before charging according to the RG of second business, Also include:The OCS identifies respectively a Gy sessions and the 2nd Gy sessions are invalid meeting Words.
11. methods according to claim 6-10 any one, it is characterised in that the session is closed And indicate that message is the first charging response;And/or
The merged session confirms that message is the second accounting request, and second charging is used to ask described Gy sessions of the OCS after merging is counted according to the RG of first business to first business Take and charging is carried out to second business according to the RG of second business;The OCS receives institute The merged session for stating gateway device transmission confirms after message, also to include:The OCS to the gateway sets The second charging response that preparation is sent, second charging is responded for indicating the OCS after merging Gy sessions carry out charging and according to described second according to the RG of first business to first business The RG of business carries out charging to second business.
12. a kind of gateway devices, it is characterised in that include:
Unit is set up, for setting up a Gy sessions, a Gy sessions are that terminal needs what is accessed The Gy sessions of the first business;
Transmitting element, for sending the first accounting request, first charging to Online Charging System OCS Request includes the session identification of a Gy sessions and rate group RG of first business, described the One accounting request be used for request by a Gy sessions according to the RG of first business to described the One business carries out charging;
Receiving unit, for receiving the merged session that the OCS sends message, the merged session are indicated Indicate that message is indicated including merged session, the merged session is indicated for indicating to merge a Gy Session and the 2nd Gy sessions, the 2nd Gy sessions are the second business that the terminal is being accessed Gy sessions;
Processing unit, for a Gy sessions and institute according to merged session instruction message coalescing State the 2nd Gy sessions;
The transmitting element, is additionally operable to send merged session confirmation message to the OCS, and the session is closed And confirm that message includes the session identification of Gy sessions after merging, the RG of first business and described the The RG of two business;So that Gy sessions of the OCS after merging, according to first business RG carries out charging to first business and the second business is counted according to the RG of second business Take.
13. gateway devices according to claim 12, it is characterised in that the merged session is indicated Also including the session identification of the 2nd Gy sessions, the merged session is indicated for indicating institute message The 2nd Gy merged sessions are stated into a Gy sessions;The processing unit specifically for:According to institute Stating merged session indicates message by the 2nd Gy merged sessions to a Gy sessions;The meeting It is a Gy sessions that words merge the session identification of the Gy sessions after the merging that confirmation message includes Session identification;Or,
The merged session indicates message also including the session identification of the 2nd Gy sessions, the session Merge and indicate for indicating in a Gy merged sessions to the 2nd Gy sessions;The process Unit specifically for:Indicate message by a Gy merged sessions to described according to the merged session In 2nd Gy sessions;The merged session confirms the session mark of the Gy sessions after the merging that message includes Know the session identification for the 2nd Gy sessions;Or,
The merged session indicates message also including the session identification of the 2nd Gy sessions, the session Merge and indicate for indicating that by a Gy sessions and the 2nd Gy merged sessions be the 3rd Gy meetings Words;The processing unit specifically for:Indicate that message sets up the 3rd Gy sessions according to the merged session, And by a Gy sessions and the 2nd Gy merged sessions into the 3rd Gy sessions;Institute State merged session and confirm that the session identification of the Gy sessions after the merging that message includes is the 3rd Gy meetings The session identification of words.
14. gateway devices according to claim 13, it is characterised in that the processing unit is being incited somebody to action When the 2nd Gy merged sessions are into a Gy sessions, specifically for:Discharge described second Gy sessions, and generate session identification, the RG of first business for including a Gy sessions Confirm message with the merged session of the RG of second business;Or,
The processing unit when by a Gy merged sessions to the 2nd Gy sessions, specifically For:Discharge a Gy sessions, and generate include the 2nd Gy sessions session identification, The merged session of the RG of the RG of first business and second business confirms message;Or,
The processing unit is by a Gy sessions and the 2nd Gy merged sessions to the described 3rd When in Gy sessions, specifically for:A Gy sessions and the 2nd Gy sessions are discharged, and Generation includes session identification, the RG of first business and second business of the 3rd Gy sessions RG the merged session confirm message.
15. gateway devices according to claim 12-14 any one, it is characterised in that described Processing unit be additionally operable to according to the merged session indicate message coalescing described in a Gy sessions with it is described Before 2nd Gy sessions, message is indicated according to the merged session, determine the 2nd Gy sessions to have Effect session.
16. gateway devices according to claim 12-15 any one, it is characterised in that described Merged session indicates message for the first charging response;And/or
The merged session confirms that message is the second accounting request, and second accounting request is used to ask to lead to The Gy sessions crossed after merging carry out charging and root according to the RG of first business to first business Charging is carried out to second business according to the RG of second business;The receiving unit is additionally operable in institute State transmitting element to send after merged session confirmation message to the OCS, receive what the OCS sent Second charging is responded, and second charging responds the Gy sessions for indicating the OCS after merging Charging is carried out to first business and according to second business according to the RG of first business RG carries out charging to second business.
17. a kind of Online Charging System OCS, it is characterised in that include:
Receiving unit, for receiving the first accounting request of gateway device transmission, first accounting request Rate group RG of session identification and the first business including a Gy sessions, a Gy sessions are Terminal needs the Gy sessions of first business for accessing;First accounting request passes through for request First Gy sessions carry out charging according to the RG of first business to first business;
Processing unit, for determining a Gy sessions and the 2nd Gy sessions are merged, and described second Gy sessions are the Gy sessions of the second business that the terminal is being accessed;
Transmitting element, for sending merged session to the gateway device message, the merged session are indicated Indicate that message is indicated including merged session, the merged session is indicated for indicating that the gateway device merges The first Gy sessions and the 2nd Gy sessions;
The receiving unit, is additionally operable to receive the merged session confirmation message that the gateway device sends, institute State merged session and confirm that message includes session identification, the RG of first business of the Gy sessions after merging With the RG of second business;
Charging Detail Record unit, for the Gy sessions after merging, according to the RG of first business to described First business carries out charging and carries out charging to second business according to the RG of second business.
18. OCS according to claim 17, it is characterised in that the processing unit specifically for: According to default merged session rule, it is determined that merging a Gy sessions and the 2nd Gy sessions, institute State default merged session rule needs to close for indicating a Gy sessions and the 2nd Gy sessions And.
19. OCS according to claim 17 or 18, it is characterised in that first charging please Ask also including the parameter information of a Gy sessions;The processing unit is additionally operable to it is determined that merging institute Before stating a Gy sessions and the 2nd Gy sessions, the parameter information of a Gy sessions is stored in In the session list of the user of the terminal, the session list of the user of the terminal is including the terminal just In the parameter information of the Gy sessions of the business for accessing;And the session list of the user according to the terminal, Determine that the 2nd Gy sessions are the Gy sessions that the terminal is being accessed.
20. OCS according to claim 17-19 any one, it is characterised in that the session Merge and indicate message also including the session identification of the 2nd Gy sessions, the merged session indicates to be used for Indicate in the 2nd Gy merged sessions to a Gy sessions;The merged session confirms message The session identification of the Gy sessions after the merging for including is the session identification of a Gy sessions;It is described Charging Detail Record unit specifically for:A Gy sessions after merging, according to RG pair of first business First business carries out charging and second business is counted according to the RG of second business Take;Or,
The merged session indicates message also including the session identification of the 2nd Gy sessions, the session Merge and indicate for indicating in a Gy merged sessions to the 2nd Gy sessions;The session The session identification for merging the Gy sessions after the merging that confirmation message includes is the meeting of the 2nd Gy sessions Words mark;The Charging Detail Record unit specifically for:The 2nd Gy sessions after merging, according to described The RG of one business carries out charging to first business and according to the RG of second business to described Second business carries out charging;Or,
The merged session is indicated also including the session identification of the 2nd Gy sessions, the merged session Indicate for indicating that by a Gy sessions and the 2nd Gy merged sessions be the 3rd Gy sessions; The merged session confirms that the session identification of the Gy sessions after the merging that message includes is the 3rd Gy The session identification of session;The Charging Detail Record unit specifically for:By the 3rd Gy sessions, according to institute Stating the RG of the first business carries out charging to first business and according to RG pair of second business Second business carries out charging.
21. OCS according to claim 20, it is characterised in that the processing unit is additionally operable to A Gy session of the Charging Detail Record unit after merging, according to the RG of first business to described the One business carries out charging and second business is carried out before charging according to the RG of second business, The 2nd Gy sessions are identified for invalid session;Or,
The processing unit is additionally operable to the 2nd Gy sessions in the Charging Detail Record unit after merging, according to The RG of first business carries out charging and the RG according to second business to first business Second business is carried out before charging, it is invalid session to identify a Gy sessions;Or,
The processing unit is additionally operable in the Charging Detail Record unit by the 3rd Gy sessions, according to described The RG of the first business carries out charging to first business and according to the RG of second business to institute Stating the second business is carried out before charging, a Gy sessions is identified respectively and the 2nd Gy sessions are Invalid session.
22. OCS according to claim 17-21 any one, it is characterised in that the session Merge and indicate message for the first charging response;And/or
The merged session confirms that message is the second accounting request, and second charging is used to ask described Gy sessions of the OCS after merging is counted according to the RG of first business to first business Take and charging is carried out to second business according to the RG of second business;The transmitting element is also After receiving the merged session confirmation message that the gateway device sends in the receiving unit, to institute The second charging response of gateway device transmission is stated, second charging is responded for indicating that the OCS passes through Gy sessions after merging according to the RG of first business first business is carried out charging and according to The RG of second business carries out charging to second business.
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
KR101296048B1 (en) Online charging architecture in lte/epc communication networks
CN103460642B (en) Method and apparatus for controlling the service business in communication network
US9407512B2 (en) Method and apparatus for controlling terminal's access to a wireless network
CN102884757A (en) Charging method selection for service data flows based on the data services being requested
CN105453601A (en) Connecting IMSI-less devices to the EPC
CN103404185A (en) Temporary restrictions and rollback
CN102783195A (en) Local roaming charging in LTE/EPC networks
TW200947945A (en) Online charging for roaming users in a proxy online charging system of a visited network
CN102497379B (en) Network access method, system and equipment
CN108540973A (en) Data service handling method, device and system under roaming scence
CN105101136B (en) A kind of charging method of data service, apparatus and system
CN110324801A (en) The method and apparatus of charging
CN103392352B (en) Strategy and charging control method and apparatus
CN112702180B (en) Policy control method, device and system
CN101616009B (en) Method for transmitting data service and equipment thereof
CN106936603A (en) A kind of data service billing method, device and system
CN106656523A (en) Charging method and equipment for session merging
CN105208538B (en) The method and system of pre-payment international roaming speech business is carried out in heterogeneous network
CN109891840A (en) The method and apparatus of the tactical management of interim products in telecommunication network
CN109547956B (en) Multi-service concurrent processing method
CN106714129A (en) Roaming charging method, related device and online charging system
CN101179405A (en) Data traffic real-time charging method, system and proxy server
CN104104662B (en) Method and device for processing session service connection
CN102369775A (en) Processing methode, device and system for charging
CN102238508B (en) Online charging method, device and system

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