# US 2021/0084174 A1 · Roaming Charging Method and Apparatus

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0084174 A1
- Document ID: US20210084174A1
- Status: Published application
- Kind: A1
- Application number: 17/104,755
- Filed: 2020-11-25
- Published: 2021-03-18
- Earliest claimed: 2018-05-31
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Baolei Xu; Yuanyuan Zhang; Teng Shi
- Web page: https://patentgrep.com/patent/US20210084174A1

## CPC

- H04M 15/8038: {Roaming or handoff}
- H04L 12/14: Charging, metering or billing arrangements specially adapted for data communications, e.g. authentication, authorisation and accounting [AAA] framework
- H04L 12/1407: {Policy-and-charging control [PCC] architecture}
- H04L 12/1417: {Advice of charge with threshold, e.g. user indicating maximum cost}
- H04M 15/00: Arrangements for metering, time-control or time indication {; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP}
- H04M 15/47: {Fraud detection or prevention means}
- H04M 15/48: {Secure or trusted billing, e.g. trusted elements or encryption}
- H04M 15/50: {for cross-charging network operators}
- H04M 15/58: {based on statistics of usage or network monitoring}
- H04M 15/66: {Policy and charging system}
- H04M 15/70: {Administration or customization aspects; Counter-checking correct charges}
- H04M 15/755: {Account identification}
- H04M 15/7556: {by SIM, e.g. smart card account in SCP, SDP or SN}
- H04M 15/85: {characterised by the type of condition triggering a notification}
- H04M 15/852: {Low balance or limit reached}
- H04M 15/853: {Calculate maximum communication time or volume}
- H04M 15/854: {Available credit}
- H04W 4/24: Accounting or billing
- H04W 8/04: Registration at HLR or HSS [Home Subscriber Server]
- H04W 8/12: between location registers or mobility servers
- H04M 2215/34: Roaming
- H04M: TELEPHONIC COMMUNICATION (circuits for controlling other apparatus via a telephone cable and not involving telephone switching apparatus G08)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)

## 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.

## Claims

### Claim 1

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.

### Claim 2 (depends on 1)

The method according to claim 1, 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.

### Claim 3 (depends on 2)

The method according to claim 2, wherein before sending the request message, the method further comprises:
determining, by the home charging device, an initial roaming account balance for the user based on a home account balance for the user; and
sending, by the home charging device to the blockchain network, the initial roaming account balance for the user and the channel identifier corresponding to the user, wherein a plurality of peer nodes on the channel indicated by the channel identifier store one or more of the initial roaming account balance, the roaming charging rule, and the roaming service statistics abstract in a form of a blockchain.

### Claim 4

A roaming charging method, comprising:
determining, by a visited service statistics collection device, roaming service statistics for a user;
sending, by the visited service statistics collection device, the roaming service statistics for the user to a visited charging device;
sending, by the visited service statistics collection device, the roaming service statistics for the user to a service statistics database;
performing, by the visited service statistics collection device, a hash operation on the roaming service statistics for the user, to obtain a roaming service statistics abstract; and
sending, by the visited service statistics collection device to a blockchain network, the roaming service statistics abstract.

### Claim 5 (depends on 4)

The method according to claim 4, further comprising:
sending, by the visited service statistics collection device to the blockchain network, a channel identifier corresponding to the user, wherein a plurality of peer nodes on a channel indicated by the channel identifier store the roaming service statistics abstract in a form of a blockchain.

### Claim 6 (depends on 5)

The method according to claim 5, wherein sending the roaming service statistics comprises:
sending, by the visited service statistics collection device, a sub-database identifier to the service statistics database, wherein a sub-database indicated by the sub-database identifier belongs to the service statistics database, and the sub-database is configured to store the roaming service statistics for the user.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the sub-database identifier is the channel identifier corresponding to the user.

### Claim 8 (depends on 4)

The method according to claim 4, further comprising:
receiving, by a visited charging device from the visited service statistics collection device, the roaming service statistics for the user;
updating, by the visited charging device, an initial roaming account balance for the user based on the roaming service statistics and a roaming charging rule for the user, to obtain a roaming account balance; and
sending, by the visited charging device, the roaming account balance for the user and a channel identifier corresponding to the user, to a blockchain network, wherein a plurality of peer nodes on a channel indicated by the channel identifier store the roaming account balance for the user in a form of a blockchain.

### Claim 9 (depends on 8)

The method according to claim 8, wherein before updating the initial roaming account balance for the user, the method further comprises:
receiving, by the visited charging device, the initial roaming account balance for the user from the blockchain network; and
determining, by the visited charging device, the roaming charging rule for the user.

### Claim 10

A roaming charging method, comprising:
receiving, by a blockchain network, a roaming service statistics abstract for a user and a channel identifier from a visited service statistics collection device;
writing, by the blockchain network in a form of a blockchain, the roaming service statistics abstract for the user to a plurality of peer nodes on a channel indicated by the channel identifier;
receiving, by the blockchain network from a visited charging device, a roaming account balance, a roaming charging rule, and the channel identifier that are for the user;
writing, by the blockchain network in a form of a blockchain, one or both of the roaming account balance and the roaming charging rule to the plurality of peer nodes on the channel indicated by the channel identifier; and
sending, by the blockchain network, one or more of the roaming account balance, the roaming charging rule, and the roaming service statistics abstract to a home charging device.

### Claim 11 (depends on 10)

The method according to claim 10, wherein before receiving the roaming service statistics abstract and the channel identifier that are for the user, the method further comprises:
receiving, by the blockchain network from the home charging device, an initial roaming account balance and the channel identifier that are for the user;
writing, by the blockchain network in a form of a blockchain, the initial roaming account balance for the user to the plurality of peer nodes on the channel indicated by the channel identifier;
receiving, by the blockchain network, an initial request message from the visited charging device; and
sending, by the blockchain network, the initial roaming account balance to the visited charging device based on the initial request message.

### Claim 12

A 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
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.

### Claim 13 (depends on 12)

The apparatus according to claim 12, wherein
the transceiver is configured to 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.

### Claim 14 (depends on 13)

The apparatus according to claim 13, wherein
the program comprises further instructions to determine an initial roaming account balance for the user based on a home account balance for the user, wherein the initial roaming account balance for the user is less than or equal to the home account balance for the user; and
the transceiver is further configured to send the initial roaming account balance for the user and the channel identifier corresponding to the user to the blockchain network, wherein a plurality of peer nodes on the channel indicated by the channel identifier store one or more of the initial roaming account balance, the roaming charging rule, and the roaming service statistics abstract in a form of a blockchain.

### Claim 15

A roaming charging apparatus, comprising:
a processor;
a non-transitory memory storing a program to be executed in the processor; and
a transceiver, wherein
the program comprises instructions to determine roaming service statistics for a user;
the transceiver is configured to send the roaming service statistics for the user to a visited charging device;
the transceiver is further configured to send the roaming service statistics for the user to a service statistics database;
the program comprises further instructions to perform a hash operation on the roaming service statistics for the user, to obtain a roaming service statistics abstract; and
the transceiver is further configured to send the roaming service statistics abstract to a blockchain network.

### Claim 16 (depends on 15)

The apparatus according to claim 15, wherein the transceiver is further configured to send, to the blockchain network, a channel identifier corresponding to the user, wherein a plurality of peer nodes on a channel indicated by the channel identifier store the roaming service statistics abstract in a form of a blockchain.

### Claim 17 (depends on 16)

The apparatus according to claim 16, wherein the transceiver is further configured to send a sub-database identifier to the service statistics database, wherein a sub-database indicated by the sub-database identifier belongs to the service statistics database, and the sub-database is configured to store the roaming service statistics for the user.

### Claim 18 (depends on 17)

The apparatus according to claim 17, wherein the sub-database identifier is the channel identifier corresponding to the user.

### Claim 19

A roaming 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 a roaming service statistics abstract for a user and a channel identifier from a visited service statistics collection device;
the program comprises instructions to write, in a form of a blockchain, the roaming service statistics abstract for the user to a plurality of peer nodes on a channel indicated by the channel identifier;
the transceiver is further configured to receive, from a visited charging device, one or more of a roaming account balance, a roaming charging rule, and the channel identifier that are for the user;
the program comprises further instructions to write, in a form of a blockchain, one or both of the roaming account balance and the roaming charging rule to the peer nodes on the channel indicated by the channel identifier; and
the transceiver is further configured to send one or more of the roaming account balance, the roaming charging rule, and the roaming service statistics abstract to a home charging device.

### Claim 20 (depends on 19)

The apparatus according to claim 19, wherein the transceiver is further configured to receive an initial roaming account balance for the user and the channel identifier from the home charging device;
the program comprises further instructions to write, in a form of a blockchain, the initial roaming account balance for the user to the plurality of peer nodes on the channel indicated by the channel identifier;
the transceiver is further configured to receive an initial request message from the visited charging device, wherein the initial request message carries the channel identifier; and
the transceiver is further configured to send the initial roaming account balance to the visited charging device based on the initial request message.

### Claim 21

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.

### Claim 22 (depends on 21)

The system according to claim 21, further comprising the blockchain network configured to:
receive the roaming service statistics abstract for the user from the visited service statistics collection device;
store the roaming service statistics abstract for the user;
receive, from a visited charging device, the roaming account balance, and the roaming charging rule that are for the user;
store one or both of the roaming account balance and the roaming charging rule; and
send one or more of the roaming account balance, the roaming charging rule, and the roaming service statistics abstract to the home charging device.
