[go: up one dir, main page]

CN111405505B - Bill processing method, system and storage medium for roaming service - Google Patents

Bill processing method, system and storage medium for roaming service Download PDF

Info

Publication number
CN111405505B
CN111405505B CN201910000454.1A CN201910000454A CN111405505B CN 111405505 B CN111405505 B CN 111405505B CN 201910000454 A CN201910000454 A CN 201910000454A CN 111405505 B CN111405505 B CN 111405505B
Authority
CN
China
Prior art keywords
bill
roaming service
blockchain
roaming
verification
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.)
Active
Application number
CN201910000454.1A
Other languages
Chinese (zh)
Other versions
CN111405505A (en
Inventor
王珂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
Research Institute of China Mobile Communication Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
Research Institute of China Mobile Communication 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 China Mobile Communications Group Co Ltd, Research Institute of China Mobile Communication Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201910000454.1A priority Critical patent/CN111405505B/en
Publication of CN111405505A publication Critical patent/CN111405505A/en
Application granted granted Critical
Publication of CN111405505B publication Critical patent/CN111405505B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • 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
    • 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/41Billing record details, i.e. parameters, identifiers, structure of call data record [CDR]
    • 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/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/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/73Validating 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/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
    • 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/854Available credit

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Databases & Information Systems (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

本发明实施例公开了一种漫游业务的账单处理方法,所述方法包括:获取漫游业务话单;根据智能合约,基于所述漫游业务话单生成账单;将所述账单发送给区块链网络;其中,所述账单,用于在通过所述区块链网络的共识验证之后,被记录在区块链中。本发明实施例还公开了一种漫游业务的账单处理系统及存储介质。

Figure 201910000454

The embodiment of the present invention discloses a bill processing method for a roaming service, the method includes: acquiring a roaming service bill; generating a bill based on the roaming service bill according to a smart contract; sending the bill to a blockchain network ; wherein, the bill is used to be recorded in the blockchain after passing the consensus verification of the blockchain network. The embodiment of the present invention also discloses a bill processing system and a storage medium for a roaming service.

Figure 201910000454

Description

一种漫游业务的账单处理方法、系统及存储介质A bill processing method, system and storage medium for roaming service

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种漫游业务的账单处理方法、系统及存储介质。The present invention relates to the field of communication technologies, and in particular, to a bill processing method, system and storage medium for roaming services.

背景技术Background technique

运营商A和运营商B之间开展国际漫游业务,当运营商A的用户漫游至运营商B所运营服务区域时,使用运营商B运营服务,所述用户向运营商A缴费,运营商A向运营商B支付漫游服务费用。此时,运营商A为归属地运营商,运营商B为漫游地运营商,两者身份可互换。现有实际流程中,涉及国际漫游(出访、来访)产生的语音、短信、数据流量等业务量,由清算中心负责全球移动通信系统协会(Global System for Mobile Communications assembly,GSMA)标准进行漫游业务话单校验;并根据签好的合约(话务量、业务量、单价及优惠)生成应收账款的账单及冲销报表,与相关国际运营商进行对账。The international roaming service is carried out between operator A and operator B. When a user of operator A roams to the service area operated by operator B, the service provided by operator B is used. The user pays a fee to operator A, and operator A Pay operator B for roaming service. At this time, operator A is the home operator, and operator B is the roaming operator, and their identities are interchangeable. In the existing actual process, the voice, short message, data traffic and other traffic generated by international roaming (visiting and visiting) are involved. Single verification; and according to the signed contract (traffic volume, business volume, unit price and discount) to generate accounts receivable bills and write-off reports, and reconcile with relevant international operators.

但是,现有技术可能存在以下问题中的一个或多个:However, the prior art may suffer from one or more of the following problems:

(1)不同对接方运营商生成漫游业务话单格式均满足GSMA标准,但账单格式可能不同,未做到完全的标准化(仅几家大的结算中心有规范格式,全球500多家运营商的账单格式并未做标准化);其出账方式、对账方式无法统一,需人工逐一适配,效率低。(1) The CDR formats for roaming services generated by different counterparty operators all meet the GSMA standards, but the bill formats may be different and are not fully standardized (only a few large settlement centers have standardized formats, and more than 500 operators around the world have The billing format has not been standardized); its billing method and account reconciliation method cannot be unified, and it needs to be manually adapted one by one, which is inefficient.

(2)与不同运营商签订了计费合约作为计费依据,若双方所使用的合约不一致或篡改,则会增加争议及相应申告处理的成本。(2) Signed billing contracts with different operators as the billing basis. If the contracts used by both parties are inconsistent or tampered with, it will increase the cost of disputes and corresponding declaration processing.

(3)双方漫游业务话单和账单需要对账,各自需维护自己的账本,若漫游业务话单及账本在传输或存放的过程中出错或被篡改造成不一致,会增加争议及相应申告处理的成本。(3) Both parties need to reconcile their roaming service CDRs and bills, and each needs to maintain its own account book. If the roaming service CDR and account book are inconsistent due to errors or tampering in the process of transmission or storage, disputes and corresponding declarations will be increased. cost.

(4)归属地运营商并不审核漫游业务话单内容的真实性,如话单内容有问题或终端用户对其有异议,如时间精度差异、时长、话单状态(接通、未接通)不一致,仅在用户收到归属地运营商发来的收费详单后才可能发现进而提出申告。如问题出现并非独立事件而为归属地运营商计费系统故障,则可能因发现、沟通、解决不及时影响到更多用户。(4) The home operator does not review the authenticity of the content of the roaming service CDR. If there is a problem with the CDR content or the end user disagrees with it, such as time precision difference, duration, CDR status (connected, not connected) ) are inconsistent, and the user may find out and file an application only after receiving the detailed bill of charges sent by the home operator. If the problem is not an independent event but a failure of the home operator's billing system, it may affect more users due to untimely discovery, communication, and resolution.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明实施例提供一种漫游业务的账单处理方法、系统及存储介质。In view of this, embodiments of the present invention provide a bill processing method, system and storage medium for roaming services.

本发明的技术方案是这样实现的:The technical scheme of the present invention is realized as follows:

一种漫游业务的账单处理方法,所述方法包括:A bill processing method for a roaming service, the method comprising:

获取漫游业务话单;Obtain roaming service bills;

根据智能合约,基于所述漫游业务话单生成账单;According to the smart contract, generate a bill based on the roaming service bill;

将所述账单发送给区块链网络;其中,所述账单,用于在通过所述区块链网络的共识验证之后,被记录在区块链中。Sending the bill to the blockchain network; wherein the bill is used to be recorded in the blockchain after passing the consensus verification of the blockchain network.

上述方案中,所述方法还包括:In the above scheme, the method also includes:

将所述漫游业务话单发送给所述区块链网络;其中,所述漫游业务话单和所述账单,用于在共同通过所述区块链网络的共识验证之后,一起被记录在区块链中。Send the roaming service bill to the blockchain network; wherein, the roaming service bill and the bill are used to be recorded together in the blockchain after passing the consensus verification of the blockchain network. in the blockchain.

上述方案中,所述根据智能合约,基于所述漫游业务话单生成账单之前,还包括:In the above solution, before generating the bill based on the roaming service bill according to the smart contract, the method further includes:

将所述漫游业务话单发送给所述区块链网络;其中,所述漫游业务话单,用于在通过所述区块链网络的共识验证之后,被记录在区块链中。Sending the roaming service bill to the blockchain network; wherein the roaming service bill is used to be recorded in the blockchain after passing the consensus verification of the blockchain network.

上述方案中,所述智能合约包括:根据漫游地运营商与归属地运营商之间的计费协议生成的智能合约。In the above solution, the smart contract includes: a smart contract generated according to a billing agreement between the roaming operator and the home operator.

上述方案中,所述获取漫游业务话单,包括:In the above solution, the obtaining of the roaming service bills includes:

获取归属地运营商通过第一重验证后的漫游业务话单。Obtain the roaming service CDR of the home operator after passing the first authentication.

上述方案中,所述根据智能合约,基于所述漫游业务话单生成账单之前,还包括:In the above solution, before generating the bill based on the roaming service bill according to the smart contract, the method further includes:

对所述漫游业务话单进行第二重验证;performing a second verification on the roaming service CDR;

若确定所述第二重验证成功,则执行根据智能合约,基于所述漫游业务话单生成账单的操作。If it is determined that the second re-verification is successful, an operation of generating a bill based on the roaming service bill according to the smart contract is performed.

上述方案中,对所述账单和所述漫游业务话单的共识验证包括:In the above solution, the consensus verification of the bill and the roaming service bill includes:

对所述漫游业务话单和所述账单进行共识算法的验证;Verifying the consensus algorithm on the roaming service bill and the bill;

对所述漫游业务话单的认可标识进行验证;verifying the approval identifier of the roaming service CDR;

根据智能合约和所述漫游业务话单,对所述账单的生成逻辑进行验证。The generation logic of the bill is verified according to the smart contract and the roaming service bill.

上述方案中,所述根据智能合约,基于所述漫游业务话单生成账单,包括:In the above solution, according to the smart contract, the bill is generated based on the roaming service bill, including:

确定第一区块链节点;Determine the first blockchain node;

所述第一区块链节点根据智能合约,基于所述漫游业务话单生成账单;The first blockchain node generates a bill based on the roaming service bill according to the smart contract;

所述方法还包括:The method also includes:

第二区块链节点对所述账单进行共识验证。The second blockchain node performs consensus verification on the bill.

本发明实施例还提供了一种漫游业务的账单处理方法,所述方法包括:The embodiment of the present invention also provides a bill processing method for roaming service, the method includes:

接收漫游地运营商发送的漫游业务话单;Receive the roaming service CDR sent by the roaming operator;

对所述漫游业务话单进行第一重验证;performing a first re-verification on the roaming service bill;

若确定所述第一重验证成功,将所述漫游业务话单发送给区块链网络。If it is determined that the first re-verification is successful, the roaming service bill is sent to the blockchain network.

上述方案中,所述方法还包括:In the above scheme, the method also includes:

若确定所述第一重验证失败,向所述漫游地运营商返回申告。If it is determined that the first re-authentication fails, a report is returned to the roaming operator.

上述方案中,所述方法还包括:In the above scheme, the method also includes:

获取区块链上的账单;Get the bill on the blockchain;

基于所述账单,与所述漫游地运营商进行后续支付结算操作。Based on the bill, a subsequent payment settlement operation is performed with the roaming operator.

本发明实施例还提供了一种计算机存储介质,所述存储介质中有计算机可执行指令,所述计算机可执行指令被处理器执行实现本发明实施例任一项所述漫游业务的处理方法。An embodiment of the present invention further provides a computer storage medium, the storage medium contains computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method for processing a roaming service according to any one of the embodiments of the present invention.

本发明提供的漫游业务的处理方法、系统及存储介质,通过获取漫游业务话单;根据智能合约,基于所述漫游业务话单生成账单,能够将计费协议以智能合约的形式存储执行,由多个运营商(即区块链节点)共同维护,减少了双方使用的合约不一致或被篡改的可能性及相应申告的处理成本。The roaming service processing method, system and storage medium provided by the present invention can obtain the roaming service phone bill; generate a bill based on the roaming service phone bill according to the smart contract, and can store and execute the charging agreement in the form of a smart contract. The joint maintenance of multiple operators (ie, blockchain nodes) reduces the possibility of inconsistent or tampered contracts used by both parties and the processing cost of corresponding declarations.

本发明可以将所述账单发送给区块链网络;其中,所述账单,用于在通过所述区块链网络的共识验证之后,被记录在区块链中;由于所述账单经过区块链网络的区块链节点进行共识验证,所述区块链网络的各区块链节点使用同一个账本,避免了单个节点单独记录账本的情况,从而避免了单一或几个节点因被控制或被贿赂等情况而记假账的可能性;从而保证了账单的可信任性以及唯一性。The present invention can send the bill to the block chain network; wherein, the bill is used to be recorded in the block chain after passing the consensus verification of the block chain network; since the bill passes through the block chain The blockchain nodes of the blockchain network perform consensus verification, and each blockchain node of the blockchain network uses the same ledger, which avoids the situation that a single node records the ledger separately, thereby avoiding the single or several nodes being controlled or blocked. The possibility of false accounting due to bribery and other circumstances; thus ensuring the credibility and uniqueness of the bill.

本发明中,由于引入了区块链网络对所述漫游业务话单生成账单,相对于用单个运营商计算账单来说,可以方便双方运营商查询所述账单及进行后续的支付结算处理等。In the present invention, since a blockchain network is introduced to generate bills for the roaming service bills, compared to calculating bills with a single operator, it is convenient for both operators to query the bills and perform subsequent payment and settlement processing.

附图说明Description of drawings

图1为本发明漫游业务的处理方法的流程示意图;1 is a schematic flowchart of a method for processing a roaming service according to the present invention;

图2为本发明漫游业务的处理方法的流程示意图;2 is a schematic flowchart of a method for processing a roaming service according to the present invention;

图3为本发明漫游业务的处理方法的流程示意图;3 is a schematic flowchart of a method for processing a roaming service according to the present invention;

图4为本发明漫游业务的处理方法的流程示意图;4 is a schematic flowchart of a method for processing a roaming service according to the present invention;

图5为本发明漫游业务的处理方法的流程示意图;5 is a schematic flowchart of a method for processing a roaming service according to the present invention;

图6为本发明一实施例中区块链的示意图;6 is a schematic diagram of a blockchain in an embodiment of the present invention;

图7为本发明漫游业务的处理方法的流程示意图;7 is a schematic flowchart of a method for processing a roaming service according to the present invention;

图8为本发明漫游业务的处理方法的流程示意图;8 is a schematic flowchart of a method for processing a roaming service according to the present invention;

图9为本发明一实施例中漫游业务的处理系统结构示意图;9 is a schematic structural diagram of a system for processing a roaming service in an embodiment of the present invention;

图10为本发明一实施例中漫游业务的处理方法硬件结构示意图。FIG. 10 is a schematic diagram of a hardware structure of a method for processing a roaming service in an embodiment of the present invention.

具体实施方式Detailed ways

可以理解的是,区块链(Blockchain)是一种由多方共同维护,使用密码学保证传输和访问安全,能够实现数据一致存储、难以篡改、防止抵赖的记账技术,也称为分布式账本技术(Distributed Lodger Technology)。It is understandable that the blockchain is an accounting technology that is jointly maintained by multiple parties, uses cryptography to ensure transmission and access security, and can achieve consistent data storage, difficult to tamper, and prevent denial. It is also known as distributed ledger. Technology (Distributed Lodger Technology).

本发明实施例提供的漫游业务的处理方法,应用于区块链网络中;所述区块链网络包括多个区块链节点;各区块链节点以P2P方式互联构成区块链网络;其中,所述区块链保存于区块链网络中的各区块链节点。The roaming service processing method provided by the embodiment of the present invention is applied to a blockchain network; the blockchain network includes a plurality of blockchain nodes; each blockchain node is interconnected in a P2P manner to form a blockchain network; wherein, The blockchain is stored in each blockchain node in the blockchain network.

这里,所述区块链节点包括:运营商节点。Here, the blockchain nodes include: operator nodes.

如图1所示,本发明实施例提供了一种漫游业务的账单处理方法,应用于所述区块链节点,所述方法包括以下步骤。As shown in FIG. 1 , an embodiment of the present invention provides a bill processing method for a roaming service, which is applied to the blockchain node, and the method includes the following steps.

步骤101,获取漫游业务话单。Step 101: Obtain a roaming service bill.

这里,所述漫游业务话单可由所述漫游地运营商生成。Here, the roaming service bill may be generated by the roaming operator.

进一步地,所述步骤101,包括:Further, the step 101 includes:

获取归属地运营商通过第一重验证后的漫游业务话单。Obtain the roaming service CDR of the home operator after passing the first authentication.

这里,所述第一重验证为归属运营商对漫游地运营商生成的漫游业务话单的一个或多个维度的验证,例如,所述第一重验证包括:Here, the first re-verification is the home operator's verification of one or more dimensions of the roaming service CDR generated by the roaming operator. For example, the first re-verification includes:

归属地运营商可以是对所述漫游业务话单是否携带漫游地运营商的认可标识的验证;所述认可标识为表征运营商身份及认可的标识信息,该标识信息可为该运营商的数字签名或字符串信息。The home operator can verify whether the roaming service CDR carries the roaming operator's approval identifier; the approval identifier is identification information representing the operator's identity and approval, and the identification information can be the operator's number Signature or string information.

这里,所述第一重验证还可包括以下至少之一:Here, the first re-authentication may further include at least one of the following:

归属地运营商对所述漫游业务话单的数据内容是否正确进行验证;The home operator verifies whether the data content of the roaming service bill is correct;

归属地运营商对所述漫游业务话单的数据格式是否符合GSMA标准进行验证。The home operator verifies whether the data format of the roaming service CDR conforms to the GSMA standard.

若第一重验证成功,可添加所述归属地运营商的认可标识到所述漫游业务话单。If the first re-verification is successful, the approval identifier of the home operator may be added to the roaming service bill.

这里,所述漫游业务话单包括:不同运营商的地区之间的国内漫游,也可包括国际间漫游业务所产生的业务漫游话单。Here, the roaming service bills include: domestic roaming between regions of different operators, and may also include service roaming bills generated by international roaming services.

具体地,区块链节点获取通过归属地运营商第一重验证的所述漫游业务话单,如此,确保进入到区块链网络用于生成账单的漫游业务话单的正确性和合法性,减少错误及非法漫游业务话单导致的账单生成的异常现象。Specifically, the blockchain node obtains the roaming service CDR that has passed the first re-verification of the home operator, so as to ensure the correctness and legitimacy of the roaming service CDR entered into the blockchain network for bill generation, Reduce the abnormal phenomenon of bill generation caused by wrong and illegal roaming service bills.

步骤103,根据智能合约,基于所述漫游业务话单生成账单。Step 103, according to the smart contract, generate a bill based on the roaming service bill.

这里,所述智能合约包括:根据漫游地运营商与归属地运营商之间的计费协议生成的智能合约。所述智能合约的内容包括基于所述计费协议抽象的生成账单的生成逻辑。所述生成逻辑包括:基于漫游业务的类型、漫游业务提供的数据流量、漫游业务的使用时长等漫游业务参数,所对应的计费参数,生成计费条目。所述生成逻辑还可包括:基于使用漫游业务的通信账号所订阅的业务及通信账号的等级所对应的计费参数,生成计费条目等。所述计费参数包括:费率和/或计费方式等。Here, the smart contract includes: a smart contract generated according to the billing agreement between the roaming operator and the home operator. The content of the smart contract includes generation logic for generating bills abstracted based on the billing protocol. The generating logic includes: generating a charging entry based on roaming service parameters such as the type of the roaming service, the data flow provided by the roaming service, the usage time of the roaming service, and the corresponding charging parameters. The generating logic may further include: generating a charging entry based on the service subscribed by the communication account using the roaming service and the charging parameter corresponding to the level of the communication account. The charging parameters include: rate and/or charging method, etc.

在一些实施例中,所述生成逻辑中还可以限定与生成计费条目的费用减免条目或费用超额增收条目等。当然以上是对生成逻辑进行举例说明,具体实现时不限于以上举例。In some embodiments, the generation logic may further define and generate a fee reduction entry or a fee excess increase entry, etc. of the billing entry. Of course, the above is an example to illustrate the generation logic, and the specific implementation is not limited to the above example.

这里,所述智能合约可以是预先保存在区块链网络节点的智能合约;也可以是根据运营商与运营商之间的计费协议生成的新智能合约。Here, the smart contract may be a smart contract pre-stored in a blockchain network node; it may also be a new smart contract generated according to the billing agreement between the operator and the operator.

步骤105,将所述账单发送给区块链网络;其中,所述账单,用于在通过所述区块链网络的共识验证之后,被记录在区块链中。Step 105, sending the bill to the blockchain network; wherein, the bill is used to be recorded in the blockchain after passing the consensus verification of the blockchain network.

这里,将所述账单发送给区块链网络,可以是通过广播的方式在整个区块链网络内发送,也可以是通过组播的方式在区块链的特定区块链节点形成组内发送;这里,发送给区块链网络,可以是发送给区块链网络中除生成所述账单的区块链节点外的任何区块链节点。Here, the bill is sent to the blockchain network, which can be sent in the entire blockchain network by means of broadcasting, or it can be sent in a group formed by specific blockchain nodes of the blockchain by means of multicast. ; Here, sending to the blockchain network can be sent to any blockchain node in the blockchain network except the blockchain node that generates the bill.

本实施例中,通过归属地运营商对所述漫游业务话单的第一重验证,可以使得漫游业务话单获得漫游地运营商以及归属地运营商的信任。In this embodiment, through the first re-verification of the roaming service bill by the home operator, the roaming service bill can be trusted by the roaming operator and the home operator.

本实施例中,由于区块链网络对所述账单进行了共识验证,可以保证账单的准确性。In this embodiment, since the blockchain network performs consensus verification on the bill, the accuracy of the bill can be guaranteed.

本实施例中,由于计费协议可以以智能合约的形成进行存储,可以由多方运营商即区块链节点进行共同维护,减少了两方所使用合约不一致或被篡改的可能性及相应处理成本。In this embodiment, since the billing agreement can be stored in the form of a smart contract, it can be jointly maintained by multi-party operators, namely blockchain nodes, which reduces the possibility of inconsistent or tampered contracts used by the two parties and the corresponding processing costs. .

本实施例中,由于是区块链节点获取漫游地运营商生成的漫游业务话单,基于智能合约,生成账单;即所述账单是在区块链节点中生成而并非是在漫游地生成;且所述账单根据智能合约生成,因而使得不同运营商的账单采用了同一个格式,降低了由于使用不同格式所述带来的争议以及所申告的次数。In this embodiment, since it is the blockchain node that obtains the roaming service bill generated by the roaming operator, the bill is generated based on the smart contract; that is, the bill is generated in the blockchain node rather than in the roaming place; And the bill is generated according to the smart contract, so that the bills of different operators adopt the same format, which reduces the disputes caused by the use of different formats and the number of declarations.

本实施例中,由于所述账单用于在通过所述区块链网络的共识验证之后,被记录在区块链中;即,所述账本是通过区块链网络中的各节点或至少一部分区块链节点共同验证过的,因而使得区块链网络中的各节点或者一部分节点都参与账单生成监督过程;且由于所述区块链是保存于区块链网络中的各节点中。如此,所述区块链网络中的各节点都保存这同一账本,能够防止区块链网络中的个别节点的篡改或伪造数据,避免了任何一个节点单独记录账本数据,从而避免了单一或者几个节点因被控制或被贿赂等情况而记假账的可能性。In this embodiment, since the bill is used to be recorded in the blockchain after passing the consensus verification of the blockchain network; that is, the ledger is passed through each node or at least a part of the blockchain network. The blockchain nodes have been jointly verified, so that each node or part of the nodes in the blockchain network participates in the bill generation supervision process; and because the blockchain is stored in each node in the blockchain network. In this way, each node in the blockchain network saves the same ledger, which can prevent individual nodes in the blockchain network from tampering or forging data, and prevent any node from individually recording ledger data, thereby avoiding single or several The possibility of a node accounting for false accounting due to being controlled or bribed.

本实施例中,由于所述区块链是保存于所述区块链网络中的各节点、区块链中记录中账单,因而可以使得用户通过区块链节点上对应的客户端查看账单数据,方便结算执行人员或终端用户查看,以及支付等处理操作。In this embodiment, since the blockchain is stored in each node in the blockchain network and the bills recorded in the blockchain, the user can view the bill data through the corresponding client on the blockchain node , which is convenient for settlement executives or end users to view, as well as payment and other processing operations.

如图2所示,所述方法还包括:As shown in Figure 2, the method further includes:

步骤107,将所述漫游业务话单发送给所述区块链网络;其中,所述漫游业务话单和所述账单,用于在共同通过所述区块链网络的共识验证之后,一起被记录在区块链中。Step 107: Send the roaming service bill to the blockchain network; wherein, the roaming service bill and the bill are used to be processed together after passing the consensus verification of the blockchain network. Recorded in the blockchain.

这里,所述区块链节点将所述漫游业务话单生成账单,可将所述漫游业务话单和所述账单对应记录,将生成的记录发送给区块链网络。此处的对应记录,包括以下至少之一:Here, the blockchain node generates a bill from the roaming service bill, and may record the corresponding record of the roaming service bill and the bill, and send the generated record to the blockchain network. The corresponding record here, including at least one of the following:

将漫游业务话单及与该漫游业务账单生成的账单归属到同一条区块链记录中;The roaming service bill and the bill generated by the roaming service bill are attributed to the same blockchain record;

将漫游业务话单存储在区块链记录A中,将账单存储在区块链记录B中,同时在区块链记录B中存储有区块链记录A的信息,如此,后续查询到区块链记录B之后,就可以根据区块链记录B中的区块链记录A的信息,搜索到区块链A并获得所述漫游业务话单。The roaming service bill is stored in the blockchain record A, the bill is stored in the blockchain record B, and the information of the blockchain record A is stored in the blockchain record B. In this way, the block chain is queried later. After the chain record B, according to the information of the block chain record A in the block chain record B, the block chain A can be searched and the roaming service CDR can be obtained.

这里,对所述漫游业务话单和所述账单的共识验证包括:Here, the consensus verification on the roaming service CDR and the bill includes:

对所述账单和所述漫游业务话单进行共识算法的验证;Verifying the consensus algorithm on the bill and the roaming service bill;

对所述漫游业务话单的认可标识进行验证;verifying the approval identifier of the roaming service CDR;

根据智能合约和所述漫游业务话单,对所述账单的生成逻辑进行验证。The generation logic of the bill is verified according to the smart contract and the roaming service bill.

这里,对漫游业务话单和账单的共识验证包括以下至少之一:Here, the consensus verification of the roaming service CDR and bill includes at least one of the following:

对漫游业务话单的数据格式进行验证;Verify the data format of the roaming service CDR;

对所述账单的数据格式进行验证Validate the data format of the bill

对漫游业务话单是否记录在区块链中进行验证。Verify whether the roaming service CDR is recorded in the blockchain.

这里,所述共识算法为区块链中预先设置的共识算法,例如,可以是拜占庭容错PBFT算法、工作量证明POW算法,等等。对所述账单和所述漫游业务话单进行共识算法的验证,若验证通过,可以使得某一区块链节点中的话单和漫游业务话单与其它区块链节点的话单和漫游业务账单保持一致。Here, the consensus algorithm is a consensus algorithm preset in the blockchain, for example, it can be a Byzantine fault-tolerant PBFT algorithm, a proof-of-work POW algorithm, and so on. Perform consensus algorithm verification on the bill and the roaming service bill. If the verification is passed, the bill and roaming business bill in a certain blockchain node can be kept with the bills and roaming business bills of other blockchain nodes. Consistent.

这里,对漫游业务话单的认可标识进行验证,包括:对漫游业务话单所携带的归属地运营商的认可标识进行验证,以及对漫游业务话单所携带的漫游地运营商的认可标识进行验证。Here, verifying the approval identifier of the roaming service CDR includes: verifying the approval identifier of the home operator carried in the roaming service CDR, and verifying the approval identifier of the roaming operator carried in the roaming service CDR. verify.

这里,对所述漫游业务话单的数据格式进行验证,主要是验证所述漫游业务话单是否符合GSMA标准。Here, the verification of the data format of the roaming service bill is mainly to verify whether the roaming service bill complies with the GSMA standard.

本实施例中,由于对所述漫游业务话单进行了基于区块链网络的共识验证,因而可以保证漫游业务话单获得区块链各节点的信任。In this embodiment, since the consensus verification based on the blockchain network is performed on the roaming service bill, it can be ensured that the roaming service bill is trusted by each node of the blockchain.

本实施例中,由于可再一次对漫游业务话单的认可标识进行验证,因而可以降低在传输或者存放过程中出现被篡改的几率。In this embodiment, since the approval identifier of the roaming service bill can be verified again, the probability of being tampered during transmission or storage can be reduced.

本实施例中,由于可以将所述漫游业务话单及相应的账单作为对应记录进行保存,因而也有利于根据智能合约对所述账单的生成逻辑进行验证。In this embodiment, since the roaming service bill and the corresponding bill can be saved as corresponding records, it is also beneficial to verify the generation logic of the bill according to the smart contract.

在一可选实施例中,上述步骤105,还可以是将所述漫游业务话单和所述账单发送给区块链网络;如此,可将所述漫游业务话单和对应的账单作为一条区块链记录,保存在同一个区块链记录中。如此,能够进一步方便根据所述智能合约对所述账单的生成逻辑进行验证。In an optional embodiment, in the above step 105, the roaming service bill and the bill can also be sent to the blockchain network; in this way, the roaming service bill and the corresponding bill can be regarded as one area. A blockchain record, kept in the same blockchain record. In this way, it can be further facilitated to verify the generation logic of the bill according to the smart contract.

如图3所示,在所述步骤103之前,还包括:As shown in FIG. 3, before the step 103, it also includes:

步骤102,将所述漫游业务话单发送给所述区块链网络;其中,所述漫游业务话单,用于在通过所述区块链网络的共识验证之后,被记录在区块链中。Step 102: Send the roaming service bill to the blockchain network; wherein, the roaming service bill is used to be recorded in the blockchain after passing the consensus verification of the blockchain network .

所述步骤103,包括:根据智能合约,基于共识验证后的漫游业务话单生成账单。The step 103 includes: according to the smart contract, generating a bill based on the roaming service bill after consensus verification.

这里,在所述漫游业务话单生成合约之前,对所述漫游业务话单进行共识验证,可以将共识验证后的所述漫游业务话单存储在区块链记录A中;当生成账单之后,将所述将账单存储在区块链记录B中,同时在区块链记录B中存储有区块链记录A的信息,如此,后续查询到区块链记录B之后,就可以根据区块链记录B中的区块链记录A的信息,搜索到区块链A并获得所述漫游业务话单。Here, before the roaming service CDR is generated, the consensus verification is performed on the roaming service CDR, and the roaming service CDR after consensus verification can be stored in the blockchain record A; after the bill is generated, The said bill is stored in the blockchain record B, and the information of the blockchain record A is stored in the blockchain record B. In this way, after the subsequent query to the blockchain record B, it can be Record the information of block chain record A in record B, search block chain A and obtain the roaming service bill.

本实施例中,将所述漫游业务话单在生成账单前,将所述漫游业务话单发送给区块链网络进行共识,可以进一步确保漫游业务在生成账单前的准确性。In this embodiment, before generating the bill, the roaming service bill is sent to the blockchain network for consensus, which can further ensure the accuracy of the roaming service before generating the bill.

在一可选实施例中,上述步骤102中,还可以是将所述漫游业务话单在通过所述区块链网络的共识验证之后,将所述漫游业务话单对应的哈希值记录在区块链中;此时,所述漫游业务话单则可以保存在区块链的一个节点中。如此,在后续处理中,可依据哈希值从该节点中调用对应的漫游业务话单。如此,可使得区块链中对所述漫游业务话单的记录所使用的存储空间更少,从而节省系统的资源。In an optional embodiment, in the above step 102, after the roaming service CDR passes the consensus verification of the blockchain network, the hash value corresponding to the roaming service CDR may be recorded in the In the blockchain; at this time, the roaming service bill can be stored in a node of the blockchain. In this way, in the subsequent processing, the corresponding roaming service bill can be called from the node according to the hash value. In this way, less storage space is used for the record of the roaming service bill in the blockchain, thereby saving system resources.

如图4所示,根据智能合约,基于所述漫游业务话单生成账单之前,还包括:As shown in Figure 4, according to the smart contract, before the bill is generated based on the roaming service CDR, it further includes:

步骤202,对所述漫游业务话单进行第二重验证。Step 202: Perform a second re-verification on the roaming service bill.

具体地,区块链各节点接收漫游业务话单,转发前对所述漫游业务话单进行第二重验证;例如,对所述漫游业务话单的认可标识进行验证,若所述漫游业务话单中包括漫游地运营商的认可标识以及归属地运营商的认可标识,则验证成功;若验证成功,将所述漫游业务话单通过广播的方式在所述区块链网络中进行转发;且,可以调用相应的智能合约将所述漫游业务话单生成账单。Specifically, each node of the blockchain receives the roaming service CDR, and performs a second verification on the roaming service CDR before forwarding; If the verification is successful, if the verification is successful, the roaming service bill is forwarded in the blockchain network by broadcasting; and , the corresponding smart contract can be invoked to generate a bill for the roaming service bill.

这里,所述通过第二重验证还可以是对所述漫游业务话单的数据格式进行验证;或者,还可以对用户在某段时间内的漫游业务话单是否已经记录在区块链中进行验证。Here, passing the second verification may also be to verify the data format of the roaming service CDR; or, it may also be to verify whether the user's roaming service CDR within a certain period of time has been recorded in the blockchain. verify.

本实施例中,通过上述第二重验证,可以使得所述漫游业务话单获得区块链中各节点的信任。且,由于进行了第二重验证,因而减少了由运营商传输到区块链网络的过程中被篡改的可能,进一步减少了异常现象的出现。In this embodiment, through the second re-verification, the roaming service bill can be trusted by each node in the blockchain. Moreover, due to the second-level verification, the possibility of tampering during the transmission from the operator to the blockchain network is reduced, and the occurrence of abnormal phenomena is further reduced.

如图5所示,所述步骤103,包括:As shown in Figure 5, the step 103 includes:

步骤1031,确定第一区块链节点;Step 1031, determine the first blockchain node;

步骤1032,所述第一区块链节点根据智能合约,基于所述漫游业务话单生成账单;Step 1032, the first blockchain node generates a bill based on the roaming service bill according to the smart contract;

所述方法还包括:The method also includes:

步骤106,第二区块链节点对所述账单进行共识验证。Step 106, the second blockchain node performs consensus verification on the bill.

这里,所述第二区块链节点与所述第一区块链节点可以是不同或者相同的区块链节点。Here, the second blockchain node and the first blockchain node may be different or the same blockchain node.

这里,可以理解的是,上述步骤1032的过程可认为是记账的过程。Here, it can be understood that the process of the above-mentioned step 1032 may be regarded as an accounting process.

这里,可以理解的是,可通过确定区块链网络中任意一个或几个区块链节点作为第一区块链节点。Here, it can be understood that any one or several blockchain nodes in the blockchain network can be determined as the first blockchain node.

在一些实施例中,所述区块链网络包括多个区块链节点,分别记为区块链节点1、区块链节点2、……区块链节点n。预先设置选取区块链节点1进行第一次记账;选取区块链节点进行第二次记账;……;选取区块链节点m进行第m次记账;其中n、m为自然数;m小于或等于n。如此,当第一次记账时,所述区块链节点1为第一区块链节点,区块链网络中的其它区块链节点中的部分或者全部为第二区块链节点;当第二次记账时,所述区块链节点2为第一区块链节点,区块链网络中的其它区块链节点中的部分或者全部为第二区块链节点;以此类推;当第m次记账时,所述区块链节点m为第一区块链节点,区块链网络中的其它节点中的部分或者全部第二区块链节点。In some embodiments, the blockchain network includes a plurality of blockchain nodes, which are respectively denoted as blockchain node 1, blockchain node 2, . . . blockchain node n. It is preset to select the blockchain node 1 for the first bookkeeping; select the blockchain node for the second bookkeeping; ...; select the blockchain node m for the mth bookkeeping; where n and m are natural numbers; m is less than or equal to n. In this way, when accounting for the first time, the blockchain node 1 is the first blockchain node, and some or all of the other blockchain nodes in the blockchain network are the second blockchain nodes; when In the second accounting, the blockchain node 2 is the first blockchain node, and some or all of the other blockchain nodes in the blockchain network are the second blockchain nodes; and so on; When the m-th accounting is performed, the blockchain node m is the first blockchain node, and some or all of the second blockchain nodes in other nodes in the blockchain network.

确定第一区块链节点的方式可以是多种多样,在此不做进一步限定。There may be various ways of determining the first blockchain node, which will not be further limited here.

这里,将所述账单发送给区块链网络,可以是将一段时间内的账单记录在一个新区块中,将所述新区块发送给区块链网络。Here, sending the bill to the blockchain network may be recording the bill within a period of time in a new block, and sending the new block to the blockchain network.

这里,将所述漫游业务话单和所述账单发送给区块链网络,可以是将所述漫游业务话单及对应的账单作为一条记录,记录在一个新区块中,将所述新区块发送给区块链网络。Here, sending the roaming service CDR and the bill to the blockchain network may be to record the roaming service CDR and the corresponding bill as a record in a new block, and send the new block to the blockchain network.

这里,可以通过第三区块链节点将一段时间内所述第一区块链节点生成的账单封装到一个新区块,将所述新区块发送给区块链网络。Here, the bill generated by the first blockchain node within a period of time can be encapsulated into a new block by the third blockchain node, and the new block is sent to the blockchain network.

这里,可以通过第三区块链节点将一段时间内所述第一区块链节点生成的账单及对应的漫游业务话单封装到一个新区块,将所述新区块发送给区块链网络。Here, the bill generated by the first blockchain node and the corresponding roaming service bill for a period of time can be encapsulated into a new block by the third block chain node, and the new block is sent to the block chain network.

具体在实现时,所述漫游业务话单和所述账单,在通过所述区块链网络的共识验证之后,被记录在区块链中。可以以区块(Block)为单位存储数据;具体地,将区块链节点发送给区块链网络的话单和对应的账单作为一条记录,将一段时间内获得的记录封装为新区块;并将所述新区块通过广播的方式在整个区块链网络发布该区块;所述区块链网络中除生成账单外的各区块链节点对所述区块进行共识验证;若所述共识验证通过,将所述新区块记录在区块链中;其中,所述区块链保存于所述区块链网络的各区块链节点。Specifically, during implementation, the roaming service bill and the bill are recorded in the blockchain after passing the consensus verification of the blockchain network. Data can be stored in units of blocks; specifically, the bills and corresponding bills sent by the blockchain nodes to the blockchain network are used as a record, and the records obtained within a period of time are encapsulated into new blocks; and The new block is published in the entire blockchain network by means of broadcasting; each blockchain node in the blockchain network except for generating bills performs consensus verification on the block; if the consensus verification passes , record the new block in the block chain; wherein, the block chain is stored in each block chain node of the block chain network.

在另一些实施例中,可以将所述漫游业务话单、所述账单,以及相应的智能合约的代码封装为新区块;对所述新区块进行共识验证;若所述共识验证通过,将所述新区块记录在所述区块链中;In other embodiments, the roaming service bill, the bill, and the code of the corresponding smart contract may be encapsulated into a new block; consensus verification is performed on the new block; if the consensus verification is passed, all the new block is recorded in the blockchain;

在另一些实施例中,若在所述一段时间内有新的智能合约生成;将所述新的智能合约的代码以及所述漫游业务话单、账单封装在所述新区块链中。In other embodiments, if a new smart contract is generated within the period of time; the code of the new smart contract and the roaming service bill and bill are encapsulated in the new blockchain.

在另一些实施例中,若所述共识验证未通过,删除所述新区块。In other embodiments, if the consensus verification fails, the new block is deleted.

如图6所示,提供了一种区块链的示意图;其中,第一个区块可为创世区块或区块1,所述区块链包括创世区块以及区块2、区块3、……区块n-1、区块n;其中,所述n为自然数。每个区块包括区块头和区块体;其中,所述区块体只负责记录前一段时间内的所有交易信息,主要包括:漫游业务话单、账单、智能合约的代码;所述区块头则封装了了当前的版本号、前一区块地址、时间戳、随机数等信息;其中,所述时间戳为记录当前区块产生的时间,可精确到秒;所述随机数为记录解密当前区块的相关信息。As shown in Figure 6, a schematic diagram of a blockchain is provided; wherein, the first block may be a genesis block or block 1, and the blockchain includes a genesis block, a block 2, a block 2, and a block 1. Block 3, ... block n-1, block n; wherein, the n is a natural number. Each block includes a block header and a block body; wherein, the block body is only responsible for recording all transaction information in the previous period, mainly including: roaming service bills, bills, and codes of smart contracts; the block header Then it encapsulates the current version number, previous block address, timestamp, random number and other information; wherein, the timestamp is the time when the current block is recorded, which can be accurate to seconds; the random number is the record decryption Information about the current block.

本实施例中,由于使用区块链网络中其中一个或几个区块链节点作为记账节点,区块链网络中其它的部分或者全部区块链节点共同参加账单的验证,从而可以保证所述账单是由其相应的第一区块链节点完成,因而可以实现账单的唯一性。In this embodiment, since one or several blockchain nodes in the blockchain network are used as billing nodes, some or all other blockchain nodes in the blockchain network jointly participate in the verification of bills, thereby ensuring that all The said bill is completed by its corresponding first blockchain node, so the uniqueness of the bill can be realized.

本实施例中,由于区块链中是把数据分成不同的区块,每个区块通过特定的信息链接到上一个区块的后面,前后顺连来呈现一套完整的数据,因而在账单形成后,用户可以随时找到区块链中任何时候的进行交易的详细情况。且,若要改变一个已经在区块链中存在一段时间的区块,从技术上来说几乎是不可行的。因而,可以在账单形成后,进一步保证了账单的数据的不可篡改性。In this embodiment, since the data is divided into different blocks in the blockchain, each block is linked to the back of the previous block through specific information, and a complete set of data is presented in a sequential manner. Once formed, the user can find out the details of the transaction at any time in the blockchain. Also, it is technically impossible to change a block that has been in the blockchain for a while. Therefore, after the bill is formed, the immutability of the data of the bill can be further guaranteed.

如图7所示,本发明实施例提供了一种漫游业务的账单处理方法,应用于归属地运营商,所述方法包括以下步骤。As shown in FIG. 7 , an embodiment of the present invention provides a method for processing bills for roaming services, which is applied to a home operator, and the method includes the following steps.

步骤301,接收漫游地运营商发送的漫游业务话单;Step 301: Receive a roaming service bill sent by a roaming operator;

步骤303,对所述漫游业务话单进行第一重验证;Step 303, performing a first re-verification on the roaming service bill;

步骤305,若确定所述第一重验证成功,将所述漫游业务话单发送给区块链网络。Step 305, if it is determined that the first re-verification is successful, send the roaming service bill to the blockchain network.

具体地,归属地运营商接收所述漫游地运营商采集漫游用户在一段时间内的业务量数据;所述归属地运营商对所述漫游业务话单进行第一重验证;其中,所述第一重验证可以是验证所述漫游业务话单是否携带漫游地运营商的认可标识;若确定所述第一重验证成功,即所述漫游业务话单中携带所述漫游地运营商的认可标识,则所述归属地运营商将所述漫游业务话单发送给区块链网络。Specifically, the home operator receives the service volume data of the roaming user collected by the roaming operator within a period of time; the home operator performs the first re-verification on the roaming service bill; The first re-verification may be to verify whether the roaming service CDR carries the approval identifier of the roaming operator; if it is determined that the first re-verification is successful, that is, the roaming service CDR carries the roaming operator's approval identifier , the home operator sends the roaming service bill to the blockchain network.

这里,所述对漫游业务话单进行第一重验证,还包括以下至少之一:Here, the first re-verification of the roaming service CDR further includes at least one of the following:

归属地运营商对所述漫游业务话单的数据格式是否符合GSMA标准格式进行验证;The home operator verifies whether the data format of the roaming service CDR conforms to the GSMA standard format;

归属地运营商对所述漫游业务量的数据内容是否正确进行验证。The home operator verifies whether the data content of the roaming traffic is correct.

在一些实施例中,当所述漫游业务话单的第一重验证通过后,所述归属地运营商还可将自身的认可标识添加到所述漫游业务话单。In some embodiments, after the first re-verification of the roaming service bill is passed, the home operator may also add its own approval identifier to the roaming service bill.

本实施例中,由于进行了第一重验证,因而可以由归属地运营商对漫游地运营商标识认可的漫游业务话单做校验,确保了所述漫游地运营商所生成的漫游业务话单得到归属地运营商的认可,从而确保了进入到区块链网络用于生成账单的漫游业务话单的正确性和合法性,减少错误及非法漫游业务话单导致等导致账单生成的异常现象。In this embodiment, since the first re-verification is performed, the home operator can verify the roaming service bills approved by the roaming operator's identifier, which ensures that the roaming service bills generated by the roaming operator are guaranteed. The bill is recognized by the home operator, thus ensuring the correctness and legitimacy of the roaming service bill entering the blockchain network for bill generation, and reducing errors and abnormal bill generation caused by illegal roaming business bills. .

如图8所示,所述方法还包括:As shown in Figure 8, the method further includes:

步骤306,若确定所述第一重签名验证失败,向所述漫游地运营商返回申告。Step 306, if it is determined that the first re-signature verification fails, return a report to the roaming operator.

具体地,若确定所述漫游业务话单中不包括所述漫游地运营商的认可标识,则确定所述第一重签名验证失败,则所述归属地运营商向所述漫游地运营商返回申告。Specifically, if it is determined that the roaming service CDR does not include the approval identifier of the roaming operator, it is determined that the first re-signature verification fails, and the home operator returns to the roaming operator declaration.

上述方案中,所述方法还包括:In the above scheme, the method also includes:

步骤307,获取区块链上的账单;基于所述账单,与所述漫游地运营商进行后续支付结算操作。Step 307: Acquire a bill on the blockchain; based on the bill, perform subsequent payment and settlement operations with the roaming operator.

在具体实现时,归属地运营商可通过获取所述区块链节点中区块链中账单,对所述账单进行冲销操作,生成金额报表;所述归属地运营商根据所述账单及金额报表与漫游地运营商进行后续支付结算操作。In specific implementation, the home operator can obtain the bill in the blockchain in the blockchain node, perform a reversal operation on the bill, and generate an amount report; the home operator can generate an amount report according to the bill and the amount report. Follow-up payment and settlement operations with the roaming operator.

这里,可通过区块链浏览器客户端读取区块链中的账单,通过区块链浏览器客户端将所述账单发送给所述归属地运营商,以便归属地运营商与漫游地运营商进行后续支付结算操作。Here, the bill in the blockchain can be read through the blockchain browser client, and the bill can be sent to the home operator through the blockchain browser client, so that the home operator and the roaming place can operate merchants for subsequent payment and settlement operations.

这里,可通过区块链节点调用智能合约自动执行冲销操作生成金额报表,将所述账单及金额报表发送给所述归属地运营商,以便归属地运营商与漫游地运营商进行后续支付结算操作。Here, the smart contract can be invoked through the blockchain node to automatically perform the reversal operation to generate an amount report, and the bill and the amount report can be sent to the home operator, so that the home operator and the roaming operator can perform subsequent payment and settlement operations .

本实施例中,由于所述账单在区块链上是公开的,可以供终端用户随时查看所述漫游业务话单以及账单数据;可以即时完成后续支付结算业务,以及即时发现话单与实际使用不一致的情况。In this embodiment, since the bill is public on the blockchain, the terminal user can view the roaming service bill and bill data at any time; follow-up payment and settlement services can be completed in real time, and the bill and actual usage can be instantly discovered. inconsistency.

为了进一步解释说明,本发明还提出了一种漫游业务的处理方法,所述方法包括以下步骤。For further explanation, the present invention also provides a method for processing a roaming service, and the method includes the following steps.

步骤S01,接收智能合约;将所述智能合约发送并存储到区块链中;Step S01, receiving a smart contract; sending and storing the smart contract in the blockchain;

可选地,所述区块链网络中区块链节点接收智能合约;所述区块链节点将所述智能合约通过广播的方式在整个区块链网络内发送;并将所述智能合约存储在所述区块链中。Optionally, the blockchain node in the blockchain network receives the smart contract; the blockchain node sends the smart contract in the entire blockchain network by broadcasting; and stores the smart contract in the blockchain.

这里,所述智能合约为漫游地运营商与归属地运营商根据计费协议生成的合约;其中,所述漫游地运营商与归属地运营商可以相互转换。Here, the smart contract is a contract generated by the roaming operator and the home operator according to the charging agreement; wherein the roaming operator and the home operator can be converted to each other.

步骤S02,接收漫游业务话单;对所述漫游业务话单进行第一重验证;Step S02, receiving a roaming service bill; performing a first re-verification on the roaming service bill;

可选地,归属地运营商接收漫游地运营商发送的漫游业务话单;对所述漫游业务话单进行是否携带漫游地运营商的认可标识的验证。Optionally, the home operator receives the roaming service bill sent by the roaming operator; and verifies whether the roaming service bill carries the approval identifier of the roaming operator.

这里,所述漫游业务话单,由所述漫游地运营商采集漫游用于在一段时间内的漫游业务所产生的话单,并在所述漫游业务话单上添加自身的认可标识。Here, the roaming service CDR is collected by the roaming operator to generate a CDR for roaming for a period of time, and adds its own approval identifier to the roaming service CDR.

步骤S03,若确定所述第一重验证成功,将所述漫游业务话单发送给区块链网络;Step S03, if it is determined that the first re-verification is successful, send the roaming service bill to the blockchain network;

可选地,所述归属地运营商若确定所述漫游业务话单中携带所述漫游地运营商的认可标识,将自身归属地运营商的认可标识添加到所述漫游业务话单;所述归属地运营商将所述漫游业务话单发送给区块链网路。Optionally, if the home operator determines that the roaming service CDR carries the approval identifier of the roaming operator, the home operator adds the approval identifier of its own home operator to the roaming service CDR; the The home operator sends the roaming service bill to the blockchain network.

这里,若所述第一重验证失败,则可返回申告,以便于所述漫游地运营商重新生成或者修正所述漫游业务话单。Here, if the first re-authentication fails, a report can be returned, so that the roaming operator can regenerate or correct the roaming service CDR.

步骤S04,接收所述漫游业务话单,对所述漫游业务话单进行第二重验证;Step S04, receiving the roaming service bill, and performing a second re-verification on the roaming service bill;

可选地,所述区块链网络中的区块链节点接收到所述漫游业务话单,对所述漫游业务话单是否携带所述漫游地运营商的认可标识和所述归属地运营商的认可标识进行认证。Optionally, the blockchain node in the blockchain network receives the roaming service bill, and checks whether the roaming service bill carries the roaming operator's approval identifier and the home operator. accreditation mark for certification.

步骤S05,若确定所述第二重验证成功,基于智能合约,将所述漫游业务话单生成账单;Step S05, if it is determined that the second re-verification is successful, based on the smart contract, generate a bill for the roaming service bill;

可选地,所述区块链节点若确定所述漫游业务话单中携带所述漫游地运营商的认可标识和所述归属地运营商的认可标识,则调用对应的智能合约,将所述漫游业务话单生成账单。Optionally, if the blockchain node determines that the roaming service bill carries the roaming operator's approval identifier and the home operator's approval identifier, it calls the corresponding smart contract, and converts the A bill is generated from the roaming service CDR.

步骤S06,将所述漫游业务话单及所述账单进行转发;Step S06, forwarding the roaming service bill and the bill;

可选地,区块链节点将所述漫游业务话单及对应的账单作为一条记录;将一段时间内所生成的记录封装到一个新区块;将所述新区块通过广播的方式在整个区块链网络内发送。Optionally, the blockchain node takes the roaming service bill and the corresponding bill as a record; encapsulates the record generated within a period of time into a new block; broadcasts the new block to the entire block. Sent within the chain network.

步骤S07,对所述新区块进行共识验证;Step S07, performing consensus verification on the new block;

可选地,接收到所述新区块的区块链节点,对所述新区块进行共识验证;具体地,验证所述新区块进行共识算法的验证,对所述漫游业务话单是否携带漫游地运营商的认可标识和归属地运营商的认可标识、以及对所述账单的生成是否符合对应的智能合约的生成逻辑的验证。Optionally, the blockchain node that has received the new block performs consensus verification on the new block; specifically, verifying the new block by performing consensus algorithm verification, and checking whether the roaming service bill carries the roaming location. The operator's approval identifier and the home operator's approval identifier, and the verification of whether the generation of the bill conforms to the generation logic of the corresponding smart contract.

步骤S08,若确定所述共识验证成功,将所述区块记录在区块链中;Step S08, if it is determined that the consensus verification is successful, record the block in the blockchain;

可选地,若所述共识验证通过,则将所述新区块保存于区块链中。Optionally, if the consensus verification is passed, the new block is stored in the blockchain.

这里,若所述共识验证失败,则将所述新区块删除。Here, if the consensus verification fails, the new block is deleted.

步骤S09,基于所述区块链中的账单,进行后续的支付结算操作。Step S09, based on the bill in the blockchain, perform subsequent payment and settlement operations.

可选地,所述区块链网络中的区块链浏览器客户端读取所述区块链中的账单,将所述账单发送给相应的归属地运营商;所述归属地运营商基于所述账单执行冲销操作,生成金额报表;基于所述账单及所述金额报表与漫游地运营商进行后续的支付结算操作。Optionally, the blockchain browser client in the blockchain network reads the bill in the blockchain, and sends the bill to the corresponding home operator; the home operator is based on Perform a reversal operation on the bill to generate an amount report; and perform subsequent payment and settlement operations with the roaming operator based on the bill and the amount report.

本实施例中,进行了三重验证:第一重验证由归属地运营商对所述漫游地运营商的认可标识进行验证,并可将自身归属地运营商的认可标识添加到所述漫游业务账单,如此,保证了漫游业务话单获得漫游地及归属地运营商的信任;第二重验证由区块链节点对漫游业务话单进行归属地的认可标识及漫游地的认可标识进行验证,如此,可以使得漫游业务话单获得区块链各节点的信任;第三重验证即共识验证,由区块链网络的其它全部或部分节点对所述漫游业务话单和账单生成的区块进行共识算法、对所述漫游业务话单的认可标识,以及所述账单的生成逻辑进行验证,使得所述漫游业务话单及账单获得了区块链各节点信任,以及保证了所述账单的唯一性。In this embodiment, triple verification is performed: in the first verification, the home operator verifies the approval identifier of the roaming operator, and the approval identifier of the home operator can be added to the roaming service bill. , in this way, it is ensured that the roaming service bill is trusted by the roaming place and the home operator; the second verification is that the blockchain node verifies the roaming service bill of home and the roaming place. , which can make the roaming service bills gain the trust of each node of the blockchain; the third verification is consensus verification, and all or some other nodes in the blockchain network agree on the roaming business bills and the blocks generated by the bills. Algorithms, the recognition identifier of the roaming service bill, and the generation logic of the bill are verified, so that the roaming business bill and bill are trusted by each node of the blockchain, and the uniqueness of the bill is guaranteed .

本实施例中,由于区块链公开,用户可以随时读取区块链中上的漫游业务话单及账单,以便及时发现话单与实际使用不一致的情况。In this embodiment, since the blockchain is open, the user can read the roaming service bills and bills on the blockchain at any time, so as to timely discover the inconsistency between the bills and the actual use.

本实施例中,可以共同维护漫游业务话单及账本中数据的一致性,不需要人工对账,可提高效率。In this embodiment, the consistency of the data in the roaming service bill and the account book can be jointly maintained, manual account reconciliation is not required, and the efficiency can be improved.

本实施例中,由于区块链网络中各区块链节点共同管理一个账本,因而可减少一方出错或被篡改的可能,以及减少相应申告处理的成本。In this embodiment, since each block chain node in the block chain network jointly manages one ledger, the possibility of one party making mistakes or being tampered with can be reduced, and the cost of corresponding declaration processing can be reduced.

本实施例中,将所述计费协议以智能合约的形式存储在区块链节点中,并通过调用对应的智能合约生成账本,减少了双方所使用的合约不一致或被篡改的可能以及相应处理申告的成本。In this embodiment, the billing agreement is stored in the blockchain node in the form of a smart contract, and the ledger is generated by calling the corresponding smart contract, which reduces the possibility of inconsistent or tampered contracts used by both parties and corresponding processing the cost of the declaration.

这里需要指出的是:以下漫游业务的处理系统项的描述,与上述漫游业务的处理方法项描述是类似的,同方法的有益效果描述,不做赘述。对于本发明漫游业务的处理系统实施例中未披露的技术细节,请参照本发明漫游业务的处理方法实施例的描述。It should be pointed out here that the following description of the processing system item of the roaming service is similar to the description of the above-mentioned processing method item of the roaming service, and the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the embodiments of the system for processing roaming services of the present invention, please refer to the description of the embodiments of the methods for processing roaming services of the present invention.

本发明一实施例还公开了一种系统,如图9所示,所述系统包括:An embodiment of the present invention also discloses a system, as shown in FIG. 9 , the system includes:

所述系统包括:区块链网络21、归属地运营商22、漫游地运营商23;所述区块链网络21包括多个区块链节点,例如,所述区块链网络包括区块链节点1、区块链节点2、区块链节点3、……区块链节点y;其中,The system includes: a blockchain network 21, a home operator 22, and a roaming operator 23; the blockchain network 21 includes a plurality of blockchain nodes, for example, the blockchain network includes a blockchain Node 1, blockchain node 2, blockchain node 3, ... blockchain node y; among them,

所述归属地运营商22,用于接收漫游地运营商21发送的漫游业务话单;对所述漫游业务话单进行第一次重验证;若确定所述第一次重验证成功,将所述漫游业务话单发送给区块链网络;The home operator 22 is used to receive the roaming service bill sent by the roaming operator 21; re-verify the roaming service bill for the first time; if it is determined that the first re-verification is successful, The roaming service bill is sent to the blockchain network;

所述区块链节点21,用于接收漫游业务话单;根据智能合约,基于所述漫游业务话单生成账单;将所述账单发送给区块链网络;其中,所述账单,用于在通过所述区块链网络的共识验证之后,被记录在区块链中。The blockchain node 21 is used to receive the roaming service bill; generate a bill based on the roaming service bill according to the smart contract; send the bill to the blockchain network; wherein, the bill is used in the After passing the consensus verification of the blockchain network, it is recorded in the blockchain.

可选地,所述区块链节点21,还用于将所述漫游业务话单发送给所述区块链网络;其中,所述漫游业务话单和所述账单,用于在共同通过所述区块链网络的共识验证之后,一起被记录在区块链中。Optionally, the blockchain node 21 is further configured to send the roaming service bill to the blockchain network; wherein, the roaming service bill and the bill are used to pass the After the consensus verification of the above-mentioned blockchain network, it is recorded in the blockchain together.

可选地,所述区块链节点21,还用于在所述根据智能合约,基于所述漫游业务话单生成账单之前,将所述漫游业务话单发送给所述区块链网络;其中,所述漫游业务话单,用于在通过所述区块链网络的共识验证之后,被记录在区块链中。Optionally, the blockchain node 21 is further configured to send the roaming service bill to the blockchain network before generating the bill based on the roaming service bill according to the smart contract; wherein , the roaming service bill is used to be recorded in the blockchain after passing the consensus verification of the blockchain network.

可选地,所述智能合约包括:根据漫游地运营商与归属地运营商之间的计费协议生成的智能合约。Optionally, the smart contract includes: a smart contract generated according to a billing agreement between the roaming operator and the home operator.

可选地,所述区块链节点21,还用于获取归属地运营商通过第一重验证后的漫游业务话单。Optionally, the blockchain node 21 is further configured to obtain the roaming service bill of the home operator after passing the first re-verification.

可选地,所述区块链节点21,还用于对所述漫游业务话单进行第二重验证;若确定所述第二重验证成功,则执行根据智能合约,基于所述漫游业务话单生成账单的操作。Optionally, the blockchain node 21 is further configured to perform a second re-verification on the roaming service bill; if it is determined that the second re-verification is successful, execute a smart contract based on the roaming service bill. A single operation to generate a bill.

可选地,对所述账单和所述漫游业务话单的共识验证包括:Optionally, the consensus verification on the bill and the roaming service bill includes:

对所述漫游业务话单和所述账单进行共识算法的验证;Verifying the consensus algorithm on the roaming service bill and the bill;

对所述漫游业务话单的认可标识进行验证;verifying the approval identifier of the roaming service CDR;

根据智能合约和所述漫游业务话单,对所述账单的生成逻辑进行验证。The generation logic of the bill is verified according to the smart contract and the roaming service bill.

可选地,所述区块链节点21,包括:第一区块链节点和第二区块链节点;其中,Optionally, the blockchain node 21 includes: a first blockchain node and a second blockchain node; wherein,

所述第一区块链节点根据智能合约,基于所述漫游业务话单生成账单;The first blockchain node generates a bill based on the roaming service bill according to the smart contract;

所述第二区块链节点对所述账单进行共识验证。The second blockchain node performs consensus verification on the bill.

这里,所述第一区块链节点可以为区块链节点1,所述第二区块链节点可以为所述区块节点2、区块链节点3、……区块链节点y中的全部或部分;所述区块链节点可以为区块链节点2,所述第二区块链节点可以为所述区块链节点1、区块链节点3、……区块链节点y中的全部或部分;等等。Here, the first blockchain node may be blockchain node 1, and the second blockchain node may be one of the blockchain node 2, blockchain node 3, ... blockchain node y All or part; the blockchain node may be blockchain node 2, and the second blockchain node may be the blockchain node 1, blockchain node 3, ... in blockchain node y in whole or in part; etc.

可选地,所述归属地运营商22,还用于若确定所述第一重验证失败,向所述漫游地运营商返回申告。Optionally, the home operator 22 is further configured to return a report to the roaming operator if it is determined that the first re-authentication fails.

可选地,所述归属地运营商22,还用于获取区块链上的账单;基于所述账单,与所述漫游地运营商进行后续支付结算操作。Optionally, the home operator 22 is further configured to obtain a bill on the blockchain; and based on the bill, perform subsequent payment and settlement operations with the roaming operator.

本发明一实施例还公开了一种电子设备,如图10所示,所述电子设备包括:处理器31和用于存储能够在处理器上运行的计算机程序的存储器32;其中,所述处理器31用于运行计算机程序时,实现本发明任一实施例所提供的漫游业务的账单处理方法。An embodiment of the present invention also discloses an electronic device. As shown in FIG. 10 , the electronic device includes: a processor 31 and a memory 32 for storing a computer program that can be executed on the processor; wherein the processing The device 31 is configured to implement the bill processing method for the roaming service provided by any embodiment of the present invention when running the computer program.

在一些实施例中,本发明实施例中的存储器32可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double DataRate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本文描述的系统和方法的存储器32旨在包括但不限于这些和任意其它适合类型的存储器。In some embodiments, memory 32 in embodiments of the present invention may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. Wherein, the non-volatile memory may be Read-Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (Erasable PROM, EPROM), Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. The volatile memory may be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double DataRate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synchlink DRAM, SLDRAM) and Direct memory bus random access memory (Direct Rambus RAM, DRRAM). The memory 32 of the systems and methods described herein is intended to include, but not be limited to, these and any other suitable types of memory.

而处理器31可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器31中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器31可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(FieldProgrammable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器32,处理器31读取存储器32中的信息,结合其硬件完成上述方法的步骤。The processor 31 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above-mentioned method can be completed by a hardware integrated logic circuit in the processor 31 or an instruction in the form of software. The above-mentioned processor 31 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other possible Programming logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps, and logical block diagrams disclosed in the embodiments of the present invention can be implemented or executed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in conjunction with the embodiments of the present invention may be directly embodied as executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art. The storage medium is located in the memory 32, and the processor 31 reads the information in the memory 32, and completes the steps of the above method in combination with its hardware.

在一些实施例中,本文描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(Application Specific Integrated Circuits,ASIC)、数字信号处理器(Digital SignalProcessing,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(ProgrammableLogic Device,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。In some embodiments, the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more Application Specific Integrated Circuits (ASIC), Digital Signal Processing (DSP), Digital Signal Processing Device (DSP Device, DSPD), programmable logic Devices (ProgrammableLogic Device, PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in this application or a combination thereof.

对于软件实现,可通过执行本文所述功能的模块(例如过程、函数等)来实现本文所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For a software implementation, the techniques described herein may be implemented through modules (eg, procedures, functions, etc.) that perform the functions described herein. Software codes may be stored in memory and executed by a processor. The memory can be implemented in the processor or external to the processor.

本发明又一实施例提供了一种计算机存储介质,该计算机可读存储介质存储有可执行程序,所述可执行程序被处理器31执行时,可实现漫游业务的账单处理的方法以下步骤:Yet another embodiment of the present invention provides a computer storage medium, where the computer-readable storage medium stores an executable program, and when the executable program is executed by the processor 31, the following steps of a method for bill processing for a roaming service can be implemented:

获取漫游业务话单;Obtain roaming service bills;

根据智能合约,基于所述漫游业务话单生成账单;According to the smart contract, generate a bill based on the roaming service bill;

将所述账单发送给区块链网络;其中,所述账单,用于在通过所述区块链网络的共识验证之后,被记录在区块链中。Sending the bill to the blockchain network; wherein the bill is used to be recorded in the blockchain after passing the consensus verification of the blockchain network.

可选地,所述可执行程序被处理器31执行时,可实现漫游业务的账单处理方法的以下步骤:Optionally, when the executable program is executed by the processor 31, the following steps of the billing method for roaming services can be implemented:

将所述漫游业务话单发送给所述区块链网络;其中,所述漫游业务话单和所账单,用于在共同通过所述区块链网络的共识验证之后,一起被记录在区块链中。Send the roaming service bill to the blockchain network; wherein, the roaming service bill and the bill are used to be recorded in the block together after passing the consensus verification of the blockchain network. in the chain.

可选地,所述可执行程序被处理器31执行时,可实现漫游业务的账单处理方法的以下步骤:Optionally, when the executable program is executed by the processor 31, the following steps of the billing method for roaming services can be implemented:

在所述根据智能合约,基于所述漫游业务话单生成账单之前,将所述漫游业务话单发送给所述区块链网络;其中,所述漫游业务话单,用于在通过所述区块链网络的共识验证之后,被记录在区块链中。可选地,所述可执行程序被处理器31执行时,可实现漫游业务的账单处理方法的以下步骤:Before generating a bill based on the roaming service CDR according to the smart contract, the roaming service CDR is sent to the blockchain network; wherein the roaming service CDR is used for After the consensus verification of the blockchain network, it is recorded in the blockchain. Optionally, when the executable program is executed by the processor 31, the following steps of the billing method for roaming services can be implemented:

获取归属地运营商通过第一重验证后的漫游业务话单。Obtain the roaming service CDR of the home operator after passing the first authentication.

可选地,所述可执行程序被处理器31执行时,可实现漫游业务的账单处理方法的以下步骤:Optionally, when the executable program is executed by the processor 31, the following steps of the billing method for roaming services can be implemented:

对所述漫游业务话单进行第二重验证;performing a second verification on the roaming service CDR;

若确定所述第二重验证成功,则执行根据智能合约,基于所述漫游业务话单生成账单的操作。If it is determined that the second re-verification is successful, an operation of generating a bill based on the roaming service bill according to the smart contract is performed.

可选地,所述可执行程序被处理器31执行时,可实现漫游业务的账单处理方法的以下步骤:Optionally, when the executable program is executed by the processor 31, the following steps of the billing method for roaming services can be implemented:

对所述漫游业务话单和账单进行共识算法的验证;Verifying the consensus algorithm on the roaming service bill and bill;

对所述漫游业务话单的认可标识进行验证;verifying the approval identifier of the roaming service CDR;

根据智能合约和所述漫游业务话单,对所述账单的生成逻辑进行验证。The generation logic of the bill is verified according to the smart contract and the roaming service bill.

可选地,所述可执行程序被处理器31执行时,可实现漫游业务的账单处理方法的以下步骤:Optionally, when the executable program is executed by the processor 31, the following steps of the billing method for roaming services can be implemented:

确定第一区块链节点;Determine the first blockchain node;

所述第一区块链节点根据智能合约,基于所述漫游业务话单生成账单;The first blockchain node generates a bill based on the roaming service bill according to the smart contract;

第二区块链节点对所述账单进行共识验证。The second blockchain node performs consensus verification on the bill.

可选地,所述可执行程序被处理器31执行时,可实现漫游业务的账单处理方法的以下步骤:Optionally, when the executable program is executed by the processor 31, the following steps of the billing method for roaming services can be implemented:

接收漫游地运营商发送的漫游业务话单;Receive the roaming service CDR sent by the roaming operator;

对所述漫游业务话单进行第一重验证;performing a first re-verification on the roaming service bill;

若确定所述第一重验证成功,将所述漫游业务话单发送给区块链网络。If it is determined that the first re-verification is successful, the roaming service bill is sent to the blockchain network.

可选地,所述可执行程序被处理器31执行时,可实现漫游业务的账单处理方法的以下步骤:Optionally, when the executable program is executed by the processor 31, the following steps of the billing method for roaming services can be implemented:

若确定所述第一重验证失败,向所述漫游地运营商返回申告。If it is determined that the first re-authentication fails, a report is returned to the roaming operator.

可选地,所述可执行程序被处理器31执行时,可实现漫游业务的账单处理方法的以下步骤:Optionally, when the executable program is executed by the processor 31, the following steps of the billing method for roaming services can be implemented:

获取区块链上的账单;Get the bill on the blockchain;

基于所述账单,与所述漫游地运营商进行后续支付结算操作。Based on the bill, a subsequent payment settlement operation is performed with the roaming operator.

在一些实施例中,所述计算机存储介质可以包括:U盘、移动硬盘、只读存储器(ROM,Read Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In some embodiments, the computer storage medium may include: a USB flash drive, a removable hard disk, a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, etc. A medium on which program code can be stored.

需要说明的是:本发明实施例所记载的技术方案之间,在不冲突的情况下,可以任意组合It should be noted that the technical solutions described in the embodiments of the present invention can be combined arbitrarily if there is no conflict

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. should be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (11)

1.一种漫游业务的账单处理方法,其特征在于,所述方法包括:1. A bill processing method for roaming service, wherein the method comprises: 获取漫游业务话单;Obtain roaming service bills; 根据智能合约,基于所述漫游业务话单生成账单;According to the smart contract, generate a bill based on the roaming service bill; 将所述账单发送给区块链网络;其中,所述账单,用于在通过所述区块链网络的共识验证之后,被记录在区块链中;sending the bill to the blockchain network; wherein the bill is used to be recorded in the blockchain after passing the consensus verification of the blockchain network; 其中,所述获取漫游业务话单,包括:Wherein, the obtaining the roaming service bills includes: 获取归属地运营商通过第一重验证后的漫游业务话单;所述第一重验证为归属地运营商对漫游地运营商生成的漫游业务话单的验证。Obtaining the roaming service bill of the home operator after passing the first re-verification; the first re-verification is the verification of the roaming service bill of the roaming operator generated by the home operator. 2.根据权利要求1所述的方法,其特征在于,所述方法还包括:2. The method according to claim 1, wherein the method further comprises: 将所述漫游业务话单发送给所述区块链网络;其中,所述漫游业务话单和所述账单,用于在共同通过所述区块链网络的共识验证之后,一起被记录在区块链中。Send the roaming service bill to the blockchain network; wherein, the roaming service bill and the bill are used to be recorded together in the blockchain after passing the consensus verification of the blockchain network. in the blockchain. 3.根据权利要求1所述的方法,其特征在于,3. The method according to claim 1, wherein 所述根据智能合约,基于所述漫游业务话单生成账单之前,还包括:Before generating the bill based on the roaming service bill according to the smart contract, the method further includes: 将所述漫游业务话单发送给所述区块链网络;其中,所述漫游业务话单,用于在通过所述区块链网络的共识验证之后,被记录在区块链中;sending the roaming service bill to the blockchain network; wherein the roaming service bill is used to be recorded in the blockchain after passing the consensus verification of the blockchain network; 所述根据智能合约,基于所述漫游业务话单生成账单,包括:The generating a bill based on the roaming service bill according to the smart contract, including: 根据智能合约,基于共识验证后的漫游话单生成账单。According to the smart contract, the bill is generated based on the roaming CDR after consensus verification. 4.根据权利要求1所述的方法,其特征在于,4. The method of claim 1, wherein 所述智能合约包括:根据漫游地运营商与归属地运营商之间的计费协议生成的智能合约。The smart contract includes: a smart contract generated according to a billing agreement between the roaming operator and the home operator. 5.根据权利要求3所述的方法,其特征在于,5. The method of claim 3, wherein 所述根据智能合约,基于所述漫游业务话单生成账单之前,还包括:Before generating the bill based on the roaming service bill according to the smart contract, the method further includes: 对所述漫游业务话单进行第二重验证;performing a second verification on the roaming service CDR; 若确定所述第二重验证成功,则执行根据智能合约,基于所述漫游业务话单生成账单的操作。If it is determined that the second re-verification is successful, an operation of generating a bill based on the roaming service bill according to the smart contract is performed. 6.根据权利要求2或3所述的方法,其特征在于,6. The method according to claim 2 or 3, characterized in that, 对所述账单和所述漫游业务话单的共识验证包括:The consensus verification of the bill and the roaming service bill includes: 对所述漫游业务话单和所述账单进行共识算法的验证;Verifying the consensus algorithm on the roaming service bill and the bill; 对所述漫游业务话单的认可标识进行验证;verifying the approval identifier of the roaming service CDR; 根据智能合约和所述漫游业务话单,对所述账单的生成逻辑进行验证。The generation logic of the bill is verified according to the smart contract and the roaming service bill. 7.根据权利要求1所述的方法,其特征在于,7. The method of claim 1, wherein, 根据智能合约,基于所述漫游业务话单生成账单,包括:According to the smart contract, a bill is generated based on the roaming service CDR, including: 确定第一区块链节点;determine the first blockchain node; 所述第一区块链节点根据智能合约,基于所述漫游业务话单生成账单;The first blockchain node generates a bill based on the roaming service bill according to the smart contract; 所述方法还包括:The method also includes: 第二区块链节点对所述账单进行共识验证。The second blockchain node performs consensus verification on the bill. 8.一种漫游业务的处理方法,其特征在于,应用于归属地运营商,所述方法包括:8. A method for processing a roaming service, characterized in that it is applied to a home operator, the method comprising: 接收漫游地运营商发送的漫游业务话单;Receive the roaming service CDR sent by the roaming operator; 对所述漫游业务话单进行第一重验证;performing a first re-verification on the roaming service bill; 若确定所述第一重验证成功,将所述漫游业务话单发送给区块链网络。If it is determined that the first re-verification is successful, the roaming service bill is sent to the blockchain network. 9.根据权利要求8所述的方法,其特征在于,所述方法还包括:9. The method according to claim 8, wherein the method further comprises: 若确定所述第一重验证失败,向所述漫游地运营商返回申告。If it is determined that the first re-authentication fails, a report is returned to the roaming operator. 10.根据权利要求8所述的方法,其特征在于,所述方法还包括:10. The method according to claim 8, wherein the method further comprises: 获取区块链上的账单;Get the bill on the blockchain; 基于所述账单,与所述漫游地运营商进行后续支付结算操作。Based on the bill, a subsequent payment settlement operation is performed with the roaming operator. 11.一种存储介质,所述存储介质中有计算机可执行指令,其特征在于,所述计算机可执行指令被处理器执行实现权利要求1-7任一项所述漫游业务的账单处理方法或权利要求8-10任一项所述漫游业务的账单处理方法。11. A storage medium having computer-executable instructions in the storage medium, wherein the computer-executable instructions are executed by a processor to implement the bill processing method for the roaming service of any one of claims 1-7 or The bill processing method for roaming service according to any one of claims 8-10.
CN201910000454.1A 2019-01-02 2019-01-02 Bill processing method, system and storage medium for roaming service Active CN111405505B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910000454.1A CN111405505B (en) 2019-01-02 2019-01-02 Bill processing method, system and storage medium for roaming service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910000454.1A CN111405505B (en) 2019-01-02 2019-01-02 Bill processing method, system and storage medium for roaming service

Publications (2)

Publication Number Publication Date
CN111405505A CN111405505A (en) 2020-07-10
CN111405505B true CN111405505B (en) 2021-11-09

Family

ID=71413093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910000454.1A Active CN111405505B (en) 2019-01-02 2019-01-02 Bill processing method, system and storage medium for roaming service

Country Status (1)

Country Link
CN (1) CN111405505B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11650960B2 (en) * 2020-09-04 2023-05-16 Hewlett Packard Enterprise Development Lp Distributed ledger technology platform
CN112153624B (en) * 2020-10-14 2023-03-28 中国联合网络通信集团有限公司 Roaming method and device
CN113259879B (en) * 2021-05-12 2022-08-12 中国联合网络通信集团有限公司 Blockchain-based roaming payment method, system, terminal device and storage medium
CN113286340B (en) * 2021-05-17 2022-11-04 中国联合网络通信集团有限公司 Slice selection auxiliary information configuration method, system, node and storage medium
CN115460558B (en) * 2021-06-07 2024-12-20 中移信息技术有限公司 Automatic clearing and settlement method, device, electronic equipment and storage medium
CN113708943B (en) * 2021-09-06 2022-08-16 中国联合网络通信集团有限公司 Internetwork settlement method, device, equipment and storage medium
CN116233777A (en) * 2022-12-30 2023-06-06 中移信息技术有限公司 Roaming ticket processing method, apparatus, device, medium and program product
CN116489279A (en) * 2023-05-19 2023-07-25 湖南省测绘科技研究所 A provincial-level CORS inter-provincial roaming service clearing and settlement method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559211A (en) * 2016-11-22 2017-04-05 中国电子科技集团公司第三十研究所 Secret protection intelligence contract method in a kind of block chain
CN106911483A (en) * 2017-03-13 2017-06-30 广东网金控股股份有限公司 A kind of charging method based on block chain and cloud computing platform
CN107995003A (en) * 2016-10-26 2018-05-04 中国移动通信有限公司研究院 The charging and settlement method of international roaming communication, relevant apparatus and distributed system
CN108566653A (en) * 2018-07-02 2018-09-21 中国联合网络通信集团有限公司 A kind of operation management method and base station equipment of base station equipment
CN108632480A (en) * 2018-04-19 2018-10-09 北京阿尔山金融科技有限公司 Charging method based on block chain and device
CN108810298A (en) * 2014-09-05 2018-11-13 华为技术有限公司 A kind of across PLMN roaming data traffic online charging method and equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045679B (en) * 2009-10-20 2013-11-13 中国移动(深圳)有限公司 RTDP (Roaming Traffic Data Report) sending and receiving method and server in roaming charge

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108810298A (en) * 2014-09-05 2018-11-13 华为技术有限公司 A kind of across PLMN roaming data traffic online charging method and equipment
CN107995003A (en) * 2016-10-26 2018-05-04 中国移动通信有限公司研究院 The charging and settlement method of international roaming communication, relevant apparatus and distributed system
CN106559211A (en) * 2016-11-22 2017-04-05 中国电子科技集团公司第三十研究所 Secret protection intelligence contract method in a kind of block chain
CN106911483A (en) * 2017-03-13 2017-06-30 广东网金控股股份有限公司 A kind of charging method based on block chain and cloud computing platform
CN108632480A (en) * 2018-04-19 2018-10-09 北京阿尔山金融科技有限公司 Charging method based on block chain and device
CN108566653A (en) * 2018-07-02 2018-09-21 中国联合网络通信集团有限公司 A kind of operation management method and base station equipment of base station equipment

Also Published As

Publication number Publication date
CN111405505A (en) 2020-07-10

Similar Documents

Publication Publication Date Title
CN111405505B (en) Bill processing method, system and storage medium for roaming service
CN110633963B (en) Electronic bill processing method, electronic bill processing device, computer readable storage medium and computer readable storage device
CN113255014B (en) Data processing method based on block chain and related equipment
WO2020024968A1 (en) Resource transfer data management method and apparatus, and storage medium
CN111738725A (en) Method, device and electronic equipment for verification of authenticity of cross-border resource transfer
CN111080455A (en) Cross-border transaction method, device and hardware device based on blockchain
CN111292174A (en) A tax payment information processing method, device and computer readable storage medium
CN112448946A (en) Log auditing method and device based on block chain
CN111429191A (en) Block chain-based electronic invoice flow management method, device and system
US20240223390A1 (en) Blockchain system
CN108768672B (en) Data processing method, device and storage medium
CN111325586B (en) Bill generation method, device, server and medium based on block chain network
CN111126987B (en) Resource transfer information processing method and device, storage medium and electronic device
CN111027992B (en) Asset transaction method, device and hardware equipment based on blockchain system
CN110598479A (en) Data processing method and device and computer readable storage medium
CN111383110A (en) Cross-block-chain evidence transfer method and device and hardware equipment
CN110597886A (en) Data processing method and device and computer storage medium
CN112150158A (en) A blockchain transaction delivery verification method and device
CN116137627A (en) A data processing method, device and related equipment based on blockchain network
CN108882230B (en) Call record management method, device and system
CN117560668A (en) UAID-based anti-fraud methods, devices, equipment and storage media
CN111144958B (en) Electronic invoice issuing method, device and system based on block chain
CN116155501A (en) Cross-chain communication method, device, equipment and medium in blockchain network
CN116468439A (en) Data management method, apparatus, device, storage medium, and computer program product
CN111626735B (en) Data interaction system, method and module

Legal Events

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