CN109462825B - Mobile phone number allocation method, equipment and computer readable storage medium - Google Patents

Mobile phone number allocation method, equipment and computer readable storage medium Download PDF

Info

Publication number
CN109462825B
CN109462825B CN201910006533.3A CN201910006533A CN109462825B CN 109462825 B CN109462825 B CN 109462825B CN 201910006533 A CN201910006533 A CN 201910006533A CN 109462825 B CN109462825 B CN 109462825B
Authority
CN
China
Prior art keywords
node
operator
information
user
user node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910006533.3A
Other languages
Chinese (zh)
Other versions
CN109462825A (en
Inventor
钱蓓力
田新雪
冯立华
严斌峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network 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 United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201910006533.3A priority Critical patent/CN109462825B/en
Publication of CN109462825A publication Critical patent/CN109462825A/en
Application granted granted Critical
Publication of CN109462825B publication Critical patent/CN109462825B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support
    • H04W8/28Number portability ; Network address portability

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides a method and equipment for allocating mobile phone numbers and a computer readable storage medium. The embodiment of the invention forms a block chain network by the industry and credit department node and a plurality of operator nodes, when a user node needs to switch network, a target number is selected, and the identification information of the user node and the target number are broadcasted to the block chain network, so that the industry and credit department node and the plurality of operator nodes determine whether the target number can be distributed to the user node, when the target number can be distributed to the user node, the target operator after network switching is selected by the user node, and an intelligent contract is signed with the target operator, so that the user node can select the target number and the target operator after network switching, and the development of network switching service is promoted.

Description

Mobile phone number allocation method, equipment and computer readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a method and equipment for allocating mobile phone numbers and a computer readable storage medium.
Background
The number portability and network switching are also called number portability and number switching without changing, which means that a mobile phone user of one operator switches to another operator and enjoys operation services provided by the other operator.
In the prior art, when a user selects an operator after network forwarding, the operator allocates a number segment to the user terminal, and the user selects a number in the number segment as the number of the user terminal after network forwarding.
However, the number segment allocated by the operator to the user terminal may not be the preferred number segment of the network forwarding user, thereby causing the user to abandon network forwarding, and hindering the development of the network forwarding service of the user terminal.
Disclosure of Invention
The embodiment of the invention provides a method and equipment for allocating mobile phone numbers and a computer readable storage medium, which are used for promoting the development of network switching services.
In a first aspect, an embodiment of the present invention provides a method for allocating a mobile phone number, including:
a first operator node receives a first broadcast message sent by a user node in a block chain network, wherein the first broadcast message comprises identification information of the user node and a target number selected by the user node, the block chain network at least comprises an industry and communication department node, the first operator node and a second operator node, and an original operator corresponding to the user node is a second operator;
the first operator node inquires a block chain account book stored by the first operator node according to the identification information of the user node and a target number selected by the user node, and detects whether the block chain account book records the identification information of other user nodes and the corresponding relation of the target number;
if the block chain account book does not have the corresponding relation between the identification information of other user nodes and the target number, the first operator node writes the first broadcast message into the block chain account book;
the first operator node receives a second broadcast message sent by the user node in a blockchain network, wherein the second broadcast message at least comprises identification information of the user node and identification information of a target operator selected by the user node, and the target operator is the first operator;
and the first operator node pushes service information to the user node according to the second broadcast message so that the user node signs an intelligent contract with the first operator node according to the service information.
In a second aspect, an embodiment of the present invention provides an operator node, including:
a memory;
a processor;
a communication interface; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to:
receiving a first broadcast message sent by a user node in a blockchain network through the communication interface, wherein the first broadcast message comprises identification information of the user node and a target number selected by the user node, the blockchain network at least comprises an industry and communication department node, an operator node and other operator nodes, and an original operator corresponding to the user node is a second operator;
inquiring a block chain account book stored by the operator node according to the identification information of the user node and the target number selected by the user node, and detecting whether the corresponding relation between the identification information of other user nodes and the target number is recorded in the block chain account book;
if the block chain account book does not have the corresponding relation between the identification information of other user nodes and the target number, writing the first broadcast message into the block chain account book;
receiving a second broadcast message sent by the user node in a blockchain network through the communication interface, wherein the second broadcast message at least comprises identification information of the user node and identification information of a target operator selected by the user node, and the target operator is a first operator;
and pushing service information to the user node according to the second broadcast message so that the user node signs an intelligent contract with the operator node according to the service information.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the method in the first aspect.
The method, the device and the computer readable storage medium for allocating the mobile phone number provided by the embodiment of the invention form a block chain network by the industry and communication department node and a plurality of operator nodes, when a user node needs to switch network, a target number is selected, and identification information of the user node and the target number are broadcasted to the block chain network, so that the industry and communication department node and the plurality of operator nodes determine whether the target number can be allocated to the user node, when the target number can be allocated to the user node, the user node selects a target operator after network switching and signs an intelligent contract with the target operator, so that the user node can select the target number and the target operator after network switching, and the development of network switching service is promoted.
Drawings
Fig. 1 is a schematic diagram of an application scenario provided in an embodiment of the present invention;
fig. 2 is a flowchart of a method for allocating mobile phone numbers according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for assigning mobile phone numbers according to another embodiment of the present invention;
fig. 4 is a flowchart of a method for assigning mobile phone numbers according to another embodiment of the present invention;
fig. 5 is a flowchart of a method for assigning mobile phone numbers according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of an operator node according to an embodiment of the present invention.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The method for allocating the mobile phone number provided by the invention can be applied to the communication system shown in figure 1. As shown in fig. 1, the communication system includes: the department of industry node 10, the first operator node 11, the second operator node 12, and the third operator node 13, and optionally, the department of industry node 10, the first operator node 11, the second operator node 12, and the third operator node 13 are nodes in a blockchain network. Alternatively, the first operator node 11 may be a universal operator node, the second operator node 12 may be a mobile operator node, and the third operator node 13 may be a telecommunications operator node. This is for illustrative purposes only and does not limit the specific operators. In addition, in the present embodiment, the carrier node 10, the first operator node 11, the second operator node 12, and the third operator node 13 may be communication devices such as servers or terminal devices. Optionally, the blockchain network is a peer-to-peer network. Optionally, in this embodiment, the first operator node 11 may specifically be a unique Home Location Register (HLR) node unified across the country, the second operator node 12 may specifically be a unique HLR node unified across the country for mobile, and the third operator node 13 may specifically be a unique HLR node unified across the country for telecommunications.
The invention provides a mobile phone number allocation method, which aims to solve the technical problems in the prior art.
The following describes the technical solutions of the present invention and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Fig. 2 is a flowchart of a method for allocating mobile phone numbers according to an embodiment of the present invention. The embodiment of the invention provides a mobile phone number allocation method aiming at the technical problems in the prior art, which comprises the following specific steps:
step 201, a first operator node receives a first broadcast message sent by a user node in a block chain network, where the first broadcast message includes identification information of the user node and a target number selected by the user node, the block chain network includes at least an industry and communication department node, the first operator node, and a second operator node, and an original operator corresponding to the user node is a second operator.
In this embodiment, the business segment node 10, the first operator node 11, the second operator node 12, and the third operator node 13 may be specifically used as mining nodes of the block chain described in this embodiment. The first operator node 11 corresponds to a first operator, the second operator node 12 corresponds to a second operator, and the third operator node 13 corresponds to a third operator. In addition, as shown in fig. 1, the user node 14 is originally a node belonging to a second operator, that is, the second operator provides communication service for the user node 14, and when the user node 14 performs network forwarding in advance, the user node 14 transmits a first broadcast message in the blockchain network, where the first broadcast message includes identification information of the user node 14, a destination number selected by the user node 14, for example, 12345678900, a public key of the user node 14, and a local timestamp of the user node 14. Optionally, the user node 14 signs the first broadcast message with its own private key and broadcasts the first broadcast message to the blockchain network. The first broadcast message may be received by the department of industry node 10, the first operator node 11, the second operator node 12, and the third operator node 13.
Step 202, the first operator node queries a blockchain ledger stored in the first operator node according to the identification information of the user node and the target number selected by the user node, and detects whether the corresponding relationship between the identification information of other user nodes and the target number is recorded in the blockchain ledger.
After receiving the first broadcast message sent by the user node 14, the first operator node 10, the first operator node 11, the second operator node 12, and the third operator node 13 verify the private key signature of the first broadcast message by the user node 14, and if the private key signature passes the verification, query the local block chain ledger of the user node 14, where, taking the first operator node 11 as an example, the first operator node 11 queries the local block chain ledger stored in the first operator node 11 according to a target number, e.g., 12345678900, selected by the user node 14 and the user node 14, and detects whether the block chain ledger records identification information of other user nodes and a corresponding relationship of the target number. It can be understood that if the other user node preemptively selects the target number before the user node 14, the first operator node 11 records the identification information of the other user node and the corresponding relationship of the target number in the local block chain ledger book; if no other user node has selected the destination number in advance of the user node 14, the first operator node 11 will not have the identification information of the other user node and the corresponding relationship of the destination number in the local stored blockchain ledger.
Accordingly, if the first operator node 11 does not detect the identification information of other user nodes and the corresponding relationship of the destination number in the locally stored blockchain ledger, the first operator node 11 determines that no other user node preemptively selects the destination number, which may be allocated to the user node 14. If the first operator node 11 detects the identification information of the other user node and the corresponding relationship of the destination number in the locally stored blockchain account book, the first operator node 11 determines that the destination number is selected by the other user node in advance of the user node 14, and the destination number cannot be allocated to the user node 14, at this time, the first operator node 11 needs to send a broadcast message in the blockchain network to indicate that the destination number cannot be allocated to the user node 14. Similarly, the carrier node 10, the second carrier node 12, and the third carrier node 13 in the blockchain network may also determine whether the destination number can be allocated to the user node 14, similar to the first carrier node 11. Alternatively, if no more than a certain number or percentage of mining nodes object to the assignment of the target number to the user node 14 within a predetermined time, the full blockchain network may be considered to determine that the target number may be assigned to the user node 14, i.e., the user node 14 may select the target number as its own mobile phone number.
Step 203, if there is no corresponding relationship between the identification information of other user nodes and the target number in the blockchain ledger, the first operator node writes the first broadcast message into the blockchain ledger.
When the first operator node 11 does not detect the identification information of other user nodes and the corresponding relationship between the destination number and the identification information of other user nodes in the locally stored blockchain ledger, the first operator node 11 determines that the destination number can be allocated to the user node 14, and further, the first operator node 11 may also write the first broadcast information that the user node 14 selects the destination number 12345678900 as its own mobile phone number into a new block, that is, write the first broadcast information into the locally stored blockchain ledger. Similarly, other nodes in the blockchain network, such as the business department node 10, the second operator node 12, and the third operator node 13, may also write the first broadcast information into the respective stored blockchain ledger.
Step 204, the first operator node receives a second broadcast message sent by the user node in the blockchain network, where the second broadcast message at least includes identification information of the user node and identification information of a target operator selected by the user node, and the target operator is the first operator.
When the user node 14 inquires the first broadcast message that the user node 14 selects the destination number 12345678900 as its own mobile phone number in a new tile in the blockchain directory, the user node 14 determines that the destination number selected by the user node 14 is approved by the whole blockchain network, and at this time, the user node 14 sends a second broadcast message to the blockchain network, where the second broadcast message may specifically include: the identification information of the user node 14, the identification information of the target operator selected by the user node 14, and the public key of the user node 14, and optionally, the user node 14 signs the second broadcast message with its own private key and broadcasts the second broadcast message to the blockchain network. In this embodiment, the target operator selected by the user node 14 is the first operator, that is, the user node 14 selects the first operator as its new operator after network switching. In other embodiments, the target operator selected by the user node 14 may also be another operator, such as a second operator or a third operator, etc.
After the user node 14 sends the second broadcast message to the blockchain network, the first operator node 11, the carrier node 10, the second operator node 12, or the third operator node 13 may all receive the second broadcast message.
Step 205, the first operator node pushes service information to the user node according to the second broadcast message, so that the user node signs an intelligent contract with the first operator node according to the service information.
In this embodiment, taking the first operator node 11 as an example, after the first operator node 11 receives the second broadcast message, the identification information of the user node 14 and the destination number, for example, 12345678900, selected by the user node 14 are recorded, and details of the service or package of the first operator are pushed to the user node 14, and optionally, the details of the service or package are signed by using the private key of the first operator node 11 and then sent to the user node 14. After receiving the detailed information of the service or package pushed by the first operator node 11, the user node 14 selects one of the service packages, and signs an intelligent contract about the service package with the first operator node 11, optionally, the user node 14 signs the intelligent contract with its own private key and sends the intelligent contract to the first operator node 11, after receiving the intelligent contract, if it is determined that the intelligent contract is correct, the first operator node 11 signs the intelligent contract with its own private key for the second time, and thus, the intelligent contract is formally signed. Thereafter, the user of the user node 14 may go to the physical connected business hall to take the mobile phone card with the mobile phone number 12345678900, where the mobile phone card may be a mobile phone card in various forms such as soft SIM, USIM, etc. Then, the mobile phone card is opened by the business hall, and the user node 14 starts to use the services provided by the link.
The embodiment of the invention forms a block chain network by the industry and credit department node and a plurality of operator nodes, when a user node needs to switch network, a target number is selected, and the identification information of the user node and the target number are broadcasted to the block chain network, so that the industry and credit department node and the plurality of operator nodes determine whether the target number can be distributed to the user node, when the target number can be distributed to the user node, the target operator after network switching is selected by the user node, and an intelligent contract is signed with the target operator, so that the user node can select the target number and the target operator after network switching, and the development of network switching service is promoted.
Fig. 3 is a flowchart of a method for allocating mobile phone numbers according to another embodiment of the present invention. On the basis of the foregoing embodiment, after the first operator node pushes the service information to the user node according to the second broadcast message, the method further includes the following steps:
step 301, the first operator node receives the intelligent contract sent by the user node, and the intelligent contract is signed by the user node.
Optionally, the user node 14 signs the smart contract with its own private key and sends the signed smart contract to the first operator node 11.
Step 302, the first operator node signs the smart contract again with the private key of the first operator node.
After the first operator node 11 receives the intelligent contract, if the intelligent contract is determined to be correct, the first operator node 11 performs secondary signature on the intelligent contract by using its own private key.
And step 303, the first operator node sends the intelligent contract signed again to the user node.
The first operator node 11 sends the twice signed smart contract to the user node 14.
The embodiment of the invention forms a block chain network by the industry and credit department node and a plurality of operator nodes, when a user node needs to switch network, a target number is selected, and the identification information of the user node and the target number are broadcasted to the block chain network, so that the industry and credit department node and the plurality of operator nodes determine whether the target number can be distributed to the user node, when the target number can be distributed to the user node, the target operator after network switching is selected by the user node, and an intelligent contract is signed with the target operator, so that the user node can select the target number and the target operator after network switching, and the development of network switching service is promoted.
Fig. 4 is a flowchart of a method for allocating mobile phone numbers according to another embodiment of the present invention. On the basis of the above embodiment, before the first operator node receives the first broadcast message of the user node in the blockchain network, the method further includes the following steps:
step 401, the first operator node sends application information to the work and correspondence department node, where the application information is used to indicate that the first operator node applies for becoming an operator node in the block chain network.
In this embodiment, the irss node may be an originator of a blockchain, and the local of the irss node stores information about each operator node in the blockchain network. For example, the carrier node locally stores a list including information about each operator node, for example, the list includes a plurality of entries, each entry including information about one operator node, for example, one entry includes an identifier and a public key of a first operator node, another entry includes an identifier and a public key of a second operator node, and yet another entry includes an identifier and a public key of a third operator node. In addition, the head office node may also update the list in real time.
When the first operator node wants to become the operator node in the block chain network where the business department node is located, the first operator node sends application information to the business department node, wherein the application information is used for indicating that the first operator node applies to become the operator node in the block chain network. Optionally, the application information includes information such as an identifier, a public key, a company name, a legal representative (name + identification number), a registered capital, a registered address, an enterprise registration number (registration number such as 569876654324567), and an establishment time corresponding to the first operator node.
When the business and information department node receives the application information sent by the first operator node, the business and information department node verifies the operator qualification of the first operator node, if the business and information department node passes the verification of the operator qualification of the first operator node, the business and information department node further verifies the locally stored basic information of each operator node, and optionally, the basic information of each operator node comprises the identification, the public key, the terminal equipment number and other information of each operator node; if the business and information department node also passes the verification of the stored basic information of each operator node, the business and information department node sends a broadcast message to the block link network, wherein the broadcast message may specifically include a verification result of the business and information department node on the operator qualification of the first operator node, and the verification result indicates that the business and information department node passes the operator qualification verification of the first operator node. Optionally, the work and trust department node uses its private key to sign the audit result and broadcasts the result to the blockchain network. Further, the carrier node adds information about the first operator node to a list stored locally at the carrier node.
Step 402, the first operator node receives an audit result sent by the Ministry of industry and communications node, where the audit result indicates that the Ministry of industry and communications node passes the operator qualification audit of the first operator node.
The embodiment of the invention forms a block chain network by the industry and credit department node and a plurality of operator nodes, when a user node needs to switch network, a target number is selected, and the identification information of the user node and the target number are broadcasted to the block chain network, so that the industry and credit department node and the plurality of operator nodes determine whether the target number can be distributed to the user node, when the target number can be distributed to the user node, the target operator after network switching is selected by the user node, and an intelligent contract is signed with the target operator, so that the user node can select the target number and the target operator after network switching, and the development of network switching service is promoted.
Fig. 5 is a flowchart of a method for allocating mobile phone numbers according to another embodiment of the present invention. On the basis of the above embodiment, the number portability method provided in this embodiment specifically includes the following steps:
step 501, when the first operator node joins the blockchain network for the first time, the first operator node broadcasts the identity information, the identification information and the public key of the first operator node in the blockchain network.
In this embodiment, the trusteeship node may be an originator of the blockchain, and the trusteeship node issues an created block corresponding to the blockchain network in a broadcast message manner, where the created block includes an identifier of the trusteeship node, a public key, identity information of the originator, and a network address of the trusteeship node. Optionally, the work and information department node signs the broadcast message with its own private key, and broadcasts the signed broadcast message to the block chain network, and optionally, the created block is a first block of a block chain corresponding to the block chain network.
When the first operator node joins the blockchain network for the first time, information such as identity information, identification information and a public key of the first operator node is broadcasted in the blockchain network. Optionally, the first operator node encrypts information such as identity information, identification information, and a public key of the first operator node using its own private key, and broadcasts the encrypted information to the blockchain network.
Step 502, the first operator node obtains a created block in the block link network, where the created block includes network address information of the Ministry of industry and information node.
Optionally, the first operator node queries its neighboring node for the created block in the blockchain network, for example, the first operator node sends a query request to its neighboring node, where the query request is used to query the created block in the blockchain network. Optionally, the first operator node signs the query request with its own private key and sends the signed query request to the neighboring nodes, where the number of the neighboring nodes is not limited, and may be multiple or one. If the number of the adjacent nodes of the first operator node is multiple, the first operator node receives the created blocks respectively sent by the multiple adjacent nodes, the created blocks respectively sent by the multiple adjacent nodes may be the same or different, and if the created blocks respectively sent by the multiple adjacent nodes are different, the first operator node determines that created blocks exceeding a certain number percentage threshold among the created blocks respectively sent by the multiple adjacent nodes are real; if the created blocks sent by the adjacent nodes are the same, the first operator node determines that the created blocks are real.
Step 503, the first operator node sends application information to the Ministry of industry and telecommunication node according to the network address information of the Ministry of industry and telecommunication node.
When the first operator node acquires a real created block from an adjacent node, the created block is stored locally, network address information of the Ministry of industry and communications node is acquired from the created block, and application information is sent to the Ministry of industry and communications node according to the network address information of the Ministry of industry and communications node.
Step 504, the first operator node receives an audit result sent by the Ministry of industry and communications node, where the audit result indicates that the Ministry of industry and communications node passes the operator qualification audit of the first operator node.
Step 505, a first operator node receives a first broadcast message sent by a user node in a blockchain network, where the first broadcast message includes identification information of the user node and a target number selected by the user node, the blockchain network includes at least an industry and communication department node, the first operator node, and a second operator node, and an original operator corresponding to the user node is a second operator.
Step 506, the first operator node queries a blockchain ledger stored in the first operator node according to the identification information of the user node and the target number selected by the user node, and detects whether the corresponding relationship between the identification information of other user nodes and the target number is recorded in the blockchain ledger.
Step 507, if there is no corresponding relationship between the identification information of other user nodes and the target number in the blockchain ledger, the first operator node writes the first broadcast message into the blockchain ledger.
Step 508, the first operator node receives a second broadcast message sent by the user node in the blockchain network, where the second broadcast message at least includes identification information of the user node and identification information of a target operator selected by the user node, and the target operator is the first operator.
Step 509, the first operator node pushes service information to the user node according to the second broadcast message, so that the user node signs an intelligent contract with the first operator node according to the service information.
The specific processes and implementation principles of steps 505 to 509 are consistent with those described in the above embodiments, and are not described herein again.
The embodiment of the invention forms a block chain network by the industry and credit department node and a plurality of operator nodes, when a user node needs to switch network, a target number is selected, and the identification information of the user node and the target number are broadcasted to the block chain network, so that the industry and credit department node and the plurality of operator nodes determine whether the target number can be distributed to the user node, when the target number can be distributed to the user node, the target operator after network switching is selected by the user node, and an intelligent contract is signed with the target operator, so that the user node can select the target number and the target operator after network switching, and the development of network switching service is promoted.
Fig. 6 is a schematic structural diagram of an operator node according to an embodiment of the present invention. The operator node may specifically be the first operator node in the above embodiment. As shown in fig. 6, the operator node 60 includes: memory 61, processor 62, computer programs and communication interface 63; wherein the computer program is stored in the memory 61 and is configured to be executed by the processor 62 to: receiving a first broadcast message sent by a user node in a blockchain network through a communication interface 63, where the first broadcast message includes identification information of the user node and a target number selected by the user node, the blockchain network at least includes an industry and telecommunications department node, the operator node, and other operator nodes, and an original operator corresponding to the user node is a second operator; inquiring a block chain account book stored by the operator node according to the identification information of the user node and the target number selected by the user node, and detecting whether the corresponding relation between the identification information of other user nodes and the target number is recorded in the block chain account book; if the block chain account book does not have the corresponding relation between the identification information of other user nodes and the target number, writing the first broadcast message into the block chain account book; receiving a second broadcast message sent by the user node in the blockchain network through a communication interface 63, where the second broadcast message at least includes identification information of the user node and identification information of a target operator selected by the user node, and the target operator is a first operator; and pushing service information to the user node according to the second broadcast message so that the user node signs an intelligent contract with the operator node according to the service information.
Optionally, after pushing the service information to the user node according to the second broadcast message, the processor 62 is further configured to: receiving the intelligent contract sent by the user node through a communication interface 63, wherein the intelligent contract is signed by the user node; re-signing the intelligent contract with a private key of the operator node; and sending the intelligent contract signed again to the user node through a communication interface 63.
Optionally, before the processor 62 receives the first broadcast message sent by the user node in the blockchain network through the communication interface 63, the processor is further configured to: sending application information to the Ministry of industry and telecommunication node through a communication interface 63, wherein the application information is used for indicating that the operator node applies to become the operator node in the block chain network; and receiving an auditing result sent by the business and information department node through a communication interface 63, wherein the auditing result indicates that the business and information department node passes the operator qualification auditing of the operator node.
Optionally, before the processor 62 sends the application information to the department of industry and information node through the communication interface 63, the processor is further configured to: acquiring a created block in the block chain network, wherein the created block comprises network address information of the Ministry of industry and information node; when the processor 62 sends the application information to the department of industry and information node through the communication interface 63, the application information is specifically used for: and sending application information to the Ministry of industry and information node through a communication interface 63 according to the network address information of the Ministry of industry and information node.
Optionally, before acquiring the created blocks in the blockchain network, the processor 62 is further configured to: when the operator node joins the blockchain network for the first time, the identity information, the identification information and the public key of the operator node are broadcasted in the blockchain network through the communication interface 63.
The operator node in the embodiment shown in fig. 6 may be configured to execute the technical solution of the above method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
In addition, the present embodiment also provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the method for allocating a mobile phone number according to the foregoing embodiment.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working process of the device described above, reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. A method for assigning a mobile phone number, comprising:
a first operator node receives a first broadcast message sent by a user node in a block chain network, wherein the first broadcast message comprises identification information of the user node and a target number selected by the user node, the block chain network at least comprises an industry and communication department node, the first operator node and a second operator node, and an original operator corresponding to the user node is a second operator;
the first operator node inquires a block chain account book stored by the first operator node according to the identification information of the user node and a target number selected by the user node, and detects whether the block chain account book records the identification information of other user nodes and the corresponding relation of the target number;
if the block chain account book does not have the corresponding relation between the identification information of other user nodes and the target number, the first operator node writes the first broadcast message into the block chain account book;
the first operator node receives a second broadcast message sent by the user node in a blockchain network, wherein the second broadcast message at least comprises identification information of the user node and identification information of a target operator selected by the user node, and the target operator is the first operator;
the first operator node pushes service information to the user node according to the second broadcast message so that the user node signs an intelligent contract with the first operator node according to the service information;
after the first operator node pushes the service information to the user node according to the second broadcast message, the method further includes:
the first operator node receives the intelligent contract sent by the user node, and the intelligent contract is signed by the user node;
the first operator node signs the intelligent contract again by adopting a private key of the first operator node;
and the first operator node sends the intelligent contract signed again to the user node.
2. The method of claim 1, wherein before the first operator node receives the first broadcast message sent by the user node in the blockchain network, further comprising:
the first operator node sends application information to the Ministry of industry and information node, wherein the application information is used for indicating that the first operator node applies to become an operator node in the block chain network;
and the first operator node receives an auditing result sent by the Ministry of industry and information node, wherein the auditing result represents that the Ministry of industry and information node passes the operator qualification auditing of the first operator node.
3. The method of claim 2, wherein prior to the first operator node sending application information to the Ministry of industry node, further comprising:
the first operator node acquires a created block in the block chain network, wherein the created block comprises network address information of the Ministry of industry and information node;
the first operator node sends application information to the Ministry of industry and telecommunication node, including:
and the first operator node sends application information to the Ministry of industry and information node according to the network address information of the Ministry of industry and information node.
4. The method of claim 3, wherein prior to the first operator node obtaining a created block in the blockchain network, further comprising:
when the first operator node joins the blockchain network for the first time, the first operator node broadcasts the identity information, the identification information and the public key of the first operator node in the blockchain network.
5. An operator node, comprising:
a memory;
a processor;
a communication interface; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to:
receiving a first broadcast message sent by a user node in a blockchain network through the communication interface, wherein the first broadcast message comprises identification information of the user node and a target number selected by the user node, the blockchain network at least comprises an industry and communication department node, an operator node and other operator nodes, and an original operator corresponding to the user node is a second operator;
inquiring a block chain account book stored by the operator node according to the identification information of the user node and the target number selected by the user node, and detecting whether the corresponding relation between the identification information of other user nodes and the target number is recorded in the block chain account book;
if the block chain account book does not have the corresponding relation between the identification information of other user nodes and the target number, writing the first broadcast message into the block chain account book;
receiving a second broadcast message sent by the user node in a blockchain network through the communication interface, wherein the second broadcast message at least comprises identification information of the user node and identification information of a target operator selected by the user node, and the target operator is a first operator;
pushing service information to the user node according to the second broadcast message so that the user node signs an intelligent contract with the operator node according to the service information;
after pushing the service information to the user node according to the second broadcast message, the processor is further configured to:
receiving the intelligent contract sent by the user node through the communication interface, wherein the intelligent contract is signed by the user node;
re-signing the intelligent contract with a private key of the operator node;
and sending the intelligent contract signed again to the user node through the communication interface.
6. The operator node of claim 5, wherein the processor is further configured to, prior to receiving the first broadcast message sent by the user node in the blockchain network via the communication interface:
sending application information to the Ministry of industry and telecommunication node through the communication interface, wherein the application information is used for indicating that the operator node applies to become the operator node in the block chain network;
and receiving an auditing result sent by the business and information department node through the communication interface, wherein the auditing result indicates that the business and information department node passes the operator qualification auditing of the operator node.
7. The operator node of claim 6, wherein prior to sending application information to the Ministry of industry node via the communication interface, the processor is further configured to:
acquiring a created block in the block chain network, wherein the created block comprises network address information of the Ministry of industry and information node;
the processor is specifically configured to, when sending application information to the Ministry of industry and communications node through the communication interface:
and sending application information to the Ministry of industry and information node through the communication interface according to the network address information of the Ministry of industry and information node.
8. The operator node of claim 7, wherein the processor, prior to obtaining a created block in the blockchain network, is further configured to:
when the operator node is added into the block chain network for the first time, the identity information, the identification information and the public key of the operator node are broadcasted in the block chain network through the communication interface.
9. A computer-readable storage medium, having stored thereon a computer program for execution by a processor to perform the method of any one of claims 1-4.
CN201910006533.3A 2019-01-04 2019-01-04 Mobile phone number allocation method, equipment and computer readable storage medium Active CN109462825B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910006533.3A CN109462825B (en) 2019-01-04 2019-01-04 Mobile phone number allocation method, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910006533.3A CN109462825B (en) 2019-01-04 2019-01-04 Mobile phone number allocation method, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109462825A CN109462825A (en) 2019-03-12
CN109462825B true CN109462825B (en) 2021-09-21

Family

ID=65616197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910006533.3A Active CN109462825B (en) 2019-01-04 2019-01-04 Mobile phone number allocation method, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109462825B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112449350B (en) * 2019-08-30 2022-11-18 华为技术有限公司 Method, device and system for providing service for terminal by using block chain
CN112449343B (en) * 2019-08-30 2022-08-19 华为技术有限公司 Method, equipment and system for managing user identity
CN115987940B (en) * 2022-12-05 2024-04-19 中国联合网络通信集团有限公司 Telecom identification method, device and computer readable storage medium
CN116760836B (en) * 2023-08-16 2023-10-31 中国电信股份有限公司 Distributed service enabling method, device, system, communication equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026883A (en) * 2007-03-22 2007-08-29 中兴通讯股份有限公司 Method for realizing number portability service for mobile communication network
CN101730096A (en) * 2008-10-10 2010-06-09 中国移动通信集团公司 Safety management method, device and equipment for number portability
CN102348200A (en) * 2011-10-26 2012-02-08 中国联合网络通信集团有限公司 Call routing method and system of number portability businesses as well as network element equipment
CN106453345A (en) * 2016-10-21 2017-02-22 中国联合网络通信集团有限公司 Call set-up method and system
CN108184233A (en) * 2017-12-01 2018-06-19 中国联合网络通信集团有限公司 A kind of number carrying method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100617732B1 (en) * 2004-10-26 2006-08-28 삼성전자주식회사 Method and system for transmitting and receiving neighbor base station advertisement information message in mobile communication system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026883A (en) * 2007-03-22 2007-08-29 中兴通讯股份有限公司 Method for realizing number portability service for mobile communication network
CN101730096A (en) * 2008-10-10 2010-06-09 中国移动通信集团公司 Safety management method, device and equipment for number portability
CN102348200A (en) * 2011-10-26 2012-02-08 中国联合网络通信集团有限公司 Call routing method and system of number portability businesses as well as network element equipment
CN106453345A (en) * 2016-10-21 2017-02-22 中国联合网络通信集团有限公司 Call set-up method and system
CN108184233A (en) * 2017-12-01 2018-06-19 中国联合网络通信集团有限公司 A kind of number carrying method and system

Also Published As

Publication number Publication date
CN109462825A (en) 2019-03-12

Similar Documents

Publication Publication Date Title
CN109451451B (en) Terminal roaming method, device and storage medium
CN109462825B (en) Mobile phone number allocation method, equipment and computer readable storage medium
CN109660984B (en) Number portability method, equipment and computer readable storage medium
CN109981633B (en) Method, apparatus and computer-readable storage medium for accessing server
CN101938705B (en) Group management method, network equipment and network system
CN109756889B (en) Block chain-based group number portability method and system
CN111107171B (en) Security defense method and device for DNS (Domain name Server), communication equipment and medium
CN107204873B (en) Method for switching target domain name resolution server and related equipment
CN110944319B (en) 5G communication identity verification method, equipment and storage medium
CN106686591B (en) Method and device for accessing wireless network
CN108769142B (en) Transaction information processing method and block generation node
CN110719620B (en) Terminal access method and system
CN111132305B (en) Method for 5G user terminal to access 5G network, user terminal equipment and medium
CN108810120B (en) Block chain node communication method and device and block chain node
CN103796151A (en) Advertisement content pushing method and system
CN106535156B (en) Virtual subscriber identity module card migration method, terminal, server and system
CN109756847B (en) Number portability calling method, equipment and computer readable storage medium
CN110719575B (en) Radio frequency spectrum allocation method and system based on block chain
CN110198540B (en) Portal authentication method and device
CN113055952A (en) Network type setting method, user equipment and computer readable storage medium
CN114554251B (en) Multimedia data requesting method and device, storage medium and electronic device
CN107493181B (en) Indication method and device of virtual expansion port
CN108712507B (en) Block link point access method and device and block link point
CN109151744B (en) Communication method, communication device, computer device and computer readable storage medium
CN109155903B (en) Method and device for determining information of SIM card

Legal Events

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