CN111158612B - A kind of edge storage acceleration method, device and device for collaborative mobile device - Google Patents
A kind of edge storage acceleration method, device and device for collaborative mobile device Download PDFInfo
- Publication number
- CN111158612B CN111158612B CN202010252903.4A CN202010252903A CN111158612B CN 111158612 B CN111158612 B CN 111158612B CN 202010252903 A CN202010252903 A CN 202010252903A CN 111158612 B CN111158612 B CN 111158612B
- Authority
- CN
- China
- Prior art keywords
- mobile device
- data
- storage
- edge
- mobile devices
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/061—Improving I/O performance
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0614—Improving the reliability of storage systems
- G06F3/0619—Improving the reliability of storage systems in relation to data integrity, e.g. data losses, bit errors
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0655—Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0683—Plurality of storage devices
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本发明一个或多个实施例涉及边缘存储技术领域,尤其涉及一种协同移动设备的边缘存储加速方法、装置及设备。One or more embodiments of the present invention relate to the field of edge storage technologies, and in particular, to a method, apparatus, and device for accelerating edge storage in coordination with mobile devices.
背景技术Background technique
越来越多的移动设备用于收集和处理大量数据,一方面,在军事领域,士兵通过战术手持终端、UAV和UGV(无人地面车辆)等移动设备上传和共享数据。由于可能会造成人身伤亡,需要备份个人数据,以避免数据丢失。另一方面,在民用领域,移动设备可用于存储灾难或紧急情况的数据以执行实时灾情监视。数据存储方式。然而,解决协同存储问题仍然存在一些障碍。第一,与传统存储设备相比,边缘移动设备具有独特的特性。与服务器、计算机和其他传统存储设备的相对稳定的网络结构不同,由移动设备组成的边缘的网络拓扑是高度动态的。对于传统的存储问题,为了确保数据存储的可用性,通常使用分布式的数据备份方法。但是,随着移动设备资源的逐渐消耗,不正确的副本数量选择和不合理的备份数据分配都可能导致数据备份失败。副本数量的选择和备份数据的分配应随边缘移动设备资源的变化而调整。完成协同存储的时间是关键指标。一方面,随着协同存储时间的增长,很可能导致存储故障。另一方面,随着时间成本的增加,消耗了更多的能量。因此,低延迟时间的要求至关重要且值得关注。设计的算法应尽快收敛,以减少移动设备的时间开销和能耗。现有技术无法考虑高度动态的网络拓扑,存储可靠性低,数据备份失败率高,协同存储时间长,延迟高。More and more mobile devices are used to collect and process large amounts of data. On the one hand, in the military field, soldiers upload and share data through mobile devices such as tactical handheld terminals, UAVs and UGVs (unmanned ground vehicles). Personal data needs to be backed up to avoid data loss due to the potential for personal injury or death. On the other hand, in the civilian sector, mobile devices can be used to store disaster or emergency data to perform real-time disaster monitoring. Data storage method. However, there are still some obstacles to solving the co-storage problem. First, edge mobile devices have unique characteristics compared to traditional storage devices. Unlike the relatively stable network structures of servers, computers, and other traditional storage devices, the network topology at the edge consisting of mobile devices is highly dynamic. For traditional storage problems, in order to ensure the availability of data storage, a distributed data backup method is usually used. However, with the gradual consumption of mobile device resources, incorrect selection of the number of copies and unreasonable allocation of backup data may lead to data backup failure. The choice of the number of replicas and the allocation of backup data should be adjusted as the resources of the edge mobile device change. The time to complete the collaborative store is the key metric. On the one hand, with the growth of cooperative storage time, it is likely to lead to storage failure. On the other hand, as the time cost increases, more energy is consumed. Therefore, the requirement of low latency is critical and worthy of attention. The designed algorithm should converge as soon as possible to reduce the time overhead and energy consumption of mobile devices. The prior art cannot consider highly dynamic network topology, low storage reliability, high data backup failure rate, long collaborative storage time, and high latency.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本发明一个或多个实施例的目的在于提出一种协同移动设备的边缘存储加速方法、装置及设备,以解决现有技术无法考虑高度动态的网络拓扑,存储可靠性低,数据备份失败率高,协同存储时间长,延迟高的问题。In view of this, the purpose of one or more embodiments of the present invention is to provide an edge storage acceleration method, device and device for collaborative mobile devices, so as to solve the problem that the prior art cannot consider highly dynamic network topology, storage reliability is low, data storage The backup failure rate is high, the collaborative storage time is long, and the delay is high.
基于上述目的,本发明一个或多个实施例提供了一种协同移动设备的边缘存储加速方法,包括:Based on the above objectives, one or more embodiments of the present invention provide an edge storage acceleration method for coordinated mobile devices, including:
建立移动设备间传输数据的边缘协同存储任务;Establish an edge cooperative storage task for data transmission between mobile devices;
基于所述边缘协同存储任务建立边缘协同存储模型,所述边缘协同存储模型包括:移动设备集合、发送移动设备、接收移动设备和网络拓扑,所述移动设备集合包括至少两个移动设备;An edge collaborative storage model is established based on the edge collaborative storage task, and the edge collaborative storage model includes: a set of mobile devices , send mobile device , receiving mobile device and network topology , the mobile device collection Include at least two mobile devices;
基于所述边缘协同存储模型计算得到A2CS加速算法;The A2CS acceleration algorithm is calculated based on the edge collaborative storage model;
基于所述边缘协同存储模型和A2CS加速算法,提出边缘协同存储策略;Based on the edge collaborative storage model and the A2CS acceleration algorithm, an edge collaborative storage strategy is proposed;
以所述边缘协同存储策略指导所述边缘协同存储任务。The edge cooperative storage task is guided by the edge cooperative storage policy.
可选的,所述建立移动设备间传输数据的边缘协同存储任务,包括:Optionally, the establishment of an edge cooperative storage task for data transmission between mobile devices includes:
所述移动设备收集数据;the mobile device collects data;
所述移动设备基于数据丢失概率和能耗将所述数据的副本发送至与所述移动设备相连的相邻移动设备,所述相邻移动设备至少有一个;The mobile device is based on data loss probability and energy consumption sending a copy of the data to adjacent mobile devices connected to the mobile device, at least one of the adjacent mobile devices;
所述移动设备集合基于所述相邻移动设备的存储容量和电池电量,确定所述副本的数量和接收所述副本的所述相邻移动设备。the set of mobile devices The number of replicas is determined based on the storage capacity and battery level of the neighboring mobile device and the neighboring mobile device that received the copy.
可选的,所述移动设备集合被建模为 ,其中是第个所述移动设备,是边缘中的所述移动设备的总数。Optionally, the mobile device set is modeled as ,in is the first said mobile device, is the total number of said mobile devices in the edge.
可选的,所述第个所述移动设备被建模为 ,其中表示的存储容量,表示的电池电量,表示收集的数据量大小,表示收集的数据的数据副本数量,表示的数据传输速率,表示的数据接收速率。Optionally, the said mobile devices is modeled as ,in express storage capacity, express battery power, express The amount of data collected, express the number of data copies of the collected data, express the data transfer rate, express data reception rate.
可选的,所述网络拓扑被建模为 ,表示移动设备集合,表示邻接矩阵,表示距离矩阵,所述邻接矩阵包括:Optionally, the network topology is modeled as , represents a collection of mobile devices, represents the adjacency matrix, represents the distance matrix, the adjacency matrix include:
对于任意所述移动设备,与其他所述移动设备的连通性由邻接矩阵中的元素表示,表示所述邻接矩阵的第行、第列中的元素,它由以下表达式确定:for any of the mobile devices , with other described mobile devices The connectivity of is represented by the elements in the adjacency matrix, represents the adjacency matrix First row, The element in the column, which is determined by the following expression:
所述距离矩阵包括:the distance matrix include:
对于任意所述移动设备,到其他所述移动设备的距离是所述距离矩阵中元素的值,代表所述距离矩阵的第行、第列中的元素,它由以下表达式确定:for any of the mobile devices , to the other said mobile device The distance is the distance matrix the value of the element in , represents the distance matrix First row, The element in the column, which is determined by the following expression:
其中表示和之间的距离。in express and the distance between.
可选的,所述发送移动设备和接收移动设备组成收发移动设备组,所述发送移动设备和接收移动设备之间进行数据存储和数据传输,所述数据存储产生数据存储能耗,所述表述为Optionally, the sending mobile device and receiving mobile devices Form sending and receiving mobile device groups , the sending mobile device and receiving mobile devices Data storage and data transmission are performed between the data storage and the data storage energy consumption. , the expressed as
其中,表示当时从所述发送移动设备传输到接收移动设备的数据量大小,以及当时所述发送移动设备存储的数据量大小,表示上述组中数据存储的能耗;in, means when when sending from the mobile device Transmission to the receiving mobile device size of data, and when when the sending mobile device The amount of data stored, represents the above group energy consumption of data storage in
所述数据传输产生数据传输能耗,所述表述为The data transmission generates data transmission energy consumption , the expressed as
其中表示所述发送移动设备的发射功率,表示接收移动设备的接收功率,表示数据从所述发送移动设备传输至所述接收移动设备所花费的时间,表示所述接收移动设备接收所述发送移动设备发送的数据所花费的时间,表示发射天线增益,表示接收天线增益,表示波长,表示所述发送移动设备和所述接收移动设备之间的距离,表示与传播无关的系统损耗因子,表示所述发送移动设备的数据传输速率,表示所述接收移动设备的数据接收速率;in represents the sending mobile device the transmit power, Indicates the receiving mobile device the received power, Indicates that data is sent from the mobile device transmitted to the receiving mobile device time spent, represents the receiving mobile device receiving the sending mobile device the time it took to send the data, represents the transmit antenna gain, represents the receiving antenna gain, represents the wavelength, represents the sending mobile device and the receiving mobile device the distance between, represents the propagation-independent system loss factor, represents the sending mobile device the data transfer rate, represents the receiving mobile device data reception rate;
所述数据存储能耗和所述数据传输能耗之和为边缘协同存储的总能耗,所述总能耗表述为The data storage energy consumption and the data transmission energy consumption The sum is the total energy consumption of edge collaborative storage , the total energy consumption expressed as
。 .
可选的,所述A2CS加速算法包括:Optionally, the A2CS acceleration algorithm includes:
初始值、和,所述初始值表示对任意一个移动设备部署所述A2CS加速算法的初始数值,所述初始值表述为initial value , and , the initial value indicates that for any mobile device Deploy the initial value of the A2CS acceleration algorithm, the initial value is expressed as
其中表示与所述连接的移动设备的数量,表示维向量;in expressed with the stated the number of connected mobile devices, express dimensional vector;
停止准则,所述停止准则使所述A2CS加速算法获得可行解并确保所述A2CS加速算法快速收敛,所述停止准则表述为A stopping criterion that enables the A2CS acceleration algorithm to obtain a feasible solution and ensures rapid convergence of the A2CS acceleration algorithm, and the stopping criterion is expressed as
和, and ,
其中表示第次迭代时的原始残差,表示第次迭代时的对偶残差,表示绝对公差,表示相对公差。in means the first the original residual at the next iteration, means the first dual residuals at the next iteration, represents the absolute tolerance, Indicates relative tolerance.
可选的,所述边缘协同存储策略包括以下步骤:数据收集、请求分发、做出决策、决策反馈、多次交互和数据传输。Optionally, the edge cooperative storage strategy includes the following steps: data collection, request distribution, decision making, decision feedback, multiple interactions, and data transmission.
基于同一发明构思,本发明一个或多个实施例还提供了一种协同移动设备的边缘存储加速装置,包括:Based on the same inventive concept, one or more embodiments of the present invention further provide an edge storage acceleration apparatus for cooperating with mobile devices, including:
第一建立模块,被配置为建立移动设备间传输数据的边缘协同存储任务;a first establishment module, configured to establish an edge cooperative storage task for data transmission between mobile devices;
第二建立模块,被配置为基于所述边缘协同存储任务建立边缘协同存储模型,所述边缘协同存储模型包括:移动设备集合、发送移动设备、接收移动设备和网络拓扑,所述移动设备集合包括至少两个移动设备;The second establishment module is configured to establish an edge cooperative storage model based on the edge cooperative storage task, where the edge cooperative storage model includes: a set of mobile devices , send mobile device , receiving mobile device and network topology , the mobile device collection Include at least two mobile devices;
计算模块,被配置为基于所述边缘协同存储模型计算得到A2CS加速算法;a computing module, configured to calculate and obtain an A2CS acceleration algorithm based on the edge collaborative storage model;
策略模块,被配置为基于所述边缘协同存储模型和A2CS加速算法,提出边缘协同存储策略;a strategy module, configured to propose an edge collaborative storage strategy based on the edge collaborative storage model and the A2CS acceleration algorithm;
执行模块,被配置为以所述边缘协同存储策略指导所述边缘协同存储任务。An execution module configured to direct the edge cooperative storage task with the edge cooperative storage policy.
基于同一发明构思,本发明一个或多个实施例还提供了一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现上述任意一种所述的方法。Based on the same inventive concept, one or more embodiments of the present invention further provide an electronic device, including a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that the processor When the program is executed, any one of the methods described above is implemented.
从上面所述可以看出,本发明一个或多个实施例提供的一种协同移动设备的边缘存储加速方法、装置及设备,特别注意了移动设备的独特特性以及多个移动设备的动态网络拓扑,将协同存储问题转化为可解决的优化问题,通过研究加速策略,提出了A2CS加速算法,高效地解决协同存储的优化问题,在A2CS加速算法中,可以从理论上提高收敛速度,同时提出了一种协同存储策略,该策略包括六大步骤,可以表示协同存储的整个过程,A2CS加速算法应用贯穿于该策略的全部步骤,以该策略指导协同存储的整个循环周期。A2CS加速算法与两种现有方法ADMM基准和ADMM-OR(具有过度松弛的ADMM)相比,A2CS加速算法在不同的步长规则下提供了更好的收敛性能,加速百分比至少达到25.33%,最多可以达到64.01%。此外,通过使用现有的平均分配策略(ADS)和现有的距离优先分配策略(DPDS)进行效用性能比较分析,结果表明A2CS加速算法在总效用和能耗方面优于ADS策略和DPDS策略。As can be seen from the above, one or more embodiments of the present invention provide an edge storage acceleration method, apparatus, and device for cooperating with mobile devices, paying particular attention to the unique characteristics of mobile devices and the dynamic network topology of multiple mobile devices , transforming the cooperative storage problem into a solvable optimization problem. By studying the acceleration strategy, an A2CS acceleration algorithm is proposed to efficiently solve the optimization problem of cooperative storage. In the A2CS acceleration algorithm, the convergence speed can be theoretically improved. At the same time, the proposed A collaborative storage strategy includes six steps, which can represent the entire process of collaborative storage. A2CS acceleration algorithm is applied throughout all steps of the strategy, and the strategy guides the entire cycle of collaborative storage. Compared with the two existing methods ADMM benchmark and ADMM-OR (ADMM with over-relaxation), the A2CS acceleration algorithm provides better convergence performance under different step size rules, and the acceleration percentage reaches at least 25.33%, Up to 64.01% can be achieved. Furthermore, by using the existing average allocation strategy (ADS) and the existing distance-preferred allocation strategy (DPDS) to conduct a utility performance comparative analysis, the results show that the A2CS acceleration algorithm outperforms the ADS strategy and the DPDS strategy in terms of total utility and energy consumption.
附图说明Description of drawings
为了更清楚地说明本发明一个或多个实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明一个或多个实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate one or more embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that are needed in the description of the embodiments or the prior art. Obviously, in the following description The accompanying drawings are only one or more embodiments of the present invention, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative efforts.
图1为本发明一个或多个实施例中加速方法流程示意图;1 is a schematic flowchart of an acceleration method in one or more embodiments of the present invention;
图2为本发明一个或多个实施例中加速算法A2CS框架图;2 is a framework diagram of an acceleration algorithm A2CS in one or more embodiments of the present invention;
图3为本发明一个或多个实施例中协同存储策略示意图;3 is a schematic diagram of a collaborative storage strategy in one or more embodiments of the present invention;
图4为本发明一个或多个实施例中加速装置示意图;4 is a schematic diagram of an acceleration device in one or more embodiments of the present invention;
图5为本发明一个或多个实施例中电子设备示意图;5 is a schematic diagram of an electronic device in one or more embodiments of the present invention;
图6为本发明一个或多个实施例中数据量大小固定时的能耗和数据丢失的归一化值的实验数据图;6 is an experimental data diagram of normalized values of energy consumption and data loss when the data size is fixed in one or more embodiments of the present invention;
图7(a)为本发明一个或多个实施例中副本数与收敛数之间的关系以及使用步长规则的A2CS的总效用与副本数之间的关系图;Figure 7(a) shows the relationship between the number of replicas and the number of convergence and the use of step size rules in one or more embodiments of the present invention A graph of the relationship between the total utility of A2CS and the number of replicas;
图7(b)为本发明一个或多个实施例中副本数与收敛数之间的关系以及使用步长规则的A2CS的总效用与副本数之间的关系图;Figure 7(b) shows the relationship between the number of replicas and the number of convergence and the use of step size rules in one or more embodiments of the present invention A graph of the relationship between the total utility of A2CS and the number of replicas;
图7(c)为本发明一个或多个实施例中副本数与收敛数之间的关系以及使用步长规则的A2CS的总效用与副本数之间的关系图;Figure 7(c) shows the relationship between the number of replicas and the number of convergence and the use of step size rules in one or more embodiments of the present invention A graph of the relationship between the total utility of A2CS and the number of replicas;
图8(a)为本发明一个或多个实施例中当数据量大小固定时,A2CS算法使用不同的步长规则对收敛次数的影响关系图;Figure 8(a) is a graph showing the influence of the A2CS algorithm on the convergence times using different step size rules when the data size is fixed in one or more embodiments of the present invention;
图8(b)为本发明一个或多个实施例中当数据量大小固定时,ADMM算法使用不同的步长规则对收敛次数的影响关系图;Figure 8(b) is a graph showing the influence of the ADMM algorithm on the convergence times using different step size rules when the data size is fixed in one or more embodiments of the present invention;
图8(c)为本发明一个或多个实施例中当数据量大小固定时,ADMM-OR算法使用不同的步长规则对收敛次数的影响关系图;Figure 8(c) is a graph showing the influence of the ADMM-OR algorithm on the convergence times using different step size rules when the data size is fixed in one or more embodiments of the present invention;
图9(a)为本发明一个或多个实施例中使用不同的算法(A2CS,ADMM和ADMM-OR)结合步长规则的情况下数据量大小和收敛次数之间的关系图;Figure 9(a) illustrates the use of different algorithms (A2CS, ADMM and ADMM-OR) combined with step size rules in one or more embodiments of the present invention The relationship between the amount of data and the number of convergence times in the case of ;
图9(b)为本发明一个或多个实施例中使用不同的算法(A2CS,ADMM和ADMM-OR)结合步长规则的情况下数据量大小和收敛次数之间的关系图;;Figure 9(b) illustrates the use of different algorithms (A2CS, ADMM and ADMM-OR) combined with step size rules in one or more embodiments of the present invention The relationship diagram between the amount of data and the number of convergence times in the case of ;
图10(a)为本发明一个或多个实施例中分别使用A2CS加速算法,ADS算法和DPDS算法显示了总效用的关系图以及不同时间范围内A2CS加速算法相对于ADS算法和DPDS算法的优势百分比图;Figure 10(a) shows the A2CS acceleration algorithm used in one or more embodiments of the present invention. The ADS algorithm and the DPDS algorithm show the relationship diagram of the total utility and the advantages of the A2CS acceleration algorithm over the ADS algorithm and the DPDS algorithm in different time ranges. percentage chart;
图10(b)为本发明一个或多个实施例中分别使用A2CS加速算法,ADS算法和DPDS算法显示了能耗的关系图以及不同时间范围内A2CS加速算法相对于ADS算法和DPDS算法的优势百分比图;Figure 10(b) shows the A2CS acceleration algorithm used in one or more embodiments of the present invention. The ADS algorithm and the DPDS algorithm show the relationship between energy consumption and the advantages of the A2CS acceleration algorithm relative to the ADS algorithm and the DPDS algorithm in different time ranges. percentage chart;
图11(a)为本发明一个或多个实施例中使用A2CS加速算法的总效用的关系图以及不同时间范围数据量大小图;FIG. 11( a ) is a relationship diagram of the total utility of using the A2CS acceleration algorithm in one or more embodiments of the present invention and a diagram of the size of data in different time ranges;
图11(b)为本发明一个或多个实施例中使用A2CS加速算法的能耗的关系图以及不同时间范围数据量大小图。FIG. 11( b ) is a relationship diagram of energy consumption using the A2CS acceleration algorithm in one or more embodiments of the present invention and a diagram of the size of data in different time ranges.
具体实施方式Detailed ways
为使本公开的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本公开进一步详细说明。In order to make the objectives, technical solutions and advantages of the present disclosure clearer, the present disclosure will be further described in detail below with reference to the specific embodiments and the accompanying drawings.
需要说明的是,除非另外定义,本发明一个或多个实施例使用的技术术语或者科学术语应当为本公开所属领域内具有一般技能的人士所理解的通常意义。本发明一个或多个实施例中使用的“第一”、“第二”以及类似的词语并不表示任何顺序、数量或者重要性,而只是用来区分不同的组成部分。“包括”或者“包含”等类似的词语意指出现该词前面的元件或者物件涵盖出现在该词后面列举的元件或者物件及其等同,而不排除其他元件或者物件。“连接”或者“相连”等类似的词语并非限定于物理的或者机械的连接,而是可以包括电性的连接,不管是直接的还是间接的。“上”、“下”、“左”、“右”等仅用于表示相对位置关系,当被描述对象的绝对位置改变后,则该相对位置关系也可能相应地改变。It should be noted that, unless otherwise defined, technical terms or scientific terms used in one or more embodiments of the present invention shall have common meanings understood by those with ordinary skill in the art to which this disclosure belongs. The terms "first," "second," and similar terms used in one or more embodiments of the present invention do not denote any order, quantity, or importance, but are merely used to distinguish the various components. "Comprises" or "comprising" and similar words mean that the elements or things appearing before the word encompass the elements or things recited after the word and their equivalents, but do not exclude other elements or things. Words like "connected" or "connected" are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "Down", "Left", "Right", etc. are only used to represent the relative positional relationship, and when the absolute position of the described object changes, the relative positional relationship may also change accordingly.
本发明一个或多个实施例提供了一种协同移动设备的边缘存储加速方法、装置及设备。One or more embodiments of the present invention provide an edge storage acceleration method, apparatus, and device for cooperating with mobile devices.
参考图1,本发明一个或多个实施例提供的方法,包括以下步骤:1, the method provided by one or more embodiments of the present invention includes the following steps:
S101建立移动设备间传输数据的边缘协同存储任务。S101 establishes an edge cooperative storage task for data transmission between mobile devices.
本实施例中,边缘协同存储任务建立再边缘协同存储框架的基础上,边缘存储框架中包括多个移动设备,每个移动设备包括:存储单元、数据处理器、调度器和数据接收器/发送器,不同移动设备的当前存储容量是不同的,边缘协同存储任务包括以下步骤:In this embodiment, the edge collaborative storage task is established on the basis of the edge collaborative storage framework. The edge storage framework includes multiple mobile devices, and each mobile device includes: a storage unit, a data processor, a scheduler, and a data receiver/transmitter The current storage capacity of different mobile devices is different. The edge collaborative storage task includes the following steps:
移动设备收集数据;Mobile devices collect data;
所述移动设备基于数据丢失概率和能耗将所述数据的副本发送至与所述移动设备相连的相邻移动设备,所述相邻移动设备至少有一个;The mobile device is based on data loss probability and energy consumption sending a copy of the data to adjacent mobile devices connected to the mobile device, at least one of the adjacent mobile devices;
所述移动设备集合基于所述相邻移动设备的存储容量和电池电量,确定所述副本的数量和接收所述副本的所述相邻移动设备。the set of mobile devices Based on the storage capacity and battery level of the neighboring mobile device, the number of copies and the neighboring mobile device that receives the copy.
为了降低数据丢失的概率,移动设备在考虑能耗的同时将数据的副本发送至相连的移动设备,考虑到存储容量和电池电量,副本的数量和接收数据的移动设备的选择都由边缘中的多个移动设备共同确定,不同移动设备的电池电量不同,如果电池电量低,则发送数据的移动设备不会将副本发送至该电量低的移动设备,而是选择将数据的副本发送至其他与发送数据的移动设备相连的电量充足的移动设备中。To reduce the probability of data loss , the mobile device sends a copy of the data to the connected mobile device taking into account energy consumption, the number of copies taking into account storage capacity and battery power And the selection of the mobile device to receive the data is determined jointly by multiple mobile devices in the edge, different mobile devices have different battery levels, if the battery is low, the mobile device sending the data will not send a copy to that low battery mobile device device, instead chooses to send a copy of the data to other mobile devices with sufficient power connected to the mobile device sending the data.
S102基于所述边缘协同存储任务建立边缘协同存储模型,所述边缘协同存储模型包括:移动设备集合、发送移动设备、接收移动设备和网络拓扑,所述移动设备集合包括至少两个移动设备。S102 establishes an edge collaborative storage model based on the edge collaborative storage task, where the edge collaborative storage model includes: a set of mobile devices , send mobile device , receiving mobile device and network topology , the mobile device collection Include at least two mobile devices.
本实施例中,首先将移动设备集合建模为 ,其中是第个所述移动设备,是边缘中的所述移动设备的总数。对于任意一个边缘的移动设备,所述第个所述移动设备被建模为 ,其中表示的存储容量,表示的电池电量,表示收集的数据量大小,表示收集的数据的数据副本数量,表示的数据传输速率,表示的数据接收速率。In this embodiment, the mobile devices are first assembled modeled as ,in is the first said mobile device, is the total number of said mobile devices in the edge. For mobile devices on either edge , the first said mobile devices is modeled as ,in express storage capacity, express battery power, express The amount of data collected, express the number of data copies of the collected data, express the data transfer rate, express data reception rate.
表1 符号描述Table 1 Symbol description
参考表1,边缘中的动态网络拓扑仍然是协同存储的巨大挑战,为了对网络拓扑进行建模,考虑了移动设备及其之间的关系,包括连接性和距离。因此,边缘中的动态网络拓扑被建模为 ,表示移动设备集合,表示邻接矩阵,表示距离矩阵,所述邻接矩阵包括:Referring to Table 1, the dynamic network topology in the edge remains a great challenge for collaborative storage. To model the network topology, mobile devices and their relationships, including connectivity and distance, are considered. Therefore, dynamic network topology in the edge is modeled as , represents a collection of mobile devices, represents the adjacency matrix, represents the distance matrix, the adjacency matrix include:
对于任意所述移动设备,与其他所述移动设备的连通性由邻接矩阵中的元素表示,表示所述邻接矩阵的第行、第列中的元素,它由以下表达式确定:for any of the mobile devices , with other described mobile devices The connectivity of is represented by the elements in the adjacency matrix, represents the adjacency matrix First row, The element in the column, which is determined by the following expression:
上面定义的邻接矩阵表示理想状态下移动设备之间的连接,这意味着连接足够鲁棒。但是,移动设备之间的通信中断和移动设备的退出可能导致连接丢失。对于每个移动设备,与另一个移动设备的连接丢失是随机的。在本实施例中中,它近似服从0-1分布,可以表示为:The adjacency matrix defined above Represents an ideal connection between mobile devices, which means the connection is robust enough. However, the interruption of communication between mobile devices and the withdrawal of mobile devices may result in loss of connectivity. For each mobile device, the loss of connection to another mobile device is random. In this embodiment, it approximately obeys the 0-1 distribution and can be expressed as:
其中是连接丢失的概率,k表示次序,时表示连接丢失。所述距离矩阵包括:in is the probability of connection loss, k represents the order, indicates that the connection is lost. the distance matrix include:
对于任意所述移动设备,到其他所述移动设备的距离是所述距离矩阵中元素的值,代表所述距离矩阵的第行、第列中的元素,它由以下表达式确定:for any of the mobile devices , to the other said mobile device The distance is the distance matrix the value of the element in , represents the distance matrix First row, The element in the column, which is determined by the following expression:
其中表示和之间的距离。根据上面的定义,邻接矩阵和距离矩阵都是对称矩阵。此外,和的维数表示边缘移动设备的数量。随着移动设备集合,邻接矩阵和距离矩阵的变化,网络拓扑也发生变化,从而可以表示边缘中网络拓扑的动态变化。由于完整而正确的数据在协同存储领域中很重要,因此本实施例专注于边缘协同存储的可靠性。此外,协同存储的可靠性与冗余机制,副本丢失的可能性以及数据对象的故障率密切相关,因此,为了提高存储可靠性,本实施例考虑了数据备份。将定义为数据存储的失败率,表示数据存储失败后的恢复概率。协同存储中的存储可靠性模型类似于马尔科夫过程,因此以任意一个移动设备为例,移动设备数据丢失的概率可以表示为:in express and the distance between. According to the above definition, the adjacency matrix and the distance matrix are all symmetric matrices. also, and The dimension of represents the number of edge mobile devices. With mobile device collection , the adjacency matrix and the distance matrix changes, the network topology also changes so that dynamic changes in the network topology in the edge can be represented. Since complete and correct data is important in the field of collaborative storage, this embodiment focuses on the reliability of collaborative storage at the edge. In addition, the reliability of cooperative storage is closely related to the redundancy mechanism, the possibility of copy loss, and the failure rate of data objects. Therefore, in order to improve storage reliability, this embodiment considers data backup. Will Defined as the failure rate of the data store, Represents the probability of recovery after data storage failure. The storage reliability model in cooperative storage is similar to the Markov process, so with any mobile device For example, mobile devices The probability of data loss can be expressed as:
其中是副本数量,表示次序。假设在不同移动设备之间传输和存储的数据是独立的,而且不同移动设备中不同数据的丢失概率相同,使用数据丢失量来描述存储可靠性。显然,数据丢失越多,存储可靠性就越低。该公式可描述为:in is the number of copies, Indicates the order. Assuming that the data transmitted and stored between different mobile devices are independent, and the loss probability of different data in different mobile devices is the same, use the data loss amount to describe storage reliability. Obviously, the more data is lost, the lower the storage reliability. The formula can be described as:
其中是移动设备上的数据量大小。当副本数约为5时,可以满足较高的可靠性要求。当副本数大于5时,提高可靠性毫无意义,而且会增加数据维护成本。但是,固定的副本数可能过多而导致多余的能源成本,或者过少而导致可靠性降低。此外,当以分布式方式存储时,将数据传输到不同移动设备的能量消耗是动态变化的。为了平衡存储可靠性和能耗之间的关系,本实施例考虑了一种灵活的数据备份策略,该策略由副本数选择和数据副本的分配策略组成,本实施例专注于以尽可能低的能耗可靠地存储数据。in is a mobile device The amount of data on the . When the number of replicas is about 5, higher reliability requirements can be met. When the number of replicas is greater than 5, it is meaningless to improve reliability, and it will increase the cost of data maintenance. However, a fixed number of replicas can be too large and cause excess energy costs, or too few and cause reduced reliability. Furthermore, when stored in a distributed fashion, the energy consumption of transferring data to different mobile devices is dynamically changing. In order to balance the relationship between storage reliability and energy consumption, this embodiment considers a flexible data backup strategy, which consists of copy number selection and data copy allocation strategy. This embodiment focuses on using the lowest possible Power consumption to store data reliably.
对于协同存储,移动设备的续航时间是一种至关重要的因素。更长的续航时间意味着可以收集,传输和存储更多数据。此外,续航时间可以用能耗来描述,当能量消耗减少时,续航时间增加。边缘协同存储的能耗主要由两部分组成:数据存储的能耗和数据传输的能耗。本实施例中,假设数据发送和接收不会相互影响。另外,将所有移动设备分为发送设备和接收设备组成的小组,所述发送移动设备和接收移动设备组成收发移动设备组,所述发送移动设备和接收移动设备之间进行数据存储和数据传输,这些收发移动设备组可以公式为。每个移动设备可以同时分为不同的组。所述数据存储产生数据存储能耗,所述表述为For collaborative storage, the battery life of the mobile device is a critical factor. Longer battery life means more data can be collected, transmitted and stored. Furthermore, battery life can be described in terms of energy consumption, and when energy consumption decreases, battery life increases. The energy consumption of edge collaborative storage is mainly composed of two parts: the energy consumption of data storage and the energy consumption of data transmission. In this embodiment, it is assumed that data transmission and reception do not affect each other. Also, divide all mobile devices into sending devices and receiving equipment composed of groups that send mobile devices and receiving mobile devices Form sending and receiving mobile device groups , the sending mobile device and receiving mobile devices For data storage and data transmission between the two, these sending and receiving mobile device groups can be formulated as . Each mobile device can be divided into different groups at the same time. The data storage generates data storage energy consumption , the expressed as
其中,表示当时从所述发送移动设备传输到接收移动设备的数据量大小,以及当时所述发送移动设备存储的数据量大小,表示上述组中数据存储的能耗。对于所述数据传输产生数据传输能耗,本实施例使用自由空间传播模型来描述多个移动设备中的数据传输。为了便于分析,假定将数据传输到。表示所述发送移动设备的发射功率,表示接收移动设备的接收功率。基于Friis转移公式,将与之间的关系建模为:in, means when when sending from the mobile device Transmission to the receiving mobile device size of data, and when when the sending mobile device The amount of data stored, represents the above group energy consumption for data storage. Data transfer energy consumption is generated for the data transfer , this embodiment uses the free-space propagation model to describe data transmission among multiple mobile devices. For ease of analysis, it is assumed that transfer data to . represents the sending mobile device the transmit power, Indicates the receiving mobile device received power. Based on the Friis transfer formula, the and The relationship between is modeled as:
其中表示发射天线增益,表示接收天线增益,表示波长,表示所述发送移动设备和所述接收移动设备之间的距离,表示与传播无关的系统损耗因子。在协同存储框架中,每个移动设备的发射功率、波长和系统损耗因子均可以视为常数。此外,数据从所述发送移动设备传输至所述接收移动设备所花费的时间和接收移动设备接收所述发送移动设备发送的数据所花费的时间可以表示为:in represents the transmit antenna gain, represents the receiving antenna gain, represents the wavelength, represents the sending mobile device and the receiving mobile device the distance between, Represents the propagation-independent system loss factor. In the cooperative storage framework, the transmit power, wavelength and system loss factor of each mobile device can be regarded as constants. Additionally, data is sent from the mobile device transmitted to the receiving mobile device Time Spent and Receiving Mobile Devices receiving the sending mobile device The time it takes to send data can be expressed as:
其中表示当时从所述发送移动设备传输到接收移动设备的数据量大小,另外,表示所述发送移动设备的数据传输速率,表示所述接收移动设备的数据接收速率。数据传输速率可以设置为常数,因为不存在由于传播引起的信号衰减,而数据接收速率与接收信号强度指示符(RSSI)有关,可以将其描述为:in means when when sending from the mobile device Transmission to the receiving mobile device The size of the data volume, in addition, represents the sending mobile device the data transfer rate, represents the receiving mobile device data reception rate. The data transmission rate can be set to be constant because there is no signal attenuation due to propagation, while the data reception rate is related to the Received Signal Strength Indicator (RSSI), which can be described as:
然而,不能简单地通过线性模型来描述数据接收速率和RSSI之间的关系。参考表2,可以获得RSSI与数据传输速率之间的对应关系,However, the relationship between the data reception rate and RSSI cannot be described simply by a linear model. Referring to Table 2, the correspondence between RSSI and data transfer rate can be obtained,
表2 RSSI与数据传输速率之间的对应关系Table 2 Correspondence between RSSI and data transmission rate
根据(7),(8)和(9),数据传输的能耗可以表示为:According to (7), (8) and (9), the energy consumption of data transmission It can be expressed as:
其中表示上述收发移动设备组中数据传输的能耗。基于(6)和(11),边缘协同存储的总能耗可以表示为:in Represents the above-mentioned sending and receiving mobile device group energy consumption for data transmission. Based on (6) and (11), the total energy consumption of edge cooperative storage can be expressed as:
S103基于所述边缘协同存储模型计算得到A2CS加速算法。S103 calculates and obtains an A2CS acceleration algorithm based on the edge collaborative storage model.
本实施例中,A2CS加速算法选用的优化函数为优化函数F,优化函数描述了上述步骤中的协同存储的总效用,包括存储的可靠性和续航时间。优化目标是最大程度地减少协同存储中的数据丢失和能耗。为了满足协同存储的高存储可靠性和长续航时间的要求,在上述存储可靠性和续航时间模型的基础上,将协同存储系统的优化功能定义为:In this embodiment, the optimization function selected by the A2CS acceleration algorithm is the optimization function F, and the optimization function The overall utility of co-storage in the above steps is described, including storage reliability and battery life. The optimization goal is to minimize data loss and energy consumption in co-storage. In order to meet the requirements of high storage reliability and long battery life of collaborative storage, the optimization function of collaborative storage system is defined as:
其中和是权重系数,表示由发送移动设备收集的数据量的大小,和之间的关系可以描述为。in and is the weight coefficient, Indicates that the mobile device is sent by the size of the amount of data collected, and The relationship between can be described as .
协同存储问题已转化为优化问题,该问题与ADMM的应用领域非常接近。此外,优化函数由两个独立的函数组成,适合ADMM的可分解性。但是,ADMM也存在一些不足,比如现实中的收敛速度很慢,协同存储问题迫切需要快速的收敛速度,因此较慢的收敛速度这是不可接受的,但是现有技术表明,当前大多数研究都不适用于协同存储问题,因此,应考虑并修改加速策略,发明人为了使算法与优化问题更加兼容,需要进行一些调整,提出了对优化函数进行标准化和分解。对于边缘中的每个移动设备,数据存储过程始终相同,因此可以以分布式方式部署A2CS加速算法。为了使优化功能清晰可见,以满足A2CS的基本形式,以一个移动设备为例,收集的数据量大小为,副本数为。令The cooperative memory problem has been transformed into an optimization problem, which is very close to the application field of ADMM. Furthermore, the optimization function consists of two independent functions, suitable for the decomposability of ADMM. However, ADMM also has some shortcomings. For example, the convergence speed in reality is very slow, and the cooperative storage problem urgently needs a fast convergence speed, so the slow convergence speed is unacceptable, but the existing technology shows that most of the current research It is not suitable for the cooperative storage problem. Therefore, the acceleration strategy should be considered and modified. In order to make the algorithm more compatible with the optimization problem, the inventor needs to make some adjustments, and proposes to standardize and decompose the optimization function. The data storage process is always the same for each mobile device in the edge, so the A2CS acceleration algorithm can be deployed in a distributed fashion. In order to make the optimization function clearly visible to meet the basic form of A2CS to a mobile device For example, the size of the collected data is , the number of copies is . make
其中表示与连接的移动设备的数量,。此外,的分量表示在每个与连接的移动设备中传输的数据量,的分量表示在每个与连接的移动设备中存储的数据量。对应于(13)中的和,本实施例中分别有和用于移动设备。特别地,是表示由移动设备收集的数据量,而是一个向量,表示从移动设备发送到其他移动设备的数据。,,和之间的关系可以表示为:in means with the number of connected mobile devices, . also, The components are expressed in each with the amount of data transferred in the connected mobile device, The components are expressed in each with The amount of data stored in the connected mobile device. corresponds to (13) in and , in this example, there are and for mobile devices . Particularly, is indicated by a mobile device the amount of data collected, while is a vector representing the Data sent to other mobile devices. , , and The relationship between can be expressed as:
原始残差可以描述为,可以将的优化函数标准化为:The original residual can be described as ,can The optimization function normalizes to:
其中是与相关的列向量,与有关,而,,所有移动设备的总优化函数可以描述为。标准化之后,可以将分解为两个子函数和,如下所示:in With the associated column vector, and related, while , , the total optimization function for all mobile devices can be described as . After standardization, the Decompose into two sub-functions and ,As follows:
初始值可设置为:The initial value can be set to:
其中是与连接的移动设备的数量,下标表示移动设备的第0次迭代。和的分量设置为零,这意味着一开始没有存储任何数据。in With The number of connected mobile devices, the subscript indicates the mobile device The 0th iteration of . and The component of is set to zero, which means that no data is stored at first.
A2CS的局限性之一是子函数必须是凸函数。因此,有必要证明优化函数是凸的并且A2CS是适用的。对于函数,只有一个变量,并且可以根据背景技术的知识给其他参数赋值,这意味着是线性函数。对于函数,变量包括和两个节点之间的距离。一旦距离固定并视为常数,则只有一个变量,上述函数可以简化为线性函数。基于协同存储框架和协同存储模型,每个移动设备都可以从连接的移动设备获取距离信息,这意味着该距离可以设置为常数,并且可以进一步简化为线性函数。因此,子函数的凸性证明如下。One of the limitations of A2CS is that the subfunctions must be convex. Therefore, it is necessary to prove that the optimization function is convex and that A2CS is applicable. for function , with only one variable , and other parameters can be assigned values based on the knowledge of the background technology, which means that is a linear function. for function , the variables include and the distance between two nodes . once the distance fixed and treated as a constant, there is only one variable, the above function can be simplified to a linear function. Based on the co-storage framework and co-storage model, each mobile device can obtain distance information from the connected mobile device, which means that the distance can be set as a constant, and It can be further simplified to a linear function. Therefore, the convexity of the subfunction is proved as follows.
证明:prove:
如(17)和(18)中所定义,和的导数可以分别描述为:As defined in (17) and (18), the derivative of and can be described as:
和中的所有参数均为正数,因此,。令,,可以得到: and All parameters in are positive numbers, so , . make , , you can get:
因此,和均满足背景知识中的子函数凸性证明公式,即这两个子函数均为凸。therefore, and Both satisfy the sub-function convexity proof formula in the background knowledge , that is, both subfunctions are convex.
证毕。Certificate completed.
因此,子函数和可被证明为凸,并且A2CS是适用的。Therefore, the subfunction and can be shown to be convex, and A2CS is applicable.
根据ADMM理论,本实施例中对于A2CS加速算法设置了合理的停止准则,以获得令人满意的可行解并确保快速收敛。当原始残差和对偶残差较小时,目标次优也必须较小。具体来说,对于移动设备,使用原始残差和对偶残差的值来确定迭代次数,并可以在第次迭代时公式化为:According to the ADMM theory, a reasonable stopping criterion is set for the A2CS acceleration algorithm in this embodiment to obtain a satisfactory feasible solution and ensure fast convergence. When the original and dual residuals are small, the objective suboptimal must also be small. Specifically, for mobile devices , using the original residuals and dual residuals value to determine the number of iterations, and can be The second iteration is formulated as:
于是,提出了一个合理的停止准则:Therefore, a reasonable stopping criterion is proposed:
其中表示第k次迭代时的原始残差,表示第k次迭代时的对偶残差,表示绝对公差,表示相对公差。此外,公差选择的方法是使用绝对公差和相对公差,可以将其表达为:in represents the original residual at the kth iteration, represents the dual residual at the k-th iteration, represents the absolute tolerance, Indicates relative tolerance. Also, the method of tolerance selection is to use absolute and relative tolerances, which can be expressed as:
其中是绝对公差,是相对公差,是变量的维数。in is the absolute tolerance, is the relative tolerance, is a variable dimension.
参考图2,综合了本方案中的优化函数、初始值和停止准则,基于加速梯度下降方案NA和ADMM算法,结合了ADMM算法的缩放形式和NA,得到了本实施例中的A2CS加速算法。Referring to FIG. 2 , the optimization function, initial value and stopping criterion in this scheme are synthesized, based on the accelerated gradient descent scheme NA and ADMM algorithm, combined with the scaling form and NA of the ADMM algorithm, the A2CS acceleration algorithm in this embodiment is obtained.
S104基于所述边缘协同存储模型和A2CS加速算法,提出边缘协同存储策略。S104 proposes an edge collaborative storage strategy based on the edge collaborative storage model and the A2CS acceleration algorithm.
为了详细、直观地显示协同存储的过程,本实施例在边缘协同存储模型和A2CS加速算法的基础上,提出了边缘协同存储策略,参考图3,在此策略中,添加了一个名为的属性,以区分中边缘每个移动设备的角色,其中。当时,移动设备是将数据传输到其他相连的移动设备的请求节点。当时,移动设备是从其他相连的移动设备接收数据的存储节点。显然,移动设备可以同时是请求节点和存储节点。对于某个移动设备,它收集数据,然后将消息发送到连接的移动设备。之后,它确定副本数量、选择要存储的移动设备以及确定每个选定移动设备的数据量分配。同时,它还可以从其他已连接的移动设备接收请求,并决定是否接收数据。In order to show the process of collaborative storage in detail and intuitively, this embodiment proposes an edge collaborative storage strategy on the basis of the edge collaborative storage model and the A2CS acceleration algorithm. Referring to Figure 3, in this strategy, a strategy named properties to distinguish the role of each mobile device in the edge, where . when When the mobile device is the requesting node to transmit data to other connected mobile devices. when When a mobile device is a storage node that receives data from other connected mobile devices. Obviously, a mobile device can be a request node and a storage node at the same time. for a mobile device , which collects data , and send the message to the connected mobile device. After that, it determines the number of copies, selects mobile devices to store, and determines the allocation of data volume for each selected mobile device. At the same time, it can also receive requests from other connected mobile devices and decide whether to receive data.
本实施例中,边缘协同存储策略包括六大步骤:数据收集、请求分发、做出决策、决策反馈、多次交互和数据传输。数据收集步骤参考图3中的(a),用矩形和圆形表示的不同类型的移动设备具有不同的角色。另外,移动设备同时处于不同状态。带阴影的矩形和圆形表示请求节点,而其他表示空闲的存储节点。图片中的实线表示不同移动设备之间的连接。请求节点正在收集数据并准备发送数据存储消息,而存储节点已准备好从请求节点接收数据存储消息。请求分发步骤参考图3中的(b),请求节点将数据存储消息发送到所连接的移动设备并等待反馈。实线箭头表示从请求节点到存储节点的数据存储消息。做出决策步骤参考图3中的(c),空闲的存储节点接收数据存储消息并变得繁忙,由阴影矩形和带虚线的圆表示。考虑到存储容量和电池电量,繁忙的存储节点然后决定如何响应请求消息。决策反馈步骤参考图3中的(d),繁忙存储节点根据(c)中的决策将反馈返回到(a)中的请求节点。决策包含是否存储以及存储量。(d)中的虚线箭头表示决策反馈。多次交互步骤参考图3中的(e),请求节点与存储节点进行多次交互以获得可行的解决方案。双向虚线箭头表示不同移动设备之间的交互。数据传输步骤参考图3中的(f),(a)中的请求节点接收并汇总反馈。根据汇总,请求节点首先计算并确定副本数。然后,他们选择数据副本并将其传输到某些存储节点。在(f)中,数据传输用实心箭头和数据图标表示。协同存储的整个过程从(a)重复到(f),并且移动设备可能同时处于上述状态中的一种以上。In this embodiment, the edge cooperative storage strategy includes six steps: data collection, request distribution, decision making, decision feedback, multiple interactions, and data transmission. Data collection steps Referring to Fig. 3(a), different types of mobile devices represented by rectangles and circles have different roles. In addition, mobile devices are in different states at the same time. Shaded rectangles and circles represent request nodes, while others represent free storage nodes. The solid lines in the picture represent connections between different mobile devices. The requesting node is collecting data and ready to send data store messages, and the storage node is ready to receive data store messages from the requesting node. Request distribution step Referring to (b) in Figure 3, the requesting node sends a data storage message to the connected mobile device and waits for feedback. Solid arrows represent data storage messages from requesting nodes to storage nodes. Decision Making Step Referring to (c) in Figure 3, an idle storage node receives data storage messages and becomes busy, represented by shaded rectangles and circles with dashed lines. The busy storage node then decides how to respond to the request message, taking into account storage capacity and battery power. Decision feedback step Referring to (d) in Figure 3, the busy storage node returns feedback to the requesting node in (a) according to the decision in (c). Decisions include whether to store and how much. Dashed arrows in (d) indicate decision feedback. Multiple Interaction Steps Referring to (e) in Figure 3, the requesting node interacts with the storage node multiple times to obtain a feasible solution. Two-way dashed arrows indicate interactions between different mobile devices. The data transmission step refers to (f) in Figure 3, and the requesting node in (a) receives and aggregates the feedback. Based on the aggregation, the requesting node first calculates and determines the number of replicas. Then, they choose a copy of the data and transfer it to some storage node. In (f), data transfers are indicated by solid arrows and data icons. The entire process of co-storage repeats from (a) to (f), and the mobile device may be in more than one of the above states at the same time.
S105以所述边缘协同存储策略指导所述边缘协同存储任务。S105 guides the edge cooperative storage task with the edge cooperative storage policy.
边缘协同存储策略涵盖了协同存储的整个过程,以边缘协同存储策略指导上述步骤S101中建立的边缘协同存储任务,以便将其应用于边缘中移动设备分组的任务执行场景。The edge collaborative storage strategy covers the entire process of collaborative storage, and the edge collaborative storage task established in the above step S101 is guided by the edge collaborative storage strategy, so that it can be applied to the task execution scenario of grouping mobile devices in the edge.
从上面所述可以看出,本发明一个或多个实施例提供的一种协同移动设备的边缘存储加速方法、装置及设备,特别注意了移动设备的独特特性以及多个移动设备的动态网络拓扑,将协同存储问题转化为可解决的优化问题,通过研究加速策略,提出了A2CS加速算法,高效地解决协同存储的优化问题,在A2CS加速算法中,可以从理论上提高收敛速度,同时提出了一种协同存储策略,该策略包括六大步骤,可以表示协同存储的整个过程,A2CS加速算法应用贯穿于该策略的全部步骤,以该策略指导协同存储的整个循环周期。A2CS加速算法与两种现有方法ADMM基准和ADMM-OR(具有过度松弛的ADMM)相比,A2CS加速算法在不同的步长规则下提供了更好的收敛性能,加速百分比至少达到25.33%,最多可以达到64.01%。此外,通过使用现有的平均分配策略(ADS)和现有的距离优先分配策略(DPDS)进行效用性能比较分析,结果表明A2CS加速算法在总效用和能耗方面优于ADS和DPDS。As can be seen from the above, one or more embodiments of the present invention provide an edge storage acceleration method, apparatus, and device for cooperating with mobile devices, paying particular attention to the unique characteristics of mobile devices and the dynamic network topology of multiple mobile devices , transforming the cooperative storage problem into a solvable optimization problem. By studying the acceleration strategy, an A2CS acceleration algorithm is proposed to efficiently solve the optimization problem of cooperative storage. In the A2CS acceleration algorithm, the convergence speed can be theoretically improved. At the same time, the proposed A collaborative storage strategy includes six steps, which can represent the entire process of collaborative storage. A2CS acceleration algorithm is applied throughout all steps of the strategy, and the strategy guides the entire cycle of collaborative storage. Compared with the two existing methods ADMM benchmark and ADMM-OR (ADMM with over-relaxation), the A2CS acceleration algorithm provides better convergence performance under different step size rules, and the acceleration percentage reaches at least 25.33%, Up to 64.01% can be achieved. Furthermore, by using the existing average allocation strategy (ADS) and the existing distance priority allocation strategy (DPDS) for utility performance comparative analysis, the results show that the A2CS acceleration algorithm outperforms ADS and DPDS in terms of total utility and energy consumption.
需要说明的是,本发明一个或多个实施例的方法可以由单个设备执行,例如一台计算机或服务器等。本实施例的方法也可以应用于分布式场景下,由多台设备相互配合来完成。在这种分布式场景的情况下,这多台设备中的一台设备可以只执行本发明一个或多个实施例的方法中的某一个或多个步骤,这多台设备相互之间会进行交互以完成所述的方法。It should be noted that, the methods of one or more embodiments of the present invention may be executed by a single device, such as a computer or a server. The method in this embodiment can also be applied in a distributed scenario, and is completed by the cooperation of multiple devices. In the case of such a distributed scenario, one device among the multiple devices may only execute one or more steps in the method of one or more embodiments of the present invention, and the multiple devices may perform operations among each other. interact to complete the described method.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing describes specific embodiments of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that in the embodiments and still achieve desirable results. Additionally, the processes depicted in the figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
参考图4,基于同一发明构思,本发明一个或多个实施例还提供了一种协同移动设备的边缘存储加速装置,包括:第一建立模块、第二建立模块、计算模块、策略模块和执行模块。Referring to FIG. 4 , based on the same inventive concept, one or more embodiments of the present invention further provide an edge storage acceleration apparatus for cooperating with mobile devices, including: a first establishment module, a second establishment module, a calculation module, a policy module, and an execution module. module.
其中,第一建立模块,被配置为建立移动设备间传输数据的边缘协同存储任务;Wherein, the first establishment module is configured to establish an edge cooperative storage task for data transmission between mobile devices;
第二建立模块,被配置为基于所述边缘协同存储任务建立边缘协同存储模型,所述边缘协同存储模型包括:移动设备集合、发送移动设备、接收移动设备和网络拓扑,所述移动设备集合包括至少两个移动设备;The second establishment module is configured to establish an edge cooperative storage model based on the edge cooperative storage task, where the edge cooperative storage model includes: a set of mobile devices , send mobile device , receiving mobile device and network topology , the mobile device collection Include at least two mobile devices;
计算模块,被配置为基于所述边缘协同存储模型计算得到A2CS加速算法;a computing module, configured to calculate and obtain an A2CS acceleration algorithm based on the edge collaborative storage model;
策略模块,被配置为基于所述边缘协同存储模型和A2CS加速算法,提出边缘协同存储策略;a strategy module, configured to propose an edge collaborative storage strategy based on the edge collaborative storage model and the A2CS acceleration algorithm;
执行模块,被配置为以所述边缘协同存储策略指导所述边缘协同存储任务。An execution module configured to direct the edge cooperative storage task with the edge cooperative storage policy.
为了描述的方便,描述以上装置时以功能分为各种模块分别描述。当然,在实施本发明一个或多个实施例时可以把各模块的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, when describing the above device, the functions are divided into various modules and described respectively. Of course, when implementing one or more embodiments of the present invention, the functions of each module may be implemented in one or more software and/or hardware.
上述实施例的装置用于实现前述实施例中相应的方法,并且具有相应的方法实施例的有益效果,在此不再赘述。The apparatuses in the foregoing embodiments are used to implement the corresponding methods in the foregoing embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
基于同一发明构思,本发明一个或多个实施例还提供了一种电子设备,该电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上任意一实施例所述的方法。Based on the same inventive concept, one or more embodiments of the present invention also provide an electronic device, the electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor The method described in any one of the above embodiments is implemented when the program is executed.
图5示出了本实施例所提供的一种更为具体的电子设备硬件结构示意图, 该设备可以包括:处理器501、存储器502、输入/输出接口503、通信接口504和总线505。其中处理器501、存储器502、输入/输出接口503和通信接口504通过总线505实现彼此之间在设备内部的通信连接。FIG. 5 shows a more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment. The device may include: a
处理器501可以采用通用的CPU(Central Processing Unit,中央处理器)、微处理器、应用专用集成电路(Application Specific Integrated Circuit,ASIC)、或者一个或多个集成电路等方式实现,用于执行相关程序,以实现本说明书实施例所提供的技术方案。The
存储器502可以采用ROM(Read Only Memory,只读存储器)、RAM(Random AccessMemory,随机存取存储器)、静态存储设备,动态存储设备等形式实现。存储器502可以存储操作系统和其他应用程序,在通过软件或者固件来实现本说明书实施例所提供的技术方案时,相关的程序代码保存在存储器5020中,并由处理器501来调用执行。The
输入/输出接口503用于连接输入/输出模块,以实现信息输入及输出。输入输出/模块可以作为组件配置在设备中(图中未示出),也可以外接于设备以提供相应功能。其中输入设备可以包括键盘、鼠标、触摸屏、麦克风、各类传感器等,输出设备可以包括显示器、扬声器、振动器、指示灯等。The input/
通信接口504用于连接通信模块(图中未示出),以实现本设备与其他设备的通信交互。其中通信模块可以通过有线方式(例如USB、网线等)实现通信,也可以通过无线方式(例如移动网络、WIFI、蓝牙等)实现通信。The
总线505包括一通路,在设备的各个组件(例如处理器501、存储器502、输入/输出接口503和通信接口504)之间传输信息。
需要说明的是,尽管上述设备仅示出了处理器501、存储器502、输入/输出接口503、通信接口504以及总线505,但是在具体实施过程中,该设备还可以包括实现正常运行所必需的其他组件。此外,本领域的技术人员可以理解的是,上述设备中也可以仅包含实现本说明书实施例方案所必需的组件,而不必包含图中所示的全部组件。It should be noted that although the above-mentioned device only shows the
为了验证A2CS加速算法的性能,发明人设计和实施一系列实验,特别地,以无人飞行器(UAV)为例,并在后续中使用DJIUAV的参数。进行实验时使用步长规则。In order to verify the performance of the A2CS acceleration algorithm, the inventors designed and implemented a series of experiments, especially, taking the unmanned aerial vehicle (UAV) as an example, and used the parameters of DJIUAV in the follow-up. Use the step size rule when conducting experiments.
首先,假设边缘包含20架无人机。边缘的网络拓扑包括不同时刻无人机之间的连通性和距离。为了在协同存储方案中模拟边缘网络拓扑的动态,使用给定范围内的随机数表示无人机之间的连接性和距离。具体来说,首先生成1到19之间的随机数,以表示可以连接到请求UAV以便允许数据传输的UAV数量。这意味着请求无人机最多可以连接1架无人机,最多可以连接19架无人机,这与实际情况是一致的。此外,由于与另一移动设备的连接丢失近似服从0-1分布进行,因此使用随机数来生成0-1布尔变量,以表示连接状态。然后,无人机之间的距离也随机产生在[5,20]的范围内。上下界是从小规模无人机集群中无人机之间的距离典型值得出的。First, let's say the edge contains 20 drones. The network topology at the edge includes the connectivity and distance between drones at different times. To simulate the dynamics of edge network topology in a cooperative storage scheme, random numbers within a given range are used to represent the connectivity and distance between drones. Specifically, a random number between 1 and 19 is first generated to represent the number of UAVs that can be connected to the requesting UAV in order to allow data transfer. This means that the requesting drone can connect to a maximum of 1 drone and a maximum of 19 drones, which is consistent with the actual situation. Furthermore, since the loss of connection to another mobile device approximately follows a 0-1 distribution, a random number is used to generate a 0-1 Boolean variable to represent the connection state. Then, the distances between drones are also randomly generated in the range of [5, 20]. The upper and lower bounds are typically derived from distances between drones in small-scale drone swarms.
此外,为了验证协同存储模型的有效性并减少时间成本,对副本数量进行了简单的预实验。参考图6,图中表示固定数据量大小时的能耗和数据丢失的归一化值。随着副本数量的增加,能耗增加,而数据丢失减少,这意味着移动设备的续航时间和边缘存储可靠性增加。因此,副本数的选择应同时考虑能耗和数据丢失,这与上述协同存储模型是一致的。另外,多于8个副本并不能减少数据丢失,反而增加了能耗,这在本文中被视为不可接受的协同存储方法。因此,将副本数设置为1到8,以避免不必要的实验并减少时间成本。Furthermore, to verify the effectiveness of the cooperative storage model and reduce the time cost, a simple pre-experiment on the number of replicas is performed. Referring to Figure 6, the figure shows the normalized values of energy consumption and data loss for a fixed data size. As the number of replicas increases, power consumption increases while data loss decreases, which means increased battery life and edge storage reliability for mobile devices. Therefore, the choice of the number of replicas should consider both energy consumption and data loss, which is consistent with the above-mentioned cooperative storage model. In addition, more than 8 replicas does not reduce data loss, but increases energy consumption, which is regarded as an unacceptable cooperative storage method in this paper. Therefore, set the number of replicas from 1 to 8 to avoid unnecessary experiments and reduce the time cost.
经过多次测试,最终设定参数的值,增广拉格朗日参数设置为,权重系数和是超参数,其设置为,,μ=0.001,θ=0.002,,PT=100mW,GT=2dbi,GR=2dbi,λ=0.125m,L=1,c=[5,30]MB,设置和经过多次测试得到满意的可行解。比较算法之间的性能,主要从三个指标上评价,包括:收敛次数、总体效用和能耗,收敛次数表示算法的收敛速度;总体效用表示使用不同算法的优化函数的值;能耗描述了移动设备的续航时间。After many tests, the value of the parameter is finally set, and the augmented Lagrangian parameter is set as , the weight coefficient and is a hyperparameter, which is set to , , μ=0.001, θ=0.002, , P T =100mW, G T =2dbi, G R =2dbi, λ=0.125m, L=1, c=[5,30]MB, set and A satisfactory feasible solution was obtained after many tests. Comparing the performance between algorithms, it is mainly evaluated from three indicators, including: convergence times, overall utility and energy consumption. The convergence times indicate the convergence speed of the algorithm; overall utility indicates the value of the optimization function using different algorithms; energy consumption describes the Battery life of mobile devices.
ADMM-OR算法源于ADMM算法,添加了对的更新,可以表示为:The ADMM-OR algorithm is derived from the ADMM algorithm, adding The update can be expressed as:
其中是松弛参数。特别是当时,此模式称为过松弛。在过度松弛之后,在接下来的步骤中使用更新变量和对偶变量。当中时,表明收敛性得到改善。因此,在实验中,设置。为了更好的收敛性能,发明人在进行实验时增加了步长规则。步长规则是指评估的不同方法,这意味着在每次迭代中都不固定。此操作的优越之处在于,可以在实践中提高收敛速度,并降低性能对初始值的依赖。当在每次迭代中更改时,很难证明其收敛性,但是如果在有限次数的迭代之后可以变为某个固定值,则上述理论仍然适用。因此,提出了另外两种步长规则,其中可以在协同存储问题所需的精度范围内固定。它们可以分别表示为:in is the relaxation parameter. especially when , this mode is called over-relaxation. After over-relaxing, use in the next steps update variable and the dual variable . when , indicating improved convergence. Therefore, in the experiment, set . For better convergence performance, the inventors increased the step size rule when conducting experiments. Step rules refer to evaluating different methods, which means Not fixed in each iteration. The advantage of this operation is that, in practice, the speed of convergence can be increased and the dependence of performance on initial values is reduced. when It is difficult to prove its convergence when changing in each iteration, but if can become some fixed value after a finite number of iterations, the above theory still applies. Therefore, two other step size rules are proposed, where Can be fixed within the precision required for co-storage problems. They can be expressed as:
首先,进行了20个实验,并使用上述三种算法以及三种步长规则,基于相同实验设置分别对结果进行平均求值。具体来说,将数据量大小设置为。参考图7(a)、图7(b)和图7(c),直方图指示了副本数与收敛次数之间的关系,而折线图显示了使用具有不同步长规则的A2CS加速算法的总效用与副本数之间的关系。随着副本数量的增加,当,和时,收敛次数也都增加。对于每种步长规则,所提出的A2CS加速算法收敛次数最少,表现出最佳的收敛性能。此外,使用A2CS加速算法的总效用首先减少,然后增加。当副本数等于4时达到最小值,这意味着边缘请求节点的最佳选择是备份4个副本并将它们发送到连接的存储节点。还可以得出结论,步长规则极大地影响了收敛速度,但对总效用影响很小。First, 20 experiments were conducted and the results were averaged separately based on the same experimental settings using the three algorithms described above and the three step size rules. Specifically, set the data volume size to . Referring to Fig. 7(a), Fig. 7(b) and Fig. 7(c), the histograms indicate the relationship between the number of replicas and the number of convergences, while the line graphs show the total amount of acceleration algorithms using A2CS with different step-length rules. The relationship between utility and replica count. As the number of copies increases, when , and , the convergence times also increase. For each step size rule, the proposed A2CS acceleration algorithm has the fewest convergence times and exhibits the best convergence performance. Furthermore, the overall utility of using the A2CS acceleration algorithm first decreases and then increases. The minimum value is reached when the number of replicas equals 4, which means that the best option for an edge requesting node is to backup 4 replicas and send them to the connected storage node. It can also be concluded that the step size rule greatly affects the convergence speed, but has little effect on the overall utility.
参考图8(a)、图8(b)和图8(c),当数据量大小固定时,使用不同步长规则对收敛次数的影响。总体而言,使用步长规则和的结果要比使用固定步长规则的结果更好。尽管也有一些例外,但是使用三种步长规则的那些例外结果之间的差异是适度的,这是可以接受的。此外,发现与其他算法结合使用时,某个步长规则并不总是比其他步长规则具有更好的性能。特别地,为每种算法选择收敛速度最快的结果,并在表4中列出。比较这三种组合的结果。表3中用下划线标出了最佳性能,并计算了加速百分比。Referring to Figure 8(a), Figure 8(b), and Figure 8(c), when the data size is fixed, the effect of using different step length rules on the convergence times. In general, use the step size rule and results are better than using the fixed-step rule results are better. Although there are some exceptions, the difference between the results of those exceptions using the three-step rule is modest and acceptable. Furthermore, it was found that when combined with other algorithms, certain step rules did not always perform better than others. In particular, the results with the fastest convergence rate are selected for each algorithm and listed in Table 4. Compare the results of these three combinations. The best performance is underlined in Table 3 and the speedup percentage is calculated.
表3 副本数量对不同组合的平均数量收敛的影响Table 3 Influence of the number of replicas on the convergence of the average number of different combinations
参考图9(a)和图9(b),为了分析数据量大小对收敛性能的影响,进行了另外20个实验并对结果进行平均,根据图7中的结果将副本数设置为4。由于图8中的结果显示了使用的相对较慢的收敛速度,仅使用和来分析结果。直方图指定数据量大小和收敛次数之间的关系。通常,收敛次数随着数据量大小的增加而增加。值得注意的现象是,随着数据量大小的增加,A2CS的性能要比其他算法好得多,这意味着数据量大小对A2CS的性能影响不大,而对ADMM和ADMM-OR的影响却很大。特别是,对于每种算法,选择算法和收敛速度最快的步长规则的组合。所选结果显示在表4中,用下划线标出了最佳性能并计算了加速百分比。随着数据量大小的增加,加速百分比也增加,这意味着所提出的算法A2CS在处理大量数据时表现更好。Referring to Fig. 9(a) and Fig. 9(b), in order to analyze the influence of the data size on the convergence performance, another 20 experiments were conducted and the results were averaged, and the number of replicas was set to 4 according to the results in Fig. 7. Since the results in Figure 8 show that using The relatively slow convergence rate of , using only and to analyze the results. The histogram specifies the relationship between the amount of data and the number of convergence times. Typically, the number of convergence increases with the size of the data. It is worth noting that with the increase of the data size, the performance of A2CS is much better than other algorithms, which means that the size of the data has little effect on the performance of A2CS, while it has a great effect on ADMM and ADMM-OR. big. In particular, for each algorithm, the combination of the algorithm and the step size rule with the fastest convergence rate is chosen. The selected results are shown in Table 4, the best performance is underlined and the percentage of speedup is calculated. As the size of the data volume increases, the speedup percentage also increases, which means that the proposed algorithm A2CS performs better when dealing with large amounts of data.
表4 数据量大小对不同组合的平均数收敛的影响Table 4 Influence of data size on the mean convergence of different combinations
数据副本的分配与优化函数的效用密切相关,并在所提出的算法A2CS中进行了分析,因此效用性能分析被定义为A2CS与也进行数据分配的算法之间的比较。与A2CS加速算法比较的算法包括:The allocation of data copies is closely related to the utility of the optimization function and is analyzed in the proposed algorithm A2CS, so utility performance analysis is defined as a comparison between A2CS and an algorithm that also performs data allocation. Algorithms compared to A2CS accelerated algorithms include:
ADS(平均分配策略):将数据副本均匀地分布到相连的存储节点;ADS (Average Distribution Strategy): Distribute data copies evenly to connected storage nodes;
DPDS(距离优先分配策略):DPDS优先考虑请求节点和连接的存储节点之间的距离。距离越短,优先级越高。DPDS (Distance Priority Assignment Policy): DPDS prioritizes the distance between the requesting node and the connected storage node. The shorter the distance, the higher the priority.
基于上面的加速性能分析,当数据量大小分别在[5,30]MB的范围内随机选择时,将数据副本数设置为4,并进行了20个实验。Based on the above accelerated performance analysis, when the data size is randomly selected in the range of [5, 30]MB, the number of data copies is set to 4, and 20 experiments are carried out.
参考图10(a),直方图描述了使用不同算法的总效用,参考图10(b),直方图描述了使用不同算法的能耗,相应地,折线图分别表示在不同时间范围内A2CS相对于ADS和DPDS的优势百分比。总体而言,所提出的算法A2CS在总效用和能耗上均比ADS和DPDS表现出更好的性能。结果表明,A2CS的数据副本分发策略可以最大程度地降低总效用和能耗,从而满足移动设备边缘和长续航时间的高存储可靠性的优化目标。Referring to Fig. 10(a), the histogram depicts the total utility of using different algorithms, and referring to Fig. 10(b), the histogram depicts the energy consumption using different algorithms. Correspondingly, the line graphs represent the relative A2CS relative to each other over different time horizons. Dominance percentage over ADS and DPDS. Overall, the proposed algorithm A2CS exhibits better performance than ADS and DPDS in both total utility and energy consumption. The results show that the data copy distribution strategy of A2CS can minimize the total utility and energy consumption, thus meeting the optimization goal of high storage reliability at the edge of mobile devices and long battery life.
参考图11(a),A2CS加速算法的总效用,参考图11(b),A2CS加速算法的能耗,为了分析步长规则对效用的影响,使用A2CS进行了另外20个实验,其中,和。发现使用的A2CS在大多数实验中的表现与另两个组合几乎相同,并且仅在某些情况下更好。此外,值得注意的是,当副本数设置为4时,的A2CS具有最佳的加速性能。尽管的A2CS可以更好地加速收敛。在一些实验中,效用性能的结果表明步长规则对效用性能的影响很小。Referring to Fig. 11(a), the total utility of the A2CS acceleration algorithm, and referring to Fig. 11(b), the energy consumption of the A2CS acceleration algorithm, in order to analyze the effect of the step size rule on the utility, another 20 experiments were conducted using A2CS, where , and . find use The A2CS performed almost identically to the other two combinations in most experiments, and was only better in some cases. Also, it is worth noting that when the number of replicas is set to 4, A2CS has the best acceleration performance. although A2CS can better accelerate convergence. In some experiments, the results of the utility performance show that the step size rule has little effect on the utility performance.
所属领域的普通技术人员应当理解:以上任何实施例的讨论仅为示例性的,并非旨在暗示本公开的范围(包括权利要求)被限于这些例子;在本公开的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上所述的本发明一个或多个实施例的不同方面的许多其它变化,为了简明它们没有在细节中提供。Those of ordinary skill in the art should understand that the discussion of any of the above embodiments is only exemplary, and is not intended to imply that the scope of the present disclosure (including the claims) is limited to these examples; under the spirit of the present disclosure, the above embodiments or Technical features in different embodiments may also be combined, steps may be carried out in any order, and there are many other variations of the different aspects of one or more embodiments of the invention as described above, which are not in detail for the sake of brevity supply.
另外,为简化说明和讨论,并且为了不会使本发明一个或多个实施例难以理解,在所提供的附图中可以示出或可以不示出与集成电路(IC)芯片和其它部件的公知的电源/接地连接。此外,可以以框图的形式示出装置,以便避免使本发明一个或多个实施例难以理解,并且这也考虑了以下事实,即关于这些框图装置的实施方式的细节是高度取决于将要实施本发明一个或多个实施例的平台的(即,这些细节应当完全处于本领域技术人员的理解范围内)。在阐述了具体细节(例如,电路)以描述本公开的示例性实施例的情况下,对本领域技术人员来说显而易见的是,可以在没有这些具体细节的情况下或者这些具体细节有变化的情况下实施本发明一个或多个实施例。因此,这些描述应被认为是说明性的而不是限制性的。Additionally, in order to simplify the description and discussion, and in order not to obscure one or more embodiments of the invention, in the figures provided may or may not be shown in connection with integrated circuit (IC) chips and other components Well known power/ground connections. Furthermore, devices may be shown in block diagram form in order to avoid obscuring one or more embodiments of the invention, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the implementation of the invention (ie, these details should be well within the comprehension of those skilled in the art) of the invention of one or more embodiments. Where specific details (eg, circuits) are set forth to describe exemplary embodiments of the present disclosure, it will be apparent to those skilled in the art that these specific details may be made without or with changes One or more embodiments of the invention are implemented below. Accordingly, these descriptions are to be considered illustrative rather than restrictive.
本发明一个或多个实施例旨在涵盖落入所附权利要求的宽泛范围之内的所有这样的替换、修改和变型。因此,凡在本发明一个或多个实施例的精神和原则之内,所做的任何省略、修改、等同替换、改进等,均应包含在本公开的保护范围之内。The one or more embodiments of the invention are intended to cover all such alternatives, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omission, modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of the present invention should be included within the protection scope of the present disclosure.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010252903.4A CN111158612B (en) | 2020-04-02 | 2020-04-02 | A kind of edge storage acceleration method, device and device for collaborative mobile device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010252903.4A CN111158612B (en) | 2020-04-02 | 2020-04-02 | A kind of edge storage acceleration method, device and device for collaborative mobile device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111158612A CN111158612A (en) | 2020-05-15 |
| CN111158612B true CN111158612B (en) | 2020-07-24 |
Family
ID=70567659
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010252903.4A Active CN111158612B (en) | 2020-04-02 | 2020-04-02 | A kind of edge storage acceleration method, device and device for collaborative mobile device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111158612B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116776162B (en) * | 2023-03-10 | 2025-12-16 | 中国人民解放军国防科技大学 | Topology sequence time difference solving method considering communication delay |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110830520A (en) * | 2020-01-13 | 2020-02-21 | 中国人民解放军国防科技大学 | A robust and reliable edge storage method and system for the Internet of Things |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005157712A (en) * | 2003-11-26 | 2005-06-16 | Hitachi Ltd | Remote copy network |
| WO2013076757A1 (en) * | 2011-11-22 | 2013-05-30 | Hitachi, Ltd. | Storage system, storage apparatus and method of controlling storage system |
| CN104573119B (en) * | 2015-02-05 | 2017-10-27 | 重庆大学 | Towards the Hadoop distributed file system storage methods of energy-conservation in cloud computing |
| CN107370802A (en) * | 2017-07-10 | 2017-11-21 | 中国人民解放军国防科学技术大学 | A kind of collaboration storage dispatching method based on alternating direction multiplier method |
| CN108121511B (en) * | 2017-12-21 | 2022-05-27 | 北京猫盘技术有限公司 | Data processing method, device and equipment in distributed edge storage system |
| CN110471621B (en) * | 2019-07-29 | 2020-12-29 | 东南大学 | An edge collaborative storage method for real-time data processing applications |
| CN110443298B (en) * | 2019-07-31 | 2022-02-15 | 华中科技大学 | A DDNN based on cloud-edge collaborative computing and its construction method and application |
| CN110430266B (en) * | 2019-08-06 | 2021-07-13 | 腾讯科技(深圳)有限公司 | Edge cloud cooperative data transmission method, device, equipment and storage medium |
-
2020
- 2020-04-02 CN CN202010252903.4A patent/CN111158612B/en active Active
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110830520A (en) * | 2020-01-13 | 2020-02-21 | 中国人民解放军国防科技大学 | A robust and reliable edge storage method and system for the Internet of Things |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111158612A (en) | 2020-05-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Xu et al. | Adaptive computation offloading with edge for 5G-envisioned internet of connected vehicles | |
| Abd Elaziz et al. | IoT workflow scheduling using intelligent arithmetic optimization algorithm in fog computing | |
| Zhu et al. | BLOT: Bandit learning-based offloading of tasks in fog-enabled networks | |
| Luo et al. | Stability of cloud-based UAV systems supporting big data acquisition and processing | |
| CN112911618B (en) | A task offload scheduling method for drone server based on resource exit scenario | |
| CN112291793A (en) | Resource allocation method and device of network access equipment | |
| CN107172166A (en) | The cloud and mist computing system serviced towards industrial intelligentization | |
| Khani et al. | Deep reinforcement learning‐based resource allocation in multi‐access edge computing | |
| CN114007231A (en) | Heterogeneous unmanned aerial vehicle data unloading method and device, electronic equipment and storage medium | |
| Li et al. | Resource scheduling based on improved spectral clustering algorithm in edge computing | |
| Qureshi et al. | Asynchronous federated learning for resource allocation in software-defined internet of UAVs | |
| CN111158612B (en) | A kind of edge storage acceleration method, device and device for collaborative mobile device | |
| Wei et al. | Resource allocation scheduling scheme for task migration and offloading in 6G Cybertwin internet of vehicles based on DRL | |
| CN117336789A (en) | An energy-efficient video computing offloading optimization method, device and related equipment | |
| CN114884957B (en) | Method and device for unloading computing tasks in air-space-ground network and electronic equipment | |
| CN111343602A (en) | Joint layout and task scheduling optimization method based on evolutionary algorithm | |
| CN114281527A (en) | A low-complexity mobile edge computing resource allocation method | |
| CN120166422A (en) | Model task processing method, device, communication equipment, readable storage medium and program product | |
| Li et al. | A novel approach for computation offloading based on a parallel collaborative genetic algorithm in MEC | |
| Zhu et al. | Research on fog resource scheduling based on cloud-fog collaboration technology in the electric internet of things | |
| CN111541781B (en) | Distributed cooperative task scheduling method for mobile equipment in dense network | |
| Deb et al. | Loop-the-loops: Fragmented learning over networks for constrained IoT devices | |
| Wang et al. | Deep learning-driven differentiated traffic scheduling in cloud-iot data center networks | |
| CN116996907A (en) | Data processing methods, devices, equipment and computer-readable storage media | |
| Xu et al. | Enhancing fog computing through intelligent reflecting surface assistance: A Lyapunov driven reinforcement learning approach |
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 |