CN115714962A - Session charging method, session charging device, electronic equipment and storage medium - Google Patents

Session charging method, session charging device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115714962A
CN115714962A CN202211387556.1A CN202211387556A CN115714962A CN 115714962 A CN115714962 A CN 115714962A CN 202211387556 A CN202211387556 A CN 202211387556A CN 115714962 A CN115714962 A CN 115714962A
Authority
CN
China
Prior art keywords
charging
session
rule
processed
configuration script
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211387556.1A
Other languages
Chinese (zh)
Inventor
郭婷婷
欧亮
陆小铭
田传泉
王平茹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202211387556.1A priority Critical patent/CN115714962A/en
Publication of CN115714962A publication Critical patent/CN115714962A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The disclosure provides a session charging method, a session charging device, an electronic device and a computer readable storage medium, and belongs to the technical field of communication. The method comprises the following steps: acquiring a session to be processed, and identifying a charging identifier in the session to be processed; determining a charging rule of the session to be processed according to the recognition result of the charging identifier; generating a charging configuration script based on the charging rule; and running the charging configuration script to charge the session to be processed. The method and the device can accurately and efficiently charge the session.

Description

Session charging method, session charging device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a session charging method, a session charging apparatus, an electronic device, and a computer-readable storage medium.
Background
The UPF (User Plane Function) is mainly applied to 5G (5 th Generation Mobile Communication Technology, fifth Generation Mobile Communication Technology) customized network services, and charging types related to different customized network services have differences. At present, in the prior art, manual configuration can be performed only by manually checking or tracking signaling to confirm the type of the charging rule, so that the time cost and the debugging cost are high, and the charging efficiency is low.
Disclosure of Invention
The present disclosure provides a session charging method, a session charging apparatus, an electronic device, and a computer-readable storage medium, which overcome the problems of high charging cost and low efficiency in the prior art at least to some extent.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to a first aspect of the present disclosure, a session charging method is provided, which is applied to a user plane function side, and includes: acquiring a session to be processed, and identifying a charging identifier in the session to be processed; determining a charging rule of the session to be processed according to the recognition result of the charging identifier; generating a charging configuration script based on the charging rule; and running the charging configuration script to charge the session to be processed.
In an exemplary embodiment of the present disclosure, the determining, according to the identification result of the charging identifier, a charging rule of the session to be processed includes: when the charging identifier is identified as a user plane identifier, determining the charging rule of the session to be processed as a static charging rule; and when the charging identifier is identified to be a control plane identifier, determining that the charging rule of the session to be processed is a dynamic charging rule.
In an exemplary embodiment of the disclosure, the generating a charging configuration script based on the charging rule includes: when the charging rule is the static charging rule, generating a static charging configuration script by a preset static configuration template; and when the charging rule is the dynamic charging rule, generating a dynamic charging configuration script by a preset dynamic configuration template.
In an exemplary embodiment of the disclosure, before the running the charging configuration script to charge the pending session, the method further includes: and performing first verification on the charging configuration script through a preset verification module, and returning a first verification result.
In an exemplary embodiment of the disclosure, before the running the charging configuration script to charge the pending session, the method further includes: extracting preset keywords in the session message of the session to be processed; and performing second check on the billing configuration script based on the preset keywords, and returning a second check result.
In an exemplary embodiment of the present disclosure, the method further comprises: and running the charging configuration script under the condition that the first check and the second check are both passed so as to charge the session to be processed.
In an exemplary embodiment of the present disclosure, the method further comprises: determining whether the production sources of the session management function terminal and the user plane function terminal are the same; generating a charging configuration script based on the charging rule, including: when the production sources of the session management function terminal and the user plane function terminal are the same, generating a charging configuration script of the session management function terminal and a charging configuration script of the user plane function terminal according to the charging rule and a standard configuration module; when the production sources of the session management function terminal and the user plane function terminal are different, generating a charging configuration script of the session management function terminal according to the charging rule and a predefined configuration module of the production source of the session management function terminal, and generating the charging configuration script of the user plane function terminal according to the charging rule and the predefined configuration module of the production source of the user plane function terminal.
According to a second aspect of the present disclosure, there is provided a session charging apparatus, applied to a user plane function side, including: the identification recognition module is used for acquiring a session to be processed and recognizing a charging identification in the session to be processed; a rule determining module, configured to determine a charging rule of the session to be processed according to the recognition result of the charging identifier; the script generating module is used for generating a charging configuration script based on the charging rule; and the script running module is used for running the charging configuration script so as to charge the session to be processed.
In an exemplary embodiment of the present disclosure, the rule determining module includes: a first rule determining unit, configured to determine, when the charging identifier is identified as the user plane identifier, that the charging rule of the session to be processed is a static charging rule; and the second rule determining unit is used for determining the charging rule of the session to be processed as the dynamic charging rule when the charging identifier is identified as the control surface identifier.
In an exemplary embodiment of the present disclosure, the script generation module includes: the first script generating unit is used for generating a static charging configuration script by a preset static configuration template when the charging rule is a static charging rule; and the second script generating unit is used for generating a dynamic charging configuration script by the preset dynamic configuration template when the charging rule is a dynamic charging rule.
In an exemplary embodiment of the present disclosure, the session charging apparatus further includes: and the first checking module is used for performing first checking on the charging configuration script through the preset checking module and returning a first checking result before the charging configuration script is operated to charge the session to be processed.
In an exemplary embodiment of the present disclosure, the session charging apparatus further includes: the second check module is used for extracting preset keywords in the session message of the session to be processed before the charging configuration script is operated to charge the session to be processed; and performing second check on the charging configuration script based on the preset keywords, and returning a second check result.
In an exemplary embodiment of the present disclosure, the session charging apparatus further includes: and the session charging module is used for running a charging configuration script to charge the session to be processed under the condition that the first check and the second check both pass.
In an exemplary embodiment of the present disclosure, the session charging apparatus further includes: the manufacturer judgment module is used for determining whether the production sources of the session management function end and the user plane function end are the same or not; a script generation module comprising: the first judging unit is used for generating a charging configuration script of the session management function end and a charging configuration script of the user plane function end according to the charging rule and the standard configuration module when the production sources of the session management function end and the user plane function end are the same; and the second judgment unit is used for generating a charging configuration script of the session management function terminal according to the charging rule and the predefined configuration module of the production source of the session management function terminal and generating the charging configuration script of the user plane function terminal according to the charging rule and the predefined configuration module of the production source of the user plane function terminal when the production sources of the session management function terminal and the user plane function terminal are different.
According to a third aspect of the present disclosure, there is provided an electronic device comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the method of any one of the above via execution of the executable instructions.
According to a fourth aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any one of the above.
Exemplary embodiments of the present disclosure have the following advantageous effects:
acquiring a session to be processed, and identifying a charging identifier in the session to be processed; determining a charging rule of the session to be processed according to the recognition result of the charging identifier; generating a charging configuration script based on the charging rule; and running the charging configuration script to charge the session to be processed. On one hand, the exemplary embodiment provides a new session charging method, which can automatically determine charging rules by identifying charging identifiers in sessions to be processed, can quickly generate corresponding charging configuration scripts for sessions with different charging rules, realize charging of sessions to be processed, does not need a manual analysis process, and saves labor cost and time cost; on the other hand, the charging configuration script can be generated in a self-adaptive manner based on the charging rule, the charging process is simple and convenient, the automation degree is high, and the charging accuracy is higher.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It should be apparent that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived by those of ordinary skill in the art without inventive effort.
Fig. 1 schematically shows a flow chart of a session charging method in the present exemplary embodiment;
fig. 2 is a flow chart schematically illustrating a session charging method in the related art;
fig. 3 is a flow chart schematically illustrating an architecture of a session charging method in the related art;
fig. 4 is a block diagram schematically showing the structure of a session charging apparatus in the present exemplary embodiment;
fig. 5 schematically shows an architecture flow diagram of a session charging method in the present exemplary embodiment;
fig. 6 is a block diagram schematically showing the structure of another session charging apparatus in the present exemplary embodiment;
fig. 7 schematically illustrates an electronic device for implementing the above method in the present exemplary embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
An exemplary embodiment of the present disclosure first provides a session charging method, which is further described below with reference to fig. 1, as shown in fig. 1, the session charging method may include the following steps S110 to S140:
step S110, obtaining the session to be processed, and identifying the charging identifier in the session to be processed.
The execution subject of the present exemplary embodiment may be the UPF side, which may first acquire the pending session. The to-be-processed session refers to a session that needs to be subjected to charging processing, and in an application scenario of a 5G core network, the to-be-processed session may be a user PFCF (Packet Forwarding Control Protocol) session. Then, the charging identifier in the session to be processed can be identified, and the charging identifier refers to a parameter identifier which is defined in the session in advance and used for determining a charging rule.
The exemplary embodiment may establish the charging identifier in the session request of the pending session, so that when the pending session is acquired, the charging identifier may be extracted from the pending session, and the charging identifier is identified, for example, the UPF may establish a create URR (create a charging report identifier) in the session request for the PFCP session of the user, so as to implement identification of the charging identifier by identifying the create URR.
And step S120, determining the charging rule of the session to be processed according to the recognition result of the charging identifier.
The identification result of the charging identifier is a result of which identifier the identified charging identifier is, in this exemplary embodiment, the charging identifier may include an UP (user plane) identifier or a CP (control plane) identifier, and the identification result may be an UP identifier or a CP identifier, and the identification result may also be represented by another identifier according to a specific setting of the charging identifier.
According to the identification result, the charging rule of the session to be processed may be determined, in this exemplary embodiment, different charging identifiers may correspond to different charging rules, for example, a UP identifier may be set to correspond to a static charging rule, and when the identification result is the UP identifier, it may be determined that the session to be processed is the static charging identifier. Similarly, the CP identifier may correspond to a dynamic charging rule, etc.
Specifically, in an exemplary embodiment, the step S120 may include:
when the charging identifier is identified as a user plane identifier, determining the charging rule of the session to be processed as a static charging rule;
and when the charging identifier is identified to be the control plane identifier, determining the charging rule of the session to be processed to be a dynamic charging rule.
The ue may set a static charging rule corresponding to the ue identifier, and when the ue identifies that the ue identifier is the ue identifier, may determine that the charging rule of the session to be processed is the static charging rule; and setting a dynamic charging rule corresponding to the control surface identifier, and when the charging identifier is identified to be the control surface identifier, determining that the session to be processed is the dynamic charging rule. The dynamic charging rule refers to a charging rule which can be dynamically updated according to time change.
Step S130, based on the charging rule, generating a charging configuration script.
The charging configuration script is a specific descriptive language, and different charging configuration scripts can be correspondingly generated according to executable texts written in a certain format and different charging rules, run the charging configuration script, and execute the charging process of the session to be processed. The exemplary embodiment can generate the charging configuration script in a self-adaptive manner according to the charging rule, and can also automatically generate a new charging configuration script in time according to the changed charging rule when the charging rule is changed.
In this exemplary embodiment, the charging configuration script may include a charging configuration script of an UPF end and a charging configuration script of an SMF (Session Management function) end, and when the UPF end runs the UPF charging configuration script after generating the UPF charging configuration script and the SMF charging configuration script, the SMF charging configuration script may also be sent to the SMF end, so that the SMF end runs the SMF charging configuration script, and the charging process of the Session to be processed is completed.
Further, in an exemplary embodiment, the step S130 may include:
and when the charging rule is a static charging rule, generating a static charging configuration script by using a preset static configuration template.
And when the charging rule is a dynamic charging rule, generating a dynamic charging configuration script by using a preset dynamic configuration template.
In this exemplary embodiment, the static charging rules and the dynamic charging rules may correspond to different charging configuration scripts. When the charging rule of the session to be processed is a static charging rule, a static charging configuration script can be generated in a self-adaptive manner according to an internal preset static configuration template, the preset static configuration template can include various static charging configuration scripts which are configured in advance, and the corresponding static charging configuration script can be determined through matching the current session to be processed. When the charging rule of the session to be processed is a dynamic charging rule, a dynamic charging configuration script can be generated in a self-adaptive manner according to a preset dynamic configuration template, the preset dynamic configuration template can include various dynamic charging configuration scripts which are configured in advance, and the corresponding dynamic charging configuration script can be determined by matching the current session to be processed.
Step S140, running the charging configuration script to charge the session to be processed.
The exemplary embodiment may issue the generated charging configuration script to the corresponding terminal, and run the charging configuration script to complete the charging process of the session to be processed, for example, the generated SMF charging configuration script may be sent to the SMF terminal, so that the SMF terminal runs the SMF charging configuration script, and the generated UPF charging configuration script is run at the UPF terminal.
Based on the above description, in the present exemplary embodiment, a to-be-processed session is obtained, and a charging identifier in the to-be-processed session is identified; determining a charging rule of the session to be processed according to the recognition result of the charging identifier; generating a charging configuration script based on the charging rule; and running the charging configuration script to charge the session to be processed. On one hand, the exemplary embodiment provides a new session charging mode, which can automatically determine charging rules by identifying charging identifiers in sessions to be processed, can quickly generate corresponding charging configuration scripts for the sessions with different charging rules, realize the charging of the sessions to be processed, does not need a manual analysis process, and saves labor cost and time cost; on the other hand, the charging configuration script can be generated in a self-adaptive manner based on the charging rule, the charging process is simple and convenient, the automation degree is high, and the charging accuracy is higher.
In an exemplary embodiment, before the step S140, the session charging method may further include:
and performing first verification on the charging configuration script through a preset verification module, and returning a first verification result.
In order to ensure the accuracy of session charging, in this exemplary embodiment, a preset check module may be further provided, where the preset check module may include a preset standard script, and the standard script in the check module is matched with the charging configuration script, so that a first check may be performed on the generated charging configuration script to determine whether the charging configuration script is correct, and a first check result is a result of whether the generated charging configuration script passes the check or not, or whether the charging configuration script is correct or not. And after obtaining the first verification result of the charging configuration script, the preset verification module can return the first verification result to the UPF terminal.
In an exemplary embodiment, before the step S140, the session charging method may further include:
extracting preset keywords in session messages of the session to be processed;
and performing second check on the charging configuration script based on the preset keywords, and returning a second check result.
In addition to the first verification process, the exemplary embodiment may further set a mechanism for performing a second verification on the charging configuration script, so as to ensure the accuracy of the charging configuration script again.
Specifically, a preset keyword in the session message of the session to be processed may be extracted first, for example, a keyword of a private IE (message Element) in the session message is extracted, where the keyword is an identifier used to indicate an equipment manufacturer at the SMF end, and the SMF equipment manufacturer may be determined by identifying the keyword of the private IE. Furthermore, the billing configuration script can be checked for the second time according to the script template of the SMF device manufacturer, so that on one hand, the problem of incompatibility of different software adaptation degrees caused by different manufacturers is avoided, and on the other hand, the accuracy of the script is further ensured.
In an exemplary embodiment, the session charging method may further include:
and running the charging configuration script to charge the session to be processed under the condition that the first check and the second check are passed.
That is, after the generated charging configuration script passes the first check and the second check, the charging configuration script can be operated to charge the session to be processed, so that the operation effectiveness of the charging configuration script is ensured, and the charging accuracy of the session to be processed is improved.
In an exemplary embodiment, the session charging method may further include:
determining whether the production sources of the session management function terminal and the user plane function terminal are the same;
based on the charging rule, generating a charging configuration script, including:
when the production sources of the session management function terminal and the user plane function terminal are the same, generating a charging configuration script of the session management function terminal and a charging configuration script of the user plane function terminal according to the charging rule and the standard configuration module;
when the production source of the session management function terminal is different from that of the user plane function terminal, a charging configuration script of the session management function terminal is generated according to the charging rule and the predefined configuration module of the production source of the session management function terminal, and the charging configuration script of the user plane function terminal is generated according to the charging rule and the predefined configuration module of the production source of the user plane function terminal.
Finally, the present exemplary embodiment may also identify the production source of the SMF terminal and the UPF terminal device, where the production source may only be the manufacturer of the SMF terminal or the UPF terminal device, and when it is determined that the manufacturers are the same, the UPF billing configuration script and the SMF billing configuration script may be generated by the standard configuration module; when the manufacturers are determined to be different manufacturers, the charging configuration script of the session management function end can be generated according to the charging rule and the predefined configuration module of the manufacturer of the session management function end, and the charging configuration script of the user plane function end can be generated according to the charging rule and the predefined configuration module of the manufacturer of the user plane function end.
Fig. 2 is a flowchart illustrating a session charging method in the related art, where the related art relies on a manual configuration method to perform session charging, and the related art may specifically include the following steps: step S210, UPF (User Plane Function) manually negotiates a charging rule, which is used for manually negotiating the charging rule used by the session to be processed; step S220, configuring a charging rule for the SMF (Session Management Function) and the UPF, wherein the charging rule is configured for the SMF and the UPF; step S230, the SMF modifies the dynamic charging mode, and is used for manually modifying the charging rule after the static or dynamic rule is updated in the charging mode; step S240, the SMF and the UPF configure the charging rule, so as to perform the configuration of the SMF and the UPR charging rule again.
As shown in fig. 3, the specific architecture flowchart may include an SMF 310, a pcf (Policy Control Function) 320, a chf (Charging Function) 330, and a UPF 340, and includes the following steps:
step S311, SMF 310 requests a session charging policy from PCF 320; the session charging policy may include a static charging rule or a dynamic charging rule;
step S312, SMF 310 requests CHF 330 to establish a charging session and requests a quota;
step 313, after CHF 330 receives the charging session establishment request and quota request sent by SMF 310, it establishes a charging session and issues a quota;
step S314, SMF 310 issues charging rules to UPF 340 for the PFCP session;
step S315, the UPF 340 reports the charging amount to the SMF 310 aiming at the PFCP session;
step S316, SMF 310 reports the charging amount to CHF 330;
step S317, the CHF 330 issues a new charging quota to the SMF 310;
step S318, SMF 310 issues charging rules to UPF 340 for the PFCP session;
in step S319, the UPF 340 reports the charging amount to the SMF 310 for the PFCP session.
The charging method of the related art cannot adaptively complete session charging according to the charging rule, and when the charging rule of the user changes, the UPF is required to actively analyze the signaling to obtain the charging rule and regenerate the charging configuration, so that the charging efficiency is low.
Fig. 4 shows a schematic block diagram of a session charging apparatus in this exemplary embodiment, which may specifically include: a charging rule automatic identification module 410, configured to identify a charging identifier and automatically determine a charging rule; a charging configuration conversion module 420, configured to generate a charging configuration script according to the charging rule; the charging configuration automatic issuing module 430 is used for automatically issuing a charging configuration script so as to execute session charging; and the different manufacturer adapting module 440 is configured to determine the SMF end device manufacturers and the UPF end device manufacturers, and when it is determined that the SMF device manufacturers and the UPF device manufacturers are different, generate a charging configuration script of the SMF end manufacturers and a charging configuration script of the UPF end manufacturers, respectively.
Fig. 5 shows an interaction flowchart of each module and a core network in a session charging method in this exemplary embodiment, where the core network includes an SMF CHF PCF, and the like, which may specifically include:
step S511, the core network 510 may automatically identify the charging identifier in the PFCP session through the charging rule automatic identification module 410, and determine the charging rule according to the identification result;
a charging configuration conversion module 420, configured to generate a charging configuration script according to the charging rule;
step S512, the core network 510 can automatically issue the charging configuration script to the SMF and UPF terminals through the charging configuration automatic issuing module 430;
step S513, the core network 510 may determine the manufacturers of the SMF and the UPF through the inter-manufacturer adapter module 440, and when it is determined that the manufacturers of the SMF and the UPF are different, respectively generate the charging configuration script of the manufacturer of the SMF end and the charging configuration script of the manufacturer of the UPF end.
The exemplary embodiment of the present disclosure also provides a session charging apparatus. Referring to fig. 6, the apparatus 600, applied to the user plane function side, may include an identifier identifying module 610, configured to acquire a session to be processed, and identify a charging identifier in the session to be processed; a rule determining module 620, configured to determine, according to the recognition result of the charging identifier, a charging rule of the session to be processed; a script generating module 630, configured to generate a charging configuration script based on the charging rule; and the script running module 640 is configured to run the charging configuration script to charge the session to be processed.
In an exemplary embodiment, the rule determination module includes: a first rule determining unit, configured to determine, when the charging identifier is identified as the user plane identifier, that the charging rule of the session to be processed is a static charging rule; and the second rule determining unit is used for determining the charging rule of the session to be processed as the dynamic charging rule when the charging identifier is identified as the control plane identifier.
In an exemplary embodiment, the script generation module includes: the first script generation unit is used for generating a static charging configuration script by a preset static configuration template when the charging rule is a static charging rule; and the second script generating unit is used for generating a dynamic charging configuration script by the preset dynamic configuration template when the charging rule is a dynamic charging rule.
In an exemplary embodiment, the session charging apparatus further includes: and the first checking module is used for performing first checking on the charging configuration script through the preset checking module and returning a first checking result before the charging configuration script is operated to charge the session to be processed.
In an exemplary embodiment, the session charging apparatus further includes: the second check module is used for extracting preset keywords in the session message of the session to be processed before the charging configuration script is operated to charge the session to be processed; and performing second check on the charging configuration script based on the preset keywords, and returning a second check result.
In an exemplary embodiment, the session charging apparatus further includes: and the session charging module is used for running a charging configuration script to charge the session to be processed under the condition that the first check and the second check both pass.
In an exemplary embodiment, the session charging apparatus further includes: the manufacturer judgment module is used for determining whether the production sources of the session management function end and the user plane function end are the same or not; a script generation module comprising: the first judging unit is used for generating a charging configuration script of the session management function end and a charging configuration script of the user plane function end according to the charging rule and the standard configuration module when the production sources of the session management function end and the user plane function end are the same; and the second judgment unit is used for generating a charging configuration script of the session management function terminal according to the charging rule and the predefined configuration module of the production source of the session management function terminal and generating the charging configuration script of the user plane function terminal according to the charging rule and the predefined configuration module of the production source of the user plane function terminal when the production sources of the session management function terminal and the user plane function terminal are different.
The specific details of each module/unit in the above apparatus have been described in detail in the embodiment of the method section, and details that are not disclosed may refer to the contents of the embodiment of the method section, and therefore are not described herein again.
Exemplary embodiments of the present disclosure also provide an electronic device capable of implementing the above method.
As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method or program product. Accordingly, various aspects of the disclosure may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 700 according to such an exemplary embodiment of the present disclosure is described below with reference to fig. 7. The electronic device 700 shown in fig. 7 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 7, electronic device 700 is in the form of a general purpose computing device. The components of the electronic device 700 may include, but are not limited to: the at least one processing unit 710, the at least one memory unit 720, a bus 730 connecting different system components (including the memory unit 720 and the processing unit 710), and a display unit 740.
Where the memory unit stores program code, the program code may be executed by the processing unit 710 to cause the processing unit 710 to perform the steps according to various exemplary embodiments of the present disclosure as described in the "exemplary methods" section above in this specification. For example, processing unit 710 may perform the steps shown in fig. 1 or fig. 5, and so on.
The storage unit 720 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM) 721 and/or a cache memory unit 722, and may further include a read only memory unit (ROM) 723.
The memory unit 720 may also include programs/utilities 724 having a set (at least one) of program modules 725, such program modules 725 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may comprise an implementation of a network environment.
Bus 730 may be any representation of one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 700 may also communicate with one or more external devices 800 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 700, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 700 to communicate with one or more other computing devices. Such communication may occur through input/output (I/O) interfaces 750. Also, the electronic device 700 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 760. As shown, the network adapter 760 communicates with the other modules of the electronic device 700 over the bus 730. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the exemplary embodiments of the present disclosure.
Exemplary embodiments of the present disclosure also provide a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, various aspects of the disclosure may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the disclosure as described in the above-mentioned "exemplary methods" section of this specification, when the program product is run on the terminal device.
Exemplary embodiments of the present disclosure also provide a program product for implementing the above method, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Furthermore, the above-described drawings are merely schematic illustrations of processes involved in methods according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed, for example, synchronously or asynchronously in multiple modules.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit, according to an exemplary embodiment of the disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice in the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the terms of the appended claims.

Claims (10)

1. A session charging method is applied to a user plane function terminal, and is characterized in that the method comprises the following steps:
acquiring a session to be processed, and identifying a charging identifier in the session to be processed;
determining a charging rule of the session to be processed according to the recognition result of the charging identifier;
generating a charging configuration script based on the charging rule;
and running the charging configuration script to charge the session to be processed.
2. The method according to claim 1, wherein the determining the charging rule of the pending session according to the identification result of the charging identifier comprises:
when the charging identifier is identified to be a user plane identifier, determining the charging rule of the session to be processed to be a static charging rule;
and when the charging identifier is identified to be the control surface identifier, determining the charging rule of the session to be processed to be a dynamic charging rule.
3. The method of claim 2, wherein generating a charging configuration script based on the charging rules comprises:
when the charging rule is the static charging rule, generating a static charging configuration script by a preset static configuration template;
and when the charging rule is the dynamic charging rule, generating a dynamic charging configuration script by a preset dynamic configuration template.
4. The method of claim 1, wherein prior to running the charging configuration script to charge the pending session, the method further comprises:
and performing first verification on the charging configuration script through a preset verification module, and returning a first verification result.
5. The method of claim 4, wherein prior to running the charging configuration script to charge the pending session, the method further comprises:
extracting preset keywords in the session message of the session to be processed;
and performing second check on the charging configuration script based on the preset keywords, and returning a second check result.
6. The method of claim 5, further comprising:
and running the charging configuration script under the condition that the first check and the second check are both passed so as to charge the session to be processed.
7. The method of claim 1, further comprising:
determining whether the production sources of the session management function end and the user plane function end are the same;
generating a charging configuration script based on the charging rule, including:
when the production sources of the session management function terminal and the user plane function terminal are the same, generating a charging configuration script of the session management function terminal and a charging configuration script of the user plane function terminal according to the charging rule and a standard configuration module;
when the production sources of the session management function terminal and the user plane function terminal are different, generating a charging configuration script of the session management function terminal according to the charging rule and a predefined configuration module of the production source of the session management function terminal, and generating the charging configuration script of the user plane function terminal according to the charging rule and the predefined configuration module of the production source of the user plane function terminal.
8. A session charging apparatus, applied to a user plane function side, comprising:
the identification recognition module is used for acquiring a session to be processed and recognizing a charging identification in the session to be processed;
a rule determining module, configured to determine a charging rule of the session to be processed according to a recognition result of the charging identifier;
the script generating module is used for generating a charging configuration script based on the charging rule;
and the script running module is used for running the charging configuration script so as to charge the session to be processed.
9. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of any of claims 1-7 via execution of the executable instructions.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method of any one of claims 1 to 7.
CN202211387556.1A 2022-11-07 2022-11-07 Session charging method, session charging device, electronic equipment and storage medium Pending CN115714962A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211387556.1A CN115714962A (en) 2022-11-07 2022-11-07 Session charging method, session charging device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211387556.1A CN115714962A (en) 2022-11-07 2022-11-07 Session charging method, session charging device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115714962A true CN115714962A (en) 2023-02-24

Family

ID=85232581

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211387556.1A Pending CN115714962A (en) 2022-11-07 2022-11-07 Session charging method, session charging device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115714962A (en)

Similar Documents

Publication Publication Date Title
CN108961033B (en) Multi-service system interaction method and device, storage medium and electronic terminal
CN114375069B (en) Communication method and network equipment
CN111324441A (en) Operating environment switching method and device, computer equipment and storage medium
CN112416739B (en) Test method and device and electronic equipment
CN113220342A (en) Centralized configuration method and device, electronic equipment and storage medium
CN109600722B (en) Short message receiving verification method and device, electronic equipment and storage medium
CN115454674A (en) Method and device for acquiring external data source data, electronic equipment and storage medium
CN111522617A (en) Method and device for maintaining system and electronic equipment
CN115714962A (en) Session charging method, session charging device, electronic equipment and storage medium
CN111949862B (en) Method and device for managing business task flow and electronic equipment
CN113986995A (en) Request distribution method and device, storage medium and electronic equipment
CN114461595A (en) Method, device, medium and electronic equipment for sending message
CN109471849B (en) Model processing method and device, storage medium and electronic equipment
CN111338642A (en) Method, device, terminal and storage medium for determining application downloading path
CN110716915A (en) Method and device for operating database, electronic equipment and storage medium
CN111695986B (en) Method and device for controlling accumulated gold image
CN110716963B (en) Method for providing adaptively configured user data and related equipment
CN111680867B (en) Resource allocation method and device and electronic equipment
CN115454697B (en) Information processing method and device for service exception, electronic equipment and storage medium
CN113821248B (en) Service method of vehicle-end software, vehicle-end software and related equipment thereof
CN113900895B (en) Information processing method, information processing apparatus, storage medium, and electronic device
CN118295724A (en) Data processing method and device, electronic equipment and storage medium
CN114461656A (en) Event processing method and device
CN114090134A (en) Data interaction method and device, storage medium and electronic equipment
CN118093340A (en) Dynamic point burying method, device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination