Relay service method and device

文档序号:142854 发布日期:2021-10-22 浏览:35次 中文

阅读说明:本技术 中继服务方法及装置 (Relay service method and device ) 是由 董慧 杨子文 侯赛男 田新雪 于 2021-06-25 设计创作,主要内容包括:本发明公开了一种中继服务方法及装置,属于通信技术领域。方案包括:接收中继需求节点发送的中继服务请求;与中继需求节点约定中继服务内容,中继服务内容包括中继资源的信息、服务费用的信息和资源使用节点的信息,中继资源为中继服务节点向资源使用节点提供的资源,服务费用为中继需求节点向中继服务节点支付的中继服务的费用,资源使用节点为中继需求节点指定的使用中继资源的节点;根据中继服务内容生成资源分配请求;将资源分配请求发送至资源分配节点,以供资源分配节点将中继服务节点的中继资源分配至资源使用节点;在触发预设终止条件的情况下,停止中继服务,并接收中继需求节点支付的服务费用,可以推广中继服务,还能提升资源利用率。(The invention discloses a relay service method and a relay service device, and belongs to the technical field of communication. The scheme comprises the following steps: receiving a relay service request sent by a relay demand node; appointing relay service content with a relay demand node, wherein the relay service content comprises information of relay resources, information of service cost and information of resource use nodes, the relay resources are resources provided by the relay service node to the resource use nodes, the service cost is the cost of the relay service paid by the relay demand node to the relay service node, and the resource use nodes are nodes which are appointed by the relay demand node and use the relay resources; generating a resource allocation request according to the relay service content; sending the resource allocation request to a resource allocation node for the resource allocation node to allocate the relay resource of the relay service node to the resource utilization node; under the condition that the preset termination condition is triggered, the relay service is stopped, the service cost paid by the relay demand node is received, the relay service can be popularized, and the resource utilization rate can be improved.)

1. A relay service method, comprising:

receiving a relay service request sent by a relay demand node;

appointing relay service content with the relay demand node, wherein the relay service content comprises information of relay resources, information of service cost and information of resource utilization nodes, the relay resources are resources provided by the relay service node to the resource utilization nodes, the service cost is the cost of the relay service paid by the relay demand node to the relay service node, and the resource utilization nodes are nodes which are appointed by the relay demand node and use the relay resources;

generating a resource allocation request according to the relay service content;

sending the resource allocation request to a resource allocation node, so that the resource allocation node allocates the relay resource of the relay service node to the resource utilization node;

and under the condition of triggering a preset termination condition, stopping the relay service and receiving the service cost paid by the relay demand node.

2. The relay service method according to claim 1, wherein before receiving the relay service request sent by the relay demand node, the method further comprises:

registering in a block chain network to obtain a service identifier;

generating a relay service message based on the service identification;

broadcasting the relay service message at the blockchain network for the relay demand node to send the relay service request to the relay service node if the relay service message is received.

3. The relay service method of claim 2, wherein the relay service message further includes one or more of a service period, a service level, and a service charging standard;

the relay service content further includes one or more of a contracted service period, a contracted service level, and a contracted service charging standard.

4. The relay service method according to claim 1, wherein the types of the relay demand nodes include an operator and a personal terminal;

under the condition that the type of the relay demand node is an operator, the resource utilization node is a home terminal node of the relay demand node; and under the condition that the type of the relay demand node is a personal terminal, the resource utilization node is the relay demand node.

5. The relay service method according to claim 4, wherein the relay demand node is a personal terminal;

after receiving the relay service request sent by the relay demand node and before agreeing the relay service content with the relay demand node, the method further includes:

acquiring balance information of the relay demand node;

judging whether the relay demand node has service charge payment capacity or not according to the balance information;

and under the condition that the relay demand node is determined to have the service charge payment capability, appointing the relay service content with the relay demand node.

6. The relay service method according to claim 4, wherein the resource allocation node is a home base station of the relay service node;

the sending the resource allocation request to a resource allocation node for the resource allocation node to allocate the relay resource of the relay service node to the resource usage node includes:

establishing a relay connection with the resource usage node;

under the condition that the type of the relay demand node is an operator, sending a resource allocation request to a home base station of the relay service node, so that the home base station of the relay service node allocates the relay resource to the resource utilization node based on relay connection between the relay service node and the resource utilization node;

and under the condition that the type of the relay demand node is a personal terminal, sending a resource allocation request to a home base station of the relay service node, so that the home base station of the relay service node allocates the relay resource to the resource utilization node based on the relay connection between the relay service node and the resource utilization node.

7. The relay service method according to claim 4, wherein after said appointing the relay service content with said relay demand node and before said generating the resource allocation request according to the relay service content, further comprising:

according to the relay service content, signing an intelligent contract with the relay demand node;

signing the intelligent contract, and broadcasting the signed intelligent contract in a block chain network;

receiving a validity verification result of the intelligent contract returned by a verification node in the block chain network, wherein the validity verification result of the intelligent contract is information generated by the verification node according to a signature verification result of the intelligent contract;

determining whether the intelligent contract is effective or not according to the effectiveness verification result of the intelligent contract;

and under the condition that the intelligent contract is determined to be effective, generating the resource allocation request according to the relay service content.

8. The relay service method according to claim 7, wherein after stopping the relay service and receiving the service cost paid by the relay demand node in case of triggering a preset termination condition, further comprising:

and writing the intelligent contract and the execution result of the intelligent contract into the block chain network.

9. The relay service method according to claim 1, wherein the preset termination condition includes completion of relay service, existence of a relay service early termination requirement by the relay service node, and existence of a relay service early termination requirement by the relay requirement node;

under the condition that a preset termination condition is triggered, the relay service is stopped, and the service cost paid by the relay demand node is received, wherein the method comprises the following steps:

under the condition that the preset termination condition is that the relay service is completed, disconnecting the relay connection with the resource using node;

receiving the service cost paid by the relay demand node according to the relay service content;

under the condition that the preset termination condition is that the relay service node has a requirement for terminating the relay service in advance, negotiating with the relay requirement node and obtaining a negotiation result;

determining whether to disconnect the relay connection with the resource using node according to the negotiation result;

under the condition that the relay connection with the resource using node is determined to be disconnected, receiving the service cost paid by the relay demand node according to the negotiation result;

under the condition that the preset termination condition is that the relay demand node has a relay service termination requirement in advance, disconnecting the relay connection with the resource use node;

and receiving the service cost paid by the relay demand node according to the actual relay service duration.

10. A relay service apparatus, comprising:

a first receiving module configured to receive a relay service request sent by a relay demand node;

an appointment module configured to appoint relay service content with the relay demand node, where the relay service content includes information of a first relay resource, information of a second resource service charge, and information of a preset resource usage node, the first relay resource is a relay resource provided by a current relay service node to the resource usage node, the second resource service charge is a charge of relay service paid by the relay demand node to the relay service node, and the resource usage node is a node designated by the relay demand node and using the first relay resource;

a generation module configured to generate a resource allocation request according to the relay service content;

a sending module configured to send the resource allocation request to a resource allocation node, so that the resource allocation node allocates the first relay resource of the current relay service node to the preset resource usage node;

a stopping module configured to stop the relay service in case of triggering a preset termination condition;

a second receiving module configured to receive the second resource service charge paid by the relay demand node in a feedback manner.

Technical Field

The invention relates to the technical field of communication, in particular to a relay service method and a relay service device.

Background

D2D (Device-to-Device) technology enables direct communication between terminals, thereby reducing the burden on the cellular system and increasing the capacity of the communication system. For example, after two terminals establish a D2D connection, the terminal providing the relay service becomes a small antenna that moves, so that the other terminal with a relatively weak signal can stably and reliably use the network service of the operator by the relay service terminal. In practical applications, part of the resources of the terminal may not be fully utilized, and in this case, the terminal may provide the part of the resources to another terminal through the relay service based on D2D. However, not only can the terminal occupy its own resources, but also extra power consumption and data leakage risk are caused when the terminal provides the relay service to the outside, and the willingness of the terminal to actively provide the relay service is not strong, so that the resources are idle or left, and resource waste is easily caused.

Disclosure of Invention

Therefore, the invention provides a relay service method and a relay service device, which are used for solving the problem of how to realize resource exchange between terminals through relay service so as to improve the resource utilization rate.

In order to achieve the above object, a first aspect of the present invention provides a relay service method, including:

receiving a relay service request sent by a relay demand node;

appointing relay service content with the relay demand node, wherein the relay service content comprises information of relay resources, information of service cost and information of resource utilization nodes, the relay resources are resources provided by the relay service node to the resource utilization nodes, the service cost is the cost of the relay service paid by the relay demand node to the relay service node, and the resource utilization nodes are nodes which are appointed by the relay demand node and use the relay resources;

generating a resource allocation request according to the relay service content;

sending the resource allocation request to a resource allocation node, so that the resource allocation node allocates the relay resource of the relay service node to the resource utilization node;

and under the condition of triggering a preset termination condition, stopping the relay service and receiving the service cost paid by the relay demand node.

Further, before receiving the relay service request sent by the relay demand node, the relay service method further includes:

registering in a block chain network to obtain a service identifier;

generating a relay service message based on the service identification;

broadcasting the relay service message at the blockchain network for the relay demand node to send the relay service request to the relay service node if the relay service message is received.

Further, the relay service message further includes one or more of a service period, a service level, and a service charging standard;

the relay service content further includes one or more of a contracted service period, a contracted service level, and a contracted service charging standard.

Further, the types of the relay demand nodes include an operator and a personal terminal;

under the condition that the type of the relay demand node is an operator, the resource utilization node is a home terminal node of the relay demand node; and under the condition that the type of the relay demand node is a personal terminal, the resource utilization node is the relay demand node.

Further, the relay demand node is a personal terminal;

after receiving the relay service request sent by the relay demand node and before agreeing with the relay service content with the relay demand node, the relay service method further includes:

acquiring balance information of the relay demand node;

judging whether the relay demand node has service charge payment capacity or not according to the balance information;

and under the condition that the relay demand node is determined to have the service charge payment capability, appointing the relay service content with the relay demand node.

Further, the resource allocation node is a home base station of the relay service node;

the sending the resource allocation request to a resource allocation node for the resource allocation node to allocate the relay resource of the relay service node to the resource usage node includes:

establishing a relay connection with the resource usage node;

under the condition that the type of the relay demand node is an operator, sending a resource allocation request to a home base station of the relay service node, so that the home base station of the relay service node allocates the relay resource to the resource utilization node based on relay connection between the relay service node and the resource utilization node;

and under the condition that the type of the relay demand node is a personal terminal, sending a resource allocation request to a home base station of the relay service node, so that the home base station of the relay service node allocates the relay resource to the resource utilization node based on the relay connection between the relay service node and the resource utilization node.

Further, after the appointing the relay service content with the relay demand node and before the generating the resource allocation request according to the relay service content, the relay service method further includes:

according to the relay service content, signing an intelligent contract with the relay demand node;

signing the intelligent contract, and broadcasting the signed intelligent contract in a block chain network;

receiving a validity verification result of the intelligent contract returned by a verification node in the block chain network, wherein the validity verification result of the intelligent contract is information generated by the verification node according to a signature verification result of the intelligent contract;

determining whether the intelligent contract is effective or not according to the effectiveness verification result of the intelligent contract;

and under the condition that the intelligent contract is determined to be effective, generating the resource allocation request according to the relay service content.

Further, in the case that a preset termination condition is triggered, after the relay service is stopped and the service charge paid by the relay demand node is received, the relay service method further includes:

and writing the intelligent contract and the execution result of the intelligent contract into the block chain network.

Further, the preset termination condition includes that the relay service is completed, the relay service node has a requirement for terminating the relay service in advance, and the relay demand node has a requirement for terminating the relay service in advance;

under the condition that a preset termination condition is triggered, the relay service is stopped, and the service cost paid by the relay demand node is received, wherein the method comprises the following steps:

under the condition that the preset termination condition is that the relay service is completed, disconnecting the relay connection with the resource using node;

receiving the service cost paid by the relay demand node according to the relay service content;

under the condition that the preset termination condition is that the relay service node has a requirement for terminating the relay service in advance, negotiating with the relay requirement node and obtaining a negotiation result;

determining whether to disconnect the relay connection with the resource using node according to the negotiation result;

under the condition that the relay connection with the resource using node is determined to be disconnected, receiving the service cost paid by the relay demand node according to the negotiation result;

under the condition that the preset termination condition is that the relay demand node has a relay service termination requirement in advance, disconnecting the relay connection with the resource use node;

and receiving the service cost paid by the relay demand node according to the actual relay service duration.

In order to achieve the above object, a second aspect of the present invention provides a relay service apparatus, comprising:

a first receiving module configured to receive a relay service request sent by a relay demand node;

an appointment module configured to appoint relay service content with the relay demand node, where the relay service content includes information of a first relay resource, information of a second resource service charge, and information of a preset resource usage node, the first relay resource is a relay resource provided by a current relay service node to the resource usage node, the second resource service charge is a charge of relay service paid by the relay demand node to the relay service node, and the resource usage node is a node designated by the relay demand node and using the first relay resource;

a generation module configured to generate a resource allocation request according to the relay service content;

a sending module configured to send the resource allocation request to a resource allocation node, so that the resource allocation node allocates the first relay resource of the current relay service node to the preset resource usage node;

a stopping module configured to stop the relay service in case of triggering a preset termination condition;

a second receiving module configured to receive the second resource service charge paid by the relay demand node in a feedback manner.

The invention has the following advantages:

the relay service method provided by the invention has the advantages that the relay service node and the relay demand node agree in advance on the relay service content, the relay service content comprises the information of relay resources, the information of service cost and the information of resource using nodes, the relay resources of the relay service node are distributed to the resource using nodes by the resource distributing nodes, when the termination condition is triggered, the relay service node stops providing the relay service for the resource using nodes and receives the service cost paid by the relay demand node, more terminals can be stimulated to provide idle or residual resources outwards in the form of the relay service by acquiring the service cost, the application and development of the relay service are promoted, and the resource utilization rate can be effectively improved.

Drawings

The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention.

Fig. 1 is a flowchart of a relay service method according to an embodiment of the present invention;

fig. 2 is a flowchart of a relay service method according to a second embodiment of the present invention;

fig. 3 is a flowchart of a relay service method according to a third embodiment of the present invention;

fig. 4 is a block diagram illustrating a relay service apparatus according to a fourth embodiment of the present invention;

fig. 5 is a schematic signaling interaction diagram of a relay service system according to a fifth embodiment of the present invention;

fig. 6 is a schematic signaling interaction diagram of a relay service system according to a sixth embodiment of the present invention.

Detailed Description

The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present invention, are given by way of illustration and explanation only, not limitation.

A first aspect of the present application provides a relay service method. Fig. 1 is a flowchart of a relay service method according to an embodiment of the present application. As shown in fig. 1, the method comprises the steps of:

step S101, receiving a relay service request sent by a relay demand node.

The relay demand node transmits a relay service request to the relay service node to use the relay resource of the relay service node in a case where the relay service needs to be used.

In the first embodiment, the relay service node periodically broadcasts the relay service message, and carries one or more of terminal identification, service period, service level, service charging standard and the like in the relay service message. There may be multiple relay service nodes broadcasting relay service messages during the same time period. For the relay demand node, it may listen to the relay service message broadcast by the discovery relay service node. When the relay demand node receives a plurality of relay service messages, the relay demand node selects a node which best meets the self demand as a relay service node according to the information carried in the relay service messages, and sends a relay service request to the relay service node.

It should be noted that, in some specific implementations, before broadcasting the relay service message, the relay service node further includes: registering in a block chain network to obtain a service identifier; generating a relay service message based on the service identifier (the relay service message may also carry the above-mentioned information of the terminal identifier, the service period, the service level, the service charging standard, etc.); the relay service message is broadcast over the blockchain network. In this case, the relay service node is equivalent to a service mode in which the relay service node can be discovered, and the relay demand node can send a relay service request to the relay service node as needed when receiving the relay service message. If the relay service node does not provide the relay service any more, the relay service node does not broadcast the relay service message, namely, the relay service node sets the relay service node to be in the service mode which is not discovered, and based on the service mode, the relay demand node does not send the relay service request to the relay service node.

In the second embodiment, the relay service node does not broadcast the message, but the relay demand node broadcasts the relay service request. After receiving the relay service request, if the relay service is determined to be provided, the relay service node feeds back a relay service message to the relay demand node, wherein the relay service message comprises one or more of terminal identification, service period, service level, service charging standard and the like. And if the relay service node can not provide the relay service, directly ignoring the relay service request or sending a feedback message of the service which can not be provided to the relay demand node. For the relay demand node, it may receive the relay service message fed back by multiple relay service nodes, that is, there are multiple relay service nodes that can provide the relay service. In this case, the relay demand node may select the most suitable relay service node from the plurality of relay service nodes according to the content of the relay service message and the requirement of the relay demand node, and further agree on the relay service content with the relay service node.

It should be noted that, in practical applications, in addition to the manner in which the relay demand node actively determines or selects the relay service node, the operator system or other systems having relay management authority may also designate the relay service node for the relay demand node.

Step S102, the relay service content is agreed with the relay demand node.

The relay service content comprises information of relay resources, information of service cost and information of resource using nodes, the relay resources are resources provided by the relay service nodes to the resource using nodes, the service cost is the cost of the relay service paid by the relay demand nodes to the relay service nodes, and the resource using nodes are nodes which are appointed by the relay demand nodes and use the relay resources. In some implementations, the relay resources include types of bandwidth resources and data traffic resources.

In some embodiments, the types of relay demand nodes include operators and personal terminals. Under the condition that the type of the relay demand node is an operator, the resource utilization node is a home terminal node of the relay demand node; and under the condition that the type of the relay demand node is the personal terminal, the resource utilization node is the relay demand node.

For example, the operator system determines the area where signal coverage needs to be enhanced according to the complaint information of the user and/or the detection result of the communication signal and/or the specific service requirement. When the home terminal node of the operator system enters the area, the operator system initiates a relay service request to a relay service node (generally, a relay service node closer to the home terminal node) that can provide a relay service for the home terminal node, and requests the relay service node to provide the relay service for its home terminal node.

It is understood that, in the case of establishing a relay connection based on D2D, if the home terminal node enters the area and does not turn on the D2D function, the operator system may prompt the home terminal node to turn on the D2D function to receive the relay service.

Step S103, generating a resource allocation request according to the relay service content.

The relay service contents include information of relay resources, information of service charges, and information of resource usage nodes. And the resource allocation request is generated based on the relay service content, so that the resource allocation node can allocate the relay resource of the relay service node to the specified resource utilization node according to the resource allocation request.

Step S104, the resource allocation request is sent to the resource allocation node, so that the resource allocation node allocates the relay resource of the relay service node to the resource utilization node.

And the resource allocation node is a home base station of the relay service node.

In some embodiments, the relay service node first establishes a relay connection with the resource usage node. Under the condition that the type of the relay demand node is an operator, sending a resource allocation request to a home base station of the relay service node, so that the home base station of the relay service node allocates relay resources to the resource utilization node based on relay connection between the relay service node and the resource utilization node; and under the condition that the type of the relay demand node is the personal terminal, sending a resource allocation request to a home base station of the relay service node, so that the home base station of the relay service node allocates the relay resource to the resource utilization node based on the relay connection between the relay service node and the resource utilization node.

And step S105, under the condition that a preset termination condition is triggered, stopping the relay service and receiving the service cost paid by the relay demand node.

The preset termination condition comprises three conditions of completing relay service, the relay service node having a requirement of terminating the relay service in advance and the relay demand node having a requirement of terminating the relay service in advance.

In some embodiments, in the case that the preset termination condition is that the relay service is completed, the relay service node disconnects the relay connection with the resource usage node, and receives the service cost paid by the relay demand node according to the relay service content.

In some embodiments, when the preset termination condition is that the relay service node has a requirement for terminating the relay service in advance, the relay service node negotiates with the relay requirement node and obtains a negotiation result; determining whether to disconnect the relay connection with the resource using node according to the negotiation result; and under the condition that the relay connection with the resource utilization node is determined to be disconnected, receiving the service cost paid by the relay demand node according to the negotiation result.

In some embodiments, when the preset termination condition is that the relay demand node has a demand for terminating the relay service in advance, the relay service node disconnects the relay connection with the resource usage node, and receives a service charge paid by the relay demand node according to the actual relay service duration.

It should be noted that if the type of the relay demand node is the operator, the payment of the service fee includes various forms, for example, the credit of the complimentary user, the charging card of the telephone fee, the free number of minutes of the call, the traffic packet, and the like. In addition, in order to simplify the payment operation, the operator may preset a payment period (for example, a period of "month"), and when the payment period is reached, the operator uniformly pays the service fee to the relay service node.

In the relay service method provided by this embodiment, a relay service node and a relay demand node agree in advance for relay service content, where the relay service content includes information of relay resources, information of service cost, and information of resource usage nodes, and a resource allocation node allocates relay resources of the relay service node to the resource usage nodes, and when a termination condition is triggered, the relay service node stops providing relay service for the resource usage nodes and receives service cost paid by the relay demand node.

Fig. 2 is a flowchart of a relay service method according to a second embodiment of the present application. As shown in fig. 2, the method comprises the steps of:

step S201, register in the blockchain network to obtain the service identifier.

The relay service node is registered in the block chain network in advance, so that on one hand, nodes (for example, false nodes) without relay service qualification can be screened, the safety of the relay service is improved, and on the other hand, the relay service node can be managed in a centralized manner through the block chain network, and the management efficiency is improved.

In some embodiments, the relay service node registers in the blockchain network, the relay service node needs to provide information such as corresponding identity certificate in the registration process, when the information such as the identity certificate passes the verification, the relay service node successfully registers, and the blockchain network system issues a corresponding service identifier and a public and private key for the relay service node. In some implementations, the relay service node may use the block chain address of the relay service node as the service identification.

Step S202, generating a relay service message based on the service identification.

In some embodiments, the relay service node generates the relay service message based on the service identification.

It can be understood that the relay service node may also carry information such as a terminal identifier, a service period, a service level, a service charging standard, and the like in the relay service message, so that the relay demand node determines whether to establish a relay connection with the current relay service node according to the information.

Step S203, the relay service message is broadcast in the blockchain network.

Step S204, receiving the relay service request sent by the relay demand node.

Step S205, obtaining balance information of the relay demand node.

In order to avoid the problem of cost dispute and the like, under the condition that the relay demand node is a personal terminal, the relay service node acquires the balance information of the relay demand node after receiving the relay service request and before agreeing with the relay demand node on the relay service content.

And step S206, judging whether the relay demand node has the service charge payment capability or not according to the balance information.

The relay service node judges whether the relay demand node has the service charge payment capability or not, and the judgment can be carried out on the basis of a preset balance threshold value or in a mode of pre-estimating the service charge.

In the first embodiment, the relay service node presets a balance threshold, and compares the balance of the relay demand node with the balance threshold. Specifically, when the balance of the relay demand node is greater than or equal to the balance threshold, the relay service node determines that the relay demand node has the service cost payment capability, and when the balance of the relay demand node is less than the balance threshold, the relay service node determines that the relay demand node does not have the service cost payment capability. The balance threshold may be set according to experience or statistical data, which is not limited in this application.

In the second embodiment, the relay service node estimates the service cost of the current relay service according to the relay service request of the relay demand node and its own service cost standard, and compares the balance of the relay demand node with the estimated service cost. Specifically, when the balance of the relay demand node is greater than or equal to the estimated service cost, the relay service node determines that the relay demand node has the service cost payment capability, and when the balance of the relay demand node is less than the estimated service cost, the relay service node determines that the relay demand node does not have the service cost payment capability.

It should be noted that, in some other embodiments, it may also be determined whether the relay demand node has the service charge payment capability in combination with the credit information of the relay demand node. For example, in the case where it is determined that the relay demand node does not have the service charge payment capability according to the above-described embodiment, if the credit value of the relay demand node is high, it is finally determined that the relay demand node has the service charge payment capability after combining the credit value.

Step S207, appointing the relay service content with the relay demand node under the condition that the relay demand node is determined to have the service charge payment capability.

Step S208, generating a resource allocation request according to the relay service content.

Step S209, sending the resource allocation request to the resource allocation node, so that the resource allocation node allocates the relay resource of the relay service node to the resource utilization node.

Step S210, stopping the relay service and receiving the service cost paid by the relay demand node under the condition that the preset termination condition is triggered.

Steps S207 to S210 in this embodiment are the same as steps S102 to S105 in the first embodiment of the present application, and are not described herein again.

In the relay service method provided by this embodiment, the relay service node registers in the blockchain network, and can screen a node that does not provide the relay service qualification, thereby improving the security of the relay service, and also can perform centralized management on the relay service node through the blockchain network, thereby improving the management efficiency. In addition, before the relay service node and the relay demand node agree on the relay service content, the relay service node firstly judges whether the relay demand node has the service charge payment capability, so that the possibility of service charge dispute can be reduced.

Fig. 3 is a flowchart of a relay service method according to a third embodiment of the present application. As shown in fig. 3, the method comprises the steps of:

step S301, receiving a relay service request sent by a relay demand node.

Step S302, the relay demand node is appointed to relay the service content.

Steps S301 to S302 in this embodiment are the same as steps S101 to S102 in the first embodiment of this application, and are not described herein again.

Step S303, according to the relay service content, an intelligent contract is signed with the relay demand node.

And step S304, signing the intelligent contract, and broadcasting the signed intelligent contract in the block chain network.

And step S305, receiving the validity verification result of the intelligent contract returned by the verification node in the block chain network.

And step S306, determining whether the intelligent contract is effective according to the effectiveness verification result of the intelligent contract.

Step S307, under the condition that the intelligent contract is determined to be effective, a resource allocation request is generated according to the relay service content.

Step S308, sending the resource allocation request to the resource allocation node, so that the resource allocation node allocates the relay resource of the relay service node to the resource utilization node.

Step S309, in the case of triggering a preset termination condition, stopping the relay service, and receiving the service charge paid by the relay demand node.

Steps S307 to S309 in this embodiment are the same as steps S103 to S105 in the first embodiment, and are not described again here.

Step S310, the intelligent contract and the execution result of the intelligent contract are written into the block chain network.

After the intelligent contract is executed, the intelligent contract and the execution result of the intelligent contract are written into the block chain network, so that information management is facilitated, and information tracing can be conveniently carried out.

The relay service method provided by the embodiment realizes the relay service based on the intelligent contract, the payment and the receiving of the service cost are automatically executed based on the intelligent contract, and the feasibility of disputes can be reduced to a certain extent, so that the relay use experience of users is improved.

The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.

A second aspect of the present application provides a relay service apparatus. Fig. 4 is a block diagram illustrating a relay service apparatus 400 according to a fourth embodiment of the present invention. As shown in fig. 4, the relay service apparatus 400 includes:

a first receiving module 401 configured to receive a relay service request sent by a relay demand node.

An appointment module 402 configured to appointment relay service content with the relay demand node.

A generating module 403 configured to generate a resource allocation request according to the relay service content.

A sending module 404, configured to send the resource allocation request to the resource allocation node, so that the resource allocation node allocates the first relay resource of the current relay service node to the preset resource usage node.

A stopping module 405 configured to stop the relay service in case a preset termination condition is triggered.

And a second receiving module 406 configured to receive the second resource service fee paid by the relay demand node in a feedback manner.

In the relay service device provided in this embodiment, the relay service node receives the relay service request of the relay demand node through the first receiving module 401, and agrees the relay service content with the relay demand node based on the agreement module, where the relay service content includes information of relay resources, information of service cost, and information of resource usage node, the generating module generates the resource allocation request according to the relay service content, and sends the resource allocation request to the resource allocation node through the sending module, the resource allocation node allocates the relay resources of the relay service node to the resource usage node, when the termination condition is triggered, the relay service node stops providing the relay service for the resource usage node through the stopping module, and receives the service cost paid by the relay demand node through the second receiving module, and can stimulate more terminals to provide idle or remaining resources in the form of relay service by acquiring the service cost, not only the application and the development of the relay service are promoted, but also the resource utilization rate can be effectively improved.

A third aspect of the present application provides a signaling interaction method for a relay service system. Fig. 5 is a schematic signaling interaction diagram of a relay service method according to a fifth embodiment of the present application. In this embodiment, the relay demand node is a personal terminal, and the resource utilization node is the relay demand node itself.

As shown in fig. 5, the signaling interaction procedure of the relay service system includes:

in step S501, the first relay service node 520 broadcasts a first relay service message in the blockchain network.

In step S502, the second relay service node 540 broadcasts the second relay service message in the blockchain network.

In step S503, the relay requiring node 510 receives the first relay service message and the second relay service message, and selects a node that better meets its own requirement from the first relay service node 520 and the second relay service node 540 as a node providing the relay service.

In the present embodiment, it is assumed that the relay requiring node 510 selects the first relay service node 520 as a node providing the relay service.

In step S504, the relay requiring node 510 sends a relay service request to the first relay service node 520.

In step S505, after receiving the relay service request, the first relay service node 520 agrees with the relay requiring node 510 to obtain the relay service content.

In step S506, after the engagement of the relay service content is completed, the first relay service node 520 establishes a relay connection with the relay requiring node 510.

In step S507, the first relay service node 520 generates a resource allocation request according to the relay service content.

In step S508, the first relay serving node 520 sends the resource allocation request to the resource allocation node 530.

The resource allocation node 530 is a resource allocation node 530 corresponding to the first relay service node 520. In practical applications, the second relay service node 540 also has a corresponding resource allocation node (not shown in fig. 5).

In step S509, the resource allocation node 530 receives the resource allocation request, and allocates the relay resource of the first relay service node 520 to the relay requiring node 510 through the relay connection between the first relay service node 520 and the relay requiring node 510 according to the content of the resource allocation request.

In step S510, the relay requiring node 510 receives the relay resource, and performs operations such as communication using the relay resource.

In step S511, after the first relay service node 520 completes the relay service according to the relay service content, the first relay service node 520 disconnects the relay connection with the relay demand node 510.

In step S512, the relay requiring node 510 pays the service fee to the first relay service node 520 according to the relay service content.

Fig. 6 is a schematic signaling interaction diagram of a relay service system according to a sixth embodiment of the present application. In this embodiment, the relay demand node is an operator, and the resource usage node is a home terminal node of the relay demand node.

As shown in fig. 6, the signaling interaction procedure of the relay service system includes:

in step S601, the relay service node 620 broadcasts a relay service message in the blockchain network.

In step S602, the relay requiring node 610 receives the relay service message and sends a relay service request to the relay service node 620.

In step S603, after receiving the relay service request, the relay service node 620 agrees with the relay demand node 610 about the relay service content.

In step S604, after the engagement of the relay service content is completed, the relay service node 620 establishes a relay connection with the resource utilization node 640.

In step S605, the relay service node 620 generates a resource allocation request according to the relay service content.

In step S606, the relay service node 620 sends the resource allocation request to the resource allocation node 630.

In step S607, the resource allocation node 630 receives the resource allocation request, and allocates the relay resource of the relay service node 620 to the resource utilization node 640 through the relay connection between the relay service node 620 and the resource utilization node 640 according to the content of the resource allocation request.

In step S608, the resource using node 640 receives the relay resource, and performs operations such as communication using the relay resource.

In step S609, after the relay service node 620 completes the relay service according to the relay service content, the relay service node 620 disconnects the relay connection with the resource utilization node 640.

In step S610, the relay requiring node 610 pays the service fee to the relay service node 620 according to the relay service content.

It should be noted that each module referred to in this embodiment is a logical module, and in practical applications, one logical unit may be one physical unit, may be a part of one physical unit, and may be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, elements that are not so closely related to solving the technical problems proposed by the present invention are not introduced in the present embodiment, but this does not indicate that other elements are not present in the present embodiment.

It will be understood that the above embodiments are merely exemplary embodiments taken to illustrate the principles of the present invention, which is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.

20页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:基于双向拍卖机制的车辆边缘计算中资源分配方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类