Link resource allocation method, device, electronic device and storage medium

By obtaining the link resource status information and traffic monitoring information of the target server cluster, combined with the smart contract in the blockchain module, the appropriate link resources are automatically selected, solving the problems of poor adaptability and unreasonable resource allocation in the existing technology. , achieving efficient and secure link resource allocation.

CN116208562BActive Publication Date: 2024-10-22CAPITAL NORMAL UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211586542.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-09
Publication Date
2024-10-22
Estimated Expiration
2042-12-09

AI Technical Summary

Technical Problem

When facing the diversified transmission performance requirements of different services, existing technologies have problems of poor adaptability and unreasonable resource allocation. Especially in terms of network resource allocation, over-reliance on hardware or software-defined networks (SDN) leads to operation and maintenance costs. High, poor security and waste of resources.

Method used

By obtaining the link resource status information and traffic monitoring information of the target server cluster, the business traffic type is determined, and the preset smart contract in the blockchain module is used to calculate link equity, voting calculation and resource allocation, and automatically select the appropriate chain. road resources to improve the efficiency and security of resource allocation.

Benefits of technology

It realizes personalized resource allocation for different business needs, improves the rationality and adaptability of link resources, reduces operation and maintenance costs, enhances security, and avoids waste of resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116208562B_ABST
    Figure CN116208562B_ABST
Patent Text Reader

Abstract

The present application provides a link resource allocation method, device, electronic device and storage medium, and relates to the field of communication technology. The method includes: upon receiving a resource request from a resource requester, obtaining link resource status information, link resource request information and traffic monitoring information of a target server cluster; determining the service traffic type corresponding to the resource request according to the traffic monitoring information; selecting link resource request parameters corresponding to the service traffic type from the link resource request information, and determining the set consisting of the service traffic type and the link resource request parameter as a link resource request parameter set; inputting the link resource status information and the link resource request parameter set of the target server cluster into a preset smart contract, and outputting the target link; and allocating the target link as a link resource to the resource requester. The above method improves the adaptability and rationality of link resource allocation for resource requests with different requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a link resource allocation method, device, electronic device and storage medium. Background Art

[0002] With the rapid growth of the Internet and the diversification of Internet applications, various problems have gradually emerged in existing networks, such as serious imbalance in resource allocation.

[0003] In order to solve this technical problem, the existing technology provides two solutions. The first is the traditional network transmission resource allocation solution, which implements resource allocation through the equipment of various network vendors. For example, gateways, load balancing devices, etc. can avoid bottlenecks by distributing workloads on multiple computing nodes at the network entrance. The working principle of this solution is as follows: first divide a large problem into several small tasks, and then assign each small task to a dedicated computer to complete the allocation of link resources. However, the above technology has the disadvantages of over-reliance on hardware, serious binding with the equipment of various manufacturers, high operation and maintenance costs, and lack of versatility.

[0004] The second is a new solution based on software defined network (SDN). SDN is a new type of network architecture that uses software to define traditional networks. It controls network traffic by separating the control plane and data plane of network devices, thereby completing the flexible allocation of link resources. However, it has the problem of poor security.

[0005] However, when faced with the diverse transmission performance requirements of different services, no matter which of the above technical solutions is used, there are technical problems such as poor adaptability and unreasonable resource allocation. Summary of the invention

[0006] The present application provides a link resource allocation method, device, electronic device and storage medium to solve the technical problems of poor adaptability and unreasonable resource allocation in the prior art when facing the diversified transmission performance requirements of different services.

[0007] According to a first aspect of the present application, a link resource allocation method is provided, comprising:

[0008] Upon receiving a resource request from a resource requester, obtaining link resource status information, link resource request information, and traffic monitoring information of a target server cluster;

[0009] Determine the service traffic type corresponding to the resource request according to the traffic monitoring information;

[0010] Selecting a link resource request parameter corresponding to the service traffic type from the link resource request information, and determining a set consisting of the service traffic type and the link resource request parameter as a link resource request parameter set;

[0011] Inputting the link resource status information of the target server cluster and the link resource request parameter set into a preset smart contract provided by a blockchain module configured in the target server cluster, so that the preset smart contract can sequentially perform link equity calculation, link voting calculation and resource allocation according to the link resource status information of the target server cluster and the resource request parameter set, and output a resource allocation result; wherein the resource allocation result is the target link corresponding to the resource request in the link resource status information;

[0012] The target link is allocated as a link resource to the resource requester.

[0013] Optionally, determining the service traffic type corresponding to the resource request according to the traffic monitoring information includes:

[0014] Calculate the flow value of flow monitoring information;

[0015] The traffic interval to which the traffic value of the traffic monitoring information belongs is searched in the correspondence table between preset traffic intervals and existing business traffic types, and the business traffic type corresponding to the resource request is determined based on the traffic interval; wherein the existing business traffic types include a first business traffic type and a second business traffic type, and the traffic value of the first business traffic type is greater than the traffic value of the second business traffic type.

[0016] Optionally, the selecting a link resource request parameter corresponding to the service traffic type from the link resource request information includes:

[0017] When the service traffic type is the first service traffic type, selecting a link bandwidth of the resource request from the link resource request information as a link resource request parameter corresponding to the first service traffic type;

[0018] When the service traffic type is the second service traffic type, a link delay of the resource request is selected from the link resource request information as a link resource request parameter corresponding to the second service traffic type.

[0019] Optionally, determining a set consisting of the service traffic type and the link resource request parameter as a link resource request parameter set includes:

[0020] When the service traffic type is the first service traffic type, the link bandwidth of the resource request is calculated according to a preset first conversion ratio coefficient corresponding to the first service traffic type and the traffic monitoring information, and after the calculation, a set consisting of the first service traffic type and the link bandwidth of the resource request is determined as a link resource request parameter set; the second conversion ratio coefficient is less than the first conversion ratio coefficient;

[0021] When the service traffic type is the second service traffic type, the link delay of the resource request is calculated according to the preset second conversion ratio coefficient corresponding to the second service traffic type and the traffic monitoring information, and after the calculation, the set consisting of the second service traffic type and the link delay of the resource request is determined as the link resource request parameter set.

[0022] Optionally, the preset smart contract includes: a rights calculation contract, a voting contract and a resource allocation contract;

[0023] The preset smart contract performs link equity calculation, link voting calculation and resource allocation in sequence according to the link resource status information of the target server cluster and the resource request parameter set, and outputs a resource allocation result, including:

[0024] Inputting the link resource status information of the target server cluster into the equity calculation contract, so that the equity calculation contract can calculate the link equity of each link in the link resource status information;

[0025] Input the link resource request parameter set into the voting contract, so that the voting contract searches for a link set that meets the resource request according to the service traffic type and link resource request parameters contained in the link resource request parameter set, and votes on each link in the link set according to the size of the link equity to obtain the voting result of each link;

[0026] The voting result is input into the resource allocation contract, so that the resource allocation contract selects the link with the highest number of votes in the link set as the target link corresponding to the resource request in the link resource status information.

[0027] Optionally, the equity calculation contract calculates the link equity of each link in the link resource state information, including:

[0028] The equity calculation contract calculates the link equity of each link in the link resource status information according to a preset calculation formula; wherein the preset calculation formula is:

[0029]

[0030] in, is the i-th link l in the link resource status information i Link equity, Link l i of idle bandwidth, Link l i of free time, Link l i delay.

[0031] Optionally, the voting contract searches for a link set that meets the resource request according to the service traffic type and link resource request parameters included in the link resource request parameter set, including:

[0032] When the service traffic type included in the link resource request parameter set is the first service traffic type, comparing the link bandwidth of each link in the link resource state information with the calculated link bandwidth of the resource request, and screening out a link set that meets the resource request according to the comparison result;

[0033] Or, when the service traffic type included in the link resource request parameter set is the second service traffic type, the link delay of each link in the link resource status information is compared with the calculated link delay of the resource request, and based on the comparison result, a link set that meets the resource request is screened out.

[0034] According to a second aspect of the present application, a link resource allocation device is provided, including:

[0035] The link resource monitoring module is used to obtain the link resource status information, link resource request information and flow monitoring information of the target server cluster when receiving the resource request from the resource requester;

[0036] A service flow demand perception module, used to determine the service flow type corresponding to the resource request according to the flow monitoring information;

[0037] The service flow demand perception module is further used to select a link resource request parameter corresponding to the service flow type from the link resource request information, and determine a set consisting of the service flow type and the link resource request parameter as a link resource request parameter set;

[0038] A link resource allocation module, used to input the link resource status information of the target server cluster and the link resource request parameter set into a preset smart contract provided by a blockchain module configured in the target server cluster, so that the preset smart contract can perform link equity calculation, link voting calculation and resource allocation in sequence according to the link resource status information of the target server cluster and the resource request parameter set, and output a resource allocation result; wherein the resource allocation result is the target link corresponding to the resource request in the link resource status information;

[0039] The link resource allocation module is further used to allocate the target link as a link resource to the resource requester.

[0040] According to a third aspect of the present application, there is provided an electronic device, comprising: at least one processor and a memory;

[0041] The memory stores computer-executable instructions;

[0042] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the link resource allocation method as described in the first aspect above.

[0043] According to a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the link resource allocation method described in the first aspect above.

[0044] According to a fifth aspect of the present application, a computer program product is provided, comprising a computer program, which implements the link resource allocation method described in the first aspect when executed by a processor.

[0045] The present application provides a link resource allocation method, comprising: upon receiving a resource request from a resource requester, obtaining link resource status information, link resource request information and traffic monitoring information of a target server cluster; determining the service traffic type corresponding to the resource request according to the traffic monitoring information; selecting link resource request parameters corresponding to the service traffic type from the link resource request information, and determining a set consisting of the service traffic type and the link resource request parameters as a link resource request parameter set; inputting the link resource status information and the link resource request parameter set of the target server cluster into a preset smart contract provided by a blockchain module configured in the target server cluster, so that the preset smart contract can perform link equity calculation, link voting calculation and resource allocation in sequence according to the link resource status information and the resource request parameter set of the target server cluster, and output a resource allocation result; wherein the resource allocation result is the target link corresponding to the resource request in the link resource status information; and allocating the target link as a link resource to the resource requester.

[0046] Through traffic monitoring information, the present application can automatically identify the type of business traffic corresponding to the resource request, and then realize the selection of link resource request parameters corresponding to the personalized resource request. Combined with the application of preset smart contracts, the efficiency and security of link resource allocation of the present application can be improved, and the adaptability and rationality of link resource allocation can be improved for resource requests with different needs.

[0047] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0049] Figure 1 A flowchart of a link resource allocation method provided in an embodiment of the present application;

[0050] Figure 2 Provided in the embodiments of this application Figure 1 Schematic diagram of the process of step S102;

[0051] Figure 3 Provided in the embodiments of this application Figure 1 Schematic diagram of the process of step S103;

[0052] Figure 4 A schematic diagram of the process of the smart contract provided in the embodiment of the present application;

[0053] Figure 5 Provided in the embodiments of this application Figure 1 Schematic diagram of the process of step S104;

[0054] Figure 6 A schematic diagram of the structure of a link resource allocation device provided in an embodiment of the present application;

[0055] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0056] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0057] Here, exemplary embodiments are described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application.

[0058] SDN requires multiple controllers to perform global traffic control and resource allocation. This semi-centralized structure has major security issues, such as being vulnerable to attacks. When the resource allocation plan of the controller is maliciously tampered with, it will cause information leakage and business interruption. On this basis, due to the uncertainty and burstiness of various business flows, it is easy for business flows in cloud service clusters to be crowded on certain links while the rest of the links are always idle. This situation greatly wastes link resources and is difficult to meet the diverse transmission performance requirements of different businesses.

[0059] In order to solve the above technical problems, the overall inventive concept of the present application is to provide a method applied in the communication field to meet the diversified transmission performance requirements of different services, thereby improving the rationality of link resource allocation in this scenario.

[0060] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0061] Embodiment 1:

[0062] Figure 1A flowchart of a link resource allocation method provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the method of this embodiment includes:

[0063] S101: upon receiving a resource request from a resource requester, obtaining link resource status information, link resource request information and flow monitoring information of a target server cluster.

[0064] It should be understood that the target server cluster can refer to a cloud server cluster, referred to as a cloud service cluster, which is a group composed of multiple cloud servers that can provide stronger service capabilities. The actual physical transmission line in the cloud server cluster can be referred to as a link, and the hosts connected by links on the network can be called link nodes, that is, the above-mentioned cloud servers. The above-mentioned resource requester can be understood as a cloud tenant on the Internet. The above-mentioned cloud tenant is a user who rents a cloud service cluster, and he can customize the application for resources according to his needs. Link resources refer to the resources that each link can use to transmit data. The status indicators for measuring the status of each link resource include link bandwidth, link delay, etc. Link bandwidth refers to the amount of data that can be transmitted in a certain period of time, and link delay refers to the time required for data to be transmitted from one end of the link to the other end.

[0065] The link resource status information may refer to the resource usage of each link in the cloud server cluster, and can be obtained using the link resource status parameter state link Indicates. Among them, l i Indicates the serial number of the link. It is set in the range of 1 to n based on the number of hosts n in the current network obtained through network tools and according to the host IP. Indicates link l i of idle bandwidth; Indicates link l i Delay Indicates link l i free time.

[0066] The link resource request information can be obtained by using the parameter request link Indicates. Among them, request link =(wd r , td r ), wd r Indicates the link bandwidth requested by the resource request, td r Indicates the link delay of the resource request. In the subsequent process, the link resource request information is input into the voting contract in the following smart contract as a parameter in the link resource request parameter set.

[0067] Traffic refers to the amount of data transmitted over a link within a certain period of time. The above traffic monitoring information can be obtained using the parameters The traffic monitoring information is used as a basis for determining the service traffic type in the following step S102.

[0068] In this embodiment, different types of information can be obtained in different ways. For example, link resource status information can be obtained by using a preset network monitoring tool to monitor the idle bandwidth, latency and other status information of each link at a fixed time interval (such as 30 seconds). Link resource request information can be obtained by using a preset network monitoring tool to monitor link resource requests initiated by cloud tenants on the Internet at a fixed time interval (such as 1 second). Traffic monitoring information can be obtained by using a preset traffic monitoring device to monitor the traffic from the Internet to the cloud server cluster. The real-time monitoring is performed at a fixed time interval (eg, set to 0.1 second).

[0069] S102: Determine the service traffic type corresponding to the resource request according to the traffic monitoring information.

[0070] Step S102: It can identify whether the service it belongs to is a long flow service (or long process service) or a short flow service (or short process service), that is, determine the service flow type ftype, thereby providing a basis for subsequent resource allocation. The embodiment of the present application is provided with a correspondence table between a preset flow interval and an existing service flow type in advance, and step S102 can be implemented according to the table. The implementation process is shown in the following S201 to S202, which will not be repeated here.

[0071] S103: Select a link resource request parameter corresponding to the service traffic type from the link resource request information, and determine a set consisting of the service traffic type and the link resource request parameter as a link resource request parameter set.

[0072] In this embodiment, the service traffic type can be a long flow service type or a short flow service type. When the service traffic type is a long flow service type, the corresponding link resource request is link bandwidth; when the service traffic type is a short flow service type, the corresponding link resource request is link delay.

[0073] When there are multiple resource requests, this embodiment first identifies the service transmission characteristics and requirements corresponding to the resource requests, divides the services corresponding to various resource requests into short-flow services that are sensitive to latency and long-flow services that require large bandwidth, and based on this, provides the following blockchain-based link resource allocation solution that aims at higher link resource utilization.

[0074] S104: Input the link resource status information and link resource request parameter set of the target server cluster into the preset smart contract provided by the blockchain module configured in the target server cluster, so that the preset smart contract can perform link equity calculation, link voting calculation and resource allocation in sequence according to the link resource status information and resource request parameter set of the target server cluster, and output the resource allocation result; wherein the resource allocation result is the target link corresponding to the resource request in the link resource status information.

[0075] The above-mentioned blockchain module provides blockchain technology, which is an emerging technology that is decentralized and tamper-proof and is composed of cryptography, database, and distributed technologies. Smart contracts are codes deployed on block nodes, which are triggered by certain conditions. Before implementing the link resource allocation process, this embodiment can configure the smart contract in advance, and the configured smart contracts include: equity calculation contract, voting contract, and resource allocation contract. The specific working process of each contract is shown in the following embodiment 4, which will not be repeated here.

[0076] S105: Allocate the target link as a link resource as a resource requester.

[0077] The embodiment of the present application can automatically identify the business traffic type corresponding to the resource request through traffic monitoring information, and then realize the selection of link resource request parameters corresponding to the personalized resource request. Combined with the application of preset smart contracts, the efficiency and security of link resource allocation of the present application can be improved, and the adaptability and rationality of link resource allocation can be improved for resource requests with different needs.

[0078] Embodiment 2:

[0079] The purpose of this embodiment is to monitor the flow rate information received in step S101. According to the order of time received, each flow monitoring information The traffic values ​​are sensed in turn, and then the corresponding service traffic type ftype is identified. The specific process of identification is as follows:

[0080] Figure 2 Provided in the embodiments of this application Figure 1 Schematic diagram of the process of step S102 in FIG. Figure 1 Based on the embodiment shown, this embodiment focuses on Figure 1 S102 in the figure is refined. Figure 2 As shown, step S102 includes the following steps S201-S202:

[0081] S201: Calculate the flow value of the flow monitoring information. In this step, the embodiment of the present application does not specifically limit the calculation method.

[0082] S202: Searching the traffic interval to which the traffic value of the traffic monitoring information belongs in the correspondence table between the preset traffic interval and the existing service traffic type, and determining the service traffic type corresponding to the resource request according to the traffic interval. The existing service traffic type includes a first service traffic type and a second service traffic type, and the traffic value of the first service traffic type is greater than the traffic value of the second service traffic type.

[0083] In the embodiment of the present application, the correspondence table between the preset traffic interval and the existing service traffic type is obtained according to the setting rule. Exemplarily, the setting rule is as follows: Then set ftype to short, which means identifying the demand for delay-sensitive short-flow services; if Then set ftype to long to identify bandwidth-sensitive long-flow services.

[0084] The first service traffic type may refer to a long-flow service type, and the second service traffic type may refer to a short-flow service type. The above-mentioned short-flow services refer to latency-sensitive services represented by lightweight queries (such as user searches), access requests and other operations, and distributed computing. The above-mentioned long-flow services refer to throughput-sensitive services that require a large amount of network bandwidth, represented by data migration and backup operations.

[0085] It should be noted that this embodiment is not limited to the division of long flow services and short flow services. More service traffic types can be set according to actual conditions. For example, corresponding service traffic types can be set according to other personalized requirements such as packet loss rate and utilization rate.

[0086] The embodiments of the present application can meet the personalized needs of different services for throughput improvement, latency reduction, and packet loss rate reduction based on effective perception of various services such as delay-sensitive services and throughput-sensitive services, so as to achieve more reasonable allocation and use of limited link resources in the network.

[0087] Embodiment 3:

[0088] Figure 3 Provided in the embodiments of this application Figure 1 Schematic diagram of the process of step S103 in FIG. Figure 1 Based on the embodiment shown, this embodiment focuses on Figure 1 S103 in the above is refined. Figure 3 As shown, when the service flow type is the first service flow type, step S103 includes the following steps S301-S302, wherein:

[0089] S301: Select a link bandwidth of a resource request from link resource request information as a link resource request parameter corresponding to a first service traffic type.

[0090] S302: Calculate the link bandwidth of the resource request according to the preset first conversion ratio coefficient corresponding to the first business traffic type and the traffic monitoring information, and after the calculation, determine the set consisting of the first business traffic type and the link bandwidth of the resource request as the link resource request parameter set.

[0091] When the service flow type is the second service flow type, step S103 includes the following steps S303-S304, wherein:

[0092] S303: Select the link delay of the resource request from the link resource request information as the link resource request parameter corresponding to the second service traffic type.

[0093] S304: Calculate the link delay of the resource request according to the preset second conversion ratio coefficient corresponding to the second service traffic type and the traffic monitoring information, and after the calculation, determine the set consisting of the second service traffic type and the link delay of the resource request as the link resource request parameter set. The second conversion ratio coefficient is less than the first conversion ratio coefficient, and exemplarily, the first conversion ratio coefficient is k=8, and the second conversion ratio coefficient is h=0.01.

[0094] In step S101, link resource request information request is detected. link =(wd r , td r ), this embodiment can implement S301 to S304 according to the following rules to obtain a link resource request parameter set, specifically:

[0095] For long-flow service types, the link bandwidth set in the embodiment of the present application is k is the first conversion ratio coefficient corresponding to the long flow service type, usually set to k = 8, link resource request parameter set allocparam link =(ftype, wd r ).

[0096] For short-flow service types, the link delay set in the embodiment of the present application is h is the second conversion ratio coefficient corresponding to the short flow service type, usually set to h = 0.01, link resource request parameter set allocparam link =(ftype, td r ).

[0097] The link resource request parameter set can subsequently be input into a preset smart contract for secure and efficient link resource allocation. The specific description is shown in the following Example 4, which will not be repeated here.

[0098] The embodiments of the present application can meet the personalized needs of different services for throughput improvement, latency reduction, and packet loss rate reduction based on effective perception of various services such as delay-sensitive services and throughput-sensitive services, so as to achieve more reasonable allocation and use of limited link resources in the network.

[0099] Embodiment 4:

[0100] The blockchain is composed of a series of blocks and is a distributed accounting system that uses a distributed storage architecture and is composed of encryption technology, peer-to-peer (P2P) networks, distributed deployment and other technologies. The blockchain records all the information that needs to be saved and is sorted and packaged after being propagated through each node. The blockchain links blocks to each other based on the consistency algorithm and consensus mechanism, so that the data on it is completely stored on all nodes of the blockchain network, ensuring that the block content is not changed and is easy to audit. The above consensus mechanism represents the consistent actions or operations performed by multiple nodes.

[0101] The blockchain in this embodiment is mainly composed of blocks deployed on each link node, and the blocks on each link node are independent entities. Before deployment, this embodiment can complete the environment configuration required for blockchain deployment on the link node, such as operating system, virtualization container, programming language, remote call tool, compiler, sufficient storage space, etc., and then randomly select a host in each cloud server cluster to configure the smart contract. Figure 4 As shown in the figure, the configured smart contracts include: equity calculation contract, voting contract and resource allocation contract. Among them, the equity calculation contract is a contract that calculates the link equity based on the link resource status information. The voting contract is a contract that enables each link node to vote on the link that meets the resource request. The resource allocation contract is responsible for designating the link with the highest number of votes as the transmission resource to be allocated and completing the corresponding resource allocation.

[0102] Figure 5 Provided in the embodiments of this application Figure 1 The preset smart contracts include: equity calculation contract, voting contract and resource allocation contract. Figure 4 and Figure 5 It can be seen that in S104, the preset smart contract performs link equity calculation, link voting calculation and resource allocation in sequence according to the link resource status information and resource request parameter set of the target server cluster, and outputs the resource allocation result, including the following steps S501 to S503, wherein:

[0103] S501: Inputting the link resource status information of the target server cluster into the equity calculation contract, so that the equity calculation contract calculates the link equity of each link in the link resource status information.

[0104] S502: Input the link resource request parameter set into the voting contract, so that the voting contract can find a link set that meets the resource request according to the business traffic type and link resource request parameters contained in the link resource request parameter set, and vote on each link in the link set according to the size of the link rights and interests to obtain the voting results of each link.

[0105] In this embodiment, the link set K that meets the resource request is {l1, l2, l3...l m}.

[0106] S503: Input the voting result to the resource allocation contract, so that the resource allocation contract selects the link with the highest number of votes in the link set as the target link corresponding to the resource request in the link resource state information.

[0107] In the embodiment of the present application, according to the voting result of the voting contract, the resource allocation contract selects the link l with the highest number of votes in the link set K. max (1≤max≤m) is used as the link resource that satisfies the resource request and is allocated to the corresponding requested service.

[0108] This embodiment combines the smart contract of blockchain to improve the security of resource allocation results.

[0109] In a possible implementation, in S501, the equity calculation contract calculates the link equity of each link in the link resource status information, including:

[0110] The equity calculation contract calculates the link equity of each link in the link resource status information according to the preset calculation formula. The preset calculation formula is:

[0111]

[0112] in, is the i-th link l in the link resource status information i Link equity, Link l i of idle bandwidth, Link l i of free time, Link l i delay.

[0113] In the embodiment of the present application, the calculation process of link equity is safe and the calculation method is accurate, and the obtained link equity can be used as a reference for link voting in subsequent voting contracts. Therefore, when targeting personalized needs, this embodiment can provide accurate and reasonable link resource allocation results.

[0114] In a possible implementation, in S502, the voting contract searches for a link set that meets the resource request according to the service traffic type and link resource request parameters included in the link resource request parameter set, including the following situations:

[0115] When the service traffic type included in the link resource request parameter set is the first service traffic type, the link bandwidth of each link in the link resource state information is compared with the calculated link bandwidth of the resource request, and a link set that meets the resource request is screened out based on the comparison result.

[0116] For example, if the received allocparam link If ftype is long, the bandwidth of each link is Resource request parameter wd corresponding to the long-flow service type r For comparison, if , it is determined that the bandwidth of the i-th link can meet the current resource request.

[0117] Or, when the service traffic type included in the link resource request parameter set is the second service traffic type, the link delay of each link in the link resource status information is compared with the calculated link delay of the resource request, and based on the comparison result, a link set that meets the resource request is screened out.

[0118] For example, if the received allocparam link If ftype is short, the delay of each link is Resource request parameter td corresponding to the short flow service type r For comparison, if , it is determined that the delay of the i-th link can meet the current resource request.

[0119] By comparison, we can obtain the link set K={l1, l2, l3...l m}, and then each link node votes in the link set K that meets the resource request according to the size of the equity value of each link.

[0120] Whenever a new resource request is monitored, S501 to S503 are executed, and the link with the largest equity is allocated as the link resource to the corresponding resource requester, thereby achieving reasonable allocation of link resources based on blockchain while improving network throughput and link resource utilization.

[0121] In summary, this embodiment integrates the decentralization, tamper-proof, and traceability characteristics of blockchain, combines the smart contract and consensus mechanism of blockchain, and provides a new link resource allocation mechanism, which can achieve a more reasonable allocation of network link transmission resources while improving the credibility of link resource allocation.

[0122] Figure 6 Schematic diagram of the structure of a link resource allocation device provided in an embodiment of the present application. The device of this embodiment can be in the form of software and / or hardware. Figure 6 As shown, the link resource allocation device provided in this embodiment includes: a link resource monitoring module 61, a service flow demand perception module 62, a link resource allocation module 63 and a blockchain module 64. Among them:

[0123] The link resource monitoring module 61 is used to obtain the link resource status information, link resource request information and flow monitoring information of the target server cluster when receiving the resource request from the resource requester.

[0124] The service traffic demand perception module 62 is used to determine the service traffic type corresponding to the resource request based on the traffic monitoring information.

[0125] The service traffic demand perception module 62 is further used to select link resource request parameters corresponding to the service traffic type from the link resource request information, and determine a set consisting of the service traffic type and the link resource request parameters as a link resource request parameter set.

[0126] The link resource allocation module 63 is used to input the link resource status information and link resource request parameter set of the target server cluster into the preset smart contract provided by the blockchain module 64 configured in the target server cluster, so that the preset smart contract can perform link equity calculation, link voting calculation and resource allocation in sequence according to the link resource status information and resource request parameter set of the target server cluster, and output the resource allocation result; wherein the resource allocation result is the target link corresponding to the resource request in the link resource status information.

[0127] The link resource allocation module 63 is further configured to allocate the target link as a link resource to the resource requester.

[0128] In this embodiment, the link resource monitoring module 61 can be composed of a link resource status monitoring unit, a link resource request monitoring unit and a flow monitoring unit, and transmits the monitored link resource request information and flow monitoring information to the service flow demand perception module 62, and transmits the monitored link resource status information of the target server cluster to the link resource allocation module 63. The flow monitoring unit can be deployed on each link node with the help of a flow monitoring tool to monitor the flow passing through the link. The blockchain module 64, or the blockchain infrastructure module required for link resource allocation in the cloud server cluster environment, is combined with Figure 4 It can be seen that it can complete the environment configuration required for blockchain deployment on the link node.

[0129] The link resource allocation module 63 in this embodiment has the function of allocating link resources, and receives the allocparam provided by the service traffic demand perception module 62. link , and then call the equity calculation contract, voting contract and resource allocation contract provided by the blockchain module 64 to achieve reasonable allocation of link resources.

[0130] In a possible implementation, the service flow demand perception module 62 is further configured to:

[0131] Calculate the flow value of flow monitoring information.

[0132] The flow interval to which the flow value of the flow monitoring information belongs is searched in a correspondence table between preset flow intervals and existing service flow types, and the service flow type corresponding to the resource request is determined according to the flow interval. The existing service flow types include a first service flow type and a second service flow type, and the flow value of the first service flow type is greater than the flow value of the second service flow type.

[0133] In a possible implementation, the service flow demand perception module 62 is further configured to:

[0134] When the service traffic type is the first service traffic type, a link bandwidth of the resource request is selected from the link resource request information as a link resource request parameter corresponding to the first service traffic type.

[0135] When the service traffic type is the second service traffic type, the link delay of the resource request is selected from the link resource request information as the link resource request parameter corresponding to the second service traffic type.

[0136] In a possible implementation, the service flow demand perception module 62 is further configured to:

[0137] When the service traffic type is the first service traffic type, the link bandwidth of the resource request is calculated according to the preset first conversion ratio coefficient corresponding to the first service traffic type and the traffic monitoring information, and after the calculation, the set consisting of the first service traffic type and the link bandwidth of the resource request is determined as the link resource request parameter set.

[0138] When the service traffic type is the second service traffic type, the link delay of the resource request is calculated according to the preset second conversion ratio coefficient corresponding to the second service traffic type and the traffic monitoring information, and after the calculation, the set consisting of the second service traffic type and the link delay of the resource request is determined as the link resource request parameter set.

[0139] In a possible implementation, the preset smart contract includes: equity calculation contract, voting contract and resource allocation contract. The link resource allocation module 63 is also used to:

[0140] The link resource status information of the target server cluster is input into the equity calculation contract so that the equity calculation contract can calculate the link equity of each link in the link resource status information.

[0141] The link resource request parameter set is input into the voting contract, so that the voting contract can find the link set that meets the resource request according to the business traffic type and link resource request parameters contained in the link resource request parameter set, and vote on each link in the link set according to the size of the link equity to obtain the voting results of each link.

[0142] The voting result is input into the resource allocation contract so that the resource allocation contract selects the link with the highest number of votes in the link set as the target link corresponding to the resource request in the link resource status information.

[0143] In one possible implementation, the equity calculation contract is used to:

[0144] According to a preset calculation formula, the link equity of each link in the link resource status information is calculated.

[0145] The preset calculation formula is:

[0146]

[0147] in, is the i-th link l in the link resource status information i Link equity, Link l i of idle bandwidth, Link l i of free time, Link l i delay.

[0148] In one possible implementation, the voting contract is used to:

[0149] When the service traffic type included in the link resource request parameter set is the first service traffic type, the link bandwidth of each link in the link resource state information is compared with the calculated link bandwidth of the resource request, and a link set that meets the resource request is screened out based on the comparison result.

[0150] Or, when the service traffic type included in the link resource request parameter set is the second service traffic type, the link delay of each link in the link resource status information is compared with the calculated link delay of the resource request, and based on the comparison result, a link set that meets the resource request is screened out.

[0151] The link resource allocation device provided in this embodiment can be used to execute the link resource allocation method provided in any of the above method embodiments. Its implementation principle and technical effects are similar and will not be described in detail here.

[0152] It should be noted that the user information and data involved in this application (including but not limited to data used for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0153] That is to say, in the technical solution of this application, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the relevant laws and regulations and do not violate public order and good morals.

[0154] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.

[0155] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device includes a receiver 70, a transmitter 71, at least one processor 72 and a memory 73. The electronic device composed of the above components can be used to implement the above-mentioned several specific embodiments of the present application, which will not be described in detail here.

[0156] The embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, each step of the method in the above embodiment is implemented.

[0157] An embodiment of the present application also provides a computer program product, including a computer program, which implements each step of the method in the above embodiment when executed by a processor.

[0158] Various embodiments of the systems and techniques described above in the present application can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs, which can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor, which can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0159] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or electronic device.

[0160] In the context of the present application, a computer-readable storage medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may be a machine-readable signal medium or a machine-readable storage medium. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a computer-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0161] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0162] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data electronic device), or a computing system that includes middleware components (e.g., an application electronic device), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0163] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps disclosed in this application can be performed in parallel, sequentially or in different orders, as long as the desired results of the technical solution disclosed in this application can be achieved, and this document does not limit this.

[0164] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the principles of this application should be included in the protection scope of this application.

Claims

1. A link resource allocation method, characterized in that: include: Upon receiving a resource request from a resource requester, obtaining link resource status information, link resource request information, and traffic monitoring information of a target server cluster; Determine the service traffic type corresponding to the resource request according to the traffic monitoring information; Selecting a link resource request parameter corresponding to the service traffic type from the link resource request information, and determining a set consisting of the service traffic type and the link resource request parameter as a link resource request parameter set; Inputting the link resource status information of the target server cluster and the link resource request parameter set into a preset smart contract provided by a blockchain module configured in the target server cluster, so that the preset smart contract can sequentially perform link equity calculation, link voting calculation and resource allocation according to the link resource status information of the target server cluster and the resource request parameter set, and output a resource allocation result; wherein the resource allocation result is the target link corresponding to the resource request in the link resource status information; The target link is allocated as a link resource to the resource requester.

2. The method according to claim 1, characterized in that The determining, according to the traffic monitoring information, the service traffic type corresponding to the resource request includes: Calculate the flow value of flow monitoring information; The traffic interval to which the traffic value of the traffic monitoring information belongs is searched in the correspondence table between preset traffic intervals and existing business traffic types, and the business traffic type corresponding to the resource request is determined based on the traffic interval; wherein the existing business traffic types include a first business traffic type and a second business traffic type, and the traffic value of the first business traffic type is greater than the traffic value of the second business traffic type.

3. The method according to claim 2, characterized in that Selecting a link resource request parameter corresponding to the service traffic type from the link resource request information includes: When the service traffic type is the first service traffic type, selecting the link bandwidth of the resource request from the link resource request information as a link resource request parameter corresponding to the first service traffic type; When the service traffic type is the second service traffic type, the link delay of the resource request is selected from the link resource request information as a link resource request parameter corresponding to the second service traffic type.

4. The method according to claim 3, characterized in that Determining a set consisting of the service traffic type and the link resource request parameter as a link resource request parameter set, including: When the service traffic type is the first service traffic type, the link bandwidth of the resource request is calculated according to a preset first conversion ratio coefficient corresponding to the first service traffic type and the traffic monitoring information, and after the calculation, a set consisting of the first service traffic type and the link bandwidth of the resource request is determined as a link resource request parameter set; When the service traffic type is the second service traffic type, the link delay of the resource request is calculated according to the preset second conversion ratio coefficient corresponding to the second service traffic type and the traffic monitoring information, and after the calculation, the set consisting of the second service traffic type and the link delay of the resource request is determined as the link resource request parameter set; the second conversion ratio coefficient is less than the first conversion ratio coefficient.

5. The method according to claim 4, characterized in that The preset smart contracts include: equity calculation contract, voting contract and resource allocation contract; The preset smart contract performs link equity calculation, link voting calculation and resource allocation in sequence according to the link resource status information of the target server cluster and the resource request parameter set, and outputs a resource allocation result, including: Inputting the link resource status information of the target server cluster into the equity calculation contract, so that the equity calculation contract can calculate the link equity of each link in the link resource status information; Input the link resource request parameter set into the voting contract, so that the voting contract searches for a link set that meets the resource request according to the service traffic type and link resource request parameters contained in the link resource request parameter set, and votes on each link in the link set according to the size of the link equity to obtain the voting result of each link; The voting result is input into the resource allocation contract, so that the resource allocation contract selects the link with the highest number of votes in the link set as the target link corresponding to the resource request in the link resource status information.

6. The method according to claim 5, characterized in that The equity calculation contract calculates the link equity of each link in the link resource status information, including: The equity calculation contract calculates the link equity of each link in the link resource status information according to a preset calculation formula; wherein the preset calculation formula is: in, is the i-th link l in the link resource status information i Link equity, Link l i of idle bandwidth, Link l i of free time, Link l i delay.

7. The method according to claim 5, characterized in that The voting contract searches for a link set that meets the resource request according to the service traffic type and link resource request parameters included in the link resource request parameter set, including: When the service traffic type included in the link resource request parameter set is the first service traffic type, comparing the link bandwidth of each link in the link resource state information with the calculated link bandwidth of the resource request, and screening out a link set that meets the resource request according to the comparison result; Or, when the service traffic type included in the link resource request parameter set is the second service traffic type, the link delay of each link in the link resource status information is compared with the calculated link delay of the resource request, and based on the comparison result, a link set that meets the resource request is screened out.

8. A link resource allocation device, characterized in that: include: The link resource monitoring module is used to obtain the link resource status information, link resource request information and flow monitoring information of the target server cluster when receiving the resource request from the resource requester; A service flow demand perception module, used to determine the service flow type corresponding to the resource request according to the flow monitoring information; The service flow demand perception module is further used to select a link resource request parameter corresponding to the service flow type from the link resource request information, and determine a set consisting of the service flow type and the link resource request parameter as a link resource request parameter set; A link resource allocation module, used to input the link resource status information of the target server cluster and the link resource request parameter set into a preset smart contract provided by a blockchain module configured in the target server cluster, so that the preset smart contract can perform link equity calculation, link voting calculation and resource allocation in sequence according to the link resource status information of the target server cluster and the resource request parameter set, and output a resource allocation result; wherein the resource allocation result is the target link corresponding to the resource request in the link resource status information; The link resource allocation module is further used to allocate the target link as a link resource to the resource requester.

9. An electronic device, characterized in that: include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the link resource allocation method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the link resource allocation method according to any one of claims 1 to 7.