CN110417561A - A kind of distributed integration methods, devices and systems based on block chain - Google Patents
A kind of distributed integration methods, devices and systems based on block chain Download PDFInfo
- Publication number
- CN110417561A CN110417561A CN201810402130.6A CN201810402130A CN110417561A CN 110417561 A CN110417561 A CN 110417561A CN 201810402130 A CN201810402130 A CN 201810402130A CN 110417561 A CN110417561 A CN 110417561A
- Authority
- CN
- China
- Prior art keywords
- charging
- amount
- account
- node
- child node
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/14—Charging, metering or billing arrangements for data wireline or wireless communications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/08—Payment architectures
- G06Q20/14—Payment architectures specially adapted for billing systems
- G06Q20/145—Payments according to the detected use or quantity
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/389—Keeping log of transactions for guaranteeing non-repudiation of a transaction
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/14—Charging, metering or billing arrangements for data wireline or wireless communications
- H04L12/1403—Architecture for metering, charging or billing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M15/00—Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M15/00—Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
- H04M15/58—Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP based on statistics of usage or network monitoring
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M15/00—Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
- H04M15/61—Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP based on the service used
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M15/00—Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
- H04M15/70—Administration or customization aspects; Counter-checking correct charges
- H04M15/785—Reserving amount on the account
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M15/00—Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
- H04M15/83—Notification aspects
- H04M15/85—Notification aspects characterised by the type of condition triggering a notification
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M15/00—Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
- H04M15/83—Notification aspects
- H04M15/85—Notification aspects characterised by the type of condition triggering a notification
- H04M15/854—Available credit
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M15/00—Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
- H04M15/88—Provision for limiting connection, or expenditure
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Physics & Mathematics (AREA)
- Finance (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Probability & Statistics with Applications (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
This application discloses a kind of distributed integration methods, devices and systems based on block chain, multiple charging child nodes that edge is set are introduced between terminal and operator's charge node, each charging child node provides billing of services for the terminal in network, avoid in the prior art operator's charge node directly provide billing of services for the terminal of magnanimity, alleviate the processing bottleneck of charging flow;Simultaneously, charging child node is the block chain node in charging subnet, operator's charge node is the block chain node in Quota distribution network, Quota distribution network includes charging subnet, Quota distribution record is safeguarded by the Quota distribution account book in Quota distribution network, can effectively avoid main account and the amount of sub- account from distorting, and pass through the sub- account maintenance billing structure of charging in charging subnet, it avoids charging result from distorting, improves the reliability of charging process.
Description
Technical field
The present invention relates to communication charge field more particularly to a kind of distributed integration method, apparatus based on block chain and
System.
Background technique
In field of telecommunications, the basic procedure of online charging are as follows: when user is using business (such as: voice communication or online),
MSC (Mobile service Switching Center, mobile service switching centre) is to SCP (Service Control
Point, service control point) business is initiated using request, SCP is by sending CCR message to OCS (Online Charging
System, online charging system) equipment initiates accounting request, and OCS equipment obtains user balance, and certain expense of withholding simultaneously assigns
SCP certain business uses amount (duration of call or data traffic), and SCP is received and provided service for user after amount.Work as volume
When spending inadequate, SCP can continue to send the new business of CCR message application to OCS equipment using amount, and OCS has been made after receiving
Withholing and send new use amount to SCP with amount.SCP is sustainable to send CCR until user's winding-up uses to OCS
Or user balance is used up.
Early stage billing model is substantially one account of each equipment, so each equipment is that independent management (is supplemented with money, charging
Deng).Occur business, single accounts such as similar group number, family's emotional affection number later to start to support more equipment.With Internet of Things etc.
The development of technology, number of devices that single account needs support increase, and these equipment may all be while online.Such as:
The sensor device that Internet of Things service provider can have more than million passes through carrier network accounting access simultaneously, but provider can
An account statistics can be only needed to be paid, how to carry out accounting management to this single account magnanimity terminal is urgently to solve at present
Certainly the problem of.
Summary of the invention
The technical problem to be solved by the embodiment of the invention is that providing a kind of distributed integration system based on block chain
System, device and system.It can solve the problems, such as to carry out charging to the magnanimity terminal of same account in the prior art.
In order to solve the above-mentioned technical problem, this application provides a kind of distributed integration sides based on block chain for first aspect
Method, comprising:
Charging child node obtains service billing request, and service billing request carries user identifier and business and uses statistics letter
Breath;User identifier indicates that the identity of the terminal to charging, charging child node are the block chain node in charging subnet;In charging
With the amount of the associated sub- account of user identifier no more than in the case where amount threshold value on node, charging child node is marked to user
Know associated operator's charge node request distribution amount;Operator's charge node is the block chain link in Quota distribution network
Point, Quota distribution network include charging subnet;Common recognition network in Quota distribution network reaches common understanding to Quota distribution transaction
Afterwards, the Quota distribution is traded and Quota distribution account book is written by charging child node;Quota distribution transaction includes that the operation is discussed
Taking node is the amount of sub- account distribution, the mark and user identifier of charging child node;Charging child node distributes the distribution
Amount updates the amount of the sub- account;The charging child node uses statistics letter according to updated sub- account and the business
Breath carries out charging to the terminal.
Implement the embodiment of the present invention, multiple chargings that edge is set are introduced between terminal and operator's charge node
Child node, each charging child node provide billing of services for the terminal in network, avoid operator's charge node in the prior art
Billing of services directly is provided for the terminal of magnanimity, alleviates the processing bottleneck of charging flow;Meanwhile charging child node is charging
Block chain node in net, operator's charge node are the block chain node in Quota distribution network, and Quota distribution network includes
Charging subnet safeguards Quota distribution record by Quota distribution account book in Quota distribution network, can effectively avoid main account and
The amount of sub- account is distorted, and the reliability of charging process is improved.
In a kind of possible design, charging child node is according to updated sub- account and business using statistical information to end
End carries out charging processing, comprising:
Charging child node generates charging using statistical information according to charging regulation information and business and trades;Wherein, charging is handed over
It easily include spending amount;After the common recognition network in charging subnet reaches common understanding to charging transaction, charging child node hands over charging
Easily in the write-in sub- account book of charging;Charging child node updates the amount of sub- account according to spending amount.
According to above description, charging child node passes through the charging result of the sub- account of the sub- account maintenance of charging, prevents charging
As a result to distort, the reliability of charging process is further increased.
In a kind of possible design, charging regulation information includes each block that is pre-stored or being pre-configured to be in charging subnet
Intelligent contract on chain node.
In a kind of possible design, further includes:
In the case where meeting amount and giving back condition, charging child node generates amount and gives back transaction, and amount is given back transaction and wrapped
It includes and gives back amount, the mark and user identifier of charging child node;Common recognition network in Quota distribution network gives back friendship to amount
After easily reaching common understanding, charging child node gives back amount to transaction and is written to the Quota distribution account book.
In a kind of possible design, the amount condition of giving back includes: that the volume u of end or sub- account occurs for the business of terminal
It is not updated more than preset duration.
In a kind of possible design, charging child node is obtained after service billing request, further includes:
Charging child node is inquired on index server the associated operator's charge node of user identifier and user identifier
Associated main account and the main account associated sub- account in charging child node;Or
Charging child node is inquired and the associated operator's charge node of user identifier and use in the Quota distribution account book
Family identifies associated main account and main account associated sub- account in charging child node.
Second aspect, this application provides a kind of distributed integration devices based on block chain, comprising:
Acquiring unit, for obtaining service billing request;Wherein, the service billing request carries user identifier and business
Using statistical information, the user identifier indicates the identity of the terminal to charging, and the distributed integration device is charging subnet
In block chain node;
Request unit, on the distributed integration device with the amount of the associated sub- account of the user identifier not
In the case where greater than amount threshold value, amount is distributed to the associated operator's charge node request of the user identifier;Wherein, institute
Stating operator's charge node is the block chain node in Quota distribution network, and the Quota distribution network includes charging
Net;
Writing unit, the feelings reached common understanding for the common recognition network in the Quota distribution network to Quota distribution transaction
It will include amount, the mark of the distributed integration device that operator's charge node is distributed for the sub- account under condition
With the Quota distribution transaction write-in Quota distribution account book of the user identifier;
Updating unit, for updating the amount of the sub- account according to the amount of the distribution;
Charging Detail Record unit, based on being carried out using statistical information to the terminal according to updated sub- account and the business
Take processing.
In a kind of possible design, the Charging Detail Record unit is specifically used for:
Charging is generated using statistical information according to charging regulation information and the business to trade;Wherein, the charging transaction
Including spending amount;
After the common recognition network in the charging subnet reaches common understanding to charging transaction, point writes charging transaction
Enter in the sub- account book of charging;
The amount of the sub- account is updated according to the spending amount.
In a kind of possible design, the charging regulation information includes being pre-stored or being pre-configured to be in the charging subnet
Intelligent contract on each block chain node.
In a kind of possible design, further includes:
Generation unit gives back transaction in the case where meeting amount and giving back condition, generating amount;Wherein, the volume
It includes giving back amount, the mark and the user identifier of the distributed integration device that degree, which gives back transaction,;
Said write unit is also used to the common recognition network in the Quota distribution network and gives back transaction to the amount reach
After common recognition, gives back the amount to transaction and be written to the Quota distribution account book.
In a kind of possible design, the amount condition of giving back includes:
The business of the terminal terminates;Or
The amount of the sub- account is more than that preset duration does not update.
In a kind of possible design, further includes:
Query unit, on index server inquiry with the associated operator's charge node of the user identifier, with
The associated main account of user identifier and the main account associated sub- account on the distributed integration device;Or
Inquiry and the associated operator's charge node of the user identifier and the user in the Quota distribution account book
Identify associated main account and the main account associated sub- account on the distributed integration device.
The third aspect, this application provides a kind of distributed integration methods based on block chain, comprising:
Operator's charge node receives the amount application request from charging child node, and amount application request carries user's mark
Know and node identification, charging child node are the block chain node in charging subnet, operator node is in Quota distribution network
Block chain node, Quota distribution network include charging subnet;Operator's charge node determines associated main account according to user identifier
The amount of family and main account;Operator's host node is to distribute amount, section with the associated sub- account of main account in charging child node
Point identification is used to indicate the charging child node;Common recognition network in Quota distribution network reaches common understanding to Quota distribution transaction
Afterwards, Quota distribution is traded and is written in Quota distribution account book by operator's charge node, and Quota distribution transaction includes operator's charging
Node is the amount of sub- account distribution;Operator's charge node updates the amount of main account according to the amount distributed for sub- account.
In a kind of possible design, operator's charge node be the sub- account of the charging on the associated sub- account of main account
Amount is distributed at family
Operator's charge node according to preset ratio value be charging child node on the associated sub- account allocation of main account
Degree;Or
Operator's charge node is to distribute fixed amount with the associated sub- account of main account in charging child node.
In a kind of possible design, further includes:
Operator's charge node obtains amount and gives back transaction;Wherein, it includes giving back amount and institute that the amount, which gives back transaction,
State user identifier;
The amount is given back after transaction reaches common understanding in the common recognition network in the Quota distribution network, the operator
Charge node is given back the amount to transaction and is written in the Quota distribution account book;
Operator's charge node determines the main account and operator's charging section according to the user identifier
Point gives back the amount that amount updates the main account according to.
Fourth aspect, this application provides a kind of distributed integration devices based on block chain, comprising:
Receiving unit, for receiving the amount application request from charging child node;Wherein, the amount application request is taken
Band user identifier and the node identification, the charging child node are the block chain node in charging subnet, the distributed meter
Taking device is the block chain node in Quota distribution network, and the Quota distribution network includes the charging subnet;
Determination unit, for determining the amount of associated main account and the main account according to the user identifier;
Allocation unit is also used to distribute amount with the associated sub- account of the main account in charging child node;Wherein, institute
It states node identification and is used to indicate the charging child node;
Writing unit, for the common recognition network in the Quota distribution network to Quota distribution transaction reach common understanding after,
Operator's charge node trades the Quota distribution in write-in Quota distribution account book;Wherein, the Quota distribution transaction
It is the amount of the sub- account distribution including operator's charge node;
Updating unit, for updating the amount of the main account according to the amount for being the sub- account distribution.
In a kind of possible design, the allocation unit is specifically used for:
It is to distribute amount with the associated sub- account of the main account in the charging child node according to preset ratio value;Or
To distribute fixed amount with the associated sub- account of the main account in the charging child node.
In a kind of possible design,
The receiving unit is also used to obtain amount and gives back transaction;Wherein, it includes giving back amount that the amount, which gives back transaction,
With the user identifier;
Said write unit is also used to the common recognition network in the Quota distribution network and gives back transaction to the amount reach
After common recognition, gives back the amount to transaction and be written in the Quota distribution account book;
The updating unit is also used to determine the main account according to the user identifier, and according to the refund
Degree updates the amount of the main account.
5th aspect, this application provides a kind of charge systems, comprising: operator's charge node and charging child node, institute
Stating operator's charge node is a block chain node in Quota distribution network, and charging child node is one in charging subnet
Block chain node, the charging subnet are one at least one charging subnet that the Quota distribution network includes;Wherein,
Charging child node, for obtaining service billing request;Wherein, the service billing request carries user identifier and industry
It make sures with statistical information, the identity of terminal of the user identifier expression to charging;
It is not more than the feelings of amount threshold value with the amount of the associated sub- account of the user identifier in the charging child node
Under condition, amount application request is sent to the associated operator's charge node of the user identifier;Wherein, the amount application is asked
Seek the mark including the user identifier and the charging child node;
In the case that common recognition network in the Quota distribution network reaches common understanding to Quota distribution transaction, by the volume
It spends dispensing transaction and Quota distribution account book is written;Wherein, the Quota distribution transaction includes that the operator divides for the sub- account
The amount matched;
The amount of the sub- account is updated according to the amount of the distribution;
Charging processing is carried out to the terminal using statistical information according to updated sub- account and the business;
Operator's charge node, is used for:
Receive the amount application request from the charging child node;
The amount of associated main account and the main account is determined according to the user identifier;
To distribute amount with the associated sub- account of the main account in charging child node;
After the common recognition network in the Quota distribution network reaches common understanding to Quota distribution transaction, by the Quota distribution
In transaction write-in Quota distribution account book;Wherein, it is the sub- account that the Quota distribution transaction, which includes operator's charge node,
The amount of family distribution;
The amount of the main account is updated according to the amount for the sub- account distribution.
The another aspect of the application provides a kind of device, which includes: memory and processor;Wherein, the storage
Batch processing code is stored in device, and the processor executes each side for calling the program code stored in the memory
Method described in face.
The another aspect of the application has been mentioned for a kind of computer readable storage medium, in the computer readable storage medium
It is stored with instruction, when run on a computer, so that computer executes method described in above-mentioned various aspects.
The another aspect of the application provides a kind of computer program product comprising instruction, when it runs on computers
When, so that computer executes method described in above-mentioned various aspects.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 a is a kind of structural schematic diagram of block chain provided in an embodiment of the present invention;
Fig. 1 b is a kind of structural schematic diagram of distributed integration system based on block chain provided in an embodiment of the present invention;
Fig. 1 c is the structural schematic diagram of charging child node in the embodiment of the present invention;
Fig. 2 is a kind of interaction schematic diagram of distributed integration method based on block chain provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of distributed integration device based on block chain provided in an embodiment of the present invention;
Fig. 4 is a kind of another structural representation of distributed integration device based on block chain provided in an embodiment of the present invention
Figure;
Fig. 5 is a kind of another structural representation of distributed integration device based on block chain provided in an embodiment of the present invention
Figure.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention is described.
It is as shown in Figure 1a a kind of structural schematic diagram of block chain, block chain is a distributed account book, and one kind passes through
Decentralization, the technical solution for going to one authentic data library of the mode collective trusted maintenance.Block chain includes multiple blocks, each
Several transaction records are had recorded in block (Bblock), while containing the hash value of previous block, areas all in this way
Block has been connected to form block chain in order.
Intelligent contract (chaincode) is had state (executed or be not carried out) by event-driven, and operates in block chain
On each account book in network, the program of data on account book can be managed.Intelligent contract shows as one section of calculation procedure, similar
In real-life contract, the computer code of intelligent contract provides the rule and logic of transaction, and user calls intelligence
Intelligent contract can execute after meeting terms of trade after contract, and account book is written in transaction results.
Such as: if user will buy assets, issue the transaction of a calling BuyOneAsset intelligence contract function, intelligence
Energy contract can read out the volume residual of the balance of funding of user, assets from block chain, and judgement is modified after meeting terms of trade
The balance of funding and amount of assets of user, reaches common understanding when transaction results and account book is written, and shows that user successfully completes purchase assets
Transaction.
Wherein, the core technology of block chain first is that common recognition mechanism, the common recognition mechanism in block chain be to solve towards
The common recognition scene of Byzantine failure tolerance, i.e. node in block chain network are mutual and distrust, it is possible to there is malice and lie
Node.Each node in block chain network be likely to be " lying " node, but numerous nodes gathers a network
In, the result that they know together is exactly a believable result.The main function of common recognition algorithm is all nodes allowed in block chain
Record identical effective transaction block.
Such as: to fabric project provide a kind of more quick common recognition mechanism PoE (proof of endorse) into
Row explanation.The core mechanism of the common recognition mechanism is that multiple endorsement nodes (endorser peer) run intelligent contract and to fortune
Row result (endorsement) is endorsed (to be carried out by the intelligent contract operation result content to endorser peer itself
Signature is ensured of the result issued by specific endorser peer).Endorser peer is formulated according to specific business need
Some peer, have no difference with other peer.User can be arranged what intelligent contract to be trusted according to actual needs
Endorser peer and to the authentication policy of multiple endorsement (setting endorse policy).Such as: client
(client) intelligent contract operation request (proposal) is sent to 3 endorser peer, endorse policy can be wanted
It asks 3 endorsement contents that must be consistent, may also require that at least two endorsement contents are consistent.It is collecting
The endorsement that endorser peer is returned is included in transaction block, (provides the node of common recognition service by orderer
Or cluster, network of also referred to as knowing together) all peer nodes (packets in block chain network are broadcast to included in a transaction block
Include endorser peer).Peer verifies the transaction block received, and the transaction block for meeting endorse policy just can quilt
Block of effectively trading is considered, by block write area block chain of trading.
In block chain network, different peer can form different channel, and transaction block is being sent to
When orderer is broadcasted, orderer can only be broadcast to transaction block the peer in the corresponding channel of the transaction block,
The transaction block is not will receive in the peer of corresponding channel.It can achieve the effect that protect data-privacy in this way.orderer
, as a kind of service (ordering service), the same orderer had both can be used in different channel for this, can also be with
Using different orderer to disperse to load.
A kind of structural schematic diagram of distributed integration system based on block chain provided in an embodiment of the present invention, hereinafter referred to as
Charge system, charge system include: one or more charging subnets, one or more operators charge node, one or more
Business control nodes, one or more terminals and common recognition network.
Wherein, each charging subnet is a block chain network, and different charging subnets has different charging
Data in channel, the sub- channel of different chargings are mutually isolated.Each charging subnet includes multiple charging child nodes, meter
Expense child node can be the network element of telecom operators' deployment, be also possible to the network element of third-party deployment.Each meter in charging subnet
Taking child node is block chain node, preserves the sub- account book of charging and Quota distribution account book, the sub- account of charging in each charging child node
This record has the charging result of charging child node, and Quota distribution account book record has the Quota distribution of main account to record.Optionally, often
A charging child node includes OCS (online charger system, online charging system), AMA and peer (peer node) three
A part, OCS are used to calculate charging result according to accounting request, and AMA is used to update the amount of sub- account according to charging result,
Peer is to be responsible for recording gauge to take sub- account book and Quota distribution account book, and interact with other block chain link points.
Wherein, one or more block chain charging subnets and one or more operator's charge nodes form an amount
Network is distributed, Quota distribution network is also block chain network, and Quota distribution network includes multiple block chain nodes.It needs to illustrate
It is that, since Quota distribution network includes charging subnet, the charging child node in charging subnet is both the area in charging subnet
Block chain node in block chain node and Quota distribution network.Quota distribution network corresponds to a main channel of charging, no
Same operator has the data in different charging main channel, different channel mutually isolated.Operator's charge node
On preserve Quota distribution account book, the amount and main account that Quota distribution account book record is had the main account of user are each
The amount of sub- account in a charging child node.Business control nodes are used to obtain the user information and business information of terminal, and
The user information of terminal and business information are sent to the charging child node in charging subnet and carry out charging.
Wherein, common recognition network is for reaching common understanding to the data in block chain network, allows all blocks in block chain network
The identical block of chain nodes records.Common recognition network is both provided in each charging subnet, the common recognition network in charging subnet includes
Multiple charging child nodes in charging subnet.Common recognition network is also equipped in Quota distribution network, which includes amount
Multiple nodes in distribution network (can be charging child node, be also possible to operator's charge node, can also both include charging
Child node includes operator's charge node again).
Optionally, charge system can also include meter index server, and index server is for storing user identifier and master
The mapping relations of sub- account of the mapping relations and main account of account in each charging child node.
The structure of the charge system of the embodiment of the present invention is specifically described by taking Fig. 1 b as an example below, charge system packet
It includes: charging subnet 1, charging subnet 2, common recognition network and the main charge node 1 of operator, multiple business control nodes and multiple ends
End.Wherein, each business control nodes can manage one or more terminals, and each charging child node can manage one or more industry
Business control node.Charging subnet 1 includes charging child node 1, charging child node 2, charging child node 3 and charging child node 4, each
Charging child node preserves Quota distribution account book and the sub- account book of charging, and each sub- account book of charging constitutes charging subchain 1.Charging subnet
2 include charging child node 5, charging child node 6, charging child node 7 and charging child node 8, and each charging child node preserves volume
Degree distribution account book and the sub- account book of charging, each sub- account book of charging constitute charging subchain 2.Charging subnet 1, charging subnet 2 and operation
Quotient's charge node 1 constitutes Quota distribution network, is stored with Quota distribution account book, each meter in charging subnet 1 in operator node 1
Take the Quota distribution account book of child node, in charging subnet 2 each charging child node Quota distribution account book and operator's charging section
Quota distribution account book in point 1 constitutes charging main chain.It should be noted that in Fig. 1 b in charge system the form of each network element and
Quantity by way of example only, not constitutes the embodiment of the present invention and limits.
It referring to fig. 2, is a kind of interaction signal of the distributed integration method based on block chain provided in an embodiment of the present invention
Figure is suitable for the network architecture of Fig. 1 b in the embodiment of the present invention, which comprises
S201, business control nodes send service billing request to charging child node, and charging child node receives the business of coming from
The service billing of control node is requested.
Specifically, the business control nodes for managing the terminal select in corresponding charging subnet when terminal uses business
Any one charging child node carry out charging.Such as: business control nodes select the smallest charging of load in charging subnet
Node is that terminal carries out charging or business control nodes to select the shortest charging child node of network path in charging subnet being terminal
It is that terminal carries out charging that progress charging or business control nodes, which select the smallest charging child node of time delay in charging subnet,;Or industry
Control node of being engaged in is using other rule selection charging child nodes.Service billing request can carried terminal user identifier and business make
With statistical information, user identifier is used to indicate the identity of terminal, and user identifier includes but is not limited to international mobile subscriber identity
(International Mobile Subscriber Identity, IMSI), GUTI (Globally Unique
Temporary UE Identity, the unique interim UE mark in the whole world), TMSI (Temporary Mobile Subscriber
Identity, Temporary Mobile Subscriber Identity) in any one.The meter for the business that business is used using statistical information expression terminal
Amount, such as the duration of call, data traffic etc..Optionally, service billing request can also carry request type, type of service, card
One of book and signature are a variety of, and request type indicates that service billing request is used for charging, and type of service indicates that terminal uses
Business type, such as: voice communication, time-frequency call or data traffic etc., duration indicate terminal device using business when
Long, certificate indicates that the digital certificate of terminal, signature indicate the digital signature generated according to business request information, prevent service billing
Request is tampered.
With in charge system in Fig. 1 b between terminal 1, service control point 1, charging subnet 1 and operator's charge node 1
Interactive process is illustrated: when terminal device 1 is using business, business control nodes 1 are selected in associated charging subnet 1
Charging child node, service control point 1 send service billing request to charging child node 1, and the format of service billing request is following
Shown in table 1:
Request type | Charging |
Type of service | Voice communication |
Duration | 60s |
Certificate | X509 certificate content |
Signature | Information signature |
Table 1
S202, charging child node determine the amount of sub- account no more than amount threshold value.
Specifically, service billing request of the charging child node parsing from service control point, charging child node obtain user
Mark, charging child node inquire the sub- account of the associated main account of user identifier and the main account in the charging child node.
Wherein, charging child node can inquire the associated sub- account of user identifier on the index server disposed in advance, can also be
The associated sub- account of user identifier is inquired in local Quota distribution account book.Charging child node determines the volume of the sub- account inquired
Degree, judges whether the amount of sub- account is not more than amount threshold value, and amount threshold value can be value that is pre-stored or being pre-configured, such as:
Amount threshold value is 0, when charging child node determines that the amount of sub- account is less than or equal to 0, executes S204.
The example of continuous S201: charging child node 1 inquires the user identifier according to terminal 1 in local Quota distribution account book
It is associated with main account D, main account D corresponds to sub- account D1 in charging child node 1, and charging child node 1 determines the amount of sub- account D1
It is 0, the amount threshold value for being pre-stored or being pre-configured is 0, and charging child node 1 determines that the amount of sub- account D1 meets and is less than or equal to volume
Spend the condition of threshold value.Optionally, an amount record sheet, amount record be can be reserved in the Quota distribution account book of charging child node 1
Table is as shown in table 2:
Equipment | Billing accounts | Amount |
Terminal 1 | Sub- account D1 | 0 |
Table 2
Wherein, the relevant information of the main account D recorded in the Quota distribution account book of operator's charge node 1, operation are discussed
A Quota distribution table can be stored by taking in the Quota distribution account book of node 1, and Quota distribution table is as shown in table 3:
Table 3
S203, charging child node send amount application request to operator's charge node, and operator's charge node, which receives, to be come
It is requested from the amount application of charging child node.
Specifically, can carry user identifier and node identification in amount application request, operator's charge node parses amount
Application request obtains user identifier and node identification, and operator's charge node inquires the associated main account of user identifier, and really
Determine main account associated sub- account in the charging child node that node identification indicates.Wherein, operator's charge node can basis
The charging sub- section that the associated main account of map information inquiry user identifier and main account being locally stored are indicated in node identification
Associated sub- account on point can also inquire the associated main account of user identifier on the index server disposed in advance, and
Main account associated sub- account in the charging child node that node identification indicates.
According to the example of S202, operator node inquires user identifier association main account D and main account D in node
It identifies and corresponds to sub- account D1 in the charging child node 1 of instruction.
S204, operator's charge node are sub- account amount, and generate Quota distribution according to the amount of distribution and hand over
Easily.
Specifically, sub- account herein is main account associated sub- account, operator's charge node in charging child node
Certain amount is distributed from main account to the sub- account of charging child node according to Quota distribution rule.Optionally, Quota distribution
Rule include: operator's charge node distributed from main account fixed amount to the sub- account of charging child node or operation discuss
Take node and distributes certain amount from main account to the sub- account of charging child node according to preset ratio value.Such as: operator
Charge node distributes amount 10 to the sub- account of charging child node every time;Or the current amount of main account is 200, operator's charging
The amount of the every sub-distribution 10% of node this time distributes amount 20 to meter to the sub- account of charging child node, i.e. operator's charge node
Take the sub- account of child node.
Operator's charge node generates Quota distribution transaction, Quota distribution transaction according to the amount for above-mentioned sub- account distribution
The amount of mark, user identifier and distribution including charging child node.Such as: Quota distribution transaction includes charging child node 1
Mark, the amount 10 of the user identifier of terminal 1 and distribution.
S205, to the Quota distribution transaction reach common understanding after, operator's charge node by the Quota distribution transaction write
Enter into Quota distribution account book.
Specifically, common recognition mechanism guarantees the Quota distribution saved on all block chain nodes in Quota distribution network transaction phase
Together, the common recognition network of the embodiment of the present invention can be also possible to multiple in Quota distribution network independently of Quota distribution network
Node is from composition common recognition network, and the present invention is with no restriction.Quota distribution transaction is sent to common recognition net by operator's charge node
Network, common recognition network by know together algorithm reach to Quota distribution transaction reach common understanding after, common recognition network by Quota distribution transaction extensively
It casts in Quota distribution network, each block chain node in Quota distribution network receives Quota distribution transaction, to amount point
It is verified with transaction, such as: the digital signature of verifying Quota distribution transaction, after being verified, node trades Quota distribution
It is written in local Quota distribution account book.
Such as: charging child node 1 generates Quota distribution according to the amount distributed for sub- account D1 and trades, Quota distribution transaction
Including but not limited to transaction id, channel mark, type of transaction, promoter's certificate, promoter's signature, distribution node and charging
One of amount is a variety of.Quota distribution transaction is as shown in table 4:
Transaction id | 00000001 |
Channel | ChannelA |
Type of transaction | QUOTABORROW |
Promoter's certificate | The X509 certificate of operator's charge node 1 |
Promoter's signature | The signature of charging child node 1 |
Distribution node | Charging child node 1 |
Charging amount | 10 |
Table 4
S206, operator's charge node update the amount of main account according to the amount of distribution.
Wherein, operator's charge node is a block chain node in Quota distribution network, and operator's charge node connects
After receiving the Quota distribution transaction from common recognition network, Quota distribution transaction is verified, after being verified, operator's charging section
Quota distribution transaction is written in local Quota distribution account book by point.
The example of continuous S203: operator's charge node 1 determines that terminal device 1 is associated with main account D and main account D and is counting
To take and corresponds to sub- account D1 in child node 1, operator's charge node 1 is that the amount of sub- account D1 distribution is 10 from main account book D1,
Then operator's charge node 1 updates the amount of main account D, and the amount of main account D is 190 after update, operator's charge node 1
Quota distribution account book in include Quota distribution table, the Quota distribution table being written in Quota distribution account book is as shown in table 5:
Table 5
S207, charging child node update the amount of sub- account according to charging amount.
Specifically, charging child node is also the block chain node in Quota distribution network, charging child node is received from altogether
The Quota distribution transaction for knowing network, verifies Quota distribution transaction, and after being verified, Quota distribution transaction is written to this
In the Quota distribution account book on ground.Simultaneously charging child node according to Quota distribution trade in relevant information obtain distributing to sub- account
Amount, the amount of sub- account is updated according to the amount of distribution.
Such as: charging child node 1 receives the Quota distribution transaction from common recognition network, signs to the number of Quota distribution transaction
Name is verified, and after being verified, Quota distribution transaction is written in local Quota distribution account book, charging child node 1 solves
It is 10 that analysis Quota distribution, which trades to obtain as the amount of sub- account D1 distribution, and the sub- account D1 of charging child node 1 current amount is 0,
Charging child node 1 is 10 according to the amount that the amount of distribution updates sub- account D1.
S208, charging child node carry out charging to terminal using statistical information according to updated sub- account and business.
Specifically, the amount for the sub- account that charging child node inquires in local Quota distribution account book is greater than amount threshold
Value, charging child node carry out charging processing to terminal according to updated sub- account.Charging child node is according to charging regulation information
This spending amount is determined using statistical information with business.Wherein, charging regulation information can be pre-stored or be pre-configured
, such as: charging regulation information is the intelligent contract being stored in the sub- account book of the charging in charging child node.
Optionally, charging child node generates charging transaction according to spending amount, and charging transaction can also include sub- account
The mark of mark and charging child node.Charging child node determine where charging subnet, select one in the charging subnet or
Multiple charging child nodes are that charging transaction is endorsed (endorsing), and optionally, the quantity of the charging child node of selection is greater than
Or the half equal to charging child node total quantity in charging subnet, the process of endorsement can refer to existing endorsement process, herein not
It repeats again, after one or more charging child nodes verifying charging transaction of selection passes through, charging is traded and sent by charging child node
Give common recognition network, it should be noted that common recognition network at this time can be identical as the common recognition network in S207, is also possible to charging
The common recognition network that subnet is independently arranged, the embodiment of the present invention is with no restriction.Common recognition network reaches charging transaction using common recognition charging
After common recognition, by each charging child node of the charging transaction broadcast into charging subnet.
According to the example of S207: it include 4 charging child nodes: charging child node 1 to charging child node 4 in charging subnet 1,
Charging child node 1 selects charging child node 1 and charging child node 2 to endorse, and charging child node 1 is sent to charging child node 2
Charging transaction, charging child node 2 verify signature, the meter that the service billing carried in charging transaction is requested after receiving charging transaction
Whether the signature for taking child node 1 is correct, and whether the spending amount carried in the intelligent contract verifying charging transaction of operation is correct,
If above-mentioned verifying is all correct, charging child node 2 is verified message to the transmission of charging child node 1, is verified in message and carries
The signature that charging child node 2 trades to charging, charging child node 1 receive at least two charging child nodes in charging subnet 1 and send out
That send is verified message, shows that charging transaction verification passes through.Charge node 1 is sub by charging transaction, charging child node 1 and charging
The signature of node 2 is broadcasted by network of knowing together to charging subnet 1, and each block chain node in charging subnet 1 receives
After charging transaction, after being verified, charging transaction is written in the respective sub- account book of charging for the signature of verifying charging transaction.Its
In, after charging child node 1 receives charging transaction, charging transaction is written to this after being verified by the signature of verifying charging transaction
The sub- account book of charging in, charging child node updates the amount of sub- account D1 according to spending amount, such as: spending amount 4, charging
The amount record sheet being written in the sub- account book of the charging of child node 1 is as follows:
Equipment | Billing accounts | Amount |
Terminal 1 | Sub- account D1 | 6 |
Table 6
Optionally, the method for the embodiment of the present invention further include:
The charging child node generates amount and gives back transaction when meeting amount and giving back condition;Wherein, the amount is given back
Transaction includes giving back amount, the mark and the user identifier of the charging child node;
The amount is given back after transaction reaches common understanding in the common recognition network in Quota distribution network, the charging child node
It gives back the amount to transaction and is written to the Quota distribution account book.
Specifically, the amount condition of giving back includes but is not limited to: not updated in the terminal winding-up or sub- account being billed
When be just more than preset duration in the case where, such as: when terminal receives this call or the amount of sub- account is more than 1 hour
When not updating.Charging child node determines the amount of sub- account, the amount of sub- account is returned to main account: charging child node
Amount is generated according to the amount of sub- account and gives back transaction, and it includes the mark of operator's charge node, Yong Hubiao that amount, which gives back transaction,
Know and give back amount, charging child node gives back amount to transaction and is sent to common recognition network, and common recognition network is given back transaction to amount and reached
After common recognition, each block chain node into Quota distribution network, each block chain node in Quota distribution network are broadcasted
It receives after amount gives back transaction, gives back transaction to amount and verify, local Quota distribution account is written to after being verified
In this, operator's charge node is according to the amount for giving back amount update main account.Optionally, charging child node can be by sub- account
Whole amounts return to main account, that is, give back amount post-billing child node sub- account zero.
According to the example of S207: after the service ending of terminal 1, charging child node 1 determines that the amount of sub- account D1 is 6, meter
Expense child node 1 determines that giving back amount is 6, the amount of sub- account D1 is updated to 0, charging child node 1 is generated according to amount is given back
Amount gives back transaction, and charging child node 1 selects charging child node 2 and charging child node 3 in charging subnet 1 to give back friendship to amount
It easily endorses, after being verified, charging child node 1 gives back amount to transaction and submits to common recognition network, and network of knowing together is to amount
It gives back after transaction reaches common understanding, broadcasts the block chain node into Quota distribution network.Operator's charge node 1 is also amount point
A block chain node in distribution network, for operator's charge node, operator's charge node 1 is received from common recognition net
The amount of network gives back transaction, and verifying amount gives back the signature of transaction, is verified rear operator's charge node 1 for amount and gives back friendship
It is easily written in local Quota distribution account book, operation charge node 1 is 196 according to giving back amount to update the amount of main account D.
The format that amount gives back transaction is as shown in the table:
Transaction id | 00000001 |
Channel | ChannelA |
Type of transaction | QUOTARETURN |
Promoter's certificate | The X509 certificate of operator's charge node 1 |
Promoter's signature | The signature of charging child node 1 |
Distribution node | Charging child node 1 |
Give back amount | 6 |
Endorsement signature | 2 signatures of charging child node+charging child node 3 is signed |
Table 7
The information recorded in the Quota distribution account of charging child node 1 and operator's charge node 1 is as shown in the table:
Table 8
Description according to fig. 2, the embodiment of the present invention introduces between terminal and operator's charge node is arranged in edge
Multiple charging child nodes, each charging child node provide billing of services for the terminal in network, avoid operator in the prior art
Charge node directly provides billing of services for the terminal of magnanimity, alleviates the processing bottleneck of charging flow;Meanwhile charging child node
For the block chain node in charging subnet, operator's charge node is the block chain node in Quota distribution network, Quota distribution
Network includes charging subnet, safeguards Quota distribution record by the Quota distribution account book in Quota distribution network, can effectively avoid
The amount of main account and sub- account is distorted, and the reliability of charging process is improved.
Above-mentioned Fig. 2 illustrates a kind of distributed integration method based on block chain of the embodiment of the present application.
Fig. 3 provides a kind of distributed integration device (hereinafter referred to as device 3) based on block chain of the embodiment of the present application.
Device 3 includes acquiring unit 301, request unit 302, writing unit 303, updating unit 304 and Charging Detail Record unit 305, device 3
Specific implementation process can refer to the description of Fig. 2.
Acquiring unit 301, for obtaining service billing request;Wherein, service billing request carry user identifier and
Business uses statistical information, and the user identifier indicates the identity of the terminal to charging, and device 3 is the block chain in charging subnet
Node.
Request unit 302, in the charging child node with the amount of the associated sub- account of the user identifier not
In the case where greater than amount threshold value, with the associated operator's charge node request distribution amount of the user identifier;Wherein, described
Operator's charge node is the block chain node in Quota distribution network, and the Quota distribution network includes the charging subnet.
Writing unit 303 reaches common understanding to Quota distribution transaction for the common recognition network in the Quota distribution network
In the case where, the Quota distribution is traded, Quota distribution account book is written;Wherein, the Quota distribution transaction includes the operation
Quotient is the amount of the sub- account distribution.
Updating unit 304, for updating the amount of the sub- account according to the amount of the distribution.
Charging Detail Record unit 305, for according to updated sub- account and the business using statistical information to the terminal into
Row charging processing.
Optionally, Charging Detail Record unit 305 is specifically used for:
Charging is generated using statistical information according to charging regulation information and the business to trade;Wherein, the charging transaction
Including spending amount;
After the common recognition network in the charging subnet reaches common understanding to charging transaction, the charging is traded and is written
In the sub- account book of charging;
The amount of the sub- account is updated according to the spending amount.
Optionally, the charging regulation information includes each block chain link that is pre-stored or being pre-configured to be in the charging subnet
Intelligent contract on point.
Optionally, device 3 further include:
Unit, in the case where meeting amount and giving back condition, the charging child node generates amount and gives back transaction;Wherein,
It includes giving back amount, the mark and the user identifier of the charging child node that the amount, which gives back transaction,;
Said write unit 303, the common recognition network being also used in the Quota distribution network give back friendship to the amount
After easily reaching common understanding, the charging child node gives back the amount to transaction and is written to the Quota distribution account book.
Optionally, the amount condition of giving back includes:
The business of the terminal terminates;Or
The amount of the sub- account is more than that preset duration does not update.
Optionally, further includes:
Query unit, on index server inquiry with the associated operator's charge node of the user identifier, with
The associated main account of user identifier and the main account associated sub- account on device 3;Or
Inquiry and the associated operator's charge node of the user identifier and the user in the Quota distribution account book
Identify associated main account and the main account associated sub- account on device 6.
Described device 3 can be charging child node, described device 3 or the field programmable gate for realizing correlation function
Array (field-programmable gate array, FPGA), special integrated chip, System on Chip/SoC (system on
Chip, SoC), central processing unit (central processor unit, CPU), network processing unit (network
Processor, NP), digital signal processing circuit, microcontroller (micro controller unit, MCU) can also use
Programmable controller (programmable logic device, PLD) or other integrated chips.
The embodiment of the present application and the embodiment of the method for Fig. 2 are based on same design, and bring technical effect is also identical, specifically
Process can refer to the description of the embodiment of the method for Fig. 2, and details are not described herein again.
Fig. 4 provides another distributed integration device based on block chain provided by the embodiments of the present application (hereinafter referred to as
Device 4), device 4 includes receiving unit 401, determination unit 402, allocation unit 403, writing unit 404 and updating unit 405.
The realization process of device 4 can refer to the description of Fig. 2.
Receiving unit 401, for receiving the amount application request from charging child node;Wherein, the amount application is asked
It asks and carries user identifier and the node identification;Device 4 is the block chain node in Quota distribution network, the Quota distribution net
Network includes the charging subnet.
Determination unit 402, for determining the volume of associated main account and the main account according to the user identifier
Degree.
Allocation unit 403, for being to distribute amount with the associated sub- account of the main account in charging child node;Wherein,
The node identification is used to indicate the charging child node, and the charging child node is the block chain link node in charging subnet.
Writing unit 404 reaches common understanding to Quota distribution transaction for the common recognition network in the Quota distribution network
Afterwards, the Quota distribution is traded and is written in Quota distribution account book;Wherein, it is described that the Quota distribution transaction, which includes device 4,
The amount of sub- account distribution.
Updating unit 405, for updating the amount of the main account according to the amount for being the sub- account distribution.
Optionally, allocation unit 403 is specifically used for:
It is to distribute amount with the associated sub- account of the main account in the charging child node according to preset ratio value;Or
To distribute fixed amount with the associated sub- account of the main account in the charging child node.
Optionally, receiving unit 401 are also used to obtain amount and give back transaction;Wherein, it includes returning that the amount, which gives back transaction,
Also amount and the user identifier.
Said write unit 404, the common recognition network being also used in the Quota distribution network give back friendship to the amount
After easily reaching common understanding, gives back the amount to transaction and be written in the Quota distribution account book.
The updating unit 405 is also used to determine the main account according to the user identifier, and is given back according to described
Amount updates the amount of the main account.
Described device 4 can be operator's charge node, and described device 4 may be to realize that the scene of correlation function can compile
Journey gate array (field-programmable gate array, FPGA), special integrated chip, System on Chip/SoC (system on
Chip, SoC), central processing unit (central processor unit, CPU), network processing unit (network
Processor, NP), digital signal processing circuit, microcontroller (micro controller unit, MCU) can also use
Programmable controller (programmable logic device, PLD) or other integrated chips.
The embodiment of the present application and the embodiment of the method for Fig. 2 are based on same design, and bring technical effect is also identical, specifically
Process can refer to the description of the embodiment of the method for Fig. 2, and details are not described herein again.
Fig. 5 is a kind of apparatus structure schematic diagram provided by the embodiments of the present application, and hereinafter referred to as device 5, device 5 can integrate
In aforementioned network equipment or terminal device, as shown in figure 5, the device include: memory 502, processor 501, transmitter 504 with
And receiver 503.
Memory 502 can be independent physical unit, can be with processor 501, transmitter 504 and receiver 503
It is connected by bus.Memory 502, processor 501, transmitter 504 and receiver 501 also can integrate together, pass through
Hardware realization etc..
Transmitter 504 and receiver 503 can also be connect with antenna, and receiver 503 receives other equipment by antenna and sends out
The information sent, correspondingly, transmitter 604 send information to other equipment by antenna.
Memory 502 is used to store the program for realizing above method embodiment or Installation practice modules, processing
Device 501 calls the program, executes the operation of above method embodiment.
Optionally, when passing through software realization some or all of in the transmission method of the upstream data of above-described embodiment,
The transmitting device of upstream data can also only include processor.Memory for storing program be located at wave beam configuration device it
Outside, processor is connect by circuit/electric wire with memory, for reading and executing the program stored in memory.
Processor can be central processing unit (central processing unit, CPU), network processing unit
The combination of (network processor, NP) or CPU and NP.
Processor can further include hardware chip.Above-mentioned hardware chip can be specific integrated circuit
(application-specific integrated circuit, ASIC), programmable logic device (programmable
Logic device, PLD) or combinations thereof.Above-mentioned PLD can be Complex Programmable Logic Devices (complex
Programmable logic device, CPLD), field programmable gate array (field-programmable gate
Array, FPGA), Universal Array Logic (generic array logic, GAL) or any combination thereof.
Memory may include volatile memory (volatile memory), such as random access memory
(random-access memory, RAM);Memory also may include nonvolatile memory (non-volatile
), such as flash memory (flash memory), hard disk (hard disk drive, HDD) or solid state hard disk memory
(solid-state drive, SSD);Memory can also include the combination of the memory of mentioned kind.
In above-described embodiment, transmission unit or transmitter execute the step of above-mentioned each embodiment of the method is sent, and receive single
Member or receiver execute the step of above-mentioned each embodiment of the method receives, and other steps are executed by other modules or processor.Hair
Send module and receiving module that can form transceiver module, receiver and transmitter can form transceiver.
The embodiment of the present application also provides a kind of computer storage mediums, are stored with computer program, the computer program
For executing the distributed integration method provided by the above embodiment based on block chain.
The embodiment of the present application also provides a kind of computer program products comprising instruction, when it runs on computers
When, so that computer executes the distributed integration method provided by the above embodiment based on block chain.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Claims (19)
1. a kind of distributed integration method based on block chain characterized by comprising
Charging child node obtains service billing request;Wherein, the service billing request carries user identifier and business and uses system
Information is counted, the user identifier indicates that the identity of the terminal to charging, the charging child node are the block chain in charging subnet
Node;
In the case where being not more than amount threshold value with the amount of the associated sub- account of the user identifier in the charging child node,
The charging child node distributes amount to the associated operator's charge node request of the user identifier;Wherein, the operation
Quotient's charge node is the block chain node in Quota distribution network, and the Quota distribution network includes the charging subnet;
In the case that common recognition network in the Quota distribution network reaches common understanding to Quota distribution transaction, the charging section
The Quota distribution is traded and Quota distribution account book is written by point;Wherein, it is institute that the Quota distribution transaction, which includes the operator,
State the amount of sub- account distribution;
The charging child node updates the amount of the sub- account according to the amount of the distribution;
The charging child node carries out charging to the terminal using statistical information according to updated sub- account and the business
Processing.
2. the method according to claim 1, wherein the charging child node is according to updated sub- account and institute
It states business and charging processing is carried out to the terminal using statistical information, comprising:
The charging child node generates charging using statistical information according to charging regulation information and the business and trades;Wherein, institute
Stating charging transaction includes spending amount;
After the common recognition network in the charging subnet reaches common understanding to charging transaction, the charging child node is by the meter
Take in the transaction write-in sub- account book of charging;
The charging child node updates the amount of the sub- account according to the spending amount.
3. according to the method described in claim 2, it is characterized in that, the charging regulation information includes pre-stored or is pre-configured to be in
Intelligent contract on each block chain node of the charging subnet.
4. according to claim 1 to method described in 3 any one, which is characterized in that further include:
In the case where meeting amount and giving back condition, the charging child node generates amount and gives back transaction;Wherein, the amount is returned
Also transaction includes giving back amount, the mark and the user identifier of the charging child node;
The amount is given back after transaction reaches common understanding in the common recognition network in the Quota distribution network, the charging child node
It gives back the amount to transaction and is written to the Quota distribution account book.
5. according to the method described in claim 4, it is characterized in that, the amount condition of giving back includes:
The business of the terminal terminates;Or
The amount of the sub- account is more than that preset duration does not update.
6. according to claim 1 to method described in 5 any one, which is characterized in that the charging child node obtains business meter
Take after requesting, further includes:
The charging child node inquired on index server with the associated operator's charge node of the user identifier, with it is described
The associated main account of user identifier and the main account associated sub- account in the charging child node;Or
The charging child node inquired in the Quota distribution account book with the associated operator's charge node of the user identifier,
With the associated main account of the user identifier and the main account in the charging child node associated sub- account.
7. a kind of distributed integration device based on block chain characterized by comprising
Acquiring unit, for obtaining service billing request;Wherein, the service billing request carries user identifier and business uses
Statistical information, the user identifier indicate the identity of the terminal to charging, and the distributed integration device is in charging subnet
Block chain node;
Request unit, for being not more than amount with the amount of the associated sub- account of the user identifier in the charging child node
In the case where threshold value, with the associated operator's charge node request distribution amount of the user identifier;Wherein, the operation is discussed
Taking node is the block chain node in Quota distribution network, and the Quota distribution network includes the charging subnet;
Writing unit, the case where reaching common understanding for the common recognition network in the Quota distribution network to Quota distribution transaction
Under, the Quota distribution is traded, Quota distribution account book is written;Wherein, it is institute that the Quota distribution transaction, which includes the operator,
State the amount of sub- account distribution;
Updating unit, for updating the amount of the sub- account according to the amount of the distribution;
Charging Detail Record unit, for being carried out at charging using statistical information to the terminal according to updated sub- account and the business
Reason.
8. device according to claim 7, which is characterized in that the Charging Detail Record unit is specifically used for:
Charging is generated using statistical information according to charging regulation information and the business to trade;Wherein, the charging, which is traded, includes
Spending amount;
After the common recognition network in the charging subnet reaches common understanding to charging transaction, the charging is traded, charging is written
In sub- account book;
The amount of the sub- account is updated according to the spending amount.
9. device according to claim 8, which is characterized in that the charging regulation information includes pre-stored or is pre-configured to be in
Intelligent contract on each block chain node of the charging subnet.
10. according to device described in claim 7 to 9 any one, which is characterized in that further include:
Generation unit, in the case where meeting amount and giving back condition, the charging child node generates amount and gives back transaction;Wherein,
It includes giving back amount, the mark and the user identifier of the charging child node that the amount, which gives back transaction,;
Said write unit is also used to common recognition network in the Quota distribution network and gives back transaction to the amount reach altogether
After knowledge, the charging child node gives back the amount to transaction and is written to the Quota distribution account book.
11. device according to claim 10, which is characterized in that the amount condition of giving back includes:
The business of the terminal terminates;Or
The amount of the sub- account is more than that preset duration does not update.
12. according to device described in claim 7 to 11 any one, which is characterized in that further include:
Query unit, on index server inquiry with the associated operator's charge node of the user identifier, with it is described
The associated main account of user identifier and the main account associated sub- account on the distributed integration device;Or
Inquiry and the associated operator's charge node of the user identifier and the user identifier in the Quota distribution account book
Associated main account and the main account associated sub- account on the distributed integration device.
13. a kind of distributed integration method based on block chain characterized by comprising
Operator's charge node receives the amount application request from charging child node;Wherein, the amount application request carries
User identifier and the node identification;Operator's charge node is the block chain node in Quota distribution network, the volume
Degree distribution network includes the charging subnet;
Operator's charge node determines the amount of associated main account and the main account according to the user identifier;
Operator's charge node is to distribute amount with the associated sub- account of the main account in charging child node;Wherein, institute
It states node identification and is used to indicate the charging child node, the charging child node is the block chain link node in charging subnet;
After the common recognition network in the Quota distribution network reaches common understanding to Quota distribution transaction, operator's charge node
The Quota distribution is traded and is written in Quota distribution account book;Wherein, the Quota distribution transaction includes operator's charging
Node is the amount of the sub- account distribution;
Operator's charge node updates the amount of the main account according to the amount for the sub- account distribution.
14. according to the method for claim 13, which is characterized in that operator's charge node be charging child node on
The associated sub- account of main account distributes amount, comprising:
Operator's charge node according to preset ratio value be the charging child node on the associated sub- account of the main account
Amount is distributed at family;Or
Operator's charge node is to distribute fixed amount with the associated sub- account of the main account in the charging child node.
15. method described in 3 or 14 according to claim 1, which is characterized in that further include:
Operator's charge node obtains amount and gives back transaction;Wherein, it includes giving back amount and the use that the amount, which gives back transaction,
Family mark;
Operator's charging after transaction reaches common understanding is given back to the amount in the common recognition network in the Quota distribution network
Node is given back the amount to transaction and is written in the Quota distribution account book;
Operator's charge node determines the main account and operator's charge node root according to the user identifier
According to the amount given back amount and update the main account.
16. a kind of distributed integration device based on block chain characterized by comprising
Receiving unit, for receiving the amount application request from charging child node;Wherein, the amount application request, which carries, uses
Family mark and the node identification;The distributed integration device is the block chain node in Quota distribution network, the amount
Distributing network includes the charging subnet;
Determination unit, for determining the amount of associated main account and the main account according to the user identifier;
Allocation unit, for being to distribute amount with the associated sub- account of the main account in charging child node;Wherein, the node
Mark is used to indicate the charging child node, and the charging child node is the block chain link node in charging subnet;
Writing unit, for the common recognition network in the Quota distribution network to Quota distribution transaction reach common understanding after, by institute
It states in Quota distribution transaction write-in Quota distribution account book;Wherein, the Quota distribution transaction includes the distributed integration device
For the amount of the sub- account distribution;
Updating unit, for updating the amount of the main account according to the amount for being the sub- account distribution.
17. device according to claim 16, which is characterized in that the allocation unit is specifically used for:
It is to distribute amount with the associated sub- account of the main account in the charging child node according to preset ratio value;Or
To distribute fixed amount with the associated sub- account of the main account in the charging child node.
18. device according to claim 16 or 17, which is characterized in that
The receiving unit is also used to obtain amount and gives back transaction;Wherein, it includes giving back amount and institute that the amount, which gives back transaction,
State user identifier;
Said write unit is also used to common recognition network in the Quota distribution network and gives back transaction to the amount reach altogether
After knowledge, gives back the amount to transaction and be written in the Quota distribution account book;
The updating unit is also used to determine the main account according to the user identifier, and gives back amount more according to described
The amount of the new main account.
19. a kind of distributed integration system based on block chain characterized by comprising operator's charge node and charging
Node, operator's charge node are a block chain node in Quota distribution network, and charging child node is charging subnet
In a block chain node, the charging subnet be the Quota distribution network include at least one charging subnet in one
It is a;Wherein,
Charging child node, for obtaining service billing request;Wherein, the service billing request, which carries user identifier and business, makes
With statistical information, the user identifier indicates the identity of the terminal to charging;
In the case where being not more than amount threshold value with the amount of the associated sub- account of the user identifier in the charging child node,
Amount application request is sent to the associated operator's charge node of the user identifier;Wherein, the amount application request packet
Include the mark of the user identifier and the charging child node;
In the case that common recognition network in the Quota distribution network reaches common understanding to Quota distribution transaction, by the amount point
Quota distribution account book is written with transaction;Wherein, it is the sub- account distribution that the Quota distribution transaction, which includes the operator,
Amount;
The amount of the sub- account is updated according to the amount of the distribution;
Charging processing is carried out to the terminal using statistical information according to updated sub- account and the business;
Operator's charge node, is used for:
Receive the amount application request from the charging child node;
The amount of associated main account and the main account is determined according to the user identifier;
To distribute amount with the associated sub- account of the main account in charging child node;
After the common recognition network in the Quota distribution network reaches common understanding to Quota distribution transaction, the Quota distribution is traded
It is written in Quota distribution account book;Wherein, the Quota distribution transaction includes that operator's charge node is divided for the sub- account
The amount matched;
The amount of the main account is updated according to the amount for the sub- account distribution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810402130.6A CN110417561B (en) | 2018-04-28 | 2018-04-28 | Block chain-based distributed charging method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810402130.6A CN110417561B (en) | 2018-04-28 | 2018-04-28 | Block chain-based distributed charging method, device and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110417561A true CN110417561A (en) | 2019-11-05 |
CN110417561B CN110417561B (en) | 2021-10-15 |
Family
ID=68357198
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810402130.6A Active CN110417561B (en) | 2018-04-28 | 2018-04-28 | Block chain-based distributed charging method, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110417561B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111064586A (en) * | 2020-03-16 | 2020-04-24 | 成都吉胜科技有限责任公司 | Distributed parallel charging method |
CN111401866A (en) * | 2020-03-13 | 2020-07-10 | 杭州复杂美科技有限公司 | Method, apparatus and storage medium for pre-storing and deducting commission fee |
CN111835929A (en) * | 2020-07-14 | 2020-10-27 | 中国联合网络通信集团有限公司 | Telephone charge transaction method and system based on block chain |
WO2022078398A1 (en) * | 2020-10-14 | 2022-04-21 | 深圳壹账通智能科技有限公司 | Blockchain-based sub-account transaction processing method and system, device and medium |
WO2022078359A1 (en) * | 2020-10-13 | 2022-04-21 | 深圳壹账通智能科技有限公司 | Account book management method and apparatus, and device and storage medium |
CN114567366A (en) * | 2022-02-17 | 2022-05-31 | 北京电信规划设计院有限公司 | System and method for sharing vehicle-mounted satellite communication resources based on block chain |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105447604A (en) * | 2014-08-04 | 2016-03-30 | 阿里巴巴集团控股有限公司 | Account processing method and device |
CN107026897A (en) * | 2017-02-20 | 2017-08-08 | 阿里巴巴集团控股有限公司 | A kind of methods, devices and systems of data processing |
CN107147735A (en) * | 2017-05-12 | 2017-09-08 | 北京博晨技术有限公司 | A kind of distributed account book system based on hierarchy |
CN107464112A (en) * | 2017-07-20 | 2017-12-12 | 捷德(中国)信息科技有限公司 | Exchange management method and system based on block chain |
CN107547762A (en) * | 2016-06-29 | 2018-01-05 | 中兴通讯股份有限公司 | A kind of charging method and charge system |
WO2018012872A1 (en) * | 2016-07-14 | 2018-01-18 | 주식회사 코인플러그 | Method for providing recording and verification service for data received and transmitted by messenger service, and server using method |
-
2018
- 2018-04-28 CN CN201810402130.6A patent/CN110417561B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105447604A (en) * | 2014-08-04 | 2016-03-30 | 阿里巴巴集团控股有限公司 | Account processing method and device |
CN107547762A (en) * | 2016-06-29 | 2018-01-05 | 中兴通讯股份有限公司 | A kind of charging method and charge system |
WO2018012872A1 (en) * | 2016-07-14 | 2018-01-18 | 주식회사 코인플러그 | Method for providing recording and verification service for data received and transmitted by messenger service, and server using method |
CN107026897A (en) * | 2017-02-20 | 2017-08-08 | 阿里巴巴集团控股有限公司 | A kind of methods, devices and systems of data processing |
CN107147735A (en) * | 2017-05-12 | 2017-09-08 | 北京博晨技术有限公司 | A kind of distributed account book system based on hierarchy |
CN107464112A (en) * | 2017-07-20 | 2017-12-12 | 捷德(中国)信息科技有限公司 | Exchange management method and system based on block chain |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111401866A (en) * | 2020-03-13 | 2020-07-10 | 杭州复杂美科技有限公司 | Method, apparatus and storage medium for pre-storing and deducting commission fee |
CN111064586A (en) * | 2020-03-16 | 2020-04-24 | 成都吉胜科技有限责任公司 | Distributed parallel charging method |
CN111835929A (en) * | 2020-07-14 | 2020-10-27 | 中国联合网络通信集团有限公司 | Telephone charge transaction method and system based on block chain |
WO2022078359A1 (en) * | 2020-10-13 | 2022-04-21 | 深圳壹账通智能科技有限公司 | Account book management method and apparatus, and device and storage medium |
WO2022078398A1 (en) * | 2020-10-14 | 2022-04-21 | 深圳壹账通智能科技有限公司 | Blockchain-based sub-account transaction processing method and system, device and medium |
CN114567366A (en) * | 2022-02-17 | 2022-05-31 | 北京电信规划设计院有限公司 | System and method for sharing vehicle-mounted satellite communication resources based on block chain |
CN114567366B (en) * | 2022-02-17 | 2024-02-23 | 北京电信规划设计院有限公司 | Vehicle-mounted satellite communication resource sharing method based on block chain |
Also Published As
Publication number | Publication date |
---|---|
CN110417561B (en) | 2021-10-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110417561A (en) | A kind of distributed integration methods, devices and systems based on block chain | |
CN112600841B (en) | Credit record sharing method and device based on block chain and electronic equipment | |
US10719819B2 (en) | Application of dynamic tokens | |
JP7183293B2 (en) | MEDIUM RESOURCE ALLOCATION METHOD, APPARATUS, SYSTEM, COMPUTER PROGRAM AND COMPUTER DEVICE | |
US11037118B2 (en) | Zero knowledge third party guarantee of service on decentralized computing platform | |
US11234116B2 (en) | Distributed ledger system for management and implementation of exchanges of wireless services between wireless service providers | |
CN109242483A (en) | A kind of dual trading method and system based on centralization and decentralization | |
JP7226858B2 (en) | Method and device for providing roaming service using blockchain | |
CN110910230A (en) | Accounting method, accounting system and storage medium | |
CN112765656B (en) | Electric car sharing charging credible system and method based on block chain | |
CN108768672B (en) | Data processing method, device and storage medium | |
CN112381542A (en) | Transaction payment method, device, equipment and storage medium based on block chain | |
WO2020103565A1 (en) | Block chain-based method and device for taxi operation | |
CN118138266A (en) | Network device and communication device | |
CN113221191B (en) | Block chain-based data evidence storage method, device, equipment and storage medium | |
CN112529660B (en) | Electronic ticketing method and system based on block chain, electronic equipment and storage medium | |
CN109949024A (en) | Service providing method, device, server and storage medium | |
CN111937020A (en) | Aggregation payment method and system for digital currency and edge server | |
KR102145578B1 (en) | Method and Apparatus for Providing Roaming Service using Block Chain | |
Oktian et al. | BlockSubPay-a blockchain framework for subscription-based payment in cloud service | |
CN111835929B (en) | Telephone charge transaction method and system based on block chain | |
CN104217359A (en) | Software reselling method, device and system | |
CN112995167A (en) | Kafka mechanism-based power utilization information acquisition method, block chain network and user side | |
CN111080301A (en) | Data processing method, terminal, electronic device and computer storage medium | |
CN111325586A (en) | Bill generation method, device, server and medium based on block chain network |
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 |