CN108123823B - Flow control method and network equipment - Google Patents

Flow control method and network equipment Download PDF

Info

Publication number
CN108123823B
CN108123823B CN201611089576.5A CN201611089576A CN108123823B CN 108123823 B CN108123823 B CN 108123823B CN 201611089576 A CN201611089576 A CN 201611089576A CN 108123823 B CN108123823 B CN 108123823B
Authority
CN
China
Prior art keywords
traffic
target
transaction
information
flow
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611089576.5A
Other languages
Chinese (zh)
Other versions
CN108123823A (en
Inventor
曾一平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN201611089576.5A priority Critical patent/CN108123823B/en
Publication of CN108123823A publication Critical patent/CN108123823A/en
Application granted granted Critical
Publication of CN108123823B publication Critical patent/CN108123823B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities

Abstract

The embodiment of the invention discloses a flow control method, which comprises the following steps: the method comprises the steps that network equipment obtains flow request information aiming at a target client; the traffic request information at least carries address information of the target client; creating a target traffic transaction for the address information based on the traffic request information and adding at least the target traffic transaction to a new block; acquiring a first block chain, and judging whether a new block aiming at the target traffic transaction exists in the acquired first block chain so as to determine whether the target traffic transaction is completed; and determining whether to generate and send traffic request confirmation information based on the judgment result so that the network equipment completes a traffic management process of the target client to which the address information aims. The embodiment of the invention also discloses network equipment.

Description

Flow control method and network equipment
Technical Field
The present invention relates to control technologies, and in particular, to a flow control method and a network device.
Background
At present, the management of traffic by an operator is realized by a centralized service support system, and the service support system manages traffic accounts of all users and realizes the functions of user traffic recharging and traffic deduction.
In the prior art scheme, a business support system is intensively built by an operator, and the number of mobile terminals is increased by dozens of times along with the development of the future internet of things, so that the construction and maintenance cost of centralized infrastructure is rapidly increased. Meanwhile, a centralized structure brings great cost for maintaining safety and trust, the safety, privacy and anonymity of the system must be integrated into the system design, the system is guaranteed not to be maliciously broken, and the user is also required to be provided with the ability of controlling the privacy, so that the system design difficulty is increased inevitably, and the design cost, the maintenance cost and the like are increased; therefore, a new decentralized flow control method is needed to solve the above problems.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide a flow control method and a network device.
The technical scheme of the embodiment of the invention is realized as follows:
a first aspect of an embodiment of the present invention provides a flow control method, where the method includes:
the method comprises the steps that network equipment obtains flow request information aiming at a target client; the traffic request information at least carries address information of the target client;
creating a target traffic transaction for the address information based on the traffic request information and adding at least the target traffic transaction to a new block;
acquiring a first block chain, and judging whether a new block aiming at the target traffic transaction exists in the acquired first block chain so as to determine whether the target traffic transaction is completed;
and determining whether to generate and send traffic request confirmation information based on the judgment result so that the network equipment completes a traffic management process of the target client to which the address information aims.
In the above scheme, the method further comprises:
verifying the legality of the target flow transaction;
correspondingly, the adding at least the target traffic transaction to a new block includes: and after the target flow transaction is determined to pass the validity verification, at least adding the target flow transaction into a new block.
In the above scheme, the method further comprises:
storing the first blockchain; adding the new block into the first block chain, and broadcasting the first block chain added with the new block into a network corresponding to the network equipment;
correspondingly, the acquiring the first block chain includes: and acquiring the first block chain added with the new block from a network corresponding to the network equipment, and replacing the first block chain added with the new block with the first block chain to complete updating of the block chain.
In the above scheme, when the traffic request information is traffic recharge information, the traffic recharge information carries at least address information of the target client and a first quantity to be recharged; correspondingly, the creating of the target traffic transaction for the address information based on the traffic request information comprises:
the network device supplements the address information with the first amount of traffic and creates a target traffic transaction based on the address information and the first amount.
In the above scheme, when the traffic request information is traffic use information, the traffic use information carries at least address information of the target client; correspondingly, the creating of the target traffic transaction for the address information based on the traffic request information comprises:
determining a required second quantity based on the traffic usage information, and creating a target traffic transaction according to the address information and the second quantity;
acquiring user information of the target client;
and after the user information is authenticated, providing flow service for the target client based on the target flow transaction.
In the above scheme, the method further comprises:
when the flow service for the target client is detected to be finished, acquiring the actual flow use number of the target client;
creating a new target traffic transaction for the address information based on the actual usage amount of traffic such that a remaining amount of traffic for the address information is characterized in the new target traffic transaction; wherein the remaining number of flows is determined based on the second number and the actual number of flows used;
verifying the validity of the new target traffic transaction;
and after the validity verification of the new target traffic transaction is determined to pass, at least adding the new target traffic transaction into a new block so as to facilitate the management of the network equipment on the traffic use process of the target client aiming at the address information.
A second aspect of an embodiment of the present invention provides a network device, where the network device includes:
the acquisition module is used for acquiring flow request information aiming at a target client; the traffic request information at least carries address information of the target client;
a processing module for creating a target traffic transaction for the address information based on the traffic request information and adding at least the target traffic transaction to a new block; acquiring a first block chain, and judging whether a new block aiming at the target traffic transaction exists in the acquired first block chain so as to determine whether the target traffic transaction is completed; and determining whether to generate and send traffic request confirmation information based on the judgment result so that the network equipment completes a traffic management process of the target client to which the address information aims.
In the above scheme, the processing module is further configured to verify the validity of the target traffic transaction; and after the target flow transaction is determined to pass the validity verification, at least adding the target flow transaction into a new block.
In the foregoing solution, the processing module is further configured to store the first block chain; the network device is further configured to add the new block to the first block chain, and broadcast the first block chain added with the new block to a network corresponding to the network device; the network device is further configured to acquire the first block chain to which the new block is added from a network corresponding to the network device, and replace the first block chain with the new block added thereto, so as to complete updating of the block chain.
In the above scheme, when the traffic request information is traffic recharge information, the traffic recharge information carries at least address information of the target client and a first quantity to be recharged; in a corresponding manner, the first and second electrodes are,
the processing module is further configured to recharge the address information with the first amount of traffic and create a target traffic transaction based on the address information and the first amount.
In the above scheme, when the traffic request information is traffic use information, the traffic use information carries at least address information of the target client; in a corresponding manner, the first and second electrodes are,
the processing module is further used for determining a required second quantity based on the flow use information and creating a target flow transaction according to the address information and the second quantity; acquiring user information of the target client; and after the user information is authenticated, providing flow service for the target client based on the target flow transaction.
In the above scheme, the processing module is further configured to obtain an actual usage amount of traffic of the target client when detecting that the traffic service for the target client is ended; creating a new target traffic transaction for the address information based on the actual usage amount of traffic such that a remaining amount of traffic for the address information is characterized in the new target traffic transaction; wherein the remaining number of flows is determined based on the second number and the actual number of flows used; verifying the validity of the new target traffic transaction; and after the validity verification of the new target traffic transaction is determined to pass, at least adding the new target traffic transaction into a new block so as to facilitate the management of the network equipment on the traffic use process of the target client aiming at the address information.
According to the traffic control method and the network device provided by the embodiment of the invention, the traffic request information for the target client is obtained through the network device, the target traffic transaction for the address information is created based on the traffic request information, and at least the target traffic transaction is added to the new block, so that the new block is compared with the block in the obtained first block chain to determine whether the target traffic transaction is completed, and the traffic management process for the target client for the address information is completed; in the embodiment of the invention, the network equipment is utilized to assist the conventional service support system to manage the user traffic, so that the conventional centralized management mode is broken, and the aim of decentralized management is fulfilled.
Drawings
Fig. 1 is a schematic diagram of a conventional user traffic recharging process;
FIG. 2 is a schematic diagram of a conventional user traffic reduction process;
fig. 3 is a schematic flow chart illustrating an implementation of a flow control method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a network device according to an embodiment of the present invention;
FIG. 5 is a flow chart illustrating a flow recharging method according to an embodiment of the present invention;
FIG. 6 is a flow chart illustrating the flow of the embodiment of the present invention;
fig. 7 is a flowchart illustrating a flow transaction according to an embodiment of the present invention.
Detailed Description
At present, the management of traffic by an operator is realized by a centralized service support system, and the service support system manages traffic accounts of all users and realizes the functions of user traffic recharging and traffic deduction. Specifically, fig. 1 is a schematic flow diagram of a current user flow recharging process, and as shown in fig. 1, the flow recharging step includes: the user initiates a flow recharging request, the business support system deducts the cash account of the user, the business support system recharges the flow account of the user and replies a recharging result of the user. Further, fig. 2 is a schematic diagram of a conventional user traffic reduction process, and as shown in fig. 2, the traffic reduction step includes: the user uses the internet service, the gateway initiates authentication, the service support system performs authentication, and the flow is reserved; the service support system returns an authentication result to the gateway, the gateway control network element provides internet access service, the user accesses the internet, the gateway reports service usage flow information, the gateway generates a service usage record, and the service support system releases the reservation and deducts actual usage flow. Obviously, in the above process, the service support system performs centralized management on the user traffic, and as the mobile services increase, the centralized structure inevitably increases the design difficulty and increases the design cost; therefore, to solve the above problems, embodiments of the present invention provide a decentralized flow control method and network device; so that the manner in which the features and aspects of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings.
Example one
The present embodiment provides a flow control method, and in particular, provides a method for distributed flow management based on a blockchain technique, which can achieve the purpose of decentralized point-to-point flow use or transaction, and meanwhile, also solve the problems of user security and privacy.
Here, the blockchain can be viewed as a public ledger that keeps track of all traffic transactions, which each participant in the network sees as an authoritative record of ownership. The conventional traffic management method relies on a centralized service support system to provide settlement service to verify and process all traffic transactions, however, the blockchain described in the present application is not created by the service support system, but is independently created by nodes in the network (i.e., the network devices described in the present embodiment), and the traffic transactions added to the blockchain are all regarded as transactions processed by the network devices, so that the present embodiment can use the blockchain to determine whether the traffic transactions are completed. Specifically, fig. 3 is a schematic flow chart illustrating an implementation of a flow control method according to an embodiment of the present invention; the method is applied to network equipment; as shown in fig. 3, the method includes:
step 301: the method comprises the steps that network equipment obtains flow request information aiming at a target client; the traffic request information at least carries address information of the target client;
in this embodiment, for different types of traffic request information, the traffic request information may also carry a specific number of traffic required, for example, for traffic enrichment information, the traffic request information may also carry a number of traffic required to be supplemented; when the traffic usage information is used, the traffic request information may also carry the traffic amount of the target application that needs to be downloaded, and the like. In practical application, the specific information carried in the traffic request information may be determined according to actual requirements.
Here, it is to be noted that the method described in this embodiment may be implemented by one network device, or may be implemented by different network devices.
Step 302: creating a target traffic transaction for the address information based on the traffic request information and adding at least the target traffic transaction to a new block;
in this embodiment, before adding the target traffic transaction to the new block, the validity of the target traffic transaction also needs to be verified, and then after determining that the validity of the target traffic transaction passes verification, at least the target traffic transaction is added to the new block. Here, the target traffic transaction added to the new block is a traffic transaction processed by one network device, so that it is convenient for other network devices to determine the completion degree of the target traffic transaction by using the new block. In practical applications, verifying the validity of the target traffic transaction may specifically include: the syntax and data structure of the target traffic transaction, the validity of the target traffic transaction, the signature of the target traffic transaction, etc. are verified.
In this embodiment, the network device stores information of the block chain, so that it is convenient to determine the completion degree of the target traffic transaction based on the block chain; specifically, the network device stores the first blockchain; further, after adding the target traffic transaction to a new block, the network device also adds the new block to the first block chain, and broadcasts the first block chain added with the new block to a network corresponding to the network device, so that other network devices can obtain updated block chain information in the network; similarly, the network device also obtains a new block chain from the network corresponding to the network device, for example, obtains the first block chain added with the new block, and replaces the stored old first block chain with the first block chain added with the new block, so as to complete updating of the block chain. That is, the blockchain stored in the network device is updated based on the blockchain information in the network, so that the network device can use the blockchain to determine whether the traffic transaction is completed.
Step 303: acquiring a first block chain, and judging whether a new block aiming at the target traffic transaction exists in the acquired first block chain so as to determine whether the target traffic transaction is completed;
in this embodiment, when the determination result indicates that a new block for the target traffic transaction exists in the first block chain, the target traffic transaction is completed, and at this time, the network device generates traffic request confirmation information and sends the traffic request confirmation information to complete a traffic management process for the target client to which the address information is directed; otherwise, the network device considers that the target traffic transaction is not completed, and continues to acquire a new block chain from the network corresponding to the network device, and further continues to execute the determination process of step 303 until it is determined that the target traffic transaction is completed, and then sends a traffic request confirmation message.
Step 304: and determining whether to generate and send traffic request confirmation information based on the judgment result so that the network equipment completes a traffic management process of the target client to which the address information aims.
In a specific embodiment, the traffic request information may specifically be traffic recharging information, and the traffic recharging information at least carries address information of the target client and a first number to be recharged; at this time, the network device supplements the address information with the first amount of traffic, creates a target traffic transaction based on the address information and the first amount, and further adds at least the target traffic transaction after the self-processing is completed to a new block.
In another specific embodiment, the traffic request information may also be traffic usage information, and the traffic usage information carries at least address information of the target client; at this time, the network device determines a required second quantity based on the traffic usage information, for example, when the traffic usage information is specifically traffic download, the second quantity is a specific traffic of the target application that needs to be downloaded; when the traffic usage information is specifically a browsing webpage, the second quantity is a preset specific traffic value for the browsing webpage; the network equipment creates target flow transaction according to the address information and the second quantity; here, in practical applications, before providing a traffic service for a target client based on a target traffic transaction, the network device may further obtain user information of the target client, authenticate the user information, and provide the traffic service for the target client based on the target traffic transaction after the user information passes the authentication.
Further, in practical application, the second amount allocated by the network device to the target client is not the actual traffic used by the target client, so that, in order to facilitate traffic deduction by the network device according to the actual traffic usage state, the network device may also monitor a traffic service process; specifically, when detecting that the traffic service for the target client is ended, the network device obtains the actual traffic usage amount of the target client, and creates a new target traffic transaction for the address information based on the actual traffic usage amount, so that the remaining traffic amount for the address information is represented in the new target traffic transaction; wherein the remaining number of flows is determined based on the second number and the actual number of flows used; and the network device verifies the validity of the new target traffic transaction, and after it is determined that the validity of the new target traffic transaction passes, at least the new target traffic transaction is added to a new block (in practical applications, the new block may be the same as the new block in step 302, or another new block, that is, multiple pieces of traffic transaction information may be stored in the block), so that the network device manages the traffic usage process of the target client to which the address information is directed.
According to the method, flow request information for a target client side is obtained through network equipment, a target flow transaction for address information is created based on the flow request information, the target flow transaction is at least added to a new block, the new block is compared with a block in an obtained first block chain, whether the target flow transaction is completed or not is determined, and a flow management process for the target client side for the address information is completed; in the embodiment of the invention, because the network equipment is utilized to assist the conventional service support system to manage the user flow, the conventional centralized management mode is broken through, and the aim of decentralized management is fulfilled; in addition, in practical application, the network device described in this embodiment can perform the function of the network device for different nodes in the existing network, so that the purpose of decentralization is further achieved, and a foundation is laid for solving the problems of user security and privacy.
Example two
This embodiment provides a network device, as shown in fig. 4, where the network device includes:
an obtaining module 41, configured to obtain traffic request information for a target client; the traffic request information at least carries address information of the target client;
a processing module 42, configured to create a target traffic transaction for the address information based on the traffic request information, and add at least the target traffic transaction to a new block; acquiring a first block chain, and judging whether a new block aiming at the target traffic transaction exists in the acquired first block chain so as to determine whether the target traffic transaction is completed; and determining whether to generate and send traffic request confirmation information based on the judgment result so that the network equipment completes a traffic management process of the target client to which the address information aims.
In one embodiment, the processing module 42 is further configured to verify the validity of the target traffic transaction; and after the target flow transaction is determined to pass the validity verification, at least adding the target flow transaction into a new block.
In an embodiment, the processing module 42 is further configured to store the first block chain; the network device is further configured to add the new block to the first block chain, and broadcast the first block chain added with the new block to a network corresponding to the network device; the network device is further configured to acquire the first block chain to which the new block is added from a network corresponding to the network device, and replace the first block chain with the new block added thereto, so as to complete updating of the block chain.
In an embodiment, when the traffic request information is traffic recharge information, the traffic recharge information carries at least address information of the target client and a first quantity to be recharged; in a corresponding manner, the first and second electrodes are,
the processing module 42 is further configured to recharge the address information with the first amount of traffic and create a target traffic transaction based on the address information and the first amount.
In another embodiment, when the traffic request information is traffic use information, the traffic use information carries at least address information of the target client; in a corresponding manner, the first and second electrodes are,
the processing module 42 is further configured to determine a required second quantity based on the traffic usage information, and create a target traffic transaction according to the address information and the second quantity; acquiring user information of the target client; and after the user information is authenticated, providing flow service for the target client based on the target flow transaction.
In another embodiment, the processing module 42 is further configured to obtain an actual usage amount of traffic of the target client when detecting that the traffic service for the target client is ended; creating a new target traffic transaction for the address information based on the actual usage amount of traffic such that a remaining amount of traffic for the address information is characterized in the new target traffic transaction; wherein the remaining number of flows is determined based on the second number and the actual number of flows used; verifying the validity of the new target traffic transaction; and after the validity verification of the new target traffic transaction is determined to pass, at least adding the new target traffic transaction into a new block so as to facilitate the management of the network equipment on the traffic use process of the target client aiming at the address information.
Here, it should be noted that: the description of the embodiments of the network device is similar to the description of the embodiments of the method, and has similar beneficial effects to the embodiments of the method, and therefore, the description is omitted. For technical details that are not disclosed in the embodiment of the network device of the present invention, please refer to the description of the embodiment of the method of the present invention for understanding, and therefore, for brevity, will not be described again.
In the second embodiment provided in the present application, it should be understood that the described network device embodiment is only illustrative, for example, the division of the modules is only one logical function division, and there may be other division ways in actual implementation, such as: multiple modules or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. Based on this, the embodiment of the present invention further provides another dividing and combining manner, as described in the following third embodiment, and the system described in the following third embodiment can implement the flow control method described in the embodiment of the present invention.
EXAMPLE III
The present embodiment provides a flow control system, where the flow control system includes: the system comprises a flow recharging node, a query verification node and an authentication control node; here, the flow control system establishes a distributed network running a peer-to-peer network (P2P) protocol through each node, and of course, in practical application, the flow control system is further provided with a gateway; specifically, the main functions of each node include:
the flow recharging node is used for providing flow recharging service, storing a private key of the flow recharging node, recharging flow to an address of a user and storing complete block chain information;
the inquiry verification node is used for verifying the validity of the flow transaction and providing inquiry service of the flow transaction for the outside; and also for storing complete blockchain information, maintaining a transaction pool, maintaining an unspent transaction output (UTXO) database;
the authentication control node is used for carrying out user authentication and controlling the access of a user client to a network; and the method is also used for reducing the flow of the user client in real time and returning the flow which is not used up by the user client.
In practical application, the user client for interacting with the flow control system is mainly used for storing a user private key, managing a user address, signing a transaction and storing information of all block headers. Here, the nodes storing the complete block chain information, such as the flow recharging node and the query verification node, perform independent verification on each transaction according to an agreed standard; and the checking and verifying node independently packs the transaction records into a new block and independently checks and assembles the new block into a block chain. Here, since the blockchain information is generated by the ping verification node and the generation mechanism is the same, blockchains stored by different nodes of the traffic control system are the same, which facilitates to verify whether the traffic transaction is completed by using the blockchains.
The embodiments of the present invention are described in further detail below with reference to specific application scenarios;
in a first scenario, as shown in fig. 5, the specific steps of flow recharging include:
step 1: a user client initiates a flow recharging request to a service support system, wherein the flow recharging request comprises recharging quantity, recharging address and the like, and the flow recharging request is signed by a private key of the user client;
step 2: after receiving the flow recharging request, the service support system verifies the signature of the user client, converts the recharging amount into money amount and deducts a cash account of the user client;
and step 3: the service support system initiates a flow recharging request to the flow recharging node, wherein the flow recharging request comprises recharging quantity, recharging address and the like, and the flow recharging request is signed by a private key of the service support system;
and 4, step 4: after receiving the flow recharging request, the flow recharging node verifies the signature of the service support system, creates a flow transaction which requires the recharging amount to the recharging address according to the flow recharging request, and broadcasts the flow transaction to a network corresponding to the flow management system after signing by a private key of the flow recharging node;
and 5: after receiving the flow transaction request, the query verification node in the network verifies the flow transaction, for example, the flow transaction comprises a grammar and a data structure of the flow transaction, the validity of the flow transaction, the signature of the flow transaction and the like, and after the verification is finished, the flow transaction is put into a transaction pool;
step 6: in the query verification node, when the condition of creating the new block is met, creating a new block, integrating the flow transaction meeting the condition in the transaction pool, such as the flow transaction created in the step 4, into the new block, adding the new block into a block chain stored by the new block, and broadcasting the new block to the whole network;
and 7: monitoring the network by the flow recharging node, updating the block chain stored by the node in real time, and confirming that the flow transaction is confirmed by the whole network when finding that a new block containing the previous flow transaction (namely the flow transaction in the step 4) is added to the block chain;
and 8: the flow recharging node returns a recharging confirmation message to the service support system and uses the private key of the flow recharging node for signature;
and step 9: the service support system returns a recharging result message to the user client and uses a private key of the service support system for signature;
step 10: the user client monitors the network, updates the transaction information related to the self-managed flow address in real time, and completes the flow recharging process.
In scenario two, as shown in fig. 6, the specific steps of the flow usage include:
step 1: the user client uses the internet service; here, the internet service includes: access web pages, download services, etc.;
step 2: the authentication control node returns an authentication control node address and the flow quantity required to be deducted to the user client, and uses the authentication control node key to sign;
and step 3: after verifying the signature, the user client initiates a flow transaction request for requiring the quantity flow corresponding to the step 2 to the address of the authentication control node, and broadcasts the flow transaction request to the network after signing by using a private key of the user client;
and 4, step 4: after receiving the flow transaction request, a query verification node in the network verifies the flow transaction, including grammar and data structure of the flow transaction, validity of the flow transaction, signature of the flow transaction and the like, and after the verification is finished, the flow transaction is put into a transaction pool;
and 5: in the query verification node, when the condition of creating the new block is met, creating a new block, integrating the traffic transaction meeting the condition in the transaction pool, such as the traffic transaction created in the step 3, into the new block, adding the new block into a block chain, and broadcasting the new block to the whole network;
step 6: the inquiry verification node monitors the network, updates the block chain stored by the inquiry verification node in real time, and confirms that the flow transaction is confirmed by the whole network when finding that a new block containing the flow transaction in the step 3 is added to the block chain;
and 7: the authentication control node control network element provides internet access service for the user client;
and 8: the user surfs the internet;
and step 9: the authentication control node initiates a transaction after the Internet access is finished, initiates a transaction of residual flow to the address of the user client, and broadcasts the transaction to the network after the private key signature of the authentication control node is utilized;
step 10: after receiving the transaction request of the residual flow in the step 9, the query verification node in the network verifies the syntax and the data structure of the flow transaction, the validity of the flow transaction, the signature of the flow transaction and the like, and after the verification is finished, the flow transaction is put into a transaction pool;
step 11: in the query verification node, when the condition of creating the new block is met, creating a new block, integrating the transactions meeting the condition in the transaction pool, such as the transactions of the residual flow created in the step 9, into the new block, adding the new block into a block chain, and broadcasting the new block to the whole network;
step 11: the authentication control node reports service usage records;
step 13: the user client monitors the network, updates the traffic transaction information related to the address managed by the user client in real time, and completes the traffic using process.
In a third scenario, traffic transactions can be performed between the user clients point to point, and specifically, as shown in fig. 7, the specific steps of the traffic transactions include
Step 1: the user client A initiates a transaction with a well-defined amount by both parties to the address of the user client B, and broadcasts the transaction to the network after using the key signature of the user client A;
step 2: after receiving the transaction request, the query verification node in the network verifies the syntax and the data structure of the flow transaction, the validity of the flow transaction, the signature of the flow transaction and the like, and after the verification is finished, the flow transaction is put into a transaction pool;
and step 3: in the query verification node, when the condition of creating the new block is met, creating a new block, integrating the transaction meeting the condition in the transaction pool, such as the flow transaction initiated in the step 1, into the new block, adding the new block into a block chain, and broadcasting to the whole network;
and 4, step 4: the user client B monitors the network and updates the traffic transaction information related to the address managed by the user client B in real time;
and 5: the user client A monitors the network and updates the traffic transaction information related to the address managed by the user client A in real time.
In this embodiment, the valid verification method for a certain traffic transaction includes, but is not limited to, the following two methods:
a) downloading complete block chain information, searching and confirming the flow transaction record on the block chain;
b) and interacting with the query transaction node to construct a Merkle path containing the traffic transaction, and comparing the Merkle path with the hash of the Merkle root stored by the Merkle path to verify whether the traffic transaction exists on the blockchain.
Here, the new block can only be generated by the query and verification node, and after a certain query and verification node creates a new block, it needs to sign on the new block to ensure the validity of the block chain, and the creation mechanism of the new block includes but is not limited to the following two mechanisms:
a) the operation is obtained by inquiring the check node through an ore digging mechanism;
b) at regular intervals, created by the query verification node containing the most traffic transactions.
Therefore, the flow control system of the embodiment of the invention realizes a decentralized distributed flow management mode, thereby solving the problems of performance, safety and the like caused by the large increase of the number of terminals of the centralized flow settlement system.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing is merely an example of the embodiments of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the embodiments of the present invention, and these modifications and decorations should also be regarded as the protection scope of the embodiments of the present invention.

Claims (12)

1. A method of flow control, the method comprising:
the method comprises the steps that network equipment obtains flow request information aiming at a target client; the traffic request information at least carries address information of the target client;
creating a target traffic transaction for the address information based on the traffic request information and adding at least the target traffic transaction to a new block;
acquiring a first block chain, and judging whether a new block aiming at the target traffic transaction exists in the acquired first block chain so as to determine whether the target traffic transaction is completed;
determining whether to generate and send traffic request confirmation information based on the judgment result so that the network device completes a traffic management process for the target client to which the address information is directed;
when the flow request information is flow recharging information, the flow request information also carries a first quantity required to be recharged; when the traffic request information is traffic use information, the address information of the target client corresponds to a second number of uses;
correspondingly, creating a target traffic transaction for the address information based on the traffic request information includes: creating a target traffic transaction based on the address information and the first quantity, or creating a target traffic transaction based on the address information and the second quantity.
2. The method of claim 1, further comprising:
verifying the legality of the target flow transaction;
correspondingly, the adding at least the target traffic transaction to a new block includes:
and after the target flow transaction is determined to pass the validity verification, at least adding the target flow transaction into a new block.
3. The method of claim 2, further comprising:
storing the first blockchain;
adding the new block into the first block chain, and broadcasting the first block chain added with the new block into a network corresponding to the network equipment;
correspondingly, the acquiring the first block chain includes:
and acquiring the first block chain added with the new block from a network corresponding to the network equipment, and replacing the first block chain added with the new block with the first block chain to complete updating of the block chain.
4. The method according to any one of claims 1 to 3, wherein when the traffic request information is traffic recharge information, the traffic recharge information carries at least address information of the target client and a first number to be recharged; correspondingly, the creating of the target traffic transaction for the address information based on the traffic request information comprises:
the network device supplements the address information with the first amount of traffic and creates a target traffic transaction based on the address information and the first amount.
5. The method according to any one of claims 1 to 3, wherein when the traffic request information is traffic use information, the traffic use information carries at least address information of the target client; correspondingly, the creating of the target traffic transaction for the address information based on the traffic request information comprises:
determining a required second quantity based on the traffic usage information, and creating a target traffic transaction according to the address information and the second quantity;
acquiring user information of the target client;
and after the user information is authenticated, providing flow service for the target client based on the target flow transaction.
6. The method of claim 5, further comprising:
when the flow service for the target client is detected to be finished, acquiring the actual flow use number of the target client;
creating a new target traffic transaction for the address information based on the actual usage amount of traffic such that a remaining amount of traffic for the address information is characterized in the new target traffic transaction; wherein the remaining number of flows is determined based on the second number and the actual number of flows used;
verifying the validity of the new target traffic transaction;
and after the validity verification of the new target traffic transaction is determined to pass, at least adding the new target traffic transaction into a new block so as to facilitate the management of the network equipment on the traffic use process of the target client aiming at the address information.
7. A network device, characterized in that the network device comprises:
the acquisition module is used for acquiring flow request information aiming at a target client; the traffic request information at least carries address information of the target client;
a processing module for creating a target traffic transaction for the address information based on the traffic request information and adding at least the target traffic transaction to a new block; acquiring a first block chain, and judging whether a new block aiming at the target traffic transaction exists in the acquired first block chain so as to determine whether the target traffic transaction is completed; determining whether to generate and send traffic request confirmation information based on the judgment result so that the network device completes a traffic management process for the target client to which the address information is directed;
when the flow request information is flow recharging information, the flow request information also carries a first quantity required to be recharged; when the traffic request information is traffic use information, the address information of the target client corresponds to a second number of uses;
correspondingly, the processing module is specifically configured to create a target traffic transaction based on the address information and the first quantity, or create a target traffic transaction based on the address information and the second quantity.
8. The network device of claim 7, wherein the processing module is further configured to verify the validity of the target traffic transaction; and after the target flow transaction is determined to pass the validity verification, at least adding the target flow transaction into a new block.
9. The network device of claim 8, wherein the processing module is further configured to store the first blockchain; the network device is further configured to add the new block to the first block chain, and broadcast the first block chain added with the new block to a network corresponding to the network device; the network device is further configured to acquire the first block chain to which the new block is added from a network corresponding to the network device, and replace the first block chain with the new block added thereto, so as to complete updating of the block chain.
10. The network device according to any one of claims 7 to 9, wherein when the traffic request information is traffic recharge information, the traffic recharge information carries at least address information of the target client and a first number to be recharged; in a corresponding manner, the first and second electrodes are,
the processing module is further configured to recharge the address information with the first amount of traffic and create a target traffic transaction based on the address information and the first amount.
11. The network device according to any one of claims 7 to 9, wherein when the traffic request information is traffic use information, the traffic use information carries at least address information of the target client; in a corresponding manner, the first and second electrodes are,
the processing module is further used for determining a required second quantity based on the flow use information and creating a target flow transaction according to the address information and the second quantity; acquiring user information of the target client; and after the user information is authenticated, providing flow service for the target client based on the target flow transaction.
12. The network device according to claim 11, wherein the processing module is further configured to, when detecting that the traffic service for the target client is ended, obtain an actual usage amount of traffic of the target client; creating a new target traffic transaction for the address information based on the actual usage amount of traffic such that a remaining amount of traffic for the address information is characterized in the new target traffic transaction; wherein the remaining number of flows is determined based on the second number and the actual number of flows used; verifying the validity of the new target traffic transaction; and after the validity verification of the new target traffic transaction is determined to pass, at least adding the new target traffic transaction into a new block so as to facilitate the management of the network equipment on the traffic use process of the target client aiming at the address information.
CN201611089576.5A 2016-11-30 2016-11-30 Flow control method and network equipment Active CN108123823B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611089576.5A CN108123823B (en) 2016-11-30 2016-11-30 Flow control method and network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611089576.5A CN108123823B (en) 2016-11-30 2016-11-30 Flow control method and network equipment

Publications (2)

Publication Number Publication Date
CN108123823A CN108123823A (en) 2018-06-05
CN108123823B true CN108123823B (en) 2020-04-14

Family

ID=62225675

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611089576.5A Active CN108123823B (en) 2016-11-30 2016-11-30 Flow control method and network equipment

Country Status (1)

Country Link
CN (1) CN108123823B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912618A (en) * 2016-04-07 2016-08-31 浙江万马新能源有限公司 Block chain based charging pile charging transaction communication method and device
CN105956923A (en) * 2016-04-20 2016-09-21 上海如鸽投资有限公司 Asset transaction platform and digital certification and transaction method for assets

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016029119A1 (en) * 2014-08-21 2016-02-25 myVBO, LLC Systems and methods for managing alternative currency transactions and optimizing financial rewards

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912618A (en) * 2016-04-07 2016-08-31 浙江万马新能源有限公司 Block chain based charging pile charging transaction communication method and device
CN105956923A (en) * 2016-04-20 2016-09-21 上海如鸽投资有限公司 Asset transaction platform and digital certification and transaction method for assets

Also Published As

Publication number Publication date
CN108123823A (en) 2018-06-05

Similar Documents

Publication Publication Date Title
CN110912707B (en) Block chain-based digital certificate processing method, device, equipment and storage medium
CN109819443B (en) Registration authentication method, device and system based on block chain
CN108881232B (en) Sign-on access method, apparatus, storage medium and the processor of operation system
US20190199535A1 (en) Secure processing of an authorization verification request
KR102089833B1 (en) Secure wireless charging
Kim et al. Mobile charger billing system using lightweight Blockchain
CN108965469B (en) Dynamic management method, device, equipment and storage medium for members of block chain network
CN109168139B (en) WiFi sharing method based on block chain and server
CN108876669B (en) Course notarization system and method applied to multi-platform education resource sharing
CN107908979B (en) Method and electronic device for configuration and endorsement in blockchain
CN102217274A (en) Systems and methods for data authorization in distributed storage networks
CN103237235A (en) Method and system for realizing identity authentication on Cloud TV terminals
CN113256297B (en) Data processing method, device and equipment based on block chain and readable storage medium
JP7375074B2 (en) Vehicle communication methods, devices, and electronic equipment
CN110601858A (en) Certificate management method and device
CN111314066B (en) Block chain-based data transfer method, terminal and computer-readable storage medium
CN114338242A (en) Cross-domain single sign-on access method and system based on block chain technology
CN102611683B (en) A kind of method, device, equipment and system for performing Third Party Authentication
CN110910110A (en) Data processing method and device and computer storage medium
CN110247905A (en) The data backup memory method and system of secure authentication mode based on Token
CN1885768B (en) Worldwide web authentication method
CN108123823B (en) Flow control method and network equipment
KR102224454B1 (en) Method, apparatus, system and computer program for controlling network traffic
CN114554251B (en) Multimedia data requesting method and device, storage medium and electronic device
CN107172172B (en) Communication method and system in IaaS system

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