CN111327771A - Method and device for identifying crank call number - Google Patents

Method and device for identifying crank call number Download PDF

Info

Publication number
CN111327771A
CN111327771A CN201811544643.7A CN201811544643A CN111327771A CN 111327771 A CN111327771 A CN 111327771A CN 201811544643 A CN201811544643 A CN 201811544643A CN 111327771 A CN111327771 A CN 111327771A
Authority
CN
China
Prior art keywords
telephone number
node
accounting node
accounting
block chain
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.)
Pending
Application number
CN201811544643.7A
Other languages
Chinese (zh)
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 Group Qinghai Co ltd
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Group Qinghai Co ltd
China Mobile Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Group Qinghai Co ltd, China Mobile Communications Group Co Ltd filed Critical China Mobile Group Qinghai Co ltd
Priority to CN201811544643.7A priority Critical patent/CN111327771A/en
Publication of CN111327771A publication Critical patent/CN111327771A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/42Systems providing special services or facilities to subscribers
    • H04M3/436Arrangements for screening incoming calls, i.e. evaluating the characteristics of a call before deciding whether to answer it
    • H04M3/4365Arrangements for screening incoming calls, i.e. evaluating the characteristics of a call before deciding whether to answer it based on information specified by the calling party, e.g. priority or subject
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/12Detection or prevention of fraud

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a method and a device for identifying harassing call numbers, which are used for solving the problem that harassing number resources identified by different methods cannot be shared in the prior art. After the accounting node is determined to be used as a main accounting node, according to the labeling information of the telephone numbers in the block chain transaction pool, the telephone numbers are added into a new harassing number block after the telephone numbers meet the harassing call condition; broadcasting a new harassing number block in the block chain system and adding the new harassing number block into a block chain managed by the block chain system. Therefore, all the systems capable of identifying the harassing telephone numbers are used as the nodes of the block chain, the harassing numbers identified by all the systems are used as blocks in the block chain and are shared by all the nodes, when the system is used, the processing node searches the block chain, acquires the telephone numbers from the block chain, and processes the telephone numbers which are the same as the inquired telephone numbers as harassing calls.

Description

Method and device for identifying crank call number
Technical Field
The invention relates to the technical field of block chains, in particular to a method and a device for identifying crank call numbers.
Background
With the development of communication technology, the number of users of communication service has become huge, and the following telephone disturbance has become a non-negligible problem.
At present, in order to identify a harassing number and avoid telephone harassment, whether an incoming call belongs to a harassing call needs to be correctly identified. The identification of nuisance telephone numbers is mainly determined in the following manner.
The method comprises the following steps that firstly, a user directly submits to a telecom operator, the operator further performs manual verification, and corresponding plugging processing is performed according to the internal regulation of a company;
secondly, a mobile phone user installs a certain app, number property marking is carried out on a popup page after the call is completed, and the number property which is determined by an algorithm in the app system can be seen in the incoming call by means of the function provided by the app;
and thirdly, the user independently adds a mobile phone blacklist and directly shields the corresponding crank number calls and short messages.
However, in the existing junk mobile phone number identification, harassing phone number data marked or complained by a user are stored in own systems such as an operator and a mobile phone app, the systems are independent of each other, and the data cannot be shared, so that a large number of harassing phone numbers are marked as harassing phone numbers by a certain system, and other systems are still normally displayed.
In summary, the harassing number resources identified by different methods in the prior art cannot be shared.
Disclosure of Invention
The invention provides a method and a device for identifying crank call numbers, which are used for solving the problem that crank number resources identified by different methods cannot be shared in the prior art.
In a first aspect, an embodiment of the present invention provides a method for identifying a crank call number, where the method includes:
after determining that the accounting node is used as a main accounting node, adding a telephone number into a new harassing number block after determining that the corresponding telephone number in a blockchain transaction pool meets a harassing call condition according to the tagging information of the telephone number in the blockchain transaction pool, wherein the telephone number in the blockchain transaction pool and the tagging information of the telephone number are submitted by proxy nodes;
and the accounting node broadcasts the new harassing number block in a block chain system and adds the new harassing number block into a block chain managed by the accounting node.
In the method, after the accounting node is determined to be a main accounting node, the corresponding telephone number in the blockchain transaction pool is determined to meet the harassing call condition according to the labeling information of the telephone number in the blockchain transaction pool, and then the telephone number is added into a new harassing number block; broadcasting a new harassing number block in the block chain system and adding the new harassing number block into a block chain managed by the agent node, and acquiring the telephone number from the block chain managed by the accounting node by the agent node and processing the acquired telephone number as a harassing call. Therefore, all the systems capable of identifying the harassing telephone numbers are used as the nodes of the block chain, the harassing numbers identified by all the systems are used as blocks in the block chain and are shared by all the nodes, when the system is used, the processing node searches the block chain, acquires the telephone numbers from the block chain, and processes the telephone numbers which are the same as the inquired telephone numbers as harassing calls.
In a possible implementation manner, after determining that the accounting node is a main accounting node, before determining that the telephone number corresponding to the blockchain transaction pool meets a set harassing call condition, the accounting node further includes:
and the accounting node eliminates the telephone number which is the same as the telephone number marked with the harassment in the blockchain and the marking information of the telephone number from the blockchain transaction pool.
According to the method, the accounting node adds the telephone number and the labeling information of the telephone number into the block chain before acquiring the accounting node from the block chain transaction pool, so that the operation burden of the accounting node is reduced, and meanwhile, the memory resource in the machine body block chain transaction pool is saved.
In one possible implementation, the accounting node determines whether it is the main accounting node by:
the accounting node elects an accounting node as a main accounting node to other accounting nodes and receives the accounting node elected by other accounting nodes as the main accounting node;
the accounting node judges whether the accounting node is the accounting node with the largest pushed quantity and not the main accounting node when electing last time according to the pushed accounting node and the received accounting node;
if yes, determining the self as a main accounting node; otherwise, determining that the node is not used as the main accounting node.
According to the method, the accounting node elects the accounting node as the main accounting node to other accounting nodes and receives the accounting node elected by other accounting nodes as the main accounting node; judging whether the elected accounting node is the accounting node with the largest elected quantity and not the main accounting node when elected last time according to the elected accounting node and the received accounting node; if yes, determining the self as a main accounting node; otherwise, determining that the node is not used as the main accounting node. Therefore, in the operation process of the block chain system, only one main accounting node can be ensured at a time, and other accounting nodes play an auxiliary role, so that the uniqueness of data is ensured.
In a possible implementation manner, after determining itself as the primary accounting node, the accounting node further includes:
and if no crank call is identified from the blockchain trading pool, or a crank call is identified, the new crank number block is broadcasted in the blockchain system, and the new crank number block is added into the blockchain, the accounting node performs the steps of electing the accounting node serving as the main accounting node to other accounting nodes and receiving the accounting node elected by other accounting nodes and serving as the main accounting node.
In the method, the main accounting node determines that no harassing call is identified from the blockchain trading pool, or identifies a harassing call, broadcasts a new harassing number block in a blockchain system and adds the new harassing number block into the blockchain, and then recommends a new accounting node, wherein the proposed accounting node cannot be the same node as the previous main accounting node. Therefore, accounting can be carried out among the accounting nodes in turn, and the defects of task failure and data loss caused by only one node processing can be avoided.
In a possible implementation manner, after determining that the accounting node is not the main accounting node, if receiving a new harassment number block sent by the non-main accounting node, the accounting node performs the steps of electing the accounting node as the main accounting node to other accounting nodes and receiving the accounting node elected by other accounting nodes as the main accounting node.
According to the method, after the accounting node is determined not to be the main accounting node, if a new harassment number block sent by the non-main accounting node is received, the step of electing the accounting node serving as the main accounting node to other accounting nodes and the step of receiving the accounting node elected by other accounting nodes serving as the main accounting node are executed. Therefore, when a new harassing number block sent by the non-main accounting node is determined to exist at present, that is, the harassing number block is wrong, a new accounting node needs to be reselected to determine whether the telephone number submitted by the proxy node meets the harassing condition, and the new harassing number block sent by the non-main accounting node is not recorded.
In a possible implementation manner, the accounting node judges whether the telephone number meets the set harassing call condition or not by the following means:
aiming at any telephone number in the blockchain transaction pool, the accounting node determines the time weight of the telephone number according to the marking time in the marking information of the telephone number in the blockchain transaction pool and the weight corresponding to a preset first time interval;
the accounting node determines the labeling dispersion degree of the telephone number according to the number of the users labeled with the telephone number through the proxy node and the total number of the users in the block chain system;
and when the accounting node determines that the number of the labeled information of the telephone number in the blockchain transaction pool is greater than a set first threshold value and the sum of the time weight of the telephone number and the labeling dispersion degree of the telephone number is greater than a set numerical value, determining that the telephone number meets a set crank call condition.
According to any telephone number in the blockchain transaction pool, firstly, the time weight of the telephone number is determined according to the marking time in the marking information of the telephone number in the blockchain transaction pool and the weight corresponding to the preset first time interval; determining the labeling dispersion degree of the telephone numbers according to the number of the users labeling the telephone numbers through the proxy nodes and the total number of the users in the block chain system; and when the accounting node determines that the number of the labeled information of the telephone number in the blockchain transaction pool is greater than a set first threshold value and the sum of the time weight of the telephone number and the labeling dispersion degree of the telephone number is greater than a set numerical value, determining that the telephone number meets the set crank call condition. The telephone numbers submitted to the transaction pool are judged according to set conditions, if the telephone numbers meet the harassment conditions, a harassment telephone block is generated according to the telephone numbers, a new harassment telephone block is broadcasted, and the block is sent to a block chain managed by the block chain.
In a possible implementation manner, after the accounting node receives the re-enabling information of the harassing phone numbers initiated by the agent node, if the number of times that the agent node submits the marked telephone numbers in the block chain transaction pool to the harassing phone numbers in a set second time interval is smaller than a set second threshold, the harassing phone numbers are added into a new number revocation block, and the new number revocation block is broadcasted in a block chain system and added into a block chain.
In the method, when a certain telephone number is restarted after the telephone number is set as a harassing telephone number, the agent node is required to send harassing telephone number restart information to the accounting node, after the accounting node receives the harassing telephone number restart information initiated by the agent node, if the frequency of the harassing telephone number marked by the agent node submitted to the block chain transaction pool in a set second time interval is less than a set second threshold value, the harassing telephone number is added into a new number revocation block, a new number revocation block is broadcasted in a block chain system, and the new number revocation block is added into the block chain. This allows the telephone number to be used most efficiently.
In a possible implementation manner, after determining that the telephone number meets the set crank call condition according to the labeled information of the telephone number, the accounting node further includes:
the accounting node determines a user for marking the telephone number according to the marking information of the telephone number, submits the telephone number and the marking information of the telephone number to an agent node of a block chain transaction pool, and determines whether the telephone number meets set crank call conditions according to the marking information of the telephone number;
and the accounting node respectively sends corresponding rewards to the user, the proxy node and the accounting node according to a preset integral reward proportion.
The method comprises the steps that a billing node determines a user for marking the telephone number according to marking information of the telephone number, submits the telephone number and the marking information of the telephone number to an agent node of a block chain transaction pool, and determines whether the telephone number meets set harassing call conditions according to the marking information of the telephone number; and respectively sending corresponding rewards to the user, the agent node and the accounting node according to a preset integral reward proportion. Therefore, the enthusiasm of the user and each node for maintaining the system can be stimulated to ensure the good operation of the system.
In a possible implementation manner, when the accounting node obtains the labeled phone number submitted by the agent node and the labeling information of the phone number from the blockchain transaction pool, the accounting node further includes:
when the accounting node determines that the duration of the marked telephone number which does not meet the harassing call condition duration reaches a set third threshold according to the marking time in the marking information of the telephone number, the accounting node determines a user who marks the telephone number and an agent node which submits the telephone number and the marking information of the telephone number to a block chain transaction pool according to the marking information of the telephone number;
and the accounting node implements corresponding penalty measures on the user and the proxy node according to a set penalty rule, and deletes the telephone number and the marking information of the telephone number from the blockchain transaction pool.
According to the method, when the accounting node determines that the duration of the marked telephone number which does not meet the harassing call condition duration reaches a set third threshold value according to the marking time in the marking information of the telephone number, the accounting node determines a user marking the telephone number and an agent node submitting the telephone number and the marking information of the telephone number to a block chain transaction pool according to the marking information of the telephone number; and implementing corresponding penalty measures for the user and the proxy node according to the set penalty rules, and deleting the telephone number and the marking information of the telephone number from the blockchain transaction pool. Therefore, the occurrence of malicious labeling conditions can be reduced, the normal operation of the system is ensured, and the system loss is reduced.
In a possible implementation manner, after determining that the accounting node does not serve as a main accounting node, the accounting node receives a new harassment number block sent by the main accounting node;
and the accounting node adds the new harassment number block into a block chain managed by the accounting node.
According to the method, each accounting node maintains one block chain, so that a block chain system can simultaneously maintain a plurality of block chains, and the fault tolerance of the block chain system is improved.
In a second aspect, an embodiment of the present invention provides a method for identifying a crank call number, where the method includes:
the method comprises the steps that an agent node acquires a telephone number from a block of a block chain managed by an accounting node, wherein the telephone number in the block is added into the block after the telephone number in a block chain transaction pool serving as a main accounting node meets a harassing call condition;
and the proxy node processes the acquired telephone number as a harassing call.
In the method, a main accounting node adds a telephone number into a new harassing number block after determining that the corresponding telephone number in the blockchain transaction pool meets a harassing call condition according to the marking information of the telephone number in the blockchain transaction pool; after a new harassing number block is broadcasted in the block chain system and the new harassing number block is added into a block chain managed by the agent node, the agent node acquires a telephone number from the block chain managed by the accounting node and processes the acquired telephone number as a harassing call. Therefore, all nodes in the block chain system can acquire the determined telephone numbers meeting the harassment conditions in the whole system through the block chain maintained by the accounting node of the block chain, namely, the harassment numbers identified by all the systems are used as blocks in the block chain and shared by all the nodes, when the block chain is used, the processing node searches the block chain, acquires the telephone numbers from the block chain, and processes the telephone numbers which are the same as the inquired telephone numbers as harassment calls.
In a possible implementation mode, the agent node marks information of the telephone number according to a telephone harassment number marked by a user;
and the agent node uploads the telephone number and the labeling information of the telephone number to a block chain transaction pool.
According to the method, the agent node marks information of the telephone number of the telephone harassment number marked by the user; and uploading the telephone number and the labeled information of the telephone number to a blockchain transaction pool. In this way, the agent node uses the labeling information of the user to the telephone number as the original identification data source to support the system operation.
In one possible implementation, the agent node determines the number of users of the agent and broadcasts in the blockchain system, and receives the number of users of the agent sent by other agent nodes;
and the agent node takes at least one agent node with the number of the agents greater than a set fourth threshold value as an accounting node.
In the method, at least one agent node with the number of the agents greater than the set fourth threshold value is used as the accounting node, so that the elected accounting node is more representative.
In a third aspect, an embodiment of the present invention further provides an accounting node for identifying a crank call number, where the accounting node includes: a processor and a transceiver, the device having functionality to implement the embodiments of the first aspect described above.
In a fourth aspect, an embodiment of the present invention further provides an agent node for identifying a crank call number, where the agent node includes: a processor and a transceiver, the device having functionality to implement the embodiments of the second aspect described above.
In a fifth aspect, an embodiment of the present invention further provides an accounting node for identifying a crank call number, where the accounting node includes at least one processing unit and at least one storage unit, and the device has functions of implementing the embodiments of the first aspect.
In a sixth aspect, an embodiment of the present invention further provides a proxy node for identifying a crank call number, where the proxy node includes at least one processing unit and at least one storage unit, and the device has a function of implementing each embodiment of the second aspect.
Seventh aspect, a computer-storable medium having stored thereon a computer program which, when executed by a processor, performs the steps of the above-described method.
In addition, for technical effects brought by any one implementation manner of the third aspect to the sixth aspect, reference may be made to technical effects brought by different implementation manners of the first aspect to the second aspect, and details are not described here.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic structural diagram of a system for identifying a crank call number provided in an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a system for identifying a crank call number according to an embodiment of the present invention;
FIG. 3 is a detailed flowchart of the main steps executed by a harassing call number identification billing node according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an accounting node for identifying a crank call number provided in an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an agent node for identifying a crank call number provided in an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an accounting node for identifying a crank call number provided in an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an agent node for identifying a crank call number according to an embodiment of the present invention;
fig. 8 is a complete flowchart of an accounting node side method for identifying a crank call number according to an embodiment of the present invention;
fig. 9 is a complete flowchart of a method for identifying a proxy node of a crank call number according to an embodiment of the present invention.
Detailed Description
After the harassing numbers are identified in the prior art, harassing phone number data marked or complained by a user are stored in own systems such as an operator and a mobile phone app, the systems are independent of each other, and the data cannot be shared, so that a large number of harassing numbers are marked as harassing phone numbers by a certain system, and other systems are still normally displayed.
In order to solve the above problems, embodiments of the present invention provide a method and an apparatus for identifying a crank call number, so as to implement that crank number resources identified by different methods can be shared.
In the embodiment of the invention, nuisance numbers of systems such as operators, mobile phone apps and the like are integrated through a block chain technology, and a set of block chain system is maintained by all the systems.
The block chain system comprises the following components: accounting node, proxy node, and general user.
The accounting node is mainly used for judging whether the telephone numbers submitted by the agent node meet harassment conditions or not and maintaining the block chain system. In addition, all the accounting nodes in the block chain are selected from the agent nodes, and the accounting nodes can play the same role as the things which can be processed by the agent nodes.
The agent node is mainly used for collecting the telephone number marked by the ordinary user after the call is made and the marking information corresponding to the telephone number. The proxy node in the blockchain may be an app development annotator, an app developed by an operator, or the like.
Wherein, the accounting node is reduced to a proxy node under a certain condition; and the agent node can be elected as a billing node after a certain condition is met, and the billing node and the agent node are not invariable. Wherein the agent may also label the telephone number.
The ordinary user marks the telephone number of the call after the call is made, and the original crank call data is provided.
As shown in fig. 1, in the system for identifying a crank call number according to an embodiment of the present invention, each of a plurality of agent nodes in the system is an agent node, where each of the agent nodes is an agent of a plurality of general users, that is, a user may mark a telephone number through the agent node; the billers in the system are elected by the agent node.
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 2, an embodiment of the present invention provides a method for identifying a crank call number, where the method includes:
the accounting node 200 is used for adding the telephone number into a new harassing number block after determining that the telephone number corresponding to the blockchain transaction pool meets a harassing call condition according to the tagging information of the telephone number in the blockchain transaction pool after determining that the accounting node is used as a main accounting node, wherein the telephone number in the blockchain transaction pool and the tagging information of the telephone number are submitted by the agent node; broadcasting the new harassing number block in a block chain system and adding the new harassing number block into a block chain managed by the block chain system;
the agent node 201 is used for acquiring a telephone number from a block of a block chain managed by the accounting node, wherein the telephone number in the block is added into the block after the telephone number in the block chain transaction pool serving as the main accounting node meets a harassing call condition; and processing the acquired telephone number as a harassing call.
In the method, after the accounting node is determined to be a main accounting node, the corresponding telephone number in the blockchain transaction pool is determined to meet the harassing call condition according to the labeling information of the telephone number in the blockchain transaction pool, and then the telephone number is added into a new harassing number block; broadcasting a new harassing number block in the block chain system and adding the new harassing number block into a block chain managed by the agent node, and acquiring the telephone number from the block chain managed by the accounting node by the agent node and processing the acquired telephone number as a harassing call. Therefore, all the systems capable of identifying the harassing telephone numbers are used as the nodes of the block chain, the harassing numbers identified by all the systems are used as blocks in the block chain and are shared by all the nodes, when the system is used, the processing node searches the block chain, acquires the telephone numbers from the block chain, and processes the telephone numbers which are the same as the inquired telephone numbers as harassing calls.
Before the agent node acquires the telephone number from the block of the block chain managed by the accounting node, when the agent node selects the accounting node, the computer can randomly select the accounting node of the block chain from all the accounting nodes according to the random code; or numbering all the accounting nodes, and selecting the accounting nodes for acquiring the block chain according to a set sequence.
When the proxy node treats the acquired telephone number as a harassing call, if the proxy node is an operator, the proxy node calls data in a block chain system and blocks a junk number according to a system; if the proxy node is an app developer, the proxy node calls data in the block chain system, and the user automatically displays the junk numbers when making or receiving calls.
In particular implementations, the crank telephone number may be a fraud call, a promotional call for various services, or the like.
The labeling information of the phone number submitted by the agent to the blockchain transaction pool includes but is not limited to: time of tagging the phone number, user tagging the phone number, submitting the phone number and tagging information of the phone number to an agent node in a blockchain transaction pool, and so on.
As will be illustrated below.
Firstly, the agent node is required to label information of the telephone number of the telephone harassment number marked by the user in the embodiment of the invention; and uploading the telephone number and the labeled information of the telephone number to a blockchain transaction pool.
According to the method, the agent node marks information of the telephone number of the telephone harassment number marked by the user; and uploading the telephone number and the labeled information of the telephone number to a blockchain transaction pool. In this way, the agent node uses the labeling information of the user to the telephone number as the original identification data source to support the system operation.
In addition, the proxy node can also label the telephone number directly.
In specific implementation, after the accounting node determines that the accounting node is used as a main accounting node, the accounting node can delete the telephone numbers which are determined to meet the harassment condition in the blockchain transaction pool before adding the telephone numbers into a new harassment number block after determining that the corresponding telephone numbers in the blockchain transaction pool meet the harassment telephone condition according to the labeling information of the telephone numbers in the blockchain transaction pool.
Optionally, after determining that the accounting node is a main accounting node, before determining that the phone number corresponding to the blockchain transaction pool meets a set harassing call condition, the accounting node further includes:
and the accounting node eliminates the telephone number which is the same as the telephone number marked with the harassment in the blockchain and the marking information of the telephone number from the blockchain transaction pool.
According to the method, the accounting node adds the telephone number and the labeling information of the telephone number into the block chain before acquiring the accounting node from the block chain transaction pool, so that the operation burden of the accounting node is reduced, and meanwhile, the memory resource in the machine body block chain transaction pool is saved.
Optionally, the accounting node judges whether the accounting node is the main accounting node by the following method:
the accounting node elects an accounting node as a main accounting node to other accounting nodes and receives the accounting node elected by other accounting nodes as the main accounting node;
the accounting node judges whether the accounting node is the accounting node with the largest pushed quantity and not the main accounting node when electing last time according to the pushed accounting node and the received accounting node;
if yes, determining the self as a main accounting node; otherwise, determining that the node is not used as the main accounting node.
According to the method, the accounting node elects the accounting node as the main accounting node to other accounting nodes and receives the accounting node elected by other accounting nodes as the main accounting node; judging whether the elected accounting node is the accounting node with the largest elected quantity and not the main accounting node when elected last time according to the elected accounting node and the received accounting node; if yes, determining the self as a main accounting node; otherwise, determining that the node is not used as the main accounting node. Therefore, in the operation process of the block chain system, only one main accounting node can be ensured at a time, and other accounting nodes play an auxiliary role, so that the uniqueness of data is ensured.
For example, when there are 3 accounting nodes in the blockchain system, accounting node a, accounting node B, and accounting node C; and the accounting node A elects the accounting node B as a main accounting node, broadcasts the node B, and receives the information that the accounting node B elects the accounting node C as the main accounting node, and the accounting node C elects the accounting node B as the main accounting node, so that the accounting node A determines that the accounting node A is not used as the main accounting node and records the current main accounting node B as the accounting node B.
When the elected quantity is the largest and a plurality of accounting nodes which are not the main accounting node during the last election are provided, elected again in the determined accounting nodes which are the largest in elected quantity and are not the main accounting node during the last election until the only main accounting node is determined;
or, the number set when the accounting node is selected from the agent nodes is selected, and the accounting node with a small number is selected as the main accounting node;
or selecting the accounting node with the largest number of the users of the agent as the main accounting node from the accounting nodes with the largest determined elected quantity and not the main accounting node at the time of the last election, and the like.
As long as the only accounting node can be selected as the main accounting node.
Further, when the main accounting node completes one calculation, the main accounting node is reselected.
Optionally, after determining that the accounting node is the main accounting node, the accounting node further includes:
and if no crank call is identified from the blockchain trading pool, or a crank call is identified, the new crank number block is broadcasted in the blockchain system, and the new crank number block is added into the blockchain, the accounting node performs the steps of electing the accounting node serving as the main accounting node to other accounting nodes and receiving the accounting node elected by other accounting nodes and serving as the main accounting node.
In the method, the main accounting node determines that no harassing call is identified from the blockchain trading pool, or identifies a harassing call, broadcasts a new harassing number block in a blockchain system and adds the new harassing number block into the blockchain, and then recommends a new accounting node, wherein the proposed accounting node cannot be the same node as the previous main accounting node. Therefore, accounting can be carried out among the accounting nodes in turn, and the defects of task failure and data loss caused by only one node processing can be avoided.
In addition to the need to reselect the primary accounting node after the above procedure, the accounting node may also trigger reselection of the primary accounting node in the following cases.
Optionally, after determining that the accounting node is not the main accounting node, if a new harassment number block sent by the non-main accounting node is received, the accounting node performs the steps of electing the accounting node serving as the main accounting node to other accounting nodes and receiving the accounting node elected by other accounting nodes serving as the main accounting node.
According to the method, after the accounting node is determined not to be the main accounting node, if a new harassment number block sent by the non-main accounting node is received, the step of electing the accounting node serving as the main accounting node to other accounting nodes and the step of receiving the accounting node elected by other accounting nodes serving as the main accounting node are executed. Therefore, when a new harassing number block sent by the non-main accounting node is determined to exist at present, that is, the harassing number block is wrong, a new accounting node needs to be reselected to determine whether the telephone number submitted by the proxy node meets the harassing condition, and the new harassing number block sent by the non-main accounting node is not recorded.
Optionally, the accounting node determines whether the telephone number meets the set crank call condition by the following means:
aiming at any telephone number in the blockchain transaction pool, the accounting node determines the time weight of the telephone number according to the marking time in the marking information of the telephone number in the blockchain transaction pool and the weight corresponding to a preset first time interval;
the accounting node determines the labeling dispersion degree of the telephone number according to the number of the users labeled with the telephone number through the proxy node and the total number of the users in the block chain system;
and when the accounting node determines that the number of the labeled information of the telephone number in the blockchain transaction pool is greater than a set first threshold value and the sum of the time weight of the telephone number and the labeling dispersion degree of the telephone number is greater than a set numerical value, determining that the telephone number meets a set crank call condition.
According to any telephone number in the blockchain transaction pool, firstly, the time weight of the telephone number is determined according to the marking time in the marking information of the telephone number in the blockchain transaction pool and the weight corresponding to the preset first time interval; determining the labeling dispersion degree of the telephone numbers according to the number of the users labeling the telephone numbers through the proxy nodes and the total number of the users in the block chain system; and when the accounting node determines that the number of the labeled information of the telephone number in the blockchain transaction pool is greater than a set first threshold value and the sum of the time weight of the telephone number and the labeling dispersion degree of the telephone number is greater than a set numerical value, determining that the telephone number meets the set crank call condition. The telephone numbers submitted to the transaction pool are judged according to set conditions, if the telephone numbers meet the harassment conditions, a harassment telephone block is generated according to the telephone numbers, a new harassment telephone block is broadcasted, and the block is sent to a block chain managed by the block chain.
The marking dispersion degree refers to the ratio of the number of the users marked with the telephone numbers through the agent nodes to the total number of the users in the block chain system;
for example: if the total number of users in the current block chain system is 100 thousands of people, aiming at a telephone number, the number of users of the telephone number marked by the proxy node is 50 thousands of people, and the marking dispersion degree of the telephone number is 0.5.
When calculating the time weight, firstly, the time length corresponding to the time length from the time point of marking to the time point of confirming that the telephone number meets the harassment condition is preset manually; for example, the time weight is set to 0.5 when the time duration from the time point when the telephone number is determined to meet the harassment condition is within 1 day; setting the time weight to be 0.3 when the time duration is within 2-3 days from the time point of marking the time to determining whether the telephone number meets the harassment condition; setting the time weight to be 0.2 when the time duration is within 4-7 days from the time point when the time is marked to the time point when whether the telephone number meets the harassment condition is determined;
then, according to the marking time in the marking information of the telephone number in the determined blockchain, the time weight of the telephone number is determined according to the marking time in the marking information of the telephone number in the blockchain transaction pool and the weight corresponding to the preset first time interval;
if the time length from the time point of marking the time to the time point of determining whether the telephone number meets the harassment condition is 45 ten thousand times in 1 day, the time length from the time point of marking the time to the time point of determining whether the telephone number meets the harassment condition is 20 ten thousand times in 2-3 days, and the marking information of the changed telephone number is not found in the rest time, that is, the rest time is determined not to be marked, and the time weight of the number is 0.8;
assuming that the number threshold of the tagged information of the telephone number in the blockchain transaction pool is 40 ten thousand; the threshold value for the sum of the time weight of the telephone number and the degree of dispersion of the labels of the telephone number is 0.8.
In specific implementation, when the accounting node determines that the number of the labeled information of the telephone number in the blockchain transaction pool is greater than 40 ten thousand, and the sum of the time weight of the telephone number and the labeling dispersion degree of the telephone number is greater than 0.8, the telephone number is determined to meet the set crank call condition.
In addition, due to the special use characteristics of the telephone number, the telephone number is re-enabled, and at this time, if the telephone number is already recorded as a harassing number, the telephone number needs to be correspondingly set to be in a non-harassing number state.
Optionally, after the accounting node receives the re-enabling information of the crank call number initiated by the proxy node, if the number of times that the marked telephone number submitted by the proxy node to the blockchain transaction pool is the crank call number in a set second time interval is smaller than a set second threshold, the crank call number is added to a new number revocation block, and the new number revocation block is broadcasted in the blockchain system and added to the blockchain.
In the method, when a certain telephone number is restarted after the telephone number is set as a harassing telephone number, the agent node is required to send harassing telephone number restart information to the accounting node, after the accounting node receives the harassing telephone number restart information initiated by the agent node, if the frequency of the harassing telephone number marked by the agent node submitted to the block chain transaction pool in a set second time interval is less than a set second threshold value, the harassing telephone number is added into a new number revocation block, a new number revocation block is broadcasted in a block chain system, and the new number revocation block is added into the block chain. This allows the telephone number to be used most efficiently.
For example, when the telephone number set as a harassment number is restarted, and the number of times of submitting the telephone number to the trading pool by an agent in the week before the restart is less than 100, the telephone number is considered not to meet the harassment condition, and the harassment mark bound with the telephone number needs to be cancelled.
That is, the accounting node adds the nuisance call number to the new number revocation block, broadcasts the new number revocation block in the blockchain system, and adds the new number revocation block to the blockchain. This allows the telephone number to be used most efficiently.
In addition, for better maintenance of the blockchain system, a reward mechanism is provided in the application for rewarding the telephone number users, the proxy nodes and the accounting nodes which successfully determine to meet the harassment number.
Optionally, after determining that the telephone number meets the set crank call condition according to the labeling information of the telephone number, the accounting node further includes:
the accounting node determines a user for marking the telephone number according to the marking information of the telephone number, submits the telephone number and the marking information of the telephone number to an agent node of a block chain transaction pool, and determines whether the telephone number meets set crank call conditions according to the marking information of the telephone number;
and the accounting node respectively sends corresponding rewards to the user, the proxy node and the accounting node according to a preset integral reward proportion.
The method comprises the steps that a billing node determines a user for marking the telephone number according to marking information of the telephone number, submits the telephone number and the marking information of the telephone number to an agent node of a block chain transaction pool, and determines whether the telephone number meets set harassing call conditions according to the marking information of the telephone number; and respectively sending corresponding rewards to the user, the agent node and the accounting node according to a preset integral reward proportion. Therefore, the enthusiasm of the user and each node for maintaining the system can be stimulated to ensure the good operation of the system.
For example, after the accounting node successfully determines a telephone number meeting the harassment condition, a credit is sent to each user who marks the telephone number, two credits are sent to each agent node which submits the telephone number and the marking information of the telephone number to a block chain trading pool, and three credits are sent to each accounting node which determines whether the telephone number meets the set harassment telephone condition according to the marking information of the telephone number.
After a telephone number meeting the harassment condition is successfully determined each time, 20 ten thousand of credits are issued to a user who marks the telephone number, an agent node which submits the telephone number and the marking information of the telephone number to a block chain trading pool and an accounting node which determines whether the telephone number meets the set harassment telephone condition according to the marking information of the telephone number, and then the credits are respectively sent to the user, the agent node and the accounting node according to the proportion of 3:2:1 and are divided equally by the user, the agent node and the accounting node.
In the scheme of sending rewards to users and nodes contributing to maintaining the system, a method for punishing the users and nodes with malicious telephone numbers is provided below.
Optionally, when the accounting node obtains the labeled phone number and the labeling information of the phone number from the blockchain transaction pool, the method further includes:
when the accounting node determines that the duration of the marked telephone number which does not meet the harassing call condition duration reaches a set third threshold according to the marking time in the marking information of the telephone number, the accounting node determines a user who marks the telephone number and an agent node which submits the telephone number and the marking information of the telephone number to a block chain transaction pool according to the marking information of the telephone number;
and the accounting node implements corresponding penalty measures on the user and the proxy node according to a set penalty rule, and deletes the telephone number and the marking information of the telephone number from the blockchain transaction pool.
According to the method, when the accounting node determines that the duration of the marked telephone number which does not meet the harassing call condition duration reaches a set third threshold value according to the marking time in the marking information of the telephone number, the accounting node determines a user marking the telephone number and an agent node submitting the telephone number and the marking information of the telephone number to a block chain transaction pool according to the marking information of the telephone number; and implementing corresponding penalty measures for the user and the proxy node according to the set penalty rules, and deleting the telephone number and the marking information of the telephone number from the blockchain transaction pool. Therefore, the occurrence of malicious labeling conditions can be reduced, the normal operation of the system is ensured, and the system loss is reduced.
For example, when the earliest marking information existing in the blockchain transaction pool reaches 30 days, the malicious marking of the telephone number is determined, and then the accounting node determines a user marking the telephone number and an agent node submitting the telephone number and the marking information of the telephone number to the blockchain transaction pool according to the marking information of the telephone number; and implementing corresponding penalty measures for the user and the proxy node according to the set penalty rules, and deleting the telephone number and the marking information of the telephone number from the blockchain transaction pool.
The set punishment rule can be a certain amount of accumulated money for deducting the user and the proxy node.
Furthermore, after receiving the new harassment number block sent by the main accounting node, other accounting nodes in the block chain maintain the block chain managed by the other accounting nodes.
Optionally, after determining that the accounting node is not a main accounting node, the accounting node receives a new harassment number block sent by the main accounting node;
and the accounting node adds the new harassment number block into a block chain managed by the accounting node.
According to the method, each accounting node maintains one block chain, so that a block chain system can simultaneously maintain a plurality of block chains, and the fault tolerance of the block chain system is improved.
Optionally, the agent node elects the accounting node in the following manner.
Optionally, the agent node determines the number of users of its own agent, broadcasts the number in the blockchain system, and receives the number of users of its own agent sent by other agent nodes;
and the agent node takes at least one agent node with the number of the agents greater than a set fourth threshold value as an accounting node.
In the method, at least one agent node with the number of the agents greater than the set fourth threshold value is used as the accounting node, so that the elected accounting node is more representative.
As shown in fig. 3, the embodiment of the present invention provides a detailed flowchart of the main steps executed by the harassing call number identification accounting node.
Step 300, the accounting node elects an accounting node as a main accounting node to other accounting nodes and receives the accounting nodes elected by other accounting nodes as the main accounting node;
step 301, the accounting node judges whether the accounting node is the accounting node with the largest pushed quantity and not the main accounting node when electing last time according to the pushed accounting node and the received accounting node; if yes, executing step 302, otherwise executing step 303;
step 302, the accounting node determines itself as a main accounting node;
step 303, the accounting node determines that the elected quantity is the largest, and the accounting node which is not the main accounting node in the last election is taken as the main accounting node;
step 304, the main accounting node judges whether the corresponding telephone number in the blockchain transaction pool meets the crank call condition or not when the marking information of the telephone number in the blockchain transaction pool is determined; if yes, executing step 305 and step 307; otherwise, executing step 300;
step 305, the main accounting node adds the telephone number into a new harassment number block, wherein the telephone number in the block chain transaction pool and the label information of the telephone number are submitted by the agent node;
step 306, the main accounting node broadcasts a new harassment number block in the block chain system, adds the new harassment number block into the block chain managed by the main accounting node, and returns to the step 300;
step 307, the main accounting node determines a user for marking the telephone number according to the marking information of the telephone number, submits the telephone number and the marking information of the telephone number to an agent node of a block chain transaction pool, and determines whether the telephone number meets the set accounting node of the harassing call condition according to the marking information of the telephone number;
and 308, the main accounting node respectively sends corresponding rewards to the user, the proxy node and the accounting node according to a preset integral reward proportion, and returns to the step 300.
Based on the same inventive concept, the embodiment of the invention also provides a device for identifying the crank call number, and as the accounting node and the proxy node in the device are the accounting node and the proxy node in the system in the embodiment of the invention, and the principle of the device for solving the problem is similar to that of the system, the implementation of the method can be referred to the implementation of the system, and repeated details are omitted.
As shown in fig. 4, an embodiment of the present invention provides an accounting node for identifying a crank call number, including: processor 400 and transceiver 401:
the processor 400 is configured to perform data transmission through the transceiver 401, and after determining that the transceiver is used as a main accounting node, add a telephone number in a blockchain transaction pool to a new harassing number block according to a tag information of the telephone number, after determining that the telephone number corresponding to the blockchain transaction pool satisfies a harassing call condition, where the telephone number in the blockchain transaction pool and the tag information of the telephone number are submitted by proxy nodes;
broadcasting the new harassing number blocks in a block chain system and adding the new harassing number blocks into a block chain managed by the block chain system.
Optionally, the processor 400 is further configured to:
after the self is determined to be used as a main accounting node, before the telephone number corresponding to the block chain transaction pool is determined to meet the set harassing call condition, the telephone number which is the same as the harassing call number marked in the block chain and the label information of the telephone number are removed from the block chain transaction pool.
Optionally, the processor 400 is further configured to:
judging whether the node is a main accounting node or not by the following modes:
the method comprises the steps that accounting nodes which are used as main accounting nodes are elected from other accounting nodes, and accounting nodes which are elected from other accounting nodes and used as main accounting nodes are received;
judging whether the elected accounting node is the accounting node with the largest elected quantity and not the main accounting node when elected last time according to the elected accounting node and the received accounting node;
if yes, determining the self as a main accounting node; otherwise, determining that the node is not used as the main accounting node.
Optionally, the processor 400 is further configured to:
after the block chain transaction pool is determined to be used as a main accounting node, if no harassing call is identified from the block chain transaction pool, or a harassing call is identified, the new harassing number block is broadcasted in the block chain system, and the new harassing number block is added into the block chain, the steps of electing the accounting node which is used as the main accounting node to other accounting nodes and receiving the accounting node which is elected by other accounting nodes and is used as the main accounting node are executed.
Optionally, the processor 400 is further configured to:
after determining that the main accounting node is not the main accounting node, if a new harassment number block sent by the non-main accounting node is received, the steps of electing the accounting node as the main accounting node to other accounting nodes and receiving the accounting node elected by other accounting nodes as the main accounting node are executed.
Optionally, the processor 400 is further configured to:
judging whether the telephone number meets the set crank call condition or not through the following modes:
aiming at any telephone number in the blockchain transaction pool, determining the time weight of the telephone number according to the marking time in the marking information of the telephone number in the blockchain transaction pool and the weight corresponding to a preset first time interval;
determining the labeling dispersion degree of the telephone number according to the number of the users labeling the telephone number through the proxy node and the total number of the users in the block chain system;
and when the number of the labeled information of the telephone number in the blockchain transaction pool is determined to be larger than a set first threshold value, and the sum of the time weight of the telephone number and the labeling dispersion degree of the telephone number is determined to be larger than a set numerical value, determining that the telephone number meets a set harassing call condition.
Optionally, the processor 400 is further configured to:
after crank call number re-enabling information initiated by the agent node is received, if the frequency of the crank call number which is submitted to the block chain transaction pool by the agent node within a set second time interval and is marked as the crank call number is smaller than a set second threshold value, the crank call number is added into a new number revocation block, the new number revocation block is broadcasted in a block chain system, and the new number revocation block is added into a block chain.
Optionally, the processor 400 is further configured to:
after the telephone number is determined to meet the set crank call condition according to the labeling information of the telephone number, determining a user labeling the telephone number according to the labeling information of the telephone number, submitting the telephone number and the labeling information of the telephone number to an agent node of a block chain transaction pool, and determining whether the telephone number meets the set crank call condition or not according to the labeling information of the telephone number; and respectively sending corresponding rewards to the user, the agent node and the accounting node according to a preset integral reward proportion.
Optionally, the processor 400 is further configured to:
when the marked telephone number submitted by an agent node and the marking information of the telephone number are obtained from a blockchain transaction pool, when the marked telephone number and the marking information of the telephone number are determined according to the marking time in the marking information of the telephone number, the duration that the marked telephone number does not meet the harassing call condition reaches a set third threshold value, a user for marking the telephone number and the agent node submitting the telephone number and the marking information of the telephone number to the blockchain transaction pool are determined according to the marking information of the telephone number;
and implementing corresponding penalty measures for the user and the proxy node according to a set penalty rule, and deleting the telephone number and the marking information of the telephone number from the blockchain transaction pool.
Optionally, the processor 400 is further configured to:
after determining that the terminal is not used as a main accounting node, receiving a new harassment number block sent by the main accounting node;
and adding the new harassment number block into a block chain managed by the block chain.
As shown in fig. 5, an embodiment of the present invention provides a proxy node for identifying a crank call number, including: processor 500 and transceiver 501:
the processor 500 is configured to perform data transmission through the transceiver 501, and acquire a phone number from a block of a blockchain managed by an accounting node, where the phone number in the block is added to the block after the phone number in the blockchain transaction pool as the accounting node of the main accounting node meets a crank call condition;
and processing the acquired telephone number as a harassing call.
Optionally, the processor 500 is further configured to:
marking information of the telephone number according to the telephone harassment number marked by the user;
and uploading the telephone number and the labeling information of the telephone number to a block chain transaction pool.
Optionally, the processor 500 is further configured to:
determining the number of users of the self agent, broadcasting in the block chain system, and receiving the number of users of the self agent sent by other agent nodes;
and taking at least one agent node with the number of the agents greater than the set fourth threshold value as an accounting node.
As shown in fig. 6, an embodiment of the present invention provides an accounting node for identifying a crank call number, including:
at least one processing unit 600 and at least one memory unit 601, wherein said memory unit 601 stores program code which, when executed by said processing unit 600, causes said processing unit 600 to perform the following processes:
after determining that the self is used as a main accounting node, adding a telephone number into a new harassing number block after determining that the corresponding telephone number in a blockchain trading pool meets a harassing call condition according to the tagging information of the telephone number in the blockchain trading pool, wherein the telephone number in the blockchain trading pool and the tagging information of the telephone number are submitted by proxy nodes;
broadcasting the new harassing number blocks in a block chain system and adding the new harassing number blocks into a block chain managed by the block chain system.
Optionally, the processing unit 600 is further configured to:
after the self is determined to be used as a main accounting node, before the telephone number corresponding to the block chain transaction pool is determined to meet the set harassing call condition, the telephone number which is the same as the harassing call number marked in the block chain and the label information of the telephone number are removed from the block chain transaction pool.
Optionally, the processing unit 600 is further configured to:
judging whether the node is a main accounting node or not by the following modes:
the method comprises the steps that accounting nodes which are used as main accounting nodes are elected from other accounting nodes, and accounting nodes which are elected from other accounting nodes and used as main accounting nodes are received;
judging whether the elected accounting node is the accounting node with the largest elected quantity and not the main accounting node when elected last time according to the elected accounting node and the received accounting node;
if yes, determining the self as a main accounting node; otherwise, determining that the node is not used as the main accounting node.
Optionally, the processing unit 600 is further configured to:
after the block chain transaction pool is determined to be used as a main accounting node, if no harassing call is identified from the block chain transaction pool, or a harassing call is identified, the new harassing number block is broadcasted in the block chain system, and the new harassing number block is added into the block chain, the steps of electing the accounting node which is used as the main accounting node to other accounting nodes and receiving the accounting node which is elected by other accounting nodes and is used as the main accounting node are executed.
Optionally, the processing unit 600 is further configured to:
after determining that the main accounting node is not the main accounting node, if a new harassment number block sent by the non-main accounting node is received, the steps of electing the accounting node as the main accounting node to other accounting nodes and receiving the accounting node elected by other accounting nodes as the main accounting node are executed.
Optionally, the processing unit 600 is further configured to:
judging whether the telephone number meets the set crank call condition or not through the following modes:
aiming at any telephone number in the blockchain transaction pool, determining the time weight of the telephone number according to the marking time in the marking information of the telephone number in the blockchain transaction pool and the weight corresponding to a preset first time interval;
determining the labeling dispersion degree of the telephone number according to the number of the users labeling the telephone number through the proxy node and the total number of the users in the block chain system;
and when the number of the labeled information of the telephone number in the blockchain transaction pool is determined to be larger than a set first threshold value, and the sum of the time weight of the telephone number and the labeling dispersion degree of the telephone number is determined to be larger than a set numerical value, determining that the telephone number meets a set harassing call condition.
Optionally, the processing unit 600 is further configured to:
after crank call number re-enabling information initiated by the agent node is received, if the frequency of the crank call number which is submitted to the block chain transaction pool by the agent node within a set second time interval and is marked as the crank call number is smaller than a set second threshold value, the crank call number is added into a new number revocation block, the new number revocation block is broadcasted in a block chain system, and the new number revocation block is added into a block chain.
Optionally, the processing unit 600 is further configured to:
after the telephone number is determined to meet the set crank call condition according to the labeling information of the telephone number, determining a user labeling the telephone number according to the labeling information of the telephone number, submitting the telephone number and the labeling information of the telephone number to an agent node of a block chain transaction pool, and determining whether the telephone number meets the set crank call condition or not according to the labeling information of the telephone number; and respectively sending corresponding rewards to the user, the agent node and the accounting node according to a preset integral reward proportion.
Optionally, the processing unit 600 is further configured to:
when the marked telephone number submitted by an agent node and the marking information of the telephone number are obtained from a blockchain transaction pool, when the marked telephone number and the marking information of the telephone number are determined according to the marking time in the marking information of the telephone number, the duration that the marked telephone number does not meet the harassing call condition reaches a set third threshold value, a user for marking the telephone number and the agent node submitting the telephone number and the marking information of the telephone number to the blockchain transaction pool are determined according to the marking information of the telephone number;
and implementing corresponding penalty measures for the user and the proxy node according to a set penalty rule, and deleting the telephone number and the marking information of the telephone number from the blockchain transaction pool.
Optionally, the processing unit 600 is further configured to:
after determining that the terminal is not used as a main accounting node, receiving a new harassment number block sent by the main accounting node;
and adding the new harassment number block into a block chain managed by the block chain.
As shown in fig. 7, an embodiment of the present invention provides a proxy node for identifying a crank call number, including:
at least one processing unit 700 and at least one memory unit 701, wherein the memory unit 701 stores program code which, when executed by the processing unit 700, causes the processing unit 700 to perform the following:
acquiring a telephone number from a block of a block chain managed by an accounting node, wherein the telephone number in the block is added into the block by the accounting node serving as a main accounting node after the telephone number in a block chain transaction pool meets a harassing call condition;
and processing the acquired telephone number as a harassing call.
Optionally, the processing unit 700 is further configured to:
marking information of the telephone number according to the telephone harassment number marked by the user;
and uploading the telephone number and the labeling information of the telephone number to a block chain transaction pool.
Optionally, the processing unit 700 is further configured to:
determining the number of users of the self agent, broadcasting in the block chain system, and receiving the number of users of the self agent sent by other agent nodes;
and taking at least one agent node with the number of the agents greater than the set fourth threshold value as an accounting node.
As shown in fig. 8, an embodiment of the present invention provides a method for identifying a crank call number, where the method includes:
step 800, after determining that the accounting node is used as a main accounting node, adding a telephone number into a new harassing number block according to the tagging information of the telephone number in a blockchain trading pool after determining that the corresponding telephone number in the blockchain trading pool meets a harassing call condition, wherein the telephone number in the blockchain trading pool and the tagging information of the telephone number are submitted by proxy nodes;
step 800, the accounting node broadcasts the new harassment number block in a block chain system and adds the new harassment number block into a block chain managed by the accounting node.
Optionally, after determining that the accounting node is a main accounting node, before determining that the phone number corresponding to the blockchain transaction pool meets a set harassing call condition, the accounting node further includes:
and the accounting node eliminates the telephone number which is the same as the telephone number marked with the harassment in the blockchain and the marking information of the telephone number from the blockchain transaction pool.
Optionally, the accounting node judges whether the accounting node is the main accounting node by the following method:
the accounting node elects an accounting node as a main accounting node to other accounting nodes and receives the accounting node elected by other accounting nodes as the main accounting node;
the accounting node judges whether the accounting node is the accounting node with the largest pushed quantity and not the main accounting node when electing last time according to the pushed accounting node and the received accounting node;
if yes, determining the self as a main accounting node; otherwise, determining that the node is not used as the main accounting node.
Optionally, after determining that the accounting node is a main accounting node, the accounting node further includes:
and if no crank call is identified from the blockchain trading pool, or a crank call is identified, the new crank number block is broadcasted in the blockchain system, and the new crank number block is added into the blockchain, the accounting node performs the steps of electing the accounting node serving as the main accounting node to other accounting nodes and receiving the accounting node elected by other accounting nodes and serving as the main accounting node.
Optionally, after determining that the accounting node is not the main accounting node, if a new harassment number block sent by the non-main accounting node is received, the accounting node performs the steps of electing the accounting node serving as the main accounting node to other accounting nodes and receiving the accounting node elected by other accounting nodes serving as the main accounting node.
Optionally, the accounting node determines whether the telephone number meets a set crank call condition by the following means:
aiming at any telephone number in the blockchain transaction pool, the accounting node determines the time weight of the telephone number according to the marking time in the marking information of the telephone number in the blockchain transaction pool and the weight corresponding to a preset first time interval;
the accounting node determines the labeling dispersion degree of the telephone number according to the number of the users labeled with the telephone number through the proxy node and the total number of the users in the block chain system;
and when the accounting node determines that the number of the labeled information of the telephone number in the blockchain transaction pool is greater than a set first threshold value and the sum of the time weight of the telephone number and the labeling dispersion degree of the telephone number is greater than a set numerical value, determining that the telephone number meets a set crank call condition.
Optionally, after the accounting node receives the re-enabling information of the crank call number initiated by the proxy node, if the number of times that the marked telephone number submitted by the proxy node to the blockchain transaction pool is the crank call number in a set second time interval is smaller than a set second threshold, the crank call number is added to a new number revocation block, and the new number revocation block is broadcasted in the blockchain system and added to the blockchain.
Optionally, after determining that the telephone number meets the set crank call condition according to the labeling information of the telephone number, the accounting node further includes:
the accounting node determines a user for marking the telephone number according to the marking information of the telephone number, submits the telephone number and the marking information of the telephone number to an agent node of a block chain transaction pool, and determines whether the telephone number meets set crank call conditions according to the marking information of the telephone number;
and the accounting node respectively sends corresponding rewards to the user, the proxy node and the accounting node according to a preset integral reward proportion.
Optionally, when the accounting node obtains the labeled phone number and the labeling information of the phone number from the blockchain transaction pool, the method further includes:
when the accounting node determines that the duration of the marked telephone number which does not meet the harassing call condition duration reaches a set third threshold according to the marking time in the marking information of the telephone number, the accounting node determines a user who marks the telephone number and an agent node which submits the telephone number and the marking information of the telephone number to a block chain transaction pool according to the marking information of the telephone number;
and the accounting node implements corresponding penalty measures on the user and the proxy node according to a set penalty rule, and deletes the telephone number and the marking information of the telephone number from the blockchain transaction pool.
Optionally, after determining that the accounting node is not a main accounting node, the accounting node receives a new harassment number block sent by the main accounting node;
and the accounting node adds the new harassment number block into a block chain managed by the accounting node.
As shown in fig. 9, an embodiment of the present invention provides a method for identifying a crank call number, where the method includes:
step 900, the agent node acquires a telephone number from a block of a block chain managed by the accounting node, wherein the telephone number in the block is added to the block after the telephone number in the block chain transaction pool serving as the accounting node of the main accounting node meets a harassing call condition;
and 900, the proxy node takes the acquired telephone number as a harassing call to process.
Optionally, the agent node marks information of the telephone number according to the telephone harassment number marked by the user;
and the agent node uploads the telephone number and the labeling information of the telephone number to a block chain transaction pool.
Optionally, the agent node determines the number of users of its own agent, broadcasts the number in the blockchain system, and receives the number of users of its own agent sent by other agent nodes;
and the agent node takes at least one agent node with the number of the agents greater than a set fourth threshold value as an accounting node.
The embodiment of the invention also provides a storage medium readable by the computing equipment aiming at the method for identifying the crank call number, namely, the content is not lost after the power failure. The storage medium stores therein a software program comprising program code which, when read and executed by one or more processors, implements any of the above aspects of the invention for identification of nuisance telephone numbers when executed on a computing device.
The present application is described above with reference to block diagrams and/or flowchart illustrations of methods, apparatus (systems) and/or computer program products according to embodiments of the application. It will be understood that one block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, 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, and/or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer and/or other programmable data processing apparatus, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks.
Accordingly, the subject application may also be embodied in hardware and/or in software (including firmware, resident software, micro-code, etc.). Furthermore, the present application may take the form of a computer program product on a computer-usable or computer-readable storage medium having computer-usable or computer-readable program code embodied in the medium for use by or in connection with an instruction execution system. In the context of this application, a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (28)

1. A method for identifying crank call numbers, the method comprising:
after determining that the accounting node is used as a main accounting node, adding a telephone number into a new harassing number block after determining that the corresponding telephone number in a blockchain transaction pool meets a harassing call condition according to the tagging information of the telephone number in the blockchain transaction pool, wherein the telephone number in the blockchain transaction pool and the tagging information of the telephone number are submitted by proxy nodes;
and the accounting node broadcasts the new harassing number block in a block chain system and adds the new harassing number block into a block chain managed by the accounting node.
2. The method of claim 1, wherein after determining that the billing node is a main billing node, before determining that the telephone number corresponding to the blockchain transaction pool meets the set crank call condition, the billing node further comprises:
and the accounting node eliminates the telephone number which is the same as the telephone number marked with the harassment in the blockchain and the marking information of the telephone number from the blockchain transaction pool.
3. The method of claim 2, wherein the accounting node determines whether it is the primary accounting node by:
the accounting node elects an accounting node as a main accounting node to other accounting nodes and receives the accounting node elected by other accounting nodes as the main accounting node;
the accounting node judges whether the accounting node is the accounting node with the largest pushed quantity and not the main accounting node when electing last time according to the pushed accounting node and the received accounting node;
if yes, determining the self as a main accounting node; otherwise, determining that the node is not used as the main accounting node.
4. The method of claim 3, wherein the accounting node, after determining itself to be the primary accounting node, further comprises:
and if no crank call is identified from the blockchain trading pool, or a crank call is identified, the new crank number block is broadcasted in the blockchain system, and the new crank number block is added into the blockchain, the accounting node performs the steps of electing the accounting node serving as the main accounting node to other accounting nodes and receiving the accounting node elected by other accounting nodes and serving as the main accounting node.
5. The method of claim 3, further comprising:
and after the accounting node determines that the accounting node is not used as the main accounting node, if a new harassment number block sent by the non-main accounting node is received, the step of electing the accounting node which is used as the main accounting node to other accounting nodes and receiving the accounting node which is elected by other accounting nodes and used as the main accounting node is executed.
6. The method of claim 1, wherein the billing node determines whether the telephone number meets a set crank call condition by:
aiming at any telephone number in the blockchain transaction pool, the accounting node determines the time weight of the telephone number according to the marking time in the marking information of the telephone number in the blockchain transaction pool and the weight corresponding to a preset first time interval;
the accounting node determines the labeling dispersion degree of the telephone number according to the number of the users labeled with the telephone number through the proxy node and the total number of the users in the block chain system;
and when the accounting node determines that the number of the labeled information of the telephone number in the blockchain transaction pool is greater than a set first threshold value and the sum of the time weight of the telephone number and the labeling dispersion degree of the telephone number is greater than a set numerical value, determining that the telephone number meets a set crank call condition.
7. The method of claim 1, further comprising:
after the accounting node receives the re-enabling information of the harassing phone numbers initiated by the agent node, if the frequency of submitting the marked telephone numbers in the block chain transaction pool to the harassing phone numbers by the agent node in a set second time interval is smaller than a set second threshold value, the harassing phone numbers are added into a new number revocation block, the new number revocation block is broadcasted in a block chain system, and the new number revocation block is added into a block chain.
8. The method of claim 1, wherein the billing node, after determining that the telephone number meets the set harassing call condition according to the labeled information of the telephone number, further comprises:
the accounting node determines a user for marking the telephone number according to the marking information of the telephone number, submits the telephone number and the marking information of the telephone number to an agent node of a block chain transaction pool, and determines whether the telephone number meets set crank call conditions according to the marking information of the telephone number;
and the accounting node respectively sends corresponding rewards to the user, the proxy node and the accounting node according to a preset integral reward proportion.
9. The method of claim 1, wherein the billing node, when obtaining the tagged telephone number and the tagging information for the telephone number submitted by the broker node from the blockchain transaction pool, further comprises:
when the accounting node determines that the duration of the marked telephone number which does not meet the harassing call condition duration reaches a set third threshold according to the marking time in the marking information of the telephone number, the accounting node determines a user who marks the telephone number and an agent node which submits the telephone number and the marking information of the telephone number to a block chain transaction pool according to the marking information of the telephone number;
and the accounting node implements corresponding penalty measures on the user and the proxy node according to a set penalty rule, and deletes the telephone number and the marking information of the telephone number from the blockchain transaction pool.
10. The method of any of claims 1 to 9, further comprising:
after determining that the accounting node is not used as a main accounting node, the accounting node receives a new harassment number block sent by the main accounting node;
and the accounting node adds the new harassment number block into a block chain managed by the accounting node.
11. A method for identifying crank call numbers, the method comprising:
the method comprises the steps that an agent node acquires a telephone number from a block of a block chain managed by an accounting node, wherein the telephone number in the block is added into the block after the telephone number in a block chain transaction pool serving as a main accounting node meets a harassing call condition;
and the proxy node processes the acquired telephone number as a harassing call.
12. The method of claim 11, further comprising:
the agent node marks information of the telephone number according to the telephone harassment number marked by the user;
and the agent node uploads the telephone number and the labeling information of the telephone number to a block chain transaction pool.
13. The method of claim 11 or 12, further comprising:
the agent node determines the number of users of the agent and broadcasts in the block chain system, and receives the number of users of the agent sent by other agent nodes;
and the agent node takes at least one agent node with the number of the agents greater than a set fourth threshold value as an accounting node.
14. An accounting node for identification of crank call numbers, comprising: a processor and a transceiver:
the processor is used for transmitting data through the transceiver, determining that the transceiver is used as a main accounting node, and adding the telephone number into a new harassing number block according to the tagging information of the telephone number in the blockchain trading pool after determining that the corresponding telephone number in the blockchain trading pool meets a harassing call condition, wherein the telephone number in the blockchain trading pool and the tagging information of the telephone number are submitted by the agent node;
broadcasting the new harassing number blocks in a block chain system and adding the new harassing number blocks into a block chain managed by the block chain system.
15. The accounting node of claim 14, wherein the processor is further configured to:
after the self is determined to be used as a main accounting node, before the telephone number corresponding to the block chain transaction pool is determined to meet the set harassing call condition, the telephone number which is the same as the harassing call number marked in the block chain and the label information of the telephone number are removed from the block chain transaction pool.
16. The accounting node of claim 15, wherein the processor is further configured to:
judging whether the node is a main accounting node or not by the following modes:
the method comprises the steps that accounting nodes which are used as main accounting nodes are elected from other accounting nodes, and accounting nodes which are elected from other accounting nodes and used as main accounting nodes are received;
judging whether the elected accounting node is the accounting node with the largest elected quantity and not the main accounting node when elected last time according to the elected accounting node and the received accounting node;
if yes, determining the self as a main accounting node; otherwise, determining that the node is not used as the main accounting node.
17. The accounting node of claim 16, wherein the processor is further configured to:
after the block chain transaction pool is determined to be used as a main accounting node, if no harassing call is identified from the block chain transaction pool, or a harassing call is identified, the new harassing number block is broadcasted in the block chain system, and the new harassing number block is added into the block chain, the steps of electing the accounting node which is used as the main accounting node to other accounting nodes and receiving the accounting node which is elected by other accounting nodes and is used as the main accounting node are executed.
18. The accounting node of claim 16, wherein the processor is further configured to:
after determining that the main accounting node is not the main accounting node, if a new harassment number block sent by the non-main accounting node is received, the steps of electing the accounting node as the main accounting node to other accounting nodes and receiving the accounting node elected by other accounting nodes as the main accounting node are executed.
19. The accounting node of claim 14, wherein the processor is further configured to:
judging whether the telephone number meets the set crank call condition or not through the following modes:
aiming at any telephone number in the blockchain transaction pool, determining the time weight of the telephone number according to the marking time in the marking information of the telephone number in the blockchain transaction pool and the weight corresponding to a preset first time interval;
determining the labeling dispersion degree of the telephone number according to the number of the users labeling the telephone number through the proxy node and the total number of the users in the block chain system;
and when the number of the labeled information of the telephone number in the blockchain transaction pool is determined to be larger than a set first threshold value, and the sum of the time weight of the telephone number and the labeling dispersion degree of the telephone number is determined to be larger than a set numerical value, determining that the telephone number meets a set harassing call condition.
20. The accounting node of claim 14, wherein the processor is further configured to:
after crank call number re-enabling information initiated by the agent node is received, if the frequency of the crank call number which is submitted to the block chain transaction pool by the agent node within a set second time interval and is marked as the crank call number is smaller than a set second threshold value, the crank call number is added into a new number revocation block, the new number revocation block is broadcasted in a block chain system, and the new number revocation block is added into a block chain.
21. The accounting node of claim 14, wherein the processor is further configured to:
after the telephone number is determined to meet the set crank call condition according to the labeling information of the telephone number, determining a user labeling the telephone number according to the labeling information of the telephone number, submitting the telephone number and the labeling information of the telephone number to an agent node of a block chain transaction pool, and determining whether the telephone number meets the set crank call condition or not according to the labeling information of the telephone number; and respectively sending corresponding rewards to the user, the agent node and the accounting node according to a preset integral reward proportion.
22. The accounting node of claim 14, wherein the processor is further configured to:
when the marked telephone number submitted by an agent node and the marking information of the telephone number are obtained from a blockchain transaction pool, when the marked telephone number and the marking information of the telephone number are determined according to the marking time in the marking information of the telephone number, the duration that the marked telephone number does not meet the harassing call condition reaches a set third threshold value, a user for marking the telephone number and the agent node submitting the telephone number and the marking information of the telephone number to the blockchain transaction pool are determined according to the marking information of the telephone number;
and implementing corresponding penalty measures for the user and the proxy node according to a set penalty rule, and deleting the telephone number and the marking information of the telephone number from the blockchain transaction pool.
23. An accounting node as claimed in any one of claims 14 to 22, wherein the processor is further operable to:
after determining that the terminal is not used as a main accounting node, receiving a new harassment number block sent by the main accounting node;
and adding the new harassment number block into a block chain managed by the block chain.
24. A broker node for crank call number identification, comprising: a processor and a transceiver:
the processor is used for transmitting data through the transceiver and acquiring a telephone number from a block of a block chain managed by the accounting node, wherein the telephone number in the block is added to the block after the telephone number in the block chain transaction pool serving as the accounting node of the main accounting node meets a harassing call condition;
and processing the acquired telephone number as a harassing call.
25. The proxy node of claim 24, wherein the processor is further configured to:
marking information of the telephone number according to the telephone harassment number marked by the user;
and uploading the telephone number and the labeling information of the telephone number to a block chain transaction pool.
26. The proxy node of claim 24 or 25, wherein the processor is further configured to:
determining the number of users of the self agent, broadcasting in the block chain system, and receiving the number of users of the self agent sent by other agent nodes;
and taking at least one agent node with the number of the agents greater than the set fourth threshold value as an accounting node.
27. An apparatus for identification of crank call numbers, the apparatus comprising: at least one processing unit and at least one memory unit, wherein the memory unit stores program code which, when executed by the processing unit, causes the processing unit to perform the steps of the method according to any one of claims 1 to 10 or the steps of the method according to any one of claims 11 to 13.
28. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the steps of the method of any of claims 1 to 10 or the steps of the method of any of claims 11 to 13.
CN201811544643.7A 2018-12-17 2018-12-17 Method and device for identifying crank call number Pending CN111327771A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811544643.7A CN111327771A (en) 2018-12-17 2018-12-17 Method and device for identifying crank call number

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811544643.7A CN111327771A (en) 2018-12-17 2018-12-17 Method and device for identifying crank call number

Publications (1)

Publication Number Publication Date
CN111327771A true CN111327771A (en) 2020-06-23

Family

ID=71170851

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811544643.7A Pending CN111327771A (en) 2018-12-17 2018-12-17 Method and device for identifying crank call number

Country Status (1)

Country Link
CN (1) CN111327771A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111770500A (en) * 2020-06-24 2020-10-13 江苏荣泽信息科技股份有限公司 Method for preventing telecommunication fraud based on block chain
CN111787159A (en) * 2020-07-02 2020-10-16 中国联合网络通信集团有限公司 Block chain-based crank call identification method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170132421A1 (en) * 2013-07-06 2017-05-11 Newvoicemedia, Ltd. System and methods for tamper proof interaction recording and timestamping
CN106878528A (en) * 2017-01-23 2017-06-20 北京思特奇信息技术股份有限公司 A kind of disturbance incoming call SMS interception method and system based on block chain technology
WO2017109140A1 (en) * 2015-12-22 2017-06-29 Bigchaindb Gmbh Decentralized, tamper-resistant, asset-oriented database system and method of recording a transaction
CN108199833A (en) * 2018-01-04 2018-06-22 成都理工大学 One kind is based on the distributed stolen mobile phone guard method of block chain
CN108810901A (en) * 2018-04-17 2018-11-13 中国地质大学(武汉) A kind of malice number mark recognition methods based on block chain

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170132421A1 (en) * 2013-07-06 2017-05-11 Newvoicemedia, Ltd. System and methods for tamper proof interaction recording and timestamping
WO2017109140A1 (en) * 2015-12-22 2017-06-29 Bigchaindb Gmbh Decentralized, tamper-resistant, asset-oriented database system and method of recording a transaction
CN106878528A (en) * 2017-01-23 2017-06-20 北京思特奇信息技术股份有限公司 A kind of disturbance incoming call SMS interception method and system based on block chain technology
CN108199833A (en) * 2018-01-04 2018-06-22 成都理工大学 One kind is based on the distributed stolen mobile phone guard method of block chain
CN108810901A (en) * 2018-04-17 2018-11-13 中国地质大学(武汉) A kind of malice number mark recognition methods based on block chain

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111770500A (en) * 2020-06-24 2020-10-13 江苏荣泽信息科技股份有限公司 Method for preventing telecommunication fraud based on block chain
CN111787159A (en) * 2020-07-02 2020-10-16 中国联合网络通信集团有限公司 Block chain-based crank call identification method and system
CN111787159B (en) * 2020-07-02 2022-03-18 中国联合网络通信集团有限公司 Block chain-based crank call identification method and system

Similar Documents

Publication Publication Date Title
CN104618226B (en) A kind of information processing method, client and server
CN104917749B (en) account registration method and device
CN106412092A (en) Message pushing method, message pushing device and server
CN109165157B (en) Method for testing application program and test platform
US10064044B2 (en) Method and apparatus for determining roaming status of terminal, terminal, and server
CN106685894B (en) Risk identification method, device and system
CN110995484A (en) Automatic diagnosis method and device for service recovery of Internet of things
CN111327771A (en) Method and device for identifying crank call number
CN111222922B (en) Advertisement putting method and device, advertisement putting server and storage medium
CN111510908A (en) Card opening method, device, equipment and medium
CN111209060A (en) Capability development platform processing method and device
CN108805332B (en) Feature evaluation method and device
CN108197958B (en) Method and device for counting off-line cattle and storage medium
CN112235474B (en) Method, device and equipment for scheduling prepaid flow code number
CN112395024B (en) Interface calling method and related device
CN107563736B (en) Switching method of native page and Web page and server
CN115878341A (en) Message subscription method and device, storage medium and electronic device
CN105681384A (en) Information expiration processing method and apparatus
CN107659489A (en) A kind of method and apparatus for sending information
CN105787791B (en) Service request processing method and device
CN111414191A (en) Gray scale publishing method and device for small program
CN113518317A (en) Method and device for sending prompt information, storage medium and electronic device
CN108989063B (en) Group account data processing method, device and equipment and readable storage medium
CN110493735B (en) Short message processing method and device
CN111861603B (en) Riding order generation method and device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200623