Data processing method, blockchain functional device and storage medium
By using blockchain functional equipment in 5G co-construction and sharing networks to verify and update billing information, the problem of untrustworthy resource use in operators' co-construction and sharing networks is solved, and reliable fee settlement and user quality assurance is achieved.
Patent Information
- Application Number
- CN202210877652.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-25
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2042-07-25
AI Technical Summary
In the 5G network jointly built and shared by operators, users use other operators' resources but fail to record them in time, or the billing information may be tampered with, resulting in untrustworthy resource usage, which in turn causes controversy.
Use blockchain functional equipment (BCF equipment) to obtain and verify the resource usage information of the terminal in the co-construction and sharing network to ensure the consistency and reliability of billing information, communicate with other operator core networks through BCF equipment, and update the local database billing information in so that the operator can settle the fee according to the time period.
A reliable and trustworthy resource sharing network environment has been established, which reduces network construction costs and ensures the quality of users' Internet access.
Smart Images

Figure CN115226052B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to a data processing method, a blockchain functional device, and a storage medium. Background Art
[0002] The fifth generation (5G) network operates at a high frequency band, requires a large number of base stations, and has high construction costs and high power consumption. In order to increase 5G network coverage at low cost and high efficiency, co-construction and sharing among operators has become inevitable.
[0003] At present, the technologies for operators to deploy 5G co-built and shared networks include core network roaming and access network sharing. Among them, core network roaming means that the 5G network is built and operated by one operator, and users of other operators use a similar "international roaming" method to access the 5G network to achieve network sharing; access network sharing means that both operators share wireless base station equipment and part of the transmission, and the core network still needs to be independently built by both operators.
[0004] However, in the case of the 5G network jointly built and shared by the above-mentioned operators, there may be cases where users use the resources of other operators but fail to record them in a timely manner, or where one of the operators tampers with the user's billing information before billing settlement. This makes the resource usage of each operator's terminal unreliable, which in turn leads to disputes among the participants in the subsequent joint construction and sharing due to distrust or unilateral erroneous operations. Summary of the invention
[0005] The present application provides a data processing method, a blockchain functional device and a storage medium, which are used to record the use of resources of other operators by terminals in the network of participants in a jointly built and shared network, complete the consensus of billing information, and establish a reliable and trustworthy resource sharing network environment.
[0006] In order to achieve the above objectives, this application adopts the following technical solutions:
[0007] In a first aspect, a data processing method is provided, which is applied to a first blockchain function (BCF) device or a second BCF device in a co-built and shared network, wherein the co-built and shared network includes an access operator network of a terminal and a home operator network of the terminal, wherein the first BCF device is a BCF device in the access operator network, and the second BCF device is a BCF device in the home operator network, and the co-built and shared network also includes a network device in the access operator network and a second charging function (CHF) device in the home operator network. The data processing method includes: obtaining a first resource usage message and a second resource usage information, wherein the first resource usage message is used to indicate the resource usage information of the terminal recorded by the network device, and the second resource usage message is used to indicate the resource usage information of the terminal recorded by the second CHF device. Furthermore, when the resource usage information indicated by the first resource usage message is consistent with the resource usage information indicated by the second resource usage message, the charging information of the terminal in the first BCF device and the charging information of the terminal in the second BCF device are updated respectively.
[0008] In the data processing method provided by the present application, the BCF device communicates with the BCF device of the core network of other operators in a co-built and shared network, mutually verifies the network resource usage of the user terminal, and updates the billing information in the local database after reaching a consensus. This allows the operator to settle fees based on the billing information stored in the database in a certain time period, and establishes a reliable and trustworthy resource sharing network environment for the operator, thereby achieving the goal of reducing network construction costs while ensuring the quality of user Internet access.
[0009] In a possible design, when the above network device is a first CHF device, the first resource usage message includes the terminal's call detail record (Charging Data Record, CDR) data recorded by the first CHF device, and the second resource usage message includes the terminal's CDR data recorded by the second CHF device. In this design, when the terminal is roaming in the core network, the BCF device determines whether the terminal network resource usage information recorded in the access operator network and the home operator network is consistent through the CDR data of the first CHF device and the second CHF device, and then stores the terminal's billing information in the BCF device when the BCF device reaches a consensus, thereby providing a reliable and trustworthy resource sharing network environment for the operator in the core network roaming scenario.
[0010] In a possible design, when the network device is an access network device, the first resource usage message includes a protocol data unit (PDU) session ID, and the second resource usage message includes a PDU session ID and a PDU session start time, and the PDU session ID is used to identify the PDU session; the data processing method further includes: determining the first moment when the access network device sends the first resource usage message. Further, when the PDU session ID in the first resource usage message is the same as the PDU session ID in the second resource usage message, and the difference between the first moment and the PDU session start time is less than the first threshold, it is determined that the resource usage information indicated by the first resource usage message is consistent with the resource usage information indicated by the second resource usage message. In this design, in the scenario where the terminal is roaming in the access network, since the access network device does not record the resource usage in real time, in this design, a consensus is reached in the PDU session establishment stage to determine the original resource usage information record of the terminal recorded in the access operator network and the home operator network, and then when the BCF device reaches a consensus, the terminal's billing information is stored in the BCF device, thereby providing a reliable and trustworthy resource sharing network environment for the operator in the access network roaming scenario.
[0011] In a possible design, the first resource usage message also includes service quality flow identifier (QoS Flow Identifier, QFI) information, and the data processing method also includes: obtaining a third resource usage message sent by the access network device, obtaining a fourth resource usage message sent by the second BCF device, wherein the third resource usage message includes a PDU session ID, and the third resource usage message is used to indicate that the PDU session corresponding to the PDU session ID has been released, and the fourth resource usage message includes the PDU session ID, the PDU session end time and the QFI information. Further, determine the second moment when the access network device sends the third resource usage message; and when the PDU session ID in the third resource usage message is the same as the PDU session ID in the fourth resource usage message, the QFI information in the first resource usage message is the same as the QFI information in the fourth resource usage message, and the difference between the second moment and the PDU session end time is less than the second threshold, respectively update the billing information of the terminal in the first BCF device and the billing information of the terminal in the second BCF device. In this design, for the scenario where the terminal is roaming in the access network, after reaching a consensus in the PDU session establishment phase, further consensus is reached on the network resources used by the terminal in the PDU session release phase, and the original resource usage information records of the terminal recorded in the access operator network and the belonging operator network are determined. Then, when a consensus is reached on the BCF device, the billing information of the terminal is stored in the BCF device, thereby providing operators with a more reliable and trustworthy resource sharing network environment in the access network roaming scenario.
[0012] In a second aspect, a BCF device is provided, which is a first BCF device deployed in an access operator network of a terminal, or a second BCF device in an operator network of a terminal, wherein the access operator network of the terminal and the operator network of the terminal constitute a co-built and shared network, and the co-built and shared network also includes a network device in the access operator network and a second CHF device in the operator network. The BCF device includes an acquisition unit and a processing unit. The acquisition unit is used to acquire a first resource usage message, and the first resource usage message is used to indicate resource usage information of the terminal recorded by the network device. The acquisition unit is also used to acquire a second resource usage message, and the second resource usage message is used to indicate resource usage information of the terminal recorded by the second CHF device. The processing unit is used to update the billing information of the terminal in the first BCF device and the billing information of the terminal in the second BCF device, respectively, when the resource usage information indicated by the first resource usage message is consistent with the resource usage information indicated by the second resource usage message.
[0013] In one possible design, when the above-mentioned network device is a first CHF device, the first resource usage message obtained by the acquisition unit includes the CDR data of the terminal recorded by the first CHF device, and the second resource usage message obtained by the acquisition unit includes the CDR data of the terminal recorded by the second CHF device.
[0014] In one possible design, when the above-mentioned network device is an access network device, the first resource usage message obtained by the acquisition unit includes a PDU session ID, and the second resource usage message obtained by the acquisition unit includes the PDU session ID and the PDU session start time, and the PDU session ID is used to identify the PDU session. The BCF device also includes a determination unit, which is used to determine the first moment when the access network device sends the first resource usage message. The determination unit is also used to determine that the resource usage information indicated by the first resource usage message is consistent with the resource usage information indicated by the second resource usage message when the PDU session ID in the first resource usage message is the same as the PDU session ID in the second resource usage message and the difference between the first moment and the PDU session start time is less than a first threshold.
[0015] In one possible design, the first resource usage message acquired by the acquisition unit also includes service quality flow identifier QFI information. The acquisition unit is also used to acquire a third resource usage message sent by the access network device, the third resource usage message includes a PDU session ID, and the third resource usage message is used to indicate that the PDU session corresponding to the PDU session ID has been released. The acquisition unit is also used to acquire a fourth resource usage message sent by the second CHF device, the fourth resource usage message includes a PDU session ID, a PDU session end time and QFI information. The determination unit is also used to determine the second moment when the access network device sends the third resource usage message. The processing unit is also used to update the billing information of the terminal in the first BCF device and the billing information of the terminal in the second BCF device respectively when the PDU session ID in the third resource usage message is the same as the PDU session ID in the fourth resource usage message, the QFI information in the first resource usage message is the same as the QFI information in the fourth resource usage message, and the difference between the second moment and the PDU session end time is less than a second threshold.
[0016] In a third aspect, a BCF device is provided, which includes a memory and a processor; the memory and the processor are coupled, the memory is used to store computer program code, the computer program code includes computer instructions, and when the processor executes the computer instructions, the BCF device executes the data processing method provided by the first aspect or any possible design thereof.
[0017] In a fourth aspect, a computer-readable storage medium is provided, in which instructions are stored. When the instructions are executed on a BCF device, the BCF device executes the data processing method provided in the first aspect or any possible implementation thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A communication system structure diagram provided for an embodiment of the present invention Figure 1 ;
[0019] Figure 2 A schematic diagram of a BCF device structure provided in an embodiment of the present invention Figure 1 ;
[0020] Figure 3 A communication system structure diagram provided for an embodiment of the present invention Figure 2 ;
[0021] Figure 4 A schematic diagram of a terminal core network roaming scenario provided by an embodiment of the present invention;
[0022] Figure 5 A schematic diagram of a terminal access network roaming scenario provided by an embodiment of the present invention;
[0023] Figure 6 A data processing method provided by an embodiment of the present invention Figure 1 ;
[0024] Figure 7 A data processing method provided by an embodiment of the present invention Figure 2 ;
[0025] Figure 8 A data processing method provided by an embodiment of the present invention Figure 3 ;
[0026] Fig. 9 A data processing method provided by an embodiment of the present invention Figure 4 ;
[0027] Fig.10 A data processing method provided by an embodiment of the present invention Figure 5 ;
[0028] Fig.11 A data processing method provided by an embodiment of the present invention Figure 6 ;
[0029] Fig.12 A data processing method provided by an embodiment of the present invention Figure 7 ;
[0030] Fig.13 A data processing method provided by an embodiment of the present invention Figure 8 ;
[0031] Fig.14 A data processing method provided by an embodiment of the present invention Figure 9 ;
[0032] Fig.15 A schematic diagram of a BCF device structure provided in an embodiment of the present invention Figure 2 ;
[0033] Fig.16 A schematic diagram of a BCF device structure provided in an embodiment of the present invention Figure 3 ;
[0034] Fig.17 A schematic diagram of a BCF device structure provided in an embodiment of the present invention Figure 4 . DETAILED DESCRIPTION
[0035] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0036] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0037] In the description of this application, unless otherwise specified, " / " means "or", for example, A / B can mean A or B. "And / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, "at least one" and "plurality" refer to two or more. The words "first", "second", etc. do not limit the quantity and execution order, and the words "first", "second", etc. do not limit them to be different.
[0038] In the existing technology, the technologies for operators to deploy 5G co-built and shared networks include core network roaming and access network sharing. However, in the case of co-built and shared 5G networks by operators, there may be cases where users use the resources of other operators but fail to record them in time, or one of the operators tampers with the user's billing information before billing settlement, which makes the resource usage of each operator's terminal unreliable, and further leads to disputes among the participants of co-built and shared networks due to distrust or unilateral erroneous operations.
[0039] In order to solve the above problems, the present application provides a data processing method, a BCF device and a storage medium. The data processing method is applied to the first BCF device or the second BCF device in a co-built and shared network. The co-built and shared network includes the access operator network of the terminal and the home operator network of the terminal. The first BCF device is a BCF device in the access operator network, and the second BCF device is a BCF device in the home operator network. The co-built and shared network also includes a network device in the access operator network and a second CHF device in the home operator network. The data processing method includes: obtaining a first resource usage message. Among them, the second resource usage message is obtained, the first resource usage message is used to indicate the resource usage information of the terminal recorded by the network device, and the second resource usage message is used to indicate the resource usage information of the terminal recorded by the second CHF device. Furthermore, when the resource usage information indicated by the first resource usage message is consistent with the resource usage information indicated by the second resource usage message, the billing information of the terminal in the first BCF device and the billing information of the terminal in the second BCF device are updated respectively.
[0040] In the data processing method provided in the present application, the BCF device communicates with the BCF devices of other operators' core networks in a co-built and shared network, mutually verifies the network resource usage of the user terminal, and updates the billing information in the local database after reaching a consensus. This allows the operator to settle fees based on the billing information stored in the database in a certain time period, and establishes a reliable and trustworthy resource sharing network environment for the operator, thereby achieving the goal of reducing network construction costs while ensuring the quality of user Internet access.
[0041] Figure 1 A communication system is shown. The data processing method provided in the embodiment of the present application can be applied to Figure 1 The communication system 10 shown is used to reach a consensus between the home operator network of the terminal and the visited operator network on the network resources used by the terminal. Figure 1 As shown, the communication system 10 includes a first BCF device 11, a second BCF device 12, a network device 13 and a second CHF device 14.
[0042] The first BCF device 11 and the network device 13 are devices in the access operator network of the terminal, and the second BCF device 12 and the second CHF device 14 are devices in the home operator network of the terminal.
[0043] It should be noted that BCF equipment such as Figure 2 As shown, it includes a message receiving and sending module, a verification module, and a data storage module. Among them, the message receiving and sending module is used to communicate with the BCF equipment of other operators' core networks in a co-built and shared network scenario; the verification module is used for mutual verification of the network resource usage of user terminals between BCF equipment of different operators; the data storage module is used to store relevant data and update the billing information stored in the local database after different operators reach a consensus.
[0044] Based on the core network architecture described in 3rd Generation Partnership Project (3GPP) TS23.501, it integrates Figure 1 The communication system 10 shown in the figure can obtain the integrated structure of the BCF device and the 5G co-built and shared network provided by the present application, such as Figure 3 The communication system 20 is shown.
[0045] Among them, the V-BCF device is the first BCF device, through N bcf The interface accesses the operator network. The H-BCF device is the second BCF device. bcf Access the affiliated operator's network to achieve the integration of blockchain and 5G co-built and shared network.
[0046] Understandably, Figure 3 V in the code indicates a device in the access operator network. For example, V-CHF indicates a CHF device in the access operator network, and VPLMN indicates an access operator network. Figure 3 H represents a device in the home operator network. For example, H-CHF represents a CHF device in the home operator network, and HPLMN is the home operator network.
[0047] In the integrated architecture of blockchain and 5G co-built and shared network provided by this application, the terminal data flow in the core network roaming scenario is as follows: Figure 4 As shown in the figure, the terminal accesses the core network of the operator network to achieve terminal access to the Internet; the terminal data flow in the access network roaming scenario is as follows Figure 5 As shown, by accessing the access network device of the operator's network, and then accessing the core network device of the operator's network, the terminal can access the Internet.
[0048] Figure 6 is a flow chart of a data processing method according to some exemplary embodiments. In some embodiments, the above data processing method can be applied to Figure 1 The first BCF device 11 or the second BCF device 12 in the communication system 10 is shown. In the following, the data processing method is described by taking the application of the data processing method to the first BCF device 11 as an example.
[0049] like Figure 6 As shown, the data processing method provided in the embodiment of the present application includes the following S301-S304.
[0050] S301. A first BCF device obtains a first resource usage message.
[0051] The first resource usage message is used to indicate the resource usage information of the terminal recorded by the network device. In the core network roaming scenario, the resource usage information of the terminal recorded by the network device includes the CDR data of the terminal; in the access network roaming scenario, the resource usage information of the terminal recorded by the network device includes the PDU session ID of the terminal, the list of received / rejected QFIs, and the mapping relationship between QFI and wireless data bearer (DRB), etc.
[0052] As a possible implementation manner, the first BCF device receives the first resource usage information sent by the network device, and determines the resource usage information of the terminal recorded by the network device.
[0053] S302. The first BCF device obtains a second resource usage message.
[0054] The second resource usage message is used to indicate the resource usage information of the terminal recorded by the second CHF device. The resource usage information of the terminal recorded by the second CHF device includes CDR data, PDU session ID, QFI information, PDU session start time and PDU session end time of the terminal.
[0055] As a possible implementation manner, the first BCF device receives a second resource usage message sent by the second BCF device. The second resource usage message is forwarded to the first BCF device by the second BCF device after receiving the resource usage information of the terminal sent by the second CHF device.
[0056] S303. The first BCF device verifies whether the resource usage information indicated by the first resource usage message is consistent with the resource usage information indicated by the second resource usage message.
[0057] As a possible implementation method, after receiving the first resource usage message and the second resource usage message, the first BCF device determines through a verification module whether the resource usage information of the terminal carried in the first resource usage message is consistent with the resource usage information of the terminal carried in the second resource usage information.
[0058] In some embodiments, after receiving the first resource usage message, if the first BCF device determines that the resource usage information of the terminal carried in the first resource usage message is the CDR data of the terminal, it determines the CDR data of the terminal recorded in the second CHF device from the second resource usage message, and verifies whether the CDR data in the first resource usage message and the second resource usage message are consistent.
[0059] In some other embodiments, after receiving the first resource usage message, if the first BCF device determines that the resource usage information of the terminal carried in the first resource usage message is the PDU session ID of the terminal and the list of received / rejected QFIs, then it determines the reception time of the first resource usage message. Furthermore, the first BCF device determines the PDU session ID, QFI information and PDU session start time of the terminal from the second resource usage message, verifies whether the PDU session IDs in the first resource usage message and the second resource usage message are consistent, whether the established QFI in the QFI information in the second resource usage message is the QFI in the QFI list received in the first resource usage message, and whether the difference between the reception time of the first resource usage message and the PDU session start time is less than a preset threshold. When the above conditions are met, the first BCF device determines that the resource usage information of the terminal recorded in the first resource usage message is consistent with that in the second resource usage message.
[0060] It should be noted that the preset threshold can be set in advance in the BCF device by the operation and maintenance personnel of the BCF device, and the embodiments of the present application are not limited to this.
[0061] S304: When the resource usage information indicated by the first resource usage message is consistent with the resource usage information indicated by the second resource usage message, the first BCF device updates the billing information of the terminal in the first BCF device and the billing information of the terminal in the second BCF device respectively.
[0062] As a possible implementation method, when the first BCF device determines in the above step S303 that the resource usage information indicated by the first resource usage message is consistent with the resource usage information indicated by the second resource usage message, it updates the billing information of the terminal in the database of the first BCF device and sends a confirmation message to the second BCF device, so that the second BCF device updates the billing information in the database of the second BCF device.
[0063] It should be noted that the first BCF device can send a confirmation message to the second BCF device by broadcasting, and the confirmation message is used to indicate that the first BCF device has confirmed that the resource usage information indicated by the first resource usage message is consistent with the resource usage information indicated by the second resource usage message.
[0064] It can be understood that the first BCF device communicates with the second BCF device of the core network of other operators in a co-built and shared network to verify the network resource usage of the user terminal, and updates the billing information in the local database and the billing information stored in the second BCF device after reaching a consensus. This allows the operator to settle fees based on the billing information stored in the database in a certain period of time, and establishes a reliable and trustworthy resource sharing network environment for the operator, thereby achieving the goal of reducing network construction costs while ensuring the quality of user Internet access.
[0065] Figure 7 is a flow chart of a data processing method according to some exemplary embodiments. In some embodiments, the above data processing method can be applied to Figure 1 The first BCF device 11 or the second BCF device 12 in the communication system 10 is shown. Hereinafter, the data processing method is described by taking the application of the data processing method to the second BCF device 12 as an example.
[0066] like Figure 7 As shown, the data processing method provided in the embodiment of the present application includes the following S401-S404.
[0067] S401. The second BCF device obtains a first resource usage message.
[0068] As a possible implementation manner, the second BCF device receives a first resource usage message sent by the first BCF device. The first resource usage message is forwarded to the second BCF device by the first BCF device after receiving the terminal resource usage information sent by the network device.
[0069] S402. The second BCF device obtains a second resource usage message.
[0070] As a possible implementation manner, the second BCF device receives the second resource usage message sent by the second CHF device, and determines the resource usage information of the terminal recorded by the second CHF device.
[0071] S403. The second BCF device verifies whether the resource usage information indicated by the first resource usage message is consistent with the resource usage information indicated by the second resource usage message.
[0072] As a possible implementation method, after receiving the first resource usage message and the second resource usage message, the second BCF device determines through a verification module whether the resource usage information of the terminal carried in the first resource usage message is consistent with the resource usage information of the terminal carried in the second resource usage information.
[0073] In some embodiments, after receiving the first resource usage message, if the second BCF device determines that the resource usage information of the terminal carried in the first resource usage message is the CDR data of the terminal, it determines the CDR data of the terminal recorded in the second CHF device from the second resource usage message, and verifies whether the CDR data in the first resource usage message and the second resource usage message are consistent.
[0074] In some other embodiments, after receiving the first resource usage message, if the second BCF device determines that the resource usage information of the terminal carried in the first resource usage message is the PDU session ID of the terminal, the list of received / rejected QFIs, and the first BCF device determines the reception time of the first resource usage message. Further, the second BCF device determines the PDU session ID, QFI information and PDU session start time of the terminal from the second resource usage message, verifies whether the PDU session IDs in the first resource usage message and the second resource usage message are consistent, whether the established QFI in the QFI information in the second resource usage message is the QFI in the QFI list received in the first resource usage message, and whether the difference between the reception time of the first resource usage message and the PDU session start time is less than a preset threshold. If the above conditions are met, the first BCF device determines that the resource usage information of the terminal recorded in the first resource usage message is consistent with that in the second resource usage message.
[0075] S404: When the resource usage information indicated by the first resource usage message is consistent with the resource usage information indicated by the second resource usage message, the second BCF device updates the billing information of the terminal in the first BCF device and the billing information of the terminal in the second BCF device respectively.
[0076] As a possible implementation method, when the second BCF device determines in the above step S403 that the resource usage information indicated by the first resource usage message is consistent with the resource usage information indicated by the second resource usage message, it updates the billing information of the terminal in the second BCF device database and sends a confirmation message to the first BCF device, so that the first BCF device updates the billing information in the first BCF device database.
[0077] It should be noted that the second BCF device can send a confirmation message to the first BCF device by broadcasting, and the confirmation message is used to indicate that the second BCF device has confirmed that the resource usage information indicated by the first resource usage message is consistent with the resource usage information indicated by the second resource usage message.
[0078] In one design, referring to the flowchart of 5.2.2.2.4-1 in 3GPP TS 32.255, the data processing method provided by the present application is in a terminal core network roaming scenario, such as Figure 8 In the core network roaming scenario, when the network device is a first CHF device, the first resource usage message includes the call detail record CDR data of the terminal recorded by the first CHF device, and the second resource usage message includes the CDR data of the terminal recorded by the second CHF device.
[0079] S1. The terminal (user equipment, UE) or the network initiates a PDU session release request.
[0080] S2. The home operator network releases the N4 session.
[0081] Among them, the home operator network session management function device (Home-Session Management Function, H-SMF) releases the IP address / prefix assigned to the PDU session; the home operator network user plane function device (Home-UserPlane Function, H-UPF) discards all remaining data packets of the PDU session and releases all tunnel resources and contexts related to the N4 session.
[0082] S3. The H-SMF device sends a charging data request [terminate] message to the second CHF device.
[0083] It should be noted that the second CHF device is Figure 8The H-CHF device shown in .
[0084] S4. The second CHF device responds to the charging data request [termination] message, closes the CDR, and stops charging.
[0085] S5. The second CHF device sends a charging data response [termination] message to the H-SMF device, so that the H-SMF device confirms that the PDU session stops charging.
[0086] S6. The second CHF device sends a second resource usage message to the second BCF device.
[0087] The second resource usage message includes CDR data.
[0088] It should be noted that the second BCF device is Figure 8 The H-BCF device shown in FIG. 1 ; the definition of CDR data follows the existing definition in 3GPP.
[0089] S7. H-SMF sends a PDU session update request to the visited operator network SMF (Visited-SMF, V-SMF) device.
[0090] It should be noted that the PDU session update request includes the Nsmf_PDUSession_Update Request message, and the PDU session update request is used to instruct the V-SMF device to construct the SM Release PDUSession Command to the UE with the information required, such as the release cause (Release Cause).
[0091] S8. Access the operator network to release the N4 session.
[0092] Among them, the V-SMF in the access operator network releases the IP address / prefix assigned to the PDU session; the V-UPF discards all remaining data packets of the PDU session and releases all tunnel resources and contexts related to the N4 session.
[0093] S9. The V-SMF device sends a charging data request [termination] message to the first CHF device.
[0094] It should be noted that the first CHF device is Figure 8 The V-CHF device shown in .
[0095] S10. The first CHF device responds to the charging data request [termination] message, closes the CDR, and stops charging.
[0096] S11. The first CHF device sends a charging data response [termination] message to the V-SMF device.
[0097] S12. The first CHF device sends the CDR to the first BCF device.
[0098] It should be noted that the first BCF device is Figure 8 The V-BCF device shown in .
[0099] S13. Continue the PDU session release process until it ends.
[0100] S14. After the PDU session is released, the first BCF device and the second BCF device respectively verify whether the CDR data recorded in the other operator network is consistent with the CDR data recorded in the local operator network.
[0101] S15. When the information recorded in the CDR is verified to be consistent, the first BCF device and the second BCF device reach a consensus and broadcast a verification confirmation message to each other.
[0102] S16. The first BCF device and the second BCF device update the billing information in the local database respectively.
[0103] In one design, the data processing method provided by the present application can be applied to the following scenarios in which the terminal accesses a network roaming: Figure 1 The first BCF device 11 or the second BCF device 12 in the communication system 10 shown in FIG. 1 is applied to the first BCF device as an example. The flow chart of the data processing method is as follows: Fig. 9 As shown, including S501-S503.
[0104] Among them, in the access network roaming scenario, when the network device is an access network device, the first resource usage message includes a PDU session ID, and the second resource usage message includes the PDU session ID and the PDU session start time, and the PDU session ID is used to identify the PDU session.
[0105] S501. A first BCF device determines a first moment at which an access network device sends a first resource usage message.
[0106] As a possible implementation manner, the first BCF device records the moment when the access network device sends the first resource usage message, and determines the moment as the first moment when the access network device sends the first resource usage message.
[0107] It can be understood that in the access network roaming scenario, since the access network device does not record resource usage in real time, the first BCF device in the present application can determine the time when the access network device sends the first resource usage message after establishing the PDU uplink channel as the PDU session start time within a certain error range, which is used to verify with the second BCF device in the subsequent process whether the start time of the PDU session is consistent.
[0108] S502. The first BCF device determines whether the PDU session ID in the first resource usage message is consistent with the PDU session ID in the second resource usage message, and whether the difference between the first moment and the PDU session start time is less than a first threshold.
[0109] As a possible implementation, after determining the first moment, the first BCF device compares whether the PDU session ID in the first resource usage message is consistent with the PDU session ID in the second resource usage message. Further, the first BCF device determines the difference between the first moment and the PDU session start time, and determines whether the difference is less than a first threshold.
[0110] It should be noted that the first threshold may be set in advance in the BCF device by the operation and maintenance personnel of the BCF device.
[0111] S503. When the PDU session ID in the first resource usage message is the same as the PDU session ID in the second resource usage message, and the difference between the first moment and the PDU session start time is less than the first threshold, the first BCF device determines that the resource usage information indicated by the first resource usage message is consistent with the resource usage information indicated by the second resource usage message.
[0112] It can be understood that in this design, for the scenario where the terminal is roaming in the access network, since the access network equipment does not record resource usage in real time, in this design, a consensus is reached during the PDU session establishment phase to determine the original resource usage information records of the terminal recorded in the access operator network and the home operator network. Then, when a consensus is reached on the BCF device, the billing information of the terminal is stored in the BCF device, thereby providing operators with a reliable and trustworthy resource sharing network environment in the access network roaming scenario.
[0113] In one design, the data processing method provided by the present application can be applied to the following scenarios in which the terminal accesses a network roaming: Figure 1 The first BCF device 11 or the second BCF device 12 in the communication system 10 shown in FIG. 1 is applied to the second BCF device as an example. The flow chart of the data processing method is as follows: Fig.10 As shown, including S601-S603.
[0114] S601. The second BCF device determines the first moment when the access network device sends a first resource usage message.
[0115] As a possible implementation method, the second BCF device receives the first resource usage message forwarded by the first BCF device, which also includes the first BCF device recording the moment when the first resource usage message sent by the access network device is received, which moment is the first moment when the access network device sends the first resource usage message.
[0116] S602. The second BCF device determines whether the PDU session ID in the first resource usage message is consistent with the PDU session ID in the second resource usage message, and whether the difference between the first moment and the PDU session start time is less than a first threshold.
[0117] As a possible implementation, after determining the first moment, the second BCF device compares whether the PDU session ID in the first resource usage message is consistent with the PDU session ID in the second resource usage message. Further, the first BCF device determines the difference between the first moment and the PDU session start time, and determines whether the difference is less than the first threshold.
[0118] S603. When the PDU session ID in the first resource usage message is the same as the PDU session ID in the second resource usage message, and the difference between the first moment and the PDU session start time is less than the first threshold, the second BCF device determines that the resource usage information indicated by the first resource usage message is consistent with the resource usage information indicated by the second resource usage message.
[0119] In one design, in order to more accurately determine whether the resource usage information of the terminal recorded in the home operator network and the visited operator network is consistent in the access network roaming scenario, such as Fig.11 As shown, in the PDU session release phase, in the data processing method provided by the present application, the first BCF device and the second BCF device reach a consensus again, and the data processing method can be applied to Figure 1 The first BCF device 11 or the second BCF device 12 in the communication system 10 shown in FIG. 1 is applied to the first BCF device as an example. The flow chart of the data processing method is as follows: Fig.11 As shown, it also includes S701-S705.
[0120] It should be noted that the first resource usage message also includes QFI information.
[0121] S701. The first BCF device obtains a third resource usage message sent by an access network device.
[0122] The third resource usage message includes a PDU session ID, and the third resource usage message is used to indicate that the PDU session corresponding to the PDU session ID has been released.
[0123] As a possible implementation manner, the first BCF device receives a third resource usage message sent by the access network device, and determines the PDU session ID from the third resource usage message.
[0124] S702. The first BCF device obtains a fourth resource usage message sent by the second CHF device.
[0125] The fourth resource usage message includes the PDU session ID, the PDU session end time and the QFI information.
[0126] As a possible implementation manner, the first BCF device receives the fourth resource usage message forwarded by the second CHF device through the second BCF device to determine the resource usage information of the terminal recorded in the home operator network.
[0127] S703. The first BCF device determines a second time when the access network device sends a third resource usage message.
[0128] As a possible implementation manner, the first BCF device records the moment when the access network device sends the third resource usage message, and determines the moment as the second moment when the access network device sends the third resource usage message.
[0129] It can be understood that in the access network roaming scenario, since the access network device does not record resource usage in real time, the first BCF device in the present application can determine the time when the access network device sends the first resource usage message after completing the release of the PDU session as the PDU session end time within a certain error range, which is used to verify with the second BCF device in the subsequent process whether the PDU session end time is consistent.
[0130] S704. The first BCF device determines whether the PDU session ID in the third resource usage message is the same as the PDU session ID in the fourth resource usage message, whether the QFI information in the first resource usage message is the same as the QFI information in the fourth resource usage message, and whether the difference between the second moment and the PDU session end time is less than the second threshold.
[0131] As a possible implementation method, after determining the second moment, the first BCF device compares whether the PDU session ID in the third resource usage message is the same as the PDU session ID in the fourth resource usage message, and based on the QFI information in the first resource usage message, determines whether the QFI information is the same as the QFI information in the fourth resource usage message, and determines the difference between the second moment and the PDU session end time, and determines whether the difference is less than the second threshold.
[0132] It should be noted that the second threshold can be set in advance in the BCF device by the operation and maintenance personnel of the BCF device, and the embodiment of the present application is not limited to this.
[0133] In some embodiments, the first BCF device stores the QFI information in the first resource usage message. After receiving the third resource usage message, the first BCF device determines the QFI information corresponding to the PDU session ID from the stored first resource usage message based on the PDU session ID in the third resource usage message.
[0134] S705. When the PDU session ID in the third resource usage message is the same as the PDU session ID in the fourth resource usage message, the QFI information in the first resource usage message is the same as the QFI information in the fourth resource usage message, and the difference between the second moment and the PDU session end time is less than the second threshold, the first BCF device updates the billing information of the terminal in the first BCF device and the billing information of the terminal in the second BCF device, respectively.
[0135] As a possible implementation method, when the first BCF device determines in the above step S704 that the above conditions are met, it updates the billing information of the terminal in the first BCF device database and sends a confirmation message to the second BCF device so that the second BCF device updates the billing information in the second BCF device database.
[0136] It should be noted that the first BCF device can send a confirmation message to the second BCF device by broadcasting, and the confirmation message is used to indicate that the first BCF device has confirmed that the resource usage information of the terminal recorded in the access operator network and the home operator network is consistent.
[0137] It can be understood that the data processing method provided in the present application realizes the consensus between the access operator network and the home operator network through the BCF device at the start and release stages of the PDU session, so as to eliminate possible disputes over billing among the participating operators of the co-built and shared network, and provide a trusted and reliable co-built and shared network environment.
[0138] In one design, in order to more accurately determine whether the resource usage information of the terminal recorded in the home operator network and the visited operator network is consistent in the access network roaming scenario, such as Fig.12 As shown, in the PDU session release phase, in the data processing method provided by the present application, the first BCF device and the second BCF device reach a consensus again, and the data processing method can be applied to Figure 1 The first BCF device 11 or the second BCF device 12 in the communication system 10 shown in FIG. 1 is applied to the first BCF device as an example. The flow chart of the data processing method is as follows: Fig.12 As shown, it also includes S801-S805.
[0139] It should be noted that the first resource usage message also includes QFI information.
[0140] S801. The second BCF device obtains a third resource usage message sent by an access network device.
[0141] As a possible implementation manner, the second BCF device receives the third resource usage message forwarded by the access network device through the first BCF device to determine the resource usage information of the terminal recorded in the access operator network.
[0142] S802. The second BCF device obtains a fourth resource usage message sent by the second CHF device.
[0143] As a possible implementation manner, the second BCF device receives the fourth resource usage message sent by the second CHF device to determine the resource usage information of the terminal recorded in the home operator network.
[0144] S803. The second BCF device determines a second time when the access network device sends a third resource usage message.
[0145] As a possible implementation method, the second BCF device receives the third resource usage message forwarded by the first BCF device, which also includes the first BCF device recording the moment when the access network device sends the third resource usage message, which is the second moment when the access network device sends the third resource usage message.
[0146] S804. The second BCF device determines whether the PDU session ID in the third resource usage message is the same as the PDU session ID in the fourth resource usage message, whether the QFI information in the first resource usage message is the same as the QFI information in the fourth resource usage message, and whether the difference between the second moment and the PDU session end time is less than the second threshold.
[0147] It should be noted that the specific implementation method can refer to the record in the above step S704 of the embodiment of the present application, and the first BCF device in the execution body can be replaced with the second BCF device.
[0148] S805. When the PDU session ID in the third resource usage message is the same as the PDU session ID in the fourth resource usage message, the QFI information in the first resource usage message is the same as the QFI information in the fourth resource usage message, and the difference between the second moment and the PDU session end time is less than the second threshold, the second BCF device updates the billing information of the terminal in the first BCF device and the billing information of the terminal in the second BCF device, respectively.
[0149] As a possible implementation method, when the second BCF device determines in the above step S804 that the above conditions are met, it updates the billing information of the terminal in the second BCF device database and sends a confirmation message to the first BCF device so that the first BCF device updates the billing information in the first BCF device database.
[0150] In one design, referring to the flowchart of PDU session establishment in 3GPP TS 32.255, the data processing method provided by the present application is in a terminal access network roaming scenario, such as Fig.13 As shown, including S1-S13. Among them, in the access network roaming scenario, when the network device is an access network device, the first resource usage message includes the PDU session ID, QFI information, and the mapping relationship between the QFI and the DRB, etc., and the second resource usage message includes the PDU session ID of the terminal recorded by the second CHF device and the PDU session start time.
[0151] S1. UE initiates a PDU session establishment request.
[0152] The PDU session establishment request includes the PDU session ID, the requested PDU session type, the data network name (Data Network Name, DNN), etc.
[0153] As a possible implementation method, when accessing the operator network, the UE sends a session establishment request message to the access and mobility management function (AMF) device in the home operator network to start the PDU session establishment process.
[0154] S2. The AMF device selects the SMF device in the home operator's network and sends an SM request and a PDU session establishment request to the SMF device.
[0155] The session establishment request is Nsmf_PDUSession_CreateSMContext, and the session establishment request includes PDU session ID, DNN, request type, etc.
[0156] S3. Continue the PDU session establishment process.
[0157] S4. The SMF device selects a suitable UPF device for the PDU session.
[0158] S5. The SMF device creates a charging identifier for the PDU session and sends a charging data request [initial] to the second CHF device, authorizing the user to start the PDU session.
[0159] S6. The second CHF device responds to the charging data request [initial] and opens the CDR of the PDU session.
[0160] S7. The second CHF device confirms by sending a charging data response [initial] to the SMF device.
[0161] S8. The second CHF device sends PDU session related information to the second BCF device.
[0162] Among them, the PDU session related information includes the PDU session start time, PDU session ID, etc.
[0163] It should be noted that the PDU session-related message is the resource usage information of the terminal indicated by the second resource usage message recorded in the above embodiment of the present application.
[0164] S9. Continue the PDU session establishment process.
[0165] S10. The access network device sends an N2 PDU session response to the AMF device.
[0166] Among them, the N2 PDU session response includes N2 SM information, and the N2 SM information includes PDU session ID, AN channel information, accepted / rejected QFI list, user plane execution policy notification, etc.
[0167] It should be noted that the access network equipment is Fig.13 The radio access network (RAN) device in the AMF. After the access network device sends an N2 PDU session response to the AMF device, the terminal's data uplink channel is connected.
[0168] S11. The access network device sends PDU session information to the first BCF device.
[0169] The PDU session information includes the PDU session ID, the accepted / rejected QFI list, and the mapping relationship between the QFI and the DRB.
[0170] It should be noted that the PDU session information is the resource usage information of the terminal indicated by the first resource usage message recorded in the above embodiment of the present application.
[0171] S12. The first BCF device and the second BCF device verify the PDU session information.
[0172] It should be noted that how the first BCF device and the second BCF device specifically verify the PDU session information can refer to the above steps S502 and S602 of the embodiment of the present application, and will not be repeated here.
[0173] S13. The PDU session establishment continues until the PDU session is successfully established.
[0174] In one design, referring to the flowchart of PDU session release in 3GPP TS 32.255, the data processing method provided by the present application is in a terminal access network roaming scenario, such as Fig.14As shown, including S1-S14. In the access network roaming scenario, when the network device is an access network device, the first resource usage message includes a PDU session ID, QFI information, and a mapping relationship between QFI and DRB, etc., and the second resource usage message includes the PDU session ID of the terminal recorded by the second CHF device and the PDU session start time.
[0175] S1. UE initiates a PDU session release request.
[0176] The PDU session release request includes the PDU session ID.
[0177] As a possible implementation method, when accessing the operator network, the UE sends a session release request message to the AMF device in the home operator network to start the PDU session release process.
[0178] S2. AMF calls the Nsmf_PDUSession_UpdateSMContext service to transfer the PDU session release request to the SMF device corresponding to the PDU session ID through N2 and AMF devices.
[0179] S3. The SMF device notifies the UPF device to release the corresponding N4 tunnel resources.
[0180] S4. The SMF device sends a charging data request [Terminate] to the second CHF device to terminate the charging associated with the PDU session.
[0181] S5. The second CHF device responds to the charging data request [terminate] and closes the CDR of the PDU session.
[0182] S6. The second CHF device confirms by sending a charging data response [Terminate] to the SMF device.
[0183] S7. The second CHF device sends the complete CDR data to the second BCF device.
[0184] Among them, CDR data includes PDU session end time and QFI information.
[0185] It should be noted that the complete CDR data is the fourth resource usage message of the base station in the above embodiment of the present application.
[0186] S8. Continue the PDU session release process.
[0187] S9. The access network device replies with N2 resource release confirmation information to the AMF device.
[0188] Among them, the access network equipment is Fig.14 RAN equipment in the network.
[0189] S10. The access network device notifies the first BCF device that the PDU session resources have been released, and the first BCF device records the current time.
[0190] It should be noted that the message by which the access network device notifies the first BCF device that the PDU session resources have been released is the third resource usage message of the base station in the above embodiment of the present application.
[0191] S11. Continue the PDU session release process until the PDU session release is completed.
[0192] S12. The first BCF device and the second BCF device respectively verify whether the resource usage information of the terminal recorded in the home operator network and the visited operator network is consistent.
[0193] It should be noted that how the first BCF device and the second BCF device are specifically verified can refer to the above steps S704 and S804 of the embodiment of the present application.
[0194] S13. When the first BCF device and the second BCF device determine that the recorded information of both parties during the PDU session establishment and release phases is consistent, they reach a consensus and broadcast confirmation messages to each other respectively.
[0195] S14. The first BCF device and the second BCF device update local billing information respectively.
[0196] In the data processing method provided in the present application, the BCF device communicates with the BCF devices of other operators' core networks in a co-built and shared network, mutually verifies the network resource usage of the user terminal, and updates the billing information in the local database after reaching a consensus. This allows the operator to settle fees based on the billing information stored in the database in a certain time period, and establishes a reliable and trustworthy resource sharing network environment for the operator, thereby achieving the goal of reducing network construction costs while ensuring the quality of user Internet access.
[0197] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment disclosed herein, the embodiment of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0198] The embodiment of the present application can divide the functional modules of the user equipment according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. Optionally, the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0199] Fig.15 Schematic diagram of the structure of a BCF device provided in an embodiment of the present application. The BCF device is used to execute the above data processing method. Fig.15 As shown, the BCF device 90 includes an acquisition unit 901 and a processing unit 902 .
[0200] The acquisition unit 901 is used to acquire a first resource usage message, where the first resource usage message is used to indicate resource usage information of a terminal recorded by a network device. Figure 6 As shown, the acquisition unit 901 can be used to execute S301.
[0201] The acquisition unit 901 is further configured to acquire a second resource usage message, where the second resource usage message is used to indicate the resource usage information of the terminal recorded by the second CHF device. Figure 6 As shown, the acquisition unit 901 can be used to execute S302.
[0202] Processing unit 902 is configured to update the billing information of the terminal in the first BCF device and the billing information of the terminal in the second BCF device respectively when the resource usage information indicated by the first resource usage message is consistent with the resource usage information indicated by the second resource usage message. Figure 6 As shown, the processing unit 902 can be used to execute S304.
[0203] Optional, such as Fig.15 As shown, in the BCF device 90 provided in an embodiment of the present application, when the network device is a first CHF device, the first resource usage message obtained by the acquisition unit 901 includes the call detail record CDR data of the terminal recorded by the first CHF device, and the second resource usage message obtained by the acquisition unit 901 includes the CDR data of the terminal recorded by the second CHF device.
[0204] Optional, such as Fig.15As shown, the BCF device 90 provided in the embodiment of the present application further includes a determination unit 903. In the case where the network device is an access network device, the first resource usage message obtained by the acquisition unit 901 includes a protocol data unit PDU session ID, and the second resource usage message obtained by the acquisition unit 901 includes the PDU session ID and the PDU session start time, and the PDU session ID is used to identify the PDU session.
[0205] The determining unit 903 is configured to determine a first time when the access network device sends a first resource usage message. Fig. 9 As shown, the determining unit 903 can be used to execute S501.
[0206] The determining unit 903 is further configured to determine that the resource usage information indicated by the first resource usage message is consistent with the resource usage information indicated by the second resource usage message when the PDU session ID in the first resource usage message is the same as the PDU session ID in the second resource usage message and the difference between the first moment and the PDU session start time is less than a first threshold. Fig. 9 As shown, the determining unit 903 can be used to execute S503.
[0207] Optional, such as Fig.15 As shown, in the BCF device 90 provided in the embodiment of the present application, the first resource usage message acquired by the acquisition unit 901 also includes quality of service flow identifier QFI information.
[0208] The acquisition unit 901 is further configured to acquire a third resource usage message sent by the access network device, the third resource usage message including the PDU session ID, and the third resource usage message is used to indicate that the PDU session corresponding to the PDU session ID has been released. Fig.11 As shown, the acquisition unit 901 can be used to execute S701.
[0209] The acquisition unit 901 is further configured to acquire a fourth resource usage message sent by the second CHF device, wherein the fourth resource usage message includes a PDU session ID, a PDU session end time, and QFI information. Fig.11 As shown, the acquisition unit 901 can be used to execute S702.
[0210] The determining unit 903 is further configured to determine a second time at which the access network device sends a third resource usage message. Fig.11 As shown, the determining unit 903 can be used to execute S703.
[0211] The processing unit 902 is further configured to update the billing information of the terminal in the first BCF device and the billing information of the terminal in the second BCF device respectively when the PDU session ID in the third resource usage message is the same as the PDU session ID in the fourth resource usage message, the QFI information in the first resource usage message is the same as the QFI information in the fourth resource usage message, and the difference between the second moment and the PDU session end time is less than a second threshold. For example, Fig.11 As shown, the processing unit 902 can be used to execute S705.
[0212] In the case of implementing the functions of the above-mentioned integrated modules in the form of hardware, the embodiment of the present application provides a possible structural diagram of a BCF device. The BCF device is used to execute the data processing method executed by the BCF device in the above-mentioned embodiment. Fig.16 As shown, the BCF device 100 includes a processor 1001, a memory 1002 and a bus 1003. The processor 1001 and the memory 1002 may be connected via the bus 1003.
[0213] The processor 1001 is the control center of the BCF device, which can be a processor or a general term for multiple processing elements. For example, the processor 1001 can be a general-purpose central processing unit (CPU) or other general-purpose processors. The general-purpose processor can be a microprocessor or any conventional processor.
[0214] As an embodiment, the processor 1001 may include one or more CPUs, such as Fig.16 CPU 0 and CPU 1 are shown in .
[0215] The memory 1002 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.
[0216] As a possible implementation, the memory 1002 may exist independently of the processor 1001, and the memory 1002 may be connected to the processor 1001 via the bus 1003 to store instructions or program codes. When the processor 1001 calls and executes the instructions or program codes stored in the memory 1002, the data processing method provided in the embodiment of the present application can be implemented.
[0217] In another possible implementation, the memory 1002 may also be integrated with the processor 1001 .
[0218] The bus 1003 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.16 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0219] It should be pointed out that Fig.16 The structure shown does not constitute a limitation of the BCF device 100. Fig.16 In addition to the components shown, the BCF device 100 may include Fig.16 More or fewer components, or combinations of certain components, or different arrangements of components may be shown.
[0220] As an example, combining Fig.15 The functions implemented by the acquisition unit 901, the processing unit 902 and the determination unit 903 in the BCF device 90 are similar to those Fig.16 The function of processor 1001 in is the same.
[0221] Optional, such as Fig.16 As shown, the BCF device provided in the embodiment of the present application may also include a communication interface 1004.
[0222] The communication interface 1004 is used to connect with other devices through a communication network. The communication network may be Ethernet, wireless access network, wireless local area network (WLAN), etc. The communication interface 1004 may include an acquisition unit for receiving data and a sending unit for sending data.
[0223] In one design, in the BCF device provided in the embodiment of the present application, the communication interface can also be integrated into the processor.
[0224] Fig.17 FIG. 2 shows another hardware structure of the BCF device in the embodiment of the present application. Fig.17 As shown, the BCF device 110 may include a processor 1101 and a communication interface 1102. The processor 1101 is coupled to the communication interface 1102.
[0225] The function of the processor 1101 may refer to the description of the processor 1001. In addition, the processor 1101 also has a storage function, which may refer to the function of the memory 1002.
[0226] The communication interface 1102 is used to provide data to the processor 1101. The communication interface 1102 may be an internal interface of the BCF device, or an external interface of the BCF device (equivalent to the communication interface 1004).
[0227] It should be pointed out that Fig.17 The structure shown in the figure does not constitute a limitation on the BCF device, except Fig.17 In addition to the components shown, the BCF device 110 may include more or fewer components than shown, or combine certain components, or arrange the components differently.
[0228] Through the description of the above implementation methods, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional units is used as an example. In practical applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the device can be divided into different functional units to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0229] An embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When a computer executes the instructions, the computer executes each step in the method flow shown in the above method embodiment.
[0230] An embodiment of the present application provides a computer program product including instructions. When the instructions are executed on a computer, the computer is enabled to execute the data processing method in the above method embodiment.
[0231] Among them, the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, and a hard disk. Random Access Memory (RAM), Read-Only Memory (ROM), Erasable Programmable Read Only Memory (EPROM), registers, hard disks, optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any other form of computer-readable storage medium in a suitable combination of the above, or numerical values in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an Application Specific Integrated Circuit (ASIC). In the embodiments of the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program, which may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0232] Since the apparatus, device computer-readable storage medium, and computer program product in the embodiments of the present application can be applied to the above-mentioned method, the technical effects that can be obtained can also refer to the above-mentioned method embodiments, and the embodiments of the present application will not be described in detail here.
[0233] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A data processing method, characterized in that: A first blockchain function BCF device or a second BCF device applied to a co-built and shared network, wherein the co-built and shared network includes an access operator network of a terminal and a home operator network of the terminal, wherein the first BCF device is a BCF device in the access operator network, and the second BCF device is a BCF device in the home operator network, and the co-built and shared network also includes a network device in the access operator network and a second charging function CHF device in the home operator network; The network device is a first CHF device or an access network device; the method comprises: Acquire a first resource usage message, where the first resource usage message is used to indicate resource usage information of the terminal recorded by the network device; Acquire a second resource usage message, where the second resource usage message is used to indicate resource usage information of the terminal recorded by the second CHF device; When the resource usage information indicated by the first resource usage message is consistent with the resource usage information indicated by the second resource usage message, the billing information of the terminal in the first BCF device and the billing information of the terminal in the second BCF device are updated respectively.
2. The data processing method according to claim 1, characterized in that: In the case that the network device is the first CHF device, the first resource usage message includes call detail record CDR data of the terminal recorded by the first CHF device, and the second resource usage message includes CDR data of the terminal recorded by the second CHF device.
3. The data processing method according to claim 1, characterized in that: In the case where the network device is the access network device, the first resource usage message includes a protocol data unit PDU session ID, and the second resource usage message includes the PDU session ID and a PDU session start time, wherein the PDU session ID is used to identify the PDU session; The method further comprises: Determining a first time at which the access network device sends the first resource usage message; When the PDU session ID in the first resource usage message is the same as the PDU session ID in the second resource usage message, and the difference between the first moment and the start time of the PDU session is less than a first threshold, it is determined that the resource usage information indicated by the first resource usage message is consistent with the resource usage information indicated by the second resource usage message.
4. The data processing method according to claim 3, characterized in that: The first resource usage message also includes quality of service flow identifier QFI information, and the method further includes: Obtaining a third resource usage message sent by the access network device, where the third resource usage message includes a PDU session ID, and the third resource usage message is used to indicate that a PDU session corresponding to the PDU session ID has been released; Acquire a fourth resource usage message sent by the second CHF device, where the fourth resource usage message includes a PDU session ID, a PDU session end time, and QFI information; Determining a second time instant at which the access network device sends the third resource usage message; When the PDU session ID in the third resource usage message is the same as the PDU session ID in the fourth resource usage message, the QFI information in the first resource usage message is the same as the QFI information in the fourth resource usage message, and the difference between the second moment and the PDU session end time is less than a second threshold, the billing information of the terminal in the first BCF device and the billing information of the terminal in the second BCF device are updated respectively.
5. A blockchain function BCF device, characterized in that: The BCF device is a first BCF device deployed in the access operator network of the terminal, or a second BCF device in the home operator network of the terminal. The access operator network of the terminal and the home operator network of the terminal constitute a co-built and shared network, and the co-built and shared network also includes a network device in the access operator network and a second charging function CHF device in the home operator network; the network device is a first CHF device or an access network device; the BCF device includes an acquisition unit and a processing unit; The acquiring unit is configured to acquire a first resource usage message, where the first resource usage message is used to indicate resource usage information of the terminal recorded by the network device; The acquiring unit is further configured to acquire a second resource usage message, where the second resource usage message is used to indicate resource usage information of the terminal recorded by the second CHF device; The processing unit is used to update the billing information of the terminal in the first BCF device and the billing information of the terminal in the second BCF device respectively when the resource usage information indicated by the first resource usage message is consistent with the resource usage information indicated by the second resource usage message.
6. The BCF device according to claim 5, characterized in that When the network device is the first CHF device, the first resource usage message acquired by the acquisition unit includes call detail record CDR data of the terminal recorded by the first CHF device, and the second resource usage message acquired by the acquisition unit includes CDR data of the terminal recorded by the second CHF device.
7. The BCF device according to claim 5, characterized in that In the case where the network device is the access network device, the first resource usage message acquired by the acquisition unit includes a protocol data unit PDU session ID, and the second resource usage message acquired by the acquisition unit includes the PDU session ID and the PDU session start time, and the PDU session ID is used to identify the PDU session; The BCF device also includes a determination unit; The determining unit is used to determine a first time when the access network device sends the first resource usage message; The determination unit is also used to determine that the resource usage information indicated by the first resource usage message is consistent with the resource usage information indicated by the second resource usage message when the PDU session ID in the first resource usage message is the same as the PDU session ID in the second resource usage message and the difference between the first moment and the PDU session start time is less than a first threshold.
8. The BCF device according to claim 7, characterized in that The first resource usage message acquired by the acquisition unit further includes quality of service flow identifier QFI information; The acquisition unit is further used to acquire a third resource usage message sent by the access network device, where the third resource usage message includes a PDU session ID, and the third resource usage message is used to indicate that a PDU session corresponding to the PDU session ID has been released; The acquiring unit is further configured to acquire a fourth resource usage message sent by the second CHF device, wherein the fourth resource usage message includes a PDU session ID, a PDU session end time, and QFI information; The determining unit is further configured to determine a second time at which the access network device sends the third resource usage message; The processing unit is also used to update the billing information of the terminal in the first BCF device and the billing information of the terminal in the second BCF device, respectively, when the PDU session ID in the third resource usage message is the same as the PDU session ID in the fourth resource usage message, the QFI information in the first resource usage message is the same as the QFI information in the fourth resource usage message, and the difference between the second moment and the PDU session end time is less than a second threshold.
9. A blockchain function BCF device, characterized in that: including memory and processor; The memory is coupled to the processor; The memory is used to store computer program code, wherein the computer program code includes computer instructions; When the processor executes the computer instructions, the BCF device performs the data processing method as described in any one of claims 1-4.
10. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, characterized in that: When the instruction is executed on a blockchain function BCF device, the BCF device executes the data processing method as described in any one of claims 1 to 4.
