Method and apparatus for verifying the correctness of a roaming account balance
AssigneeHuawei Technologies Co., Ltd.
InventorsBaolei Xu, Yuanyuan Zhang, Teng Shi
Life of this patent
Estimating the term…
Abstract
This application discloses a roaming charging method and apparatus. A blockchain network stores information related to roaming fee settlement, to reduce a possibility that the information related to roaming fee settlement is tampered with. In addition, a digital signature algorithm is used to sign roaming service statistics to generate an abstract, to further prevent the roaming service statistics from being tampered with. In this way, when a home carrier verifies a roaming account balance by using the roaming service statistics and a roaming charging rule, accuracy of a verification result can be ensured, and the home carrier can obtain an accurate roaming fee of a user.
Claims22
A roaming charging method, comprising:
- receiving, by a home charging device from a blockchain network, one or more of a roaming account balance, a roaming charging rule, and a roaming service statistics abstract that are for a user;
- receiving, by the home charging device, roaming service statistics for the user from a service statistics database;
- verifying, by the home charging device, that an abstract obtained based on the roaming service statistics for the user matches the roaming service statistics abstract;
- and
- verifying, by the home charging device based on the roaming service statistics and the roaming charging rule, correctness of the roaming account balance;
- wherein before receiving the one or more of the roaming account balance, the roaming charging rule, and the roaming service statistics abstract, the method further comprises sending, by the home charging device, a request message to the blockchain network, wherein the request message carries a user identifier of the user and a channel identifier, and the request message indicates a request for one or more of the roaming account balance, the roaming charging rule, and the roaming service statistics abstract that are for the user from a channel indicated by the channel identifier.
A home charging apparatus, comprising:
- a processor;
- a non-transitory memory storing a program to be executed in the processor;
- and
- a transceiver, wherein the transceiver is configured to
- receive, from a blockchain network, one or more of a roaming account balance, a roaming charging rule, and a roaming service statistics abstract that are for a user,
- receive roaming service statistics for the user from a service statistics database;
- and
- send a request message to the blockchain network, wherein the request message carries a user identifier for the user and a channel identifier, and the request message includes a request for one or more of the roaming account balance, the roaming charging rule, and the roaming service statistics abstract that are for the user from a channel indicated by the channel identifier;
- and
- the program comprises instructions to:
- verify that an abstract obtained based on the roaming service statistics for the user matches the roaming service statistics abstract;
- and verify, based on the roaming service statistics and the roaming charging rule, correctness of the roaming account balance.
A roaming charging system, comprising:
- a home charging device,
- a visited service statistics collection device,
- a visited charging device,
- a service statistics database,
- wherein the home charging device is configured to:
- receive, from a blockchain network, one or more of a roaming account balance, a roaming charging rule, and a roaming service statistics abstract that are for a user;
- receive, from the service statistics database, roaming service statistics for the user;
- verify that an abstract obtained based on the roaming service statistics for the user matches the roaming service statistics abstract;
- and
- verify, based on the roaming service statistics and the roaming charging rule, correctness of the roaming account balance;
- wherein the visited service statistics collection device is configured to:
- determine the roaming service statistics for the user;
- send the roaming service statistics for the user to the visited charging device;
- send the roaming service statistics for the user to the service statistics database;
- perform a hash operation on the roaming service statistics for the user, to obtain the roaming service statistics abstract;
- and
- send, to the blockchain network, the roaming service statistics abstract;
- wherein the visited charging device is configured to:
- receive, from the visited service statistics collection device, the roaming service statistics for the user;
- update, based on the roaming service statistics and the roaming charging rule for the user, an initial roaming account balance for the user, to obtain the roaming account balance;
- and
- send the roaming account balance for the user to the blockchain network;
- and
- wherein the service statistics database is configured to:
- receive, from the visited service statistics collection device, the roaming service statistics for the user;
- and
- send the roaming service statistics for the user to the home charging device.
A non-transitory computer-readable storage medium storing a program to be executed by a processor, the program including instructions for:
- receiving, by a home charging device from a blockchain network, one or more of a roaming account balance, a roaming charging rule, and a roaming service statistics abstract that are for a user;
- receiving, by the home charging device, roaming service statistics for the user from a service statistics database;
- verifying, by the home charging device, that an abstract obtained based on the roaming service statistics for the user matches the roaming service statistics abstract;
- and
- verifying, by the home charging device based on the roaming service statistics and the roaming charging rule, correctness of the roaming account balance;
- and
- sending, before receiving the one or more of the roaming account balance, the roaming charging rule, and the roaming service statistics abstract, by the home charging device, a request message to the blockchain network, wherein the request message carries a user identifier of the user and a channel identifier, and the request message indicates a request for one or more of the roaming account balance, the roaming charging rule, and the roaming service statistics abstract that are for the user from a channel indicated by the channel identifier.
Dependencies are inferred from the claim text.