Method and device for charging local traffic on wireless side

09590812 ยท 2017-03-07

Assignee

Inventors

Cpc classification

International classification

Abstract

The embodiment of the present document discloses a method and apparatus for charging local traffic on a wireless side, which relate to the communication field. The method comprises: a wireless-side network element collecting data traffic and a corresponding IP address of user equipment (UE), searching for UE identification information matching the IP address, and updating the data traffic to a charging data record (CDR) of the corresponding UE, and sending to a charging gateway (CG). The embodiment of the present document can support charging on a wireless access side.

Claims

1. A method for charging local traffic on a wireless side, comprising: matching, by a wireless-side network element, obtained user equipment (UE) identification information and obtained an IP address of a UE; detecting and collecting, by the wireless-side network element, locally processed data traffic and a corresponding IP address of the UE, wherein the locally processed data traffic is data traffic which does not pass a core network, and shunts locally or is ended at the wireless-side network element; searching for, by the wireless-side network element, the UE identification information matching the corresponding IP address of the UE, and updating the locally processed data traffic to a charging data record (CDR) of the UE corresponding to the UE identification information; and sending, by the wireless-side network element, the CDR of the UE to a charging gateway (CG) to combine with a serving GPRS supporting node charging data record (S-CDR) and a gateway GPRS supporting node charging data record (G-CDR) and report to a charging center; wherein, the wireless-side network element includes a radio access network and a NodeB; and the method further comprises: monitoring, by the wireless-side network element, packet data protocol (PDP) activation, and after the PDP activation, the wireless-side network element triggering a charging start and generating the CDR of the UE, and when the charging starts, filling the UE identification information and a charging start time into the CDR of the UE; and triggering, by the wireless-side network element, a charging end through monitoring NAS messages interacted between the UE and the core network.

2. The method according to claim 1, further comprising: obtaining, by the wireless-side network element, the UE identification information through monitoring non-access layer (NAS) messages interacted between the UE and a core network.

3. The method according to claim 2, further comprising: obtaining, by the wireless-side network element, the IP address of the UE carried during packet data protocol (PDP) activation by monitoring the PDP activation.

4. The method according to claim 1, further comprising: obtaining, by the wireless-side network element, the UE identification information through initiating an identification request to the UE.

5. The method according to claim 4, further comprising: obtaining, by the wireless-side network element, the IP address of the UE carried during packet data protocol (PDP) activation by monitoring the PDP activation.

6. The method according to claim 1, further comprising: when the charging ends, filling a charging end time into the CDR of the UE; and sending the CDR of the UE to the CG through a Ga interface.

7. The method according to claim 6, further comprising: according to the UE identification information, the charging start time and the charging end time in the CDR of the UE, combining, by the CG, the CDR of the UE and the S-CDR and the G-CDR, and reporting a combination result to the charging center.

8. An apparatus for charging local traffic on a wireless side, comprising hardware performing instructions stored in a non-transitory computer readable medium which executes steps in following modules: a deep packet inspection (DPI) module, configured to match obtained user equipment (UE) identification information and obtained an IP address of a UE, detect and collect locally processed data traffic and a corresponding IP address of the UE, wherein the locally processed data traffic is data traffic which does not pass a core network, and shunts locally or is ended at the wireless-side network element; and a charging information generation module, configured to search for the UE identification information matching the corresponding IP address of the UE, and update the locally processed data traffic to a charging data record (CDR) of the UE corresponding to the UE identification information, and send the CDR of the UE to a charging gateway (CG) to combine with a serving GPRS supporting node charging data record (S-CDR) and a gateway GPRS supporting node charging data record (G-CDR) and report to a charging center; wherein, the wireless-side network element includes a radio access network and a NodeB; and wherein, the DPI module is further configured to: monitor NAS messages of a service initiation and service termination; the apparatus further comprises a charging control module, configured to trigger a charging start and trigger a charging end according to the NAS messages of the service initiation and the service termination detected by the DPI module, and when the charging starts, filling the UE identification information and a charging start time into the CDR of the UE.

9. The apparatus according to claim 8, wherein, the DPI module is further configured to: obtain the UE identification information through monitoring non-access layer (NAS) messages interacted between the UE and a core network.

10. The apparatus according to claim 8, wherein, the DPI module is further configured to: obtain the UE identification information through initiating an identification request to the UE.

11. The apparatus according to claim 8, wherein, the charging information generation module is further configured to: generate the CDR of the UE when the charging control module triggers the charging start, and fill the UE identification information and a charging start time into the CDR of the UE.

12. The apparatus according to claim 11, further comprising: a Ga interface module, configured to send the CDR of the UE to the CG through a Ga interface.

13. The apparatus according to claim 8, wherein, the charging information generation module is further configured to: when the charging control module triggers the charging end, fill a charging end time into the CDR of the UE.

14. The apparatus according to claim 13, further comprising: a Ga interface module, configured to send the CDR of the UE to the CG through a Ga interface.

Description

BRIEF DESCRIPTION OF DRAWINGS

(1) FIG. 1 is a functional block diagram of charging for local traffic on a wireless side provided by an embodiment of the present document;

(2) FIG. 2 is a system block diagram of charging for local traffic on a wireless side provided by an embodiment of the present document;

(3) FIG. 3 is an apparatus block diagram of charging for local traffic on a wireless side provided by an embodiment of the present document;

(4) FIG. 4 is a system flow chart of charging for local traffic on a wireless side provided by an embodiment of the present document.

PREFERRED EMBODIMENTS OF THE PRESENT DOCUMENT

(5) The preferred embodiments of the present document are described in detail with reference to the accompanying drawings hereinafter. It should be understood that, the embodiments illustrated hereinafter are only used to describe and explain the present document, rather than to limit the present document. The embodiments and the features in the embodiments can be combined with each other when there is no conflict.

(6) When the UE sets up a service connection with the network, according to the standard, the SSGN and the GGSN will charge respectively, and generate the S-CDR and the G-CDR. The embodiment of the present document provides a method and apparatus for charging local traffic on the wireless side, and it charges to the local data traffic at the RAN side, that is to say, if there is the traffic which is terminated on the RAN side or is shunted locally, then the RAN side needs to support the local charging too. Now the present document is explained in detail by combining FIG. 1-FIG. 4.

(7) FIG. 1 is a functional block diagram of charging for local traffic on a wireless side provided by an embodiment of the present document. As shown in FIG. 1, it includes the following steps.

(8) In step S101, the wireless-side network element collects the data traffic and the IP address of the UE.

(9) In step S102, the UE identification information matching the IP address is searched, and the data traffic is updated into the charging data record (CDR) of the UE corresponding to the UE identification information, and sent to the charging gateway (CG).

(10) Wherein, after the UE is adhered to the network, the wireless-side network element obtains the UE identification information through monitoring a non-access layer (NAS) message interacted between the UE and the core network or through initiating an identification request to the UE. When the UE imitates the PDP activation procedure, the wireless-side network element obtains the IP address of the UE carried during the PDP activation, and matches the IP address with the UE identification information, and triggers a charging start after the PDP activation is successful, generates the CDR of the UE, and fills the UE identification information and a charging start time into the CDR. When the local traffic is generated, the wireless-side network element can find the CDR of the corresponding UE through the matching relationship between the collected IP address and the UE identification information, and record the generated local traffic. When the wireless-side network element confirms that the UE terminates the service through monitoring the NAS message interacted between the UE and the core network, it triggers a charging end, and fills a charging end time into the CDR and sends the CDR to the CG through a Ga interface, so that the CG combines the CDR with the S-CDR and the G-CDR according to the UE identification information, the charging start time and the charging end time, and report a combination result to a charging center.

(11) FIG. 2 is a system block diagram of charging for local traffic on a wireless side provided by an embodiment of the present document. As shown in FIG. 2, it includes a wireless-side network element (that is, the RAN device, NodeB), the SSGN, the GGSN, the CG, and the charging center; and in order to support the charging at the radio access side, the RAN device needs to monitor the NAS message of the UE, and the workflow of the system is as follows.

(12) 1, when the user is adhered to the network, the RAN device obtains the UE identification information therefrom, and the identification information can be IMSI, IMEI, etc. If it cannot obtain the UE identification information when the user is adhered to the network, then the RAN device simulates performing the Identity Request procedure, to obtain the UE identification information.

(13) 2, the RAN device monitors the PDP activation procedure, obtains the IP address of the UE therefrom and matches it with the UE identification information, and triggers the charging start.

(14) 3, the RAN device periodically collects the locally processed data traffic (including local shunting and local ending) and the corresponding IP address, and searches for the UE identification information matched with the IP addresses, and updates the data traffic into the CDR of the UE. The CDR includes the identification information of the UE, the uplink data traffic, the downlink data traffic, the charging start time and the charging end time, etc.

(15) 4, the RAN device monitors the NAS message, triggers the charging end when monitoring that the UE terminates the service, that is, when the session is ended, and sends the CDR to the CG through the Ga interface.

(16) 5, after the CG receives the CDR, according to the information, such as, the UE identification information and the start time and the end time of the charging, etc., it combines the CDR at the wireless side into the whole CDR, and then transmits to the charging center, that is, the input of the combination procedure includes the CDR generated at the wireless side, the S-CDR from the SSGN and the G-CDR from the GGSN.

(17) FIG. 3 is an apparatus block diagram of charging for local traffic on a wireless side provided by an embodiment of the present document. As shown in FIG. 3, in order to support the charging, it mainly includes a deep packet inspection (DPI) module, a charging information generation module, a charging control module and a Ga interface module.

(18) The DPI module is used for collecting the data traffic and the corresponding IP address of the UE, to be specific, the main function of the DPI module is to perceive the NAS message, including the following aspects.

(19) 1, it is responsible for collecting the charging information, including the locally processed data traffic (for example, local shunting or local ending) and the source IP address and the target IP address corresponding to the data traffic. By taking the user visiting sohu as an example, during the uplink, that is, the user.fwdarw.sohu, the source IP address is the IP address of the user, and the target IP address is the IP address of the sohu server. During the downlink: that is, sohu.fwdarw.the user, the source IP address is the IP address of the sohu server, and the target IP address is the IP address of the user. No matter uplink or downlink, it needs to draw and know is mainly the IP address of the user.

(20) 2, it monitors the NAS message between the core network and the UE, and obtains the UE identification information and the IP address from it.

(21) 3, it monitors the NAS message of the service initiation and the service termination, thus making the charging control module trigger the charging start and trigger the charging end.

(22) The charging control module is configured to trigger the charging start and trigger the charging end, it mainly receives the input of the DPI module, maintains the corresponding relationship of the UE identification information and the IP address, and knows the session start and end, etc., thus trigging the charging start and end. If the UE identification information is not obtained in the information obtained by the DPI module, then it simulates the Identity Request procedure, to obtain the UE identification information.

(23) The charging information generation module is configured to search for the UE identification information matching the IP address, and to update the collected data traffic into the CDR of the corresponding UE and sends it to the charging gateway CG. That is to say, as to the charging information generation module, it has the following main functions.

(24) 1, it accepts the control of the charging control module, generates one CDR when triggering the charging start, and fills the static part therein, including the UE identification information, the charging start time, etc.

(25) 2, it draws the charging information from the DPI module regularly, matches to the corresponding UE identification information according to the IP address of the UE in the charging information, thus updating the data traffic to the corresponding field in the CDR of the UE. The data traffic includes the uplink data traffic and the downlink data traffic.

(26) 3, when the charging control module triggers the end, it fills the charging end time in the CDR, and transmits the CDR to the Ga interface module.

(27) The Ga interface module is used for sending the CDR from the charging information generation module to the CG through its Ga interface. That is to say, the main function of the Ga interface module lies in the establishment of the charging reporting channel, and realizing the Ga interface, that is, the GTP protocol is required to realize, thus realizing reporting the CDR from the base station to the charging gateway CG.

(28) FIG. 4 is a system flow chart of charging for local traffic on a wireless side provided by an embodiment of the present document. As shown in FIG. 4, it includes the following aspects.

(29) 1, when the UE is adhered to the network, that is, the UE reports its related information to the core network for starting up, the UE interacts the NAS message with the core network, wherein, the NAS message carries the UE identification information. The DPI module monitors and obtains the UE identification information (such as the IMSI, the IMEI, etc.); and if it is not obtained, then the wireless-side network element initiates the Identity Request procedure, to obtain the UE identification information.

(30) The Identity Request procedure was a process between the core network and the UE, in order to obtain the UE identification information, the wireless-side network element simulates sending the Identity Request message to the UE, to require the UE to report its identification information, and after the UE reports it, the wireless-side network element intercepts the message, and analyzes out the UE identification information from the intercepted message.

(31) 2, when the UE needs to perform the PS service, it initiates the PDP activation procedure, the PDP activation procedure will carry the IP information assigned to the UE by the GGSN, and the DPI module detects the IP address of the UE, and matches the IP address with the UE identification information obtained in the 1st step.

(32) Because it can only extract the corresponding IP address during the process of collecting the uplink and downlink data traffics, while the UE identification information is in the CDR, it needs to match the IP address with the UE identification information.

(33) 3, when the PDP activation is successful, the charging control module triggers the charging start, and the charging information generation module generates one CDR, and fills the static part therein, including the UE identification information, the charging start time, etc.

(34) 4, when the DPI module detects that there is the locally processed data traffic, the size of the data traffic (including uplink and downlink) and the IP address of the UE corresponding to the data traffic are recorded.

(35) 5, the charging information generation module extracts the data traffic and its IP address regularly, and matches to the UE identification information according to the IP, and updates the data traffic into the CDR of the corresponding UE.

(36) 6, when the DPI module detects the NAS message of the conversation end, that is, when the service connection is ended, the charging control module triggers the charging end.

(37) 7, when the charging control module triggers the charging end, the charging information generation module fills the charging end time, etc., in the CDR, and transmits the CDR to the Ga interface module.

(38) 8, the Ga interface module transmits the CDR to the charging gateway CG.

(39) 9, after the CG receives the CDR, it associates the CDR, the S-CDR and the G-CDR through the UE identification information, the charging start time and the charging end time, and combines the charging information of the three.

(40) The CDR from the wireless side, the S-CDR from the SGSN and the G-CDR from the GGSN all record the charging start time, the end time, and the UE identification information when the UE surfs the internet, and the CG combines the CDR, the S-CDR and the G-CDR with same or very similar identification information, and the charging start and end time, that is to say, to combine these three CDRs into one CDR.

(41) 10, the CG transmits the combination result to the charging center.

(42) The embodiment of the present document charges to the local traffic at the RAN side, which involves the process to the local charging information by the RAN device and the network element of the core network, and the above descriptions are performed based on the UMTS system, and its principle and technology can also be in common use with other systems, such as, the GSM, the CDMA, the TD-SCDMA, the LTE, etc.

(43) In sum, the embodiment of the present document has the following technical effects:

(44) 1, the embodiment of the present document realizes the effective charging to the local traffic on the wireless side by the core network through triggering the charging start and the charging end effectively.

(45) 2, the embodiment of the present document combines the CDR at the wireless side into the whole charging record through the UE identification information, the charging start and end time, and solves the problem in combining the local charging into the whole charging record.

(46) The above description is only the preferred embodiments of the present document and is not intended to limit the present document. The present document can have a variety of other embodiments. Those skilled in the art can make the corresponding modifications and variations according to the present document without departing from the spirit and essence of the present document. And all of these modifications or the variations should be embodied in the scope of the appending claims of the present document.

(47) Obviously, it can be understood by those skilled in the art that each module or each step above-mentioned in the present document can be implemented by the universal calculating apparatus, and they can be integrated in a single calculating apparatus, or distributed in the network made up by a plurality of calculating apparatus. Alternatively, they can be implemented by the executable program codes of the calculating apparatus. Accordingly, they can be stored in the storage apparatus and implemented by the calculating apparatus, or they are made to each integrated circuit module respectively, or a plurality of modules or steps therein are made into the single integrated circuit module to be implemented. This way, the present document is not limit to any specific form of the combination of the hardware and software.

INDUSTRIAL APPLICABILITY

(48) The embodiment of the present document realizes the effective charging to the local traffic on the wireless side by the core network.