CN120583086B - A blockchain edge computing resource collaborative scheduling system for IoT devices - Google Patents
A blockchain edge computing resource collaborative scheduling system for IoT devicesInfo
- Publication number
- CN120583086B CN120583086B CN202510710988.9A CN202510710988A CN120583086B CN 120583086 B CN120583086 B CN 120583086B CN 202510710988 A CN202510710988 A CN 202510710988A CN 120583086 B CN120583086 B CN 120583086B
- Authority
- CN
- China
- Prior art keywords
- task
- resource
- edge
- internet
- edge node
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4812—Task transfer initiation or dispatching by interrupt, e.g. masked
- G06F9/4818—Priority circuits therefor
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5083—Techniques for rebalancing the load in a distributed system
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0876—Network utilisation, e.g. volume of load or congestion level
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/50—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- General Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- Environmental & Geological Engineering (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开了一种物联网设备的区块链边缘计算资源协同调度系统,涉及物联网技术领域,包括设备边缘组网模块,用于在物联网设备密集区域部署边缘节点,并将边缘节点接入区块链网络;资源状态初始化模块,用于物联网设备产生任务后,将任务信息发送到边缘节点层;智能任务分配模块,用于边缘节点接收到任务后,根计算最优任务分配方案,并根据最优任务分配方案将任务分配到边缘节点进行处理;动态资源调整模块,用于实时监测边缘节点的资源负载情况,当出现资源负载不均衡时,按照动态资源自适应调整策略进行资源重新分配,实现系统稳定运行。实现物联网设备间边缘计算资源的高效协同调度与安全可信管理。
This invention discloses a blockchain edge computing resource collaborative scheduling system for IoT devices, relating to the field of IoT technology. It includes a device edge networking module for deploying edge nodes in densely populated IoT device areas and connecting these edge nodes to a blockchain network; a resource status initialization module for sending task information to the edge node layer after an IoT device generates a task; an intelligent task allocation module for calculating the optimal task allocation scheme after receiving a task and allocating the task to edge nodes for processing according to the optimal scheme; and a dynamic resource adjustment module for real-time monitoring of the resource load of edge nodes. When resource load imbalance occurs, resources are reallocated according to a dynamic resource adaptive adjustment strategy to ensure stable system operation. This achieves efficient collaborative scheduling and secure, reliable management of edge computing resources among IoT devices.
Description
技术领域Technical Field
本发明涉及物联网技术领域,更具体地说,本发明涉及一种物联网设备的区块链边缘计算资源协同调度系统。This invention relates to the field of Internet of Things (IoT) technology, and more specifically, to a blockchain edge computing resource collaborative scheduling system for IoT devices.
背景技术Background Technology
随着物联网技术的飞速发展,大量物联网设备产生的数据量呈爆炸式增长。传统的云计算模式在处理物联网数据时,面临着网络延迟高、带宽压力大以及数据隐私安全等问题。边缘计算通过在网络边缘侧部署计算资源,能够就近处理物联网设备产生的数据,有效降低延迟和带宽压力。然而,当前边缘计算资源调度存在资源利用率低、缺乏安全可信机制等问题。区块链技术具有去中心化、不可篡改、安全可信等特点,将区块链与边缘计算结合,为解决上述问题提供了新的思路,但目前尚未有成熟的物联网设备区块链边缘计算资源协同调度系统。With the rapid development of IoT technology, the amount of data generated by a large number of IoT devices is exploding. Traditional cloud computing models face problems such as high network latency, high bandwidth pressure, and data privacy and security when processing IoT data. Edge computing, by deploying computing resources at the network edge, can process data generated by IoT devices locally, effectively reducing latency and bandwidth pressure. However, current edge computing resource scheduling suffers from low resource utilization and a lack of secure and reliable mechanisms. Blockchain technology, with its decentralized, tamper-proof, secure, and reliable characteristics, offers a new approach to solving these problems when combined with edge computing. However, a mature blockchain-based edge computing resource collaborative scheduling system for IoT devices is currently lacking.
现有技术存在的不足:Shortcomings of existing technology:
传统物联网系统中,边缘计算资源管理分散,各边缘节点缺乏有效协同,难以根据实际需求灵活分配资源,导致资源利用率低。数据传输和存储过程存在安全隐患,数据易被篡改、伪造,且缺乏有效的追溯机制。区块链技术的引入较少且应用不深入。以往的任务分配方式往往缺乏对任务特性和资源状态的综合考量,可能导致任务处理延迟高、效率低。现有系统难以实时监测资源负载情况,当出现资源负载不均衡时,无法及时进行调整,影响系统整体性能和稳定性。In traditional IoT systems, edge computing resource management is decentralized, with edge nodes lacking effective collaboration and making it difficult to flexibly allocate resources according to actual needs, resulting in low resource utilization. Data transmission and storage processes pose security risks; data is easily tampered with and forged, and there is a lack of effective traceability mechanisms. The introduction and application of blockchain technology are limited. Previous task allocation methods often lack comprehensive consideration of task characteristics and resource status, potentially leading to high processing latency and low efficiency. Existing systems struggle to monitor resource load in real time, and when resource load imbalances occur, timely adjustments cannot be made, impacting overall system performance and stability.
针对上述问题,本发明提出一种解决方案。To address the above problems, this invention proposes a solution.
发明内容Summary of the Invention
为了克服现有技术的上述缺陷,本发明的实施例提供一种物联网设备的区块链边缘计算资源协同调度系统,通过一种物联网设备的区块链边缘计算资源协同调度系统,包括设备边缘组网模块,资源状态初始化模块,智能任务分配模块,动态资源调整模块,模块之间存在连接:To overcome the aforementioned deficiencies of the prior art, embodiments of the present invention provide a blockchain edge computing resource collaborative scheduling system for IoT devices. This system includes a device edge networking module, a resource status initialization module, an intelligent task allocation module, and a dynamic resource adjustment module, with connections between the modules.
设备边缘组网模块,用于在物联网设备密集区域部署边缘节点,并将边缘节点接入区块链网络,物联网设备通过无线网络与边缘节点连接,进行数据传输和任务提交;The device edge networking module is used to deploy edge nodes in areas with dense IoT devices and connect the edge nodes to the blockchain network. IoT devices connect to the edge nodes through a wireless network to transmit data and submit tasks.
资源状态初始化模块,用于各边缘节点初始化本地资源调度账本,记录初始资源状态,物联网设备产生任务后,将任务信息发送到边缘节点层;The resource status initialization module is used by each edge node to initialize the local resource scheduling ledger, record the initial resource status, and send the task information to the edge node layer after the IoT device generates a task.
智能任务分配模块,用于边缘节点接收到任务后,根据智能任务分配算法结合自身资源状态和其他节点的资源信息计算最优任务分配方案,并根据最优任务分配方案将任务分配到边缘节点进行处理;The intelligent task allocation module is used to calculate the optimal task allocation scheme based on the intelligent task allocation algorithm, combined with its own resource status and the resource information of other nodes, after the edge node receives a task, and then allocate the task to the edge node for processing according to the optimal task allocation scheme.
动态资源调整模块,用于实时监测边缘节点的资源负载情况,当出现资源负载不均衡时,按照动态资源自适应调整策略进行资源重新分配,实现系统稳定运行;以解决上述背景技术中提出的问题。The dynamic resource adjustment module is used to monitor the resource load of edge nodes in real time. When resource load imbalance occurs, resources are redistributed according to the dynamic resource adaptive adjustment strategy to achieve stable system operation, thereby solving the problems mentioned in the background technology.
为实现上述目的,本发明提供如下技术方案:To achieve the above objectives, the present invention provides the following technical solution:
一种物联网设备的区块链边缘计算资源协同调度系统,包括设备边缘组网模块,资源状态初始化模块,智能任务分配模块,动态资源调整模块,模块之间存在连接:A blockchain edge computing resource collaborative scheduling system for IoT devices includes a device edge networking module, a resource status initialization module, an intelligent task allocation module, and a dynamic resource adjustment module, with connections between the modules.
设备边缘组网模块,用于在物联网设备密集区域部署边缘节点,并将边缘节点接入区块链网络,物联网设备通过无线网络与边缘节点连接,进行数据传输和任务提交;The device edge networking module is used to deploy edge nodes in areas with dense IoT devices and connect the edge nodes to the blockchain network. IoT devices connect to the edge nodes through a wireless network to transmit data and submit tasks.
资源状态初始化模块,用于各边缘节点初始化本地资源调度账本,记录初始资源状态,物联网设备产生任务后,将任务信息发送到边缘节点层;The resource status initialization module is used by each edge node to initialize the local resource scheduling ledger, record the initial resource status, and send the task information to the edge node layer after the IoT device generates a task.
智能任务分配模块,用于边缘节点接收到任务后,根据智能任务分配算法结合自身资源状态和其他节点的资源信息计算最优任务分配方案,并根据最优任务分配方案将任务分配到边缘节点进行处理;The intelligent task allocation module is used to calculate the optimal task allocation scheme based on the intelligent task allocation algorithm, combined with its own resource status and the resource information of other nodes, after the edge node receives a task, and then allocate the task to the edge node for processing according to the optimal task allocation scheme.
动态资源调整模块,用于实时监测边缘节点的资源负载情况,当出现资源负载不均衡时,按照动态资源自适应调整策略进行资源重新分配,实现系统稳定运行。The dynamic resource adjustment module is used to monitor the resource load of edge nodes in real time. When resource load imbalance occurs, resources are redistributed according to the dynamic resource adaptive adjustment strategy to achieve stable system operation.
在一个优选的实施方式中,所述获取物联网设备密集区域过程如下:In a preferred embodiment, the process of obtaining the dense area of IoT devices is as follows:
通过地理信息系统技术对物联网设备密集区域进行边界界定,将物联网设备密集区域抽象为二维平面图形,获取其面积S;Geographic Information System (GIS) technology is used to define the boundaries of densely populated areas of IoT devices, and the densely populated areas of IoT devices are abstracted into two-dimensional planar graphics to obtain their area S.
将区域划分为n个网格单元,统计每个网格单元内的物联网设备数量Ni,则区域平均设备分布密度ρ计算公式为:Divide the region into n grid cells, and count the number of IoT devices N <sub>i</sub> in each grid cell. Then, the formula for calculating the average device distribution density ρ of the region is:
式中,ρ为区域平均设备分布密度,Ni是每个网格单元内的物联网设备数量,n为网格单元个数,S是物联网设备密集区域面积;In the formula, ρ is the average device distribution density in the region, Ni is the number of IoT devices in each grid cell, n is the number of grid cells, and S is the area of the dense IoT device region.
将物联网设备密集区域平均设备分布密度与预设的阈值进行对比分析,若物联网设备密集区域平均设备分布密度大于等于预设的分布密度阈值,则需要在物联网设备密集区域部署边缘节点;The average device distribution density in densely populated IoT device areas is compared with a preset threshold. If the average device distribution density in densely populated IoT device areas is greater than or equal to the preset distribution density threshold, then edge nodes need to be deployed in densely populated IoT device areas.
若物联网设备密集区域平均设备分布密度小于预设的分布密度阈值,则不需要在物联网设备密集区域部署边缘节点。If the average device density in a densely populated area of IoT devices is less than a preset density threshold, then it is not necessary to deploy edge nodes in such areas.
在一个优选的实施方式中,所述部署边缘节点过程如下:In a preferred embodiment, the process of deploying edge nodes is as follows:
随机分配部署m个边缘节点到网格单元交界处,并计算每个分配情况的综合分配评估系数,通过比较各个分配情况的综合分配评估系数,得到综合分配评估系数最大的分配情况,并根据该分配情况选择部署边缘节点位置。Randomly assign m edge nodes to the grid cell boundaries and calculate the comprehensive allocation evaluation coefficient for each assignment. By comparing the comprehensive allocation evaluation coefficients of each assignment, the assignment with the largest comprehensive allocation evaluation coefficient is obtained, and the deployment location of the edge nodes is selected based on this assignment.
在一个优选的实施方式中,获取综合分配评估系数过程如下:In a preferred embodiment, the process for obtaining the comprehensive allocation evaluation coefficients is as follows:
根据覆盖度函数和数据传输延迟构建评估指标体系,得到综合分配评估系数,具体计算公式如下:An evaluation index system is constructed based on the coverage function and data transmission delay to obtain the comprehensive allocation evaluation coefficient. The specific calculation formula is as follows:
式中,Scoreq是综合分配评估系数,C是覆盖度函数,Tlp是数据传输延迟,α1是覆盖度函数权重系数,α2是数据传输延迟权重系数。In the formula, Score q is the comprehensive allocation evaluation coefficient, C is the coverage function, T lp is the data transmission delay, α 1 is the coverage function weight coefficient, and α 2 is the data transmission delay weight coefficient.
在一个优选的实施方式中,边缘节点接收到任务后,根据智能任务分配算法结合自身资源状态和其他节点的资源信息计算最优任务分配方案过程如下:In a preferred embodiment, after receiving a task, the edge node calculates the optimal task allocation scheme based on its own resource status and the resource information of other nodes using an intelligent task allocation algorithm. The process is as follows:
边缘节点接收到物联网设备发送的任务数据包后,按照封装协议对任务信息进行解析,提取关键信息;After receiving the task data packet sent by the IoT device, the edge node parses the task information according to the encapsulation protocol and extracts key information.
查询本地资源调度账本,检查自身当前的计算资源状态,得到边缘节点计算能力;Query the local resource scheduling ledger to check the current computing resource status of the edge node and obtain its computing capabilities.
若自身资源无法满足任务需求,则进入资源信息交互阶段;If the resources available are insufficient to meet the task requirements, then the process enters the resource information exchange phase.
若自身资源满足任务需求,则作为一个任务执行节点参与后续的最优方案计算;If its own resources meet the task requirements, it will participate in the subsequent optimal solution calculation as a task execution node;
边缘节点通过区块链网络与其他边缘节点进行资源信息交互,每个边缘节点将自身当前的资源状态信息广播给其他节点,同时接收其他节点的资源状态信息;Edge nodes interact with other edge nodes through the blockchain network. Each edge node broadcasts its current resource status information to other nodes and receives resource status information from other nodes.
构建满足约束条件为任务执行时间小于等于设定的任务完成的时间期限,每个边缘节点的资源使用不能超过其可用资源的任务分配模型,设共有k个任务,xij为决策变量,当任务j分配给边缘节点i时,xij=1,否则xij=0;Construct a task allocation model that satisfies the constraints that the task execution time is less than or equal to the set task completion deadline and that the resource usage of each edge node cannot exceed its available resources. Suppose there are k tasks in total, and x<sub>ij</sub> is a decision variable. When task j is allocated to edge node i, x<sub>ij</sub> = 1, otherwise x<sub>ij</sub> = 0.
对于每个任务j分配到边缘节点i的情况,计算任务执行时间,并根据任务执行时间求解出最优任务分配方案。For each task j assigned to edge node i, calculate the task execution time and solve for the optimal task allocation scheme based on the task execution time.
在一个优选的实施方式中,计算任务执行时间的获取过程如下:In a preferred embodiment, the process of obtaining the task execution time is as follows:
根据任务的数据量和边缘节点与物联网设备之间的网络带宽计算数据传输时间;Calculate the data transmission time based on the data volume of the task and the network bandwidth between the edge node and the IoT device;
根据任务预计所需的CPU计算资源以及边缘节点计算能力获取任务计算时间;The task computation time is determined based on the estimated CPU computing resources required for the task and the computing capabilities of the edge nodes.
将数据传输时间与任务计算时间相加得到任务执行时间,任务执行时间计算公式如下:The task execution time is obtained by adding the data transmission time to the task computation time. The formula for calculating the task execution time is as follows:
式中,t是任务执行时间,m是边缘节点个数,k是任务数量,xij是决策变量,Cj是任务预计所需的CPU计算资源,ci是边缘节点的计算能力,bi是边缘节点与物联网设备之间的网络带宽,Dj是任务的数据量。In the formula, t is the task execution time, m is the number of edge nodes, k is the number of tasks, x <sub>ij </sub> is the decision variable, C<sub> j </sub> is the CPU computing resources expected to be required for the task, c <sub>i</sub> is the computing power of the edge node, b<sub> i </sub> is the network bandwidth between the edge node and the IoT device, and D <sub>j</sub> is the data volume of the task.
在一个优选的实施方式中,其中约束条件表达式如下:In a preferred embodiment, the constraint condition expression is as follows:
式中,tij是任务执行时间,xij是决策变量,m是边缘节点个数,k是任务数量,Tdeadline,j是设定任务完成的时间期限,Cj是任务预计所需的CPU计算资源,ci是边缘节点的计算能力,bi是边缘节点与物联网设备之间的网络带宽,Dj是任务的数据量。In the formula, t <sub>ij</sub> is the task execution time, x<sub>ij</sub> is the decision variable, m is the number of edge nodes, k is the number of tasks, T<sub>deadline</sub>j is the set time limit for task completion, C<sub>j</sub> is the CPU computing resources expected to be required for the task, c<sub> i </sub> is the computing power of the edge node, b <sub>i </sub> is the network bandwidth between the edge node and the IoT device, and D<sub>j</sub> is the data volume of the task.
在一个优选的实施方式中,覆盖度函数和数据传输延迟获取过程如下:In a preferred embodiment, the coverage function and data transmission latency are obtained as follows:
设边缘节点的有效覆盖半径为r,以候选位置为圆心,r为半径画圆,构建覆盖区域,为确保所有物联网设备都能被有效覆盖,引入覆盖度函数C:Let r be the effective coverage radius of the edge node. Draw a circle with the candidate location as the center and r as the radius to construct the coverage area. To ensure that all IoT devices are effectively covered, a coverage function C is introduced:
式中,C是覆盖度函数,S是物联网设备密集区域面积,Acovered,i为第i个网格单元被边缘节点覆盖的面积,n为网格单元个数;In the formula, C is the coverage function, S is the area of the dense area of IoT devices, A covered, i is the area covered by the edge node of the i-th grid cell, and n is the number of grid cells;
根据每个网格单元内的物联网设备数量计算物联网设备总数量,结合信号传输速度计算数据传输延迟,具体计算公式如下:The total number of IoT devices is calculated based on the number of IoT devices in each grid cell, and the data transmission latency is calculated in conjunction with the signal transmission speed. The specific calculation formula is as follows:
式中,Tlp是数据传输延迟,dlpj是各个物联网设备与距离最近的边缘节点的直线距离,信号传输速度为v,N是物联网设备总数量。In the formula, T <sub>lp</sub> is the data transmission delay, d <sub>lpj</sub> is the straight-line distance between each IoT device and the nearest edge node, the signal transmission speed is v, and N is the total number of IoT devices.
在一个优选的实施方式中,实时监测边缘节点的资源负载情况过程如下:In a preferred embodiment, the process of real-time monitoring of the resource load of edge nodes is as follows:
实时监测边缘节点的资源负载情况,获取边缘节点的CPU计算资源总量以及CPU计算资源使用量,计算可用CPU资源百分比,计算公式如下:Real-time monitoring of edge node resource load, obtaining the total CPU computing resources and CPU computing resource usage of edge nodes, and calculating the percentage of available CPU resources. The calculation formula is as follows:
式中,Pstorage是可用CPU资源百分比,Stotal是边缘节点的CPU计算资源总量,Sused是CPU计算资源使用量。In the formula, P storage is the percentage of available CPU resources, S total is the total CPU computing resources of the edge node, and S used is the CPU computing resource usage.
在一个优选的实施方式中,当出现资源负载不均衡时,按照动态资源自适应调整策略进行资源重新分配过程如下:In a preferred embodiment, when resource load imbalance occurs, the resource reallocation process according to the dynamic resource adaptive adjustment strategy is as follows:
对比各边缘节点的可用CPU资源百分比,若某节点可用CPU资源百分比超过系统平均负载的1.5倍,且至少有一个节点负载低于平均负载的50%,则判定计算资源负载不均衡;By comparing the percentage of available CPU resources of each edge node, if the percentage of available CPU resources of a node exceeds 1.5 times the average system load, and at least one node has a load below 50% of the average load, then the computing resource load is determined to be unbalanced.
利用基于优先级的抢占式调度算法进行资源重新分配,当高优先级任务请求资源时,若当前节点资源不足,暂时中断低优先级任务,重新分配CPU核心计算资源,确保高优先级任务优先执行。Resource reallocation is achieved using a priority-based preemptive scheduling algorithm. When a high-priority task requests resources, if the current node does not have sufficient resources, the low-priority task is temporarily interrupted, and CPU core computing resources are reallocated to ensure that the high-priority task is executed first.
本发明一种物联网设备的区块链边缘计算资源协同调度系统的技术效果和优点:The technical effects and advantages of the blockchain edge computing resource collaborative scheduling system for IoT devices of the present invention are as follows:
1.本发明通过智能任务分配模块精确评估任务资源需求,并结合边缘节点资源状态进行最优分配,同时动态资源调整模块对不均衡资源进行优化,使系统能够充分利用边缘计算资源,减少资源浪费,显著提高资源利用率。边缘节点靠近物联网设备,在本地进行数据处理和任务执行,减少了数据传输到云端的过程,大大降低了数据传输延迟。设备-边缘组网模块保障了数据传输的高效性,满足了物联网应用对实时性的要求,如工业控制、智能交通等场景下的实时决策需求。区块链技术的应用使得数据记录在分布式账本中,不可篡改且可追溯,数据记录与共识模块确保各节点数据一致,有效防止数据被恶意篡改和伪造,保障了物联网数据的安全性和可信性,增强了用户对系统的信任。1. This invention uses an intelligent task allocation module to accurately assess task resource requirements and optimize allocation based on edge node resource status. Simultaneously, a dynamic resource adjustment module optimizes unbalanced resources, enabling the system to fully utilize edge computing resources, reducing waste and significantly improving resource utilization. Edge nodes are located close to IoT devices, performing data processing and task execution locally, reducing data transmission to the cloud and greatly lowering latency. The device-edge networking module ensures efficient data transmission, meeting the real-time requirements of IoT applications, such as real-time decision-making in industrial control and intelligent transportation scenarios. The application of blockchain technology ensures data is recorded in a distributed ledger, making it immutable and traceable. The data recording and consensus module ensures data consistency across nodes, effectively preventing malicious tampering and forgery, guaranteeing the security and trustworthiness of IoT data, and enhancing user trust in the system.
2.本发明通过动态资源调整模块实时监测资源负载,及时发现并解决资源不均衡问题,避免因部分节点负载过高而导致系统崩溃。同时,智能任务分配和数据安全机制也保障了任务的顺利执行和数据的完整性,从而提升了系统的稳定性和可靠性,减少了系统故障和服务中断的情况。系统各模块的设计具有良好的灵活性,能够适应不同规模和类型的物联网设备密集区域。无论是新增物联网设备还是扩展边缘节点,设备-边缘组网模块和智能任务分配模块等都能快速适应变化,实现资源的重新配置和任务的合理调度,便于系统的扩展和升级。2. This invention uses a dynamic resource adjustment module to monitor resource load in real time, promptly identifying and resolving resource imbalances to prevent system crashes caused by excessive load on some nodes. Simultaneously, intelligent task allocation and data security mechanisms ensure smooth task execution and data integrity, thereby improving system stability and reliability and reducing system failures and service interruptions. The design of each module in the system offers good flexibility, adapting to densely populated areas with varying sizes and types of IoT devices. Whether adding new IoT devices or expanding edge nodes, the device-edge networking module and intelligent task allocation module can quickly adapt to changes, enabling resource reconfiguration and rational task scheduling, facilitating system expansion and upgrades.
附图说明Attached Figure Description
图1为本发明一种物联网设备的区块链边缘计算资源协同调度系统结构示意图。Figure 1 is a schematic diagram of the structure of a blockchain edge computing resource collaborative scheduling system for IoT devices according to the present invention.
具体实施方式Detailed Implementation
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整的描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
实施例1,图1给出了本发明一种物联网设备的区块链边缘计算资源协同调度系统。Example 1, Figure 1 shows a blockchain edge computing resource collaborative scheduling system for IoT devices according to the present invention.
设备边缘组网模块,用于在物联网设备密集区域部署边缘节点,并将边缘节点接入区块链网络,物联网设备通过无线网络与边缘节点连接,进行数据传输和任务提交;The device edge networking module is used to deploy edge nodes in areas with dense IoT devices and connect the edge nodes to the blockchain network. IoT devices connect to the edge nodes through a wireless network to transmit data and submit tasks.
需要对物联网设备密集区域进行评估,确定该区域的地理范围、物联网设备的分布密度、边缘节点覆盖度函数和数据传输延迟;It is necessary to assess areas with high density of IoT devices to determine the geographical extent of the area, the distribution density of IoT devices, the edge node coverage function, and the data transmission latency.
根据区域评估的结果,选择合适的位置部署边缘节点过程如下:Based on the regional assessment results, the process of selecting suitable locations to deploy edge nodes is as follows:
通过地理信息系统(GIS)技术,对物联网设备密集区域进行边界界定,将物联网设备密集区域抽象为二维平面图形(如多边形),获取其面积S;Using Geographic Information System (GIS) technology, the boundaries of densely populated areas of IoT devices are defined, and the densely populated areas of IoT devices are abstracted into two-dimensional planar graphics (such as polygons) to obtain their area S.
将区域划分为n个网格单元,统计每个网格单元内的物联网设备数量Ni,则区域平均设备分布密度ρ计算公式为:Divide the region into n grid cells, and count the number of IoT devices N <sub>i</sub> in each grid cell. Then, the formula for calculating the average device distribution density ρ of the region is:
式中,ρ为区域平均设备分布密度,Ni是每个网格单元内的物联网设备数量,n为网格单元个数,S是物联网设备密集区域面积。In the formula, ρ is the average device distribution density of the region, Ni is the number of IoT devices in each grid cell, n is the number of grid cells, and S is the area of the dense IoT device region.
将物联网设备密集区域平均设备分布密度与预设的阈值进行对比分析,若物联网设备密集区域平均设备分布密度大于等于预设的分布密度阈值,则需要在物联网设备密集区域部署边缘节点;The average device distribution density in densely populated IoT device areas is compared with a preset threshold. If the average device distribution density in densely populated IoT device areas is greater than or equal to the preset distribution density threshold, then edge nodes need to be deployed in densely populated IoT device areas.
若物联网设备密集区域平均设备分布密度小于预设的分布密度阈值,则不需要在物联网设备密集区域部署边缘节点。If the average device density in a densely populated area of IoT devices is less than a preset density threshold, then it is not necessary to deploy edge nodes in such areas.
随机分配部署m个边缘节点到网格单元交界处,并计算每个分配情况的综合分配评估系数,根据每个分配情况的综合分配评估系数选择部署边缘节点位置,其中获取综合分配评估系数过程如下:Randomly assign m edge nodes to the grid cell boundaries and calculate the comprehensive allocation evaluation coefficient for each assignment. Select the deployment location of the edge nodes based on the comprehensive allocation evaluation coefficient for each assignment. The process of obtaining the comprehensive allocation evaluation coefficient is as follows:
设边缘节点的有效覆盖半径为r,以候选位置为圆心,r为半径画圆,构建覆盖区域,为确保所有物联网设备都能被有效覆盖,引入覆盖度函数C:Let r be the effective coverage radius of the edge node. Draw a circle with the candidate location as the center and r as the radius to construct the coverage area. To ensure that all IoT devices are effectively covered, a coverage function C is introduced:
式中,C是覆盖度函数,S是物联网设备密集区域面积,Acovered,i为第i个网格单元被边缘节点覆盖的面积,n为网格单元个数。In the formula, C is the coverage function, S is the area of the dense area of IoT devices, A covered, i is the area covered by the edge node of the i-th grid cell, and n is the number of grid cells.
获取各个物联网设备到各个边缘节点的直线距离,并通过比较直线距离的大小选出各个物联网设备距离最近的边缘节点以及各个物联网设备与距离最近的边缘节点的直线距离,根据每个网格单元内的物联网设备数量计算物联网设备总数量,结合信号传输速度计算数据传输延迟,具体计算公式如下:The system obtains the straight-line distance from each IoT device to each edge node, selects the nearest edge node for each IoT device by comparing the straight-line distances, and calculates the straight-line distance between each IoT device and its nearest edge node. It also calculates the total number of IoT devices based on the number of IoT devices in each grid cell, and calculates the data transmission delay by combining this with the signal transmission speed. The specific calculation formula is as follows:
式中,Tlp是数据传输延迟,dlpj是各个物联网设备与距离最近的边缘节点的直线距离,信号传输速度为v,N是物联网设备总数量。In the formula, T <sub>lp</sub> is the data transmission delay, d <sub>lpj</sub> is the straight-line distance between each IoT device and the nearest edge node, the signal transmission speed is v, and N is the total number of IoT devices.
需要说明的是,各个物联网设备的任务可能需要多个边缘节点处理,但多个边缘节点包括最近的边缘节点,这里只考虑最近的边缘节点。只考虑最近的边缘节点,可以大大简化数据传输延迟的计算过程。无需考虑多个边缘节点与物联网设备之间的复杂关系和不同传输路径的影响,降低了计算量和系统的复杂性,提高了计算效率和系统的可操作性。可以最大程度地减少数据在网络中传输的距离,从而降低传输过程中的信号衰减和延迟。因为信号传输速度是有限的,传输距离越短,数据到达边缘节点的时间就越短,能更好地满足物联网应用对实时性的要求。It's important to note that while tasks for various IoT devices may require processing by multiple edge nodes, this includes the nearest edge node; here, we only consider the nearest edge node. Focusing solely on the nearest edge node significantly simplifies the calculation of data transmission latency. It eliminates the need to consider the complex relationships between multiple edge nodes and IoT devices, as well as the impact of different transmission paths, reducing computational load and system complexity while improving computational efficiency and system operability. It also minimizes the distance data travels within the network, thereby reducing signal attenuation and latency during transmission. Since signal transmission speed is finite, shorter transmission distances mean shorter data arrival times at edge nodes, better meeting the real-time requirements of IoT applications.
根据覆盖度函数和数据传输延迟构建评估指标体系,得到综合分配评估系数,具体计算公式如下:An evaluation index system is constructed based on the coverage function and data transmission delay to obtain the comprehensive allocation evaluation coefficient. The specific calculation formula is as follows:
式中,Scoreq是综合分配评估系数,C是覆盖度函数,Tlp是数据传输延迟,α1是覆盖度函数权重系数,α2是数据传输延迟权重系数。In the formula, Score q is the comprehensive allocation evaluation coefficient, C is the coverage function, T lp is the data transmission delay, α 1 is the coverage function weight coefficient, and α 2 is the data transmission delay weight coefficient.
其中,需要说明的是,α1,α2均大于0,根据历史数据分析覆盖度函数和数据传输延迟重要性程度得到。It should be noted that α1 and α2 are both greater than 0, and are obtained by analyzing the coverage function and the importance of data transmission delay based on historical data.
通过比较各个分配情况的综合分配评估系数,得到综合分配评估系数最大的分配情况,并根据该分配情况选择部署边缘节点位置。By comparing the comprehensive allocation evaluation coefficients of each allocation scenario, the allocation scenario with the highest comprehensive allocation evaluation coefficient is obtained, and the deployment location of the edge node is selected based on this allocation scenario.
资源状态初始化模块,用于各边缘节点初始化本地资源调度账本,记录初始资源状态,物联网设备产生任务后,将任务信息发送到边缘节点层;The resource status initialization module is used by each edge node to initialize the local resource scheduling ledger, record the initial resource status, and send the task information to the edge node layer after the IoT device generates a task.
各边缘节点初始化本地资源调度账本,记录初始资源状态过程如下:Each edge node initializes its local resource scheduling ledger and records the initial resource status as follows:
边缘节点启动时,通过调用系统底层的硬件检测接口,获取计算资源、存储资源和网络资源的初始配置信息;When an edge node starts up, it obtains the initial configuration information of computing resources, storage resources, and network resources by calling the underlying hardware detection interface of the system.
读取边缘节点操作系统和相关服务的配置参数,确定已分配给系统自身运行的资源量;Read the configuration parameters of the edge node's operating system and related services to determine the amount of resources allocated to the system's own operation;
根据获取的硬件配置信息和系统占用资源量,计算出初始的可用资源状态;Based on the obtained hardware configuration information and system resource usage, the initial available resource status is calculated.
将计算得到的初始资源状态信息采用键值对(Key-Value)与列表相结合的数据结构,写入本地资源调度账本;The calculated initial resource status information is written into the local resource scheduling ledger using a data structure that combines key-value pairs and lists.
同时,为每条资源记录分配唯一的标识符(UUID),便于后续对资源状态的查询、更新和管理。At the same time, a unique identifier (UUID) is assigned to each resource record to facilitate subsequent querying, updating and management of resource status.
物联网设备产生任务后,将任务信息发送到边缘节点层过程如下:After an IoT device generates a task, the process of sending the task information to the edge node layer is as follows:
物联网设备在运行过程中,根据自身功能和用户指令产生任务,任务信息包含多个关键字段:During operation, IoT devices generate tasks based on their own functions and user instructions. The task information includes several key fields:
任务标识:为每个任务生成唯一的标识号,用于在系统中区分不同任务;Task Identifier: Generate a unique identifier for each task to distinguish different tasks in the system;
任务类型:明确任务的性质,如数据采集任务、数据处理任务、设备控制任务等;Task type: Define the nature of the task, such as data acquisition task, data processing task, equipment control task, etc.;
数据需求:说明任务所需处理的数据来源、数据格式、数据量大小信息;例如,数据采集任务需指定采集的传感器类型及采样频率;数据处理任务需提供待处理数据的存储位置和格式要求;Data requirements: Specify the data source, data format, and data volume required for the task; for example, a data acquisition task needs to specify the type of sensor and sampling frequency; a data processing task needs to provide the storage location and format requirements of the data to be processed.
计算需求:量化任务对计算资源的需求,任务对计算资源的需求包括任务预计所需的CPU计算资源;Computational requirements: Quantify the computational resource requirements of the task, which include the CPU computational resources that the task is expected to require;
通过任务复杂度评估模型计算得出任务预计所需的CPU计算资源,过程如下:假设任务复杂度为T,数据量为D,则任务预计所需的CPU计算资源计算公式如下:The estimated CPU computing resources required for a task are calculated using a task complexity assessment model. The process is as follows: Assuming the task complexity is T and the data volume is D, the formula for calculating the estimated CPU computing resources required for the task is as follows:
Cj=αT+βD;C<sub> j </sub> = α<sub>T</sub> + β<sub>D</sub>;
其中,α和β为根据实际情况调整的权重系数,Cj为任务预计所需的CPU计算资源;Where α and β are weighting coefficients adjusted according to the actual situation, and Cj is the CPU computing resources expected to be required for the task;
需要说明的是,在物联网设备产生的各种任务中,数据处理是关键环节,而CPU是进行数据处理的核心组件。在任务分配的初始阶段或某些特定场景下,为了使问题更容易处理和分析,简化模型是必要的。只关注CPU计算资源需求,不考虑其他资源需求,可以将复杂的多资源约束问题转化为单一资源约束问题,大大降低了任务分配算法的复杂度,便于快速找到可行的分配方案。例如,在一些简单的物联网监测系统中,任务主要是对传感器数据进行简单的计算和分析,此时CPU计算资源可能是主要的限制因素,忽略其他资源需求可以简化计算过程,提高任务分配的效率。It's important to note that data processing is a crucial step in the various tasks generated by IoT devices, and the CPU is the core component for data processing. In the initial stages of task allocation or in certain specific scenarios, simplifying the model is necessary to make the problem easier to handle and analyze. Focusing only on CPU computing resource requirements, without considering other resource requirements, can transform complex multi-resource-constrained problems into single-resource-constrained problems, significantly reducing the complexity of task allocation algorithms and facilitating the rapid finding of feasible allocation solutions. For example, in some simple IoT monitoring systems, the main task is to perform simple calculations and analyses on sensor data. In this case, CPU computing resources may be the primary limiting factor; ignoring other resource requirements can simplify the calculation process and improve the efficiency of task allocation.
实时性要求:设定任务完成的时间期限,用Tdeadline,j表示;Real-time requirement: Set the time limit for task completion, denoted by T deadline,j ;
将生成的任务信息按照特定的通信协议、进行封装;The generated task information is encapsulated according to a specific communication protocol;
在封装过程中,添加源设备地址(物联网设备自身的网络地址)、目标边缘节点地址(根据设备与边缘节点的配对关系或负载均衡策略确定)等通信控制信息,形成完整的任务数据包;During the encapsulation process, communication control information such as the source device address (the network address of the IoT device itself) and the target edge node address (determined according to the pairing relationship between the device and the edge node or the load balancing strategy) are added to form a complete task data packet.
物联网设备通过无线网络将封装好的任务数据包发送至边缘节点层,在发送过程中,采用重传机制确保任务信息的可靠传输,若在规定时间内未收到边缘节点的确认响应,则重新发送任务数据包,重传次数可根据网络状况动态调整,同时,记录任务信息的发送时间,用于后续的传输延迟计算和任务时效性判断。IoT devices send encapsulated task data packets to the edge node layer via wireless network. During the transmission process, a retransmission mechanism is used to ensure reliable transmission of task information. If no acknowledgment response is received from the edge node within a specified time, the task data packet is retransmitted. The number of retransmissions can be dynamically adjusted according to network conditions. At the same time, the transmission time of the task information is recorded for subsequent transmission delay calculation and task timeliness judgment.
智能任务分配模块,用于边缘节点接收到任务后,根据智能任务分配算法结合自身资源状态和其他节点的资源信息计算最优任务分配方案,并根据最优任务分配方案将任务分配到边缘节点进行处理;The intelligent task allocation module is used to calculate the optimal task allocation scheme based on the intelligent task allocation algorithm, combined with its own resource status and the resource information of other nodes, after the edge node receives a task, and then allocate the task to the edge node for processing according to the optimal task allocation scheme.
边缘节点接收到物联网设备发送的任务数据包后,首先按照封装协议对任务信息进行解析,提取关键信息;After receiving the task data packet sent by the IoT device, the edge node first parses the task information according to the encapsulation protocol and extracts key information;
然后,查询本地资源调度账本,检查自身当前的计算资源状态,得到边缘节点计算能力;Then, query the local resource scheduling ledger to check its current computing resource status and obtain the computing capabilities of the edge node;
若自身资源无法满足任务需求,则进入资源信息交互阶段;若自身资源满足任务需求,则作为一个潜在的任务执行节点参与后续的最优方案计算;If its own resources cannot meet the task requirements, it will enter the resource information exchange stage; if its own resources meet the task requirements, it will participate in the subsequent optimal solution calculation as a potential task execution node.
边缘节点通过区块链网络与其他边缘节点进行资源信息交互,每个边缘节点将自身当前的资源状态信息(从本地资源调度账本获取)广播给其他节点,同时接收其他节点的资源状态信息;Edge nodes interact with other edge nodes through the blockchain network. Each edge node broadcasts its current resource status information (obtained from the local resource scheduling ledger) to other nodes, while also receiving resource status information from other nodes.
需要说明的是,为确保信息的实时性和准确性,可设定一个信息更新周期,定期进行资源信息的交互和更新;It should be noted that, in order to ensure the timeliness and accuracy of information, an information update cycle can be set to periodically exchange and update resource information;
以最小化任务完成时间、满足任务实时性和cpu计算资源要求为目标,构建任务分配模型,设共有k个任务,xij为决策变量,当任务j分配给边缘节点i时,xij=1,否则xij=0;To minimize task completion time, meet task real-time requirements, and satisfy CPU computing resource requirements, a task allocation model is constructed. There are k tasks in total, and x <sub>ij </sub> is a decision variable. When task j is allocated to edge node i, x <sub>ij</sub> = 1; otherwise, x<sub>ij</sub> = 0.
对于每个任务j分配到边缘节点i的情况,计算任务执行时间,并根据任务执行时间求解出最优任务分配方案,计算任务执行时间的获取过程如下:For each task j assigned to edge node i, the task execution time is calculated, and the optimal task allocation scheme is determined based on the task execution time. The process of calculating the task execution time is as follows:
根据任务的数据量和边缘节点与物联网设备之间的网络带宽计算数据传输时间;Calculate the data transmission time based on the data volume of the task and the network bandwidth between the edge node and the IoT device;
根据任务预计所需的CPU计算资源以及边缘节点计算能力获取任务计算时间;The task computation time is determined based on the estimated CPU computing resources required for the task and the computing capabilities of the edge nodes.
将数据传输时间与任务计算时间相加得到任务执行时间,任务执行时间计算公式如下:The task execution time is obtained by adding the data transmission time to the task computation time. The formula for calculating the task execution time is as follows:
式中,t是任务执行时间,m是边缘节点个数,k是任务数量,xij是决策变量,Cj是任务预计所需的CPU计算资源,ci是边缘节点的计算能力,bi是边缘节点与物联网设备之间的网络带宽,Dj是任务的数据量;In the formula, t is the task execution time, m is the number of edge nodes, k is the number of tasks, x <sub>ij </sub> is the decision variable, C<sub> j </sub> is the CPU computing resources expected to be required for the task, c<sub>i</sub> is the computing power of the edge node, b<sub> i </sub> is the network bandwidth between the edge node and the IoT device, and D <sub>j</sub> is the data volume of the task.
且需要满足的约束条件为:任务执行时间需小于等于设定的任务完成的时间期限,每个边缘节点的资源使用不能超过其可用资源;Furthermore, the following constraints must be met: the task execution time must be less than or equal to the set task completion time limit, and the resource usage of each edge node cannot exceed its available resources.
其中约束条件表达式如下: The constraint expressions are as follows:
式中,tij是任务执行时间,xij是决策变量,m是边缘节点个数,k是任务数量,Tdeadline,j是设定任务完成的时间期限,Cj是任务预计所需的CPU计算资源,ci是边缘节点的计算能力,bi是边缘节点与物联网设备之间的网络带宽,Dj是任务的数据量。In the formula, t <sub>ij</sub> is the task execution time, x<sub>ij</sub> is the decision variable, m is the number of edge nodes, k is the number of tasks, T<sub>deadline</sub>j is the set time limit for task completion, C<sub>j</sub> is the CPU computing resources expected to be required for the task, c<sub> i </sub> is the computing power of the edge node, b <sub>i </sub> is the network bandwidth between the edge node and the IoT device, and D<sub>j</sub> is the data volume of the task.
在满足时间期限约束和资源约束的条件下,通过最小化任务执行时间求解出最优的任务分配方案;Under the conditions of satisfying time and resource constraints, the optimal task allocation scheme is solved by minimizing the task execution time;
根据计算得到的最优任务分配方案,边缘节点将任务分配到相应的边缘节点进行处理。Based on the calculated optimal task allocation scheme, the edge nodes will assign tasks to the corresponding edge nodes for processing.
需要说明的是,分配任务的边缘节点向被分配任务的边缘节点发送任务分配指令,包含任务的详细信息,被分配任务的边缘节点接收到指令后,从物联网设备获取所需的数据(如果需要),并开始执行任务,同时,各边缘节点实时更新本地资源调度账本,记录任务执行过程中的资源使用情况。It should be noted that the edge node that assigns the task sends a task assignment instruction to the edge node to which the task is assigned, which includes detailed information about the task. After receiving the instruction, the edge node to which the task is assigned obtains the necessary data from the IoT device (if needed) and begins to execute the task. At the same time, each edge node updates its local resource scheduling ledger in real time to record the resource usage during the task execution process.
动态资源调整模块,用于实时监测边缘节点的资源负载情况,当出现资源负载不均衡时,按照动态资源自适应调整策略进行资源重新分配,保障系统稳定运行。The dynamic resource adjustment module is used to monitor the resource load of edge nodes in real time. When resource load imbalance occurs, resources are redistributed according to the dynamic resource adaptive adjustment strategy to ensure stable system operation.
实时监测边缘节点的资源负载情况,获取边缘节点的CPU计算资源总量以及CPU计算资源使用量,计算可用CPU资源百分比,计算公式如下:Real-time monitoring of edge node resource load, obtaining the total CPU computing resources and CPU computing resource usage of edge nodes, and calculating the percentage of available CPU resources. The calculation formula is as follows:
式中,Pstorage是可用CPU资源百分比,Stotal是边缘节点的CPU计算资源总量,Sused是CPU计算资源使用量。In the formula, P storage is the percentage of available CPU resources, S total is the total CPU computing resources of the edge node, and S used is the CPU computing resource usage.
对比各边缘节点的可用CPU资源百分比,若某节点可用CPU资源百分比超过系统平均负载的1.5倍,且至少有一个节点负载低于平均负载的50%,则判定计算资源负载不均衡;By comparing the percentage of available CPU resources of each edge node, if the percentage of available CPU resources of a node exceeds 1.5 times the average system load, and at least one node has a load below 50% of the average load, then the computing resource load is determined to be unbalanced.
利用基于优先级的抢占式调度算法进行资源重新分配,当高优先级任务请求资源时,若当前节点资源不足,暂时中断低优先级任务,重新分配CPU核心计算资源,确保高优先级任务优先执行。Resource reallocation is achieved using a priority-based preemptive scheduling algorithm. When a high-priority task requests resources, if the current node does not have sufficient resources, the low-priority task is temporarily interrupted, and CPU core computing resources are reallocated to ensure that the high-priority task is executed first.
上述公式均是去量纲取其数值计算,公式是由采集大量数据进行软件模拟得到最近真实情况的一个公式,公式中的预设参数由本领域的技术人员根据实际情况进行设置。The above formulas are all dimensionless calculations. The formulas are derived from software simulations based on a large amount of collected data to obtain the most recent real-world results. The preset parameters in the formulas are set by those skilled in the art according to the actual situation.
上述实施例,可以全部或部分地通过软件、硬件、固件或其他任意组合来实现。当使用软件实现时,上述实施例可以全部或部分地以计算机程序产品的形式实现。The above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any other combination thereof. When implemented using software, the above embodiments can be implemented, in whole or in part, in the form of a computer program product.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的模块及算法步骤,能够以电子硬件,或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art will recognize that the modules and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。In addition, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
最后:以上所述仅为本发明的优选实施例而已,并不用于限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。In conclusion, the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims (6)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202510710988.9A CN120583086B (en) | 2025-05-29 | 2025-05-29 | A blockchain edge computing resource collaborative scheduling system for IoT devices |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202510710988.9A CN120583086B (en) | 2025-05-29 | 2025-05-29 | A blockchain edge computing resource collaborative scheduling system for IoT devices |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN120583086A CN120583086A (en) | 2025-09-02 |
| CN120583086B true CN120583086B (en) | 2026-01-23 |
Family
ID=96857287
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202510710988.9A Active CN120583086B (en) | 2025-05-29 | 2025-05-29 | A blockchain edge computing resource collaborative scheduling system for IoT devices |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN120583086B (en) |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119646084A (en) * | 2024-10-22 | 2025-03-18 | 重庆大学 | A vehicle-mounted edge grid data scheduling system based on the combination of blockchain and load balancing |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111638955A (en) * | 2020-05-27 | 2020-09-08 | 深圳市易链信息技术有限公司 | Scenic spot management service method, system and readable storage medium based on edge calculation |
| WO2022061599A1 (en) * | 2020-09-23 | 2022-03-31 | 中国科学院深圳先进技术研究院 | Blockchain-based distributed internet of things instruction management method and system |
| CN115459901B (en) * | 2022-07-27 | 2025-06-06 | 青岛亿联信息科技股份有限公司 | Building Internet of Things data management method based on blockchain multi-chain and attribute encryption |
| CN116433250A (en) * | 2023-04-13 | 2023-07-14 | 晓数绿景(北京)科技发展有限公司 | A carbon asset data management system based on the Internet of Things and blockchain technology |
| CN117395281A (en) * | 2023-10-26 | 2024-01-12 | 云南电网有限责任公司输电分公司 | An intelligent multi-node online monitoring method and system based on edge computing |
| CN119315618A (en) * | 2024-08-30 | 2025-01-14 | 贵州电网有限责任公司 | A method and system for accessing edge of massive resources suitable for grid-based power grid |
| CN119172051A (en) * | 2024-09-24 | 2024-12-20 | 安徽聚谦网络科技有限公司 | Internet of things gateway and gateway control method |
| CN119917235B (en) * | 2024-12-31 | 2025-09-02 | 深圳市尺素科技有限公司 | An operation and maintenance method and system for a multi-cloud management platform based on cloud-edge collaboration |
-
2025
- 2025-05-29 CN CN202510710988.9A patent/CN120583086B/en active Active
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119646084A (en) * | 2024-10-22 | 2025-03-18 | 重庆大学 | A vehicle-mounted edge grid data scheduling system based on the combination of blockchain and load balancing |
Also Published As
| Publication number | Publication date |
|---|---|
| CN120583086A (en) | 2025-09-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN117997906B (en) | Node computing resource allocation method, network switching subsystem and intelligent computing platform | |
| US10848428B2 (en) | Method for dynamically allocating resources in an SDN/NFV network based on load balancing | |
| CN109218355B (en) | Load balancing engine, client, distributed computing system and load balancing method | |
| Chen et al. | Latency minimization for mobile edge computing networks | |
| WO2023039965A1 (en) | Cloud-edge computing network computational resource balancing and scheduling method for traffic grooming, and system | |
| CN107404523A (en) | Cloud platform adaptive resource dispatches system and method | |
| CN117724853B (en) | Data processing method and device based on artificial intelligence | |
| CN118069073B (en) | Data storage space dynamic adjustment method, storage subsystem and intelligent computing platform | |
| Li et al. | Placement of edge server based on task overhead in mobile edge computing environment | |
| CN114625500B (en) | Method and application of topology-aware microservice application scheduling in cloud environment | |
| CN115794373A (en) | Calculation force resource hierarchical scheduling method, system, electronic equipment and storage medium | |
| CN117118720A (en) | High-performance Internet of things linkage processing system based on edge calculation | |
| Kumar et al. | Novel dynamic scaling algorithm for energy efficient cloud computing | |
| Wen et al. | Load balancing job assignment for cluster-based cloud computing | |
| CN117857559A (en) | Metropolitan area optical network task unloading method based on average field game and edge server | |
| CA2857727C (en) | Computer-implemented method, computer system, computer program product to manage traffic in a network | |
| CN113259175B (en) | Security service and function service combined arrangement method in edge computing environment | |
| Li et al. | A cost‐efficient and QoS‐aware adaptive placement of applications in fog computing | |
| Xiao et al. | A dynamic and resource sharing virtual network mapping algorithm | |
| Xiao et al. | Joint service deployment and task offloading for datacenters with edge heterogeneous servers | |
| CN120583086B (en) | A blockchain edge computing resource collaborative scheduling system for IoT devices | |
| US10986036B1 (en) | Method and apparatus for orchestrating resources in multi-access edge computing (MEC) network | |
| CN120653432A (en) | Smart city data processing method, device, node and storage medium | |
| CN114443247A (en) | Task scheduling method and device | |
| CN119440821A (en) | Computing resource deployment method, device and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |