CN111555892A - Communication system, method and storage medium - Google Patents

Communication system, method and storage medium Download PDF

Info

Publication number
CN111555892A
CN111555892A CN202010377433.4A CN202010377433A CN111555892A CN 111555892 A CN111555892 A CN 111555892A CN 202010377433 A CN202010377433 A CN 202010377433A CN 111555892 A CN111555892 A CN 111555892A
Authority
CN
China
Prior art keywords
server
terminal
base station
contract
servers
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010377433.4A
Other languages
Chinese (zh)
Other versions
CN111555892B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010377433.4A priority Critical patent/CN111555892B/en
Publication of CN111555892A publication Critical patent/CN111555892A/en
Application granted granted Critical
Publication of CN111555892B publication Critical patent/CN111555892B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1403Architecture for metering, charging or billing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing

Abstract

The invention discloses a communication system, a communication method and a storage medium, and belongs to the technical field of communication. The communication method is applied to a communication system, the communication system comprises at least one terminal, a plurality of second servers and at least one base station, each second server corresponds to at least one base station, and the at least one base station is used for providing communication service for the at least one terminal; for any terminal, the terminal sends a first entrusting contract to any second server, wherein the first entrusting contract at least comprises base station identifications of a plurality of base stations, and the plurality of base stations are base stations for which the terminal receives signals; the second server receives the first entrusting contract, and sends a rate contract to the terminal based on the base station identifications of the base stations in the first entrusting contract, wherein the rate contract is used for expressing the rate of the sequenced base stations; and the terminal establishes communication connection with a target base station with the lowest rate in the plurality of base stations according to the rate contract.

Description

Communication system, method and storage medium
The application is a division of a Chinese patent application with the application date of 2018, 9 and 14, the application number of 201811072755.7 and the name of 'communication system, method, server and storage medium'.
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a communication system, a method, and a storage medium.
Background
With the rise of mobile internet services, the demand for mobile data volume will also increase dramatically. In order to increase the capacity of a wireless network to meet the demand of mobile data volume, the network is usually deployed in a small cell deployment manner. The small cell is deployed in a manner that a plurality of small cells are densely deployed in a certain area, and each small cell is used as a unit area to establish a small base station, so as to realize the transceiving of the service of the small cell. In the deployment mode of the small cell, one small cell can be deployed at intervals of 250m, so that the use requirement of the mobile data volume of a user is greatly met.
Because the number of small cells to be deployed is huge, the construction and maintenance of the small cells are heavy projects, and it is difficult to implement the construction and maintenance of the small cells only by an operator. At present, merchants other than the operator can be motivated to build and maintain small cells together with the operator in a benefit distribution mode. Therefore, there is a need for a communication system that enables transparent charging of communications between merchants other than the operator and the operator for the user, thereby improving the enthusiasm of merchants other than the operator for participating in the construction and maintenance of small cells.
Disclosure of Invention
Embodiments of the present invention provide a communication system, a method, and a storage medium, which can solve the problem of non-realizable transparency of a charging process in related technologies. The technical scheme is as follows:
in one aspect, a communication system is provided, where the communication system includes at least one first server, at least one base station, and multiple second servers, where the at least one first server is a server in a core network of the communication system, the multiple second servers are servers outside the core network, each second server corresponds to at least one base station, the multiple second servers form a blockchain network, a target blockchain is configured on the multiple second servers, and information that is commonly identified by the multiple second servers is stored in the target blockchain, where the information at least includes a charging rate of the multiple base stations;
each of the at least one base station for providing communication services;
the second servers are used for identifying the communication data volume of the terminal in the target communication process, and determining the communication charging data of the terminal according to the communication data volume and the rate of the target base station stored in the target block chain when the identification is passed;
the plurality of second servers are further configured to perform consensus on the communication charging data, store the communication charging data to the target block chain when the consensus passes, and send the communication charging data to the at least one first server, where the target communication process is a process in which the terminal performs communication based on a communication service provided by the target base station;
and the at least one first server is used for distributing communication charging for the target server corresponding to the target base station and the at least one first server according to the communication charging data.
In a possible implementation manner, any one of the at least one first server is further configured to receive a second registration request of a server to be registered, verify the server to be registered according to a public key of the server to be registered in the second registration request, send the public key of the server to be registered to the plurality of second servers and send a registration success notification to the server to be registered when the server to be registered passes the verification, where the second registration request is used to request registration as a second server in the blockchain network.
In a possible implementation manner, the terminal is further configured to send the first entrusted contract to a second server when the terminal reaches a contract initiating condition;
wherein the contract initiation condition includes: and when the terminal is successfully registered, or the number of base stations with the signal intensity reaching the target signal intensity in the alternative base stations of the terminal does not exceed a preset threshold value.
In one possible implementation, the target blockchain further stores quality of service for a plurality of base stations, the first delegation contract further includes service conditions for the terminal,
the second servers are further configured to obtain service qualities of the base stations, and delete base stations whose service qualities do not satisfy the service conditions from the base stations included in the first delegation contract according to the service qualities of the base stations and the service conditions of the terminal.
In a possible implementation manner, the at least one first server is further configured to determine, for obtaining the charge rate of the target base station, communication charging data of the terminal according to the charge rate of the target base station and the communication data amount of the terminal counted by the at least one first server, and verify whether the communication charging data sent by the plurality of second servers is correct based on the communication charging data determined by the at least one first server.
In one possible implementation, the second delegation contract further includes a quality of service of a base station,
each second server is further configured to obtain the service quality of at least one base station corresponding to each server, and add the service quality of the at least one base station to the second delegation contract.
In a possible implementation manner, each second server is further configured to monitor the service quality of the base station corresponding to each second server in real time, when it is monitored that the service quality of the base station corresponding to each second server changes, adjust the rate of the base station according to a target adjustment policy and the current service quality of the base station corresponding to each second server, and send a third delegation contract to a plurality of second servers in the blockchain network, except for the server, based on the adjusted rate, where the third delegation contract carries the adjusted rate;
the plurality of second servers are further used for storing the third consignation contract to the target block chain when the third consignation contract is passed.
In a possible implementation manner, the at least one first server is further configured to count a communication data amount of the terminal in a target communication process;
and the target server is further configured to obtain the communication data volume of the terminal in the target communication process from the at least one first server when the data volume message is not verified or the data volume message is not received.
In a possible implementation manner, the terminal is further configured to perform a second signature on the data volume packet through a private key of the terminal.
In a possible implementation manner, the plurality of second servers are further configured to receive the data volume packet of the target server, perform consensus on the data volume packet of the target server through the public key of the terminal, and add the data volume packet of the target server to the target block chain when the data volume packet of the target server passes the consensus.
In a possible implementation manner, the at least one first server is further configured to verify a data volume packet in the target block chain, and when the data volume packet fails to be verified, a penalty policy is applied to the target server.
In one possible implementation, the penalty policy includes: reducing a target value from a communication charge allocated for the target server or removing the target server from the blockchain network.
In one aspect, a communication method is provided and applied in a communication system, where the communication system includes at least one first server, at least one base station, and a plurality of second servers, where the at least one first server is a server in a core network of the communication system, the plurality of second servers are servers outside the core network, each second server corresponds to at least one base station, the plurality of second servers form a blockchain network, a target blockchain is configured on the plurality of second servers, and information commonly identified by the plurality of second servers is stored in the target blockchain, where the information at least includes a rate of the plurality of base stations;
each of the at least one base station providing communication services;
the second servers carry out consensus on the communication data volume of the terminal in the target communication process, and when the consensus passes, communication charging data of the terminal is determined according to the communication data volume and the charge rate of the target base station stored on the target block chain;
the second servers perform consensus on the communication charging data, when the consensus is passed, the communication charging data is stored in the target block chain, and the communication charging data is sent to the first server, wherein the target communication process is a process of the terminal performing communication based on the communication service provided by the target base station;
and the at least one first server distributes communication charging for the target server corresponding to the target base station and the at least one first server according to the communication charging data.
In one possible implementation, the method further includes:
any one first server in the at least one first server receives a second registration request of a server to be registered, and verifies the server to be registered according to a public key of the server to be registered in the second registration request;
and when the server to be registered passes the verification, the any first server sends the public key of the server to be registered to the plurality of second servers, and sends a registration success notification to the server to be registered, wherein the second registration request is used for requesting to register as the second server in the block chain network.
In one possible implementation, the method further includes:
when the terminal reaches a contract initiation condition, the terminal sends the first entrusted contract to a second server;
wherein the contract initiation condition includes: and when the terminal is successfully registered, or the number of base stations with the signal intensity reaching the target signal intensity in the alternative base stations of the terminal does not exceed a preset threshold value.
In one possible implementation, the target block chain further stores service qualities of a plurality of base stations, and the first delegation contract further includes a service condition of the terminal, and the method further includes:
and the second servers acquire the service quality of the base stations, and delete the base stations of which the service quality does not meet the service condition from the base stations included in the first entrusting contract according to the service quality of the base stations and the service condition of the terminal.
In one possible implementation, the method further includes:
the at least one first server acquires the rate of the target base station, and communication charging data of the terminal is determined according to the rate of the target base station and the communication data volume of the terminal counted by the at least one first server;
the at least one first server verifies whether the communication billing data sent by the plurality of second servers is correct based on the communication billing data determined by the at least one first server.
In one possible implementation, the second delegation contract further includes a quality of service of a base station, and the method further includes:
and each second server acquires the service quality of at least one base station corresponding to each server, and adds the service quality of at least one base station to the second delegation contract.
In one possible implementation, the method further includes:
the method comprises the steps that each second server monitors the service quality of a base station corresponding to each second server in real time, when the service quality of the base station corresponding to each second server is monitored to be changed, the rate of the base station is adjusted according to a target adjustment strategy and the current service quality of the base station corresponding to each second server, and third entrusting contracts are sent to a plurality of second servers except the server in the block chain network based on the adjusted rate, wherein the third entrusting contracts carry the adjusted rate;
the plurality of second servers store the third delegation contract to the target blockchain when consensus passes for the third delegation contract.
In one possible implementation, the method further includes:
the at least one first server counts the communication data volume of the terminal in the target communication process;
and when the data volume message is not verified or the data volume message is not received, the target server acquires the communication data volume of the terminal in the target communication process from the at least one first server.
In one possible implementation, the method further includes:
and the terminal carries out second signature on the data volume message through a private key of the terminal.
In one possible implementation, the method further includes:
and the plurality of second servers receive the data volume messages of the target server, perform consensus on the data volume messages of the target server through the public key of the terminal, and add the data volume messages of the target server to the target block chain when the consensus on the data volume messages of the target server is passed.
In one possible implementation, the method further includes:
and the at least one first server verifies the data volume message in the target block chain, and when the data volume message is not verified, a punishment strategy is implemented on the target server.
In one possible implementation, the method further includes:
the penalty policy includes: reducing a target value from a communication charge allocated for the target server or removing the target server from the blockchain network.
In one aspect, a server is provided, which includes a processor and a memory, where at least one instruction is stored, and the instruction is loaded and executed by the processor to implement the operation performed by any one of the communication methods described above.
In one aspect, a computer-readable storage medium is provided, in which at least one instruction is stored, and the instruction is loaded and executed by a processor to implement the operation performed by any one of the communication methods described above.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the communication charging is carried out on the communication process of the terminal by adopting the identified data communication volume and the rate of the base station stored in the target block chain, so that accurate communication charging data is finally obtained. By identifying the calculated communication charging data, the reliability of the communication charging data is ensured, and the whole charging process is ensured to be open and transparent. And the communication charging data is sent to the first server, and the first server distributes the communication charging for the target server and the at least one first server, so that merchants except the operator can earn the profit, and the enthusiasm of the merchants except the operator for building and maintaining the base station is improved.
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 creative efforts.
FIG. 1 is a schematic illustration of an implementation environment provided by an embodiment of the invention;
fig. 2 is a schematic structural diagram of a communication system according to an embodiment of the present invention;
fig. 3 is a flowchart of a terminal registration method according to an embodiment of the present invention;
fig. 4 is a flowchart of a method for server registration according to an embodiment of the present invention;
fig. 5 is a flowchart of a method for a terminal to initiate a delegation contract according to an embodiment of the present invention;
FIG. 6 is a flowchart of a method for initiating a delegation contract by a second server according to an embodiment of the invention;
fig. 7 is a flowchart of a method for allocating a base station to a terminal by a second server according to an embodiment of the present invention;
fig. 8 is a flowchart of a method for determining communication data amount by the second server according to an embodiment of the present invention;
fig. 9 is a flowchart of a method for determining communication charging according to an embodiment of the present invention;
fig. 10 is a flowchart of communication access and communication charging provided by an embodiment of the present invention;
FIG. 11 is a flow chart of an embodiment of the present invention for achieving a rate contract consensus;
fig. 12 is a flowchart of a method for achieving a common traffic volume according to an embodiment of the present invention;
fig. 13 is a signaling interaction diagram of a communication method according to an embodiment of the present invention;
fig. 14 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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.
Fig. 1 is an architecture diagram of a communication system according to an embodiment of the present invention, where the communication system includes: at least one first server 101, at least one base station 102 and a plurality of second servers 103. The at least one first server 101 is a server in a core network of the communication system, the plurality of second servers 103 are servers outside the core network, the plurality of second servers 103 form a block chain network, each second server 103 corresponds to at least one base station 102, and each base station 102 can implement transceiving of signals in an area range corresponding to the base station 102.
The second servers 103 are configured with target block chains, and the target block chains store rates of the base stations 102. When the target base station 102 provides a communication service for a device, for example, the target base station 102 establishes a communication connection with a terminal, the plurality of servers 103 may perform charging in a public and transparent manner in the blockchain network to determine communication charging data of the terminal. The plurality of servers 103 may form a federation chain, perform public transparent charging in a manner of federation chain, and send the communication charging data to the at least one first server 101, so that the first server 101 distributes the communication charging between the first service and a target server corresponding to the target base station 102 based on the communication charging data.
It should be noted that the plurality of second servers 103 may be servers of merchants other than the operator, and the at least one first server 101 may be a server of the operator, and when a base station is established in a small cell by a merchant other than the operator, the base station may provide communication services for devices in the small cell, and of course, the operator may charge communication charges for users using the communication services based on the communication services provided by the base station. The second server 103 may implement the public transparency of the communication charging process based on the blockchain network, and the operator allocates a certain revenue to the merchants other than the operator from the communication charging determined in the communication charging process, and certainly, the operator also obtains a certain revenue from the communication charging.
It should be noted that the present application does not specifically limit the device that establishes a communication connection with the at least one base station 102, and the following embodiments provided in the present application are only described by taking as an example a terminal, where the terminal may be any terminal that can establish a communication connection with a base station, such as a Personal Computer (PC) of a user, a mobile phone device, a Tablet PC (Tablet PC) device, or a telephone. The base station may transmit and receive signals when the terminal performs a voice service in a CS (Circuit Switch) domain or a data service in a PS (Packet Switch) domain based on a communication connection with the terminal. The base station is not particularly limited in the present application, and the base station may be a base station of a small cell, a base station of a macro cell, a base station of a micro cell, or the like.
Fig. 2 is a schematic structural diagram of a communication system according to an embodiment of the present invention. Referring to fig. 2, the communication system includes at least one first server, at least one base station, and a plurality of second servers, where the at least one first server is a server in a core network of the communication system, the plurality of second servers are servers outside the core network, each second server corresponds to at least one base station, the plurality of second servers form a blockchain network, a target blockchain is configured on the plurality of second servers, and information that is commonly identified by the plurality of second servers is stored in the target blockchain, where the information at least includes a charging rate of the plurality of base stations.
The embodiment of the invention introduces the communication system from seven processes of terminal registration, server registration, terminal initiation entrusting contract, second server initiation entrusting contract, base station allocation for the terminal by the second server, communication data volume determination of the second server, terminal communication charging and the like.
Before the terminal establishes communication connection with the base station, the terminal needs to register in the core network, wherein during the terminal registration process, the plurality of second servers and the at least one first server have the following functions:
(1-1) each of the plurality of second servers is configured to forward the public key of the terminal to the at least one first server when receiving a first registration request of the terminal, where the first registration request carries the public key of the terminal.
In the embodiment of the present invention, when the terminal performs registration, the terminal is configured to send the first registration request to any one of the plurality of second servers. The embodiment of the present invention does not specifically limit any of the second servers. Any one of the second servers may be a server corresponding to a base station serving an area where the terminal is located. The second server is further configured to receive a first registration request of the terminal, and obtain the public key of the terminal from the registration request.
In a possible implementation manner, in the registration process, the any second server is further configured to send a notification signaling to the terminal, where the notification signaling is used to instruct the terminal to send the public key of the terminal to the any second server. The terminal is further configured to receive the notification signaling, and send a first registration request to the any one of the second servers based on the public key of the terminal.
In a possible implementation manner, each second server is further configured to monitor, in real time, whether there is a newly added terminal in an area served by the base station corresponding to the second server, and send a notification signaling to the newly added terminal when it is monitored that there is a newly added terminal in the area served by the base station.
It should be noted that, the second server monitors the terminal in the area corresponding to the second server in real time, so that each terminal newly added to the area corresponding to the second server can be triggered and registered in time based on the signaling of any one of the second servers, thereby ensuring the timeliness and reliability of terminal registration.
(1-2) the at least one first server, configured to authenticate the terminal according to the public key of the terminal, and return an authentication result, where the authentication result is used to indicate whether the terminal is authenticated or not.
In this embodiment of the present invention, the at least one first server stores a plurality of public keys and verification information corresponding to each public key, where the verification information may include but is not limited to: IMSI (International mobile subscriber identity Number) information of the terminal, call charge balance information of the terminal, and the like.
The at least one first server is further configured to obtain, according to the public key of the terminal, verification information corresponding to the public key, that is, the verification information of the terminal, and verify the terminal through the verification information of the terminal.
The at least one first server is further configured to verify that the terminal is a terminal of a valid user based on the IMSI information of the terminal, and when the call charge balance of the terminal is greater than a preset threshold, that is, the terminal is a valid terminal and has a usage qualification of a communication service, the terminal is verified to be passed; otherwise, when the terminal is not verified to be the terminal of the valid user based on the IMSI information of the terminal, or the telephone charge balance of the terminal is not greater than the preset threshold, the terminal is not verified to be passed.
In a possible embodiment, the at least one first server is further configured to send the verification result to any one of the plurality of second servers; and sending the verification result to a plurality of second servers of the block chain network by any one second server.
(1-3) the plurality of second servers, configured to, when the verification result indicates that the terminal is verified, store the public key of the terminal in the target block chain, and send a registration success notification to the terminal.
The any one second server is further configured to receive the verification result sent by the at least one first server, and send the verification result to a second server other than the server in the plurality of second servers.
In the terminal registration process, the public key of the terminal in the target block chain is information commonly identified by a plurality of second servers. In the consensus process, the plurality of second servers are further configured to perform consensus on the public key of the terminal, and when the consensus passes, store the public key of the terminal in the target block chain.
When the second servers share the block, the functions of the second servers can also be realized by a witness server in the second servers, and the witness server can be a server elected by a sharing algorithm. In the consensus process, the witness server and the plurality of second servers function as follows:
the witness server is further configured to package the public key of the terminal to generate a block when the verification result indicates that the terminal is verified, and send the block to a plurality of second servers, except the local server, in the plurality of second servers in the blockchain network. The second servers are also used for carrying out consensus on the blocks, and when the consensus passes, the blocks are stored in the target block chain.
The second servers are further used for storing the block into a target block chain when more than a preset number of second servers in the second servers pass the block consensus.
It should be noted that the consensus algorithm may be a PBFT (physical Byzantine fault tolerance) algorithm, and the PBFT algorithm may allow a malicious server or an unresponsive server to exist in the plurality of second servers, for example, when there are 3f +1 second servers in the blockchain network, f unresponsive servers or malicious servers (f is a positive integer greater than 1) are allowed. The predetermined number may be two-thirds, or one-third, etc. of the total number of the plurality of second servers, which is not specifically limited in the embodiment of the present invention. In the embodiment of the present invention, the unresponsive server refers to a server that does not respond to the verification result of the block in the plurality of second servers.
In order to describe the terminal registration process more clearly, in this embodiment, the terminal registration process is described by taking one of the plurality of second servers as an example, and the second server may be any one of the plurality of second servers, which is not limited in this embodiment of the present invention. Fig. 3 is a flowchart of a terminal registration method, as shown in fig. 3, the method including the steps of:
301. and the second server sends a notification signaling to the terminal, wherein the notification signaling is used for indicating the terminal to send the public key of the terminal to the second server.
The second server may trigger the second server to report the public key of the terminal through a signaling. The second server can also monitor whether a newly added terminal exists in the area served by the base station corresponding to the second server in real time, and when the newly added terminal exists in the area served by the base station, a notification signaling is sent to the newly added terminal.
302. The terminal receives the notification signaling and sends a first registration request to the second server based on the public key of the terminal.
Wherein, the first registration request carries the public key of the terminal.
303. The second server receives a first registration request of the terminal.
The second server obtains the public key of the terminal from the registration request.
304. The second server forwards the public key of the terminal to the at least one first server.
305. And the at least one first server verifies the terminal according to the public key of the terminal and returns a verification result.
Wherein, the verification result is used for indicating that the terminal is verified or not verified. The at least one first server obtains the verification information corresponding to the public key according to the public key of the terminal, that is, the verification information of the terminal, and verifies the terminal through the verification information of the terminal. When the at least one first server verifies that the terminal is a terminal of a valid user based on the IMSI information of the terminal, and the telephone charge balance of the terminal is greater than a preset threshold value, the terminal is verified to be passed; otherwise, when the terminal is not verified to be the terminal of the valid user based on the IMSI information of the terminal, or the telephone charge balance of the terminal is not greater than the preset threshold, the terminal is not verified to be passed. And the any second server receives the verification result sent by the at least one first server and sends the verification result to second servers except the server in the plurality of second servers.
306. And when the verification result indicates that the terminal is verified, the second server stores the public key of the terminal into the target block chain.
In the terminal registration process, the public key of the terminal in the target block chain is information commonly identified by a plurality of second servers. In the consensus process, the plurality of second servers perform consensus on the public key of the terminal, and when the consensus passes, the public key of the terminal is stored in the target block chain.
When the second servers perform consensus on the block, the process of chaining the public key of the terminal can also be realized based on a witness server in the second servers, and the witness server can be a server elected through a consensus algorithm.
The consensus process may be: when the verification result indicates that the terminal passes the verification, the witness server packages the public key of the terminal to generate a block and sends the block to a plurality of second servers except the local server in a plurality of second servers in the block chain network. And the second servers perform consensus on the block, and store the block into a target block chain when the consensus is passed.
The second servers can also store the block into the target block chain when more than a preset number of second servers in the second servers pass the block consensus.
It should be noted that the consensus algorithm may be a PBFT algorithm, and the PBFT algorithm may allow a malicious server or an unresponsive server to exist in the plurality of second servers, for example, when there are 3f +1 second servers in the blockchain network, there are f unresponsive servers or malicious servers. In the embodiment of the present invention, the unresponsive server refers to a server that does not respond to the verification result of the block in the plurality of second servers.
307. The second server sends a registration success notification to the terminal.
It should be noted that, in the terminal registration process, the terminal sends the public key of the terminal to the second server, the public key is forwarded to the first server through the second server, the terminal is verified through the first server, and when the terminal passes the verification, the public key of the terminal is stored in the target block chain through the process of common identification of a plurality of second servers, so that the illegal terminal is eliminated, the base station corresponding to the second server is ensured to provide communication service only to the terminal passing the verification, and the reliability of the terminal registration process and the accuracy and the safety of subsequent communication connection are further improved.
When a base station initializes an access network or after the base station loses connection due to a link and reenters the network, a server corresponding to the base station also needs to be registered in a core network so as to be added into a block chain network. Wherein, in the process of registering the server to be registered, the at least one first server has the following functions:
(2-1) any one of the at least one first server is further configured to receive a second registration request of the server to be registered, verify the server to be registered according to a public key of the server to be registered in the second registration request, send the public key of the server to be registered to the plurality of second servers when the server to be registered passes the verification, and send a registration success notification to the server to be registered.
Wherein the second registration request is for requesting registration as a second server in the blockchain network. The public key of the server qualified to join the blockchain network and the base station identification of the base station corresponding to the server qualified to join the blockchain network are stored in the at least one first server.
The at least one first server is further configured to search the public key of the server to be registered from the correspondence between the public key stored in the server and the base station identifier according to the public key of the server to be registered, and when the public key of the server to be registered is found, the server to be registered is verified to pass.
In a possible implementation manner, the at least one first server is further configured to obtain, according to the public key of the server to be registered, the base station corresponding to the server to be registered from the correspondence between the public key and the base station identifier, verify the base station corresponding to the server to be registered, determine that the server to be registered has the qualification for joining the blockchain network when the verification passes, and verify the server to be registered by the server.
In a possible implementation manner, the at least one first server is further configured to send the public key of the server to be registered and the base station identifier of the base station corresponding to the server to be registered to the plurality of second servers.
It should be noted that the at least one first server is further configured to send the public key of the server to be registered to any one of the plurality of second servers; and sending the public key of the server to be registered to a plurality of second servers of the block chain network by any one second server.
The base station identifier of the base station may be ID (Identity) information of the base station.
In addition, in the process of registering the server as a second server, the plurality of second servers in the blockchain network function as follows:
and (2-2) the plurality of second servers are also used for storing the public key of the server to be registered to the target block chain.
In a possible implementation manner, the plurality of second servers are further configured to store the public key of the server to be registered and the base station identifier of the base station corresponding to the server to be registered to the target block chain, so that the plurality of second servers achieve a consensus on the identity of the server to be registered as the second server.
Of course, in the server registration process, the public key of the server to be registered is also information that is commonly identified through the common identification process of the plurality of second servers. In the consensus process, the plurality of second servers are further configured to perform consensus on the public key of the server to be registered, and when the consensus passes, store the public key of the server to be registered in the target block chain. In the process of the consensus, the consensus can also be realized based on witness servers in a plurality of second servers, and the roles of the plurality of second servers are the same as the roles in the consensus process during the terminal registration, which is not described herein again.
In order to describe the server registration process more clearly, this embodiment takes a first server as an example, and describes the server registration process, where the first server may be any one of the plurality of first servers, and this is not limited in this embodiment of the present invention. Fig. 4 is a flow chart of a method of server registration, as shown in fig. 4, the method comprising the steps of:
401. and the server to be registered sends a second registration request to the first server based on the public key of the server to be registered.
And the second registration request carries the public key of the server to be registered.
402. And the first server receives a second registration request of the server to be registered and verifies the server to be registered according to the public key of the server to be registered in the second registration request.
And the at least one first server searches the public key of the server to be registered from the corresponding relation between the public key stored in the server and the base station identifier according to the public key of the server to be registered, and verifies the server to be registered when the public key of the server to be registered is found.
In a possible implementation manner, the at least one first server may further obtain, when the public key of the server to be registered is found from the correspondence between the public key and the base station identifier according to the public key of the server to be registered, the base station corresponding to the server to be registered; and verifying the base station corresponding to the server to be registered, and when the verification is passed, determining that the server to be registered has the qualification of joining the block chain network, and the server passes the verification of the server to be registered. And when the base station corresponding to the server to be registered is not verified, determining that the server to be registered does not have the qualification of joining the block chain network, and the server does not verify the server to be registered.
403. And when the server to be registered passes the verification, the first server sends the public key of the server to be registered to the plurality of second servers and sends a registration success notice to the server to be registered.
In a possible implementation manner, the at least one first server may further send the public key of the server to be registered and the base station identifier of the base station corresponding to the server to be registered to the plurality of second servers.
Of course, when the server fails to verify the server to be registered, the first server does not send the public key of the server to be registered to the plurality of second servers, and the server to be registered does not join the blockchain network.
404. And the plurality of second servers store the public key of the server to be registered to the target block chain.
The plurality of second servers in the blockchain network may perform consensus on the public key of the server to be registered, and when the consensus passes, the public key of the server to be registered is stored in the target blockchain. Of course, the plurality of second servers may also store the public key of the server to be registered and the base station identifier of the base station corresponding to the server to be registered to the target block chain.
The plurality of second servers can realize the process of chaining the public keys of the servers to be registered through a consensus process based on the witness server. The process in this step is the same as that in step 306, and is not described herein again.
It should be noted that, in the process of registering as the second server in the blockchain network, through the verification of the first server and the consensus of the plurality of second servers in the blockchain network, the public key of the second server passing the verification is accurately stored in the target blockchain, so that the accuracy of server registration is improved, and the subsequent consensus of the plurality of second servers on the communication data volume and the communication charging data is facilitated.
In the embodiment of the invention, after the terminal is successfully registered, the terminal can receive the communication service provided by the base station. In general, a terminal can detect signals of multiple base stations at the same time. The target block chain stores the rates of a plurality of base stations, and the terminal can entrust the second server to inquire the rates of the plurality of base stations by initiating an entrusting contract so as to subsequently select a base station with the lowest rate to provide communication service for the terminal. In the process of initiating the entrusting contract by the terminal, the terminal and the plurality of second servers have the following functions:
(3-1) the terminal further configured to send the first delegation contract to the plurality of second servers, the first delegation contract including at least base station identifications of the plurality of base stations.
The plurality of base stations are base stations which the terminal can receive signals.
The terminal is further configured to monitor signals of the plurality of base stations that can be received in real time, generate the first delegation contract based on the base station identifiers of the plurality of base stations that can receive the signals, and send the first delegation contract to the plurality of second servers. The terminal is further configured to send the first delegation contract to any one of the plurality of second servers. The any second server is not specifically limited in the embodiment of the present invention, for example, the any second server may be a server corresponding to a base station serving an area where the terminal is located.
In a possible implementation manner, the terminal is further configured to monitor signal strengths of the plurality of base stations in real time based on the received signals of the plurality of base stations, and delete a base station having a signal strength lower than a target signal strength from the plurality of base stations capable of receiving the signals based on the signal strengths of the plurality of base stations. The target signal strength is the lowest signal strength which meets the communication requirement of the terminal, so that the subsequent further screening can be performed in the base station with higher signal strength, and the communication service requirement of the terminal is greatly met.
In a possible implementation manner, the terminal is further configured to obtain a service condition of the terminal, and add the service condition to the first delegation contract. The first delegation contract can also carry a service condition of the terminal, the service condition indicating a target quality of service of the base station required by the terminal.
In a possible embodiment, the terminal is further configured to perform the step of sending the first delegation contract to the second server only when the terminal reaches a contract initiating condition, the contract initiating condition including: and when the terminal is successfully registered, or the number of base stations with the signal strength reaching the target signal strength in the alternative base stations of the terminal does not exceed a preset threshold value.
Further, the terminal is further configured to digitally sign the first delegation contract with a private key of the terminal.
It should be noted that, during the communication process, when the communication service provided by the base station cannot meet the communication requirement, for example, the signal strength of the original base station becomes weak due to the position change of the terminal, and at this time, the terminal needs to switch the original base station to another base station capable of meeting the communication requirement. In addition, when the terminal has just successfully registered, the terminal has not determined the target base station, and at this time, the terminal may transmit the first commission contract to the second server so as to select the target base station based on the rate indication information of the second server.
And (3-2) the plurality of second servers are also used for carrying out consensus on the first consignation contract, and storing the first consignation contract into the target block chain when the consensus is passed.
And the first entrusting contract in the target block chain is a contract after being identified by a plurality of second server identification processes. In the consensus process, the plurality of second servers are further configured to verify the digitally signed first delegation contract based on the public key of the terminal, and store the first delegation contract into the target block chain when the verification is passed.
Of course, in the process of consensus on the first entrusted contract, the roles of the plurality of second servers may also be implemented based on witness servers in the plurality of second servers, and accordingly, the roles of the plurality of second servers are the same as those in the consensus process during the terminal registration, and are not described herein again.
In order to more clearly describe the process of initiating the commission contract by the terminal, the embodiment of the present invention describes the process of initiating the commission contract by the terminal by using the example that the terminal sends the first commission contract to any one of the second servers, and the embodiment of the present invention is not particularly limited to this. Fig. 5 is a flow chart of a method for a terminal to initiate a delegation contract, as shown in fig. 5, the method comprising the steps of:
501. the terminal sends the first delegation contract to any of the second servers.
Wherein the first delegation contract includes at least base station identities of the plurality of base stations. The plurality of base stations are base stations which the terminal can receive signals. The terminal can monitor signals of a plurality of base stations which can receive signals in real time, generate the first entrusting contract based on base station identifications of the base stations which can receive the signals, further, the terminal carries out digital signature on the first entrusting contract through a private key of the terminal, and sends the digitally signed first entrusting contract to the second servers.
In a possible implementation manner, the terminal may further monitor the signal strengths of the plurality of base stations in real time based on the received signals of the plurality of base stations, and delete the base station having the signal strength lower than the target signal strength from the plurality of base stations capable of receiving the signals based on the signal strengths of the plurality of base stations.
In a possible implementation, the terminal may further obtain a service condition of the terminal, and add the service condition to the first delegation contract. The service condition is used to indicate a target quality of service of the base station required by the terminal.
In a possible embodiment, the above step 501 is executed when the terminal reaches a contract initiating condition, wherein the contract initiating condition includes: when the terminal is successfully registered, or the number of base stations meeting the signal strength not lower than the target signal strength signal condition in the candidate base station list of the terminal does not exceed a preset threshold.
When the terminal sends the first delegation contract to the any one of the second servers, the any one of the second servers broadcasts the first delegation contract to the plurality of second servers in the blockchain network.
502. The plurality of second servers carry out consensus on the first entrusting contract, and when the consensus is passed, the first entrusting contract is stored in the target block chain.
In the consensus process, the plurality of second servers verify the digitally signed first commitment contract based on the public key of the terminal. When the verification passes, the first delegation contract is stored to the target blockchain. The plurality of second servers in the blockchain network may perform consensus on the public key of the server to be registered, and when the consensus passes, the public key of the server to be registered is stored in the target blockchain. Of course, the plurality of second servers may also store the public key of the server to be registered and the base station identifier of the base station corresponding to the server to be registered to the target block chain.
The plurality of second servers can realize the process of chaining the public keys of the servers to be registered through a consensus process based on the witness server. The process in this step is the same as that in step 306, and is not described herein again.
It should be noted that, when the terminal may send the first delegation contract, the plurality of second servers may identify the first delegation contract, and store the identified first delegation contract into the target block chain, so as to ensure accuracy and reliability of information in the target block chain. And through the process of storing the delegation contract, a plurality of second servers are triggered to allocate base stations for the terminal, and the delegation process is only an interaction process between the terminal and the second servers, and the signaling overhead of the first server of the operator is not increased.
In the embodiment of the invention, after the second server joins the block chain network, the second server can initiate a commission contract and transparently store the rate of the base station corresponding to the second server to the target block chain. In the process of initiating the delegation contract by the second server, the plurality of second servers function as follows:
(4-1) each second server in the plurality of second servers is further configured to send a second delegation contract to a plurality of second servers in the blockchain network except the server based on the charging rate of the at least one base station corresponding to the each second server.
The second entrusting contract carries the rate of at least one base station corresponding to each second server; . Further, each second server is further configured to sign the second delegation contract through a private key of each second server, and send the signed second delegation contract to a plurality of second servers in the blockchain network except the server.
In a possible implementation manner, the second delegation contract may further include a service quality of the base station, and each second server is further configured to obtain a service quality of at least one base station corresponding to each second server, and add the service quality of the at least one base station to the second delegation contract.
In a possible implementation manner, each second server is further configured to monitor the service quality of the base station corresponding to each second server in real time, when it is monitored that the service quality of the base station corresponding to each second server changes, adjust the rate of the base station according to the target adjustment policy and the current service quality of the base station corresponding to each second server, and send a third delegation contract to a plurality of second servers in the blockchain network except the server based on the adjusted rate. Wherein the third commission contract carries the adjusted rate.
The target adjustment policy may be: when the service quality of the base station is too low, the second server corresponding to the base station increases the rate of the base station; and when the service quality of the base station is too high, the second server corresponding to the base station reduces the charge rate of the base station.
In a possible implementation manner, the service quality of the base station can be represented by the channel resource utilization rate of the base station, and the higher the channel utilization rate is, the more busy the base station is, the lower the service quality is; the lower the channel utilization rate, the more idle the base station is, and the higher the service quality is. The target adjustment strategy may also be: when the channel resource utilization rate of the base station is too high, the second server increases the charge rate of the base station; when the channel resource utilization rate of the base station is too low, the second server reduces the charge rate of the base station. The target adjustment policy may be embodied as a corresponding relationship between multiple levels of channel resource utilization and multiple rates of the base station, where the channel resource utilization at different levels is different in level, and each level corresponds to one rate. The second server adjusts according to the corresponding relation between the level and the rate, and the second server is further configured to obtain the current rate of the base station from the corresponding relation between the level and the rate according to the level of the current channel resource utilization rate of the base station.
The second server is further configured to periodically obtain a current rate of the base station, determine whether the current rate of the base station is the same as a rate of the base station in a previous period, and send a third commission contract to a plurality of second servers in the block chain network, except the server, based on the current rate if the current rate is not the same as the rate of the base station in the previous period.
It should be noted that, the rate of the base station is stored in the target block chain by the second server, so that the rate is not falsifiable, and the transparency and reliability of information are increased, and the rate of the base station is adjusted in real time based on the load condition of the base station, so that the load condition of each base station is not too large, and the communication service quality and the communication service efficiency of the base station are improved. Meanwhile, the load among the base stations is balanced, and the service bearing pressure of the hotspot base station is greatly relieved.
(4-2) the plurality of second servers, further configured to perform consensus on the second delegation contract, and when the consensus is passed, store the second delegation contract to the target block chain.
The plurality of second servers are also used for verifying the second entrustment contract according to the public key of the source server of the second entrustment contract and storing the second entrustment contract to the target block chain when the verification is passed. In a possible embodiment, the plurality of second servers are further configured to perform consensus on the third delegation contract, and when the consensus is passed, store the third delegation contract to the target block chain.
It should be noted that a witness server may be set in the block chain network, and the witness server is configured to package the second entrustment contract to generate a block and send the block to the plurality of second servers; correspondingly, the second servers are also used for carrying out consensus on the blocks of the witness server, and when the consensus passes, the blocks are added into the target block chain. Correspondingly, when the second server sends the second delegation contract, the role of each second server further includes: each second server is further configured to send the second delegation contract to a witness server in the target blockchain network.
Of course, in the process of consensus on the second delegation contract and/or the third delegation contract, the functions of the plurality of second servers and the witness server are the same as those in the consensus process when the terminal is registered, and are not described herein again.
The witness server may be one or more servers selected by the second servers in the blockchain network based on a consensus mechanism. The witness server executes the block packaging process, and the plurality of second servers verify the block, so that the process of packaging the plurality of second servers is omitted, the speed of entering the entrusted contract into the chain is increased, and the processing efficiency of the block chain network is improved.
In order to describe the process of initiating the delegation contract by the second server more clearly, in this embodiment, the process of initiating the delegation contract by the second server is described by taking an example that any second server initiates the delegation contract based on a corresponding base station, and this is not particularly limited in the embodiment of the present invention. Fig. 6 is a flow diagram of a method for initiating a delegation contract by a second server, as shown in fig. 6, the method comprising the steps of:
601. and the second server sends a second entrusting contract to a plurality of second servers except the server in the block chain network based on the rate of the base station corresponding to the second server.
And each second server is also used for signing the second entrusting contract through the private key of each second server and sending the signed second entrusting contract to a plurality of second servers except the server in the block chain network.
602. The plurality of second servers perform consensus on the second delegation contract, and when the consensus is passed, the second delegation contract is stored to the target block chain.
The plurality of second servers may also validate the second delegation contract based on the public key of the second delegation contract origin server. In addition, each second server may also send the second delegation contract to a witness server in the target blockchain network. The witness server packages the second entrusted contracts to generate blocks and sends the blocks to a plurality of second servers; correspondingly, the second servers can also perform consensus on the blocks of the witness server, and when the consensus passes, the blocks are added into the target block chain. In this step, the process of chaining the second entrustment contract is realized through the consensus process. The process similar to step 306 is not described herein again.
603. And the second server monitors the service quality of the base station in real time, and adjusts the rate of the base station according to the target adjustment strategy and the service quality of the base station when the change of the service quality of the base station is monitored.
In the embodiment of the invention, after the second server stores the charge rate of the base station to the target block chain, each second server can also ensure the service quality of the base station and balance the load among a plurality of base stations by dynamically adjusting the charge rate of the base station. The target adjustment policy may be: when the service quality of the base station is too low, the second server increases the charge rate of the base station; when the service quality of the base station is too high, the second server reduces the charge rate of the base station.
In one possible embodiment, the quality of service of a base station is characterized by its channel resource utilization. The target adjustment strategy may also be: when the channel resource utilization rate of the base station is too high, the second server corresponding to the base station increases the rate of the base station; and when the channel resource utilization rate of the base station is too low, the second server corresponding to the base station reduces the charge rate of the base station. The target adjustment policy may be embodied as a corresponding relationship between multiple levels of channel resource utilization and multiple rates of the base station. In a possible manner, the second server may obtain the current rate of the base station from a corresponding relationship between the level and the rate according to the level of the current channel resource utilization rate of the base station.
604. The second server sends a third delegation contract to a plurality of second servers in the blockchain network, except the server, based on the adjusted rate.
The second server may periodically obtain a current rate of the base station, determine whether the current rate of the base station is the same as a rate of the base station in a previous period, and send a third commission contract to a plurality of second servers in the block chain network except the server based on the current rate if the current rate is not the same as the rate of the base station in the previous period.
605. The plurality of second servers perform consensus on the third delegation contract, and when the consensus is passed, the third delegation contract is stored to the target block chain.
This step is a process similar to the above step 602, and is not described herein again.
It should be noted that the second server stores the charge rate of the base station to the target block chain, so that the charge rate of each base station is transparent, is supervised by a plurality of second services, and is not changeable at will, thereby making the data source of the subsequent communication charging process more reliable. Moreover, the second server can also properly adjust the rates of the base stations based on the change condition of the service quality of each base station, so as to balance the load among the base stations, ensure the service quality of the communication service provided by the base stations and improve the service efficiency of the communication service of the base stations.
In the embodiment of the invention, when the entrusting contract from the terminal and the entrusting contract from the second server are stored on the target block chain, the plurality of second servers allocate base stations for the terminal based on the rates, and rate consensus is achieved among the plurality of second servers. In the process, the plurality of second servers, the base station and the at least one first server act to:
and (5-1) the second servers are further used for acquiring the rates of the base stations based on the base station identifications of the base stations in the first entrusting contract and returning rate indication information to the terminal when the first entrusting contract of the terminal is received.
Wherein, the charge rate indication information is used for indicating the charge rates of the plurality of base stations. The rate indication information may be the rates of the plurality of base stations ranked based on the rates, or a rate level indicating the rate level of the plurality of base stations. The embodiment of the present invention does not specifically limit the rate indication information.
In a possible embodiment, the target blockchain further stores quality of service for a plurality of base stations, and the first delegation contract further includes service conditions for the terminal. The plurality of second servers are further configured to obtain service qualities of the plurality of base stations, and delete a base station whose service quality does not satisfy the service condition from the plurality of base stations included in the first delegation contract according to the service qualities of the plurality of base stations and the service condition of the terminal. The second server is further configured to obtain the service qualities of the multiple base stations from the target block chain, and determine whether the service qualities of the multiple base stations satisfy the service conditions according to the service conditions in the first commission contract.
In one possible embodiment, the plurality of second servers are further configured to send a rate contract to the terminal based on the rates of the plurality of base stations, and when the rate contract consensus is passed, store the rate contract to the target blockchain. The plurality of second servers are further configured to send the rate contract to at least one first server. Wherein, the rate contract may include the rate of the plurality of base stations after the ranking. The arrangement order of the base stations can be descending order according to the charge rate. In addition, the plurality of second servers are further configured to add the quality of service of the plurality of base stations to the rate contract.
In a possible implementation manner, during the communication between the base station and the terminal, the rate of the base station may be dynamically changed, that is, when a third commission contract is added to the target block chain, the second server is further configured to determine, according to the third commission contract, a terminal that establishes a communication connection with the base station in the third commission contract, and send updated rate indication information to the terminal that establishes a communication connection with the base station.
The second servers are further used for determining the rate indication information of the base stations in the first entrusting contract again according to the base station identifications of the base stations in the first entrusting contract of each terminal and the rate of the base stations in the third entrusting contract based on the first entrusting contract of at least one terminal establishing communication connection with the base station. Of course, the third delegation contract may also include the service quality of the base station, and the plurality of second servers are further configured to delete, from the plurality of base stations included in the first delegation contract, the base station whose service quality does not satisfy the service condition, according to the service quality of the base station in the third delegation contract and the service condition in the first delegation contract.
In the process of storing the rate contract into the sub-target block chain, the functions of the plurality of second servers may be implemented by a witness server selected by a consensus algorithm from among the plurality of servers. The witness server is further configured to, when a first delegation contract of the terminal is received, obtain the rates of the plurality of base stations based on the base station identifiers of the plurality of base stations in the first delegation contract, and return the rate indication information to the terminal.
The witness server is also used for sending a rate contract to the terminal and sending the rate contract to a server except the server in the second servers based on the rate of the base stations; correspondingly, the plurality of second servers are also used for carrying out consensus on the rate contracts, and when the consensus is passed, the rate contracts are stored to the target block chain. The second servers are further used for storing the block into a target block chain when more than a preset number of second servers in the second servers pass the block consensus.
It should be noted that the consensus algorithm may be a PBFT algorithm, and the PBFT algorithm may allow a malicious server or an unresponsive server to exist in the plurality of second servers, for example, when there are 3f +1 second servers in the blockchain network, there are f unresponsive servers or malicious servers. In the embodiment of the present invention, the unresponsive server refers to a server that does not respond to the result of verifying the rate contract among the plurality of second servers.
It should be noted that, the rate contracts are stored in the target block chain through the plurality of second servers, so that the communication process of the terminal is charged subsequently based on the rate contracts, and the accuracy of the subsequent communication charging is ensured. And the plurality of second servers can update the rate indication information for the terminal in real time based on the dynamically updated base station rate, so that the accuracy and the timeliness of the rate indication information are further ensured. In addition, the process of matching the base station with the lowest rate for the terminal is realized through interaction between the second server and the terminal, the participation of the first server is not needed in the process, and the signaling overhead of a core network is reduced.
Moreover, the witness servers selected by the consensus algorithm realize the functions of the second servers, the damage of malicious servers or invalid servers to the block chain network can be effectively eliminated, the influence on the block chain network is reduced, and the reliability of the communication system is improved.
(5-2) the terminal, configured to establish a communication connection with a target base station with a lowest tariff among the plurality of base stations based on the tariff indication information.
The terminal is further configured to select a target base station with the lowest tariff from the plurality of base stations according to the tariff levels of the plurality of base stations indicated by the tariff indication information.
It should be noted that, through the rate indication information, the terminal selects the target base station with the lowest rate to establish the communication connection, thereby greatly reducing the communication cost of the terminal. And the plurality of second servers further screen out the base stations meeting the service conditions for the terminal based on the angle of the service quality, so that the communication requirement of the terminal is met to the maximum extent on the premise of saving the communication cost of the terminal.
(5-3) the target base station for providing a communication service.
It should be noted that, in the communication system, each of the at least one base station is configured to provide a communication service.
In order to more clearly describe the process of allocating a base station to a terminal by the second server, this embodiment takes any one of the second servers as an example, and describes the process of allocating a base station to a terminal by the second server, fig. 7 is a flowchart of a method for allocating a base station to a terminal by the second server, and as shown in fig. 7, the method includes the following steps:
701. when receiving a first entrusting contract of the terminal, the second server acquires the rates of the base stations based on the base station identifications of the base stations in the first entrusting contract and returns rate indication information to the terminal.
In this step, the second server obtains a plurality of second delegation contracts from the target block chain according to the base station identifiers of the plurality of base stations in the first delegation contract, and obtains the rates of the plurality of base stations from the plurality of second delegation contracts.
In a possible implementation manner, the plurality of second servers may further obtain the service qualities of the plurality of base stations, and delete, from the plurality of base stations included in the first delegation contract, the base station whose service quality does not satisfy the service condition according to the service qualities of the plurality of base stations and the service condition of the terminal.
In a possible implementation, the second server may further send a rate contract to the terminal based on the high and low rates of the plurality of base stations, store the rate contract to the target block chain after the rate contract agreement is passed, and send the rate contract to the at least one first server. The second server may rank the rates of the plurality of base stations, and generate a rate contract according to the ranked rates of the plurality of base stations. Additionally, the second server may also add the quality of service of the plurality of base stations to the rate contract.
When a third commission contract is added to the target block chain, the second server can also determine a terminal establishing communication connection with the base station in the third commission contract according to the third commission contract, and send updated rate indication information to the terminal establishing communication connection with the base station. Of course, the plurality of second servers may also delete, from the plurality of base stations included in the first delegation contract, a base station whose service quality does not satisfy the service condition, according to the service quality of the base station in the third delegation contract and the service condition in the first delegation contract.
It should be noted that this step may also be implemented by a witness server among a plurality of servers. Accordingly, a rate contract is generated by the witness server and sent to a plurality of second servers, which validate the rate contract and, when validated, store the rate contract to the target blockchain. The process of storing the rate contract to the target block chain through the consensus process based on the witness server is the same as the process of step 306, and is not described herein again.
702. And the terminal establishes communication connection with a target base station with the lowest charge rate in the plurality of base stations based on the charge rate indication information.
It should be noted that, on the basis of the commission contract in the target block chain, the second server allocates the base station with the lowest charge rate to the terminal on the premise of ensuring the service quality of the base station. And the rate contract is stored in the target block chain in real time, so that the rate of the base station is public and transparent, communication charging can be carried out subsequently based on the rate contract after consensus, and the reliability of a required data source in the charging process is ensured.
In the communication process of the terminal and the target base station, the target server can acquire the communication data volume of the terminal in real time and agree the communication data volume at the plurality of second servers. In the process of identifying the communication data volume, the terminal, the plurality of second servers and the at least one first server are used for:
(6-1) the terminal is configured to send a data volume packet to the plurality of second servers, where the data volume packet carries a communication data volume of the terminal in a target communication process and a public key of the target server.
The terminal is further configured to perform a second signature on the data volume packet through a private key of the terminal. The terminal is further configured to periodically send a data volume message to the target server in a target communication process.
The data volume message includes an uplink communication data volume message and a downlink communication data volume message, the uplink communication data volume message carries the communication data volume of the terminal during uplink communication, and the downlink communication data volume message carries the communication data volume of the terminal during downlink communication.
The downlink communication refers to that a service server sends service data to a terminal through a first server in a core network, and the data flow direction during downlink communication is as follows: the method comprises the steps of starting from a service server, passing through a first server in a core network, passing through a target base station and sending to a terminal.
The uplink communication refers to that a terminal sends service data to a service server through a first server in a core network, and the data flow direction during the uplink communication is as follows: the method comprises the steps of starting from a terminal, passing through a target base station, and then sending to a service server through a first server in a core network.
And (6-2) the plurality of second servers are used for identifying the communication data volume of the terminal in the target communication process, and storing the communication data volume to the target block chain when the identification passes.
The target servers in the second services are further configured to verify the data volume messages according to the communication data volume of the terminal in the target communication process counted by the target servers, perform a first signature on the data volume messages when the data volume messages are verified to be passed, send the data volume messages with the first signature to the second servers, and store the data volume messages with the first signature to the target block chain when the second servers commonly identify the data volume messages with the first signature. The target server is further configured to determine that the public key is the same as the public key of the target server based on the public key in the data volume message.
In a possible implementation manner, the target server is further configured to obtain, from the at least one first server, a communication data volume of the terminal in the target communication process when the data volume packet is not verified or the data volume packet is not received.
In a possible implementation manner, the data volume message may also be a message signed by the terminal. Correspondingly, in the process that the plurality of second servers recognize the data volume message, the plurality of second servers are further configured to receive the data volume message of the target server, verify the data volume message of the target server through the public key of the terminal, and store the data volume message of the target server to the target block chain when the data volume message of the target server passes verification.
Certainly, in the process of performing consensus and merging on the rate contract, the functions of the plurality of second servers and the witness server are the same as those in the consensus process during the terminal registration, and are not described herein again.
It should be noted that, in the embodiment of the present invention, during the target communication between the terminal and the target base station, the plurality of second servers obtain the communication data volume of the terminal in real time, and store the communication data volume passing the verification to the target block chain in real time, so that the plurality of second servers transparently perform communication charging in the block chain network based on the communication data volume. And the plurality of second servers verify the data volume message based on the second signature of the terminal, so that even if the target server maliciously tampers with the information in the data volume message, the target server cannot acquire the private key of the terminal and cannot tamp with the digital signature of the terminal in the data volume message, the target server can be easily identified by the plurality of second servers even if the target server maliciously tampers with the information, and the correctness of the data volume message is further ensured.
And (6-3) the at least one first server is further used for verifying the data volume message in the target block chain, and when the data volume message is not verified, a punishment strategy is implemented on the target server.
Wherein the penalty policy includes: reducing a target value from a communication charge allocated for the target server or removing the target server from the blockchain network. The at least one first server is further configured to generate a data volume message according to the communication data volume of the terminal, sign the data volume message, and send the signed data volume message to the target server.
In a possible implementation manner, the at least one first server is further configured to count the communication data amount of the terminal in the target communication process.
In addition, in the above (6-1), the uplink communication data amount message and the downlink communication data amount message are transmitted from the terminal as an example. In fact, in the process of the multiple second servers agreeing on the communication data volume, the terminal may send an uplink communication data volume message, the first server may send a downlink communication data volume message, or the first server may send the uplink communication data volume message and the downlink communication data volume message. Correspondingly, in the process, the terminal, the plurality of second servers, and the at least one first server may further function to:
when the terminal sends the uplink communication data volume message and the first server sends the downlink communication data volume message:
(6-4) the terminal is configured to send an uplink communication data volume message to the plurality of second servers, where the uplink communication data volume message carries a communication data volume for the terminal to perform uplink communication in a target communication process and a public key of the target server.
(6-5) the at least one first server is further configured to send a downlink communication data volume message to the plurality of second servers, where the downlink communication data volume message carries a communication data volume of downlink communication of the terminal in a target communication process and a public key of the target server.
And (6-6) the plurality of second servers are further configured to perform consensus on the uplink communication data volume messages of the terminal, perform consensus on the downlink communication data volume messages of at least one first server, and store the uplink communication data volume messages and the downlink communication data volume messages to the target block chain when the uplink communication data volume messages and the downlink communication data volume messages pass through the consensus.
Or, for the uplink communication data volume message and the downlink communication data volume message sent by the first server:
(6-7) the at least one first server is further configured to send the data volume messages to the plurality of second servers.
The data volume message includes an uplink communication data volume message and a downlink communication data volume message. The data volume message carries the communication data volume of the terminal in the target communication process and the public key of the target server.
And (6-8) the plurality of second servers are also used for verifying the data volume message of at least one first server, and storing the uplink communication data volume message and the downlink communication data volume message to a target block chain when the verification is passed.
In order to describe the charging process of the second server more clearly, this embodiment takes the terminal sending the uplink communication data volume message and the downlink communication data volume message as an example, and describes the process of determining the communication data volume by the second server. Fig. 8 is a flowchart of a method for determining the communication data amount by the second server, as shown in fig. 8, the method includes the following steps:
801. and the terminal sends the data volume message to the plurality of second servers.
And the terminal generates the data volume message according to the communication data volume of the terminal in the target communication process and the public key of the target server. In the target communication process, the terminal can periodically send a data volume message to the target server. In addition, the terminal can also perform a second signature on the data volume message through a private key of the terminal.
802. And the target server verifies the data volume message according to the communication data volume of the terminal in the target communication process counted by the target server, performs first signature on the data volume message when the data volume message passes the verification, and sends the data volume message with the first signature to the plurality of second servers.
The terminal and the target server may synchronously count the communication data volume of the terminal, and when the terminal sends the data volume message to a plurality of second servers in the block chain network, the target server in the plurality of second servers determines that the data volume message is the data volume message when the target base station provides communication service based on a public key in the data volume message.
In a possible implementation manner, the at least one first server may also count the communication data amount of the terminal in the target communication process. And when the target server does not pass the verification of the data volume message or does not receive the data volume message, the target server acquires the communication data volume of the terminal in the target communication process from the at least one first server.
When the terminal periodically sends the data volume message, the sending is suddenly interrupted, so that the target server does not receive the data volume message, or when the target server does not verify the data volume message, the target server may obtain the communication data volume of the terminal from the first server. The first server may generate a data volume message according to the communication data volume of the terminal, sign the data volume, and send the signed data volume message to the target server. And the target server signs the data volume message for the second time, sends the data volume message subjected to the secondary signature to a plurality of second servers, and stores the data volume message subjected to the secondary signature to a target block chain after the plurality of second servers verify the data volume message subjected to the secondary signature.
803. And the plurality of second servers identify the data volume messages sent by the target server.
The plurality of second servers may verify the data volume message through the public key of the target server. In a possible implementation manner, when the data volume packet carries the second signature of the terminal, the plurality of second servers may further verify the data volume packet according to the public key of the terminal, determine whether the data volume packet is maliciously tampered, and store the data volume packet in the target block chain when it is verified that the data volume packet is not maliciously tampered.
In fact, this step is one implementation manner of the plurality of second servers verifying the communication data amount of the terminal in the target communication process, but of course, the plurality of second servers may also be implemented based on other manners, for example, the plurality of second servers may also directly obtain the communication data amount of the terminal from the first server, and verify the communication data amount sent by the terminal based on the communication data amount in the first server.
804. When the consensus passes, the plurality of second servers store the communication data amount to the target block chain.
It should be noted that, in step 802-804, the target server may also send the data volume packet with the first signature to the witness server, the witness server verifies the data volume packet, when the data volume packet passes the verification, a block is generated according to the data volume packet, and the block is sent to a plurality of second servers in the block chain network except the local server, where the plurality of second servers identify the block, and when the block passes the common identification, the block is stored in the target block chain.
In the process of identifying the communication data amount of the terminal, the plurality of second servers may implement the identifying process based on the witness server. The process is similar to the process of step 306, and is not described herein again.
It should be noted that the at least one first server may also perform verification on the data volume packet in the target block chain, and implement a penalty policy on the target server when the data volume packet fails to be verified.
It should be noted that, in the process of performing target communication between the terminal and the target base station, the plurality of second servers perform consensus on the communication data volume, and store the identified communication data volume on the target block chain, so as to ensure the subsequent charging to be transparent. And the plurality of second servers verify the data volume message based on the second signature of the terminal, so that any second server cannot privately tamper with the data volume message, and even if the second server is maliciously tampered, the second server can be easily identified in the process of consensus, and the correctness of the data volume message is further ensured.
Finally, the plurality of second servers charge the communication process of the terminal based on the communication data volume and the charge rate on the target block chain, and in the charging process, the plurality of second servers and the at least one first server have the following functions:
(7-1) the plurality of second servers are further configured to, when the communication data amount of the terminal passes the consensus, determine communication charging data of the terminal according to the communication data amount and the charge rate of the target base station stored on the target block chain, perform the consensus on the communication charging data, store the communication charging data to the target block chain when the consensus passes, and send the communication charging data to the at least one first server.
The target communication procedure refers to a procedure in which the terminal performs communication based on a communication service provided by the target base station.
It should be noted that, in the action in the above (7-1) of the plurality of servers, part of the actions may also be realized based on the witness server among the plurality of second servers. The witness server is further configured to, when the communication data volume of the terminal passes verification, determine communication charging data of the terminal according to the communication data volume and the rate of the target base station stored in the target block chain, generate a block according to the communication charging data, and send the block to a plurality of second servers in the block chain network except the local server. And the second servers in the block chain network are also used for carrying out consensus on the blocks, and storing the blocks to the target block chain when the consensus passes.
In the process of identifying the communication charging data together, the functions of the plurality of second servers and the witness server are the same as those in the process of identifying together when the terminal registers, and are not described herein again.
(7-2) the at least one first server, configured to allocate communication charging for the target server corresponding to the target base station and the at least one first server according to the communication charging data.
The at least one first server is further configured to classify a first value for the target server according to the allocation rule and the communication charging data, and allocate a second value for the at least one first server. The allocation rule may be negotiated in advance by the first server and the second server.
In a possible implementation manner, the at least one first server is further configured to obtain a charging rate of the target base station, determine communication billing data of the terminal according to the charging rate of the target base station and the communication data amount of the terminal counted by the at least one first server, and verify whether the communication billing data sent by the plurality of second servers is correct based on the communication billing data determined by the at least one first server.
To describe the charging process more clearly, the flow of the charging process is described below, and fig. 9 is a flow chart of a method of the charging process, as shown in fig. 9, the method includes the following steps:
901. and when the communication data volume of the terminal passes the verification, the plurality of second servers determine the communication charging data of the terminal according to the communication data volume and the charge rate of the target base station stored on the target block chain.
This step may be performed by a plurality of second servers, or may be performed by witness servers among the plurality of second servers. Taking a witness server as an example, the witness server determines the communication data volume of the terminal according to the data volume message in the target block chain, and determines the communication charging data of the terminal in the target communication process according to the communication data volume and the rate of the target base station acquired on the target block chain. Wherein the witness server may obtain the rate of the target base station from the second commission contract, and in a possible implementation, the witness server may further obtain the rate of the target base station from the rate contract.
902. And the plurality of second servers verify the communication charging data, store the communication charging data to the target block chain when the communication charging data passes the verification, and send the communication charging data to the at least one first server.
In this step, the witness server generates a block according to the communication charging data, and sends the block to a plurality of second servers in the block chain network except the local server. Correspondingly, the plurality of second servers in the block chain network except the server are also used for verifying the block, and when the block passes the verification, the block is stored in the target block chain.
903. And the at least one first server distributes the communication charging for the target server corresponding to the target base station and the at least one first server according to the communication charging data.
The at least one first server may perform the allocation of the communication charges based on the allocation rule.
In a possible implementation manner, the at least one first server may further obtain a charge rate of the target base station, determine communication billing data of the terminal according to the charge rate of the target base station and the communication data amount of the terminal counted by the at least one first server, and verify whether the communication billing data sent by the plurality of second servers is correct based on the communication billing data determined by the at least one first server. The first server may also apply a penalty policy to the target server when the first server verifies that the communication billing data sent by the plurality of second servers is incorrect.
It should be noted that, in the communication charging process, the plurality of second terminals perform communication charging, perform consensus on the communication charging data, store the communication charging data subjected to consensus to the target block chain, and send the communication charging data to the first server, thereby further ensuring the reliability and security of the finally obtained communication charging data. And the first server and the second server both store the communication charging data, and the first server can also supervise the communication charging data in the target block chain based on the communication data volume counted by the first server, so that the safety of the communication charging data is further ensured.
It should be noted that, in the embodiment of the present invention, in seven processes of terminal registration, server registration, terminal initiation of a delegation contract, a second server allocating a base station to a terminal, a second server determining a communication data volume, and charging for terminal communication, a plurality of second servers in a block chain network store at least seven groups of data, such as a public key of a terminal, a public key of a server to be registered, a first delegation contract, a second delegation contract, a rate contract, a data volume message, and communication charging data, into a target block chain, before the plurality of second servers store the seven groups of data of the terminal, the seven groups of information need to be identified together first, and when the seven groups of information pass through the identification, the seven groups of information are stored into the target block chain, so that the identification is achieved in the block chain network.
The consensus process may be implemented based on a witness server in the plurality of second servers, that is, the witness server generates a block based on information to be linked, and sends the block to a server other than the server in the plurality of second servers. And the second servers perform consensus on the block, and store the block into a target block chain when the consensus is passed. Of course, the witness server also stores the block in the target block chain. And when the seven groups of information are stored in the target block chain, the information is signed by the public key and verified by the private key. When a predetermined number of second servers agree, the entering process is performed. In addition, in the process of identifying the communication data volume, the terminal and the target server carry out double signature on the communication data volume, so that the accuracy and the reliability of information are further ensured.
To more clearly describe the overall procedure of communication access and communication charging based on the communication system, the overall procedure is described by taking the general flow shown in fig. 10 as an example, as shown in fig. 10, a second server registers in a core network to be a server in a blockchain network, when a terminal enters an area served by a base station corresponding to a certain second server, the second server matches a target base station for the terminal, and a plurality of second servers store a rate contract into the target blockchain, thereby achieving a rate contract consensus in the blockchain network. The terminal establishes a communication connection with the target base station. The second server can also obtain the communication data volume of the terminal, verify the communication data volume through a plurality of second servers, and store the communication data volume to the target block chain after the verification is passed, so that the communication data volume consensus is achieved in the block chain network. The second server may perform communication charging for the communication process of the terminal based on the verified communication data volume and the rate on the target blockchain, verify the communication charging data, and store the communication charging data to the target blockchain after the verification is passed, thereby achieving communication charging data consensus in the blockchain network. In the process of communication between the terminal and the target base station, the second server may periodically obtain the communication data volume of the terminal in the period, and perform charging. In addition, when the location of the terminal changes or the signal strength, the service quality and the like of the target base station change, the second server may re-assign the base station to the terminal and perform the process of achieving the rate contract consensus again.
As shown in fig. 11, in the process of achieving the rate contract consensus in the overall flow, when the terminal needs to establish a communication connection with the base station, or needs to switch the base station to perform a connection in the communication process, the terminal sends a first delegation contract to the second server, so as to initiate a delegation contract in the block chain network; similarly, when the second server needs to store the rate of the corresponding base station to the target block chain, or the service quality of the corresponding base station changes and the stored rate needs to be adjusted, the second server also initiates a second delegation contract in the block chain network, and after the plurality of second servers verify the first delegation contract and the second delegation contract, the plurality of second servers store the first delegation contract and the second delegation contract to the target block chain. Then, in the target block chain, the witness server elected based on the consensus mechanism searches the rates of a plurality of candidate base stations for the terminal through the first entrust contract and the second entrust contract, allocates the base stations for the terminal based on the rates, and stores the rate contracts in the matching process into the target block chain, wherein the rate contracts can include the rates of the plurality of base stations which are ranked based on the rates. Further, the second server sends the rate contract to the terminal and the first server in the core network, the terminal selects the base station with the lowest rate to establish communication connection based on the rate contract, and the second server can also perform subsequent communication charging based on the rate contract.
As for the process of achieving the common identification of the communication data amount in the above general flow, as shown in fig. 12, the terminal may periodically send a communication data amount packet to the second servers, where the communication data amount packet includes an uplink communication data amount packet and a downlink communication data amount packet, the plurality of second servers verify the communication data amount packet, and after the verification is passed, store the communication data amount packet to the target block chain. When the second server fails to verify the communication data volume message, or the terminal interrupts sending the communication data volume message, the second server may further obtain the communication data volume message from the first server of the core network, and store the communication data volume message in the target block chain after the verification is passed, so as to achieve consensus of the communication data volume in the block chain network.
In the embodiment of the invention, the communication charging is carried out on the communication process of the terminal by adopting the identified data communication volume and the rate of the base station stored in the target block chain, so that accurate communication charging data is finally obtained. By identifying the calculated communication charging data, the reliability of the communication charging data is ensured, and the whole charging process is ensured to be open and transparent. And the communication charging data is sent to the first server, and the first server distributes the communication charging for the target server and the at least one first server, so that merchants except the operator can earn the profit, and the enthusiasm of the merchants except the operator for building and maintaining the base station is improved.
Fig. 13 is a signaling interaction diagram of a communication method according to an embodiment of the present invention. Referring to fig. 13, the method is applied in a communication system, where the communication system includes at least one first server, at least one base station, and a plurality of second servers, where the at least one first server is a server in a core network of the communication system, the plurality of second servers are servers outside the core network, each second server corresponds to at least one base station, the plurality of second servers form a blockchain network, and a target blockchain is configured on the plurality of second servers, where the target blockchain stores information that is commonly identified by the plurality of second servers, where the information at least includes a charging rate of the plurality of base stations;
1301. each of the at least one base station providing communication services;
1302. the second servers carry out consensus on the communication data volume of the terminal in the target communication process, and when the consensus passes, the communication charging data of the terminal is determined according to the communication data volume and the charge rate of the target base station stored in the target block chain;
1303. the second servers perform consensus on the communication charging data, when the consensus is passed, the communication charging data is stored in the target block chain, and the communication charging data is sent to the first server, wherein the target communication process refers to a process that the terminal performs communication based on the communication service provided by the target base station;
1304. and the at least one first server distributes the communication charging for the target server corresponding to the target base station and the at least one first server according to the communication charging data.
Optionally, the method further includes:
when each second server in the plurality of second servers receives a first registration request of the terminal, forwarding the public key of the terminal to the at least one first server, wherein the first registration request carries the public key of the terminal;
the at least one first server verifies the terminal according to the public key of the terminal and returns a verification result, wherein the verification result is used for indicating that the terminal passes or does not pass the verification;
and when the verification result indicates that the terminal passes the verification, the plurality of second servers store the public key of the terminal into the target block chain and send a registration success notice to the terminal.
Optionally, the method further includes:
any one first server in the at least one first server receives a second registration request of a server to be registered, and verifies the server to be registered according to a public key of the server to be registered in the second registration request;
and when the server to be registered passes the verification, the any first server sends the public key of the server to be registered to the plurality of second servers, and sends a registration success notice to the server to be registered, wherein the second registration request is used for requesting to register as the second server in the block chain network.
Optionally, the method further includes:
when receiving a first entrusting contract of the terminal, the plurality of second servers obtain the rates of the plurality of base stations based on the base station identifications of the plurality of base stations in the first entrusting contract and return rate indication information to the terminal, wherein the first entrusting contract at least comprises the base station identifications of the plurality of base stations, and the rate indication information is used for indicating the levels of the rates of the plurality of base stations;
and the terminal establishes communication connection with a target base station with the lowest charge rate in the plurality of base stations based on the charge rate indication information.
Optionally, the method further includes:
when the terminal reaches the contract initiating condition, the terminal sends the first entrusted contract to a second server;
wherein the contract initiation condition comprises: and when the terminal is successfully registered, or the number of base stations with the signal strength reaching the target signal strength in the alternative base stations of the terminal does not exceed a preset threshold value.
Optionally, the target block chain further stores service qualities of a plurality of base stations, and the first delegation contract further includes a service condition of the terminal, and the method further includes:
and the second servers acquire the service quality of the base stations, and delete the base stations of which the service quality does not meet the service condition from the base stations included in the first delegation contract according to the service quality of the base stations and the service condition of the terminal.
Optionally, the method further includes:
the at least one first server acquires the charge rate of the target base station, and determines the communication charging data of the terminal according to the charge rate of the target base station and the communication data volume of the terminal counted by the at least one first server;
the at least one first server verifies whether the communication billing data sent by the plurality of second servers is correct based on the communication billing data determined by the at least one first server.
Optionally, the method further includes:
each second server in the plurality of second servers sends a second entrusting contract to a plurality of second servers except the server in the block chain network based on the rate of at least one base station corresponding to the second server, wherein the second entrusting contract carries the rate of at least one base station corresponding to the second server;
the plurality of second servers perform consensus on the second delegation contract, and when the consensus is passed, the second delegation contract is stored to the target block chain.
Optionally, the second delegation contract further includes a quality of service of the base station, and the method further includes:
and each second server acquires the service quality of at least one base station corresponding to each server and adds the service quality of at least one base station to the second delegation contract.
Optionally, the method further includes:
the method comprises the steps that each second server monitors the service quality of a base station corresponding to each second server in real time, when the service quality of the base station corresponding to each second server is monitored to be changed, the rate of the base station is adjusted according to a target adjustment strategy and the current service quality of the base station corresponding to each second server, and third entrusting contracts are sent to a plurality of second servers except the server in the block chain network based on the adjusted rate and carry the adjusted rate;
when the consensus passes for the third delegation contract, the plurality of second servers store the third delegation contract to the target blockchain.
Optionally, the method further includes:
the terminal sends a data volume message to the plurality of second servers, wherein the data volume message carries the communication data volume of the terminal in the target communication process and the public key of the target server;
the target server verifies the data volume message according to the communication data volume of the terminal in the target communication process counted by the target server, when the data volume message passes the verification, a first signature is carried out on the data volume message, the data volume message with the first signature is sent to the plurality of second servers, and when the data volume message with the first signature passes the common identification of the plurality of second servers, the data volume message with the first signature is stored in the target block chain.
Optionally, the method further includes:
the at least one first server counts the communication data volume of the terminal in the target communication process;
and when the data volume message is not verified or the data volume message is not received, the target server acquires the communication data volume of the terminal in the target communication process from the at least one first server.
Optionally, the method further includes:
and the terminal carries out second signature on the data volume message through a private key of the terminal.
Optionally, the method further includes:
and the plurality of second servers receive the data volume messages of the target server, verify the data volume messages of the target server through the public key of the terminal, and add the data volume messages of the target server to the target block chain when the data volume messages of the target server are identified to pass.
Optionally, the method further includes:
and the at least one first server verifies the data volume message in the target block chain, and when the data volume message is not verified, a punishment strategy is implemented on the target server.
Optionally, the method further includes:
the penalty strategy comprises: reducing a target value from a communication charge allocated for the target server or removing the target server from the blockchain network.
In the embodiment of the invention, the communication charging is carried out on the communication process of the terminal by adopting the identified data communication volume and the rate of the base station stored in the target block chain, so that accurate communication charging data is finally obtained. By identifying the calculated communication charging data, the reliability of the communication charging data is ensured, and the whole charging process is ensured to be open and transparent. And the communication charging data is sent to the first server, and the first server distributes the communication charging for the target server and the at least one first server, so that merchants except the operator can earn the profit, and the enthusiasm of the merchants except the operator for building and maintaining the base station is improved.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
It should be noted that: in the communication system provided by the above embodiment, only the division of the above functional modules is taken as an example for illustration, and in practical applications, the above functions may be distributed by different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions. In addition, the communication system and the communication method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
Fig. 14 is a schematic structural diagram of a server according to an embodiment of the present invention, where the server 1400 may generate a relatively large difference due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 1401 and one or more memories 1402, where the memory 1402 stores at least one instruction, and the at least one instruction is loaded and executed by the processor 1401 to implement the communication method provided by each method embodiment. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the server may also include other components for implementing the functions of the device, which are not described herein again.
In an exemplary embodiment, a computer-readable storage medium, such as a memory, including instructions executable by a processor in a terminal to perform the communication method in the above-described embodiments is also provided. For example, the computer-readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (15)

1. The communication method is applied to a communication system, wherein the communication system comprises at least one terminal, a plurality of second servers and at least one base station, each second server corresponds to at least one base station, and the at least one base station is used for providing communication service for the at least one terminal;
for any terminal, the terminal sends a first entrusting contract to any second server, wherein the first entrusting contract at least comprises base station identifications of a plurality of base stations, and the base stations are base stations for which the terminal receives signals;
the second server receives the first entrusting contract, and sends a rate contract to the terminal based on the base station identifications of the base stations in the first entrusting contract, wherein the rate contract is used for representing the rate of the base stations after the ordering;
and the terminal establishes communication connection with a target base station with the lowest rate in the plurality of base stations according to the rate contract.
2. The method of claim 1, wherein the terminal sending a first delegation contract to any second server, comprising:
the terminal monitors received signals of a plurality of base stations in real time;
the terminal generates a first delegation contract based on the base station identifications of the plurality of base stations;
and the terminal carries out digital signature on the first entrusting contract according to a private key and sends the digitally signed first entrusting contract to any server in the plurality of second servers.
3. The method of claim 2, wherein the terminal monitors the received signals of the plurality of base stations in real time, and comprises:
the terminal detects the signal intensity of the base stations in real time;
and the terminal deletes the base station with the signal strength lower than a target signal strength from the plurality of base stations based on the signal strengths of the plurality of base stations, wherein the target signal strength is the lowest signal strength meeting the communication requirement of the terminal.
4. The method of claim 3, wherein before the terminal sends the first delegation contract to any of the second servers, the method further comprises:
the terminal determines whether contract initiating conditions are met, wherein the contract initiating conditions comprise at least one of successful terminal registration or the number of base stations, meeting the signal strength not lower than the target signal strength, in a candidate base station list of the terminal does not exceed a preset threshold;
in response to the terminal satisfying the contract initiation condition, the terminal performs the step of sending the first delegation contract to any second server.
5. The method of claim 2, wherein after the terminal generates the first delegation contract based on base station identities of the plurality of base stations, the method further comprises:
the terminal acquires a service condition, wherein the service condition is used for indicating the target service quality of a base station required by the terminal;
the terminal adds the service condition to the first delegation contract.
6. The method of claim 1, wherein prior to the second server receiving the first delegation contract, the method further comprises:
the second server detects whether a newly added terminal exists in the service area of the corresponding at least one base station in real time;
in response to detecting a newly added terminal, sending a notification signaling to the newly added terminal, where the notification signaling is used to instruct the newly added terminal to send a first registration request to the second server, where the first registration request includes a public key of the newly added terminal;
and responding to the verification that the newly added terminal passes, and sending a registration success notice to the newly added terminal.
7. The method of claim 1, wherein after the second server receives the first delegation contract, the method further comprises:
the second server broadcasting the first delegation contract to the plurality of second servers in a blockchain network;
the second servers carry out consensus on the first entrusting contracts, the first entrusting contracts passing the consensus are stored in a target block chain, and information passing the consensus of the second servers is stored in the target block chain.
8. The method of claim 1, wherein the second server receives the first delegation contract, and wherein the method further comprises, prior to sending a rate contract to the terminal based on base station identifications of a plurality of base stations in the first delegation contract:
and the second server sends a second entrusting contract to a plurality of second servers except the second server in the block chain network based on the rate of the corresponding at least one base station, wherein the second entrusting contract carries the rate of the corresponding at least one base station of the second server.
9. The method of claim 8, wherein after the second server sends a second delegation contract to a plurality of second servers in the blockchain network other than the second server based on the rating of the corresponding at least one base station, the method further comprises:
the second server monitors the service quality of at least one corresponding base station in real time, and the service quality is characterized by the utilization rate of the channel resources of the base station;
when the service quality of any base station is monitored to be changed, the second server adjusts the rate of the base station according to an objective adjustment strategy and the current service quality of the base station, wherein the objective adjustment strategy is used for expressing the corresponding relation between a plurality of levels of channel resource utilization rate and a plurality of rates, the channel resource utilization rate of different levels is different in height, and each level corresponds to one rate;
and the second server sends a third entrusting contract to a plurality of second servers in the block chain network except the second server based on the adjusted rate, wherein the third entrusting contract carries the adjusted rate.
10. The method of claim 1, wherein the communication system further comprises at least one first server;
the process of registering the server to be registered as the second server is as follows:
the server to be registered sends a second registration request to any first server, wherein the second registration request is used for requesting to register as a second server in the block chain network;
the first server receives the second registration request, and verifies the server to be registered according to the public key of the server to be registered in the second registration request;
in response to the server to be registered passing the verification, the first server sends the public keys of the server to be registered to a plurality of second servers in the blockchain network;
and the first server sends a registration success notice to the server to be registered.
11. The method of claim 10, wherein the at least one first server stores therein a public key of a server qualified to join the blockchain network and a base station identifier of a base station corresponding to the server qualified to join the blockchain network;
the first server receives the second registration request, and verifies the server to be registered according to the public key of the server to be registered in the second registration request, including:
the first server receives the second registration request and acquires a public key of the server to be registered in the second registration request;
the first server searches the public key of the server to be registered from the corresponding relation between the public key and the base station identifier;
and responding to the found public key of the server to be registered, and allowing the first server to pass through the server to be registered.
12. The method of claim 10, wherein the at least one first server stores therein a public key of a server qualified to join the blockchain network and a base station identifier of a base station corresponding to the server qualified to join the blockchain network;
the first server receives the second registration request, and verifies the server to be registered according to the public key of the server to be registered in the second registration request, including:
the first server receives the second registration request and acquires a public key of the server to be registered in the second registration request;
the first server acquires a base station corresponding to the server to be registered from the corresponding relation between the public key and the base station identification according to the public key of the server to be registered;
the first server verifies the base station corresponding to the server to be registered;
and responding to the verification of the base station corresponding to the server to be registered, the first server determines that the server to be registered has the qualification of entering the block chain network, and the server to be registered passes the verification.
13. The method of claim 10, wherein after the terminal establishes a communication connection with a target base station with a lowest charging rate among the plurality of base stations according to the charging rate contract, the method further comprises:
for any first server, the first server obtains the charge rate of the target base station;
the first server determines communication charging data of the terminal according to the charge rate of the target base station and the communication data volume of the terminal;
the first server verifies whether the communication charging data sent by the plurality of second servers is correct or not based on the communication charging data.
14. A communication system comprises at least one terminal, a plurality of second servers and at least one base station, wherein each second server corresponds to at least one base station which is used for providing communication service for the at least one terminal;
any terminal in the at least one terminal is configured to send a first delegation contract to any second server in the plurality of second servers, where the first delegation contract at least includes base station identifiers of a plurality of base stations, and the plurality of base stations are base stations that receive signals from the terminal;
any one of the second servers is used for receiving the first entrusting contract and sending a rate contract to the terminal based on the base station identifications of the base stations in the first entrusting contract, wherein the rate contract is used for representing the rate of the sequenced base stations;
and the terminal is also used for establishing communication connection with a target base station with the lowest rate in the plurality of base stations according to the rate contract.
15. A computer-readable storage medium having stored therein at least one instruction which is loaded and executed by a processor to perform operations performed by the communication method of any one of claims 1 to 13.
CN202010377433.4A 2018-09-14 2018-09-14 Communication system, method and storage medium Active CN111555892B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010377433.4A CN111555892B (en) 2018-09-14 2018-09-14 Communication system, method and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010377433.4A CN111555892B (en) 2018-09-14 2018-09-14 Communication system, method and storage medium
CN201811072755.7A CN108989061B (en) 2018-09-14 2018-09-14 Communication system, method, server and storage medium

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201811072755.7A Division CN108989061B (en) 2018-09-14 2018-09-14 Communication system, method, server and storage medium

Publications (2)

Publication Number Publication Date
CN111555892A true CN111555892A (en) 2020-08-18
CN111555892B CN111555892B (en) 2021-02-26

Family

ID=64546195

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202010377433.4A Active CN111555892B (en) 2018-09-14 2018-09-14 Communication system, method and storage medium
CN201811072755.7A Active CN108989061B (en) 2018-09-14 2018-09-14 Communication system, method, server and storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201811072755.7A Active CN108989061B (en) 2018-09-14 2018-09-14 Communication system, method, server and storage medium

Country Status (3)

Country Link
JP (1) JP6999051B2 (en)
CN (2) CN111555892B (en)
WO (1) WO2020052423A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111555892B (en) * 2018-09-14 2021-02-26 腾讯科技(深圳)有限公司 Communication system, method and storage medium
CN111355754B (en) * 2018-12-21 2023-06-27 西安佰才邦网络技术有限公司 Block chain-based business purchasing method and equipment
CN110336816B (en) * 2019-07-05 2021-08-17 深圳市九链科技有限公司 Method for using communication certificate as block chain consensus
CN110443075B (en) * 2019-08-05 2021-05-25 中国工商银行股份有限公司 Method and device for verifying and deploying block chain intelligent contracts
CN110719575B (en) * 2019-10-18 2021-08-17 中国联合网络通信集团有限公司 Radio frequency spectrum allocation method and system based on block chain
CN111475287B (en) * 2020-03-24 2023-05-02 浙江大学 Multi-robot cooperation multi-target point load balancing searching method and system based on blockchain
CN114040414A (en) * 2021-10-09 2022-02-11 中国联合网络通信集团有限公司 Resource allocation method, device and computer readable storage medium
CN114338668B (en) * 2021-12-07 2023-10-31 中国联合网络通信集团有限公司 Data verification method, system, storage medium and equipment based on consensus mechanism

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145918A (en) * 2005-08-23 2008-03-19 华为技术有限公司 A billing method and system
CN106911483A (en) * 2017-03-13 2017-06-30 广东网金控股股份有限公司 A kind of charging method based on block chain and cloud computing platform
CN107027111A (en) * 2017-05-18 2017-08-08 电子科技大学 A kind of roaming telephone expenses record and settlement method based on block chain
CN107294738A (en) * 2017-06-12 2017-10-24 中国联合网络通信集团有限公司 The treating method and apparatus of communication charge
CN107994991A (en) * 2017-10-31 2018-05-04 深圳市轱辘车联数据技术有限公司 A kind of data processing method, data processing server and storage medium
US20180189755A1 (en) * 2016-12-29 2018-07-05 Red Hat, Inc. Providing blockchain-based subscription-as-a-service management

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6947724B2 (en) * 2002-01-04 2005-09-20 Telefonaktiebolaget Lm Ericsson (Publ) System and method of billing based on the reported traffic load in a telecommunications network
JP2003304351A (en) 2002-04-08 2003-10-24 Sharp Corp Mobile communication system
JP2004242176A (en) 2003-02-07 2004-08-26 Nec Corp Mobile communication system and its base station device installation method
EP1460802A1 (en) 2003-03-18 2004-09-22 Hewlett-Packard Development Company, L.P. Communication method and system
CN102695153B (en) 2012-05-29 2015-03-04 中国联合网络通信集团有限公司 Base station clustering architecture based billing processing method, billing processing device and billing processing system
EP3384473A1 (en) * 2015-12-03 2018-10-10 Innogy Innovation Gmbh Charging system for vehicles
JP2018020943A (en) 2016-08-05 2018-02-08 デンカ株式会社 Dusting slag, cement admixture using the same and manufacturing method therefor
JP6776092B2 (en) 2016-10-21 2020-10-28 三菱重工業株式会社 Steam turbine and temperature control method
CN107995003A (en) * 2016-10-26 2018-05-04 中国移动通信有限公司研究院 The charging and settlement method of international roaming communication, relevant apparatus and distributed system
CN108064440B (en) * 2017-05-25 2021-04-09 达闼机器人有限公司 FIDO authentication method, device and system based on block chain
CN108471601B (en) * 2018-06-21 2020-12-01 中国联合网络通信集团有限公司 Internetwork settlement method, device, equipment and storage medium
CN111555892B (en) * 2018-09-14 2021-02-26 腾讯科技(深圳)有限公司 Communication system, method and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145918A (en) * 2005-08-23 2008-03-19 华为技术有限公司 A billing method and system
US20180189755A1 (en) * 2016-12-29 2018-07-05 Red Hat, Inc. Providing blockchain-based subscription-as-a-service management
CN106911483A (en) * 2017-03-13 2017-06-30 广东网金控股股份有限公司 A kind of charging method based on block chain and cloud computing platform
CN107027111A (en) * 2017-05-18 2017-08-08 电子科技大学 A kind of roaming telephone expenses record and settlement method based on block chain
CN107294738A (en) * 2017-06-12 2017-10-24 中国联合网络通信集团有限公司 The treating method and apparatus of communication charge
CN107994991A (en) * 2017-10-31 2018-05-04 深圳市轱辘车联数据技术有限公司 A kind of data processing method, data processing server and storage medium

Also Published As

Publication number Publication date
CN108989061A (en) 2018-12-11
CN111555892B (en) 2021-02-26
JP2021520153A (en) 2021-08-12
CN108989061B (en) 2020-06-02
JP6999051B2 (en) 2022-02-10
WO2020052423A1 (en) 2020-03-19

Similar Documents

Publication Publication Date Title
CN111555892B (en) Communication system, method and storage medium
Praveen et al. Blockchain for 5G: A prelude to future telecommunication
EP3403180B1 (en) User equipment selection for mobile edge computing
CN113261244B (en) Network node combining MEC host and UPF selection
US10298580B2 (en) Admission of an individual session in a network
CN110602691B (en) Mobile communication method and device based on block chain network
CN110267327A (en) Business transmitting method and device
US9198222B2 (en) Telecommunication network
WO2016033979A1 (en) Processing method, device and system for user service provision
US20140378155A1 (en) Wireless communication system, and method for connecting rrc for controlling overloads in wireless communication system
CN108541031B (en) Service switching method, device and system
CN104135541A (en) Resource sharing method and system
CN103109502A (en) Method and apparatus of load balancing femtocell cluster access
CN113783741B (en) Method, device, server, gateway equipment and system for configuring gateway equipment
CN113473537B (en) Micro base station traffic sharing method, node, equipment and medium based on block chain
KR20210029624A (en) Apparatus and method for network automation in wireless communication system
Hassija et al. A blockchain based framework for secure data offloading in tactile Internet environment
Abdullah et al. Handover authentication latency reduction using mobile edge computing and mobility patterns
Chatzidakis et al. Location aware clustering and epidemic trust management in mobile ad hoc network
US10206241B2 (en) Session management
US20220053030A1 (en) Enhancements for secure updating in communication networks
KR101131841B1 (en) System and method for adaptive roaming threshold parameter setup
CN117202287B (en) Order distribution management method and device based on big data analysis
KR100569030B1 (en) System for selecting and confirming data service by package and the Method
CN117880824A (en) Edge application access method, device, equipment and storage medium

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