Traffic statistics method and system, and computer-readable storage medium

The base station and UPF report traffic information when users access services, combined with SMF's accounting policy calculation, to solve the problem that the core network cannot completely count business traffic under the base station offloading scheme, and achieve the accuracy and feasibility of traffic accounting.

CN113873455BActive Publication Date: 2024-08-27CHINA TELECOM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111287983.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-02
Publication Date
2024-08-27
Estimated Expiration
2041-11-02

AI Technical Summary

Technical Problem

Under the base station offloading solution, the core network cannot completely count user business traffic, resulting in limited billing methods and difficulty in accurate billing based on traffic.

Method used

When the user goes online to access the service, the base station sends the first traffic information to the AMF, and the UPF reports the second traffic information to the SMF. The SMF calculates the user's traffic information and charging information according to the charging policy, and sends them to the CHF for execution. Billing. Specific steps include: when the billing policy differentiates between private network and public network charging, the second traffic information is included in the public network charging group, and the traffic obtained by subtracting the second traffic information from the first traffic information is included in the private network calculation. charge group, or discard the second traffic information when charging is not distinguished, and calculate only based on the first traffic information.

Benefits of technology

It achieves complete statistics of user business traffic under the base station offloading scheme, solves the problem of limited billing methods, and ensures the accuracy and feasibility of traffic billing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113873455B
    Figure CN113873455B
Patent Text Reader

Abstract

The present disclosure provides a traffic statistics method and system thereof, and a computer-readable storage medium. The method includes: in the process of a user going online to access a service, when the time reaches the reporting period, the base station sends the first traffic information to the AMF, and the UPF reports the second traffic information to the SMF, wherein, in the process of the user going online to access the service, the service traffic is diverted by the base station, so that the private network service traffic in the service traffic is forwarded to the private network device, and the public network service traffic in the service traffic is forwarded to the UPF; the AMF sends the received first traffic information to the SMF; after receiving the first traffic information and the second traffic information, the SMF calculates the user's traffic information and billing information according to the billing strategy, and sends the user's traffic information and billing information to the CHF; and the CHF performs billing according to the user's traffic information and billing information. The present disclosure can solve the problem that the core network cannot fully count the service traffic under the base station diversion solution as much as possible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to a traffic statistics method and system thereof, and a computer-readable storage medium. Background Art

[0002] At present, 5G (5th Generation Mobile Communication Technology) private networks can be generally divided into two categories: the first is an independent private network based on a dedicated frequency band, that is, a private network solution independent of the public network; the second is a private network solution in which the private network shares some network resources with the public network.

[0003] The second type of private network solution mentioned above includes a variety of different implementation methods, such as sinking edge UPF (User Plane Function), enterprise-built lightweight 5GC (5G core network) and base station diversion. Here, the base station diversion solution specifically refers to the user establishing a session through the public network UPF, and inserting a diversion module at the back end of the base station to detect and identify data packets accessing the enterprise campus, and send the data packets directly to the enterprise server. The private network data does not pass through the public network UPF. This solution has many advantages such as easy deployment and activation, low deployment cost, low service latency, and data does not leave the campus.

[0004] However, in the above base station diversion solution, since the private network traffic is directly diverted to the enterprise server through the base station without passing through the UPF, the core network cannot count the user's complete business traffic, which limits the billing method and makes it inconvenient to charge based on traffic. Summary of the invention

[0005] A technical problem solved by the present disclosure is to provide a traffic statistics method to solve the problem that the core network cannot completely count the service traffic under the base station offload solution as much as possible.

[0006] According to one aspect of the present disclosure, a traffic statistics method is provided, including: in the process of a user going online to access a service, when the time reaches a reporting period, the base station sends first traffic information to the access and mobility management function unit AMF, and the user plane function unit UPF reports second traffic information to the session management function unit SMF, wherein, in the process of the user going online to access the service, the service traffic is diverted by the base station, so that the private network service traffic in the service traffic is forwarded to the private network device, and the public network service traffic in the service traffic is forwarded to the UPF; the AMF sends the received first traffic information to the SMF; after receiving the first traffic information and the second traffic information, the SMF calculates the user's traffic information and billing information according to the billing policy, and sends the user's traffic information and billing information to the billing function unit CHF; and the CHF performs billing according to the user's traffic information and billing information.

[0007] In some embodiments, the step in which the SMF calculates the traffic information and billing information of the user according to the billing policy includes: when the billing policy is to differentiate between private network traffic and public network traffic, the SMF includes the second traffic information in the public network billing group, and includes the traffic after deducting the second traffic information from the first traffic information in the private network billing group, thereby obtaining the traffic information and billing information of the user; or when the billing policy is that private network traffic and public network traffic do not need to be differentiated in billing, the SMF discards the second traffic information, and calculates the traffic information and billing information of the user based on the first traffic information.

[0008] In some embodiments, the step in which the AMF sends the received first traffic information to the SMF includes: after receiving the first traffic information, the AMF sends a protocol data unit PDU session context update request message to the SMF, wherein the PDU session context update request message includes the first traffic information; the traffic statistics method also includes: the SMF returns a response message to the AMF to reply to the PDU session context update request message.

[0009] In some embodiments, the first traffic information is data traffic generated by a protocol data unit (PDU) session.

[0010] In some embodiments, the reporting period at which the base station sends the first flow information is the same as the reporting period at which the UPF reports the second flow information.

[0011] According to another aspect of the present disclosure, a traffic statistics system is provided, including: a base station, configured to send first traffic information to an AMF when a time reaches a reporting period during a process in which a user goes online to access a service; wherein, during the process in which the user goes online to access a service, service traffic is diverted by the base station, so that private network service traffic in the service traffic is forwarded to a private network device, and public network service traffic in the service traffic is forwarded to the UPF;

[0012] The UPF is used to report the second flow information to the SMF; the AMF is used to send the received first flow information to the SMF; the SMF is used to calculate the user's flow information and billing information according to the billing policy after receiving the first flow information and the second flow information, and send the user's flow information and billing information to the CHF; and the CHF is used to perform billing based on the user's flow information and billing information.

[0013] In some embodiments, the SMF is used to, when the billing policy is to differentiate between private network traffic and public network traffic, include the second traffic information in the public network billing group, and include the traffic obtained by subtracting the second traffic information from the first traffic information in the private network billing group, thereby obtaining the traffic information and billing information of the user; or, when the billing policy is that private network traffic and public network traffic do not need to be differentiated in billing, discard the second traffic information, and calculate the traffic information and billing information of the user based on the first traffic information.

[0014] In some embodiments, the AMF is used to send a PDU session context update request message to the SMF after receiving the first traffic information, wherein the PDU session context update request message includes the first traffic information; the SMF is also used to return a response message to the AMF in reply to the PDU session context update request message.

[0015] In some embodiments, the first traffic information is data traffic generated by a protocol data unit (PDU) session.

[0016] In some embodiments, the reporting period at which the base station sends the first flow information is the same as the reporting period at which the UPF reports the second flow information.

[0017] According to another aspect of the present disclosure, a traffic statistics system is provided, including: a memory; and a processor coupled to the memory, wherein the processor is configured to execute the aforementioned method based on instructions stored in the memory.

[0018] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method described above is implemented.

[0019] The above traffic statistics method can solve the problem that the core network cannot fully count the service traffic under the base station offload solution as much as possible.

[0020] Other features and advantages of the present disclosure will become apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings, which constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0022] The present disclosure may be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:

[0023] Figure 1 is a flow chart showing a traffic statistics method according to some embodiments of the present disclosure;

[0024] Figure 2 is a flow chart showing a flow statistics method according to other embodiments of the present disclosure;

[0025] Figure 3 is a flow chart showing a flow statistics method according to other embodiments of the present disclosure;

[0026] Figure 4 is a structural block diagram showing a traffic statistics system according to some embodiments of the present disclosure;

[0027] Figure 5 is a structural block diagram showing a traffic statistics system according to other embodiments of the present disclosure;

[0028] Figure 6 is a structural block diagram showing a traffic statistics system according to some other embodiments of the present disclosure. DETAILED DESCRIPTION

[0029] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present disclosure unless otherwise specifically stated.

[0030] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.

[0031] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.

[0032] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.

[0033] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0034] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0035] Figure 1 FIG. 4 is a flow chart showing a method for calculating traffic statistics according to some embodiments of the present disclosure. Figure 1 As shown, the traffic statistics method includes steps S102 to S108.

[0036] In step S102, when the user goes online to access the service, when the time reaches the reporting period, the base station sends the first flow information to the AMF (Access and Mobility Management Function), and the UPF reports the second flow information to the SMF (Session Management Function). When the user goes online to access the service, the service traffic is diverted by the base station, so that the private network service traffic in the service traffic is forwarded to the private network device (for example, the private network server), and the public network service traffic in the service traffic is forwarded to the UPF.

[0037] In some embodiments, the reporting period of the first flow information sent by the base station is the same as the reporting period of the second flow information reported by the UPF. That is, the period of flow reporting configured in the base station is consistent with the configuration of the core network. In this way, the first flow information and the second flow information can be reported at the same time as much as possible.

[0038] In some embodiments, the first traffic information is data traffic generated by a PDU (Protocol Data Unit) session.

[0039] In an embodiment of the present disclosure, the step of the base station sending the first flow information to the AMF may include: the base station sends a user flow reporting message to the AMF, and the user flow reporting message includes information such as the user access type, the PDU session ID (identifier), the start and end time of the PDU session, and the data flow generated by the PDU session (i.e., the first flow information).

[0040] Therefore, based on the existing second type of data usage reporting process, a new NGAP (Next Generation Application Protocol) process for reporting user data traffic can be added, which is also defined as Class 2. The purpose of the base station reporting the first traffic information to the AMF is achieved through the user traffic reporting message.

[0041] In step S104, AMF sends the received first flow information to SMF.

[0042] In some embodiments, the step S104 includes: after receiving the first flow information, the AMF sends a PDU session context update request message to the SMF, wherein the PDU session context update request message includes the first flow information. In this embodiment, the AMF sends the first flow information to the SMF in the form of a PDU session context update request message.

[0043] In step S106, after receiving the first flow information and the second flow information, the SMF calculates the user's flow information and billing information according to the billing policy, and sends the user's flow information and billing information to the CHF (Charging Function, billing function unit).

[0044] In some embodiments, the step of SMF calculating the user's traffic information and billing information according to the billing policy includes: when the billing policy is to differentiate between private network traffic and public network traffic, SMF will include the second traffic information in the public network billing group, and the traffic after deducting the second traffic information from the first traffic information will be included in the private network billing group, thereby obtaining the traffic information and billing information of the user; or when the billing policy is that private network traffic and public network traffic do not need to be differentiated in billing, SMF discards the second traffic information, and calculates the user's traffic information and billing information based on the first traffic information.

[0045] In the above embodiment, the first flow information reported by the base station includes the total flow of private network service flow and public network service flow, and the second flow information is the public network service flow. Therefore, in the case of separate billing of private network flow and public network flow, the first flow information minus the second flow information is the private network service flow, thereby realizing separate billing of private network flow and public network flow; and in the case that private network flow and public network flow do not need to be separately billed, only the first flow information needs to be billed. In this way, the purpose of SMF calculating the user's flow information and billing information according to the billing policy is achieved.

[0046] In some embodiments, the method may further include: SMF returns a response message to AMF to reply to the PDU session context update request message. For example, the response message may be a confirmation message such as OK.

[0047] So far, a traffic statistics method according to some embodiments of the present disclosure is provided. The traffic statistics method includes: in the process of the user going online to access the service, when the time reaches the reporting period, the base station sends the first traffic information to the AMF, and the UPF reports the second traffic information to the SMF, wherein, in the process of the user going online to access the service, the service traffic is diverted by the base station, so that the private network service traffic in the service traffic is forwarded to the private network device, and the public network service traffic in the service traffic is forwarded to the UPF; the AMF sends the received first traffic information to the SMF; after receiving the first traffic information and the second traffic information, the SMF calculates the user's traffic information and billing information according to the billing strategy, and sends the user's traffic information and billing information to the CHF; and the CHF performs billing according to the user's traffic information and billing information. This method can solve the problem that the core network cannot fully count the service traffic under the base station diversion solution as much as possible.

[0048] Figure 2 FIG. 1 is a flow chart showing a flow statistics method according to other embodiments of the present disclosure. Figure 2 As shown, the method includes steps S202 to S222.

[0049] In step S202, the base station configures a traffic reporting method. For example, the reporting method may be periodic reporting, and the reporting period is consistent with the configuration of the core network.

[0050] In steps S204 to S210, the user goes online to access the service normally, and the service traffic is diverted through the base station, among which the private network service traffic is directly forwarded to the enterprise DN (Data Network) (ie, private network server), and the public network service traffic is sent to UPF.

[0051] In step S212, when the time reaches the reporting period, the base station initiates a user traffic reporting message to the AMF, which includes information such as session traffic usage (i.e., first traffic information), session start and end time, reporting type, session access type, etc. At the same time, in step S216, the UPF normally reports the user traffic information (i.e., second traffic information) to the SMF.

[0052] In step S214, after receiving the reporting information from the base station, the AMF initiates a PDU session context update request and passes the reporting information from the base station to the SMF for processing.

[0053] In step S218, after receiving the request from AMF and the traffic information reported by UPF, SMF performs calculations according to the billing strategy: if the private network traffic and the public network traffic are charged separately, the traffic reported by UPF (i.e., the second traffic information) is included in the public network billing group, and the traffic reported by the base station (i.e., the first traffic information) minus the traffic reported by UPF (i.e., the second traffic information) is included in the private network billing group; if no differentiated billing is required, the traffic information reported by UPF is discarded, and the traffic reported by the base station is calculated.

[0054] In step S220, SMF sends the calculated traffic information and billing information to CHF and replies to the PDU session context update request message initiated by AMF.

[0055] In step S222, CHF completes the billing after receiving the message from SMF.

[0056] So far, a traffic statistics method according to other embodiments of the present disclosure is provided. The method can solve the problem that the core network cannot completely count user service traffic under the current base station offload solution as much as possible, the message flow is relatively simple, easy to implement, and the changes to the base station and the core network are relatively small.

[0057] Figure 3 Flowcharts showing the flow statistics method according to other embodiments of the present disclosure. Figure 3 The following is an example of the user billing process of a campus private network.

[0058] In step 1, the reporting mode of the base station is set to periodically and actively report user traffic information, and the reporting period is consistent with the core network configuration.

[0059] In step 2, the private network user goes online, and the traffic of the UE (User Equipment) accessing the private network service is diverted through the base station to the enterprise campus data center, and the traffic of the UE accessing the public network service is sent to the UPF.

[0060] In step 3a, when the time reaches the configured reporting period, the base station sends a user traffic reporting message to the AMF, which contains information such as the access type, the user's PDU session ID, the start and end time of the PDU session, and the traffic statistics generated by the session.

[0061] In step 3b, UPF reports the user's traffic information to SMF.

[0062] In step 4, after receiving the message reported by the base station, AMF sends the user's traffic statistics information to SMF through a PDU session context update request message (i.e., PDU session SM (Session Management) context update request message).

[0063] In step 5, SMF determines whether to differentiate between private network traffic and public network traffic based on the billing policy, and calculates the traffic reported by AMF and the traffic reported by UPF.

[0064] For example, a processing module is added to the SMF, which can calculate the traffic information reported by the base station and UPF according to the configuration of the billing group (i.e., the billing policy). Specifically, if the public network traffic and the private network traffic are billed separately, the traffic reported by the UPF is included in the public network billing group, and the traffic reported by the base station minus the traffic reported by the UPF is included in the private network billing group; if the billing is not differentiated, the SMF discards the traffic information reported by the UPF and only counts the traffic information reported by the base station.

[0065] In step 6, SMF sends the calculated user traffic information and billing information to CHF.

[0066] In step 7, SMF replies to the PDU session SM context update request message initiated by AMF through a PDU session SM context update response message.

[0067] In step 8, CHF completes the billing of the private network user.

[0068] So far, a traffic statistics method according to some other embodiments of the present disclosure is provided. In this method, the base station actively and periodically reports the user service traffic, and then the SMF calculates the traffic reported by the base station and the traffic reported by the UPF, thereby solving the problem that the core network cannot fully count the service traffic under the base station offload solution as much as possible.

[0069] Figure 4 is a structural block diagram showing a traffic statistics system according to some embodiments of the present disclosure. Figure 4 As shown, the traffic statistics system includes: a base station 402, a UPF 404, an AMF 406, a SMF 408 and a CHF 410.

[0070] Base station 402 is used to send first traffic information to AMF when the time reaches the reporting period during the process of the user going online to access the service. Here, during the process of the user going online to access the service, the service traffic is diverted by the base station, so that the private network service traffic in the service traffic is forwarded to the private network device, and the public network service traffic in the service traffic is forwarded to UPF.

[0071] In some embodiments, the first traffic information is data traffic generated by the PDU session.

[0072] In some embodiments, the reporting period for the base station to send the first flow information is the same as the reporting period for the UPF to report the second flow information.

[0073] UPF 404 is used to report the second flow information to SMF 408.

[0074] AMF 406 is used to send the received first flow information to SMF 408.

[0075] The SMF 408 is used to calculate the user's flow information and billing information according to the billing policy after receiving the first flow information and the second flow information, and send the user's flow information and billing information to the CHF 410.

[0076] In some embodiments, SMF 408 is used to, when the billing policy is to differentiate between private network traffic and public network traffic, include the second traffic information in the public network billing group, and include the traffic obtained by subtracting the second traffic information from the first traffic information in the private network billing group, thereby obtaining the user's traffic information and billing information; or, when the billing policy is that private network traffic and public network traffic do not need to be differentiated in billing, discard the second traffic information, and obtain the user's traffic information and billing information based on the first traffic information.

[0077] CHF 410 is used to perform billing according to the user's traffic information and billing information.

[0078] So far, a traffic statistics system according to some embodiments of the present disclosure is provided. The system can solve the problem that the core network cannot completely count user service traffic under the current base station offload solution as much as possible, the message flow is relatively simple, easy to implement, and the changes to the base station and the core network are relatively small.

[0079] In some embodiments, AMF 406 is used to send a PDU session context update request message to SMF 408 after receiving the first flow information, wherein the PDU session context update request message includes the first flow information.

[0080] In some embodiments, SMF 408 is further configured to return a response message to AMF 406 in reply to the PDU session context update request message.

[0081] Figure 5 is a structural block diagram showing a traffic statistics system according to some other embodiments of the present disclosure. The traffic statistics system includes a memory 510 and a processor 520. Among them:

[0082] The memory 510 can be a disk, a flash memory, or any other non-volatile storage medium. The memory is used to store Figures 1 to 3 At least one of the corresponding embodiments of the instructions.

[0083] The processor 520 is coupled to the memory 510 and can be implemented as one or more integrated circuits, such as a microprocessor or a microcontroller. The processor 520 is used to execute instructions stored in the memory, which can solve the problem that the core network cannot completely count the service traffic under the base station offload solution as much as possible.

[0084] It should be noted that the system may include multiple memories 510 and multiple processors 520, and the multiple memories 510 and the multiple processors 520 may be arranged in different devices in a matching manner.

[0085] In some embodiments, it is also possible to Figure 6 As shown, the traffic statistics system 600 includes a memory 610 and a processor 620. The processor 620 is coupled to the memory 610 via a BUS 630. The traffic statistics system 600 can also be connected to an external storage device 650 via a storage interface 640 to call external data, and can also be connected to a network or another computer system (not shown) via a network interface 660, which will not be described in detail here.

[0086] In this embodiment, the problem that the core network cannot fully count the service traffic under the base station offload solution can be solved as much as possible by storing data instructions in the memory and processing the above instructions through the processor.

[0087] It should be noted that the system may include multiple memories 610, multiple processors 620, multiple BUS buses 630, multiple storage interfaces 640, multiple external storage devices 650, and multiple network interfaces 660. These memories 610, processors 620, BUS buses 630, storage interfaces 640, external storage devices 650, and network interfaces 660 may be arranged in different devices in a matching manner.

[0088] In some other embodiments, the present disclosure further provides a non-transitory computer-readable storage medium having computer program instructions stored thereon, which are executed by a processor to implement Figures 1 to 3The present invention is a method for performing a method of performing a computer program product in at least one of the embodiments of the present invention. It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable non-transient storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0089] The present disclosure is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present disclosure. It should be understood that each process and / or block in the flowchart and / or block diagram and the combination of processes and / or blocks in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0090] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0091] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0092] So far, the present disclosure has been described in detail. In order to avoid obscuring the concept of the present disclosure, some details known in the art are not described. Based on the above description, those skilled in the art can fully understand how to implement the technical solution disclosed here.

[0093] Although some specific embodiments of the present disclosure have been described in detail by way of example, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. It should be understood by those skilled in the art that the above embodiments may be modified without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.

Claims

1. A traffic statistics method, comprising: In the process of the user going online to access the service, when the time reaches the reporting period, the base station sends the first flow information to the access and mobility management function unit AMF, and the user plane function unit UPF reports the second flow information to the session management function unit SMF, wherein, in the process of the user going online to access the service, the service traffic is diverted by the base station, so that the private network service traffic in the service traffic is forwarded to the private network device, and the public network service traffic in the service traffic is forwarded to the UPF; The AMF sends the received first flow information to the SMF; After receiving the first flow information and the second flow information, the SMF calculates the flow information and the billing information of the user according to the billing policy, and sends the flow information and the billing information of the user to the billing function unit CHF; and The CHF performs billing according to the flow information and billing information of the user; The step of the SMF calculating the flow information and billing information of the user according to the billing policy includes: In the case where the billing strategy is to charge private network traffic and public network traffic separately, the SMF counts the second traffic information into the public network billing group, and counts the traffic obtained by subtracting the second traffic information from the first traffic information into the private network billing group, thereby obtaining the traffic information and billing information of the user; or When the billing policy is that private network traffic and public network traffic do not need to be billed separately, the SMF discards the second traffic information and calculates the user's traffic information and billing information based on the first traffic information.

2. The traffic statistics method according to claim 1, wherein: The step of the AMF sending the received first flow information to the SMF includes: After receiving the first flow information, the AMF sends a protocol data unit PDU session context update request message to the SMF, wherein the PDU session context update request message includes the first flow information; The traffic statistics method also includes: the SMF returns a response message to the AMF to reply to the PDU session context update request message.

3. The traffic statistics method according to claim 1, wherein: The first flow information is the data flow generated by the protocol data unit PDU session.

4. The traffic statistics method according to claim 1, wherein: The reporting period at which the base station sends the first flow information is the same as the reporting period at which the UPF reports the second flow information.

5. A traffic statistics system, comprising: The base station is used to send the first flow information to the AMF when the time reaches the reporting period during the process of the user going online to access the service; wherein, during the process of the user going online to access the service, the service traffic is diverted by the base station, so that the private network service traffic in the service traffic is forwarded to the private network device, and the public network service traffic in the service traffic is forwarded to the UPF; The UPF is used to report the second flow information to the SMF; The AMF is used to send the received first flow information to the SMF; The SMF is configured to calculate the flow information and the billing information of the user according to the billing policy after receiving the first flow information and the second flow information, and send the flow information and the billing information of the user to the CHF; and The CHF is used to perform billing according to the flow information and billing information of the user; Among them, the SMF is used to, when the billing policy is to differentiate between private network traffic and public network traffic, include the second traffic information in the public network billing group, and include the traffic obtained by subtracting the second traffic information from the first traffic information in the private network billing group, thereby obtaining the traffic information and billing information of the user; or when the billing policy is that private network traffic and public network traffic do not need to be differentiated in billing, discard the second traffic information, and calculate the traffic information and billing information of the user based on the first traffic information.

6. The traffic statistics system according to claim 5, wherein: The AMF is used to send a PDU session context update request message to the SMF after receiving the first flow information, wherein the PDU session context update request message includes the first flow information; The SMF is also used to return a response message to the AMF in reply to the PDU session context update request message.

7. The traffic statistics system according to claim 5, wherein: The first traffic information is the data traffic generated by the PDU session.

8. The traffic statistics system according to claim 5, wherein: The reporting period at which the base station sends the first flow information is the same as the reporting period at which the UPF reports the second flow information.

9. A traffic statistics system, comprising: Memory; as well as A processor coupled to the memory, wherein the processor is configured to execute the method according to any one of claims 1 to 4 based on instructions stored in the memory.

10. A non-transitory computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions, when executed by a processor, implement the method according to any one of claims 1 to 4.