WO2019227978A1 - 一种漫游计费方法和装置 - Google Patents

一种漫游计费方法和装置 Download PDF

Info

Publication number
WO2019227978A1
WO2019227978A1 PCT/CN2019/075623 CN2019075623W WO2019227978A1 WO 2019227978 A1 WO2019227978 A1 WO 2019227978A1 CN 2019075623 W CN2019075623 W CN 2019075623W WO 2019227978 A1 WO2019227978 A1 WO 2019227978A1
Authority
WO
WIPO (PCT)
Prior art keywords
roaming
user
statistical information
charging
service
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.)
Ceased
Application number
PCT/CN2019/075623
Other languages
English (en)
French (fr)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to EP19810172.7A priority Critical patent/EP3790293B1/en
Publication of WO2019227978A1 publication Critical patent/WO2019227978A1/zh
Priority to US17/104,755 priority patent/US11457111B2/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements specially adapted for data communications, e.g. authentication, authorisation and accounting [AAA] framework
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements specially adapted for data communications, e.g. authentication, authorisation and accounting [AAA] framework
    • H04L12/1403Architecture for metering, charging or billing
    • H04L12/1407Policy-and-charging control [PCC] architecture
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements specially adapted for data communications, e.g. authentication, authorisation and accounting [AAA] framework
    • H04L12/141Indication of costs
    • H04L12/1414Indication of costs in real-time
    • H04L12/1417Advice of charge with threshold, e.g. user indicating maximum cost
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/47Fraud detection or prevention means
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/48Secure or trusted billing, e.g. trusted elements or encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/50Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP for cross-charging network operators
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/58Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP based on statistics of usage or network monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/66Policy and charging system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/70Administration or customization aspects; Counter-checking correct charges
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/70Administration or customization aspects; Counter-checking correct charges
    • H04M15/755Account identification
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/70Administration or customization aspects; Counter-checking correct charges
    • H04M15/755Account identification
    • H04M15/7556Account identification by SIM, e.g. smart card account in SCP, SDP or SN
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/80Rating or billing plans; Tariff determination aspects
    • H04M15/8038Roaming or handoff
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/83Notification aspects
    • H04M15/85Notification aspects characterised by the type of condition triggering a notification
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/83Notification aspects
    • H04M15/85Notification aspects characterised by the type of condition triggering a notification
    • H04M15/852Low balance or limit reached
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/83Notification aspects
    • H04M15/85Notification aspects characterised by the type of condition triggering a notification
    • H04M15/853Calculate maximum communication time or volume
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/83Notification aspects
    • H04M15/85Notification aspects characterised by the type of condition triggering a notification
    • H04M15/854Available credit
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/02Processing of mobility data, e.g. registration information at HLR [Home Location Register] or VLR [Visitor Location Register]; Transfer of mobility data, e.g. between HLR, VLR or external networks
    • H04W8/04Registration at HLR or HSS [Home Subscriber Server]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/02Processing of mobility data, e.g. registration information at HLR [Home Location Register] or VLR [Visitor Location Register]; Transfer of mobility data, e.g. between HLR, VLR or external networks
    • H04W8/08Mobility data transfer
    • H04W8/12Mobility data transfer between location registers or mobility servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2215/00Metering arrangements; Time controlling arrangements; Time indicating arrangements
    • H04M2215/34Roaming

Definitions

  • the present invention relates to the field of communications, and in particular, to a roaming charging method and device.
  • Roaming means that the user moves outside the network of the home operator and continues to use telecommunications services such as voice, text messages, and data through the networks of other telecommunication operators, so that communication can be maintained without interruption.
  • the current roaming billing scheme is divided into two types: the visited place's home charging and the visited place's visited charging.
  • the visited place's policy and charging execution function policy and charging function (PCEF) is responsible for collecting statistics on roaming services in the process of users using roaming services
  • the online charging system (OCS) in the interviewed place is responsible for receiving roaming service statistical information sent by the PCEF in the visited place, and according to The user's roaming charging rules and roaming service statistical information perform billing settlement.
  • PCEF policy and charging execution function
  • OCS online charging system
  • the home-based operator can only obtain the user's roaming cost and the information of the traffic used by the user during the roaming from the roaming-based operator.
  • the home-based operator cannot guarantee the roaming cost and The traffic information used by the user during roaming is tampered, so that the home operator and the visited operator cannot perform reconciliation and verify the accuracy of the user's roaming charges.
  • the user's roaming service statistical information is stored. In the database of the operator interviewed, the data in the database may be tampered with. In summary, in the current roaming charging method, the home operator cannot accurately obtain the roaming cost of the user during roaming.
  • the technical problem to be solved in this application is to provide a roaming charging method and device, which can ensure that the home operator can accurately obtain the roaming cost of the user during roaming.
  • this application provides a roaming charging method, including:
  • the home charging device receives one or more of the roaming account balance, roaming charging rules, and roaming service statistical information summary from users of the blockchain network; the home charging device receives The user's roaming service statistical information; in the case where the summary obtained from the user's roaming service statistical information is the same as the roaming service statistical information summary, the home charging device according to the roaming service statistical information and The roaming charging rule verifies the correctness of the roaming account balance.
  • the service statistical information database can be deployed in the operator of the interviewed place (for example, the billing device in the interviewed place, business statistics device in the visited place, etc.), or it can be deployed in a third-party system.
  • the embodiment of the present invention is not limited .
  • the roaming service statistical information indicates the measurement information (for example, call duration, data traffic, number of messages, etc.) of the user's use of the roaming service at the operator in the surveyed place.
  • the embodiment of the present application uses the blockchain technology to save the roaming account balance, roaming charging rules, and roaming service statistical information summary in the blockchain network, and by comparing the roaming service statistical information in the business statistics information database and the blockchain Roaming service statistical information digest to determine whether the service statistical information has been tampered, so that the home charging device can determine the accuracy of the verification result when verifying the roaming account balance through roaming charging rules and roaming service statistical information summary, so that the home accounting
  • the toll device can accurately obtain the roaming charges of the user in the roaming place, which improves the accuracy of billing.
  • the home charging device receives one or more of the roaming account balance, roaming charging rules, and roaming service statistics from users of the blockchain network.
  • the home charging device receives the user's roaming service statistical information from the service information database.
  • the home charging device Verify the correctness of the roaming account balance according to the roaming service statistics and roaming charging rules.
  • the home charging device before the home charging device receives one or more of the roaming account balance, roaming charging rules, and roaming service statistical information summary from users of the blockchain network, it further includes:
  • the home charging device sends a request message to the blockchain network; wherein the request message carries a user identifier and a channel identifier of the user, and the request message is used for a channel indicated to the channel identifier
  • the request message carries a user identifier and a channel identifier of the user, and the request message is used for a channel indicated to the channel identifier
  • One or more of the user's roaming account balance, roaming charging rules, and roaming service statistical information summary are requested in.
  • the method before the home charging device sends a request message to the blockchain network, the method further includes:
  • the home charging device determines an initial balance of the user's roaming account according to the balance of the home account of the user; wherein the initial balance of the user's roaming account is less than or equal to the balance of the home account of the user;
  • the home charging device sends the initial balance of the user's roaming account and the channel identifier corresponding to the user to the blockchain network; wherein the multiple peer peer nodes in the channel indicated by the channel identifier
  • One or more of the roaming account initial balance, the roaming charging rule, and the roaming service statistical information summary are stored in the form of a blockchain.
  • this application provides a roaming charging method, including:
  • the charging device in the visited place receives the roaming service statistical information of the users from the service statistics device in the visited place;
  • the visited charging device sends the user's roaming account balance and the channel identifier corresponding to the user to a blockchain network; wherein a plurality of peer nodes in the channel indicated by the channel identifier use the blockchain To save the user's roaming account balance.
  • the method before the visited charging device sends the user ’s roaming account balance and the channel identifier corresponding to the user to the blockchain network, the method further includes:
  • the visited charging device determines that the user's roaming account balance is not greater than a preset threshold.
  • it also includes:
  • the visited charging device determines that the user's roaming account balance is greater than a preset threshold, the visited charging device determines a service authorization limit for the user in the next charging cycle;
  • the visited place charging device sends the service authorization quota to the visited place service statistics device.
  • the charging device of the visited place before receiving the roaming service statistics information of the user of the service statistics device of the visited place, the charging device of the visited place further includes:
  • the interviewed charging device receives the initial balance of the user's roaming account from the blockchain network
  • the visited charging device determines a roaming charging rule for the user.
  • this application provides a roaming charging method, including:
  • the service statistics equipment of the visited place determines the user's roaming service statistics
  • the visited service statistics device sends the user's roaming service statistical information to the visited location billing device;
  • the visited statistical service device sends the user's roaming service statistical information to a service statistical information database
  • the visited service statistical device sends the roaming service statistical information summary and the channel identifier corresponding to the user to the blockchain network.
  • the service statistical device of the visited place determines the user's roaming service statistical information
  • the visited service statistics device sends the user's roaming service statistical information to the visited location billing device;
  • the visited service statistics device sends the user's roaming service statistics information and a subdatabase identifier to a service statistics information database; wherein the subdatabase indicated by the subdatabase identifier is located in the service statistics information database, and the subdatabase Configured to save the roaming service statistical information of the user;
  • the visited service statistics device sends the roaming service statistics information and a channel identifier corresponding to the user to a blockchain network.
  • the method before the statistical device visited determines that the user uses the roaming service statistical information in the process of using the roaming service, the method further includes:
  • the visited charging device receives an authorized quota from the visited charging device, and controls the user to use the roaming service according to the authorized quota.
  • the visited service statistics device sends the user's roaming service statistics information to the visited location billing device, further including:
  • the visited service statistics device sends a sub-database identifier to the service statistics information database; wherein the sub-database indicated by the sub-database identifier is located in the service statistics information database, and the sub-database is used to save the user Roaming service statistics.
  • the sub-database identifier is a channel identifier corresponding to the user.
  • the present application provides a roaming charging method, which is characterized by including:
  • the blockchain network receives the roaming service statistical information summary and channel identification of the users from the service statistics equipment of the visited place;
  • the blockchain network is configured to write a summary of the roaming service statistical information of the user into a plurality of peer nodes in a channel indicated by the channel identifier in the form of a blockchain;
  • the blockchain network sends one or more of the roaming account balance, the roaming charging rule, and the roaming service statistical information summary to the home charging device.
  • the blockchain network receives roaming service statistical information and channel identifications from users of the service statistical device visited.
  • the blockchain network is configured to write a summary of the roaming service statistical information of the user into a plurality of peer nodes in a channel indicated by the channel identifier in the form of a blockchain;
  • the blockchain network sends the roaming account balance, the roaming charging rule, and the roaming service statistical information summary to the home charging device.
  • the blockchain network before the blockchain network receives the roaming service statistical information summary and channel identification from the user of the service statistics device visited, it further includes:
  • the blockchain network writes the initial balance of the user's roaming account in the form of a blockchain to a plurality of peer nodes in the channel indicated by the channel identifier;
  • the blockchain network sends the initial balance of the roaming account to the visited charging device according to the initial request message.
  • the blockchain network before the blockchain network sends one or more of the roaming account balance, the roaming charging rule, and the roaming service statistical information summary to the home charging device, also includes:
  • the blockchain network receives a first request message from a home charging device, the first request message is used to request the blockchain network to send the user's roaming account balance, the roaming charging rule, and One or more of the roaming service statistical information.
  • the present application provides a roaming charging method, which is characterized by including:
  • the home charging device receives one or more of the roaming account balance, roaming charging rules, and roaming service statistical information of users from the blockchain network;
  • the home charging device verifies the correctness of the roaming account balance according to the roaming charging rule and the roaming service statistical information.
  • one or more of roaming account balance, roaming charging rules, and roaming service statistical information are stored in the blockchain in the form of a blockchain.
  • the above information can reduce the possibility of tampering or tampering.
  • the home charging device can ensure the accuracy of the verification result when verifying the roaming account according to the roaming charging rules and roaming service statistical information, so that the home operator can accurately obtain the roaming cost of the user during roaming.
  • the method before the home charging device receives one or more of roaming account balance, roaming charging rules, and roaming service statistical information from users of the blockchain network, the method further includes:
  • the home charging device sends a request message to the blockchain network; wherein the request message carries a user identifier and a channel identifier of the user, and the request message is used in all of the blockchain networks.
  • the channel corresponding to the channel identifier requests the user's roaming account balance, roaming charging rules, and roaming service statistical information.
  • the method before the home charging device sends a request message to the blockchain network, the method further includes:
  • the home charging device determines an initial roaming account balance based on the user's home account balance; the roaming account initial balance is less than or equal to the home account balance;
  • the home charging device sends the initial balance of the roaming account and the channel identifier corresponding to the user to the blockchain network.
  • this application provides a roaming charging method, including:
  • the service statistics device of the visited place determines the roaming service statistical information of the user using the roaming service at the visited place operator
  • the visited location service statistics device sends the user's roaming service statistics information to the visited location billing device;
  • the visited service statistics device sends the roaming service statistics information and a channel identifier corresponding to the user to a blockchain network.
  • the method before the visited service statistics device determines that the user uses the roaming service statistical information of the roaming service by the visited operator, the method further includes:
  • the visited service statistics device receives the authorized amount from the charged device of the visited place, and controls the user to use the roaming service according to the authorized amount.
  • this application provides a roaming charging method, which includes:
  • the blockchain network receives roaming service statistical information and channel identifications from users of the service statistical equipment in the visited place;
  • the blockchain network writes the roaming service statistical information in the form of a blockchain to a plurality of peer nodes in the channel indicated by the channel identifier; wherein the plurality of peer nodes belong to the channel identifier indication Channel
  • the blockchain network sends one or more of the roaming account balance, the roaming charging rule, and the roaming service statistical information to a home charging device.
  • the blockchain network receiving the roaming service statistical information and the channel identifier from the user of the charging device visited further including:
  • the blockchain network writes the initial balance of the user's roaming account in the form of a blockchain to a plurality of peer nodes in the channel indicated by the channel identifier;
  • the blockchain network sends the initial balance of the roaming account to the charging device of the visited place according to the request message.
  • the method before the blockchain network sends the roaming account balance, the roaming charging rule, and the roaming service statistical information to a home charging device, the method further includes:
  • the blockchain network receives a request message from a home charging device, and the request information is used to request the blockchain network to send the roaming account balance, the roaming charging rule, and the roaming service statistical information. One or more of them.
  • Another aspect of the present application provides a device having a function of implementing a roaming charging method in each of the possible implementation manners of the first aspect to the seventh aspect.
  • the functions may be implemented by hardware, and may also be implemented by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to functions in each possible implementation manner of the first aspect and the seventh aspect.
  • the apparatus includes a transceiver, a memory, and a processor; wherein the memory stores a set of program code, and the processor is configured to call the program code stored in the memory, Perform the roaming charging method in any one of the possible implementation manners of the first aspect to the seventh aspect.
  • a computer-readable storage medium stores instructions that, when run on a computer, cause the computer to execute the methods described in the above aspects.
  • Yet another aspect of the present application provides a computer program product containing instructions that, when run on a computer, causes the computer to perform the methods described in the above aspects.
  • the charging device in the roaming place may be an online charging system in the roaming place
  • the service statistics device in the visited place may be a gateway device in the visited place.
  • FIG. 1a is a schematic structural diagram of a roaming charging system according to an embodiment of the present invention.
  • FIG. 1b is another schematic structural diagram of a roaming charging system according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of a roaming charging method according to an embodiment of the present invention.
  • FIG. 3 is another schematic flowchart of a roaming charging method according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a device according to an embodiment of the present invention.
  • FIG. 5 is another schematic structural diagram of a device according to an embodiment of the present invention.
  • FIG. 1a is a schematic structural diagram of a roaming charging system provided by the present application.
  • the roaming charging system includes: home charging device, blockchain network, visited charging device, service statistics device, service Statistics database.
  • the home charging device is deployed in a home public land mobile network (HPLMN).
  • HPLMN home public land mobile network
  • the business statistics equipment and the accounting equipment of the interviewed place are located in the visited public land mobile network (VPLMN). Users in HPLMN roam to VPLMN.
  • the blockchain network and business statistics information database can be deployed between VPLMN and HPLMN.
  • the charging device in the visited place and the charging device in the visited place can communicate with the blockchain network through the B1 interface.
  • the business statistics equipment in the interviewed place can communicate with the blockchain network through the B2 interface.
  • the home charging device is mainly used to save user account information at the home, such as balances, bills, and so on.
  • the home charging device may be an online charging system OCS or an offline charging system.
  • the blockchain network includes multiple blockchain nodes (servers).
  • Each blockchain node in the blockchain network maintains a local ledger, and the local ledger stores multiple blocks that make up the blockchain; data records In the block, the newly written data constitutes a new block, which is added at the end of the current blockchain.
  • Each block stores data while also storing a hash corresponding to the data recorded in the previous block. Value, if a block in the blockchain is modified individually, the block behind the block cannot be linked with the block, so the modification of any block in the blockchain is traceable.
  • the blockchain network in three different application scenarios is differentiated:
  • the blockchain network that is open on the entire network and has no user authorization mechanism is called a public chain network.
  • the blockchain network is used to save one or more of the user's roaming account balance, roaming service statistical information, roaming service statistical information summary, and roaming charging rules.
  • the information stored in the blockchain network cannot be tampered with. Or tamper with traceability.
  • the blockchain network can be composed of nodes operated by third parties, or the nodes of the operators.
  • the types of nodes in a blockchain network include multiple order nodes and multiple peer nodes. Multiple order nodes form a consensus network.
  • the consensus network uses a consensus algorithm to reach a consensus on information. The role of the consensus algorithm is to make at least one order node exist. The general node holds the same information.
  • Multiple peer nodes form a blockchain recording network for generating a blockchain.
  • the blockchain network supports the channel feature.
  • the channel feature indicates that the peer nodes in the blockchain network are divided into different channels, and the peer nodes in different channels are isolated from each other, that is, the blockchain generated by the channel only The internal peer nodes are visible.
  • the same peer node can belong to multiple channels. In extreme cases, all peer nodes belong to the same channel.
  • the service statistical information database is mainly used to save the user's roaming service statistical information.
  • the roaming service statistical information may include one or more records.
  • the roaming service statistical information summary generated by the roaming service statistical information through, for example, a digital signature algorithm is stored in the block. Chain network.
  • the charging device in the interviewed place is mainly used for charging settlement of the user's roaming service statistical information and roaming charging rules.
  • the charging device in the visited place can be the OCS in the visited place.
  • the service statistics device in the visited place is mainly used to collect statistics on the roaming service of the operator in the visited place, send roaming service statistics to the billing device and service statistics database in the visited place, and pass the roaming service statistics
  • the hash algorithm generates a digest and sends it to the blockchain network for storage, or directly sends roaming business statistical information to the blockchain network for storage.
  • the service statistics device of the visited place includes the visited place gateway, and the visited place gateway may specifically be the visited place PCEF.
  • the business statistics device in the interviewed area may also include the policy control device in the interviewed area, and the policy control device in the interviewed area may be the PCRF in the interviewed area.
  • FIG. 1b another schematic structural diagram of a roaming charging system according to an embodiment of the present invention.
  • the difference between the roaming charging system of FIG. 1b and the roaming charging system of FIG. 1a is mainly due to the roaming charging system of FIG. 1b.
  • No business statistics information database is deployed, and the user's roaming service statistics are directly saved in the blockchain network, instead of the summary of roaming service statistics.
  • FIG. 1b For functions of other network elements in FIG. 1b, reference may be made to the description in FIG. 1a, and details are not described herein again.
  • the present invention uses a blockchain network to save relevant information on roaming fee settlement, reducing the possibility of tampering related information on roaming fee settlement, and using a digital signature algorithm to sign the roaming service statistical information to generate a summary, further avoiding the roaming business.
  • the tampering of statistical information so that when the home-based operator uses roaming service statistical information and roaming charging rules to verify the roaming account balance, the accuracy of the verification result can be ensured, so that the home-based operator can obtain the user's accurate roaming cost.
  • FIG. 2 is a schematic flowchart of a roaming charging method according to an embodiment of the present invention.
  • the roaming charging method is applicable to the network architecture of FIG. 1a, and the method includes:
  • the service statistics device of the visited place determines user roaming service statistical information.
  • the visited service statistics device is deployed in the VPLMN, the user uses the user device to use the service in the VPLMN, and the visited service statistics device determines the user's roaming service statistical information.
  • the roaming service statistical information indicates the statistical information of services used by users in the VPLMN network, such as the user's call duration and Internet traffic.
  • the roaming service statistical information may include one or more statistical information.
  • the HPLMN of user A is PLMN1
  • the user A roams to PLMN2
  • the traffic statistics of user A on PLMN2 according to the service statistics device of PLMN2 is: 2017 in November From 11:11:00 on November 11 to 11:11:10 on November 11, 2017, the data traffic used is 10M, and from November 11:30:00 on November 11, 2017 to 12:00 on November 11, 2017
  • the call duration of 0:00 is 30 minutes.
  • the home charging device sends the initial balance of the roaming account and the channel identifier corresponding to the user to the blockchain network.
  • the home charging device can also send the user ID of the above user or the roaming account corresponding to the user to the blockchain network.
  • the blockchain network distinguishes information of different users based on the user ID.
  • the user ID includes but is not limited to International Mobile Any one of an international subscriber identity (IMSI) and a globally unique temporary UE identity (GUTI).
  • IMSI international subscriber identity
  • GUI globally unique temporary UE identity
  • each operator has different channel identifiers, and each operator is assigned a channel identifier, which can be stored in the network element of the home operator, such as the home charging device or policy control device.
  • the home charging device obtains the channel identifier from the network element; for another example: the home charging device itself stores the channel identifier corresponding to the operator.
  • the blockchain network receives the initial balance of the roaming account from the home charging device and the channel identifier corresponding to the user.
  • the surveyed charging device requests the initial balance of the user's roaming account from the blockchain network.
  • the request sent by the surveyed charging device to the blockchain network can also carry the user's user identity.
  • the blockchain network according to the user identity To distinguish the information of different users.
  • the initial balance of the roaming account is determined based on the actual balance of the user's account in HPLMN. For example, the initial balance of the roaming account is less than or equal to the actual balance, the initial balance of the roaming account is 80% of the actual balance, and the actual balance is 100 yuan, the initial balance of the roaming account is 80 yuan.
  • the home charging device sends the first account balance and channel identification of user A to the blockchain network through the B1 interface.
  • the first account balance is 80 yuan and the channel identification is channel-1.
  • the home charging device can pass The B1 interface sends the message ⁇ data: userA, accountbalance: 80, channel: channel-1 ⁇ to the blockchain network.
  • the channel identification is determined by the user's HPLMN.
  • the consensus network in the blockchain network reaches a consensus on the initial balance of the roaming account according to the consensus algorithm.
  • the consensus algorithm includes, but is not limited to, proof of work (POW), Proof of Stake (PoS), and delegation. Any of Proof of Stake (DPoS) and Practical Byzantine Fault Tolerance (PBFT).
  • PW proof of work
  • PoS Proof of Stake
  • PBFT Practical Byzantine Fault Tolerance
  • the visited charging device requests the initial balance of the roaming account from the channel node indicated by the channel identifier corresponding to the user in the blockchain network.
  • the request may also carry the user's user ID to obtain the initial roaming account corresponding to the user ID.
  • the blockchain network distinguishes information of different users based on user identification.
  • the surveyed charging device can request multiple peer nodes in the channel indicated by channel-1 in the blockchain network to request the initial balance of user A's roaming account through the B1 interface, and perform consistency verification on the multiple results returned. (To prevent some nodes from doing evil).
  • the charging device in the visited place establishes the user's roaming account in the VPLMN according to the initial balance of the roaming account, and then the charging device in the visited place can notify the user to select the visited location package (optional);
  • the roaming package determines the roaming charging rules; or the roaming charging rules are pre-configured and do not require users to choose.
  • the surveyed charging device establishes user A ’s roaming account in VPLMN and sets the available balance of the roaming account to 80 yuan;
  • User A ’s selected survey package in VPLMN is 50 yuan for 1 GB, exceeding 10 RMB 100MB;
  • the determined billing rule is free of charge within 1G of accumulated traffic, 0.1 yuan / MB beyond 1G.
  • the user After the user selects the location package visited, the user performs billing and settlement on the user's roaming account and updates the roaming account balance.
  • the balance of the updated roaming account is 30 yuan.
  • the charging device at the surveyed place sends the updated roaming account balance, roaming charging rules, and the channel identifier corresponding to the user to the blockchain network.
  • the blockchain network receives the roaming account balance and roaming plan. After the fee rules, the balance of the roaming account and the roaming charging rules are written into the user A's blockchain generated by the channel node indicated by the channel identifier.
  • the service statistics device of the visited place sends the user's roaming service statistical information to the charge device of the visited place, and the charge device of the visited place receives the roaming service statistics information of the user from the service statistics device of the visited place.
  • the interviewed accounting device is deployed in the VPLMN, and the business statistics device and the interviewed accounting device in the interviewed place can communicate through the Gy interface.
  • the visited service statistics device sends roaming service statistics information to the visited location billing device through the Gy interface.
  • the format of the sent roaming service statistics information is: ⁇ user: A, start-date: DATE (2017- 11-11), start-time: TIME (11:11:00), end-date: DATE (2017-11-11), end-time: TIME (11:11:10), data-usage: 10MB ⁇ .
  • the service statistics device in the visited place sends roaming service statistical information to the service statistics information database, and the service statistics information database receives the roaming service statistics information from the statistics device in the visited place.
  • the service statistical information database may be deployed in the VPLMN, or in the HPLMN, and may be deployed outside the VPLMN and the HPLMN.
  • the business statistics equipment and business statistics information database of the interviewed place can communicate through the D2 interface.
  • the service statistics device in the visited place further sends a sub-database identifier to the service statistical information database.
  • the sub-database identifier is used to indicate the identity of the sub-database, and the sub-database identifier is the channel identifier corresponding to the user.
  • the service statistical information database includes multiple sub-databases, each of which has a different sub-database identifier, and the different sub-databases are associated with different public land mobile networks (PLMNs).
  • PLMNs public land mobile networks
  • the business statistics information database includes subdatabase 1, subdatabase 2 and subdatabase 3, subdatabase 1 is associated with PLMN1, subdatabase 2 is associated with PLMN3, subdatabase 3 is associated with PLMN4, the HPLMN of user A is PLMN1, and the subdatabase identifier can be user A The channel ID corresponding to the PLMN1.
  • the business statistics information database can be deployed in a distributed manner, for example, a MongoDB cluster is used to build a business statistics information database.
  • the user's sub-database identifier is the user's corresponding channel identifier.
  • the peer nodes in the blockchain network are divided into multiple channels according to different PLMNs, and different channels correspond to different PLMNs. Different operators have different channel identifiers, and each operator is assigned a channel identifier.
  • the channel identifier can be stored in the network element of the home operator. For example, it is stored in the home charging device or policy control device.
  • the service statistics device of the visited place obtains the channel identifier from the network element.
  • the format of the roaming service statistical information and the sub-database identifier sent by the service statistics device of the interviewed place can be: ⁇ data: ⁇ user: A, start-date: DATE (2017-11-11), start-time: TIME (11 : 11:00), end-date: DATE (2017-11-11), end-time: TIME (11:11:10), data-usage: 10MB ⁇ , database: channel-1 ⁇ . "A" in the message is the user ID.
  • the business statistical information database determines a corresponding subdatabase according to the subdatabase identifier, and adds roaming service statistical information to the subdatabase.
  • the command to maintain roaming service statistics using the business statistics database of a MongoDB cluster is as follows:
  • channel-1 represents the sub-database identifier, here is the channel identifier corresponding to the user; A is the user identifier of the user.
  • the subdatabase indicated by channel-1 of the MongoDB cluster uses the default default-collection to save roaming service statistics.
  • the service statistics device of the visited place may also send the collection information (for example, one set of data per month) to the service statistics information database.
  • the sent message may be expressed as: ⁇ data: ⁇ user: A, start- date: DATE (2017-11-11), start-time: TIME (11:11:00), end-date: DATE (2017-11-11), end-time: TIME (11:11:10), data-usage: 10MB ⁇ , database: channel-1, collection: November ⁇ .
  • the command of the MongoDB cluster's business statistics database when saving roaming business statistics is:
  • channel-1 represents the sub-database identifier, here is the channel identifier corresponding to the user; A is the user identifier of the user.
  • the visited business statistics device sends a roaming service statistical information summary and a channel identifier to the blockchain network, and the blockchain network receives the roaming business statistics information summary and a channel identification from the visited business statistics device.
  • the service statistics device in the interviewed place uses a digital signature algorithm to hash the roaming service statistical information to generate a roaming service statistical information summary.
  • the type of the digital signature algorithm is not limited in this embodiment.
  • the digital signature algorithm is SHA256.
  • the B2 interface can be used for communication between the business statistics equipment and the blockchain network in the interviewed place.
  • the roaming service statistical information summary and channel identifier sent by the service statistics device visited to the blockchain network can be expressed as: ⁇ usage-abstract: abstract-exam, channel: channel-1 ⁇ .
  • the business statistics device of the interviewed place can also send the user's user identification to the blockchain network, and the blockchain network can distinguish the information of different users according to the user identification.
  • the charging device in the visited place updates the initial balance of the user's roaming account according to the roaming charging rules and roaming service statistical information, and obtains the roaming account balance after the update.
  • the initial balance of the roaming account is the initial balance in the HPLMN before the user roams to the VPLMN.
  • the initial balance is related to the actual balance of the user in the HPLMN.
  • the initial balance of the roaming account is less than or equal to the actual balance.
  • the account balance provides a security threshold to prevent users from using the roaming service to generate large bills and owe fees.
  • the balance in this embodiment represents a measure of the available amount of network services, and the balance can be expressed by the amount, points, credit value, or other methods, which is not limited in this embodiment.
  • Roaming charging rules represent the charging rules for users in the VPLMN.
  • the surveyed charging device updates the initial balance of the roaming account according to the user's roaming service statistics and roaming charging rules. For example, the initial balance of the user's roaming account is 30 yuan, and the visited roaming account determines that the current roaming fee is 1 yuan according to the roaming charging rules and roaming service statistics. It's 29 yuan.
  • the charging device at the visited location can also determine whether the service authorization quota for the next charging cycle is satisfied based on the balance of the roaming account. If yes, send the service authorization quota for the next charging cycle to the service statistics of the visited location. device.
  • the service authorization quota is 10MB
  • the accounting device in the interviewed place communicates with the business statistics device in the interviewed place through the Gy interface, and the accounting device in the interviewed place determines that the user meets the service authorization quota of the next charging cycle
  • the format of the sent message can be expressed as: ⁇ user: A, pre-authorization: 10MB ⁇ , A represents the user ID of the user, and 10MB represents the service authorization limit.
  • the blockchain network writes a summary of the roaming service statistical information into the blockchain.
  • the consensus network in the blockchain network first uses a consensus algorithm to reach a user's roaming service statistical information summary, and then determines the channel indicated by the channel identification, and all peer nodes in the channel write the roaming usage information summary into the block. In the chain.
  • execution order of S202, S203, and S204 is not limited to the order in FIG. 2 and may be executed in any order, which is not limited in this embodiment.
  • the visited charging device sends the roaming account balance, roaming charging rules, and channel identifier to the blockchain network.
  • the blockchain network receives the roaming account balance, roaming charging rules, and channel from the polling device. logo.
  • the charging device in the surveyed place can communicate with the blockchain network through the B1 interface.
  • the charging device in the surveyed place can send the above information when the user ends the current roaming service, or the user is using the roaming service.
  • the above information is sent during the process, or the user may send the above information when leaving the VPLMN, which is not limited in this embodiment.
  • the format of the sent information is: the format can be ⁇ user: A, account-balance: 30, billing-rules: rules-exam, channel: channel-1 ⁇ .
  • the blockchain network writes the roaming account balance and roaming charging rules into the blockchain.
  • the consensus network of the blockchain network uses a consensus algorithm to agree on the roaming account balance and roaming charging rules, and then determines the channel indicated by the channel identifier, and all peer nodes in the channel write the roaming account balance and roaming charging rules.
  • This step may be performed by the user at the end of the roaming service, or may be performed by the user during the roaming service.
  • the blockchain network sends the roaming account balance, roaming charging rules, and roaming service statistics summary to the home charging device.
  • the home charging device receives the roaming account balance, roaming charging rules, and Roaming service statistics summary.
  • the home charging device may request transaction information from multiple peer nodes corresponding to the channel identifier corresponding to the user in the blockchain network.
  • the request may also include the user identifier of the user, and the blockchain network distinguishes according to the user identifier.
  • Transaction information includes roaming account balances, roaming charging rules, and roaming service statistics summary. For example: User A starts using the roaming data service at 11:11 on November 11, 2017, and ends the roaming data service at 11:21 on November 11, 2017, then the home charging device sends the blockchain network to the blockchain network through interface B1
  • the multiple peer nodes in channel-1 request user A's roaming account balance, roaming charging rules, and roaming service statistical information summary during the use of the roaming service in the visited location.
  • the request message format can be ⁇ user: A, data -list: [account-balance, billing-rules-list, usage-abstract], start-date: DATE (2017-11-11), start-time: TIME (11:11:00), end-date: DATE (2017-11-11), end-time: TIME (11:21:00).
  • the home charging device After receiving the transaction information of user A returned by multiple peer nodes, the home charging device performs consistency verification on the obtained transaction information (to prevent some peer nodes from doing evil, for example: some peer nodes have not reached a consensus Modify transaction information without permission).
  • the service statistical information database sends the roaming service statistical information to the home charging device, and the home charging device receives the roaming service statistical information from the service statistical information database.
  • the home charging device requests roaming service statistical information from a sub-database corresponding to the user in the service statistical information database through the D1 interface.
  • the request message format may be ⁇ user: A, database: channel-1, start-date: DATE (2017 -11-11), start-time: TIME (11:11:00), end-date: DATE (2017-11-11), end-time: TIME (11:21:00) ⁇ .
  • the message format sent by the home charging device can be ⁇ user: A, database: channel-1, collection: November, start -date: DATE (2017-11-11), start-time: TIME (11:11:00), end-date: DATE (2017-11-11), end-time: TIME (11:21:00) ⁇ .
  • the home charging device verifies that the summary generated according to the roaming service statistical information is the same as the roaming service statistical information summary.
  • the home charging device uses the same digital signature algorithm as in S204 to perform a hash operation on the roaming service statistical information from the service statistical information database to generate a digest, and performs the digest and roaming business statistical information from the blockchain network. Consistency verification. After the verification is passed, S212 is performed.
  • the home charging device sends indication information indicating that the verification fails to the visited charging device and the service statistics device in the visited location, and the visited charging device and service statistics in the visited location receive the instruction. After the information is received, the visited charging device and the service statistics device at the visited location provide new information for roaming charging settlement according to steps S201 to S210, and the home charging device again uses the updated roaming charging information according to the update. The settlement information is verified.
  • the home charging device verifies the correctness of the roaming account balance according to the roaming charging rules and the roaming service statistical information.
  • the home charging device can enter roaming charging rules and roaming service statistics into the charging engine to obtain a roaming fee, and obtain a balance based on the roaming fee and the home account balance, and compare the balance with the blockchain network. Whether the stored roaming account balances are equal. If they are equal, it indicates that the roaming account balances in the blockchain are accurate.
  • the roaming charging rule is not compatible with the charging engine of the home charging device (for example, the payment method, currency type in the roaming charging rule is different from the charging engine of the home charging device)
  • you can first This roaming charging rule is converted into a method compatible with the charging engine of the home charging device, and then the roaming account balance is verified.
  • the blockchain network stores relevant information on roaming fee settlement to reduce the possibility of tampering related information on roaming fee settlement.
  • a digital signature algorithm is used to sign the roaming service statistical information to generate a summary to further avoid roaming. Tampering of business statistical information, so that when the home-based operator uses roaming service statistical information and roaming charging rules to verify the balance of the roaming account, the accuracy of the verification result can be ensured, so that the home-based operator can obtain the user's accurate roaming cost. .
  • FIG. 3 is another schematic flowchart of a roaming charging method according to an embodiment of the present invention.
  • This embodiment of the present invention is applicable to the network architecture of FIG. 1b.
  • the method includes:
  • the service statistics device of the visited place collects statistics on the roaming service of the user.
  • the service statistics device of the visited place sends the user's roaming service statistical information to the charge device of the visited place, and the charge device of the visited place receives the roaming service statistics information of the user from the service statistics device of the visited place.
  • the visited service statistics device sends the roaming service statistics information and the channel identifier to the blockchain network, and the blockchain network receives the roaming service statistics information and the channel identifier from the visited service statistics device.
  • the business statistics device of the interviewed place can also send the user's user identification to the blockchain network, and the blockchain network can distinguish the information of different users according to the user identification.
  • the charging device in the visited place updates the initial balance of the user's roaming account according to the roaming charging rules and roaming service statistics, and obtains the roaming account balance after the update.
  • the blockchain network writes roaming service statistical information into the blockchain.
  • S302 and S303 are not limited to the order in FIG. 3, and S303 may be executed before S302.
  • the visited charging device sends the roaming account balance, roaming charging rules, and channel identifier to the blockchain network, and the blockchain network receives the roaming account balance, roaming charging rules, and channel from the polled charging device.
  • the blockchain network writes the roaming account balance and roaming charging rules into the blockchain.
  • the blockchain network sends the roaming account balance, roaming charging rules, and roaming service statistics to the home charging device.
  • the home charging device receives the roaming account balance, roaming charging rules, and roaming from the blockchain network. Business statistics.
  • the home charging device may request transaction information from multiple peer nodes corresponding to the channel identifier corresponding to the user in the blockchain network.
  • the request may also carry the user's user identity, which is distinguished by the blockchain network based on the user identity.
  • Transaction information includes roaming account balances, roaming charging rules, and roaming service statistics. For example: User A started using roaming data services at 11:11 on November 11, 2017. 11 on November 11, 2017 When the roaming data service is ended at 21: 1, the home charging device requests multiple peer nodes of channel-1 in the blockchain network through interface B1 to request user A's roaming account balance and roaming plan during the use of the roaming service in the visited location. Fee rules and statistics of roaming services.
  • the format of the request message sent can be ⁇ user: A, data-list: [account-balance, billing-rules-list, usage], start-date: DATE (2017-11-11) , Start-time: TIME (11:11:00), end-date: DATE (2017-11-11), end-time: TIME (11:21:00) ⁇ .
  • the home charging device After receiving the transaction information of user A returned by multiple peer nodes, the home charging device performs consistency verification on the obtained transaction information (to prevent some peer nodes from doing evil).
  • the home charging device verifies the correctness of the roaming account balance according to the roaming charging rules and the roaming service statistical information.
  • the home charging device may input roaming charging rules and roaming service statistical information into its own charging engine to verify the accuracy of the roaming account balance.
  • the roaming charging rule may be first converted into a manner compatible with the charging engine of the home charging device.
  • one or more of roaming account balance, roaming charging rules, and roaming service statistical information are stored in the blockchain in the form of a blockchain.
  • the above information can reduce the possibility of tampering or tampering.
  • the home charging device can ensure the accuracy of the verification result when verifying the roaming account according to the roaming charging rules and roaming service statistical information, so that the home operator can accurately obtain the roaming cost of the user during roaming.
  • FIG. 2 and FIG. 3 explain a roaming charging method according to an embodiment of the present invention in detail, and a roaming charging apparatus (hereinafter referred to as a device 4) according to an embodiment of the present invention is provided below.
  • the device 4 includes a transceiving unit 401 and a processing unit 402.
  • the functions of the transceiver unit 401 and the processing unit 402 may be implemented by software modules, or may be implemented by specific hardware.
  • the device 4 may be a home charging device, and the device 4 is configured to perform S209 to S212 performed in FIG. 2.
  • the transceiver unit 401 is configured to receive one or more of a roaming account balance, a roaming charging rule, and a roaming service statistical information summary from a blockchain network.
  • the transceiver unit 401 is further configured to receive roaming service statistical information of the user from a service statistical information database;
  • the processing unit 402 is configured to, according to the roaming service statistical information and the roaming charging rule, perform an analysis based on the roaming service statistical information and the roaming service statistical information summary when the digest obtained by the user is the same as the roaming service statistical information summary. Verify the correctness of the roaming account balance.
  • the transceiver unit 401 is configured to send a request message to the blockchain network; the request message carries a user identifier and a channel identifier of the user, and the request message is used to indicate to the channel identifier
  • the request message carries a user identifier and a channel identifier of the user, and the request message is used to indicate to the channel identifier
  • One or more of the user's roaming account balance, roaming charging rules, and roaming service statistical information are requested in the channel.
  • the processing unit 402 is further configured to determine an initial balance of the user's roaming account according to the balance of the user's home account; wherein the initial balance of the user's roaming account is less than or equal to the attribution of the user Local account balance;
  • the transceiver unit 401 is further configured to send the initial balance of the user's roaming account and the channel identifier corresponding to the user to the blockchain network; wherein multiple peers in the channel indicated by the channel identifier
  • the peer node saves one or more of the initial balance of the roaming account, the roaming charging rule, and the roaming service statistical information summary in the form of a blockchain.
  • the device 4 may be an interviewed charging device, and the device 4 is configured to execute S202, S205, and S207 in FIG. 2.
  • the transceiver unit 401 is configured to receive roaming service statistical information of a user from a service statistics device of the visited place;
  • the processing unit 402 is configured to update an initial balance of the roaming account of the user according to the roaming service statistical information and the roaming charging rule of the user to obtain a roaming account balance;
  • the transceiver unit 401 is further configured to send the balance of the user's roaming account and the channel identifier corresponding to the user to the blockchain network; wherein a plurality of peer nodes in the channel indicated by the channel identifier are divided into blocks. The form of a chain holds the user's roaming account balance.
  • the processing unit 402 is further configured to determine that the user's roaming account balance is not greater than a preset threshold.
  • the processing unit 402 is further configured to determine a service authorization limit of the user in a next charging period when it is determined that the user's roaming account balance is greater than a preset threshold;
  • the transceiver unit 401 is further configured to send the service authorization quota to the service statistics device of the visited place.
  • the transceiver unit 401 is further configured to receive an initial balance of the roaming account of the user from the blockchain network;
  • the processing unit is further configured to determine a roaming charging rule for the user.
  • the device 4 may be a service statistics device of the visited place, and the device 4 is configured to execute S201 to S204 in FIG. 2.
  • the processing unit 402 is configured to determine user roaming service statistical information
  • the transceiver unit 401 is configured to send the roaming service statistical information of the user to the charging device of the visited place;
  • the transceiver unit 401 is further configured to send the user's roaming service statistical information to a service statistical information database; wherein the subdatabase indicated by the subdatabase identifier is located in the service statistical information database, and the subdatabase is used for Saving roaming service statistical information of the user;
  • the processing unit 402 is further configured to perform a hash operation on the user's roaming service statistical information to obtain a roaming service statistical information summary;
  • the transceiver unit 401 is further configured to send the roaming service statistical information summary and a channel identifier corresponding to the user to a blockchain network; wherein, a plurality of peer nodes in the channel indicated by the channel identifier are divided into blocks.
  • the roaming service statistical information summary is stored in the form of a chain.
  • the transceiver unit 401 is further configured to send a sub-database identifier to the service statistical information database; wherein the sub-database indicated by the sub-database identifier is located in the service statistical information database, and the sub-database is used for storing Statistical information of the user's roaming service.
  • the transceiver unit 401 is further configured to receive an authorized amount of the charging device of the visited place, and control the user to use the roaming service according to the authorized amount.
  • the sub-database identifier is a channel identifier corresponding to the user.
  • the device 4 may be any node or device in a blockchain network, and the device 4 is configured to execute S204, S206, S207, S208, and S209 in FIG. 2.
  • the transceiver unit 401 is configured to receive a roaming service statistical information summary and a channel identifier from a user of a service statistics device in a visited place;
  • the processing unit 402 is configured to write a summary of the roaming service statistical information of the user to a plurality of peer nodes in a channel indicated by the channel identifier in the form of a blockchain;
  • the transceiver unit 401 is further configured to receive one or more of a roaming account balance, a roaming charging rule, and the channel identifier of the user from the visited charging device;
  • the processing unit 402 is further configured to write one or more of the roaming account balance and the roaming charging rule to the peer node in the form of a blockchain;
  • the transceiver unit 401 further sends one or more of the roaming account balance, the roaming charging rule, and the roaming service statistical information summary to the home charging device.
  • the transceiver unit 401 is further configured to receive an initial roaming account balance and a channel identifier of the user from a home charging device;
  • the processing unit 402 is further configured to write the initial balance of the user's roaming account into a plurality of peer nodes in a channel indicated by the channel identifier in the form of a blockchain;
  • the transceiver unit 401 is further configured to receive an initial request message from the visited charging device; wherein the request message carries the channel identifier;
  • the transceiver unit 402 is further configured to send the initial balance of the roaming account to the visited charging device according to the request message.
  • the transceiver unit 401 is further configured to receive a first request message from a home charging device, where the first request message is used to request the blockchain to send the user's roaming account balance, One or more of the charging rule information and the roaming service statistical information.
  • the device 4 may be the home charging device in FIG. 3, and the device 4 is configured to perform S308 and S309 in FIG. 3.
  • the transceiver unit 401 is configured to receive one or more of roaming account balances, roaming charging rules, and roaming service statistical information from users of the blockchain network;
  • the processing unit 402 is configured to verify the correctness of the roaming account balance according to the roaming charging rule and the roaming service statistical information.
  • the transceiver unit 401 is further configured to send a request message to the blockchain network; wherein the request message carries a user identifier and a channel identifier of the user, and the request message is used to request the The channel indicated by the channel identifier requests one or more of the roaming account balance, roaming charging rules, and roaming service statistical information of the user.
  • processing unit 402 is further configured to determine the initial balance of the roaming account according to the balance of the home account of the user; wherein the initial balance of the roaming account is less than or equal to the balance of the home account;
  • the transceiver unit is further configured to send the initial balance of the roaming account and the channel identifier corresponding to the user to the blockchain network.
  • the device 4 may be a service statistics device of the visited place, and the device 4 is configured to perform S301 to S303 in FIG. 3.
  • the processing unit 402 is configured to determine user roaming service statistical information
  • the transceiver unit 401 is configured to send the roaming service statistical information of the user to the charging device of the visited place;
  • the transceiver unit 401 is further configured to send the roaming service statistical information and a channel identifier corresponding to the user to the blockchain network; wherein a plurality of peer nodes in the channel indicated by the channel identifier are The roaming service statistical information is stored in the form of a blockchain, and the channel is located in the blockchain network.
  • the transceiver unit 401 is further configured to receive an authorized amount from the charging device of the visited place, and control the user to use the roaming service according to the authorized amount.
  • the device 4 may be any node or device in a blockchain network, and the device 4 is configured to execute S303, S305, S306, S307, and S308 in FIG. 3.
  • the transceiver unit 401 is configured to receive roaming service statistical information and a channel identifier from a user of a service statistics device in a visited place;
  • the processing unit 402 is configured to write the roaming service statistical information into multiple peer nodes in the channel indicated by the channel identifier in the form of a blockchain; wherein the multiple peer nodes belong to the channel Identify the indicated channel;
  • the transceiver unit 401 is further configured to receive one or more of a channel identifier, a roaming account balance, and a roaming charging rule corresponding to the user from the charging device of the visited location;
  • the processing unit 402 is further configured to write one or more of the roaming account balance and the roaming charging rule into a plurality of peer nodes in a channel indicated by the channel identifier in the form of a blockchain. on;
  • the transceiver unit 401 is further configured to send one or more of the roaming account balance, the roaming charging rule, and the roaming service statistical information to a home charging device.
  • the transceiver unit 401 is further configured to receive an initial roaming account balance and a channel identifier of the user from a home charging device;
  • the processing unit 402 is further configured to write the initial balance of the user's roaming account into a plurality of peer nodes in a channel indicated by the channel identifier in the form of a blockchain;
  • the transceiver unit 401 is further configured to receive an initial request message from the charging device of the visited location;
  • the transceiver unit 401 is further configured to send the initial balance of the roaming account to the visited charging device according to the request message.
  • the transceiver unit 401 is further configured to receive a request message from a home charging device, and the request information is used to request the blockchain network to send the roaming account balance and the roaming charging rule. And one or more of the roaming service statistical information.
  • the device 4 may also be a field-programmable gate array (FPGA), a dedicated integrated chip, a system chip (SoC), or a central processing unit (Central Processing Unit).
  • FPGA field-programmable gate array
  • SoC system chip
  • CPU central processing unit
  • NP network processing unit
  • NP digital signal processing circuit
  • MCU microcontroller
  • PLD programmable logic controller
  • FIG. 5 is a schematic structural diagram of a device according to an embodiment of the present invention, and is hereinafter referred to as device 5.
  • the device 5 adopts a general-purpose computer architecture, and the device 5 can implement the functions of the home charging device, the blockchain network, the service statistics device of the visited place, or the charging device of the visited place.
  • the device includes: a memory 502, a processor 501, and a transceiver 503.
  • the memory 502 may be an independent physical unit, and may be connected to the processor 501 and the transceiver 503 through a bus.
  • the memory 502, the processor 501, and the transceiver 503 may also be integrated together and implemented by hardware.
  • the memory 502 is configured to store a program that implements the foregoing method embodiment or the modules of the device embodiment, and the processor 501 calls the program to execute the method corresponding to each device in S201 to S212 in FIG. 2 above and each device in S301 to 309 in FIG. 3 Corresponding method.
  • the random access device may also include only a processor.
  • the memory for storing the program is located outside the random access device, and the processor is connected to the memory through a circuit / wire for reading and executing the program stored in the memory.
  • the processor may be a central processing unit (CPU), a network processing unit (NP), or a combination of a CPU and an NP.
  • CPU central processing unit
  • NP network processing unit
  • the processor may further include a hardware chip.
  • the above hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof.
  • the PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
  • the memory may include volatile memory (for example, random-access memory (RAM); the memory may also include non-volatile memory (for example, flash memory) , Hard disk (HDD) or solid-state drive (SSD); the storage may also include a combination of the above types of storage.
  • volatile memory for example, random-access memory (RAM)
  • non-volatile memory for example, flash memory
  • HDD Hard disk
  • SSD solid-state drive
  • the storage may also include a combination of the above types of storage.
  • An embodiment of the present application further provides a computer storage medium storing a computer program, where the computer program is used to execute the roaming charging method provided by the foregoing embodiment.
  • the embodiment of the present application further provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the roaming charging method provided by the foregoing embodiment.
  • the embodiment of the present application further provides a roaming charging system.
  • the roaming charging system includes the home charging device, the blockchain network, the service statistical information database, the visited statistical device, and the visited charging system in FIG. 2.
  • the interaction process between devices and roaming charging systems reference may be made to the description in FIG. 2, and details are not described herein again.
  • the embodiment of the present application further provides a roaming charging system.
  • the roaming charging system includes a home charging device, a blockchain network, a visited statistical device, and a visited charging device in FIG.
  • a home charging device for the interaction process of each device in the system, reference may be made to the description in FIG. 3, and details are not described herein again.
  • this application may be provided as a method, a system, or a computer program product. Therefore, this application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, this application may take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
  • computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to work in a specific manner such that the instructions stored in the computer-readable memory produce a manufactured article including an instruction device, the instructions
  • the device implements the functions specified in one or more flowcharts and / or one or more blocks of the block diagram.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of steps can be performed on the computer or other programmable device to produce a computer-implemented process, which can be executed on the computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagrams.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Meter Arrangements (AREA)

Abstract

本申请公开了一种漫游计费方法和装置,区块链网络保存漫游费用结算的相关信息,减少漫游费用结算的相关信息被篡改的可能性,同时利用数字签名算法对漫游业务统计信息进行签名生成摘要,进一步避免漫游业务统计信息的篡改,这样归属地运营商利用漫游业务统计信息和漫游计费规则对漫游账户余额进行验证时,能确保验证结果的准确性,使归属地运营商获取到用户的准确的漫游费用。

Description

一种漫游计费方法和装置
本申请要求于2018年5月31日提交中国国家知识产权局、申请号为201810552138.0,发明名称为“一种漫游计费方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及通信领域,尤其涉及一种漫游计费方法和装置。
背景技术
漫游是指用户移动到归属地运营商的网络范围之外,通过其他电信运营商的网络继续使用语音、短信和数据等电信服务,以使通信可以保持而不中断。
目前的漫游计费方案分为受访地路由归属地计费和受访地路由受访地计费两种,在受访地路由计费方案中,受访地策略和计费执行功能(policy and charging enforcement function,PCEF)负责统计用户使用漫游业务过程中的漫游业务统计信息,受访地在线计费系统(online charging system,OCS)负责接收受访地PCEF发送的漫游业务统计信息,并根据该用户的漫游计费规则和漫游业务统计信息进行计费结算。
申请人发现,归属地运营商仅能从漫游地运营商获得用户的漫游费用和用户在漫游期间使用的业务量信息(例如:通话时长、数据流量等),归属地运营商无法保证漫游费用和用户在漫游期间使用的业务量信息被篡改,这样归属地运营商和受访地运营商无法进行对账,也不能对用户的漫游费用的准确性进行验证;另外,用户的漫游业务统计信息存储在受访地运营商的数据库中,数据库中的数据存在被篡改的可能性。综上所述,目前的漫游计费方法中归属地运营商无法准确的获取到用户在漫游期间的漫游费用。
发明内容
本申请所要解决的技术问题在于,提供一种漫游计费方法和装置,能保证归属地运营商准确的获取到用户在漫游期间的漫游费用。
第一方面,本申请提供了一种漫游计费方法,包括:
归属地计费设备接收来自区块链网络的用户的漫游账户余额、漫游计费规则和漫游业务统计信息摘要中的一种或多种;所述归属地计费设备接收来自业务统计信息数据库的所述用户的漫游业务统计信息;在由所述用户的漫游业务统计信息得到的摘要与所述漫游业务统计信息摘要相同的情况下,所述归属地计费设备根据所述漫游业务统计信息和所述漫游计费规则对所述漫游账户余额的正确性进行验证。
其中,业务统计信息数据库可以部署于受访地运营商中(例如:位于受访地计费设备、受访地业务统计设备等),也可以部署在第三方系统中,本发明实施例不作限制。漫游业务统计信息表示用户在受访地运营商使用漫游业务的计量信息(例如:通话时长、数据流量、消息数量等)。
本申请实施例采用区块链技术在区块链网络保存漫游账户余额、漫游计费规则和漫游业务统计信息摘要中,以及通过比较业务统计信息数据库中的漫游业务统计信息和区块链中的漫游业务统计信息摘要来判断业务统计信息是否被篡改,这样归属地计费设备通过漫游计费规则和漫游业务统计信息摘要对漫游账户余额进行验证时能确定验证结果的准确性,使归属 地计费设备能准确获取用户在漫游地的漫游费用,提高了计费的精确度。
在一种可能的设计中,归属地计费设备接收来自区块链网络的用户的漫游账户余额、漫游计费规则和漫游业务统计信息的一种或多种。归属地计费设备接收来自业务信息数据库的用户的漫游业务统计信息,在来自区块链网络的漫游业务统计信息和来自业务统计信息数据库的漫游业务统计信息相同的情况下,归属地计费设备根据漫游业务统计信息和漫游计费规则对漫游账户余额的正确性进行验证。
在一种可能的设计中,所述归属地计费设备接收来自区块链网络的用户的漫游账户余额、漫游计费规则和漫游业务统计信息摘要中的一种或多种之前,还包括:
所述归属地计费设备向所述区块链网络发送请求消息;其中,所述请求消息携带所述用户的用户标识和频道channel标识,所述请求消息用于向所述channel标识指示的channel中请求所述用户的漫游账户余额、漫游计费规则和漫游业务统计信息摘要中的一种或多种。
在一种可能的设计中,所述归属地计费设备向所述区块链网络发送请求消息之前,还包括:
所述归属地计费设备根据所述用户的归属地账户余额确定所述用户的漫游账户初始余额;其中,所述用户的漫游账户初始余额小于或等于所述用户的归属地账户余额;
所述归属地计费设备将所述用户的漫游账户初始余额和所述用户对应的channel标识发送给所述区块链网络;其中,所述channel标识指示的channel中的多个对等peer节点以区块链的形式保存所述漫游账户初始余额、所述漫游计费规则和漫游业务统计信息摘要中的一种或多种。
第二方面,本申请提供了一种漫游计费方法,包括:
受访地计费设备接收来自受访地业务统计设备的用户的漫游业务统计信息;
所述受访地计费设备根据所述漫游业务统计信息和所述用户的漫游计费规则对所述用户的漫游账户初始余额进行更新,得到漫游账户余额;
所述受访地计费设备将所述用户的漫游账户余额和所述用户对应的channel标识发送给区块链网络;其中,所述channel标识指示的channel中的多个peer节点以区块链的形式保存所述用户的漫游账户余额。
在一种可能的设计中,所述受访地计费设备将所述用户的漫游账户余额和所述用户对应的channel标识发送给区块链网络之前,还包括:
所述受访地计费设备确定所述用户的漫游账户余额不大于预设阈值。
在一种可能的设计中,还包括:
在所述受访地计费设备确定所述用户的漫游账户余额大于预设阈值的情况下,所述受访地计费设备确定所述用户在下一计费周期的业务授权额度;
所述受访地计费设备将所述业务授权额度发送给所述受访地业务统计设备。
在一种可能的设计中,所述受访地计费设备接收来自受访地业务统计设备的用户的漫游业务统计信息之前,还包括:
所述受访地计费设备接收来自所述区块链网络的所述用户的漫游账户初始余额;
所述受访地计费设备确定所述用户的漫游计费规则。
第三方面,本申请提供了一种漫游计费方法,包括:
受访地业务统计设备确定用户的漫游业务统计信息;
所述受访地业务统计设备将所述用户的漫游业务统计信息发送给受访地计费设备;
所述受访地业务统计设备将所述用户的漫游业务统计信息发送给业务统计信息数据库;
所述受访地业务统计设备对所述用户的漫游业务统计信息进行哈希运算得到漫游业务统计信息摘要;
所述受访地业务统计设备将所述漫游业务统计信息摘要和所述用户对应的channel标识发送给区块链网络。
在一种可能的设计中,受访地业务统计设备确定用户的漫游业务统计信息;
所述受访地业务统计设备将所述用户的漫游业务统计信息发送给受访地计费设备;
所述受访地业务统计设备将所述用户的漫游业务统计信息和子数据库标识发送给业务统计信息数据库;其中,所述子数据库标识指示的子数据库位于所述业务统计信息数据库中,该子数据库用于保存所述用户的漫游业务统计信息;
所述受访地业务统计设备将所述漫游业务统计信息和所述用户对应的channel标识发送给区块链网络。
在一种可能的设计中,所述受访地统计设备确定用户在使用漫游业务过程中的漫游业务统计信息之前,还包括:
所述受访地计费设备接收来自受访地计费设备的授权额度,根据所述授权额度控制所述用户使用漫游业务。
在一种可能的设计中,所述受访地业务统计设备将所述用户的漫游业务统计信息发送给受访地计费设备,还包括:
所述受访地业务统计设备将子数据库标识发送给所述业务统计信息数据库;其中,所述子数据库标识指示的子数据库位于所述业务统计信息数据库中,该子数据库用于保存所述用户的漫游业务统计信息。
在一种可能的设计中,所述子数据库标识为所述用户对应的channel标识。
第四方面,本申请提供了一种漫游计费方法,其特征在于,包括:
区块链网络接收来自受访地业务统计设备的用户的漫游业务统计信息摘要和channel标识;
所述区块链网络用于将所述用户的漫游业务统计信息摘要以区块链的形式写入所述channel标识指示的channel中的多个peer节点上;
所述区块链网络接收来自受访地计费设备的所述用户的漫游账户余额、漫游计费规则和所述channel标识;
所述区块链网络将所述漫游账户余额和所述漫游计费规则中的一种或多种以区块链的形式写入所述channel标识指示的channel中的多个peer节点上;
所述区块链网络向归属地计费设备发送所述漫游账户余额、所述漫游计费规则和所述漫游业务统计信息摘要中的一种或多种。
在一种可能的设计中,区块链网络接收来自受访地业务统计设备的用户的漫游业务统计信息和channel标识;
所述区块链网络对所述漫游业务统计信息进行哈希运算得到漫游业务统计信息摘要;
所述区块链网络用于将所述用户的漫游业务统计信息摘要以区块链的形式写入所述channel标识指示的channel中的多个peer节点上;
所述区块链网络接收来自受访地计费设备的所述用户的漫游账户余额、漫游计费规则和所述channel标识;
所述区块链网络将所述漫游账户余额和所述漫游计费规则中的一种或多种以区块链的形式写入所述channel标识指示的channel中的多个peer节点上;
所述区块链网络向归属地计费设备发送所述漫游账户余额、所述漫游计费规则和所述漫游业务统计信息摘要。
在一种可能的设计中,所述区块链网络接收来自受访地业务统计设备的用户的漫游业务统计信息摘要和channel标识之前,还包括:
所述区块链网络接收来自归属地计费设备的所述用户的漫游账户初始余额和channel标识;
所述区块链网络将所述用户的漫游账户初始余额以区块链的形式写入所述channel标识指示的channel中的多个peer节点上;
所述区块链网络接收来自所述受访地计费设备的初始请求消息;
所述区块链网络根据所述初始请求消息将所述漫游账户初始余额发送给所述受访地计费设备。
在一种可能的设计中,所述区块链网络向归属地计费设备发送所述漫游账户余额、所述漫游计费规则和所述漫游业务统计信息摘要中的一种或多种之前,还包括:
所述区块链网络接收来自归属地计费设备的第一请求消息,所述第一请求消息用于请求所述区块链网络发送所述用户的漫游账户余额、所述漫游计费规则和所述漫游业务统计信息中的一种或多种。
第五方面,本申请提供一种漫游计费方法,其特征在于,包括:
归属地计费设备接收来自区块链网络的用户的漫游账户余额、漫游计费规则和漫游业务统计信息中的一种或多种;
所述归属地计费设备根据所述漫游计费规则和所述漫游业务统计信息对所述漫游账户余额的正确性进行验证。
在本发明实例中,区块链中以区块链形式存储有漫游账户余额、漫游计费规则和漫游业务统计信息中的一种或多种,上述信息能降低被篡改的可能性或篡改可追溯,归属地计费设备根据漫游计费规则和漫游业务统计信息对漫游账户进行验证时能确保验证结果的准确性,使归属地运营商能准确的获取到用户在漫游期间的漫游费用。
在一种可能的设计中,所述归属地计费设备接收来自区块链网络的用户的漫游账户余额、漫游计费规则和漫游业务统计信息中的一种或多种之前,还包括:
所述归属地计费设备向所述区块链网络发送请求消息;其中,所述请求消息携带所述用户的用户标识和channel标识,所述请求消息用于在所述区块链网络的所述channel标识对应的channel中请求所述用户的漫游账户余额、漫游计费规则和漫游业务统计信息。
在一种可能的设计中,所述归属地计费设备向所述区块链网络发送请求消息之前,还包括:
所述归属地计费设备根据所述用户的归属地账户余额确定漫游账户初始余额;所述漫游账户初始余额小于或等于所述归属地账户余额;
所述归属地计费设备将所述漫游账户初始余额和所述用户对应的channel标识发送给所述区块链网络。
第六方面,本申请提供一种漫游计费方法,包括:
受访地业务统计设备确定用户在受访地运营商使用漫游业务的漫游业务统计信息;
所述受访地业务统计设备将所述用户的漫游业务统计信息发送给受访地计费设备;以及
所述受访地业务统计设备将所述漫游业务统计信息和所述用户对应的channel标识发送给区块链网络。
在一种可能的设计中,所述受访地业务统计设备确定用户在受访地运营商使用漫游业务的漫游业务统计信息之前,还包括:
所述受访地业务统计设备接收来自所述受访地计费设备的授权额度,根据所述授权额度控制所述用户使用漫游业务。
第七方面,本申请提供了一种漫游计费方法,其特征在于,包括:
区块链网络接收来自受访地业务统计设备的用户的漫游业务统计信息和channel标识;
所述区块链网络将所述漫游业务统计信息以区块链的形式写入所述channel标识指示的channel中的多个peer节点上;其中,所述多个peer节点属于所述channel标识指示的channel;
所述区块链网络接收来自受访地计费设备所述用户对应的channel标识、漫游账户余额、漫游计费规则中的一种或多种;
所述区块链网络将所述漫游账户余额和所述漫游计费规则中的一种或多种以区块链的形式写入所述channel标识指示的channel中的多个peer节点上;
所述区块链网络将所述漫游账户余额、所述漫游计费规则和所述漫游业务统计信息的一种或多种发送给归属地计费设备。
在一种可能的设计中,所述区块链网络接收来自受访地计费设备的用户的漫游业务统计信息和channel标识,还包括:
所述区块链网络接收来自归属地计费设备的所述用户的漫游账户初始余额和channel标识;
所述区块链网络将所述用户的漫游账户初始余额以区块链的形式写入所述channel标识指示的channel中的多个peer节点上;
所述区块链网络接收来自受访地计费设备的初始请求消息;
所述区块链网络根据所述请求消息将所述漫游账户初始余额发送给所述受访地计费设备。
在一种可能的设计中,所述区块链网络将所述漫游账户余额、所述漫游计费规则和所述漫游业务统计信息发送给归属地计费设备之前,还包括:
所述区块链网络接收来自归属地计费设备的请求消息,所述请求信息用于请求所述区块链网络发送所述漫游账户余额、所述漫游计费规则和所述漫游业务统计信息中的一种或多种。
本申请又一方面提供了一种装置,该装置具有实现第一方面到第七方面的各个可能的实现方式中的漫游计费方法的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与第一方面和第七方面的各个可能的实现方式中的功能相对应的模块。
另一种可能的实现方式中,所述装置包括:收发器、存储器和处理器;其中,所述存储器中存储一组程序代码,且所述处理器用于调用所述存储器中存储的程序代码,执行第一方面到第七方面中任意一种可能的实现方式中的漫游计费方法。
本申请的又一方面提了供一种计算机可读存储介质,所述计算机可读存储介质中存储有 指令,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。
本申请的又一方面提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。
在以上所有方面提供的实施方式中,漫游地的计费设备可以为漫游地的在线计费系统,受访地的业务统计设备可以为受访地的网关设备。
附图说明
为了更清楚地说明本发明实施例或背景技术中的技术方案,下面将对本发明实施例或背景技术中所需要使用的附图进行说明。
图1a是本发明实施例提供的一种漫游计费系统的结构示意图;
图1b是本发明实施例提供的一种漫游计费系统的另一结构示意图;
图2是本发明实施例提供的一种漫游计费方法的流程示意图;
图3是本发明实施例提供的一种漫游计费方法的另一流程示意图;
图4是本发明实施例提供的一种装置的结构示意图;
图5是本发明实施例提供的一种装置的另一结构示意图。
具体实施方式
下面结合说明书附图对本发明实施例进行详细说明。
图1a为本申请提供的一种漫游计费系统的结构示意图,该漫游计费系统包括:归属地计费设备、区块链网络、受访地计费设备、受访地业务统计设备、业务统计信息数据库。
其中,归属地计费设备部署在归属公共陆地移动网络(home public land mobile network,HPLMN)中。受访地业务统计设备、受访地计费设备位于拜访公共陆地移动网络(visited public land mobile network,VPLMN)中。HPLMN中的用户漫游到VPLMN。区块链网络和业务统计信息数据库可部署在VPLMN和HPLMN之间。受访地计费设备和拜访地计费设备都可以通过B1接口与区块链网络进行通信。受访地的业务统计设备可以通过B2接口与区块链网络进行通信。
其中,归属地计费设备主要用于保存用户在归属地的账户信息,例如:余额、账单等。归属地计费设备可以为在线计费系统OCS或离线计费系统。
其中,区块链网络包括多个区块链节点(服务器),区块链网络中每个区块链节点会维护一个本地账本,本地账本存储有组成区块链的多个区块;数据记录在区块中,新写入的数据组成新的区块,添加在当前区块链的末端,每个区块在存储数据的同时还会存储前一个区块中所记录的数据对应的哈希值,如果单独修改区块链中某个区块,那么该区块后面的区块无法与该区块链接,因此对区块链中的任意一个区块的修改是可追溯的。
其中,根据区块链网络中心化程度的不同,分化出3种不同应用场景下的区块链网络:
(1)全网公开,无用户授权机制的区块链网络,称为公有链网络。
(2)允许授权的节点加入网络,可根据权限查看信息,往往被用于机构间的联盟链,称为联盟链网络或行业链网络。
(3)所有网络中的节点都属于一家机构,称为私有链网络。
其中,区块链网络用于保存用户漫游账户余额、漫游业务统计信息和漫游业务统计信息摘要和漫游计费规则中的一种或多种,保存在区块链网络中的信息是不可篡改的或者篡改可 追溯。区块链网络可以由第三方运营的节点组成,也可以是运营商各自的节点组成。区块链网络中节点的类型包括多个order节点和多个peer节点,多个order节点组成共识网络,共识网络采用共识算法对信息达成共识,共识算法的作用在于使得多个order节点中至少存在一般的节点保存的信息是相同的。多个peer节点组成区块链记录网络,用于生成区块链。可选的,区块链网络支持channel特性,channel特性表示:区块链网络内的peer节点分为不同的channel,不同channel中的peer节点是相互隔离的,即channel生成的区块链只对内部的peer节点可见。可选的,同一个peer节点可以隶属于多个channel。在极端的情况下,所有的peer节点隶属于同一个channel。
其中,业务统计信息数据库主要用于保存用户的漫游业务统计信息,漫游业务统计信息可包括一条或多条记录,通过例如数字签名算法对漫游业务统计信息生成的漫游业务统计信息摘要保存在区块链网络中。
其中,受访地计费设备主要用于对用户的漫游业务统计信息和漫游计费规则进行计费结算。受访地计费设备可以为受访地OCS。
其中,受访地业务统计设备主要用于统计用户在受访地运营商的漫游业务统计信息,向受访地计费设备和业务统计信息数据库发送漫游业务统计信息,以及将漫游业务统计信息通过hash算法生成摘要发送给区块链网络进行保存,或者直接将漫游业务统计信息发送给区块链网络进行保存。如图1a所示,受访地业务统计设备包括受访地网关,受访地网关具体可以是受访地PCEF。此外,受访地业务统计设备还可以包括受访地策略控制设备,受访地策略控制设备可以是受访地PCRF。
参见图1b,为本发明实施例提供的一种漫游计费系统的另一结构示意图,图1b的漫游计费系统和图1a的漫游计费系统的区分主要在于,图1b的漫游计费系统没有部署业务统计信息数据库,区块链网络中直接保存用户的漫游业务统计信息,而非保存漫游业务统计信息摘要。图1b中的其他网元的功能可参照图1a的描述,此处不再赘述。
在此,本发明采用区块链网络保存漫游费用结算的相关信息,减少漫游费用结算的相关信息被篡改的可能性,同时利用数字签名算法对漫游业务统计信息进行签名生成摘要,进一步避免漫游业务统计信息的篡改,这样归属地运营商利用漫游业务统计信息和漫游计费规则对漫游账户余额进行验证时,能确保验证结果的准确性,使归属地运营商获取到用户的准确的漫游费用。
参见图2,为本发明实施例提供的一种漫游计费方法的流程示意图,所述漫游计费方法适用于图1a的网络架构,所述方法包括:
S201、受访地业务统计设备确定用户的漫游业务统计信息。
具体的,受访地业务统计设备部署在VPLMN中,用户使用用户设备在VPLMN中使用业务,受访地业务统计设备确定用户的漫游业务统计信息。漫游业务统计信息表示用户在VPLMN的网络中使用业务的统计信息,例如:用户的通话时长、上网流量等。漫游业务统计信息可以包括一个或多个统计信息,例如:用户A的HPLMN为PLMN1,用户A漫游到PLMN2,PLMN2的业务统计设备统计的用户A在PLMN2上的漫游业务统计信息为:2017年11月11日11:11:00至2017年11月11日11:11:10秒使用的数据流量为10M,以及2017年11月11月11:30:00至2017年11月11日12:00:00的通话时长为30分钟。
可选的,受访地业务统计设备统计用户的漫游业务统计信息之前,归属地计费设备向区 块链网络发送漫游账户初始余额和用户对应的channel标识。其中,归属地计费设备还可以向区块链网络发送上述用户的用户标识或者该用户对应的漫游账户,区块链网络根据用户标识来区分不同用户的信息,用户标识包括但不限于国际移动用户识别码(international mobile subscriber identification number,IMSI)、全球唯一临时UE标识(globally unique temporary UE identity,GUTI)中的任意一种。
其中,不同的运营商具有不同的channel标识,每个运营商分配有一个channel标识,该channel标识可保存在归属地运营商的网元中,例如:保存在归属地计费设备或策略控制设备中等,归属地计费设备从上述网元中获取channel标识;又例如:归属地计费设备自身存储有所属的运营商对应的channel标识。区块链网络接收来自归属地计费设备的漫游账户初始余额和用户对应的channel标识。受访地计费设备向区块链网络请求用户的漫游账户初始余额,受访地计费设备向区块链网络中发送的请求中还可以携带用户的用户标识,区块链网络根据用户标识来区分不同用户的信息。
具体的,漫游账户初始余额是根据用户在HPLMN中的账户的实际余额确定得到的,例如,漫游账户初始余额小于或等于该实际余额,漫游账户初始余额是该实际余额的80%,实际余额为100元,漫游账户初始余额为80元。
例如:归属地计费设备通过B1接口将用户A的第一账户余额和channel标识发送给区块链网络,第一账户余额为80元,channel标识为channel-1,归属地计费设备可以通过B1接口将消息{data:userA,accountbalance:80,channel:channel-1}发送给区块链网络。其中,channel标识是由用户的HPLMN决定的。
其中,区块链网络中的共识网络根据共识算法对漫游账户初始余额达成共识,共识算法包括但不限于:工作量证明(proof of work,POW)、PoS(Proof of Stake,权益证明)、委托权益证明(Delegate Proof of Stake,DPoS)、实用拜占庭容错算法(Practical Byzantine Fault Tolerance,PBFT)中的任意一种。然后,确定区块链网络中channel标识指示的channel,channel中所有peer节点将第一账户余额写入区块链。
可选的,受访地计费设备向区块链网络中用户对应的channel标识指示的channel节点请求漫游账户初始余额,该请求中还可以携带用户的用户标识,获得用户标识对应的漫游账户初始余额,区块链网络根据用户标识来区分不同用户的信息。例如:受访地计费设备可以通过B1接口向区块链网络中channel-1指示的channel中的多个peer节点请求用户A的漫游账户初始余额,并对返回的多个结果进行一致性验证(以避免部分节点作恶)。
可选的,受访地计费设备根据漫游账户初始余额建立用户在VPLMN的漫游账户,之后受访地计费设备可以通知用户选定受访地套餐(可选的);根据选定的受访地套餐确定漫游计费规则;或者漫游计费规则为预先配置的,不需要用户进行选择。例如:受访地计费设备建立用户A在VPLMN的漫游账户,并设置该漫游账户的可用余额为80元;用户A设备在VPLMN选定的受访地套餐为50元包1GB,超出部分10元100MB;确定的计费规则为累积流量1G以内免费,超出1G以后0.1元/MB。用户选定受访地套餐之后,对用户的漫游账户进行计费结算,更新漫游账户余额。在本示例中,更新之后的漫游账户的余额为30元。可选的,受访地计费设备把更新后的漫游账户的余额、漫游计费规则和用户对应的channel标识发送给区块链网络,区块链网络接收到该漫游账户的余额和漫游计费规则之后,把漫游账户的余额和漫游计费规则写入由channel标识指示的channel节点生成的用户A的区块链中。
S202、受访地业务统计设备向受访地计费设备发送用户的漫游业务统计信息,受访地计 费设备接收来自受访地业务统计设备的用户的漫游业务统计信息。
具体的,受访地计费设备部署在VPLMN中,受访地业务统计设备和受访地计费设备之间可通过Gy接口进行通信。例如:受访地业务统计设备通过Gy接口将漫游业务统计信息发送给受访地计费设备,例如:发送的漫游业务统计信息的格式为:{user:A,start-date:DATE(2017-11-11),start-time:TIME(11:11:00),end-date:DATE(2017-11-11),end-time:TIME(11:11:10),data-usage:10MB}。
S203、受访地业务统计设备向业务统计信息数据库发送漫游服务统计信息,业务统计信息数据库接收来自受访地统计设备的漫游服务统计信息。
具体的,业务统计信息数据库可部署在VPLMN中,或者部署在HPLMN中,也可以部署与VPLMN和HPLMN之外。受访地业务统计设备和业务统计信息数据库之间可通过D2接口进行通信。
可选的,受访地业务统计设备还向业务统计信息数据库发送子数据库标识,子数据库标识用于表示子数据库的身份,子数据库标识为用户对应的channel标识。业务统计信息数据库包括多个子数据库,每个子数据库具有不同的子数据库标识,不同的子数据库关联不同的公共陆地移动网络(public land mobile network,PLMN)。例如:业务统计信息数据库包括子数据库1、子数据库2和子数据库3,子数据库1关联PLMN1,子数据库2关联PLMN3,子数据库3关联PLMN4,用户A的HPLMN为PLMN1,子数据库标识可以是用户A所在的PLMN1对应的channel标识。其中,业务统计信息数据库可采用分布式进行部署,例如:采用MongoDB集群构建业务统计信息数据库。
可选的,用户的子数据库标识为用户对应的channel标识,区块链网络中的peer节点根据不同的PLMN划分为多个channel,不同的channel对应不同的PLMN。不同的运营商具有不同的channel标识,每个运营商分配有一个channel标识,该channel标识可保存在归属地运营商的网元中,例如:保存在归属地计费设备或策略控制设备中等,受访地业务统计设备从上述网元中获取channel标识。
其中,受访地业务统计设备发送的漫游服务统计信息和子数据库标识的格式可以为:{data:{user:A,start-date:DATE(2017-11-11),start-time:TIME(11:11:00),end-date:DATE(2017-11-11),end-time:TIME(11:11:10),data-usage:10MB},database:channel-1}。消息中的“A”为用户标识。
其中,业务统计信息数据库根据子数据库标识确定对应的子数据库,以及将漫游服务统计信息添加到该子数据库中。例如:采用MongoDB集群的业务统计信息数据库保持漫游服务统计信息的命令如下:
>usechannel-1
>db.default-collection.insert({user:A,start-date:DATE(2017-11-11),start-time:TIME(11:11:00),end-date:DATE(2017-11-11),end-time:TIME(11:11:10),data-usage:10MB}),channel-1表示子数据库标识,此处为用户对应的channel标识;A为用户的用户标识。
在本示例中,MongoDB集群的channel-1指示的子数据库采用了默认的default-collection来保存漫游业务统计信息。可选的,受访地业务统计设备也可以把集合信息(例如每月的数据对应一个集合)发送给业务统计信息数据库,例如发送的消息可表示为:{data:{user:A,start-date:DATE(2017-11-11),start-time:TIME(11:11:00), end-date:DATE(2017-11-11),end-time:TIME(11:11:10),data-usage:10MB},database:channel-1,collection:November}。在这种情况下,MongoDB集群的业务统计信息数据库在保存漫游业务统计信息时的命令为:
>usechannel-1
>db.November.insert({user:A,start-date:DATE(2017-11-11),start-time:TIME(11:11:00),end-date:DATE(2017-11-11),end-time:TIME(11:11:10),data-usage:10MB}),channel-1表示子数据库标识,此处为用户对应的channel标识;A为用户的用户标识。
S204、受访地业务统计设备向区块链网络发送漫游业务统计信息摘要和channel标识,区块链网络接收来自受访地业务统计设备的漫游业务统计信息摘要和channel标识。
具体的,受访地业务统计设备采用数字签名算法对漫游业务统计信息进行哈希运算生成漫游业务统计信息摘要,数字签名算法的类型本实施例不作限制,例如:数字签名算法为SHA256。受访地业务统计设备和区块链网络之间可采用B2接口进行通信。例如:受访地业务统计设备向区块链网络发送的漫游业务统计信息摘要和channel标识可表示为:{usage-abstract:abstract-exam,channel:channel-1}。其中,受访地业务统计设备还可以向区块链网络发送用户的用户标识,区块链网络根据用户标识来区分不同用户的信息。
S205、受访地计费设备根据漫游计费规则和漫游业务统计信息更新用户的漫游账户初始余额,更新后得到漫游账户余额。
具体的,漫游账户初始余额是用户漫游到VPLMN之前在HPLMN中的初始余额,该初始余额和用户在HPLMN中的实际余额有关,例如:漫游账户初始余额小于或等于该实际余额,这样能为漫游账户余额提供一个安全阈值,避免用户使用漫游业务产生大额账单而欠费。需要说明的是,本实施例中的余额表示网络服务可用量的度量,余额可以用金额、积分、信用值或其他方式来表示,本实施例不作限制。漫游计费规则表示用户在VPLMN中的计费规则。受访地计费设备根据用户的漫游业务统计信息和漫游计费规则更新漫游账户初始余额。例如:用户的漫游账户初始余额为30元,受访地计费设备根据漫游计费规则和漫游业务统计信息确定当前的漫游费用为1元,则受访地计费设备更新后的漫游账户余额为29元。
可选的,受访地计费设备还可以根据漫游账户余额判断是否满足下一计费周期的业务授权额度,若为是,将下一计费周期的业务授权额度发送给受访地业务统计设备。例如:业务授权额度为10MB,受访地计费设备和受访地业务统计设备之间通过Gy接口进行通信,在受访地计费设备确定用户满足下一计费周期的业务授权额度的情况下,发送的消息的格式可以表示为:{user:A,pre-authorization:10MB},A表示用户的用户标识,10MB表示业务授权额度。
S206、区块链网络将漫游业务统计信息摘要写入区块链中。
具体的,区块链网络中的共识网络先采用共识算法对用户的漫游业务统计信息摘要达成一致,然后确定channel标识指示的channel,由该channel中所有peer节点将漫游使用信息摘要写入区块链中。
需要说明的是,S202、S203和S204的执行顺序不限于图2中的顺序,可以以任意的顺序执行,本实施例不作限制。
S207、受访地计费设备将漫游账户余额、漫游计费规则和channel标识发送给区块链网络,区块链网络接收来自受访地计费设备的漫游账户余额、漫游计费规则和channel标识。
具体的,受访地计费设备和区块链网络之间可通过B1接口进行通信,受访地计费设备 可在用户在当前漫游业务结束时发送上述信息,也可以是用户在使用漫游业务过程中发送上述信息,也可以是用户在离开VPLMN时发送上述信息,本实施例不作限制。例如:发送的信息的格式为:格式可以为{user:A,account-balance:30,billing-rules:rules-exam,channel:channel-1}。
S208、区块链网络将漫游账户余额和漫游计费规则写入区块链中。
具体的,区块链网络的共识网络采用共识算法对漫游账户余额和漫游计费规则达成一致,然后确定channel标识指示的channel,由该channel中所有peer节点将漫游账户余额和漫游计费规则写入区块链中。该步骤可以是用户在漫游业务结束时执行,也可以是用户在漫游业务过程中执行。
S209、区块链网络将漫游账户余额、漫游计费规则和漫游业务统计信息摘要发送给归属地计费设备,归属地计费设备接收来自区块链网络的漫游账户余额、漫游计费规则和漫游业务统计信息摘要。
具体的,归属地计费设备可以向区块链网络中用户对应的channel标识对应的多个peer节点请求交易信息,该请求中还可以包括用户的用户标识,区块链网络根据用户标识来区分不同用户的信息,交易信息包括漫游账户余额、漫游计费规则和漫游业务统计信息摘要。例如:用户A在2017年11月11日11点11分开始使用漫游数据服务,2017年11月11日11点21分结束漫游数据服务,则归属地计费设备通过接口B1向区块链网络中channel-1的多个peer节点请求用户A在受访地漫游业务使用过程中的漫游账户余额、漫游计费规则和漫游业务统计信息摘要,发送的请求消息格式可以是{user:A,data-list:[account-balance,billing-rules-list,usage-abstract],start-date:DATE(2017-11-11),start-time:TIME(11:11:00),end-date:DATE(2017-11-11),end-time:TIME(11:21:00)}。归属地计费设备在接收到多个peer节点返回的用户A的交易信息之后,对得到的交易信息进行一致性验证(以防止部分peer节点作恶,例如:部分peer节点在未达成共识的情况下私自修改交易信息)。
S210、业务统计信息数据库将漫游业务统计信息发送给归属地计费设备,归属地计费设备接收来自业务统计信息数据库的漫游业务统计信息。
例如,归属地计费设备通过D1接口向业务统计信息数据库中用户对应的子数据库请求漫游业务统计信息,请求消息格式可以是{user:A,database:channel-1,start-date:DATE(2017-11-11),start-time:TIME(11:11:00),end-date:DATE(2017-11-11),end-time:TIME(11:21:00)}。在业务统计信息数据库中用户对应的子数据库存在按月份创建统计(collection)的情况下,归属地计费设备发送的消息格式可以是{user:A,database:channel-1,collection:November,start-date:DATE(2017-11-11),start-time:TIME(11:11:00),end-date:DATE(2017-11-11),end-time:TIME(11:21:00)}。
S211、归属地计费设备验证根据漫游业务统计信息生成的摘要和漫游业务统计信息摘要相同。
具体的,归属地计费设备采用和S204中相同的数字签名算法对来自业务统计信息数据库的漫游业务统计信息进行哈希运算生成摘要,将该摘要和来自区块链网络的漫游业务统计信息进行一致性验证,在验证通过后,执行S212。
其中,如果验证不通过,归属地计费设备向受访地计费设备和受访地业务统计设备发送表示验证不通过的指示信息,受访地计费设备和受访地业务统计接收该指示信息后,受访地 计费设备和受访地业务统计设备根据S201至S210的步骤重新提供新的用于漫游计费结算的信息,归属地计费设备重新根据更新后的用于漫游计费结算的信息进行验证。
S212、归属地计费设备根据漫游计费规则和漫游业务统计信息验证漫游账户余额的正确性。
具体的,归属地计费设备可以把漫游计费规则和漫游业务统计信息输入计费引擎得到一个漫游费用,以及根据漫游费用和归属地账户余额得到一个余额,比较该余额和区块链网络中存储的漫游账户余额是否相等,若相等,表明区块链中的漫游账户余额是准确的。在该漫游计费规则和归属地计费设备的计费引擎不兼容(例如:漫游计费规则中的支付方式、货币种类和归属地计费设备的计费引擎不同)的情况下,可以先将该漫游计费规则转化为与归属地计费设备的计费引擎相兼容的方式,再对漫游账户余额进行验证。
根据图2的描述,区块链网络中保存漫游费用结算的相关信息,降低漫游费用结算的相关信息被篡改的可能性,同时利用数字签名算法对漫游业务统计信息进行签名生成摘要,进一步避免漫游业务统计信息的篡改,这样归属地运营商利用漫游业务统计信息和漫游计费规则对漫游账户余额进行验证时,能确保验证结果的准确性,使归属地运营商获取到用户的准确的漫游费用。
参见图3,为本发明实施例提供的一种漫游计费方法的另一流程示意图,本发明实施例适用于图1b的网络架构,所述方法包括:
S301、受访地业务统计设备统计用户的漫游业务统计信息。
具体的,S301的具体过程可参照图2中的S201的描述,此处不再赘述。
S302、受访地业务统计设备向受访地计费设备发送用户的漫游业务统计信息,受访地计费设备接收来自受访地业务统计设备的用户的漫游业务统计信息。
具体的,S302的具体过程可参照图2中的S202的描述,此处不再赘述。
S303、受访地业务统计设备向区块链网络发送漫游业务统计信息和channel标识,区块链网络接收来自受访地业务统计设备的漫游业务统计信息和channel标识。其中,受访地业务统计设备还可以向区块链网络发送用户的用户标识,区块链网络根据用户标识来区分不同用户的信息。
具体的,S303的具体过程可参照图2中的S203的描述,此处不再赘述。
S304、受访地计费设备根据漫游计费规则和漫游业务统计信息更新用户的漫游账户初始余额,更新后得到漫游账户余额。
具体的,S304的具体过程可参照图2中的S204的描述,此处不再赘述。
S305、区块链网络将漫游业务统计信息写入区块链中。
具体的,S305的具体过程可参照图2中的S205的描述,此处不再赘述。
需要说明的是,S302和S303的执行顺序不限于图3中的顺序,也可以是S303先于S302执行。
S306、受访地计费设备将漫游账户余额、漫游计费规则和channel标识发送给区块链网络,区块链网络接收来自受访地计费设备的漫游账户余额、漫游计费规则和channel标识。
具体的,S306的具体过程可参照图2中的S206的描述,此处不再赘述。
S307、区块链网络将漫游账户余额和漫游计费规则写入区块链中。
具体的,S307的具体过程可参照图2中的S207的描述,此处不再赘述。
S308、区块链网络将漫游账户余额、漫游计费规则和漫游业务统计信息发送给归属地计费设备,归属地计费设备接收来自区块链网络的漫游账户余额、漫游计费规则和漫游业务统计信息。
具体的,归属地计费设备可以向区块链网络中用户对应的channel标识对应的多个peer节点请求交易信息,该请求中还可以携带用户的用户标识,区块链网络根据用户标识来区分不同用户的信息,交易信息包括漫游账户余额、漫游计费规则和漫游业务统计信息;例如:用户A在2017年11月11日11点11分开始使用漫游数据服务,2017年11月11日11点21分结束漫游数据服务,则归属地计费设备通过接口B1向区块链网络中channel-1的多个peer节点请求用户A在受访地漫游业务使用过程中的漫游账户余额、漫游计费规则和漫游业务统计信息,发送的请求消息格式可以是{user:A,data-list:[account-balance,billing-rules-list,usage],start-date:DATE(2017-11-11),start-time:TIME(11:11:00),end-date:DATE(2017-11-11),end-time:TIME(11:21:00)}。归属地计费设备在接收到多个peer节点返回的用户A的交易信息之后,对得到的交易信息进行一致性验证(以防止部分peer节点作恶)。
S309、归属地计费设备根据漫游计费规则和漫游业务统计信息验证漫游账户余额的正确性。
具体的,归属地计费设备可以把漫游计费规则和漫游业务统计信息输入自己的计费引擎,对漫游账户余额的准确性进行校验。在该漫游计费规则和归属地计费设备的计费引擎不兼容的情况下,可以先将该漫游计费规则转化为与归属地计费设备的计费引擎相兼容的方式。
根据图3的描述,区块链中以区块链形式存储有漫游账户余额、漫游计费规则和漫游业务统计信息中的一种或多种,上述信息能降低被篡改的可能性或篡改可追溯,归属地计费设备根据漫游计费规则和漫游业务统计信息对漫游账户进行验证时能确保验证结果的准确性,使归属地运营商能准确的获取到用户在漫游期间的漫游费用。
上述图2和图3详细阐述了本发明实施例的一种漫游计费方法,下面提供了本发明实施例的一种漫游计费装置(以下简称装置4)。装置4包括收发单元401和处理单元402。其中,收发单元401和处理单元402的功能可以通过软件模块来实现,也可以通过具体的硬件来实现。
在一种可能的实施方式中,装置4可以是归属地计费设备,装置4用于执行图2执行的S209至S212。
所述收发单元401,用于接收来自区块链网络的漫游账户余额、漫游计费规则和漫游业务统计信息摘要中的一种或多种。
所述收发单元401,还用于接收来自业务统计信息数据库的所述用户的漫游业务统计信息;
所述处理单元402,用于在由所述用户的漫游业务统计信息得到的摘要与所述漫游业务统计信息摘要相同的情况下,根据所述漫游业务统计信息和所述漫游计费规则对所述漫游账户余额的正确性进行验证。
可选的,所述收发单元401,用于向所述区块链网络发送请求消息;所述请求消息携带 所述用户的用户标识和channel标识,所述请求消息用于向所述channel标识指示的channel中请求所述用户的漫游账户余额、漫游计费规则和漫游业务统计信息中的一种或多种。
可选的,所述处理单元402,还用于根据所述用户的归属地账户余额确定所述用户的漫游账户初始余额;其中,所述用户的漫游账户初始余额小于或等于所述用户的归属地账户余额;
所述收发单元401,还用于将所述用户的漫游账户初始余额和所述用户对应的channel标识发送给所述区块链网络;其中,所述channel标识指示的channel中的多个对等peer节点以区块链的形式保存所述漫游账户初始余额、所述漫游计费规则和漫游业务统计信息摘要中的一种或多种。
在另一种可能的实施方式中,装置4可以是受访地计费设备,装置4用于执行图2中的S202、S205和S207。
所述收发单元401,用于接收来自受访地业务统计设备的用户的漫游业务统计信息;
所述处理单元402,用于根据所述漫游业务统计信息和所述用户的漫游计费规则对所述用户的漫游账户初始余额进行更新,得到漫游账户余额;
所述收发单元401,还用于将所述用户的漫游账户余额和所述用户对应的channel标识发送给区块链网络;其中,所述channel标识指示的channel中的多个peer节点以区块链的形式保存所述用户的漫游账户余额。
可选的,所述处理单元402,还用于确定所述用户的漫游账户余额不大于预设阈值。
可选的,所述处理单元402,还用于在确定所述用户的漫游账户余额大于预设阈值的情况下,确定用户在下一计费周期的业务授权额度;
所述收发单元401,还用于将所述业务授权额度发送给所述受访地业务统计设备。
可选的,所述收发单元401,还用于接收来自所述区块链网络的所述用户的漫游账户初始余额;
所述处理单元,还用于确定所述用户的漫游计费规则。
在另一种可能的实施方式中,装置4可以是受访地业务统计设备,装置4用于执行图2中的S201至S204。
所述处理单元402,用于确定用户的漫游业务统计信息;
所述收发单元401,用于将所述用户的漫游业务统计信息发送给受访地计费设备;
所述收发单元401,还用于将所述用户的漫游业务统计信息发送给业务统计信息数据库;其中,所述子数据库标识指示的子数据库位于所述业务统计信息数据库中,该子数据库用于保存所述用户的漫游业务统计信息;
所述处理单元402,还用于对所述用户的漫游业务统计信息进行哈希运算得到漫游业务统计信息摘要;
所述收发单元401,还用于将所述漫游业务统计信息摘要和所述用户对应的channel标识发送给区块链网络;其中,所述channel标识指示的channel中的多个peer节点以区块链的形式保存所述漫游业务统计信息摘要。
可选的,收发单元401,还用于将子数据库标识发送给所述业务统计信息数据库;其中,所述子数据库标识指示的子数据库位于所述业务统计信息数据库中,该子数据库用于保存所述用户的漫游业务统计信息。
可选的,所述收发单元401,还用于接收来受访地计费设备的授权额度,根据所述授权额度控制所述用户使用漫游业务。
可选的,所述子数据库标识为所述用户对应的channel标识。
在另一种可能的实施方式中,装置4可以是区块链网络中的任意一个节点或设备,装置4用于执行图2中的S204、S206、S207、S208和S209。
所述收发单元401,用于接收来自受访地业务统计设备的用户的漫游业务统计信息摘要和channel标识;
所述处理单元402,用于将所述用户的漫游业务统计信息摘要以区块链的形式写入所述channel标识指示的channel中的多个peer节点上;
所述收发单元401,还用于接收来自受访地计费设备的所述用户的漫游账户余额、漫游计费规则和所述channel标识中的一种或多种;
所述处理单元402,还用于将所述漫游账户余额和所述漫游计费规则中的一种或多种以区块链的形式写入所述peer节点上;
所述收发单元401,还用向归属地计费设备发送所述漫游账户余额、所述漫游计费规则和所述漫游业务统计信息摘要中的一种或多种。
可选的,所述收发单元401,还用于接收来自归属地计费设备的所述用户的漫游账户初始余额和channel标识;
所述处理单元402,还用于将所述用户的漫游账户初始余额以区块链的形式写入所述channel标识指示的channel中的多个peer节点上;
所述收发单元401,还用于接收来自所述受访地计费设备的初始请求消息;其中,所述请求消息携带所述channel标识;
所述收发单元402,还用于根据该请求消息将所述漫游账户初始余额发送给所述受访地计费设备。
可选的,所述收发单元401,还用于接收来自归属地计费设备的第一请求消息,所述第一请求消息用于请求所述区块链发送所述用户的漫游账户余额、所述计费规则信息和所述漫游业务统计信息中的一种或多种。
在另一种可能的实施方式中,装置4可以是图3中的归属地计费设备,装置4用于执行图3中的S308和S309。
所述收发单元401,用于接收来自区块链网络的用户的漫游账户余额、漫游计费规则和漫游业务统计信息中的一种或多种;
所述处理单元402,用于根据所述漫游计费规则和所述漫游业务统计信息对所述漫游账户余额的正确性进行验证。
可选的,所述收发单元401,还用于向所述区块链网络发送请求消息;其中,所述请求消息携带所述用户的用户标识和channel标识,所述请求消息用于请求在所述channel标识指示的channel中请求所述用户的漫游账户余额、漫游计费规则和漫游业务统计信息中的一种或多种。
可选的,所述处理单元402,还用于根据所述用户的归属地账户余额确定漫游账户初始余额;其中,所述漫游账户初始余额小于或等于所述归属地账户余额;
所述收发单元,还用于将所述漫游账户初始余额和所述用户对应的channel标识发送给 所述区块链网络。
在另一种可能的实施方式中,装置4可以是受访地业务统计设备,装置4用于执行图3中的S301至S303。
所述处理单元402,用于确定用户的漫游业务统计信息;
所述收发单元401,用于将所述用户的漫游业务统计信息发送给受访地计费设备;
所述收发单元401,还用于将所述漫游业务统计信息和所述用户对应的channel标识发送给所述区块链网络;其中,所述channel标识指示的channel中的多个peer节点上以区块链的形式保存所述漫游业务统计信息,所述channel位于所述区块链网络中。
可选的,所述收发单元401,还用于接收来自所述受访地计费设备的授权额度,根据所述授权额度控制所述用户使用漫游业务。
在另一种可能的实施方式中,装置4可以为区块链网络中的任意一个节点或设备,装置4用于执行图3中的S303、S305、S306、S307和S308。
所述收发单元401,用于接收来自受访地业务统计设备的用户的漫游业务统计信息和channel标识;
所述处理单元402,用于将所述漫游业务统计信息以区块链的形式写入所述channel标识指示的channel中的多个peer节点上;其中,所述多个peer节点属于所述channel标识指示的channel;
所述收发单元401,还用于接收来自受访地计费设备所述用户对应的channel标识、漫游账户余额、漫游计费规则中的一种或多种;
所述处理单元402,还用于将所述漫游账户余额和所述漫游计费规则中的一种或多种以区块链的形式写入所述channel标识指示的channel中的多个peer节点上;
所述收发单元401,还用于将所述漫游账户余额、所述漫游计费规则和所述漫游业务统计信息中的一种或多种发送给归属地计费设备。
可选的,所述收发单元401,还用于接收来自归属地计费设备的所述用户的漫游账户初始余额和channel标识;
所述处理单元402,还用于将所述用户的漫游账户初始余额以区块链的形式写入所述channel标识指示的channel中的多个peer节点上;
所述收发单元401,还用于接收来自受访地计费设备的初始请求消息;
所述收发单元401,还用于根据所述请求消息将所述漫游账户初始余额发送给所述受访地计费设备。
可选的,所述收发单元401,还用于接收来自归属地计费设备的请求消息,所述请求信息用于请求所述区块链网络发送所述漫游账户余额、所述漫游计费规则和所述漫游业务统计信息中的一种或多种。
其中,所述装置4也可以为实现相关功能的现场可编程门阵列(field-programmable gate array,FPGA),专用集成芯片,系统芯片(system on chip,SoC),中央处理单元(central processor unit,CPU),网络处理单元(network processor,NP),数字信号处理电路,微控制器(micro controller unit,MCU),还可以采用可编程控制器(programmable logic device,PLD)或其他集成芯片。
本发明实施例和图2以及图3的方法实施例基于同一构思,其带来的技术效果也相同,具体过程可参照图2至图3的方法实施例的描述,此处不再赘述。
图5为本发明实施例提供的一种装置结构示意图,以下简称装置5。装置5采用了通用的计算机架构,装置5可以实现前述归属地计费设备、区块链网络、受访地业务统计设备或受访地计费设备的功能。
如图5所示,该装置包括:存储器502、处理器501和收发器503。
存储器502可以是独立的物理单元,与处理器501以及收发器503可以通过总线连接。存储器502、处理器501、收发器503也可以集成在一起,通过硬件实现等。
存储器502用于存储实现以上方法实施例,或者装置实施例各个模块的程序,处理器501调用该程序,执行以上图2中S201至S212各个设备对应的方法,以及图3中S301至309各个设备对应的方法。
可选地,当上述实施例的随机接入方法中的部分或全部通过软件实现时,随机接入装置也可以只包括处理器。用于存储程序的存储器位于随机接入装置之外,处理器通过电路/电线与存储器连接,用于读取并执行存储器中存储的程序。
处理器可以是中央处理单元(central processing unit,CPU),网络处理单元(network processor,NP)或者CPU和NP的组合。
处理器还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。
存储器可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器也可以包括非易失性存储器(non-volatile memory),例如快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器还可以包括上述种类的存储器的组合。
本申请实施例还提供了一种计算机存储介质,存储有计算机程序,该计算机程序用于执行上述实施例提供的漫游计费方法。
本申请实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例提供的漫游计费方法。
本申请实施例还提供了一种漫游计费系统,漫游计费系统包括图2中的归属地计费设备、区块链网络、业务统计信息数据库、受访地统计设备和受访地计费设备,漫游计费系统中各个设备的交互过程可参照图2的描述,此处不再赘述。
本申请实施例还提供了一种漫游计费系统,漫游计费系统包括图3中的归属地计费设备、区块链网络、受访地统计设备和受访地计费设备,漫游计费系统中各个设备的交互过程可参照图3的描述,此处不再赘述。
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和 /或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。

Claims (44)

  1. 一种漫游计费方法,其特征在于,包括:
    归属地计费设备接收来自区块链网络的用户的漫游账户余额、漫游计费规则和漫游业务统计信息摘要中的一种或多种;
    所述归属地计费设备接收来自业务统计信息数据库的所述用户的漫游业务统计信息;
    在由所述用户的漫游业务统计信息得到的摘要与所述漫游业务统计信息摘要相同的情况下,所述归属地计费设备根据所述漫游业务统计信息和所述漫游计费规则对所述漫游账户余额的正确性进行验证。
  2. 如权利要求1所述的方法,其特征在于,所述归属地计费设备接收来自区块链网络的用户的漫游账户余额、漫游计费规则和漫游业务统计信息摘要中的一种或多种之前,还包括:
    所述归属地计费设备向所述区块链网络发送请求消息;其中,所述请求消息携带所述用户的用户标识和频道channel标识,所述请求消息用于向所述channel标识指示的channel请求所述用户的漫游账户余额、漫游计费规则和漫游业务统计信息摘要中的一种或多种。
  3. 如权利要求2所述的方法,其特征在于,所述归属地计费设备向所述区块链网络发送请求消息之前,还包括:
    所述归属地计费设备根据所述用户的归属地账户余额确定所述用户的漫游账户初始余额;
    所述归属地计费设备将所述用户的漫游账户初始余额和所述用户对应的channel标识发送给所述区块链网络;其中,所述channel标识指示的channel中的多个对等peer节点以区块链的形式保存所述漫游账户初始余额、所述漫游计费规则和漫游业务统计信息摘要中的一种或多种。
  4. 一种漫游计费方法,其特征在于,包括:
    受访地计费设备接收来自受访地业务统计设备的用户漫游业务统计信息;
    所述受访地计费设备根据所述漫游业务统计信息和所述用户的漫游计费规则对所述用户的漫游账户初始余额进行更新,得到漫游账户余额;
    所述受访地计费设备将所述用户的漫游账户余额和所述用户对应的channel标识发送给区块链网络;其中,所述channel标识指示的channel中的多个peer节点以区块链的形式保存所述用户的漫游账户余额。
  5. 如权利要求4所述的方法,其特征在于,所述受访地计费设备将所述用户的漫游账户余额和所述用户对应的channel标识发送给区块链网络之前,还包括:
    所述受访地计费设备确定所述用户的漫游账户余额不大于预设阈值。
  6. 如权利要求5所述的方法,其特征在于,还包括:
    在所述受访地计费设备确定所述用户的漫游账户余额大于预设阈值的情况下,所述受访地计费设备确定所述用户在下一计费周期的业务授权额度;
    所述受访地计费设备将所述业务授权额度发送给所述受访地业务统计设备。
  7. 如权利要求4至6任意一项所述的方法,其特征在于,所述受访地计费设备接收来自受访地业务统计设备的用户的漫游业务统计信息之前,还包括:
    所述受访地计费设备接收来自所述区块链网络的所述用户的漫游账户初始余额;
    所述受访地计费设备确定所述用户的漫游计费规则。
  8. 一种漫游计费方法,其特征在于,包括:
    受访地业务统计设备确定用户的漫游业务统计信息;
    所述受访地业务统计设备将所述用户的漫游业务统计信息发送给受访地计费设备;
    所述受访地业务统计设备将所述用户的漫游业务统计信息发送给业务统计信息数据库;
    所述受访地业务统计设备对所述用户的漫游业务统计信息进行哈希运算得到漫游业务统计信息摘要;
    所述受访地业务统计设备将所述漫游业务统计信息摘要和所述用户对应的channel标识发送给区块链网络。
  9. 如权利要求8所述的方法,其特征在于,所述受访地统计设备确定用户在使用漫游业务过程中的漫游业务统计信息之前,还包括:
    所述受访地计费设备接收来自受访地计费设备的授权额度,根据所述授权额度控制所述用户使用漫游业务。
  10. 根据权利要求8或9所述的方法,其特征在于,所述受访地业务统计设备将所述用户的漫游业务统计信息发送给受访地计费设备,包括:
    所述受访地业务统计设备将子数据库标识发送给所述业务统计信息数据库;其中,所述子数据库标识指示的子数据库位于所述业务统计信息数据库中,该子数据库用于保存所述用户的漫游业务统计信息。
  11. 如权利要求10所述的方法,其特征在于,所述子数据库标识为所述用户对应的channel标识。
  12. 一种漫游计费方法,其特征在于,包括:
    区块链网络接收来自受访地业务统计设备的用户的漫游业务统计信息摘要和channel标识;
    所述区块链网络将所述用户的漫游业务统计信息摘要以区块链的形式写入所述channel标识指示的channel中的多个peer节点上;
    所述区块链网络接收来自受访地计费设备的所述用户的漫游账户余额、漫游计费规则和所述channel标识;
    所述区块链网络将所述漫游账户余额和所述漫游计费规则中的一种或多种以区块链的形式写入所述channel标识指示的channel中的多个peer节点上;
    所述区块链网络向归属地计费设备发送所述漫游账户余额、所述漫游计费规则和所述漫 游业务统计信息摘要中的一种或多种。
  13. 如权利要求12所述的方法,其特征在于,所述区块链网络接收来自受访地业务统计设备的用户的漫游业务统计信息摘要和channel标识之前,还包括:
    所述区块链网络接收来自归属地计费设备的所述用户的漫游账户初始余额和channel标识;
    所述区块链网络将所述用户的漫游账户初始余额以区块链的形式写入所述channel标识指示的channel中的多个peer节点上;
    所述区块链网络接收来自所述受访地计费设备的初始请求消息;
    所述区块链网络根据所述初始请求消息将所述漫游账户初始余额发送给所述受访地计费设备。
  14. 如权利要求12或13所述的方法,其特征在于,所述区块链网络向归属地计费设备发送所述漫游账户余额、所述漫游计费规则和所述漫游业务统计信息摘要中的一种或多种之前,还包括:
    所述区块链网络接收来自归属地计费设备的第一请求消息,所述第一请求消息用于请求所述区块链网络发送所述用户的漫游账户余额、所述漫游计费规则和所述漫游业务统计信息中的一种或多种。
  15. 一种漫游计费方法,其特征在于,包括:
    归属地计费设备接收来自区块链网络的用户的漫游账户余额、漫游计费规则和漫游业务统计信息中的一种或多种;
    所述归属地计费设备根据所述漫游计费规则和所述漫游业务统计信息对所述漫游账户余额的正确性进行验证。
  16. 如权利要求15所述的方法,其特征在于,所述归属地计费设备接收来自区块链网络的用户的漫游账户余额、漫游计费规则和漫游业务统计信息中的一种或多种之前,还包括:
    所述归属地计费设备向所述区块链网络发送请求消息;其中,所述请求消息携带所述用户的用户标识和channel标识,所述请求消息用于在所述区块链网络的所述channel标识对应的channel中请求所述用户的漫游账户余额、漫游计费规则和漫游业务统计信息。
  17. 如权利要求16所述的方法,其特征在于,所述归属地计费设备向所述区块链网络发送请求消息之前,还包括:
    所述归属地计费设备根据所述用户的归属地账户余额确定漫游账户初始余额;
    所述归属地计费设备将所述漫游账户初始余额和所述用户对应的channel标识发送给所述区块链网络。
  18. 一种漫游计费方法,其特征在于,包括:
    受访地业务统计设备确定用户在受访地运营商使用漫游业务的漫游业务统计信息;
    所述受访地业务统计设备将所述用户的漫游业务统计信息发送给受访地计费设备;以及
    所述受访地业务统计设备将所述漫游业务统计信息和所述用户对应的channel标识发送给区块链网络。
  19. 如权利要求18所述的方法,其特征在于,所述受访地业务统计设备确定用户在受访地运营商使用漫游业务的漫游业务统计信息之前,还包括:
    所述受访地业务统计设备接收来自所述受访地计费设备的授权额度,根据所述授权额度控制所述用户使用漫游业务。
  20. 一种漫游计费方法,其特征在于,包括:
    区块链网络接收来自受访地业务统计设备的用户的漫游业务统计信息和channel标识;
    所述区块链网络将所述漫游业务统计信息以区块链的形式写入所述channel标识指示的channel中的多个peer节点上;其中,所述多个peer节点属于所述channel标识指示的channel;
    所述区块链网络接收来自受访地计费设备所述用户对应的channel标识、漫游账户余额、漫游计费规则中的一种或多种;
    所述区块链网络将所述漫游账户余额和所述漫游计费规则中的一种或多种以区块链的形式写入所述channel标识指示的channel中的多个peer节点上;
    所述区块链网络将所述漫游账户余额、所述漫游计费规则和所述漫游业务统计信息的一种或多种发送给归属地计费设备。
  21. 如权利要求20所述的方法,其特征在于,所述区块链网络接收来自受访地计费设备的用户的漫游业务统计信息和channel标识,还包括:
    所述区块链网络接收来自归属地计费设备的所述用户的漫游账户初始余额和channel标识;
    所述区块链网络将所述用户的漫游账户初始余额以区块链的形式写入所述channel标识指示的channel中的多个peer节点上;
    所述区块链网络接收来自受访地计费设备的初始请求消息;
    所述区块链网络根据所述初始请求消息将所述漫游账户初始余额发送给所述受访地计费设备。
  22. 如权利要求21所述的方法,其特征在于,所述区块链网络将所述漫游账户余额、所述漫游计费规则和所述漫游业务统计信息发送给归属地计费设备之前,还包括:
    所述区块链网络接收来自归属地计费设备的请求消息,所述请求信息用于请求所述区块链网络发送所述漫游账户余额、所述漫游计费规则和所述漫游业务统计信息中的一种或多种。
  23. 一种漫游计费的装置,其特征在于,包括:处理器和收发器;
    所述收发器,用于接收来自区块链网络的漫游账户余额、漫游计费规则和漫游业务统计信息摘要中的一种或多种;
    所述收发器,还用于接收来自业务统计信息数据库的所述用户的漫游业务统计信息;
    所述处理器,用于在由所述用户的漫游业务统计信息得到的摘要与所述漫游业务统计信息摘要相同的情况下,根据所述漫游业务统计信息和所述漫游计费规则对所述漫游账户余额的正确性进行验证。
  24. 根据权利要求23所述的装置,其特征在于,
    所述收发器,用于向所述区块链网络发送请求消息;所述请求消息携带所述用户的用户标识和channel标识,所述请求消息用于向所述channel标识指示的channel中请求所述用户的漫游账户余额、漫游计费规则和漫游业务统计信息中的一种或多种。
  25. 根据权利要求24所述的装置,其特征在于,
    所述处理器,还用于根据所述用户的归属地账户余额确定所述用户的漫游账户初始余额;其中,所述用户的漫游账户初始余额小于或等于所述用户的归属地账户余额;
    所述收发器,还用于将所述用户的漫游账户初始余额和所述用户对应的channel标识发送给所述区块链网络;其中,所述channel标识指示的channel中的多个对等peer节点以区块链的形式保存所述漫游账户初始余额、所述漫游计费规则和漫游业务统计信息摘要中的一种或多种。
  26. 一种漫游计费的装置,其特征在于,包括:处理器和收发器;
    所述收发器,用于接收来自受访地业务统计设备的用户的漫游业务统计信息;
    所述处理器,用于根据所述漫游业务统计信息和所述用户的漫游计费规则对所述用户的漫游账户初始余额进行更新,得到漫游账户余额;
    所述收发器,还用于将所述用户的漫游账户余额和所述用户对应的channel标识发送给区块链网络;其中,所述channel标识指示的channel中的多个peer节点以区块链的形式保存所述用户的漫游账户余额。
  27. 根据权利要求26所述的装置,其特征在于,所述处理器,还用于确定所述用户的漫游账户余额不大于预设阈值。
  28. 根据权利要求27所述的装置,其特征在于,所述处理器,还用于在确定所述用户的漫游账户余额大于预设阈值的情况下,确定用户在下一计费周期的业务授权额度;
    所述收发器,还用于将所述业务授权额度发送给所述受访地业务统计设备。
  29. 根据权利要求26至28任意一项所述的装置,其特征在于,所述收发器,还用于接收来自所述区块链网络的所述用户的漫游账户初始余额;
    所述处理器,还用于确定所述用户的漫游计费规则。
  30. 一种漫游计费的装置,其特征在于,包括:处理器和收发器;
    所述处理器,用于确定用户的漫游业务统计信息;
    所述收发器,用于将所述用户的漫游业务统计信息发送给受访地计费设备;
    所述收发器,还用于将所述用户的漫游业务统计信息发送给业务统计信息数据库;
    所述处理器,还用于对所述用户的漫游业务统计信息进行哈希运算得到漫游业务统计信息摘要;
    所述收发器,还用于将所述漫游业务统计信息摘要和所述用户对应的channel标识发送给区块链网络;其中,所述channel标识指示的channel中的多个peer节点以区块链的形式保存所述漫游业务统计信息摘要。
  31. 根据权利要求30所述的装置,其特征在于,所述收发器,还用于接收来受访地计费设备的授权额度,根据所述授权额度控制所述用户使用漫游业务。
  32. 根据权利要求30或31所述的装置,其特征在于,所述收发器,还用于将子数据库标识发送给所述业务统计信息数据库;其中,所述子数据库标识指示的子数据库位于所述业务统计信息数据库中,该子数据库用于保存所述用户的漫游业务统计信息。
  33. 根据权利要求32所述的装置,其特征在于,所述子数据库标识为所述用户对应的channel标识。
  34. 一种漫游计费的装置,其特征在于,包括处理器和收发器;
    所述收发器,用于接收来自受访地业务统计设备的用户的漫游业务统计信息摘要和channel标识;
    所述处理器,用于将所述用户的漫游业务统计信息摘要以区块链的形式写入所述channel标识指示的channel中的多个peer节点上;
    所述收发器,还用于接收来自受访地计费设备的所述用户的漫游账户余额、漫游计费规则和所述channel标识中的一种或多种;
    所述处理器,还用于将所述漫游账户余额和所述漫游计费规则中的一种或多种以区块链的形式写入所述channel标识指示的channel中的peer节点上;
    所述收发器,还用向归属地计费设备发送所述漫游账户余额、所述漫游计费规则和所述漫游业务统计信息摘要中的一种或多种。
  35. 根据权利要求34所述的装置,其特征在于,所述收发器,还用于接收来自归属地计费设备的所述用户的漫游账户初始余额和channel标识;
    所述处理器,还用于将所述用户的漫游账户初始余额以区块链的形式写入所述channel标识指示的channel中的多个peer节点上;
    所述收发器,还用于接收来自所述受访地计费设备的初始请求消息;其中,所述初始请求消息携带所述channel标识;
    所述收发器,还用于根据该请求消息将所述漫游账户初始余额发送给所述受访地计费设备。
  36. 根据权利要求34或35所述的装置,其特征在于,所述收发器,还用于接收来自归属地计费设备的第一请求消息,所述第一请求消息用于请求所述区块链发送所述用户的漫游账户余额、所述计费规则信息和所述漫游业务统计信息中的一种或多种。
  37. 一种漫游计费的装置,其特征在于,包括收发器和处理器;
    所述收发器,用于接收来自区块链网络的用户的漫游账户余额、漫游计费规则和漫游业务统计信息中的一种或多种;
    所述处理器,用于根据所述漫游计费规则和所述漫游业务统计信息对所述漫游账户余额的正确性进行验证。
  38. 根据权利要求36所述的装置,其特征在于,还包括:
    所述收发器,还用于向所述区块链网络发送请求消息;其中,所述请求消息携带所述用户的用户标识和channel标识,所述请求消息用于请求在所述channel标识指示的channel中请求所述用户的漫游账户余额、漫游计费规则和漫游业务统计信息中的一种或多种。
  39. 根据权利要求38所述的装置,其特征在于,
    所述处理器,还用于根据所述用户的归属地账户余额确定漫游账户初始余额;其中,所述漫游账户初始余额小于或等于所述归属地账户余额;
    所述收发器,还用于将所述漫游账户初始余额和所述用户对应的channel标识发送给所述区块链网络。
  40. 一种漫游的计费装置,其特征在于,包括处理器和收发器;
    所述处理器,用于确定用户的漫游业务统计信息;
    所述收发器,用于将所述用户的漫游业务统计信息发送给受访地计费设备;
    所述收发器,还用于将所述漫游业务统计信息和所述用户对应的channel标识发送给所述区块链网络;其中,所述channel标识指示的channel中的多个peer节点上以区块链的形式保存所述漫游业务统计信息,所述channel位于所述区块链网络中。
  41. 根据权利要求40所述的装置,其特征在于,
    所述收发器,还用于接收来自所述受访地计费设备的授权额度,根据所述授权额度控制所述用户使用漫游业务。
  42. 一种漫游计费装置,其特征在于,包括处理器和收发器;
    所述收发器,用于接收来自受访地业务统计设备的用户的漫游业务统计信息和channel标识;
    所述处理器,用于将所述漫游业务统计信息以区块链的形式写入所述channel标识指示的channel中的多个peer节点上;其中,所述多个peer节点位于所述channel标识指示的channel中;
    所述收发器,还用于接收来自受访地计费设备所述用户对应的channel标识、漫游账户余额、漫游计费规则中的一种或多种;
    所述处理器,还用于将所述漫游账户余额和所述漫游计费规则中的一种或多种以区块链的形式写入所述channel标识指示的channel中的多个peer节点上;
    所述收发器,还用于将所述漫游账户余额、所述漫游计费规则和所述漫游业务统计信息 中的一种或多种发送给归属地计费设备。
  43. 如权利要求42所述的装置,其特征在于,
    所述收发器,还用于接收来自归属地计费设备的所述用户的漫游账户初始余额和channel标识;
    所述处理器,还用于将所述用户的漫游账户初始余额以区块链的形式写入所述channel标识指示的channel中的多个peer节点上;
    所述收发器,还用于接收来自受访地计费设备的初始请求消息;
    所述收发器,还用于根据所述请求消息将所述漫游账户初始余额发送给所述受访地计费设备。
  44. 如权利要求43所述的装置,其特征在于,
    所述收发器,还用于接收来自归属地计费设备的请求消息,所述请求信息用于请求所述区块链网络发送所述漫游账户余额、所述漫游计费规则和所述漫游业务统计信息中的一种或多种。
PCT/CN2019/075623 2018-05-31 2019-02-21 一种漫游计费方法和装置 Ceased WO2019227978A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP19810172.7A EP3790293B1 (en) 2018-05-31 2019-02-21 Roaming charging method, apparatus, computer storage medium and computer program
US17/104,755 US11457111B2 (en) 2018-05-31 2020-11-25 Method and apparatus for verifying the correctness of a roaming account balance

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810552138.0A CN110557729B (zh) 2018-05-31 2018-05-31 一种漫游计费方法和装置
CN201810552138.0 2018-05-31

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/104,755 Continuation US11457111B2 (en) 2018-05-31 2020-11-25 Method and apparatus for verifying the correctness of a roaming account balance

Publications (1)

Publication Number Publication Date
WO2019227978A1 true WO2019227978A1 (zh) 2019-12-05

Family

ID=68697800

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/075623 Ceased WO2019227978A1 (zh) 2018-05-31 2019-02-21 一种漫游计费方法和装置

Country Status (4)

Country Link
US (1) US11457111B2 (zh)
EP (1) EP3790293B1 (zh)
CN (1) CN110557729B (zh)
WO (1) WO2019227978A1 (zh)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112449316B (zh) * 2019-08-30 2022-06-07 华为技术有限公司 一种漫游计费的处理方法、装置及系统
US11438824B2 (en) * 2020-02-27 2022-09-06 Cisco Technology, Inc. Wireless authorization and access network-neutral advice of charge techniques
CN111770463A (zh) * 2020-06-28 2020-10-13 中国联合网络通信集团有限公司 基于区块链的漫游计费方法及漫游计费节点
CN111866781B (zh) * 2020-07-28 2021-08-03 中国联合网络通信集团有限公司 基于区块链的漫游结算方法及漫游结算节点
CN112333650B (zh) * 2020-11-04 2022-03-18 中国联合网络通信集团有限公司 基于区块链网络的漫游资费调整方法、装置和系统
CN114095174B (zh) * 2021-10-19 2023-11-10 海南波罗密信息科技有限公司 基于区块链的产业统计数据采集存储方法、装置及设备
WO2023117118A1 (en) * 2021-12-23 2023-06-29 Telefonaktiebolaget Lm Ericsson (Publ) Reporting on services exposed by a visited network to a roaming ue
CN114567366B (zh) * 2022-02-17 2024-02-23 北京电信规划设计院有限公司 基于区块链的车载卫星通信资源共享方法
CN114612091A (zh) * 2022-03-17 2022-06-10 北京市商汤科技开发有限公司 自动对账方法及装置、电子设备和存储介质
US12519666B1 (en) 2024-12-06 2026-01-06 Vendia, Inc. Creating a block for a blockchain in an asynchronous blockchain environment
US12506605B1 (en) * 2025-07-31 2025-12-23 Citibank, N.A. Controlling access to cryptographic resources using offline storage

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110103232A1 (en) * 2009-11-03 2011-05-05 Kapil Sood Apparatus, system and method of prioritizing a management frame of a wireless network
CN107027111A (zh) * 2017-05-18 2017-08-08 电子科技大学 一种基于区块链的漫游话费记录和结算方法
CN107995003A (zh) * 2016-10-26 2018-05-04 中国移动通信有限公司研究院 国际漫游通信的计费和结算方法、相关装置及分布式系统

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103686652A (zh) * 2012-08-31 2014-03-26 阿尔卡特朗讯 在vplmn中为漫游用户设备进行独立漫游计费的方法与设备
CN103888926A (zh) * 2012-12-21 2014-06-25 中兴通讯股份有限公司 漫游本地业务的计费策略方法及装置
CN107294738B (zh) * 2017-06-12 2019-08-27 中国联合网络通信集团有限公司 通信计费的处理方法和装置
CN107240017B (zh) * 2017-07-20 2021-08-03 捷德(中国)科技有限公司 区块链交易管理系统及方法
US11122500B2 (en) * 2018-01-16 2021-09-14 Cisco Technology, Inc. Using a blockchain for optimized fast-secure roaming on WLANs
US10587760B1 (en) * 2018-09-06 2020-03-10 Amdocs Development Limited System, method, and computer program for providing device centric payment authorization in roaming conditions

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110103232A1 (en) * 2009-11-03 2011-05-05 Kapil Sood Apparatus, system and method of prioritizing a management frame of a wireless network
CN107995003A (zh) * 2016-10-26 2018-05-04 中国移动通信有限公司研究院 国际漫游通信的计费和结算方法、相关装置及分布式系统
CN107027111A (zh) * 2017-05-18 2017-08-08 电子科技大学 一种基于区块链的漫游话费记录和结算方法

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
See also references of EP3790293A4
XIE, JIANCHAO: "Blockchain will Change Operation Mode of Operators", C-ENTERPRISE MANAGEMENT, 31 August 2017 (2017-08-31), XP009524467 *

Also Published As

Publication number Publication date
EP3790293B1 (en) 2023-12-27
CN110557729B (zh) 2020-12-15
US11457111B2 (en) 2022-09-27
CN110557729A (zh) 2019-12-10
EP3790293A1 (en) 2021-03-10
EP3790293A4 (en) 2021-06-30
US20210084174A1 (en) 2021-03-18

Similar Documents

Publication Publication Date Title
WO2019227978A1 (zh) 一种漫游计费方法和装置
US11044664B2 (en) Enhanced interfaces for network slice selection based on charging rules
JP5384513B2 (ja) ルールベース階層型アカウントリソース管理システムおよび方法
CN110622573A (zh) 基于计费规则的网络切片选择
JP4964951B2 (ja) 無線ネットワークにおける区域内通話エリアの判定
JP7226858B2 (ja) ブロックチェーンを利用したローミングサービスの提供方法及びそのための装置
EP3087702B1 (en) Providing toll-free application data access
JP5380428B2 (ja) オンライン課金およびオフライン課金をサポートするための前払請求書作成機におけるレーティングタイマ制御の実施
CN110417561B (zh) 一种基于区块链的分布式计费方法、装置和系统
US8838488B1 (en) Maintaining a common identifier for a user session on a communication network
CN110505069A (zh) 一种生成定制化话单的方法及装置
KR102145578B1 (ko) 블록체인을 이용한 로밍 서비스 제공방법 및 그를 위한 장치
US11350255B2 (en) System for managing mobile station international subscriber directory number storage
CN104025632A (zh) Lte用户标识关联服务
CN107708082B (zh) 一种补充计费方法和装置
WO2019184632A1 (zh) 一种批价方法和装置
CN106936601B (zh) 一种业务计费方法及装置
CN117083836A (zh) 一种收费管理的方法、装置及系统
CN101217385B (zh) 暂存处理计费话单的方法和系统
US11108914B2 (en) Method and system for revenue maximization in a communication network
US7697672B2 (en) Configurable rating system for a telecommunications service provider
CN108270580A (zh) 在线计费的提醒方法、设备及系统
WO2020047749A1 (en) Apparatus and method for charge management
CN100496079C (zh) 一种根据业务计费类型实现路由的方法
US20250384418A1 (en) Systems and Methods for Settlement Interfaces in Cellular Networks Using Blockchain Technology

Legal Events

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

Ref document number: 19810172

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2019810172

Country of ref document: EP

Effective date: 20201203