WO2020119325A1 - Charging processing method and device, storage medium, and electronic device - Google Patents

Charging processing method and device, storage medium, and electronic device Download PDF

Info

Publication number
WO2020119325A1
WO2020119325A1 PCT/CN2019/115136 CN2019115136W WO2020119325A1 WO 2020119325 A1 WO2020119325 A1 WO 2020119325A1 CN 2019115136 W CN2019115136 W CN 2019115136W WO 2020119325 A1 WO2020119325 A1 WO 2020119325A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
charging
session
information
identification information
Prior art date
Application number
PCT/CN2019/115136
Other languages
French (fr)
Chinese (zh)
Inventor
谢连升
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2020119325A1 publication Critical patent/WO2020119325A1/en

Links

Images

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
    • 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
    • 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
    • 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/1453Methods or systems for payment or settlement of the charges for data transmission involving significant interaction with the data transmission network
    • H04L12/1467Methods or systems for payment or settlement of the charges for data transmission involving significant interaction with the data transmission network involving prepayment
    • 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/1453Methods or systems for payment or settlement of the charges for data transmission involving significant interaction with the data transmission network
    • H04L12/1482Methods or systems for payment or settlement of the charges for data transmission involving significant interaction with the data transmission network involving use of telephony infrastructure for billing for the transport of data, e.g. call detail record [CDR] or intelligent network infrastructure

Definitions

  • the present invention relates to the field of communications, and in particular, to a charging processing method and device, storage medium, and electronic device.
  • the 5G (the 5th Generation mobile communication technology) network is an extension of the LTE (Long Term Evolution) network.
  • ITU International Telecommunication Union
  • 5G networks include: UE (User Equipment), (R) AN (Radio Access Network), (Wireless Access Network), CN (Core Network) and DN (Data Network), As shown in Figure 1.
  • the 5G core network includes the following network function entities: UPF (User Plane Function), SMF (Session Management Function, Session Management Function), AMF (Access and Mobility Management Function, Access and Mobility Management Function), AUSF (Authentication Server Function, authentication service function), NSSF (Network Slice Selection Function, network slice selection function), NEF (Network Exposure Function, network business presentation function), NRF (Policy Control Function, policy control function), UDM (Unified Data Management, unified data management function), AF (Application Function), application layer function), where SMF entities interact with AMF entities and UPF entities to complete charging data collection, and Provide external billing interface functions, as shown in Figure 2.
  • UPF User Plane Function
  • SMF Session Management Function
  • AMF Access and Mobility Management Function
  • AUSF Authentication Server Function, authentication service function
  • NSSF Network Slice Selection Function, network slice selection function
  • NEF Network Exposure Function, network business presentation function
  • NRF Network Exposure Function
  • PCF Policy Control Function
  • UDM Unified Data Management
  • NS Network Slice
  • NFV Network Function Virtualization
  • Network slicing is a set of professional and specialized logical networks. This set serves as a service and supports network differentiation to meet the diversified needs of vertical industries. Network slicing essentially divides the operator's physical network into multiple virtual networks. In order to respond flexibly to different network application scenarios, network slices should be isolated from each other, for example, resources, security, data, QoS (Quality of Service), reliability, billing, and operation and maintenance isolation.
  • QoS Quality of Service
  • NSI Network Slice Instance
  • NSI Network Slice Instance
  • An NSI usually spans multiple technical domains, including access network, transmission network and core network, and can also include third-party applications in vertical industries.
  • Each NSI is composed of an S-NSSAI (Single Network, Slice Selection, Assistance, Information, single network slice selection) Auxiliary information, a kind of network slice identification), S-NSSAI may include: SST (Slice/Service type, slice service type) and SD (Slice/Differentiator, slice area molecule), where SST is used to represent network slice behavior, SD It is used to supplement the information for further distinguishing network slices under the same SST.
  • SST Single Network, Slice Selection, Assistance, Information, single network slice selection
  • SD Sclice/Differentiator, slice area molecule
  • the billing function is an indispensable function of the 5G network and is related to the operator's revenue.
  • 5G charging is done in the core network.
  • the CTF (Charging Trigger Function) unit is embedded in the SMF entity, and the CTF unit collects each UE for use with the wireless network and with external data networks. Related billing information.
  • the CTF unit passes it to the CHF (Charging Function) entity through the Nchf interface.
  • the CHF entity includes: CDF (Charging Data Function) and OCF (Online Charging Function), online charging Function) Two parts.
  • CDF Charge Data Function
  • OCF Online Charging Function
  • the CDF unit constructs the bill and passes the bill to the CGF (Charging Gateway Function) entity.
  • the CGF entity generates a CDR (Charging Details Record, billing detail record, billing detail) file, And transmitted to BD (Billing Domain, billing domain), BD complete the final billing of users.
  • the OCF unit completes the authorization of the user to use network resources.
  • the OCF unit passes the resource usage request to the RF (Rating Function) entity.
  • the RF entity approves the requested resource and returns the appraisal result to the OCF Unit, the OCF unit further approves the balance and approval results through the ABMF (Account, Balance, Management, Function) entity, and obtains the corresponding authorization quota. Users can only use the corresponding network resources after obtaining the authorization permission from the OCF unit .
  • one SMF entity can serve multiple network slices.
  • Network slices can be of different slice types and serve different services.
  • different network slices have different service rates, so different network slices need to be differentiated for charging to avoid charging errors caused by mixing the charging information of different network slices.
  • the SMF entity creates a PDU (Protocol Data Unit) protocol for each network slice, and generates a CID (Charging Identifier, charging ID) for each PDU session, so it is sliced in multiple networks
  • PDU Protocol Data Unit
  • CID Charging Identifier
  • charging ID Charging Identifier
  • the charging ID in the multiple charging information generated by the same PDU session remains unchanged.
  • the same PDU needs to be charged during charging
  • the charging information of the session is associated, and the charging ID is the main parameter associated with multiple charging information.
  • PGW Packet Data Network Gateway
  • IP-CAN Internet Protocol Connectivity Access Network
  • the charging system can perform charging information association according to the charging ID, as shown in FIG. 4.
  • the SMF entity In 5G-based network slicing applications, the SMF entity generates charging IDs for each network slice separately. As shown in Figure 3, charging IDs for different network slices may be repeated. If the charging association is performed according to the charging ID, the charging information of different network slices will be associated together, resulting in charging errors.
  • An embodiment of the present invention provides a charging processing method and device, a storage medium, and an electronic device, so as to at least solve the problem that there is a charging error for charging for a session in the related art.
  • a charging processing method including: receiving target identification information corresponding to a target session sent by an SMF entity, wherein the target identification information is used to uniquely identify the target session within the SMF entity; Based on the target identification information, the target session is charged.
  • charging the target session based on the target identification information includes: when the charging method corresponding to the target session is offline charging, generating a target bill corresponding to the target session according to the target identification information;
  • the target bill is transmitted to the BD, so that the BD charges the target session according to the target bill.
  • the method before generating a target CDR corresponding to the target session according to the target identification information, the method further includes: collecting one or more target CDR CDRs generated by the CDF unit in the CHF entity, where one or more targets Each target CDR bill in the CDR bill carries target identification information; according to the target identification information, generating a target bill corresponding to the target session includes: according to the target identification information, one or more target CDR bills are billed Merge to generate the target bill.
  • combining one or more target CDR bills with the bills to generate the target bills includes: separately extracting charging parameters from each target CDR bill of the one or more CDR bills Information, combined to form a target merge keyword set to merge target CDR bills, where the target merge keyword contains target identification information; merge one or more target CDR bills corresponding to the target merge keyword with the bill merge, Generate target bills.
  • merging one or more target CDR bills to generate the target bill includes: determining the target identification information carried by each target CDR bill in the one or more target CDR bills And the target service ID used to identify the target business or target application of the target session; associate and merge one or more target CDR bills carrying the target identification information and the target service ID to generate a target bill.
  • charging the target session includes: when the charging method corresponding to the target session is online charging, using the target identification information to obtain the target session for identification from the RF entity
  • the result information of the evaluation where the result information includes at least one of the following: cumulative information of business resources corresponding to the target session, rate information of business resources corresponding to the target session; using target identification information, obtained from the ABMF entity
  • Target account information of the target account corresponding to the target session where the target account information includes at least one of the following: the available value of the cumulative amount of business resources corresponding to the target session, account balance information; based on the result information and target account information, Charge the target session.
  • charging the target session based on the result information and the target account information includes: determining the quota information of the business resource used by the target session based on the result information and the target account information; and sending the quota information to the SMF entity, where the quota The information is used to instruct the SMF entity to monitor the business resources used during the target session to obtain the monitoring result; receive the target request sent by the SMF entity according to the monitoring result, and the target request is used to request deduction of the target account; send the target request To the ABMF entity, where the target request is used to instruct the ABMF entity to deduct the target account.
  • the target identification information includes a charging identification ID corresponding to the target session and a slice discrimination parameter used to distinguish the network slice that generates the charging ID, or the target identification information includes the charging ID corresponding to the target session.
  • the slice discrimination parameter includes one of the following: S-NSSAI, NSI identifier, and slice name of the network slice.
  • a charging processing apparatus including: a receiving module configured to receive target identification information corresponding to a target session sent by an SMF entity, wherein the target identification information is used in the SMF entity The target session is uniquely identified; the charging module is set to charge the target session based on the target identification information.
  • a storage medium stores a computer program, wherein the computer program is configured to execute any of the steps in the above method embodiments during runtime.
  • an electronic device including a memory and a processor, a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any of the above method embodiments .
  • the target identification information corresponding to the target session sent by the SMF entity of the session management function is adopted, wherein the target identification information is used to uniquely identify the target session within the SMF entity; based on the target identification information, the target session is charged Processing, because the target identification information is used to uniquely identify the target session within the SMF entity, and the target session is charged based on the target identification information, the charging information of the sessions of multiple network slices served by the SMF entity can be effectively distinguished, so It can solve the problem of charging errors in session charging in related technologies and achieve the technical effect of improving the accuracy of session charging.
  • Figure 1 is a schematic diagram of a 5G network architecture in the related art
  • FIG. 2 is a schematic diagram of the core network of the 5G network in the related art
  • 3 is a schematic diagram of the 5G network charging function in the related art
  • FIG. 5 is a block diagram of a hardware structure of a network device of a charging method according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of an optional charging processing method according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of an optional charging parameter delivery process according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of an optional offline charging process according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of an optional bill association merging process according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of an optional online charging process according to an embodiment of the present invention.
  • FIG. 11 is a flowchart of another optional charging processing method according to an embodiment of the present invention.
  • FIG. 12 is a structural block diagram of a charging processing apparatus according to an embodiment of the present invention.
  • FIG. 5 is a block diagram of a hardware structure of a network device of a charging method according to an embodiment of the present invention.
  • the network device may be a PC, a server device, a combination of devices, or a virtual device.
  • the device is equipped with a charging system on the network device.
  • the network device 50 may include one or more (only one is shown in FIG. 5) processor 502 (the processor 502 may include but is not limited to an MCU (Microprogrammed Control Unit, microprocessor)) and A memory 504 for storing data.
  • MCU Microprogrammed Control Unit
  • the above network device may further include a transmission device 506 for communication function and an input/output device 508.
  • a transmission device 506 for communication function may further include a transmission device 506 for communication function and an input/output device 508.
  • the structure shown in FIG. 5 is only schematic, and The structure of the above network device is not limited.
  • the network device 50 may further include more or fewer components than those shown in FIG. 5, or have a different configuration from that shown in FIG. 5.
  • the network device 50 may also include multiple Device: Each device in the multiple devices may have the same or different structure.
  • the memory 504 may be configured to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the charging processing method in the embodiment of the present invention, and the processor 502 runs the computer program stored in the memory 504, thereby Implementation of various functional applications and data processing, that is, to achieve the above method.
  • the memory 504 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
  • the memory 504 may further include memories remotely provided with respect to the processor 502, and these remote memories may be connected to the network device 50 through a network. Examples of the above network include but are not limited to the Internet, intranet, local area network, mobile communication network, and combinations thereof.
  • the transmission device 506 is configured to receive or transmit data via a network.
  • the above specific example of the network may include a communication network provided by a communication provider of the network device 50.
  • the transmission device 506 includes a NIC (Network Interface Controller, network adapter), which can be connected to other network devices through the base station to communicate with the Internet.
  • NIC Network Interface Controller, network adapter
  • the embodiment of the present application may run on the network architecture shown in FIG. 3.
  • the network architecture includes: multiple network slices, a charging system, and a charging center.
  • FIG. 6 is a flowchart of an optional charging processing method according to an embodiment of the present invention, as shown in FIG. 6 , The process includes the following steps:
  • Step S602 Receive target identification information corresponding to the target session sent by the SMF entity, where the target identification information is used to uniquely identify the target session within the SMF entity;
  • Step S604 Perform charging processing on the target session based on the target identification information.
  • the charging system receives target identification information corresponding to the target PDU session sent by the SMF entity, where the target identification information is used to uniquely identify the target session within the SMF entity; based on the target identification information, the target session is charged Processing, because the target identification information is used to uniquely identify the target session in the SMF entity, and the target PDU session is charged based on the target identification information, the charging information of the sessions of multiple network slices served by the SMF entity can be effectively distinguished. It solves the problem of charging error in session charging in related technologies, and improves the accuracy of session charging.
  • the execution body of the above steps may be a charging system, for example, a CHF entity (CDF unit and OCF unit), a CGF entity or a combination thereof in the charging system, but it is not limited thereto.
  • a CHF entity CDF unit and OCF unit
  • CGF entity CGF entity
  • step S602 and step S604 are interchangeable, and step S604 may be executed first, and then S602 may be executed. That is, the charging process can be performed multiple times.
  • the target identification information corresponding to the target session sent by the SMF entity is received, where the target identification information is used to uniquely identify the target session within the SMF entity.
  • the target identification information may be any information that can uniquely identify a target session (for example, a PDU session) within the SMF entity. Using the target identification information, the correct association of charging information can be ensured to improve the accuracy of charging.
  • the target identification information may include: a charging ID corresponding to the target session and a slice distinguishing parameter used to distinguish the network slice generating the charging ID.
  • the charging information output by the SMF entity can add a slice distinguishing parameter.
  • the slice distinguishing parameter is used to distinguish the charging information generated by different network slices. It can be S-NSSAI or NSI logo. , Can also be the slice name of the network slice, or other parameters that can distinguish different slices.
  • the SMF entity transmits the slicing distinguishing parameters and the charging information to the charging system together.
  • the charging system combines the slicing distinguishing parameters and the charging ID to perform charging association to complete the charging of the user.
  • the newly added slicing differentiation parameter can be applied to offline charging scenarios and also to online charging scenarios.
  • the target identification information may include: a charging ID corresponding to the target PDU session.
  • the charging ID can be uniformly assigned by the SMF entity, that is, the charging ID is unique within an SMF entity, and the charging system distinguishes parameters by charging ID (or charging ID and slice ) Differentiate between different sessions to complete the association of charging information.
  • the SMF entity transfers the charging information (or the charging information and the slicing parameter together) to the charging system, and the charging system performs charging association according to the charging ID (or the charging ID and the slicing parameter) to complete the Billing.
  • the above-mentioned charging ID uniformly allocated by the SMF entity can be applied to offline charging scenarios and also to online charging scenarios.
  • the target identification information received by the charging system may be sent through the target message.
  • the above target message may be a request message for creating a session management context, a request message for charging (for example, a rating request), or a message for transmitting charging information.
  • the charging system may perform charging processing on the target PDU session in various ways.
  • the charging method corresponding to the above charging process may be offline charging or online charging.
  • charging the target session based on the target identification information may include: generating a target session based on the target identification information Corresponding target bill; transmit the target bill to BD, so that BD can charge the target session according to the target bill.
  • the target bill may be a bill generated based on one-time charging information or a bill generated based on multiple charging information.
  • the charging system after obtaining a bill (target bill, for example, CDR bill) generated based on the one-time charging information, the charging system directly transmits the bill to the BD, and the BD performs the target conversation Perform billing processing.
  • a bill target bill, for example, CDR bill
  • the charging system directly transmits the bill to the BD, and the BD performs the target conversation Perform billing processing.
  • the charging system merges the multiple bills to generate a target bill .
  • one or more generated by the CDF unit in the CHF entity may be collected Multiple target CDR bills, where each target CDR bill in one or more target CDR bills carries target identification information; according to the target identification information, one or more target CDR bills are merged into bills, Generate target bills.
  • the CDF unit in the CHF entity of the charging system collects the charging information sent by the SMF through the Nchf interface, fills in the information in the charging information into the corresponding position of the predetermined bill, and constructs and generates the CDR bill ( SMF-CDR bill), and send the generated CDR bill to the CGF entity.
  • the CGF entity collects CDR bills generated by the CDF unit. There may be multiple CDR bills collected. Multiple CDR CDRs may correspond to multiple PDU sessions, and multiple collected CDR CDRs may carry multiple identification information. Each identification information is used to uniquely identify a PDU session within the SMF entity. The identification information carried in multiple CDR bills contains target identification information.
  • the CDR bill carrying the target identification information is the target CDR bill, and the number of target CDR bills may be one or more.
  • One or more target CDR bills in the multiple CDR bills are merged to generate a target bill.
  • the CGF unit may extract other charging parameter information from each CDR bill of multiple CDR bills, and combine the charging parameter information to form a CDR bill merger Combine keywords (or call list keywords).
  • the merge keyword corresponding to it is the target merge keyword
  • the target merge keyword contains the target identification information.
  • the CDR bill corresponding to the target merge keyword is the target CDR bill.
  • One or more target CDR bills corresponding to the target merge keyword may be all target CDR bills corresponding to the target merge keyword or part of the target CDR bills
  • Bills are merged to generate target bills.
  • the CGF entity can extract SUPI (Subscriber Permanent Identifier, user permanent identifier), billing ID, AMF address, SMF address, access type AN Type from the CDR bill, and form a bill keyword; and further from the CDR bill
  • SUPI Subscriber Permanent Identifier
  • AMF address AMF address
  • SMF address access type AN Type
  • the slice discrimination parameters are extracted from the list, and combined with the above bill keywords to form a final merged keyword.
  • the CGF entity merges the bills according to the final associated keywords: if the keywords are the same, it is considered to be the same PDU session bill of the same slice, and the CGF merges these bills together to form a final bill.
  • the billing system combines target identification information (for example, billing ID, or slice discrimination parameter and billing ID), and service ID to complete billing association, which can realize accurate billing based on service type.
  • merging one or more target CDR bills to generate a target bill may include: determining the target identifier carried by each target CDR bill in one or more target CDR bills Information and the target service ID used to identify the target business or target application of the target session; one or more target CDR bills that will carry the target identification information and the target service ID (one or more target CDR bills may be related to the target All target CDR bills corresponding to the merge keywords may also be part of target CDR bills) to be associated and merged to generate a target bill.
  • the CGF entity may obtain the evaluation result of the evaluation of the target session from the RF entity and obtain the account from the ABMF entity Balance information, and charge the target session according to the approval result and account balance information.
  • charging the target session may include: when the charging method corresponding to the target session is online charging
  • the result information used to identify the target session's rating is obtained from the RF function of the rating function, where the result information includes at least one of the following: the cumulative amount of business resources corresponding to the target session, Rate information of business resources corresponding to the target session
  • the target account information of the target account corresponding to the target session is obtained from the account balance management function ABMF entity, where the target account information contains at least one of the following: The available value of the accumulated amount of business resources corresponding to the target session, account balance information; and charging processing for the target session according to the result information and target account information.
  • the charging system obtains the rating results and target account information from the RF entity and the ABMF entity, respectively, to perform the charging process for the target session, which can realize the target-based identification in the online charging scenario Information billing.
  • the target session can be billed in various ways.
  • the amount of the business resource used by the target session may be reserved, and the usage of the business resource by the target session may be monitored.
  • a reminder message is sent to the UE corresponding to the target session to remind that the account balance is insufficient, and it can also prompt to save the data ;
  • the target session is ended, and a deduction application is sent to the ABMF entity for the target session, so that the ABMF entity matches the target
  • the account corresponding to the session is deducted and the account information is updated.
  • the monitoring of the usage of the above service resources may be performed by the SMF entity, and the resource reservation and the sending of the deduction application may be performed by the OCF unit.
  • charging the target session based on the result information and the target account information may include: determining the quota information of the business resource used by the target session based on the result information and the target account information; and sending the quota information to the SMF entity, where, The quota information is used to instruct the SMF entity to monitor the business resources used in the target session to obtain the monitoring result; receive the target request sent by the SMF entity according to the monitoring result, and the target request is used to request a charge to the target account; the target request Sent to the ABMF entity, where the target request is used to instruct the ABMF entity to deduct the target account.
  • the charging system reserves quotas for the usage of business resources used by the target session, which can avoid the excessive usage of business resources by the target session, and the usage of business resources monitored by the SMF entity can be reduced
  • the interaction between network elements ensures the reliability and effectiveness of the billing process.
  • SMF SMF entity
  • AMF AMF entity
  • UPF is UPF entity
  • CHF CHF entity
  • CDF CDF unit
  • OCF is PCF unit
  • CGF CGF entity
  • RF is RF entity
  • ABMF ABMF entity
  • the target session is a PDU session.
  • FIG. 7 is a schematic diagram of an optional charging parameter transfer process according to an embodiment of the present invention.
  • the charging parameter transfer process can be applied to network slice-based charging parameter transfer in a 5G network.
  • the above charging parameter delivery process includes the following steps:
  • Step S702 the UE sends a PDU session creation request to the AMF.
  • the UE accesses the (R)AN network, and establishes a PDU session by sending a PDU session creation request (PDU Session Establishment Request) to the AMF.
  • PDU Session Establishment Request PDU Session Establishment Request
  • step S704 the AMF selects the SMF of the PDU session.
  • AMF determines the final NSSAI based on the NSSAI provided by the UE and the contracted NSSAI, and determines the SMF serving the PDU session.
  • step S706 the AMF sends Namf_PDUSession_CreateSMContext Request to the SMF.
  • the above request message may be a Namf_PDUSession_CreateSMContextRequest request, which is used to create a session management context.
  • the request message carries PDU session context information, which may include, but is not limited to: SUPI, AMF address, access type ANType, and slice differentiation parameter.
  • Step S708 SMF sends Namf_PDUSession_CreateSMContext Response to AMF.
  • the SMF identifies the slice serving the session, saves SUPI, AMF address, access type ANType, and slice discrimination parameters, and assigns a billing ID to the PDU session based on the slice, and then responds to the AMF with a Namf_PDUSession_CreateSMContext Response message.
  • Step S710 the SMF establishes a session with the UPF.
  • SMF After sending this response message to AMF, SMF establishes a session with UPF through N4SessionEstablishment.
  • Step S712 the UE triggers the service and generates uplink and downlink traffic.
  • the UE uses the service to trigger the generation of UpLink Data traffic (upstream data traffic) and DownLink Data traffic (downstream data traffic).
  • step S714 the SMF sends charging information and slice discrimination parameters to the CHF.
  • the SMF collects business usage information from UPF.
  • the collected business usage information may include but not limited to: business data flow, business usage time and business usage duration.
  • the SMF determines the charging information corresponding to the PDU session based on the collected service usage information, and transmits the charging information to the charging system through the target interface.
  • SMF transmits charging information (which may include SUPI, charging ID, AMF address, SMF address, access type AN Type, service usage information), and slice segmentation parameters to CHF through the Nchf interface.
  • charging information which may include SUPI, charging ID, AMF address, SMF address, access type AN Type, service usage information
  • slice segmentation parameters to CHF through the Nchf interface.
  • Figure 7 does not indicate the detailed flow of UE PDU session establishment and service interaction.
  • FIG. 8 is a schematic diagram of an optional offline charging process according to an embodiment of the present invention.
  • the offline charging process may be applied to the charging process of 5G network slices. As shown in Figure 8, the above offline charging process includes the following steps:
  • step S802 the UE triggers the service, the SMF generates charging information, and the SMF sends the charging information and the slicing distinguishing parameter to the CDF of the CHF.
  • the SMF collects the service usage information from the UPF, and sends the charging information and slice discrimination parameters to the CDF of the CHF through the Nchf interface, where the charging information may include but is not limited to: SUPI, charging ID, AMF address , SMF address, access type AN Type, service usage information.
  • step S804 the CDF collects the charging information sent by the SMF, fills the charging information into the bill, and fills in the slice discrimination parameters into the bill at the same time, constructs and generates the SMF-CDR bill.
  • step S806 the CDF sends the SMF-CDR bill to the CGF.
  • step S808 the CGF extracts charging parameters from the SMF-CDR bill, generates a billing merge keyword, and merges part of the bill in the same PDU session.
  • the above charging parameters may include but are not limited to: charging information and slice distinguishing parameters. It is an optional step to merge part of the bills of the same PDU session according to the charging merge keywords.
  • step S810 the CGF saves the SMF-CDR bill and generates a bill file that meets the BD requirements.
  • step S812 the CGF sends the bill file to the BD, and the BD completes charging the user.
  • FIG. 9 is a schematic diagram of an optional bill association merging process according to an embodiment of the present invention.
  • the offline charging process can be applied to the charging process of 5G network slices.
  • the above-mentioned bill association merging process includes the following steps:
  • step S902 the CGF collects the SMF-CDR CDR generated by the CDF in the CHF.
  • step S904 the CGF extracts the bill parameters and generates merge keywords.
  • the CGF extracts SUPI, billing ID, AMF address, and SMF address from the bill, and access type AN Type to form a bill key.
  • step S906 the CGF extracts the slice discrimination parameter from the bill, and combines the extracted slice discrimination parameter with the bill keyword to form a final merge keyword.
  • CGF can extract S-NSSAI (a slice discrimination parameter) from the CDR, combine S-NSSAI with the generated merge keywords, and generate merge keywords based on the final network slice.
  • S-NSSAI a slice discrimination parameter
  • step S908 the CGF merges the bills of the same merge keyword.
  • CGF merges the bills according to the final related keywords, and merges the bills with the same keywords together to form a final bill and outputs it to BD.
  • FIG. 10 is a schematic diagram of an optional online charging process according to an embodiment of the present invention.
  • the online charging process may be applied to the charging process of 5G network slices. As shown in FIG. 10, the above online charging process includes the following steps:
  • step S1002 the SMF sends online charging information and slice discrimination parameters to the CHF.
  • the UE triggers the service, and the SMF creates an online charging session, and sends the online charging information and slice distinguishing parameters to the CHF.
  • step S1004 the OCF interacts with the RF, sends a rating request to the RF and receives the RF response.
  • the OCF of the CHF interacts with the RF.
  • the OCF sends a request for pricing to the RF, which carries SUPI, slice differentiation parameters, and resource usage request information.
  • the RF distinguishes parameters based on slices, judges the session type, and provides corresponding cumulative amount information or rate information.
  • RF completes the pricing process based on SUPI, slice differentiation parameters, and resource usage request information.
  • step S1006 OCF interacts with ABMF, sends an account balance query request to ABMF and receives a response from ABMF.
  • the OCF of the CHF interacts with the ABMF.
  • the OCF sends an account balance query request to the ABMF.
  • the ABMF returns the available values of the corresponding user account balance and accumulated amount to the OCF.
  • step S1008 the OCF sends the reserved quota to the SMF to control the PDU session.
  • the CHF’s OCF calculates the quota granted to the user based on the resource usage request information and service rate, and passes the approved quota (reserved quota) to the SMF.
  • step S1010 SMF sends a deduction application to ABMF via OCF to complete the deduction.
  • SMF monitors the usage of the execution unit according to the reserved amount of OCF, and sends a deduction application to OCF.
  • OCF submits the deduction application to ABMF, and ABMF updates the account.
  • FIG. 11 is a flowchart of another optional charging processing method according to an embodiment of the present invention.
  • the charging ID is uniformly assigned by SMF.
  • the charging processing method includes the following steps:
  • step S1102 the AMF sends Namf_PDUSession_CreateSMContext Request to the SMF.
  • AMF sends Namf_PDUSession_CreateSMContext Request to SMF.
  • the request message carries PDU session context information, including SUPI, AMF address, access type ANType, and slice discrimination parameters.
  • step S1104 SMF uniformly allocates a charging ID for the PDU session.
  • SMF recognizes the slicing of the session, saves SUPI, AMF address, access type AN Type, slicing distinguishing parameters, uniformly assigns a charging ID to the PDU session (the charging ID is unique within the SMF range), and collects service usage information Determine charging information (may include SUPI, charging ID, AMF address, SMF address, access type AN Type, service usage information).
  • step S1106 the SMF sends charging information and slice discrimination parameters to the CHF.
  • the SMF sends charging information and slice discrimination parameters to the CHF, and the CHF completes the subsequent charging process.
  • the above billing processing method can also be applied to billing of Internet of Things applications implemented by network slicing.
  • the PDU sessions of different network slices can be distinguished by the slicing parameter and charging ID, and the service ID can accurately distinguish the charging information of different business applications, so that Accurately perform billing correlation, avoiding the correlation of billing information of different network slices, and ensuring billing accuracy.
  • the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware, but in many cases the former is Better implementation.
  • the technical solutions of the present invention can be embodied in the form of software products in essence or part of contributions to the existing technology, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk,
  • the CD-ROM includes several instructions to enable a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the embodiments of the present invention.
  • a charging processing device is also provided.
  • the device is used to implement the above-mentioned embodiments and preferred implementation modes, and those that have already been described will not be repeated.
  • the term "module” may implement a combination of software and/or hardware that performs predetermined functions.
  • the devices described in the following embodiments are preferably implemented in software, implementation of hardware or a combination of software and hardware is also possible and conceived.
  • FIG. 12 is a structural block diagram of a charging processing device according to an embodiment of the present invention. As shown in FIG. 12, the device includes:
  • the receiving module 1202 is configured to receive target identification information corresponding to the target session sent by the session management function SMF entity, where the target identification information is used to uniquely identify the target session within the SMF entity;
  • the charging module 1204 is connected to the receiving module 1202, and is configured to perform charging processing on the target session based on the target identification information.
  • the charging module 1204 may include: a generating unit configured to generate a target corresponding to the target session according to target identification information when the charging mode corresponding to the target session is offline charging The bill; the sending unit, connected to the generating unit, is set to transmit the target bill to the BD, so that the BD charges the target session according to the target bill.
  • the above device may further include a collection module, and the generating unit may include a generating subunit, where,
  • the collection module is configured to collect one or more target charging detailed record CDR bills generated by the charging data function CDF unit in the charging function CHF entity before generating the target bill corresponding to the target session according to the target identification information , Where each target CDR bill in one or more target CDR bills carries target identification information;
  • the generating subunit is configured to merge one or more target CDR bills according to the target identification information to generate a target bill.
  • the generating subunit may include:
  • the combining submodule is configured to extract charging parameter information from each target CDR bill of the one or more CDR bills, and combine to form a target merge keyword for merging the target CDR bills, wherein
  • the target merge keyword contains the target identification information
  • the first merging sub-module is connected to the combining sub-module, and is configured to merge the one or more target CDR bills corresponding to the target merge keyword to generate the target bill.
  • the generating subunit may include:
  • the determination submodule is set to determine the target identification information carried in each target CDR bill in one or more target CDR bills and the target service ID used to identify the target business or target application of the target session;
  • the second merging submodule is connected to the determining submodule, and is configured to associate and merge one or more target CDR bills carrying the target identification information and the target service ID to generate a target bill.
  • the charging module 1204 may include:
  • the first obtaining unit is configured to use the target identification information to obtain the result information used to identify the rating of the target session from the RF entity when the charging method corresponding to the target session is online charging. It includes at least one of the following: cumulative amount information of business resources corresponding to the target session, and tariff information of business resources corresponding to the target session;
  • the second acquiring unit connected to the first acquiring unit, is configured to acquire target account information of the target account corresponding to the target session from the account balance management function ABMF entity using target identification information, wherein the target account information includes at least one of the following : The available value of the cumulative amount of business resources corresponding to the target session, account balance information;
  • the charging unit connected to the second obtaining unit, is configured to perform charging processing on the target session according to the result information and the target account information.
  • the charging unit may include:
  • the determination subunit is set to determine the quota information of business resources used by the target session according to the result information and the target account information;
  • the first sending subunit connected to the determining subunit, is configured to send quota information to the SMF entity, where the quota information is used to instruct the SMF entity to monitor the business resources used during the target session and obtain the monitoring result;
  • the receiving subunit is connected to the first sending subunit, and is configured to receive a target request sent by the SMF entity according to the monitoring result, and the target request is used to request deduction of the target account;
  • the second sending subunit connected to the receiving subunit, is configured to send the target request to the account balance management function ABMF entity, where the target request is used to instruct the ABMF entity to deduct the target account.
  • the target identification information may include a charging ID corresponding to the target session and a slice discrimination parameter used to distinguish the network slice that generates the charging ID, or the target identification information includes the charging ID corresponding to the target session.
  • the above modules can be implemented by software or hardware, and the latter can be implemented by the following methods, but not limited to this: the above modules are all located in the same processor; or, the above modules can be combined in any combination The forms are located in different processors.
  • An embodiment of the present invention further provides a storage medium in which a computer program is stored, wherein the computer program is configured to execute any of the steps in the above method embodiments during runtime.
  • the above storage medium may be set to store a computer program for performing the following steps:
  • the storage medium is also configured to store a computer program for performing the following steps:
  • the charging method corresponding to the target session is offline charging, generate a target bill corresponding to the target session according to the target identification information;
  • the storage medium is also configured to store a computer program for performing the following steps:
  • the storage medium is also configured to store a computer program for performing the following steps:
  • S1 Extract charging parameter information from each target CDR bill of one or more CDR bills, and combine to form a target merge keyword for merging the target CDR bills, wherein the target merge keyword contains the target identifier information;
  • the storage medium is also configured to store a computer program for performing the following steps:
  • the storage medium is also configured to store a computer program for performing the following steps:
  • the charging method corresponding to the target session is online charging, use the target identification information to obtain the result information for identifying the rating of the target session from the RF entity, where the result information includes at least one of the following : Cumulative amount information of business resources corresponding to the target session, rate information of business resources corresponding to the target session;
  • target identification information obtain target account information of the target account corresponding to the target session from the ABMF entity, where the target account information includes at least one of the following: the available value of the cumulative amount of business resources corresponding to the target session, account Balance information
  • the storage medium is also configured to store a computer program for performing the following steps:
  • the target request is used to request a fee deduction for the target account
  • the above storage medium may include, but is not limited to: U disk, ROM (Read-Only Memory, read-only memory), RAM (Random Access Memory, random access memory), mobile hard disk, magnetic Various media such as compact discs or optical discs that can store computer programs.
  • An embodiment of the present invention further provides an electronic device, including a memory and a processor, where the computer program is stored in the memory, and the processor is configured to run the computer program to perform any of the steps in the above method embodiments.
  • the electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the processor, and the input-output device is connected to the processor.
  • the foregoing processor may be configured to perform the following steps through a computer program:
  • the foregoing processor may be configured to perform the following steps through a computer program:
  • the charging method corresponding to the target session is offline charging, generate a target bill corresponding to the target session according to the target identification information;
  • the foregoing processor may be configured to perform the following steps through a computer program:
  • the foregoing processor may be configured to perform the following steps through a computer program:
  • the foregoing processor may be configured to perform the following steps through a computer program:
  • the foregoing processor may be configured to perform the following steps through a computer program:
  • the charging method corresponding to the target session is online charging, use the target identification information to obtain the result information for identifying the rating of the target session from the RF entity, where the result information includes at least one of the following : Cumulative amount information of business resources corresponding to the target session, rate information of business resources corresponding to the target session;
  • target identification information obtain target account information of the target account corresponding to the target session from the ABMF entity, where the target account information includes at least one of the following: the available value of the cumulative amount of business resources corresponding to the target session, account Balance information
  • the foregoing processor may be configured to perform the following steps through a computer program:
  • the target request is used to request a fee deduction for the target account
  • modules or steps of the present invention can be implemented by a universal computing device, they can be concentrated on a single computing device, or distributed in a network composed of multiple computing devices Above, optionally, they can be implemented with program code executable by the computing device, so that they can be stored in the storage device to be executed by the computing device, and in some cases, can be in a different order than here
  • the steps shown or described are performed, or they are made into individual integrated circuit modules respectively, or multiple modules or steps among them are made into a single integrated circuit module to achieve. In this way, the present invention is not limited to any specific combination of hardware and software.

Abstract

Provided in the present invention are a charging processing method and device, a storage medium, and an electronic device. The method comprises: receiving target identifier information corresponding to a target session sent by a session management function (SMF) entity, the target identifier information being used for uniquely identifying the target session in the SMF entity; and performing charging processing on the target session on the basis of the target identifier information. By means of the present invention, the problem in the related art that a charging error is present in charging for a session is solved, and thus the effect of improving session charging accuracy is yielded.

Description

计费处理方法及装置、存储介质和电子装置Charging processing method and device, storage medium and electronic device 技术领域Technical field
本发明涉及通信领域,具体而言,涉及一种计费处理方法及装置、存储介质和电子装置。The present invention relates to the field of communications, and in particular, to a charging processing method and device, storage medium, and electronic device.
背景技术Background technique
5G(the 5th Generation mobile communication technology,第五代移动通信技术)网络作为第五代移动通信标准,是LTE(Long Term Evolution,长期演进)网络的延伸。ITU(International Telecommunication Union,国际电信联盟)定义了5G网络的三类典型应用场景,包括:eMBB(Enhance Mobile Broadband,增强型移动宽带),mMTC(Massive Machine Type of Communication,大规模机器类通信),uRLLC(Ultra-Reliable Low Latency Communication,超可靠低时延通信)。5G网络包括:UE(User Equipment,用户设备)、(R)AN((Radio)Access Network,(无线)接入网)、CN(Core Network,核心网)和DN(Data Network,数据网络),如图1所示。The 5G (the 5th Generation mobile communication technology) network, as the fifth generation mobile communication standard, is an extension of the LTE (Long Term Evolution) network. ITU (International Telecommunication Union) defines three typical application scenarios of 5G networks, including: eMBB (Enhance Mobile Broadband, enhanced mobile broadband), mMTC (Massive Machine Type of Communication), uRLLC (Ultra-Reliable Low Latency Communication, ultra-reliable and low-latency communication). 5G networks include: UE (User Equipment), (R) AN (Radio Access Network), (Wireless Access Network), CN (Core Network) and DN (Data Network), As shown in Figure 1.
5G核心网包括以下网络功能的实体:UPF(User Plane Function,用户面功能)、SMF(Session Management Function,会话管理功能)、AMF(Access and Mobility Management Function,接入及移动性管理功能)、AUSF(Authentication Server Function,鉴权服务功能)、NSSF(Network Slice Selection Function,网络切片选择功能)、NEF(Network Exposure Function,网络业务呈现功能)、NRF(NF Repository Function,网元数据仓库功能)、PCF(Policy Control Function,策略控制功能)、UDM(Unified Data Management,统一数据管理功能)、AF(Application Function,应用层功能),其中,SMF实体与AMF实体和UPF实体交互完成计费数据收集,并对外提供计费接口功能,如图2所示。The 5G core network includes the following network function entities: UPF (User Plane Function), SMF (Session Management Function, Session Management Function), AMF (Access and Mobility Management Function, Access and Mobility Management Function), AUSF (Authentication Server Function, authentication service function), NSSF (Network Slice Selection Function, network slice selection function), NEF (Network Exposure Function, network business presentation function), NRF (NF Repository Function, network element data warehouse function), PCF (Policy Control Function, policy control function), UDM (Unified Data Management, unified data management function), AF (Application Function), application layer function), where SMF entities interact with AMF entities and UPF entities to complete charging data collection, and Provide external billing interface functions, as shown in Figure 2.
NS(Network Slice,网络切片)是NFV(Network Function Virtualization,网络功能虚拟化)应用于5G网络的关键特征。网络切片是一组专业的以 及专门的逻辑网络集合,该集合作为服务,支持网络差异化,可满足垂直行业多元化需求,网络切片本质上是将运营商的物理网络划分为多个虚拟网络,以便灵活应对不同的网络应用场景,网络切片间应相互隔离,例如,资源、安全、数据、QoS(Quality of Service,服务质量)、可靠性、计费、操作维护隔离等。NS (Network Slice) is a key feature of NFV (Network Function Virtualization) applied to 5G networks. Network slicing is a set of professional and specialized logical networks. This set serves as a service and supports network differentiation to meet the diversified needs of vertical industries. Network slicing essentially divides the operator's physical network into multiple virtual networks. In order to respond flexibly to different network application scenarios, network slices should be isolated from each other, for example, resources, security, data, QoS (Quality of Service), reliability, billing, and operation and maintenance isolation.
NSI(Network Slice Instance,网络切片实例)是网络切片概念的实现。NSI是一个端到端的逻辑网络,包括一组网络功能、资源、和连接关系。一个NSI通常跨多个技术域,包括接入网、传输网与核心网,还可以包括垂直行业的第三方应用,每一个NSI由一个S-NSSAI(Single Network Slice Selection Assistance Information,单网络切片选择辅助信息,一种网络切片标识)区分,S-NSSAI可以包括:SST(Slice/Service type,切片服务类型)和SD(Slice Differentiator,切片区分子),其中,SST用于表示网络切片行为,SD用于补充在相同SST情况下更进一步的区分网络切片的信息。NSI (Network Slice Instance) is the realization of the concept of network slice. NSI is an end-to-end logical network, including a set of network functions, resources, and connection relationships. An NSI usually spans multiple technical domains, including access network, transmission network and core network, and can also include third-party applications in vertical industries. Each NSI is composed of an S-NSSAI (Single Network, Slice Selection, Assistance, Information, single network slice selection) Auxiliary information, a kind of network slice identification), S-NSSAI may include: SST (Slice/Service type, slice service type) and SD (Slice/Differentiator, slice area molecule), where SST is used to represent network slice behavior, SD It is used to supplement the information for further distinguishing network slices under the same SST.
计费功能是5G网络的必备功能,关系到运营商收益。如图3所示,5G计费在核心网完成,其中,CTF(Charging Trigger Function,计费触发功能)单元内嵌于SMF实体,CTF单元收集每个UE与无线网络、以及与外部数据网络使用相关的计费信息。CTF单元收集计费信息后,通过Nchf接口传递给CHF(Charging Function,计费功能)实体,CHF实体包括:CDF(Charging Data Function,计费数据功能)单元和OCF(Online Charging Function,在线计费功能)两部分。对于离线计费,CDF单元构造话单并将话单传递给CGF(Charging Gateway Function,计费网关功能)实体,CGF实体生成CDR(Charging Detail Record,计费详细记录,计费详单)文件,并传送到BD(Billing Domain,计费域),由BD完成用户的最终计费。对于在线计费,OCF单元完成对用户使用网络资源的授权,OCF单元将资源使用请求传递给RF(Rating Function,简称)实体,RF实体对请求的资源进行批价,并将批价结果返回OCF单元,OCF单元进一步通过ABMF(Account Balance Management Function,账户余额管理功能)实体核准余额和批价结果,并获取相应的授权配额,用户只有在获得 OCF单元的授权准许后,才能使用相应的网络资源。The billing function is an indispensable function of the 5G network and is related to the operator's revenue. As shown in Figure 3, 5G charging is done in the core network. Among them, the CTF (Charging Trigger Function) unit is embedded in the SMF entity, and the CTF unit collects each UE for use with the wireless network and with external data networks. Related billing information. After collecting charging information, the CTF unit passes it to the CHF (Charging Function) entity through the Nchf interface. The CHF entity includes: CDF (Charging Data Function) and OCF (Online Charging Function), online charging Function) Two parts. For offline charging, the CDF unit constructs the bill and passes the bill to the CGF (Charging Gateway Function) entity. The CGF entity generates a CDR (Charging Details Record, billing detail record, billing detail) file, And transmitted to BD (Billing Domain, billing domain), BD complete the final billing of users. For online billing, the OCF unit completes the authorization of the user to use network resources. The OCF unit passes the resource usage request to the RF (Rating Function) entity. The RF entity approves the requested resource and returns the appraisal result to the OCF Unit, the OCF unit further approves the balance and approval results through the ABMF (Account, Balance, Management, Function) entity, and obtains the corresponding authorization quota. Users can only use the corresponding network resources after obtaining the authorization permission from the OCF unit .
网络部署时,一个SMF实体可服务于多个网络切片,网络切片可以为不同的切片类型,服务于不同业务。基于网络切片的应用中,不同网络切片的服务费率不同,因此需要区分不同网络切片进行计费,避免不同网络切片的计费信息混合在一起造成计费错误。During network deployment, one SMF entity can serve multiple network slices. Network slices can be of different slice types and serve different services. In network slice-based applications, different network slices have different service rates, so different network slices need to be differentiated for charging to avoid charging errors caused by mixing the charging information of different network slices.
实际应用中,SMF实体针对每一个网络切片,分别创建PDU(Protocol Data Unit,协议数据单元)会话,并对每一个PDU会话分别生成CID(Charging Identifier,计费ID),因此在多个网络切片共享同一个SMF实体时,不同网络切片的计费ID可能重复。当一个PDU会话长久在线时,可以因数据流量限制、时长限制等因素产生多次计费信息,同一PDU会话产生的多次计费信息中计费ID保持不变,计费时需要将同一PDU会话的计费信息进行关联,计费ID是关联多次计费信息的主要参数。In practical applications, the SMF entity creates a PDU (Protocol Data Unit) protocol for each network slice, and generates a CID (Charging Identifier, charging ID) for each PDU session, so it is sliced in multiple networks When sharing the same SMF entity, the charging IDs of different network slices may overlap. When a PDU session is online for a long time, multiple charging information can be generated due to factors such as data flow restrictions and duration restrictions. The charging ID in the multiple charging information generated by the same PDU session remains unchanged. The same PDU needs to be charged during charging The charging information of the session is associated, and the charging ID is the main parameter associated with multiple charging information.
在LTE传统网络中,PGW(Packet Data Network Gateway,分组数据网网关)针对IP-CAN(Internet Protocol Connectivity Access Network,网络协议连接访问网络)承载统一分配计费ID,一个PGW内计费ID是唯一的,计费系统可以根据计费ID进行计费信息关联,如图4所示。而在5G基于网络切片应用中,SMF实体针对每个网络切片分别生成计费ID,如图3所示,不同网络切片计费ID可能重复。如果根据计费ID进行计费关联,将导致不同网络切片的计费信息关联在一起,造成计费错误。In the traditional LTE network, PGW (Packet Data Network Gateway) is assigned a charging ID for IP-CAN (Internet Protocol Connectivity Access Network), and the charging ID within a PGW is unique Yes, the charging system can perform charging information association according to the charging ID, as shown in FIG. 4. In 5G-based network slicing applications, the SMF entity generates charging IDs for each network slice separately. As shown in Figure 3, charging IDs for different network slices may be repeated. If the charging association is performed according to the charging ID, the charging information of different network slices will be associated together, resulting in charging errors.
发明内容Summary of the invention
本发明实施例中提供了一种计费处理方法及装置、存储介质和电子装置,以至少解决相关技术中针对会话的计费存在计费错误的问题。An embodiment of the present invention provides a charging processing method and device, a storage medium, and an electronic device, so as to at least solve the problem that there is a charging error for charging for a session in the related art.
根据本发明的一个实施例,提供了一种计费处理方法,包括:接收到SMF实体发送的与目标会话对应的目标标识信息,其中,目标标识信息用于在SMF实体内唯一标识目标会话;基于目标标识信息,对目标会话进行计费处理。According to an embodiment of the present invention, a charging processing method is provided, including: receiving target identification information corresponding to a target session sent by an SMF entity, wherein the target identification information is used to uniquely identify the target session within the SMF entity; Based on the target identification information, the target session is charged.
可选地,基于目标标识信息,对目标会话进行计费处理包括:在与目 标会话对应的计费方式为离线计费的情况下,根据目标标识信息,生成与目标会话对应的目标话单;Optionally, charging the target session based on the target identification information includes: when the charging method corresponding to the target session is offline charging, generating a target bill corresponding to the target session according to the target identification information;
将目标话单传输给BD,以使BD根据目标话单对目标会话进行计费处理。The target bill is transmitted to the BD, so that the BD charges the target session according to the target bill.
可选地,在根据目标标识信息,生成与目标会话对应的目标话单之前,方法还包括:收集CHF实体中的CDF单元生成的一个或多个目标CDR话单,其中,一个或多个目标CDR话单中的各目标CDR话单均携带有目标标识信息;根据目标标识信息,生成与目标会话对应的目标话单包括:根据目标标识信息,将一个或多个目标CDR话单进行话单合并,生成目标话单。Optionally, before generating a target CDR corresponding to the target session according to the target identification information, the method further includes: collecting one or more target CDR CDRs generated by the CDF unit in the CHF entity, where one or more targets Each target CDR bill in the CDR bill carries target identification information; according to the target identification information, generating a target bill corresponding to the target session includes: according to the target identification information, one or more target CDR bills are billed Merge to generate the target bill.
可选地,根据目标标识信息,将一个或多个目标CDR话单进行话单合并,生成目标话单包括:从一个或多个CDR话单的各目标CDR话单中分别提取出计费参数信息,组合形成设置为进行目标CDR话单合并的目标合并关键字,其中,目标合并关键字包含目标标识信息;将与目标合并关键字对应的一个或多个目标CDR话单进行话单合并,生成目标话单。Optionally, according to the target identification information, combining one or more target CDR bills with the bills to generate the target bills includes: separately extracting charging parameters from each target CDR bill of the one or more CDR bills Information, combined to form a target merge keyword set to merge target CDR bills, where the target merge keyword contains target identification information; merge one or more target CDR bills corresponding to the target merge keyword with the bill merge, Generate target bills.
可选地,根据目标标识信息,将一个或多个目标CDR话单进行话单合并,生成目标话单包括:确定一个或多个目标CDR话单中的各目标CDR话单携带的目标标识信息和用于标识目标会话的目标业务或目标应用的目标服务ID;将携带有目标标识信息和目标服务ID的一个或多个目标CDR话单进行关联合并,生成目标话单。Optionally, according to the target identification information, merging one or more target CDR bills to generate the target bill includes: determining the target identification information carried by each target CDR bill in the one or more target CDR bills And the target service ID used to identify the target business or target application of the target session; associate and merge one or more target CDR bills carrying the target identification information and the target service ID to generate a target bill.
可选地,基于目标标识信息,对目标会话进行计费处理包括:在与目标会话对应的计费方式为在线计费的情况下,使用目标标识信息,从RF实体获取用于标识对目标会话进行批价的结果信息,其中,结果信息包括以下至少之一:与目标会话对应的业务资源的累积量信息,与目标会话对应的业务资源的费率信息;使用目标标识信息,从ABMF实体获取与目标会话对应的目标账户的目标账户信息,其中,目标账户信息至少包含以下至少之一:与目标会话对应的业务资源的累积量的可用值,账户余额信 息;根据结果信息和目标账户信息,对目标会话进行计费处理。Optionally, based on the target identification information, charging the target session includes: when the charging method corresponding to the target session is online charging, using the target identification information to obtain the target session for identification from the RF entity The result information of the evaluation, where the result information includes at least one of the following: cumulative information of business resources corresponding to the target session, rate information of business resources corresponding to the target session; using target identification information, obtained from the ABMF entity Target account information of the target account corresponding to the target session, where the target account information includes at least one of the following: the available value of the cumulative amount of business resources corresponding to the target session, account balance information; based on the result information and target account information, Charge the target session.
可选地,根据结果信息和目标账户信息,对目标会话进行计费处理包括:根据结果信息和目标账户信息,确定目标会话使用业务资源的额度信息;将额度信息发送给SMF实体,其中,额度信息用于指示SMF实体对在目标会话过程中使用的业务资源进行监控,得到监控结果;接收SMF实体根据监控结果发送的目标请求,目标请求用于请求对目标账户进行扣费;将目标请求发送给ABMF实体,其中,目标请求用于指示ABMF实体对目标账户进行扣费。Optionally, charging the target session based on the result information and the target account information includes: determining the quota information of the business resource used by the target session based on the result information and the target account information; and sending the quota information to the SMF entity, where the quota The information is used to instruct the SMF entity to monitor the business resources used during the target session to obtain the monitoring result; receive the target request sent by the SMF entity according to the monitoring result, and the target request is used to request deduction of the target account; send the target request To the ABMF entity, where the target request is used to instruct the ABMF entity to deduct the target account.
可选地,目标标识信息包括与目标会话对应的计费标识ID和用于区分生成计费ID的网络切片的切片区分参数,或者,目标标识信息包括与目标会话对应的计费ID。Optionally, the target identification information includes a charging identification ID corresponding to the target session and a slice discrimination parameter used to distinguish the network slice that generates the charging ID, or the target identification information includes the charging ID corresponding to the target session.
可选地,切片区分参数包括以下之一:S-NSSAI,NSI标识,网络切片的切片名称。Optionally, the slice discrimination parameter includes one of the following: S-NSSAI, NSI identifier, and slice name of the network slice.
根据本发明的另一个实施例,提供了一种计费处理装置,包括:接收模块,设置为接收到SMF实体发送的与目标会话对应的目标标识信息,其中,目标标识信息用于在SMF实体内唯一标识目标会话;计费模块,设置为基于目标标识信息,对目标会话进行计费处理理。According to another embodiment of the present invention, there is provided a charging processing apparatus, including: a receiving module configured to receive target identification information corresponding to a target session sent by an SMF entity, wherein the target identification information is used in the SMF entity The target session is uniquely identified; the charging module is set to charge the target session based on the target identification information.
根据本发明的又一个实施例,还提供了一种存储介质,存储介质中存储有计算机程序,其中,计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present invention, a storage medium is also provided. The storage medium stores a computer program, wherein the computer program is configured to execute any of the steps in the above method embodiments during runtime.
根据本发明的又一个实施例,还提供了一种电子装置,包括存储器和处理器,存储器中存储有计算机程序,处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory and a processor, a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any of the above method embodiments .
通过本发明,采用接收到会话管理功能SMF实体发送的与目标会话对应的目标标识信息,其中,目标标识信息用于在SMF实体内唯一标识目标会话;基于目标标识信息,对目标会话进行计费处理,由于使用目标标识信息在SMF实体内唯一标识目标会话,并基于目标标识信息对目标 会话进行计费处理,可以有效的区分开SMF实体服务的多个网络切片的会话的计费信息,因此,可以解决相关技术中针对会话的计费存在计费错误的问题,达到提高会话计费准确性的技术效果。Through the present invention, the target identification information corresponding to the target session sent by the SMF entity of the session management function is adopted, wherein the target identification information is used to uniquely identify the target session within the SMF entity; based on the target identification information, the target session is charged Processing, because the target identification information is used to uniquely identify the target session within the SMF entity, and the target session is charged based on the target identification information, the charging information of the sessions of multiple network slices served by the SMF entity can be effectively distinguished, so It can solve the problem of charging errors in session charging in related technologies and achieve the technical effect of improving the accuracy of session charging.
附图说明BRIEF DESCRIPTION
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are used to provide a further understanding of the present invention and form a part of the present application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an undue limitation on the present invention. In the drawings:
图1是相关技术中的5G网络架构的示意图;Figure 1 is a schematic diagram of a 5G network architecture in the related art;
图2是相关技术中的5G网络核心网的示意图;2 is a schematic diagram of the core network of the 5G network in the related art;
图3是相关技术中的5G网络计费功能的示意图;3 is a schematic diagram of the 5G network charging function in the related art;
图4是相关技术中的LTE网络计费功能的示意图;4 is a schematic diagram of the LTE network charging function in the related art;
图5是根据本发明实施例的一种计费方法的网络设备的硬件结构框图;5 is a block diagram of a hardware structure of a network device of a charging method according to an embodiment of the present invention;
图6是根据本发明实施例的一种可选的计费处理方法的流程图;6 is a flowchart of an optional charging processing method according to an embodiment of the present invention;
图7是根据本发明实施例的一种可选的计费参数传递流程的示意图;7 is a schematic diagram of an optional charging parameter delivery process according to an embodiment of the present invention;
图8是根据本发明实施例的一种可选的离线计费流程的示意图;8 is a schematic diagram of an optional offline charging process according to an embodiment of the present invention;
图9是根据本发明实施例的一种可选的话单关联合并流程的示意图;9 is a schematic diagram of an optional bill association merging process according to an embodiment of the present invention;
图10是根据本发明实施例的一种可选的在线计费流程的示意图;10 is a schematic diagram of an optional online charging process according to an embodiment of the present invention;
图11是根据本发明实施例的另一种可选的计费处理方法的流程图;11 is a flowchart of another optional charging processing method according to an embodiment of the present invention;
图12是根据本发明实施例的计费处理装置的结构框图。12 is a structural block diagram of a charging processing apparatus according to an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present invention will be described in detail with reference to the drawings and in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other if there is no conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序 或先后次序。It should be noted that the terms “first” and “second” in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence.
实施例1Example 1
本申请实施例1所提供的方法实施例可以在网络设备、计算机设备或者类似的运算装置中执行。以运行在网络设备上为例,图5是根据本发明实施例的一种计费方法的网络设备的硬件结构框图,该网络设备可以是PC机、服务器设备或者设备的组合,也可以是虚拟设备,在该网络设备上配置有计费系统。如图5所示,网络设备50可以包括一个或多个(图5中仅示出一个)处理器502(处理器502可以包括但不限于MCU(Micro programmed Control Unit,微处理器)和用于存储数据的存储器504,可选地,上述网络设备还可以包括用于通信功能的传输设备506以及输入输出设备508。本领域普通技术人员可以理解,图5所示的结构仅为示意,其并不对上述网络设备的结构造成限定。例如,网络设备50还可包括比图5中所示更多或者更少的组件,或者具有与图5所示不同的配置。网络设备50还可以包括多个设备。多个设备中的各设备可以具有相同或者不同的结构。The method embodiment provided in Embodiment 1 of the present application may be executed in a network device, a computer device, or a similar computing device. Taking running on a network device as an example, FIG. 5 is a block diagram of a hardware structure of a network device of a charging method according to an embodiment of the present invention. The network device may be a PC, a server device, a combination of devices, or a virtual device. The device is equipped with a charging system on the network device. As shown in FIG. 5, the network device 50 may include one or more (only one is shown in FIG. 5) processor 502 (the processor 502 may include but is not limited to an MCU (Microprogrammed Control Unit, microprocessor)) and A memory 504 for storing data. Optionally, the above network device may further include a transmission device 506 for communication function and an input/output device 508. Those of ordinary skill in the art may understand that the structure shown in FIG. 5 is only schematic, and The structure of the above network device is not limited. For example, the network device 50 may further include more or fewer components than those shown in FIG. 5, or have a different configuration from that shown in FIG. 5. The network device 50 may also include multiple Device: Each device in the multiple devices may have the same or different structure.
存储器504可设置为存储计算机程序,例如,应用软件的软件程序以及模块,如本发明实施例中的计费处理方法对应的计算机程序,处理器502通过运行存储在存储器504内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器504可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器504可进一步包括相对于处理器502远程设置的存储器,这些远程存储器可以通过网络连接至网络设备50。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 504 may be configured to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the charging processing method in the embodiment of the present invention, and the processor 502 runs the computer program stored in the memory 504, thereby Implementation of various functional applications and data processing, that is, to achieve the above method. The memory 504 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 504 may further include memories remotely provided with respect to the processor 502, and these remote memories may be connected to the network device 50 through a network. Examples of the above network include but are not limited to the Internet, intranet, local area network, mobile communication network, and combinations thereof.
传输装置506设置为经由一个网络接收或者发送数据。上述的网络具体实例可包括网络设备50的通信供应商提供的通信网络。在一个实例中,传输装置506包括一个NIC(Network Interface Controller,网络适配器), 其可通过基站与其他网络设备相连从而可与互联网进行通讯。The transmission device 506 is configured to receive or transmit data via a network. The above specific example of the network may include a communication network provided by a communication provider of the network device 50. In one example, the transmission device 506 includes a NIC (Network Interface Controller, network adapter), which can be connected to other network devices through the base station to communicate with the Internet.
本申请实施例可以运行于图3所示的网络架构上,如图3所示,该网络架构包括:多个网络切片、计费系统、计费中心。The embodiment of the present application may run on the network architecture shown in FIG. 3. As shown in FIG. 3, the network architecture includes: multiple network slices, a charging system, and a charging center.
在本实施例中提供了一种运行于上述网络设备或网络架构的计费处理方法,图6是根据本发明实施例的一种可选的计费处理方法的流程图,如图6所示,该流程包括如下步骤:In this embodiment, a charging processing method running on the above network device or network architecture is provided. FIG. 6 is a flowchart of an optional charging processing method according to an embodiment of the present invention, as shown in FIG. 6 , The process includes the following steps:
步骤S602,接收到SMF实体发送的与目标会话对应的目标标识信息,其中,目标标识信息用于在SMF实体内唯一标识目标会话;Step S602: Receive target identification information corresponding to the target session sent by the SMF entity, where the target identification information is used to uniquely identify the target session within the SMF entity;
步骤S604,基于目标标识信息,对目标会话进行计费处理。Step S604: Perform charging processing on the target session based on the target identification information.
通过上述步骤,计费系统接收到SMF实体发送的与目标PDU会话对应的目标标识信息,其中,目标标识信息用于在SMF实体内唯一标识目标会话;基于目标标识信息,对目标会话进行计费处理,由于使用目标标识信息在SMF实体内唯一标识目标会话,并基于目标标识信息对目标PDU会话进行计费处理,可以有效的区分开SMF实体服务的多个网络切片的会话的计费信息,解决了相关技术中针对会话的计费存在计费错误的问题,提高了会话计费准确性。Through the above steps, the charging system receives target identification information corresponding to the target PDU session sent by the SMF entity, where the target identification information is used to uniquely identify the target session within the SMF entity; based on the target identification information, the target session is charged Processing, because the target identification information is used to uniquely identify the target session in the SMF entity, and the target PDU session is charged based on the target identification information, the charging information of the sessions of multiple network slices served by the SMF entity can be effectively distinguished. It solves the problem of charging error in session charging in related technologies, and improves the accuracy of session charging.
可选地,上述步骤的执行主体可以为计费系统,例如,计费系统中的CHF实体(CDF单元和OCF单元)、CGF实体或者其结合等,但不限于此。Optionally, the execution body of the above steps may be a charging system, for example, a CHF entity (CDF unit and OCF unit), a CGF entity or a combination thereof in the charging system, but it is not limited thereto.
可选地,步骤S602和步骤S604的执行顺序是可以互换的,可以先执行步骤S604,然后再执行S602。即,计费处理过程可以执行多次。Optionally, the execution order of step S602 and step S604 is interchangeable, and step S604 may be executed first, and then S602 may be executed. That is, the charging process can be performed multiple times.
可选地,在本实施例中,接收到SMF实体发送的与目标会话对应的目标标识信息,其中,目标标识信息用于在SMF实体内唯一标识目标会话。Optionally, in this embodiment, the target identification information corresponding to the target session sent by the SMF entity is received, where the target identification information is used to uniquely identify the target session within the SMF entity.
上述目标标识信息可以是能够在SMF实体内唯一标识目标会话(例如,PDU会话)的任意信息,使用该目标标识信息,可以保证计费信息的正确关联,以提高计费准确性。The target identification information may be any information that can uniquely identify a target session (for example, a PDU session) within the SMF entity. Using the target identification information, the correct association of charging information can be ensured to improve the accuracy of charging.
作为一种可选的实施方式,目标标识信息可以包括:与目标会话对应的计费ID和用于区分生成计费ID的网络切片的切片区分参数。As an optional implementation manner, the target identification information may include: a charging ID corresponding to the target session and a slice distinguishing parameter used to distinguish the network slice generating the charging ID.
为了区分不同网络切片的计费信息,SMF实体输出的计费信息可以增加一个切片区分参数,切片区分参数用以区分不同网络切片生成的计费信息,可以是S-NSSAI,也可以是NSI标识,也可以是网络切片的切片名称,或者其他可以区分不同切片的参数。In order to distinguish the charging information of different network slices, the charging information output by the SMF entity can add a slice distinguishing parameter. The slice distinguishing parameter is used to distinguish the charging information generated by different network slices. It can be S-NSSAI or NSI logo. , Can also be the slice name of the network slice, or other parameters that can distinguish different slices.
SMF实体将切片区分参数和计费信息一起传递给计费系统,计费系统结合切片区分参数、计费ID进行计费关联,以完成对用户的计费。新增的切片区分参数,可应用于离线计费场景,也可应用于在线计费场景。The SMF entity transmits the slicing distinguishing parameters and the charging information to the charging system together. The charging system combines the slicing distinguishing parameters and the charging ID to perform charging association to complete the charging of the user. The newly added slicing differentiation parameter can be applied to offline charging scenarios and also to online charging scenarios.
作为另一种可选的实施方式,目标标识信息可以包括:与目标PDU会话对应的计费ID。As another optional implementation manner, the target identification information may include: a charging ID corresponding to the target PDU session.
在多个网络切片共享SMF实体时,可以由SMF实体统一分配计费ID,即,计费ID在一个SMF实体内是唯一的,计费系统通过计费ID(或者计费ID和切片区分参数)区分不同会话,完成计费信息关联。When multiple network slices share an SMF entity, the charging ID can be uniformly assigned by the SMF entity, that is, the charging ID is unique within an SMF entity, and the charging system distinguishes parameters by charging ID (or charging ID and slice ) Differentiate between different sessions to complete the association of charging information.
SMF实体将计费信息(或者计费信息和切片区分参数一起)传递给计费系统,计费系统根据计费ID(或者计费ID和切片区分参数)进行计费关联,以完成对用户的计费。上述由SMF实体统一分配的计费ID,可应用于离线计费场景,也可应用于在线计费场景。The SMF entity transfers the charging information (or the charging information and the slicing parameter together) to the charging system, and the charging system performs charging association according to the charging ID (or the charging ID and the slicing parameter) to complete the Billing. The above-mentioned charging ID uniformly allocated by the SMF entity can be applied to offline charging scenarios and also to online charging scenarios.
计费系统接收的目标标识信息可以是通过目标消息发送的。上述目标消息可以是用于创建会话管理上下文的请求消息,也可以是用于进行计费的请求消息(例如,批价请求),还可以是用于传输计费信息的消息。The target identification information received by the charging system may be sent through the target message. The above target message may be a request message for creating a session management context, a request message for charging (for example, a rating request), or a message for transmitting charging information.
在接收到目标标识信息之后,计费系统可以通过多种方式对目标PDU会话进行计费处理。上述计费处理对应的计费方式可以是离线计费,也可以是在线计费。After receiving the target identification information, the charging system may perform charging processing on the target PDU session in various ways. The charging method corresponding to the above charging process may be offline charging or online charging.
作为一种可选的实施方式,在与目标会话对应的计费方式为离线计费的情况下,基于目标标识信息,对目标会话进行计费处理可以包括:根据目标标识信息,生成与目标会话对应的目标话单;将目标话单传输给BD, 以使BD根据目标话单对目标会话进行计费处理。As an optional implementation manner, in a case where the charging method corresponding to the target session is offline charging, charging the target session based on the target identification information may include: generating a target session based on the target identification information Corresponding target bill; transmit the target bill to BD, so that BD can charge the target session according to the target bill.
上述目标话单可以是基于一次计费信息生成的话单,也可以是基于多次计费信息生成的话单。The target bill may be a bill generated based on one-time charging information or a bill generated based on multiple charging information.
作为一种可选的实施方式,计费系统在获取到基于一次计费信息生成的话单(目标话单,例如,CDR话单)之后,将该话单直接传输给BD,由BD对目标会话进行计费处理。As an optional implementation manner, after obtaining a bill (target bill, for example, CDR bill) generated based on the one-time charging information, the charging system directly transmits the bill to the BD, and the BD performs the target conversation Perform billing processing.
作为另一种可选的实施方式,计费系统在获取到多个基于一次计费信息生成的话单(例如,CDR话单)之后,将该多个话单进行话单合并,生成目标话单。As another optional implementation manner, after obtaining a plurality of bills (for example, CDR bills) generated based on one-time charging information, the charging system merges the multiple bills to generate a target bill .
可选地,在根据目标标识信息,生成与PDU会话对应的目标话单之前,在根据目标标识信息,生成与目标会话对应的目标话单之前,可以收集CHF实体中的CDF单元生成的一个或多个目标CDR话单,其中,一个或多个目标CDR话单中的各目标CDR话单均携带有目标标识信息;根据目标标识信息,将一个或多个目标CDR话单进行话单合并,生成目标话单。Optionally, before generating the target CDR corresponding to the PDU session according to the target identification information, before generating the target CDR corresponding to the target session according to the target identification information, one or more generated by the CDF unit in the CHF entity may be collected Multiple target CDR bills, where each target CDR bill in one or more target CDR bills carries target identification information; according to the target identification information, one or more target CDR bills are merged into bills, Generate target bills.
对于离线计费,计费系统的CHF实体中的CDF单元收集SMF通过Nchf接口发送的计费信息,将计费信息中的各信息填写到预定话单的对应位置中,构造生成CDR话单(SMF-CDR话单),并将生成CDR话单发送给CGF实体。For offline charging, the CDF unit in the CHF entity of the charging system collects the charging information sent by the SMF through the Nchf interface, fills in the information in the charging information into the corresponding position of the predetermined bill, and constructs and generates the CDR bill ( SMF-CDR bill), and send the generated CDR bill to the CGF entity.
CGF实体收集CDF单元生成的CDR话单。收集到的CDR话单可能有多个。多个CDR话单可能对应于多个PDU会话,收集到的多个CDR话单携带的标识信息可能有多个。各标识信息用于在SMF实体内唯一标识一个PDU会话。多个CDR话单携带的标识信息中包含有目标标识信息。The CGF entity collects CDR bills generated by the CDF unit. There may be multiple CDR bills collected. Multiple CDR CDRs may correspond to multiple PDU sessions, and multiple collected CDR CDRs may carry multiple identification information. Each identification information is used to uniquely identify a PDU session within the SMF entity. The identification information carried in multiple CDR bills contains target identification information.
在多个CDR话单中,携带有目标标识信息的CDR话单为目标CDR话单,目标CDR话单的数目可以有一个或多个。多个CDR话单中的一个或多个目标CDR话单进行话单合并,从而生成目标话单。Among multiple CDR bills, the CDR bill carrying the target identification information is the target CDR bill, and the number of target CDR bills may be one or more. One or more target CDR bills in the multiple CDR bills are merged to generate a target bill.
可选地,除了标识信息之外,CGF单元可以从多个CDR话单的各CDR 话单中提取其他的计费参数信息,将计费参数信息进行组合,形成用于进行CDR话单合并的合并关键字(或称话单关键字)。对于目标会话,与其对应的合并关键字为目标合并关键字,目标合并关键字中包含目标标识信息。而与目标合并关键字对应的CDR话单即为上述目标CDR话单。将与目标合并关键字对应的一个或多个目标CDR话单(一个或多个目标CDR话单可以是与目标合并关键字对应的全部目标CDR话单,也可以是部分目标CDR话单)进行话单合并,生成目标话单。Optionally, in addition to the identification information, the CGF unit may extract other charging parameter information from each CDR bill of multiple CDR bills, and combine the charging parameter information to form a CDR bill merger Combine keywords (or call list keywords). For the target session, the merge keyword corresponding to it is the target merge keyword, and the target merge keyword contains the target identification information. The CDR bill corresponding to the target merge keyword is the target CDR bill. One or more target CDR bills corresponding to the target merge keyword (one or more target CDR bills may be all target CDR bills corresponding to the target merge keyword or part of the target CDR bills) Bills are merged to generate target bills.
例如,CGF实体可以从CDR话单中提取SUPI(Subscriber Permanent Identifier,用户永久标识)、计费ID、AMF地址、SMF地址,接入类型AN Type,组合形成话单关键字;并进一步从CDR话单中提取切片区分参数,与上述话单关键字组合形成最终的合并关键字。CGF实体根据最终的关联关键字进行话单关联合并:如果关键字相同,则认为是同一切片的同一PDU会话话单,CGF将这些话单合并在一起,形成一张最终的话单。For example, the CGF entity can extract SUPI (Subscriber Permanent Identifier, user permanent identifier), billing ID, AMF address, SMF address, access type AN Type from the CDR bill, and form a bill keyword; and further from the CDR bill The slice discrimination parameters are extracted from the list, and combined with the above bill keywords to form a final merged keyword. The CGF entity merges the bills according to the final associated keywords: if the keywords are the same, it is considered to be the same PDU session bill of the same slice, and the CGF merges these bills together to form a final bill.
通过本发明实施例的上述技术方案,通过将携带有目标标识信息的一个或多个目标CDR话单进行话单合并,生成目标话单,可以方便BD对目标会话进行计费,减轻BD的处理负担。Through the above technical solutions of the embodiments of the present invention, by merging one or more target CDR bills carrying target identification information to generate a target bill, it is convenient for BD to charge the target session and reduce BD processing burden.
为实现更精准的计费,可以在计费信息中添加服务ID参数,服务ID用于标识不同的业务或应用,例如,HTTP业务、彩信业务、WAP浏览业务、视频业务。计费系统结合目标标识信息(例如,计费ID,或者,切片区分参数和计费ID)、服务ID完成计费关联,可以实现基于业务类型的精准计费。To achieve more accurate billing, you can add a service ID parameter to the billing information. The service ID is used to identify different services or applications, such as HTTP services, MMS services, WAP browsing services, and video services. The billing system combines target identification information (for example, billing ID, or slice discrimination parameter and billing ID), and service ID to complete billing association, which can realize accurate billing based on service type.
可选地,根据目标标识信息,将一个或多个目标CDR话单进行话单合并,生成目标话单可以包括:确定一个或多个目标CDR话单中的各目标CDR话单携带的目标标识信息和用于标识目标会话的目标业务或目标应用的目标服务ID;将携带有目标标识信息和目标服务ID的一个或多个目标CDR话单(一个或多个目标CDR话单可以是与目标合并关键字对应的全部目标CDR话单,也可以是部分目标CDR话单)进行关联合并,生 成目标话单。Optionally, according to the target identification information, merging one or more target CDR bills to generate a target bill may include: determining the target identifier carried by each target CDR bill in one or more target CDR bills Information and the target service ID used to identify the target business or target application of the target session; one or more target CDR bills that will carry the target identification information and the target service ID (one or more target CDR bills may be related to the target All target CDR bills corresponding to the merge keywords may also be part of target CDR bills) to be associated and merged to generate a target bill.
通过本发明实施例的上述技术方案,结合目标标识信息和服务ID完成计费关联,可以实现基于业务类型的精准计费。Through the above technical solution of the embodiment of the present invention, and combining the target identification information and the service ID to complete the charging association, accurate charging based on service type can be realized.
作为另一种可选的实施方式,在与目标会话对应的计费方式为在线计费的情况下,CGF实体可以从RF实体获取对目标会话进行批价的批价结果,从ABMF实体获取账户余额信息,并根据批价结果和账户余额信息,对目标会话进行计费处理。As another optional embodiment, in the case where the charging method corresponding to the target session is online charging, the CGF entity may obtain the evaluation result of the evaluation of the target session from the RF entity and obtain the account from the ABMF entity Balance information, and charge the target session according to the approval result and account balance information.
可选地,在与目标会话对应的计费方式为在线计费的情况下,基于目标标识信息,对目标会话进行计费处理可以包括:在与目标会话对应的计费方式为在线计费的情况下,使用目标标识信息,从批价功能RF实体获取用于标识对目标会话进行批价的结果信息,其中,结果信息包括以下至少之一:与目标会话对应的业务资源的累积量信息,与目标会话对应的业务资源的费率信息;使用目标标识信息,从账户余额管理功能ABMF实体获取与目标会话对应的目标账户的目标账户信息,其中,目标账户信息至少包含以下至少之一:与目标会话对应的业务资源的累积量的可用值,账户余额信息;根据结果信息和目标账户信息,对目标会话进行计费处理。Optionally, in a case where the charging method corresponding to the target session is online charging, based on the target identification information, charging the target session may include: when the charging method corresponding to the target session is online charging In the case, using the target identification information, the result information used to identify the target session's rating is obtained from the RF function of the rating function, where the result information includes at least one of the following: the cumulative amount of business resources corresponding to the target session, Rate information of business resources corresponding to the target session; using target identification information, the target account information of the target account corresponding to the target session is obtained from the account balance management function ABMF entity, where the target account information contains at least one of the following: The available value of the accumulated amount of business resources corresponding to the target session, account balance information; and charging processing for the target session according to the result information and target account information.
通过本发明实施例的上述技术方案,计费系统从RF实体和ABMF实体分别获取批价结果和目标账户信息,以进行对目标会话的计费处理,可以实现在线计费场景下的基于目标标识信息的计费。Through the above technical solution of the embodiment of the present invention, the charging system obtains the rating results and target account information from the RF entity and the ABMF entity, respectively, to perform the charging process for the target session, which can realize the target-based identification in the online charging scenario Information billing.
根据结果信息和目标账户信息,可以采用多种方式对目标会话进行计费处理。例如,可以根据结果信息和目标账号信息,对目标会话使用业务资源的额度进行预留,并对目标会话对业务资源的使用情况进行监控。在目标会话使用的业务资源量小于预留额度且与预留额度的差值小于目标阈值时,向与该目标会话对应的UE发送提示信息,以提示账户余额不足,还可提示进行数据的保存;在目标会话使用的业务资源量等于预留额度,或者收到目标会话结束的指示信息时,结束该目标会话,并针对目标会话向ABMF实体发送扣费申请,以使ABMF实体对与该目标会话对应的账 号进行扣费,更新账户信息。According to the result information and the target account information, the target session can be billed in various ways. For example, according to the result information and the target account information, the amount of the business resource used by the target session may be reserved, and the usage of the business resource by the target session may be monitored. When the amount of service resources used by the target session is less than the reserved quota and the difference from the reserved quota is smaller than the target threshold, a reminder message is sent to the UE corresponding to the target session to remind that the account balance is insufficient, and it can also prompt to save the data ; When the amount of business resources used by the target session is equal to the reserved quota, or when the instruction message indicating the end of the target session is received, the target session is ended, and a deduction application is sent to the ABMF entity for the target session, so that the ABMF entity matches the target The account corresponding to the session is deducted and the account information is updated.
上述业务资源使用情况的监控可以是由SMF实体执行的,资源预留和发送扣费申请可以是由OCF单元执行的。The monitoring of the usage of the above service resources may be performed by the SMF entity, and the resource reservation and the sending of the deduction application may be performed by the OCF unit.
可选地,根据结果信息和目标账户信息,对目标会话进行计费处理可以包括:根据结果信息和目标账户信息,确定目标会话使用业务资源的额度信息;将额度信息发送给SMF实体,其中,额度信息用于指示SMF实体对在目标会话过程中使用的业务资源进行监控,得到监控结果;接收SMF实体根据监控结果发送的目标请求,目标请求用于请求对目标账户进行扣费;将目标请求发送给ABMF实体,其中,目标请求用于指示ABMF实体对目标账户进行扣费。Optionally, charging the target session based on the result information and the target account information may include: determining the quota information of the business resource used by the target session based on the result information and the target account information; and sending the quota information to the SMF entity, where, The quota information is used to instruct the SMF entity to monitor the business resources used in the target session to obtain the monitoring result; receive the target request sent by the SMF entity according to the monitoring result, and the target request is used to request a charge to the target account; the target request Sent to the ABMF entity, where the target request is used to instruct the ABMF entity to deduct the target account.
通过本发明实施例的上述技术方案,计费系统对目标会话使用的业务资源使用进行额度预留,可以避免目标会话超额使用的业务资源,由SMF实体对业务资源的使用情况进行监控,可以减少网元之间的交互,保证计费处理可靠性和有效性。Through the above technical solution of the embodiment of the present invention, the charging system reserves quotas for the usage of business resources used by the target session, which can avoid the excessive usage of business resources by the target session, and the usage of business resources monitored by the SMF entity can be reduced The interaction between network elements ensures the reliability and effectiveness of the billing process.
下面结合以下应用示例对上述计费处理方法进行说明。需要说明的是,各应用示例可以应用于如图3所示的5G网络架构中。在以下应用示例中,SMF为SMF实体,AMF为AMF实体,UPF为UPF实体,CHF为CHF实体,CDF为CDF单元,OCF为PCF单元,CGF为CGF实体,RF为RF实体,ABMF为ABMF实体,目标会话为PDU会话,。The above charging processing method will be described below in conjunction with the following application examples. It should be noted that each application example can be applied to the 5G network architecture shown in FIG. 3. In the following application example, SMF is SMF entity, AMF is AMF entity, UPF is UPF entity, CHF is CHF entity, CDF is CDF unit, OCF is PCF unit, CGF is CGF entity, RF is RF entity, ABMF is ABMF entity , The target session is a PDU session.
应用示例1Application example 1
图7是根据本发明实施例的一种可选的计费参数传递流程的示意图,该计费参数传递流程可以应用于5G网络下基于网络切片的计费参数传递。如图7所示,上述计费参数传递流程包括以下步骤:7 is a schematic diagram of an optional charging parameter transfer process according to an embodiment of the present invention. The charging parameter transfer process can be applied to network slice-based charging parameter transfer in a 5G network. As shown in Figure 7, the above charging parameter delivery process includes the following steps:
步骤S702,UE向AMF发送PDU会话创建请求。Step S702, the UE sends a PDU session creation request to the AMF.
UE接入到(R)AN网络,通过向AMF发送PDU会话创建请求(PDU Session Establishment Request)建立PDU会话。The UE accesses the (R)AN network, and establishes a PDU session by sending a PDU session creation request (PDU Session Establishment Request) to the AMF.
步骤S704,AMF选择为该PDU会话的SMF。In step S704, the AMF selects the SMF of the PDU session.
AMF根据UE提供的NSSAI和签约的NSSAI,确定最终的NSSAI,并确定服务于该PDU会话的SMF。AMF determines the final NSSAI based on the NSSAI provided by the UE and the contracted NSSAI, and determines the SMF serving the PDU session.
步骤S706,AMF向SMF发送Namf_PDUSession_CreateSMContext Request。In step S706, the AMF sends Namf_PDUSession_CreateSMContext Request to the SMF.
上述请求消息可以是Namf_PDUSession_CreateSMContext Request请求,用于创建会话管理上下文,该请求消息携带PDU会话上下文信息,可以包括但不限于:SUPI、AMF地址、接入类型AN Type、切片区分参数。The above request message may be a Namf_PDUSession_CreateSMContextRequest request, which is used to create a session management context. The request message carries PDU session context information, which may include, but is not limited to: SUPI, AMF address, access type ANType, and slice differentiation parameter.
步骤S708,SMF向AMF发送Namf_PDUSession_CreateSMContext Response。Step S708, SMF sends Namf_PDUSession_CreateSMContext Response to AMF.
SMF识别服务该会话的切片,保存SUPI、AMF地址、接入类型AN Type、切片区分参数,并基于切片对该PDU会话分配计费ID,然后向AMF回应Namf_PDUSession_CreateSMContext Response消息。The SMF identifies the slice serving the session, saves SUPI, AMF address, access type ANType, and slice discrimination parameters, and assigns a billing ID to the PDU session based on the slice, and then responds to the AMF with a Namf_PDUSession_CreateSMContext Response message.
步骤S710,SMF与UPF建立会话。Step S710, the SMF establishes a session with the UPF.
在向AMF发送该响应消息之后,SMF通过N4Session Establishment与UPF建立会话。After sending this response message to AMF, SMF establishes a session with UPF through N4SessionEstablishment.
步骤S712,UE触发业务,生成上下行流量。Step S712, the UE triggers the service and generates uplink and downlink traffic.
UE使用业务,触发UpLink Data流量(上行数据流量)和DownLink Data流量(下行数据流量)的生成。The UE uses the service to trigger the generation of UpLink Data traffic (upstream data traffic) and DownLink Data traffic (downstream data traffic).
步骤S714,SMF向CHF发送计费信息,以及切片区分参数。In step S714, the SMF sends charging information and slice discrimination parameters to the CHF.
SMF从UPF收集业务使用信息,收集的业务使用信息可以包括但不限于:业务数据流量、业务使用时间和业务使用时长。SMF根据收集的业务使用信息,确定于该PDU会话对应的计费信息,并通过目标接口将计费信息传递给计费系统。SMF collects business usage information from UPF. The collected business usage information may include but not limited to: business data flow, business usage time and business usage duration. The SMF determines the charging information corresponding to the PDU session based on the collected service usage information, and transmits the charging information to the charging system through the target interface.
例如,SMF通过Nchf接口将计费信息(可以包含SUPI、计费ID、AMF地址、SMF地址、接入类型AN Type、业务使用信息)、以及切片区 分参数传递给CHF。For example, SMF transmits charging information (which may include SUPI, charging ID, AMF address, SMF address, access type AN Type, service usage information), and slice segmentation parameters to CHF through the Nchf interface.
图7没有标出UE的PDU会话建立以及业务交互的详细流程。Figure 7 does not indicate the detailed flow of UE PDU session establishment and service interaction.
应用示例2Application example 2
图8是根据本发明实施例的一种可选的离线计费流程的示意图,该离线计费流程可以应用于5G网络切片的计费流程。如图8所示,上述离线计费流程包括以下步骤:FIG. 8 is a schematic diagram of an optional offline charging process according to an embodiment of the present invention. The offline charging process may be applied to the charging process of 5G network slices. As shown in Figure 8, the above offline charging process includes the following steps:
步骤S802,UE触发业务,SMF生成计费信息,SMF将计费信息和切片区分参数发送给CHF的CDF。In step S802, the UE triggers the service, the SMF generates charging information, and the SMF sends the charging information and the slicing distinguishing parameter to the CDF of the CHF.
UE触发业务之后,SMF从UPF收集业务使用信息,并将计费信息和切片区分参数通过Nchf接口发送给CHF的CDF,其中,计费信息可以包括但不限于:SUPI、计费ID、AMF地址、SMF地址、接入类型AN Type、业务使用信息。After the UE triggers the service, the SMF collects the service usage information from the UPF, and sends the charging information and slice discrimination parameters to the CDF of the CHF through the Nchf interface, where the charging information may include but is not limited to: SUPI, charging ID, AMF address , SMF address, access type AN Type, service usage information.
步骤S804,CDF收集SMF发送的计费信息,将计费信息填写到话单中,同时将切片区分参数填写到话单中,构造生成SMF-CDR话单。In step S804, the CDF collects the charging information sent by the SMF, fills the charging information into the bill, and fills in the slice discrimination parameters into the bill at the same time, constructs and generates the SMF-CDR bill.
步骤S806,CDF将SMF-CDR话单发送给CGF。In step S806, the CDF sends the SMF-CDR bill to the CGF.
步骤S808,CGF从SMF-CDR话单中提取计费参数,生成计费合并关键字,并合并同一PDU会话的部分话单。In step S808, the CGF extracts charging parameters from the SMF-CDR bill, generates a billing merge keyword, and merges part of the bill in the same PDU session.
上述计费参数可以包括但不限于:计费信息、切片区分参数。根据计费合并关键字来合并同一PDU会话的部分话单为可选步骤。The above charging parameters may include but are not limited to: charging information and slice distinguishing parameters. It is an optional step to merge part of the bills of the same PDU session according to the charging merge keywords.
步骤S810,CGF保存SMF-CDR话单,生成符合BD要求的话单文件。In step S810, the CGF saves the SMF-CDR bill and generates a bill file that meets the BD requirements.
步骤S812,CGF将话单文件发送给BD,由BD完成对用户的计费。In step S812, the CGF sends the bill file to the BD, and the BD completes charging the user.
应用示例3Application example 3
图9是根据本发明实施例的一种可选的话单关联合并流程的示意图,该离线计费流程可以应用于5G网络切片的计费流程。如图9所示,上述话单关联合并流程包括以下步骤:FIG. 9 is a schematic diagram of an optional bill association merging process according to an embodiment of the present invention. The offline charging process can be applied to the charging process of 5G network slices. As shown in Fig. 9, the above-mentioned bill association merging process includes the following steps:
步骤S902,CGF收集CHF中CDF生成的SMF-CDR话单。In step S902, the CGF collects the SMF-CDR CDR generated by the CDF in the CHF.
步骤S904,CGF提取话单参数,生成合并关键字。In step S904, the CGF extracts the bill parameters and generates merge keywords.
CGF从话单中提取SUPI、计费ID、AMF地址、SMF地址,接入类型AN Type,组合形成话单关键字。The CGF extracts SUPI, billing ID, AMF address, and SMF address from the bill, and access type AN Type to form a bill key.
步骤S906,CGF从话单中提取切片区分参数,将提取的切片区分参数与话单关键字组合,形成最终的合并关键字。In step S906, the CGF extracts the slice discrimination parameter from the bill, and combines the extracted slice discrimination parameter with the bill keyword to form a final merge keyword.
例如,CGF可以从话单中提取出S-NSSAI(一种切片区分参数),将S-NSSAI与生成的合并关键字组合,生成最终基于网络切片的合并关键字。For example, CGF can extract S-NSSAI (a slice discrimination parameter) from the CDR, combine S-NSSAI with the generated merge keywords, and generate merge keywords based on the final network slice.
步骤S908,CGF对相同合并关键字的话单进行合并。In step S908, the CGF merges the bills of the same merge keyword.
如果关键字相同,则认为是同一切片的同一PDU会话话单。CGF根据最终的关联关键字进行话单关联合并,将关键字相同的话单合并在一起,形成一张最终的话单输出给BD。If the keywords are the same, it is considered to be the same PDU session bill for the same slice. CGF merges the bills according to the final related keywords, and merges the bills with the same keywords together to form a final bill and outputs it to BD.
应用示例4Application example 4
图10是根据本发明实施例的一种可选的在线计费流程的示意图,该在线计费流程可以应用于5G网络切片的计费流程。如图10所示,上述在线计费流程包括以下步骤:FIG. 10 is a schematic diagram of an optional online charging process according to an embodiment of the present invention. The online charging process may be applied to the charging process of 5G network slices. As shown in FIG. 10, the above online charging process includes the following steps:
步骤S1002,SMF向CHF发送在线计费信息、切片区分参数。In step S1002, the SMF sends online charging information and slice discrimination parameters to the CHF.
UE触发业务,SMF创建在线计费会话,并将在线计费信息、切片区分参数发送给CHF。The UE triggers the service, and the SMF creates an online charging session, and sends the online charging information and slice distinguishing parameters to the CHF.
步骤S1004,OCF与RF交互,向RF发送批价请求并接收RF的响应。In step S1004, the OCF interacts with the RF, sends a rating request to the RF and receives the RF response.
CHF的OCF与RF交互,OCF向RF发送批价请求,携带SUPI、切片区分参数、资源使用请求信息。RF依据切片区分参数,判断会话类型,给出相应的累计量信息或者费率信息。RF根据SUPI、切片区分参数、资源使用请求信息,完成批价处理。The OCF of the CHF interacts with the RF. The OCF sends a request for pricing to the RF, which carries SUPI, slice differentiation parameters, and resource usage request information. The RF distinguishes parameters based on slices, judges the session type, and provides corresponding cumulative amount information or rate information. RF completes the pricing process based on SUPI, slice differentiation parameters, and resource usage request information.
步骤S1006,OCF与ABMF交互,向ABMF发送账户余额查询请求并接收ABMF的响应。In step S1006, OCF interacts with ABMF, sends an account balance query request to ABMF and receives a response from ABMF.
CHF的OCF与ABMF交互,OCF向ABMF发送账户余额查询请求, ABMF将相应的用户账户余额和累积量的可用值返回给OCF。The OCF of the CHF interacts with the ABMF. The OCF sends an account balance query request to the ABMF. The ABMF returns the available values of the corresponding user account balance and accumulated amount to the OCF.
步骤S1008,OCF将预留额度发送给SMF,以对PDU会话进行控制。In step S1008, the OCF sends the reserved quota to the SMF to control the PDU session.
CHF的OCF根据资源使用请求信息和服务费率,计算准予用户使用的额度,将核准的额度(预留额度)传递给SMF。The CHF’s OCF calculates the quota granted to the user based on the resource usage request information and service rate, and passes the approved quota (reserved quota) to the SMF.
步骤S1010,SMF经由OCF向ABMF发送扣费申请,以完成扣费。In step S1010, SMF sends a deduction application to ABMF via OCF to complete the deduction.
SMF根据OCF的预留额度,执行单元使用监控,并向OCF发送扣费申请,OCF将扣费申请提交给ABMF,ABMF进行账户更新。SMF monitors the usage of the execution unit according to the reserved amount of OCF, and sends a deduction application to OCF. OCF submits the deduction application to ABMF, and ABMF updates the account.
应用示例5Application example 5
图11是根据本发明实施例的另一种可选的计费处理方法的流程图,在该计费处理方法中,计费ID由SMF统一分配。如图11所示,该计费处理方法包括以下步骤:FIG. 11 is a flowchart of another optional charging processing method according to an embodiment of the present invention. In the charging processing method, the charging ID is uniformly assigned by SMF. As shown in FIG. 11, the charging processing method includes the following steps:
步骤S1102,AMF向SMF发送Namf_PDUSession_CreateSMContext Request。In step S1102, the AMF sends Namf_PDUSession_CreateSMContext Request to the SMF.
用户接入网络,触发业务,建立PDU会话。Users access the network, trigger services, and establish PDU sessions.
AMF向SMF发送Namf_PDUSession_CreateSMContext Request请求,请求消息携带PDU会话上下文信息,包括SUPI、AMF地址、接入类型AN Type、切片区分参数。AMF sends Namf_PDUSession_CreateSMContext Request to SMF. The request message carries PDU session context information, including SUPI, AMF address, access type ANType, and slice discrimination parameters.
步骤S1104,SMF为该PDU会话统一分配计费ID。In step S1104, SMF uniformly allocates a charging ID for the PDU session.
SMF识别服务该会话的切片,保存SUPI、AMF地址、接入类型AN Type、切片区分参数,对该PDU会话统一分配计费ID(计费ID在SMF范围内唯一),并收集业务使用信息,确定计费信息(可以包含SUPI、计费ID、AMF地址、SMF地址、接入类型AN Type、业务使用信息)。SMF recognizes the slicing of the session, saves SUPI, AMF address, access type AN Type, slicing distinguishing parameters, uniformly assigns a charging ID to the PDU session (the charging ID is unique within the SMF range), and collects service usage information Determine charging information (may include SUPI, charging ID, AMF address, SMF address, access type AN Type, service usage information).
步骤S1106,SMF向CHF发送计费信息和切片区分参数。In step S1106, the SMF sends charging information and slice discrimination parameters to the CHF.
SMF将计费信息、以及切片区分参数发送给CHF,由CHF完成后续计费处理。The SMF sends charging information and slice discrimination parameters to the CHF, and the CHF completes the subsequent charging process.
同时,上述计费处理方法也可适用于采用网络切片方式实现的物联网 应用计费。At the same time, the above billing processing method can also be applied to billing of Internet of Things applications implemented by network slicing.
通过上述应用示例,对于5G网络下基于网络切片的计费,可通过切片区分参数、计费ID区分不同网络切片的PDU会话,并结合服务ID可以准确区分不同业务应用的计费信息,从而能准确地进行计费关联,避免不同网络切片的计费信息关联在一起,保障了计费准确性。Through the above application example, for the charging based on network slicing in 5G networks, the PDU sessions of different network slices can be distinguished by the slicing parameter and charging ID, and the service ID can accurately distinguish the charging information of different business applications, so that Accurately perform billing correlation, avoiding the correlation of billing information of different network slices, and ensuring billing accuracy.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware, but in many cases the former is Better implementation. Based on such an understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or part of contributions to the existing technology, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, The CD-ROM includes several instructions to enable a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the embodiments of the present invention.
实施例2Example 2
在本实施例中还提供了一种计费处理装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a charging processing device is also provided. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and those that have already been described will not be repeated. As used below, the term "module" may implement a combination of software and/or hardware that performs predetermined functions. Although the devices described in the following embodiments are preferably implemented in software, implementation of hardware or a combination of software and hardware is also possible and conceived.
图12是根据本发明实施例的计费处理装置的结构框图,如图12所示,该装置包括:FIG. 12 is a structural block diagram of a charging processing device according to an embodiment of the present invention. As shown in FIG. 12, the device includes:
接收模块1202,设置为接收到会话管理功能SMF实体发送的与目标会话对应的目标标识信息,其中,目标标识信息用于在SMF实体内唯一标识目标会话;The receiving module 1202 is configured to receive target identification information corresponding to the target session sent by the session management function SMF entity, where the target identification information is used to uniquely identify the target session within the SMF entity;
计费模块1204,连接至接收模块1202,设置为基于目标标识信息,对目标会话进行计费处理。The charging module 1204 is connected to the receiving module 1202, and is configured to perform charging processing on the target session based on the target identification information.
作为一种可选的实施方式,计费模块1204可以包括:生成单元,设置为在与目标会话对应的计费方式为离线计费的情况下,根据目标标识信息,生成与目标会话对应的目标话单;发送单元,连接至生成单元,设置为将目标话单传输给BD,以使BD根据目标话单对目标会话进行计费处理。As an optional embodiment, the charging module 1204 may include: a generating unit configured to generate a target corresponding to the target session according to target identification information when the charging mode corresponding to the target session is offline charging The bill; the sending unit, connected to the generating unit, is set to transmit the target bill to the BD, so that the BD charges the target session according to the target bill.
可选地,上述装置还可以包括收集模块,生成单元可以包括生成子单元,其中,Optionally, the above device may further include a collection module, and the generating unit may include a generating subunit, where,
收集模块,设置为在根据目标标识信息,生成与目标会话对应的目标话单之前,收集计费功能CHF实体中的计费数据功能CDF单元生成的一个或多个目标计费详细记录CDR话单,其中,一个或多个目标CDR话单中的各目标CDR话单均携带有目标标识信息;The collection module is configured to collect one or more target charging detailed record CDR bills generated by the charging data function CDF unit in the charging function CHF entity before generating the target bill corresponding to the target session according to the target identification information , Where each target CDR bill in one or more target CDR bills carries target identification information;
生成子单元,设置为根据目标标识信息,将一个或多个目标CDR话单进行话单合并,生成目标话单。The generating subunit is configured to merge one or more target CDR bills according to the target identification information to generate a target bill.
可选地,生成子单元可以包括:Optionally, the generating subunit may include:
组合子模块,设置为从所述一个或多个CDR话单的各目标CDR话单中分别提取出计费参数信息,组合形成用于进行目标CDR话单合并的目标合并关键字,其中,所述目标合并关键字包含所述目标标识信息;The combining submodule is configured to extract charging parameter information from each target CDR bill of the one or more CDR bills, and combine to form a target merge keyword for merging the target CDR bills, wherein The target merge keyword contains the target identification information;
第一合并子模块,连接至组合子模块,设置为将与所述目标合并关键字对应的所述一个或多个目标CDR话单进行话单合并,生成所述目标话单。The first merging sub-module is connected to the combining sub-module, and is configured to merge the one or more target CDR bills corresponding to the target merge keyword to generate the target bill.
可选地,生成子单元可以包括:Optionally, the generating subunit may include:
确定子模块,设置为确定一个或多个目标CDR话单中的各目标CDR话单携带的目标标识信息和用于标识目标会话的目标业务或目标应用的目标服务ID;The determination submodule is set to determine the target identification information carried in each target CDR bill in one or more target CDR bills and the target service ID used to identify the target business or target application of the target session;
第二合并子模块,连接至确定子模块,设置为将携带有目标标识信息和目标服务ID的一个或多个目标CDR话单进行关联合并,生成目标话单。The second merging submodule is connected to the determining submodule, and is configured to associate and merge one or more target CDR bills carrying the target identification information and the target service ID to generate a target bill.
作为另一种可选的实施方式,计费模块1204可以包括:As another optional implementation manner, the charging module 1204 may include:
第一获取单元,设置为在与目标会话对应的计费方式为在线计费的情况下,使用目标标识信息,从RF实体获取用于标识对目标会话进行批价的结果信息,其中,结果信息包括以下至少之一:与目标会话对应的业务资源的累积量信息,与目标会话对应的业务资源的费率信息;The first obtaining unit is configured to use the target identification information to obtain the result information used to identify the rating of the target session from the RF entity when the charging method corresponding to the target session is online charging. It includes at least one of the following: cumulative amount information of business resources corresponding to the target session, and tariff information of business resources corresponding to the target session;
第二获取单元,连接至第一获取单元,设置为使用目标标识信息,从账户余额管理功能ABMF实体获取与目标会话对应的目标账户的目标账户信息,其中,目标账户信息至少包含以下至少之一:与目标会话对应的业务资源的累积量的可用值,账户余额信息;The second acquiring unit, connected to the first acquiring unit, is configured to acquire target account information of the target account corresponding to the target session from the account balance management function ABMF entity using target identification information, wherein the target account information includes at least one of the following : The available value of the cumulative amount of business resources corresponding to the target session, account balance information;
计费单元,连接至第二获取单元,设置为根据结果信息和目标账户信息,对目标会话进行计费处理。The charging unit, connected to the second obtaining unit, is configured to perform charging processing on the target session according to the result information and the target account information.
可选地,计费单元可以包括:Optionally, the charging unit may include:
确定子单元,设置为根据结果信息和目标账户信息,确定目标会话使用业务资源的额度信息;The determination subunit is set to determine the quota information of business resources used by the target session according to the result information and the target account information;
第一发送子单元,连接至确定子单元,设置为将额度信息发送给SMF实体,其中,额度信息用于指示SMF实体对在目标会话过程中使用的业务资源进行监控,得到监控结果;The first sending subunit, connected to the determining subunit, is configured to send quota information to the SMF entity, where the quota information is used to instruct the SMF entity to monitor the business resources used during the target session and obtain the monitoring result;
接收子单元,连接至第一发送子单元,设置为接收SMF实体根据监控结果发送的目标请求,目标请求用于请求对目标账户进行扣费;The receiving subunit is connected to the first sending subunit, and is configured to receive a target request sent by the SMF entity according to the monitoring result, and the target request is used to request deduction of the target account;
第二发送子单元,连接至接收子单元,设置为将目标请求发送给账户余额管理功能ABMF实体,其中,目标请求用于指示ABMF实体对目标账户进行扣费。The second sending subunit, connected to the receiving subunit, is configured to send the target request to the account balance management function ABMF entity, where the target request is used to instruct the ABMF entity to deduct the target account.
可选地,目标标识信息可以包括与目标会话对应的计费ID和用于区分生成计费ID的网络切片的切片区分参数,或者,目标标识信息包括与目标会话对应的计费ID。Optionally, the target identification information may include a charging ID corresponding to the target session and a slice discrimination parameter used to distinguish the network slice that generates the charging ID, or the target identification information includes the charging ID corresponding to the target session.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于 后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that the above modules can be implemented by software or hardware, and the latter can be implemented by the following methods, but not limited to this: the above modules are all located in the same processor; or, the above modules can be combined in any combination The forms are located in different processors.
实施例3Example 3
本发明的实施例还提供了一种存储介质,该存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。An embodiment of the present invention further provides a storage medium in which a computer program is stored, wherein the computer program is configured to execute any of the steps in the above method embodiments during runtime.
可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的计算机程序:Optionally, in this embodiment, the above storage medium may be set to store a computer program for performing the following steps:
S1,接收到SMF实体发送的与目标会话对应的目标标识信息,其中,目标标识信息用于在SMF实体内唯一标识目标会话;S1. Receive target identification information corresponding to the target session sent by the SMF entity, where the target identification information is used to uniquely identify the target session within the SMF entity;
S2,基于目标标识信息,对目标会话进行计费处理。S2, based on the target identification information, charge the target session.
可选地,存储介质还被设置为存储用于执行以下步骤的计算机程序:Optionally, the storage medium is also configured to store a computer program for performing the following steps:
S1,在与目标会话对应的计费方式为离线计费的情况下,根据目标标识信息,生成与目标会话对应的目标话单;S1. In the case that the charging method corresponding to the target session is offline charging, generate a target bill corresponding to the target session according to the target identification information;
S2,将目标话单传输给BD,以使BD根据目标话单对目标会话进行计费处理。S2. Transmit the target bill to the BD, so that the BD charges the target session according to the target bill.
可选地,存储介质还被设置为存储用于执行以下步骤的计算机程序:Optionally, the storage medium is also configured to store a computer program for performing the following steps:
S1,在根据目标标识信息,生成与目标会话对应的目标话单之前,收集CHF实体中的CDF单元生成的一个或多个目标计费CDR话单,其中,一个或多个目标CDR话单中的各目标CDR话单均携带有目标标识信息;S1, before generating the target bill corresponding to the target session according to the target identification information, collect one or more target charging CDR bills generated by the CDF unit in the CHF entity, where one or more target CDR bills Each target CDR bill carries the target identification information;
S2,根据目标标识信息,将一个或多个目标CDR话单进行话单合并,生成目标话单。S2, according to the target identification information, merge one or more target CDR bills into bills to generate a target bill.
可选地,存储介质还被设置为存储用于执行以下步骤的计算机程序:Optionally, the storage medium is also configured to store a computer program for performing the following steps:
S1,从一个或多个CDR话单的各目标CDR话单中分别提取出计费参数信息,组合形成用于进行目标CDR话单合并的目标合并关键字,其中, 目标合并关键字包含目标标识信息;S1: Extract charging parameter information from each target CDR bill of one or more CDR bills, and combine to form a target merge keyword for merging the target CDR bills, wherein the target merge keyword contains the target identifier information;
S2,将与目标合并关键字对应的一个或多个目标CDR话单进行话单合并,生成目标话单。S2, merge one or more target CDR bills corresponding to the target merge keyword to generate a bill.
可选地,存储介质还被设置为存储用于执行以下步骤的计算机程序:Optionally, the storage medium is also configured to store a computer program for performing the following steps:
S1,确定一个或多个目标CDR话单中的各目标CDR话单携带的目标标识信息和用于标识目标会话的目标业务或目标应用的目标服务标识ID;S1. Determine the target identification information carried in each target CDR bill in one or more target CDR bills and the target service identification ID used to identify the target business or target application of the target session;
S2,将携带有目标标识信息和目标服务ID的一个或多个目标CDR话单进行关联合并,生成目标话单。S2. Associate and merge one or more target CDR bills carrying the target identification information and the target service ID to generate a target bill.
可选地,存储介质还被设置为存储用于执行以下步骤的计算机程序:Optionally, the storage medium is also configured to store a computer program for performing the following steps:
S1,在与目标会话对应的计费方式为在线计费的情况下,使用目标标识信息,从RF实体获取用于标识对目标会话进行批价的结果信息,其中,结果信息包括以下至少之一:与目标会话对应的业务资源的累积量信息,与目标会话对应的业务资源的费率信息;S1. In the case that the charging method corresponding to the target session is online charging, use the target identification information to obtain the result information for identifying the rating of the target session from the RF entity, where the result information includes at least one of the following : Cumulative amount information of business resources corresponding to the target session, rate information of business resources corresponding to the target session;
S2,使用目标标识信息,从ABMF实体获取与目标会话对应的目标账户的目标账户信息,其中,目标账户信息至少包含以下至少之一:与目标会话对应的业务资源的累积量的可用值,账户余额信息;S2. Using target identification information, obtain target account information of the target account corresponding to the target session from the ABMF entity, where the target account information includes at least one of the following: the available value of the cumulative amount of business resources corresponding to the target session, account Balance information
S3,根据结果信息和目标账户信息,对目标会话进行计费处理。S3, according to the result information and the target account information, charge the target session.
可选地,存储介质还被设置为存储用于执行以下步骤的计算机程序:Optionally, the storage medium is also configured to store a computer program for performing the following steps:
S1,根据结果信息和目标账户信息,确定目标会话使用业务资源的额度信息;S1, according to the result information and the target account information, determine the quota information of the target session using business resources;
S2,将额度信息发送给SMF实体,其中,额度信息用于指示SMF实体对在目标会话过程中使用的业务资源进行监控,得到监控结果;S2. Send quota information to the SMF entity, where the quota information is used to instruct the SMF entity to monitor the business resources used during the target session to obtain the monitoring result;
S3,接收SMF实体根据监控结果发送的目标请求,目标请求用于请求对目标账户进行扣费;S3. Receive a target request sent by the SMF entity according to the monitoring result. The target request is used to request a fee deduction for the target account;
S4,将目标请求发送给ABMF实体,其中,目标请求用于指示ABMF实体对目标账户进行扣费。S4. Send the target request to the ABMF entity, where the target request is used to instruct the ABMF entity to deduct the target account.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、ROM(Read-Only Memory,只读存储器)、RAM(Random Access Memory,随机存取存储器)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。Optionally, in this embodiment, the above storage medium may include, but is not limited to: U disk, ROM (Read-Only Memory, read-only memory), RAM (Random Access Memory, random access memory), mobile hard disk, magnetic Various media such as compact discs or optical discs that can store computer programs.
实施例4Example 4
本发明的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present invention further provides an electronic device, including a memory and a processor, where the computer program is stored in the memory, and the processor is configured to run the computer program to perform any of the steps in the above method embodiments.
可选地,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。Optionally, the electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the processor, and the input-output device is connected to the processor.
可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:Optionally, in this embodiment, the foregoing processor may be configured to perform the following steps through a computer program:
S1,接收到SMF实体发送的与目标会话对应的目标标识信息,其中,目标标识信息用于在SMF实体内唯一标识目标会话;S1. Receive target identification information corresponding to the target session sent by the SMF entity, where the target identification information is used to uniquely identify the target session within the SMF entity;
S2,基于目标标识信息,对目标会话进行计费处理。S2, based on the target identification information, charge the target session.
可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:Optionally, in this embodiment, the foregoing processor may be configured to perform the following steps through a computer program:
S1,在与目标会话对应的计费方式为离线计费的情况下,根据目标标识信息,生成与目标会话对应的目标话单;S1. In the case that the charging method corresponding to the target session is offline charging, generate a target bill corresponding to the target session according to the target identification information;
S2,将目标话单传输给BD,以使BD根据目标话单对目标会话进行计费处理。S2. Transmit the target bill to the BD, so that the BD charges the target session according to the target bill.
可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:Optionally, in this embodiment, the foregoing processor may be configured to perform the following steps through a computer program:
S1,在根据目标标识信息,生成与目标会话对应的目标话单之前,收集CHF实体中的CDF单元生成的一个或多个目标计费CDR话单,其中, 一个或多个目标CDR话单中的各目标CDR话单均携带有目标标识信息;S1. Before generating the target bill corresponding to the target session according to the target identification information, collect one or more target charging CDR bills generated by the CDF unit in the CHF entity, where one or more target CDR bills Each target CDR bill carries the target identification information;
S2,根据目标标识信息,将一个或多个目标CDR话单进行话单合并,生成目标话单。S2, according to the target identification information, merge one or more target CDR bills into bills to generate a target bill.
可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:Optionally, in this embodiment, the foregoing processor may be configured to perform the following steps through a computer program:
S1,从一个或多个CDR话单的各目标CDR话单中分别提取出计费参数信息,组合形成用于进行目标CDR话单合并的目标合并关键字,其中,目标合并关键字包含目标标识信息;S1, separately extracting charging parameter information from each target CDR bill of one or more CDR bills, and combining to form a target merge keyword for merging the target CDR bills, wherein the target merge keyword includes a target identifier information;
S2,将与目标合并关键字对应的一个或多个目标CDR话单进行话单合并,生成目标话单。S2, merge one or more target CDR bills corresponding to the target merge keyword to generate a bill.
可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:Optionally, in this embodiment, the foregoing processor may be configured to perform the following steps through a computer program:
S1,确定一个或多个目标CDR话单中的各目标CDR话单携带的目标标识信息和用于标识目标会话的目标业务或目标应用的目标服务标识ID;S1. Determine the target identification information carried in each target CDR bill in one or more target CDR bills and the target service identification ID used to identify the target business or target application of the target session;
S2,将携带有目标标识信息和目标服务ID的一个或多个目标CDR话单进行关联合并,生成目标话单。S2. Associate and merge one or more target CDR bills carrying the target identification information and the target service ID to generate a target bill.
可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:Optionally, in this embodiment, the foregoing processor may be configured to perform the following steps through a computer program:
S1,在与目标会话对应的计费方式为在线计费的情况下,使用目标标识信息,从RF实体获取用于标识对目标会话进行批价的结果信息,其中,结果信息包括以下至少之一:与目标会话对应的业务资源的累积量信息,与目标会话对应的业务资源的费率信息;S1. In the case that the charging method corresponding to the target session is online charging, use the target identification information to obtain the result information for identifying the rating of the target session from the RF entity, where the result information includes at least one of the following : Cumulative amount information of business resources corresponding to the target session, rate information of business resources corresponding to the target session;
S2,使用目标标识信息,从ABMF实体获取与目标会话对应的目标账户的目标账户信息,其中,目标账户信息至少包含以下至少之一:与目标会话对应的业务资源的累积量的可用值,账户余额信息;S2. Using target identification information, obtain target account information of the target account corresponding to the target session from the ABMF entity, where the target account information includes at least one of the following: the available value of the cumulative amount of business resources corresponding to the target session, account Balance information
S3,根据结果信息和目标账户信息,对目标会话进行计费处理。S3, according to the result information and the target account information, charge the target session.
可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:Optionally, in this embodiment, the foregoing processor may be configured to perform the following steps through a computer program:
S1,根据结果信息和目标账户信息,确定目标会话使用业务资源的额度信息;S1, according to the result information and the target account information, determine the quota information of the target session using business resources;
S2,将额度信息发送给SMF实体,其中,额度信息设置为指示SMF实体对在目标会话过程中使用的业务资源进行监控,得到监控结果;S2, sending the quota information to the SMF entity, where the quota information is set to instruct the SMF entity to monitor the business resources used during the target session, and obtain the monitoring result;
S3,接收SMF实体根据监控结果发送的目标请求,目标请求用于请求对目标账户进行扣费;S3. Receive a target request sent by the SMF entity according to the monitoring result. The target request is used to request a fee deduction for the target account;
S4,将目标请求发送给ABMF实体,其中,目标请求用于指示ABMF实体对目标账户进行扣费。S4. Send the target request to the ABMF entity, where the target request is used to instruct the ABMF entity to deduct the target account.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。Optionally, for specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and optional implementation manners, and details are not repeated in this embodiment.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented by a universal computing device, they can be concentrated on a single computing device, or distributed in a network composed of multiple computing devices Above, optionally, they can be implemented with program code executable by the computing device, so that they can be stored in the storage device to be executed by the computing device, and in some cases, can be in a different order than here The steps shown or described are performed, or they are made into individual integrated circuit modules respectively, or multiple modules or steps among them are made into a single integrated circuit module to achieve. In this way, the present invention is not limited to any specific combination of hardware and software.
以上仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, and improvement made within the principles of the present invention should be included in the protection scope of the present invention.

Claims (12)

  1. 一种计费处理方法,包括:A billing processing method, including:
    接收到会话管理功能SMF实体发送的与目标会话对应的目标标识信息,其中,所述目标标识信息用于在所述SMF实体内唯一标识所述目标会话;Receiving target identification information corresponding to a target session sent by a session management function SMF entity, wherein the target identification information is used to uniquely identify the target session within the SMF entity;
    基于所述目标标识信息,对所述目标会话进行计费处理。Based on the target identification information, the target session is charged.
  2. 根据权利要求1所述的方法,其中,基于所述目标标识信息,对所述目标会话进行计费处理包括:The method according to claim 1, wherein, based on the target identification information, performing charging processing on the target session includes:
    在与所述目标会话对应的计费方式为离线计费的情况下,根据所述目标标识信息,生成与所述目标会话对应的目标话单;In the case that the charging method corresponding to the target session is offline charging, a target bill corresponding to the target session is generated according to the target identification information;
    将所述目标话单传输给计费中心BD,以使所述BD根据所述目标话单对所述目标会话进行计费处理。Transmitting the target bill to the charging center BD, so that the BD performs charging processing on the target session according to the target bill.
  3. 根据权利要求2所述的方法,其中,The method according to claim 2, wherein
    在根据所述目标标识信息,生成与所述目标会话对应的所述目标话单之前,所述方法还包括:收集计费功能CHF实体中的计费数据功能CDF单元生成的一个或多个目标计费详细记录CDR话单,其中,所述一个或多个目标CDR话单中的各目标CDR话单均携带有所述目标标识信息;Before generating the target bill corresponding to the target session according to the target identification information, the method further includes: collecting one or more targets generated by a charging data function CDF unit in the charging function CHF entity Charging detailed record CDR bills, wherein each target CDR bill in the one or more target CDR bills carries the target identification information;
    根据所述目标标识信息,生成与所述目标会话对应的所述目标话单包括:根据所述目标标识信息,将所述一个或多个目标CDR话单进行话单合并,生成所述目标话单。According to the target identification information, generating the target bill corresponding to the target session includes: according to the target identification information, combining the one or more target CDR bills with bills to generate the target speech single.
  4. 根据权利要求3所述的方法,其中,根据所述目标标识信息,将所述一个或多个目标CDR话单进行话单合并,生成所述目标话单包括:The method according to claim 3, wherein, according to the target identification information, merging the one or more target CDR CDRs to generate the target CDR includes:
    从所述一个或多个CDR话单的各目标CDR话单中分别提取出计费参数信息,组合形成用于进行目标CDR话单合并的目标合并关键字, 其中,所述目标合并关键字包含所述目标标识信息;Billing parameter information is extracted from each target CDR bill of the one or more CDR bills, and combined to form a target merge keyword for merging the target CDR bills, wherein the target merge keyword includes The target identification information;
    将与所述目标合并关键字对应的一个或多个目标CDR话单进行话单合并,生成所述目标话单。One or more target CDR bills corresponding to the target merge keyword are merged to generate the target bill.
  5. 根据权利要求3所述的方法,其中,根据所述目标标识信息,将所述一个或多个目标CDR话单进行话单合并,生成所述目标话单包括:The method according to claim 3, wherein, according to the target identification information, merging the one or more target CDR CDRs to generate the target CDR includes:
    确定所述一个或多个目标CDR话单中的各目标CDR话单携带的所述目标标识信息和用于标识目标会话的目标业务或目标应用的目标服务标识ID;Determining the target identification information carried in each target CDR bill in the one or more target CDR bills and the target service identification ID for identifying the target business or target application of the target session;
    将携带有所述目标标识信息和所述目标服务ID的一个或多个目标CDR话单进行关联合并,生成所述目标话单。Associate and merge one or more target CDR bills carrying the target identification information and the target service ID to generate the target bill.
  6. 根据权利要求1所述的方法,其中,基于所述目标标识信息,对所述目标会话进行计费处理包括:The method according to claim 1, wherein, based on the target identification information, performing charging processing on the target session includes:
    在与所述目标会话对应的计费方式为在线计费的情况下,使用所述目标标识信息,从批价功能RF实体获取用于标识对所述目标会话进行批价的结果信息,其中,所述结果信息包括以下至少之一:与所述目标会话对应的业务资源的累积量信息,与所述目标会话对应的业务资源的费率信息;In the case that the charging method corresponding to the target session is online charging, the target identification information is used to obtain the result information for identifying the rating of the target session from the RF function of the rating function, wherein, The result information includes at least one of the following: cumulative information of business resources corresponding to the target session, and tariff information of business resources corresponding to the target session;
    使用所述目标标识信息,从账户余额管理功能ABMF实体获取与所述目标会话对应的目标账户的目标账户信息,其中,所述目标账户信息至少包含以下至少之一:与所述目标会话对应的业务资源的累积量的可用值,账户余额信息;Use the target identification information to obtain target account information of a target account corresponding to the target session from an account balance management function ABMF entity, wherein the target account information includes at least one of the following: the corresponding to the target session The available value of the accumulated amount of business resources, account balance information;
    根据所述结果信息和所述目标账户信息,对所述目标会话进行计费处理。According to the result information and the target account information, the target session is charged.
  7. 根据权利要求6所述的方法,其中,根据所述结果信息和所述 目标账户信息,对所述目标会话进行计费处理包括:The method according to claim 6, wherein charging the target session based on the result information and the target account information includes:
    根据所述结果信息和所述目标账户信息,确定所述目标会话使用所述业务资源的额度信息;Determining, according to the result information and the target account information, quota information for using the business resources by the target session;
    将所述额度信息发送给所述SMF实体,其中,所述额度信息用于指示所述SMF实体对在所述目标会话过程中使用的所述业务资源进行监控,得到监控结果;Sending the quota information to the SMF entity, where the quota information is used to instruct the SMF entity to monitor the service resources used during the target session to obtain a monitoring result;
    接收所述SMF实体根据所述监控结果发送的目标请求,所述目标请求用于请求对所述目标账户进行扣费;Receiving a target request sent by the SMF entity according to the monitoring result, where the target request is used to request a fee deduction for the target account;
    将所述目标请求发送给所述ABMF实体,其中,所述目标请求用于指示所述ABMF实体对所述目标账户进行扣费。Sending the target request to the ABMF entity, wherein the target request is used to instruct the ABMF entity to deduct the target account.
  8. 根据权利要求1至7中任一项所述的方法,其中,所述目标标识信息包括与所述目标会话对应的计费标识ID和用于区分生成所述计费ID的网络切片的切片区分参数,或者,所述目标标识信息包括与所述目标会话对应的计费标识ID。The method according to any one of claims 1 to 7, wherein the target identification information includes a charging identification ID corresponding to the target session and a slice distinction for distinguishing network slices generating the charging ID Parameters, or the target identification information includes a charging identification ID corresponding to the target session.
  9. 根据权利要求8所述的方法,其中,所述切片区分参数包括以下之一:单网络切片选择辅助信息S-NSSAI,网络切片实例NSI标识,网络切片的切片名称。The method according to claim 8, wherein the slice discrimination parameter includes one of the following: single network slice selection auxiliary information S-NSSAI, network slice instance NSI identification, and network slice name.
  10. 一种计费处理装置,包括:A charging processing device, including:
    接收模块,设置为接收到会话管理功能SMF实体发送的与目标会话对应的目标标识信息,其中,所述目标标识信息用于在所述SMF实体内唯一标识所述目标会话;The receiving module is configured to receive target identification information corresponding to the target session sent by the session management function SMF entity, wherein the target identification information is used to uniquely identify the target session within the SMF entity;
    计费模块,设置为基于所述目标标识信息,对所述目标会话进行计费处理。The charging module is configured to perform charging processing on the target session based on the target identification information.
  11. 一种存储介质,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求1至9任一项中所 述的方法。A storage medium in which a computer program is stored, wherein the computer program is set to execute the method described in any one of claims 1 to 9 when it is run.
  12. 一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行所述权利要求1至9任一项中所述的方法。An electronic device includes a memory and a processor, a computer program is stored in the memory, the processor is configured to run the computer program to perform the method of any one of claims 1 to 9.
PCT/CN2019/115136 2018-12-14 2019-11-01 Charging processing method and device, storage medium, and electronic device WO2020119325A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811536396.6 2018-12-14
CN201811536396.6A CN111327432B (en) 2018-12-14 2018-12-14 Charging processing method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
WO2020119325A1 true WO2020119325A1 (en) 2020-06-18

Family

ID=71076222

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/115136 WO2020119325A1 (en) 2018-12-14 2019-11-01 Charging processing method and device, storage medium, and electronic device

Country Status (2)

Country Link
CN (1) CN111327432B (en)
WO (1) WO2020119325A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113973273A (en) * 2020-07-22 2022-01-25 中移物联网有限公司 Charging method and device for network slicing service
CN114071386B (en) * 2020-07-29 2024-01-30 中国电信股份有限公司 Method, device and system for charging of cooperative network side and charging side
CN112235736B (en) * 2020-10-13 2022-04-15 中国联合网络通信集团有限公司 User identification method in roaming scene
CN116193386A (en) * 2021-11-26 2023-05-30 中兴通讯股份有限公司 Charging message processing method, device and system, electronic equipment and storage medium
CN115669001A (en) * 2022-09-19 2023-01-31 北京小米移动软件有限公司 Charging method, device, system, storage medium and chip

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108270580A (en) * 2016-12-30 2018-07-10 华为技术有限公司 Based reminding method, equipment and the system of online charging
WO2018137702A1 (en) * 2017-01-27 2018-08-02 Huawei Technologies Co., Ltd. Method and apparatus for charging operations in a communication network supporting service sessions for direct end users

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108270580A (en) * 2016-12-30 2018-07-10 华为技术有限公司 Based reminding method, equipment and the system of online charging
WO2018137702A1 (en) * 2017-01-27 2018-08-02 Huawei Technologies Co., Ltd. Method and apparatus for charging operations in a communication network supporting service sessions for direct end users

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
3GPP: "3rd Generation Partnership Project; Technical Specification Group Services and System Aspects; Telecommunication management; Charging management; 5G Data connectivity domain charging; stage 2 (Release 15)", 3GPP TS 32.255 V2.0.0 (2018-09), 6 September 2018 (2018-09-06), XP051533776 *

Also Published As

Publication number Publication date
CN111327432A (en) 2020-06-23
CN111327432B (en) 2022-10-28

Similar Documents

Publication Publication Date Title
WO2020119325A1 (en) Charging processing method and device, storage medium, and electronic device
US11689902B2 (en) Method for processing rate group, method for charging for data service, and related device and system
US9820127B2 (en) Online charging architecture in LTE/EPC communication networks
KR101421041B1 (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
US9350877B2 (en) Method and apparatus for providing internet service carrying out fee payment in wireless communication network
CN101521868A (en) Roaming on-line charging method, device and control system
US20150003299A1 (en) Method and apparatus for performing charging control to a sponsored data application
EP3282729B1 (en) Policy and charging execution function device and method, online charging device and method
US11470202B2 (en) Charging method, apparatus, and system
CN104854841B (en) Application server, terminal device, network capabilities calling system and method
US11503442B2 (en) Methods of enabling flexible charging in M2M IoT service layer
WO2016011831A1 (en) Charging method and device, access device, and service quality control method and device
WO2016070595A1 (en) Method, tne, fcs, bd entity and system for performing charging
RU2454030C1 (en) Architecture of online charging in lte/epc communication networks
EP2590359B1 (en) Method, system, charging equipment, and account balance management center for free resources processing

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19897223

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 22/10/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19897223

Country of ref document: EP

Kind code of ref document: A1