CN110012106A - A method, device and system for coordinated caching based on edge computing - Google Patents

A method, device and system for coordinated caching based on edge computing Download PDF

Info

Publication number
CN110012106A
CN110012106A CN201910299332.7A CN201910299332A CN110012106A CN 110012106 A CN110012106 A CN 110012106A CN 201910299332 A CN201910299332 A CN 201910299332A CN 110012106 A CN110012106 A CN 110012106A
Authority
CN
China
Prior art keywords
object content
network node
node
edge
content
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910299332.7A
Other languages
Chinese (zh)
Other versions
CN110012106B (en
Inventor
芮兰兰
李文璟
李碧瑶
喻鹏
杨杨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing University of Posts and Telecommunications
Original Assignee
Beijing University of Posts and Telecommunications
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing University of Posts and Telecommunications filed Critical Beijing University of Posts and Telecommunications
Priority to CN201910299332.7A priority Critical patent/CN110012106B/en
Publication of CN110012106A publication Critical patent/CN110012106A/en
Application granted granted Critical
Publication of CN110012106B publication Critical patent/CN110012106B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a kind of coordination caching method, apparatus and system based on edge calculations, after coordinator node receives response message, calculate the caching value of utility of object content, and when the caching value of utility of object content is less than preset threshold, the first identifier for not needing to cache in edge network node for indicating object content is added in object content;When the caching value of utility of object content is greater than or equal to preset threshold, the second identifier for needing to cache in edge network node for indicating object content is added in object content, then, for the object content after addition first or second mark, the response message comprising the object content is sent to edge network node.The embodiment of the present invention can reduce the degree of redundancy of content caching, while reduce spatial cache occupancy, to save Internet resources.

Description

一种基于边缘计算的协调缓存方法、装置及系统A method, device and system for coordinated caching based on edge computing

技术领域technical field

本发明涉及计算机通信技术领域,特别是涉及一种基于边缘计算的协调缓存方法、装置及系统。The present invention relates to the technical field of computer communication, in particular to a method, device and system for coordinated caching based on edge computing.

背景技术Background technique

随着移动互联网技术的迅速发展以及物联网技术的广泛应用,网络中边缘设备的数量迅速增加,导致网络流量的快速增长,这些快速增长的网络流量给网络带来了巨大的挑战。目前,网络中主要采用的端到端传输机制使得网络中存在大量流行内容的重复传输,浪费了网络资源,且,网络流量的快速增长,使得网络中内容传输的时延难以满足网络的需求,该内容例如可以是视频文件、新闻、快讯等。因此,如何提高网络资源的利用率、同时降低网络时延、提升用户体验成为了人们关注的重点。With the rapid development of mobile Internet technology and the wide application of Internet of Things technology, the number of edge devices in the network has increased rapidly, resulting in a rapid increase in network traffic, which has brought huge challenges to the network. At present, the end-to-end transmission mechanism mainly used in the network causes the repeated transmission of a large number of popular content in the network, which wastes network resources. Moreover, the rapid growth of network traffic makes it difficult for the delay of content transmission in the network to meet the needs of the network. The content may be, for example, video files, news, newsletters, and the like. Therefore, how to improve the utilization rate of network resources, reduce network delay, and improve user experience has become the focus of people's attention.

ICN(Information-Centric Network,信息中心网络)网络作为下一代网络体系结构研究的新热点,采用以信息为中心的通信方式替代了现有的以端为中心的通信方式,直接对内容进行统一标识并基于内容标识进行定位、路由和传输,将网络打造成为信息传输、存储和服务的一体化平台。在ICN中最重要的特征之一就是网内缓存,该特征利用网络节点中的存储空间缓存内容的副本,响应用户的请求,以减少冗余流量,缓解网络带宽压力。现有针对ICN网内内容进行缓存的方法有:TERC(Transparent En-Route Caching,透明路由缓存)技术,该技术是大多数ICN默认的缓存决策技术,在该技术中,内容在各分发路径上的所有节点中进行缓存,当用户需要请求内容时,直接可以从所请求的节点获取到内容,可以缩短用户获取内容的时间。ICN (Information-Centric Network) network, as a new hotspot in the research of next-generation network architecture, adopts the information-centric communication method to replace the existing end-centric communication method, and directly identifies the content uniformly. And based on content identification for positioning, routing and transmission, the network is built into an integrated platform for information transmission, storage and services. One of the most important features in ICN is in-network caching, which utilizes the storage space in network nodes to cache copies of content and respond to user requests to reduce redundant traffic and relieve network bandwidth pressure. The existing methods for caching content in the ICN network include: TERC (Transparent En-Route Caching) technology, which is the default caching decision technology of most ICNs. In this technology, content is distributed on each distribution path. Cached in all nodes of the node, when the user needs to request the content, the content can be obtained directly from the requested node, which can shorten the time for the user to obtain the content.

然而,现有的针对ICN网内内容的缓存方法,对各分发路径上的所有节点都进行内容的缓存,使得缓存的内容冗余度较大,占用的空间较多,因此出现浪费网络资源的问题。However, the existing caching method for content in the ICN network caches the content on all nodes on each distribution path, so that the cached content is redundant and occupies a lot of space, so there is a waste of network resources. question.

发明内容SUMMARY OF THE INVENTION

本发明实施例的目的在于提供一种基于边缘计算的协调缓存方法、装置及系统,以减少信息中心网络中内容缓存冗余。具体技术方案如下:The purpose of the embodiments of the present invention is to provide a coordinated caching method, device and system based on edge computing, so as to reduce the redundancy of content caching in the information center network. The specific technical solutions are as follows:

第一方面,本发明实施例提供了一种基于边缘计算的协调缓存方法,应用于信息中心网络中的协调节点,所述信息中心网络包括:源服务器,云端网络层,协调层,及边缘网络层,所述云端网络层包含若干云端网络节点,所述协调层包含若干协调节点,所述边缘网络层包含若干边缘网络节点,所述协调层分别与所述云端网络层和所述边缘网络层通信连接,所述方法包括:In a first aspect, an embodiment of the present invention provides an edge computing-based coordination caching method, which is applied to a coordination node in an information center network, where the information center network includes an origin server, a cloud network layer, a coordination layer, and an edge network layer, the cloud network layer includes a number of cloud network nodes, the coordination layer includes a number of coordination nodes, the edge network layer includes a number of edge network nodes, and the coordination layer is respectively connected with the cloud network layer and the edge network layer. communication connection, the method includes:

接收第一用户请求,所述第一用户请求为所述边缘网络节点转发的用户请求,所述第一用户请求用于获取目标内容;查询边缘内容放置信息表ECT中是否记录有与所述目标内容对应的标记;如果所述ECT中记录有与所述目标内容对应的标记,则利用所述ECT中记录的路由信息,将所述第一用户请求转发至缓存有所述目标内容的边缘网络节点;如果所述ECT中未记录有与所述目标内容对应的标记,则将所述第一用户请求转发至距离所述协调节点最近的云端网络节点,以使所述云端网络节点处理所述第一用户请求;接收由所述云端网络节点转发的响应报文,所述响应报文包含所述目标内容;通过第一预设公式,计算所述目标内容的缓存效用值;如果所述缓存效用值小于预设阈值,则在所述目标内容中添加第一标识;所述第一标识用于标示所述目标内容不需要在边缘网络节点中缓存;针对添加第一标识后的目标内容,将包含该目标内容的响应报文发送至所述边缘网络节点;如果所述缓存效用值大于或等于预设阈值,则在所述目标内容中添加第二标识;所述第二标识用于标示所述目标内容需要在边缘网络节点中缓存;针对添加第二标识后的目标内容,将包含该目标内容的响应报文发送至所述边缘网络节点。Receive a first user request, where the first user request is a user request forwarded by the edge network node, and the first user request is used to obtain the target content; query whether the edge content placement information table ECT is recorded with the target content The mark corresponding to the content; if the mark corresponding to the target content is recorded in the ECT, the first user request is forwarded to the edge network that caches the target content by using the routing information recorded in the ECT node; if the mark corresponding to the target content is not recorded in the ECT, forward the first user request to the cloud network node closest to the coordinating node, so that the cloud network node processes the a first user request; receive a response message forwarded by the cloud network node, the response message includes the target content; calculate the cache utility value of the target content by using a first preset formula; if the cache If the utility value is less than the preset threshold, a first identifier is added to the target content; the first identifier is used to indicate that the target content does not need to be cached in the edge network node; for the target content after adding the first identifier, Send a response message containing the target content to the edge network node; if the cache utility value is greater than or equal to a preset threshold, add a second identifier to the target content; the second identifier is used to indicate The target content needs to be cached in the edge network node; for the target content after adding the second identifier, a response message containing the target content is sent to the edge network node.

可选地,所述第一预设公式表示为:Optionally, the first preset formula is expressed as:

式中,CU(i)表示目标内容i的缓存效用值,P(i)表示目标内容i的流行度,Size(i)表示目标内容i占用的存储空间,CR(i)表示目标内容i缓存的网络收益比;其中,所述目标内容的流行度用于表示所述目标内容被请求的频繁程度;所述目标内容缓存的网络收益比用于表示所述目标内容在边缘网络节点缓存节约的时间百分比。In the formula, CU(i) represents the cache utility value of the target content i, P(i) represents the popularity of the target content i, Size(i) represents the storage space occupied by the target content i, and CR(i) represents the cache of the target content i. The network revenue ratio of the target content; wherein, the popularity of the target content is used to represent the frequency of the target content being requested; the network revenue ratio of the target content cache is used to represent the target content cached at edge network nodes saves time percentage.

第二方面,本发明实施例提供了一种基于边缘计算的协调缓存方法,应用于信息中心网络中的云端网络节点,所述方法包括:In a second aspect, an embodiment of the present invention provides a coordinated caching method based on edge computing, which is applied to a cloud network node in an information center network, and the method includes:

接收第二用户请求,所述第二用户请求为所述协调节点转发的用户请求,所述第二用户请求用于获取目标内容,且所述第二用户请求中携带有所述目标内容的标识信息;计算所述目标内容的标识信息所对应的哈希HASH值,并在分布式哈希表DHT中查找与所述HASH值对应的云端网络节点;当查找到所述HASH值对应的云端网络节点时,判断该云端网络节点中是否已缓存所述目标内容;如果在该云端网络节点中缓存有所述目标内容,则将针对所述第二用户请求的响应报文发送至所述协调节点;如果在该云端网络节点中未缓存所述目标内容,则将所述第二用户请求转发至源服务器,以使所述源服务器根据所述第二用户请求返回响应报文;接收所述响应报文;计算所述响应报文中的目标内容的HASH值;基于得到的所述目标内容的HASH值,将所述目标内容缓存至与该HASH值对应的云端网络节点,并将所述响应报文转发至协调节点。Receive a second user request, where the second user request is a user request forwarded by the coordination node, the second user request is used to obtain target content, and the second user request carries the identifier of the target content information; calculate the hash HASH value corresponding to the identification information of the target content, and search the cloud network node corresponding to the HASH value in the distributed hash table DHT; when the cloud network node corresponding to the HASH value is found node, determine whether the target content has been cached in the cloud network node; if the target content is cached in the cloud network node, send a response message for the second user request to the coordination node ; if the target content is not cached in the cloud network node, forward the second user request to the source server, so that the source server returns a response message according to the second user request; receive the response message; calculate the HASH value of the target content in the response message; based on the obtained HASH value of the target content, cache the target content to the cloud network node corresponding to the HASH value, and store the response The message is forwarded to the coordinating node.

第三方面,本发明实施例提供了一种基于边缘计算的协调缓存方法,应用于信息中心网络中的边缘网络节点,所述方法包括:In a third aspect, an embodiment of the present invention provides a coordinated caching method based on edge computing, which is applied to an edge network node in an information center network, and the method includes:

接收第三用户请求,所述第三用户请求为请求节点发送的用户请求,所述第三用户请求用于获取目标内容;判断各边缘网络节点中是否缓存有所述目标内容;如果所述边缘网络节点中缓存有所述目标内容,则将所述目标内容发送至所述请求节点;如果所述边缘网络节点中均未缓存所述目标内容,则将所述第三用户请求转发至所述协调节点,以使所述协调节点查询边缘内容放置信息表ECT中是否记录有与所述目标内容对应的标识;接收所述协调节点发送的包含添加第二标识后的所述目标内容的响应报文;计算缓存概率;基于所述缓存概率,对所述目标内容进行缓存,并将所述目标内容发送至所述请求节点。Receive a third user request, where the third user request is a user request sent by the requesting node, and the third user request is used to obtain the target content; determine whether the target content is cached in each edge network node; if the edge network node has cached the target content; If the target content is cached in the network node, the target content is sent to the requesting node; if the target content is not cached in the edge network nodes, the third user request is forwarded to the requesting node. coordinating node, so that the coordinating node inquires whether the identification corresponding to the target content is recorded in the edge content placement information table ECT; receiving a response message sent by the coordinating node and containing the target content after adding the second identification document; calculate a cache probability; based on the cache probability, cache the target content, and send the target content to the requesting node.

可选地,所述计算缓存概率的步骤,包括:通过第二预设公式计算缓存概率,所述第二预设公式表示为:Optionally, the step of calculating the cache probability includes: calculating the cache probability by using a second preset formula, and the second preset formula is expressed as:

式中,pp(r)表示边缘网络节点r的缓存概率,R表示请求节点到协调节点之间的中间节点的数量,DrS表示边缘网络节点r与协调节点的距离。In the formula, p p (r) represents the cache probability of edge network node r, R represents the number of intermediate nodes between the requesting node and the coordinating node, and D rS represents the distance between the edge network node r and the coordinating node.

第四方面,本发明实施例提供了一种基于边缘计算的协调缓存装置,应用于信息中心网络中的协调层,所述信息中心网络包括:源服务器,云端网络层,协调层,及边缘网络层,所述云端网络层包含若干云端网络节点,所述协调层包含若干协调节点,所述边缘网络层包含若干边缘网络节点,所述协调层分别与所述云端网络层和所述边缘网络层通信连接,所述装置包括:In a fourth aspect, an embodiment of the present invention provides an edge computing-based coordination cache device, which is applied to a coordination layer in an information center network, where the information center network includes an origin server, a cloud network layer, a coordination layer, and an edge network layer, the cloud network layer includes a number of cloud network nodes, the coordination layer includes a number of coordination nodes, the edge network layer includes a number of edge network nodes, and the coordination layer is respectively connected with the cloud network layer and the edge network layer. A communication link, the apparatus includes:

第一接收模块,用于接收第一用户请求,所述第一用户请求为所述边缘网络节点转发的用户请求,所述第一用户请求用于获取目标内容;查询模块,用于查询边缘内容放置信息表ECT中是否记录有与所述目标内容对应的标记;如果所述ECT中记录有与所述目标内容对应的标记,则利用所述ECT中记录的路由信息,将所述第一用户请求转发至缓存有所述目标内容的边缘网络节点;如果所述ECT中未记录有与所述目标内容对应的标记,则将所述第一用户请求转发至距离所述协调节点最近的云端网络节点,以使所述云端网络节点处理所述第一用户请求;第二接收模块,用于接收由所述云端网络节点转发的响应报文,所述响应报文包含所述目标内容;第一计算模块,用于通过第一预设公式,计算所述目标内容的缓存效用值;第一判断模块,用于判断所述目标内容的缓存效用值是否小于预设阈值;第一发送模块,用于如果所述缓存效用值小于预设阈值,则在所述目标内容中添加第一标识;所述第一标识用于标示所述目标内容不需要在边缘网络节点中缓存;针对添加第一标识后的目标内容,将包含该目标内容的响应报文发送至所述边缘网络节点;第二发送模块,用于如果所述缓存效用值大于或等于预设阈值,则在所述目标内容中添加第二标识;所述第二标识用于标示所述目标内容需要在边缘网络节点中缓存;针对添加第二标识后的目标内容,将包含该目标内容的响应报文发送至所述边缘网络节点。a first receiving module, configured to receive a first user request, where the first user request is a user request forwarded by the edge network node, and the first user request is used to obtain target content; a query module, used to query edge content Whether the mark corresponding to the target content is recorded in the placement information table ECT; if the mark corresponding to the target content is recorded in the ECT, then the routing information recorded in the ECT is used to send the first user The request is forwarded to the edge network node that caches the target content; if the mark corresponding to the target content is not recorded in the ECT, the first user request is forwarded to the cloud network closest to the coordinating node node, so that the cloud network node processes the first user request; a second receiving module is configured to receive a response message forwarded by the cloud network node, where the response message includes the target content; the first a calculation module, configured to calculate the cache utility value of the target content through a first preset formula; a first judgment module, used to judge whether the cache utility value of the target content is less than a preset threshold; a first sending module, using If the cache utility value is less than a preset threshold, add a first identifier to the target content; the first identifier is used to indicate that the target content does not need to be cached in the edge network node; for adding the first identifier After the target content, send a response message containing the target content to the edge network node; the second sending module is configured to add a cache value to the target content if the cache utility value is greater than or equal to a preset threshold a second identifier; the second identifier is used to indicate that the target content needs to be cached in the edge network node; for the target content after adding the second identifier, a response message containing the target content is sent to the edge network node .

第五方面,本发明实施例提供了一种基于边缘计算的协调缓存装置,应用于信息中心网络中的云端网络层,所述装置包括:In a fifth aspect, an embodiment of the present invention provides an edge computing-based coordination cache device, which is applied to a cloud network layer in an information center network, and the device includes:

第三接收模块,用于接收第二用户请求,所述第二用户请求为所述协调节点转发的用户请求,所述第二用户请求用于获取目标内容,且所述第二用户请求中携带有所述目标内容的标识信息;第二计算模块,用于计算所述目标内容的标识信息所对应的哈希HASH值,并在分布式哈希表DHT中查找与所述HASH值对应的云端网络节点;第二判断模块,用于当查找到所述HASH值对应的云端网络节点时,判断该云端网络节点中是否已缓存所述目标内容;第三发送模块,用于如果在该云端网络节点中缓存有所述目标内容,则将针对所述第二用户请求的响应报文发送至所述协调节点;第四发送模块,用于如果在该云端网络节点中未缓存所述目标内容,则将所述第二用户请求转发至源服务器,以使所述源服务器根据所述第二用户请求返回响应报文;第四接收模块,用于接收所述响应报文;第三计算模块,用于计算所述响应报文中的目标内容的HASH值;第一缓存模块,用于基于得到的所述目标内容的HASH值,将所述目标内容缓存至与该HASH值对应的云端网络节点,并将所述响应报文转发至协调节点。A third receiving module, configured to receive a second user request, where the second user request is a user request forwarded by the coordinating node, the second user request is used to obtain target content, and the second user request carries There is the identification information of the target content; the second calculation module is used to calculate the hash HASH value corresponding to the identification information of the target content, and searches for the cloud corresponding to the HASH value in the distributed hash table DHT a network node; a second judging module, used for judging whether the target content has been cached in the cloud network node when the cloud network node corresponding to the HASH value is found; a third sending module, used for if the cloud network node is in the cloud network If the target content is cached in the node, the response message for the second user request is sent to the coordinating node; the fourth sending module is configured to, if the target content is not cached in the cloud network node, then forward the second user request to the source server, so that the source server returns a response message according to the second user request; a fourth receiving module is configured to receive the response message; a third computing module, For calculating the HASH value of the target content in the response message; the first cache module is used to cache the target content to the cloud network node corresponding to the HASH value based on the obtained HASH value of the target content , and forward the response message to the coordinating node.

第六方面,本发明实施例提供了一种基于边缘计算的协调缓存装置,应用于信息中心网络中的边缘网络层,所述装置包括:In a sixth aspect, an embodiment of the present invention provides an edge computing-based coordination cache device, which is applied to an edge network layer in an information center network, and the device includes:

第五接收模块,用于获取第三用户请求,所述第三用户请求为请求节点发送的用户请求,所述第三用户请求用于获取目标内容;第三判断模块,用于判断各边缘网络节点中是否缓存有所述目标内容;第五发送模块,用于如果所述边缘网络节点中缓存有所述目标内容,则将所述目标内容发送至所述请求节点;第六发送模块,用于如果所述边缘网络节点中均未缓存所述目标内容,则将所述第三用户请求转发至所述协调节点,以使所述协调节点查询边缘内容放置信息表ECT中是否记录有与所述目标内容对应的标识;第六接收模块,用于接收所述协调节点发送的包含添加第二标识后的所述目标内容的响应报文;第四计算模块,用于计算缓存概率;第二缓存模块,用于基于所述缓存概率,对所述目标内容进行缓存,并将所述目标内容发送至所述请求节点。The fifth receiving module is used to obtain a third user request, the third user request is a user request sent by the requesting node, and the third user request is used to obtain the target content; the third judgment module is used to judge each edge network Whether the target content is cached in the node; the fifth sending module is configured to send the target content to the requesting node if the target content is cached in the edge network node; the sixth sending module is configured to use If the target content is not cached in the edge network node, the third user request is forwarded to the coordinating node, so that the coordinating node inquires whether the edge content placement information table ECT records whether there is any content related to the target content. the identifier corresponding to the target content; the sixth receiving module is used to receive the response message sent by the coordinating node and contains the target content after adding the second identifier; the fourth calculation module is used to calculate the cache probability; the second A caching module, configured to cache the target content based on the caching probability, and send the target content to the requesting node.

第七方面,本发明实施例提供了一种基于边缘计算的协调缓存系统,包括:源服务器,云端网络节点,协调节点以及边缘网络节点,所述源服务器与所述云端网络节点直接通信,所述协调节点分别与所述云端网络节点和所述边缘网络节点通信连接。In a seventh aspect, an embodiment of the present invention provides a coordinated caching system based on edge computing, including: an origin server, a cloud network node, a coordination node and an edge network node, the origin server communicates directly with the cloud network node, so The coordinating node is in communication connection with the cloud network node and the edge network node, respectively.

本发明实施例提供的一种基于边缘计算的协调缓存方法、装置及系统,协调节点接收响应报文后,能够计算目标内容的缓存效用值,并当目标内容的缓存效用值小于预设阈值时,在目标内容中添加用于标示目标内容不需要在边缘网络节点中缓存的第一标识;当目标内容的缓存效用值大于或等于预设阈值时,在目标内容中添加用于标示目标内容需要在边缘网络节点中缓存的第二标识,然后,针对添加第一或第二标识后的目标内容,将包含该目标内容的响应报文发送至边缘网络节点,由于本发明实施例能够通过协调节点控制边缘网络节点对需要缓存的目标内容进行缓存,而不是对所有的目标内容都进行缓存,因此,本发明实施例可以减少内容缓存的冗余程度,同时减少缓存空间占用,从而节省网络资源。In an edge computing-based coordinated caching method, device, and system provided by the embodiments of the present invention, after the coordinating node receives a response message, it can calculate the caching utility value of the target content, and when the caching utility value of the target content is less than a preset threshold , adding a first identifier to the target content to indicate that the target content does not need to be cached in the edge network node; when the cache utility value of the target content is greater than or equal to the preset threshold, add a first identifier to the target content to indicate that the target content needs to be cached The second identifier cached in the edge network node, and then, for the target content after adding the first or second identifier, a response message containing the target content is sent to the edge network node, because the embodiment of the present invention can pass the coordinating node The edge network node is controlled to cache the target content that needs to be cached instead of all the target content. Therefore, the embodiment of the present invention can reduce the redundancy degree of content caching and reduce the occupation of cache space, thereby saving network resources.

本发明实施例提供的一种基于边缘计算的协调缓存方法、装置及系统,云端网络节点接收响应报文后,计算响应报文中的目标内容的HASH值,基于得到的目标内容的HASH值,将目标内容缓存至与该HASH值对应的云端网络节点,并将响应报文转发至协调节点。本发明实施例由于能够基于得到的目标内容的HASH值,将目标内容缓存至与该HASH值对应的云端网络节点,因此目标内容对应一个云端网络节点进行缓存,不需要在其他的云端网络节点中重复缓存,减少内容缓存的冗余,同时减少空间的占用,节省网络资源。In the method, device and system for coordinated caching based on edge computing provided by the embodiments of the present invention, after receiving the response message, the cloud network node calculates the HASH value of the target content in the response message, and based on the obtained HASH value of the target content, Cache the target content to the cloud network node corresponding to the HASH value, and forward the response message to the coordinating node. Since the embodiment of the present invention can cache the target content to the cloud network node corresponding to the HASH value based on the obtained HASH value of the target content, the target content is cached corresponding to a cloud network node, and does not need to be cached in other cloud network nodes. Repeated caching reduces the redundancy of content caching, reduces space occupation, and saves network resources.

本发明实施例提供的一种基于边缘计算的协调缓存方法、装置及系统,边缘网络节点接收响应报文后,计算缓存概率,基于该缓存概率,对目标内容进行缓存,并将目标内容发送至请求节点。本发明实施例中,基于所计算的缓存概率对目标内容进行缓存,而不是接收到响应报文之后在传输路径上所有的边缘网络节点中都对目标内容进行缓存,减少内容缓存的冗余程度,同时减少缓存空间占用,从而节省网络资源,进一步可以使得在用户请求内容时快速的获取该内容,提高缓存命中率。当然,实施本发明的任一产品或方法并不一定需要同时达到以上所述的所有优点。In an edge computing-based coordinated caching method, device, and system provided by an embodiment of the present invention, an edge network node calculates a caching probability after receiving a response message, caches target content based on the caching probability, and sends the target content to request node. In the embodiment of the present invention, the target content is cached based on the calculated caching probability, instead of caching the target content in all edge network nodes on the transmission path after receiving the response message, thereby reducing the redundancy of content caching , while reducing the occupation of the cache space, thereby saving network resources, further enabling the user to quickly obtain the content when the user requests the content, and improving the cache hit rate. Of course, it is not necessary for any product or method of the present invention to achieve all of the advantages described above at the same time.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.

图1为本发明实施例提供的一种网络结构示意图;1 is a schematic diagram of a network structure according to an embodiment of the present invention;

图2为本发明实施例提供的第一种基于边缘计算的协调缓存方法流程图;FIG. 2 is a flowchart of a first method for coordinated caching based on edge computing provided by an embodiment of the present invention;

图3为本发明实施例提供的第二种基于边缘计算的协调缓存方法流程图;3 is a flowchart of a second method for coordinated caching based on edge computing provided by an embodiment of the present invention;

图4为本发明实施例提供的第三种基于边缘计算的协调缓存方法流程图;4 is a flowchart of a third method for coordinated caching based on edge computing provided by an embodiment of the present invention;

图5为本发明实施例提供的第四种基于边缘计算的协调缓存方法流程图;5 is a flowchart of a fourth method for coordinated caching based on edge computing provided by an embodiment of the present invention;

图6为本发明实施例提供的第五种基于边缘计算的协调缓存方法流程图;6 is a flowchart of a fifth edge computing-based coordinated caching method provided by an embodiment of the present invention;

图7为本发明实施例提供的第六种基于边缘计算的协调缓存方法流程图;7 is a flowchart of a sixth method for coordinated caching based on edge computing provided by an embodiment of the present invention;

图8为本发明实施例提供的一种基于边缘计算的协调缓存系统信令交互示意图;FIG. 8 is a schematic diagram of signaling interaction of an edge computing-based coordinated cache system according to an embodiment of the present invention;

图9a为本发明实施例提供的服务器负载减小率与流行度因子变化关系仿真图;9a is a simulation diagram of a relationship between a server load reduction rate and a popularity factor change provided by an embodiment of the present invention;

图9b为本发明实施例提供的路由跳数减小率与流行度因子变化关系仿真图;Fig. 9b is a simulation diagram of a relationship between a reduction rate of routing hops and a change in popularity factor provided by an embodiment of the present invention;

图9c为本发明实施例提供的缓存冗余度与流行度因子变化关系仿真图;FIG. 9c is a simulation diagram of the relationship between cache redundancy and popularity factor variation provided by an embodiment of the present invention;

图9d为本发明实施例提供的服务器负载减小率仿真图;9d is a simulation diagram of a server load reduction rate provided by an embodiment of the present invention;

图9e为本发明实施例提供的路由跳数减小率仿真图;9e is a simulation diagram of a reduction rate of routing hops provided by an embodiment of the present invention;

图9f为本发明实施例提供的缓存冗余度随缓存容量增大的变化情况仿真图;FIG. 9f is a simulation diagram of the change of cache redundancy with the increase of cache capacity according to an embodiment of the present invention;

图10为本发明实施例提供的第一种基于边缘计算的协调缓存装置结构示意图;FIG. 10 is a schematic structural diagram of a first edge computing-based coordination cache device provided by an embodiment of the present invention;

图11为本发明实施例提供的第二种基于边缘计算的协调缓存装置结构示意图;FIG. 11 is a schematic structural diagram of a second type of edge computing-based coordination cache device provided by an embodiment of the present invention;

图12为本发明实施例提供的第三种基于边缘计算的协调缓存装置结构示意图;FIG. 12 is a schematic structural diagram of a third edge computing-based coordination cache device according to an embodiment of the present invention;

图13为本发明实施例提供的第四种基于边缘计算的协调缓存装置结构示意图;FIG. 13 is a schematic structural diagram of a fourth edge computing-based coordination cache device provided by an embodiment of the present invention;

图14为本发明实施例提供的第五种基于边缘计算的协调缓存装置结构示意图;FIG. 14 is a schematic structural diagram of a fifth edge computing-based coordination cache device provided by an embodiment of the present invention;

图15为本发明实施例提供的第六种基于边缘计算的协调缓存装置结构示意图;15 is a schematic structural diagram of a sixth kind of edge computing-based coordination cache device provided by an embodiment of the present invention;

图16为本发明实施例提供的一种电子设备的结构示意图;16 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;

图17为本发明实施例提供的另一种电子设备的结构示意图;17 is a schematic structural diagram of another electronic device provided by an embodiment of the present invention;

图18为本发明实施例提供的另一种电子设备的结构示意图。FIG. 18 is a schematic structural diagram of another electronic device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

为了解决现有ICN网内内容的缓存冗余度较大,占用空间较多,进而出现的浪费网络资源的问题,本发明实施例提供了一种基于边缘计算的协调缓存方法、装置及系统。In order to solve the problem that the cache redundancy of the content in the existing ICN network is relatively large, occupies more space, and thus wastes network resources, the embodiments of the present invention provide a coordinated caching method, device and system based on edge computing.

本发明实施例中ICN网络包括:源服务器,云端网络层,协调层,及边缘网络层,云端网络层包含若干云端网络节点,协调层包含若干协调节点,边缘网络层包含若干边缘网络节点,协调层分别与云端网络层和边缘网络层通信连接,源服务器与云端网络层通信连接。可参见图1,图1为本发明实施例提供的一种网络结构示意图,协调层的协调节点与云端网络层的云端网络节点可以直接通信连接,一个协调节点能够管理多个边缘网络节点。参见图1,边缘网络节点可以划分为多个邻域,每个邻域由一个协调节点控制,一个邻域中有多个边缘网络节点。本发明实施例提供的一种基于边缘计算的协调缓存方法、装置及系统应该于该ICN网络中。In the embodiment of the present invention, the ICN network includes: a source server, a cloud network layer, a coordination layer, and an edge network layer. The cloud network layer includes a number of cloud network nodes, the coordination layer includes a number of coordination nodes, and the edge network layer includes a number of edge network nodes. The layers are respectively connected to the cloud network layer and the edge network layer, and the source server is connected to the cloud network layer. Referring to FIG. 1, FIG. 1 is a schematic diagram of a network structure according to an embodiment of the present invention. The coordination node of the coordination layer and the cloud network node of the cloud network layer can be directly communicated and connected, and one coordination node can manage multiple edge network nodes. Referring to Fig. 1, an edge network node can be divided into multiple neighborhoods, each neighborhood is controlled by a coordinating node, and there are multiple edge network nodes in one neighborhood. An edge computing-based coordinated caching method, device, and system provided by the embodiments of the present invention should be in the ICN network.

本发明实施例中,协调层所包含的协调节点可以是:在本发明实施例中未进行协调层的划分之前,从可以与云端网络节点直接通信连接的边缘网络节点中选取的,因该可以与云端网络节点直接通信连接的边缘网络节点,可以与多个用户终端通信连接,进而管理多个用户终端,也可以与云端网络节点直接通信连接。故而从可以与云端网络节点直接通信连接的边缘网络节点中选取的协调节点所形成的协调层,可以分别与云端网络层和边缘网络层通信连接。具体的,本领域技术人员可以根据实际需求从边缘网络节点中选取协调节点,本发明实施例在此不作限制。In the embodiment of the present invention, the coordination nodes included in the coordination layer may be selected from edge network nodes that can be directly communicated with the cloud network nodes before the coordination layer is divided in the embodiment of the present invention. The edge network node that is directly communicatively connected to the cloud network node can communicate with multiple user terminals to manage multiple user terminals, and can also directly communicate with the cloud network node. Therefore, the coordination layer formed by the coordination nodes selected from the edge network nodes that can be directly communicatively connected to the cloud network node can be respectively connected to the cloud network layer and the edge network layer. Specifically, a person skilled in the art can select a coordination node from edge network nodes according to actual requirements, which is not limited in this embodiment of the present invention.

参见图2,图2为本发明实施例提供的第一种基于边缘计算的协调缓存方法,应用于协调节点,该方法可以包括:Referring to FIG. 2, FIG. 2 is a first edge computing-based coordination caching method provided by an embodiment of the present invention, applied to a coordination node, and the method may include:

S201,接收第一用户请求。其中,第一用户请求为边缘网络节点转发的用户请求,该第一用户请求用于获取目标内容。实际应用中,该第一用户请求需要获取的目标内容,例如可以是视频文件、新闻、快讯等。S201. Receive a first user request. The first user request is a user request forwarded by the edge network node, and the first user request is used to acquire the target content. In practical applications, the first user requests the target content to be acquired, which may be, for example, video files, news, and express messages.

S202,查询ECT(Edge Content Table,边缘内容放置信息表)中是否记录有与目标内容对应的标记。本发明实施例中,当协调节点接收到第一用户请求时,该第一用户请求为边缘网络节点所转发的用户请求,可以称为第三用户请求,查询ECT中是否记录有与目标内容对应的标记。该ECT中记录有不同内容对应的标记,以及该标记对应的路由信息,该路由信息中记录有存储目标内容对应的边缘网络节点的信息,且每一内容对应的标记是唯一的。S202 , query whether a mark corresponding to the target content is recorded in the ECT (Edge Content Table, edge content placement information table). In this embodiment of the present invention, when the coordinating node receives the first user request, the first user request is the user request forwarded by the edge network node, which may be called the third user request, and it is queried whether there is a record corresponding to the target content in the ECT mark. The ECT records markers corresponding to different contents and routing information corresponding to the markers. The routing information records the information of the edge network node corresponding to the storage target contents, and the marker corresponding to each content is unique.

S203,如果ECT中记录有与目标内容对应的标记,则利用ECT中记录的路由信息,将第一用户请求转发至缓存有目标内容的边缘网络节点。如果ECT中记录有与目标内容对应的标记,则可以直接利用ECT中记录的路由信息,将第一用户请求转发至缓存有目标内容的边缘网络节点,以便缓存有目标内容的边缘网络节点将目标内容返回给请求节点。S203 , if a mark corresponding to the target content is recorded in the ECT, forward the first user request to the edge network node where the target content is cached by using the routing information recorded in the ECT. If a mark corresponding to the target content is recorded in the ECT, the routing information recorded in the ECT can be directly used to forward the first user request to the edge network node that caches the target content, so that the edge network node that caches the target content sends the target content to the edge network node. The content is returned to the requesting node.

S204,如果ECT中未记录有与目标内容对应的标记,则将第一用户请求转发至距离协调节点最近的云端网络节点,以使云端网络节点处理第一用户请求。如果ECT中未记录有与目标内容对应的标记,说明协调节点所控制的边缘网络节点中都未缓存目标内容,则可以将第一用户请求转发至距离协调节点最近的云端网络节点,以使云端网络节点处理第一用户请求。在实际应用中,将第一用户请求转发至距离协调节点最近的云端网络节点,可以是将第一用户请求转发至与协调节点之间跳数最少的云端网络节点。本发明实施例中,所说的跳数最少是指从协调节点到边缘网络节点的传输路径上所经过的中间节点最少。S204, if the mark corresponding to the target content is not recorded in the ECT, forward the first user request to the cloud network node closest to the coordinating node, so that the cloud network node processes the first user request. If no mark corresponding to the target content is recorded in the ECT, indicating that the target content is not cached in the edge network nodes controlled by the coordinator node, the first user request can be forwarded to the cloud network node closest to the coordinator node, so that the cloud The network node processes the first user request. In practical applications, forwarding the first user request to the cloud network node closest to the coordinating node may be forwarding the first user request to the cloud network node with the least number of hops from the coordinating node. In the embodiment of the present invention, the minimum number of hops refers to the minimum number of intermediate nodes passed on the transmission path from the coordinator node to the edge network node.

本发明实施例中,协调节点针对接收到的第一用户请求,查询ECT中是否记录有与目标内容对应的标记,如果有,则可以将第一用户请求转发至缓存有目标内容的边缘网络节点。避免请求节点在其请求路径上的边缘网络节点中未请求到目标内容,而进一步向云端网络节点请求目标内容,可以使请求节点更快速的得到所请求的目标内容。In the embodiment of the present invention, the coordinating node queries whether a mark corresponding to the target content is recorded in the ECT for the received first user request, and if so, it can forward the first user request to the edge network node that caches the target content . To prevent the requesting node from not requesting the target content in the edge network nodes on its request path, and further requesting the target content from the cloud network node, the requesting node can obtain the requested target content more quickly.

参见图3,图3为本发明实施例提供的第二种基于边缘计算的协调缓存方法,应用于协调节点,该方法可以包括:Referring to FIG. 3, FIG. 3 is a second edge computing-based coordination caching method provided by an embodiment of the present invention, applied to a coordination node, and the method may include:

S301,接收由云端网络节点转发的响应报文,该响应报文包含目标内容。本发明实施例中,一种可能的实现方式为:协调节点所接收的由云端网络节点转发的响应报文为:边缘网络节点接收到请求节点发送的用于获取目标内容的用户请求之后,在边缘网络节点中未获取到目标内容,该用户请求被边缘网络节点转发至协调节点,且协调节点在ECT中未查询到记录有与目标内容对应的标记,将该用户请求进一步转发至云端网络节点。云端网络节点缓存有该目标内容时,所返回的包含目标内容的响应报文。S301: Receive a response message forwarded by the cloud network node, where the response message includes target content. In the embodiment of the present invention, a possible implementation manner is: the response message received by the coordinating node and forwarded by the cloud network node is: after the edge network node receives the user request sent by the requesting node for acquiring the target content, The target content is not obtained in the edge network node, the user request is forwarded by the edge network node to the coordinator node, and the coordinator node does not query and record the mark corresponding to the target content in the ECT, and the user request is further forwarded to the cloud network node. . When the cloud network node caches the target content, it returns a response message containing the target content.

本发明实施例另一种可能的实现方式为:协调节点所接收的由云端网络节点转发的响应报文为:边缘网络节点接收到请求节点发送的用于获取目标内容的用户请求之后,在边缘网络节点中未获取到目标内容,该用户请求被边缘网络节点转发至协调节点,且协调节点在ECT中未查询到记录有与目标内容对应的标记,将该用户请求进一步转发至云端网络节点。云端网络节点未缓存目标内容,并将该用户请求转发至源服务器。源服务器接收到用户请求之后,针对用户请求所返回的包含目标内容的响应报文。Another possible implementation manner of the embodiment of the present invention is: the response message received by the coordinating node and forwarded by the cloud network node is: after the edge network node receives the user request sent by the requesting node for acquiring the target content, If the target content is not obtained in the network node, the user request is forwarded by the edge network node to the coordinator node, and the coordinator node does not query and record the mark corresponding to the target content in the ECT, and the user request is further forwarded to the cloud network node. The cloud network node does not cache the target content and forwards the user request to the origin server. After the origin server receives the user request, it returns a response message containing the target content for the user request.

S302,通过第一预设公式,计算目标内容的缓存效用值。S302: Calculate the cache utility value of the target content by using the first preset formula.

本发明实施例中,协调节点接收到响应报文之后,可以通过第一预设公式,计算响应报文中包含的目标内容的缓存效用值,该第一预设公式可以表示为:In the embodiment of the present invention, after receiving the response message, the coordinating node may calculate the cache utility value of the target content included in the response message by using a first preset formula, and the first preset formula may be expressed as:

式中,CU(i)表示目标内容i的缓存效用值,P(i)表示目标内容i的流行度,Size(i)表示目标内容i占用的存储空间,CR(i)表示目标内容i缓存的网络收益比;其中,目标内容的流行度用于表示目标内容被请求的频繁程度;目标内容缓存的网络收益比用于表示目标内容在边缘网络节点缓存节约的时间百分比。In the formula, CU(i) represents the cache utility value of the target content i, P(i) represents the popularity of the target content i, Size(i) represents the storage space occupied by the target content i, and CR(i) represents the cache of the target content i. The network revenue ratio of the target content is used to indicate the frequency of the target content being requested; the network revenue ratio of the target content cache is used to indicate the percentage of time saved by the target content caching at the edge network nodes.

本发明实施例中,目标内容的流行度的获取步骤,可以包括:通过第二预设公式,计算目标内容的流行度,该第二预设公式可以表示为:In the embodiment of the present invention, the step of obtaining the popularity of the target content may include: calculating the popularity of the target content by using a second preset formula, and the second preset formula may be expressed as:

式中,counter(i)表示目标内容i在一个统计周期内被请求的次数,counter表示所有内容在一个统计周期内被请求的总次数。In the formula, counter(i) represents the number of times the target content i is requested in a statistical period, and counter represents the total number of times that all contents are requested in a statistical period.

记Pi=(pi1,pi2,…pik)T,则pik表示目标内容i在第阶周期计算的流行度,将pi看做统计周期的二次函数,得到二次回归模型:Denote P i =(p i1 , p i2 ,...p ik ) T , then p ik represents the popularity of the target content i calculated in the first-order cycle, and p i is regarded as a quadratic function of the statistical cycle to obtain a quadratic regression model :

pi=bi0+bi1t+bi2t2+ε,其中t=1,2,3,…k,ε~N(0,σ2)p i =b i0 +b i1 t+b i2 t 2 +ε, where t=1, 2, 3, ... k, ε~N(0,σ 2 )

式中,bi0、bi1、bi2为二次回归模型的系数,t表示二次回归模型的变量,令t1=t,t2=t2,将所述二次回归模型转为二元线性回归模型:In the formula, b i0 , b i1 , and b i2 are the coefficients of the quadratic regression model, t is the variable of the quadratic regression model, and t 1 =t, t 2 =t 2 , the quadratic regression model is converted into two Metalinear regression model:

pi=bi0+bi1t1+bi2t2+ε,其中t1=1,2,3,…k,t2=12,22,32,…k2 p i =b i0 +b i1 t 1 +b i2 t 2 +ε, where t 1 =1, 2, 3,...k, t 2 =1 2 , 2 2 , 3 2 ,...k 2

式中,系数矩阵为:In the formula, the coefficient matrix is:

记Bi=(bi0,bi1,bi2)T,则Bi的估计值为可得到记M=(TTT)-1TT,则当k确定时矩阵M可确定,即M可离线计算,可得到:Denote B i =(b i0 , b i1 , b i2 ) T , then the estimated value of B i is available Denote M=(T T T) -1 T T , then the matrix M can be determined when k is determined, that is, M can be calculated offline, and we can get:

式中,表示pi的估计值,将作为目标内容i的流行度。In the formula, represents the estimated value of pi , which will be as the popularity of the target content i.

本发明实施例中,目标内容缓存的网络收益比的获取步骤,可以包括:通过第三预设公式,计算请求目标内容的节点n(即请求节点n)所请求的目标内容在边缘网络缓存时的网络平均时延,该第三预设公式可以表示为:In the embodiment of the present invention, the step of obtaining the network revenue ratio of the target content cache may include: calculating, by using a third preset formula, when the target content requested by the node n (that is, the requesting node n) requesting the target content is cached in the edge network The average network delay of , the third preset formula can be expressed as:

式中,D1表示请求节点n所请求的目标内容在边缘网络缓存时的网络平均时延,表示请求节点n所请求的目标内容在边缘网络得到响应的概率,表示边缘网络层I的n节点到协调层的m节点的传播时延,表示协调层的m节点到边缘网络层I的n节点的传播时延,表示边缘网络层I的n节点到协调层的m节点的发送时延之和,表示协调层的m节点到边缘网络层I的n节点的发送时延之和,表示请求节点n所请求的目标内容在云端网络层得到响应的概率,表示协调层的m节点到云端网络层C的g节点的传播时延,表示云端网络层C的g节点到协调层的m节点的传播时延,表示协调层的m节点到云端网络层C的g节点的发送时延之和,表示云端网络层C的g节点到协调层的m节点的发送时延之和。In the formula, D 1 represents the average network delay when the target content requested by the requesting node n is cached in the edge network, Represents the probability that the target content requested by the requesting node n gets a response from the edge network, represents the propagation delay from the n nodes of the edge network layer I to the m nodes of the coordination layer, represents the propagation delay from the m node of the coordination layer to the n node of the edge network layer I, represents the sum of the transmission delays from the n nodes of the edge network layer I to the m nodes of the coordination layer, represents the sum of the transmission delays from the m nodes of the coordination layer to the n nodes of the edge network layer I, Represents the probability that the target content requested by the requesting node n gets a response at the cloud network layer, represents the propagation delay from the m node of the coordination layer to the g node of the cloud network layer C, represents the propagation delay from the g node of the cloud network layer C to the m node of the coordination layer, represents the sum of the sending delays from the m node of the coordination layer to the g node of the cloud network layer C, It represents the sum of the sending delays from the g node of the cloud network layer C to the m node of the coordination layer.

通过第四预设公式,计算请求节点n所请求的目标内容未在边缘网络缓存时的网络平均时延,该第四预设公式可以表示为:The fourth preset formula is used to calculate the average network delay when the target content requested by the requesting node n is not cached in the edge network. The fourth preset formula can be expressed as:

式中,D2表示请求节点n所请求目标内容未在边缘网络缓存时的网络平均时延。In the formula, D 2 represents the average network delay when the target content requested by the requesting node n is not cached in the edge network.

通过第五预设公式,计算请求节点n所请求的目标内容在边缘网络缓存处理的总时延,该第五预设公式可以表示为:The fifth preset formula is used to calculate the total delay of processing the target content requested by the requesting node n in the edge network cache. The fifth preset formula can be expressed as:

式中,Hi表示请求节点n所请求的目标内容i在边缘网络缓存处理的总时延,J表示边缘网络缓存内容的节点集合,Ai,j表示目标内容i在节点j上进行缓存的处理时延。In the formula, H i represents the total delay of the target content i requested by the requesting node n in the edge network cache processing, J represents the node set of the edge network cached content, A i,j represents the target content i cached on the node j. processing delay.

通过第六预设公式,计算目标内容i缓存的网络收益比,该第六预设公式可以表示为:Through the sixth preset formula, the network revenue ratio of the target content i cache is calculated, and the sixth preset formula can be expressed as:

式中,CR(i)表示目标内容i缓存的网络收益比。In the formula, CR(i) represents the network revenue ratio of the target content i cached.

S303,如果缓存效用值小于预设阈值,则在目标内容中添加第一标识。第一标识用于标示目标内容不需要在边缘网络节点中缓存。S303, if the cache utility value is less than the preset threshold, add a first identifier to the target content. The first identifier is used to indicate that the target content does not need to be cached in the edge network node.

S304,针对添加第一标识后的目标内容,将包含该目标内容的响应报文发送至边缘网络节点。本发明实施例中,当计算目标内容的缓存效用值小于预设阈值时,在目标内容中添加用于标示该目标内容不需要在边缘网络节点中缓存的第一标识,并将包含该目标内容的响应报文发送至边缘网络节点。具体的,本领域技术人员可根据实际需求对预设阈值进行设定,本发明实施例在此不作限制。S304, for the target content added with the first identifier, send a response message including the target content to the edge network node. In the embodiment of the present invention, when the cache utility value of the calculated target content is less than the preset threshold, a first identifier for indicating that the target content does not need to be cached in the edge network node is added to the target content, and the target content will be included The response message is sent to the edge network node. Specifically, those skilled in the art can set the preset threshold according to actual requirements, which is not limited in this embodiment of the present invention.

S305,如果缓存效用值大于或等于预设阈值,则在目标内容中添加第二标识。第二标识用于标示目标内容需要在边缘网络节点中缓存。S305, if the cache utility value is greater than or equal to the preset threshold, add a second identifier to the target content. The second identifier is used to indicate that the target content needs to be cached in the edge network node.

S306,针对添加第二标识后的目标内容,将包含该目标内容的响应报文发送至边缘网络节点。本发明实施例中,当所得缓存效用值大于或等于预设阈值时,在目标内容中添加用于标示该目标内容需要在边缘网络节点中缓存的第二标识,并将包含该目标内容的响应报文发送至边缘网络节点,以控制边缘网络节点对需要缓存的目标内容进行缓存。S306, for the target content added with the second identifier, send a response message including the target content to the edge network node. In the embodiment of the present invention, when the obtained cache utility value is greater than or equal to the preset threshold, a second identifier for indicating that the target content needs to be cached in the edge network node is added to the target content, and a response containing the target content is added. The message is sent to the edge network node to control the edge network node to cache the target content that needs to be cached.

本发明实施例中,协调节点接收响应报文后,能够计算目标内容的缓存效用值,并当目标内容的缓存效用值小于预设阈值时,在目标内容中添加用于标示目标内容不需要在边缘网络节点中缓存的第一标识;当目标内容的缓存效用值大于或等于预设阈值时,在目标内容中添加用于标示目标内容需要在边缘网络节点中缓存的第二标识,然后,针对添加第一或第二标识后的目标内容,将包含该目标内容的响应报文发送至边缘网络节点,由于本发明实施例能够通过协调节点控制边缘网络节点对需要缓存的目标内容进行缓存,而不是对所有的目标内容都进行缓存,因此,本发明实施例可以减少内容缓存的冗余程度,同时减少缓存空间占用,从而节省网络资源。In the embodiment of the present invention, after the coordinating node receives the response message, it can calculate the cache utility value of the target content, and when the cache utility value of the target content is less than the preset threshold, add a message to the target content to indicate that the target content does not need to be stored in the target content. The first identifier cached in the edge network node; when the cache utility value of the target content is greater than or equal to the preset threshold, a second identifier for indicating that the target content needs to be cached in the edge network node is added to the target content, and then, for After adding the target content with the first or second identifier, the response message containing the target content is sent to the edge network node. Because the embodiment of the present invention can control the edge network node to cache the target content that needs to be cached through the coordination node, and Not all target contents are cached, therefore, the embodiment of the present invention can reduce the redundancy degree of content cache and reduce the occupation of cache space, thereby saving network resources.

参见图4,图4为本发明实施例提供的第三种基于边缘计算的协调缓存方法,应用于云端网络节点,该方法可以包括:Referring to FIG. 4, FIG. 4 is a third edge computing-based coordinated caching method provided by an embodiment of the present invention, applied to a cloud network node, and the method may include:

S401,接收第二用户请求。第二用户请求可以为协调节点转发的用户请求,该第二用户请求用于获取目标内容,且第二用户请求中携带有目标内容的标识信息。本发明实施例中,当协调节点接收到第一用户请求,并在ECT中查询到未记录与目标内容对应的标记时,将该第一用户请求转发至云端网络节点。云端网络节点接收第二用户请求,该第二用户请求为协调节点转发的第一用户请求,该第二用户请求用于获取目标内容,且第二用户请求中携带有目标内容的标识信息。可选地,目标内容的标识信息可以是:目标内容的题目、目标内容的相关标记等用于标示该目标内容的信息,具体的,本发明实施例在此不作限制。S401. Receive a second user request. The second user request may be a user request forwarded by the coordinating node, the second user request is used to obtain the target content, and the second user request carries the identification information of the target content. In the embodiment of the present invention, when the coordinating node receives the first user request and finds that the mark corresponding to the target content is not recorded in the ECT, the first user request is forwarded to the cloud network node. The cloud network node receives a second user request, where the second user request is the first user request forwarded by the coordinating node, the second user request is used to obtain the target content, and the second user request carries the identification information of the target content. Optionally, the identification information of the target content may be information used to identify the target content, such as a title of the target content, a relevant mark of the target content, etc., which is not limited in this embodiment of the present invention.

S402,计算目标内容的标识信息所对应的HASH值,并在分布式哈希表DHT(Distributed Hash Table,分布式哈希表)中查找与HASH值对应的云端网络节点。其中,DHT是一种分布式存储方法,其具体的存储过程可参见现有技术的实现方式,本发明实施例在此不再赘述。云端网络节点在接收到协调节点转发的第二用户请求时,可以计算该第二用户请求中携带的目标内容的标识信息所对应的哈希HASH值,然后在DHT中查找与该HASH值对应的云端网络节点。S402: Calculate a HASH value corresponding to the identification information of the target content, and search for a cloud network node corresponding to the HASH value in a distributed hash table DHT (Distributed Hash Table, distributed hash table). The DHT is a distributed storage method, and reference may be made to the implementation manner of the prior art for a specific storage process thereof, and details are not described herein again in this embodiment of the present invention. When the cloud network node receives the second user request forwarded by the coordinating node, it can calculate the hash HASH value corresponding to the identification information of the target content carried in the second user request, and then search the DHT for the hash value corresponding to the HASH value. Cloud network node.

S403,当查找到HASH值对应的云端网络节点时,判断该云端网络节点中是否已缓存目标内容。S403, when the cloud network node corresponding to the HASH value is found, determine whether the target content has been cached in the cloud network node.

S404,如果在该云端网络节点中缓存有目标内容,则将针对第二用户请求的响应报文发送至协调节点。如果在该云端网络节点中缓存有目标内容,即在云端网络节点处就能够响应第二用户请求,则该云端网络节点会针对第二用户请求生成响应报文,然后,将所生成的响应报文发送至协调节点。S404, if the target content is cached in the cloud network node, send a response message for the second user request to the coordinating node. If the target content is cached in the cloud network node, that is, the second user request can be responded to at the cloud network node, the cloud network node will generate a response message for the second user request, and then send the generated response message to the The message is sent to the coordinating node.

S405,如果在该云端网络节点中未缓存目标内容,则将第二用户请求转发至源服务器,以使源服务器根据第二用户请求返回响应报文。如果在该云端网络节点中未缓存目标内容,即在云端网络节点处不能够响应第二用户请求,则该云端网络节点会将第二用户请求转发至源服务器,以使源服务器根据第二用户请求返回响应报文。在实际应用中,云端网络节点可以根据预设的FIB(Forwarding Information Table,转发信息表)将第二用户请求转发至源服务器,具体的,云端网络节点将第二用户请求转发至源服务器的实施方式,本发明实施例在此不作限制。S405, if the target content is not cached in the cloud network node, forward the second user request to the origin server, so that the origin server returns a response message according to the second user request. If the target content is not cached in the cloud network node, that is, the cloud network node cannot respond to the second user request, the cloud network node will forward the second user request to the origin server, so that the origin server can respond to the second user request according to the second user request. The request returns a response message. In practical applications, the cloud network node may forward the second user request to the source server according to a preset FIB (Forwarding Information Table, forwarding information table). Specifically, the cloud network node forwards the second user request to the source server. manner, which is not limited in this embodiment of the present invention.

本发明实施例中,云端网络节点针对接收到的第二用户请求,计算目标内容的标识信息所对应的HASH值,并在DHT中查找与HASH值对应的云端网络节点,当在云端网络节点中缓存有目标内容时,针对第二用户请求生成响应报文,并将该响应报文发送至协调节点,以使该响应报文能够快速的返回到请求目标内容的请求节点。In the embodiment of the present invention, the cloud network node calculates the HASH value corresponding to the identification information of the target content for the received second user request, and searches the DHT for the cloud network node corresponding to the HASH value. When the target content is cached, a response message is generated for the second user request, and the response message is sent to the coordinating node, so that the response message can be quickly returned to the requesting node requesting the target content.

参见图5,图5为本发明实施例提供的第四种基于边缘计算的协调缓存方法,应用于云端网络节点,该方法可以包括:Referring to FIG. 5, FIG. 5 is a fourth edge computing-based coordinated caching method provided by an embodiment of the present invention, applied to a cloud network node, and the method may include:

S501,接收响应报文。本发明实施例中,云端网络节点所接收的响应报文可以为:源服务器接收到云端网络节点所转发的第二用户请求时,源服务器根据该第二用户请求返回的响应报文,该响应报文中包含第二用户请求所请求的目标内容。S501, a response message is received. In this embodiment of the present invention, the response packet received by the cloud network node may be: when the source server receives the second user request forwarded by the cloud network node, the source server returns a response packet according to the second user request, the response The message contains the target content requested by the second user request.

S502,计算响应报文中的目标内容的HASH值。本发明实施例中可以是计算目标内容对应标识信息的HASH值,具体的,计算目标内容对应标识信息的HASH值的过程,可参见现有技术中HASH值的计算过程,本发明实施例在此不再赘述。S502: Calculate the HASH value of the target content in the response message. In the embodiment of the present invention, the HASH value of the identification information corresponding to the target content may be calculated. Specifically, for the process of calculating the HASH value of the identification information corresponding to the target content, reference may be made to the calculation process of the HASH value in the prior art, and the embodiment of the present invention is described here. No longer.

S503,基于得到的目标内容的HASH值,将目标内容缓存至与该HASH值对应的云端网络节点,并将响应报文转发至协调节点。将目标内容缓存至与该HASH值对应的云端网络节点的过程可参见现有技术中的HASH缓存过程,本发明实施例在此不再赘述。S503, based on the obtained HASH value of the target content, cache the target content in the cloud network node corresponding to the HASH value, and forward the response message to the coordinating node. For the process of caching the target content to the cloud network node corresponding to the HASH value, reference may be made to the HASH caching process in the prior art, and details are not described herein again in this embodiment of the present invention.

本发明实施例由于能够基于得到的目标内容的HASH值,将目标内容缓存至与该HASH值对应的云端网络节点,因此目标内容对应一个云端网络节点进行缓存,不需要在其他的云端网络节点中重复缓存,减少内容缓存的冗余,同时减少空间的占用,节省网络资源。Since the embodiment of the present invention can cache the target content to the cloud network node corresponding to the HASH value based on the obtained HASH value of the target content, the target content is cached corresponding to a cloud network node, and does not need to be cached in other cloud network nodes. Repeated caching reduces the redundancy of content caching, reduces space occupation, and saves network resources.

参见图6,图6为本发明实施例提供的第五种基于边缘计算的协调缓存方法,应用于边缘网络节点,该方法可以包括:Referring to FIG. 6, FIG. 6 is a fifth edge computing-based coordinated caching method provided by an embodiment of the present invention, applied to an edge network node, and the method may include:

S601,接收第三用户请求。第三用户请求为请求节点发送的用户请求,该第三用户请求用于获取目标内容。S601. Receive a third user request. The third user request is a user request sent by the requesting node, and the third user request is used to acquire the target content.

S602,判断各边缘网络节点中是否缓存有目标内容。S602: Determine whether the target content is cached in each edge network node.

S603,如果边缘网络节点中缓存有目标内容,则将目标内容发送至请求节点。S603, if the target content is cached in the edge network node, send the target content to the requesting node.

S604,如果边缘网络节点中均未缓存目标内容,则将第三用户请求转发至协调节点,以使协调节点查询边缘内容放置信息表ECT中是否记录有与目标内容对应的标识。S604, if the target content is not cached in the edge network nodes, forward the third user request to the coordinator node, so that the coordinator node queries whether the edge content placement information table ECT records an identifier corresponding to the target content.

本发明实施例中,边缘网络节点接收到第三用户请求之后,在各边缘网络节点中查询是否缓存有目标内容,如果在该第三用户请求发往协调节点的各边缘网络节点中都未缓存目标内容,则将第三用户请求转发至协调节点,以使协调节点查询边缘内容放置信息表ECT中是否记录有与目标内容对应的标识。以便第三用户请求在边缘网络节点未收到响应时,进一步向协调节点处请求目标内容。In this embodiment of the present invention, after receiving the third user request, the edge network node queries each edge network node whether the target content is cached. target content, the third user request is forwarded to the coordinating node, so that the coordinating node inquires whether an identifier corresponding to the target content is recorded in the edge content placement information table ECT. So that the third user requests to further request the target content from the coordinating node when the edge network node does not receive a response.

参见图7,图7为本发明实施例提供的第六种基于边缘计算的协调缓存方法,应用于边缘网络节点,该方法可以包括:Referring to FIG. 7, FIG. 7 is a sixth edge computing-based coordinated caching method provided by an embodiment of the present invention, applied to an edge network node, and the method may include:

S701,接收协调节点发送的包含添加第二标识后的目标内容的响应报文。本发明实施例中,边缘网络节点接收协调节点发送的包含添加第二标识后的目标内容的响应报文,即该响应报文中的目标内容为需要边缘网络节点进行缓存的内容。S701: Receive a response message sent by the coordinating node and including the target content added with the second identifier. In the embodiment of the present invention, the edge network node receives the response message sent by the coordinating node and includes the target content added with the second identifier, that is, the target content in the response message is the content that needs to be cached by the edge network node.

S702,计算缓存概率。在边缘网络节点接收到包含需要缓存的目标内容的响应报文时,计算该边缘网络节点的缓存概率。具体的,计算缓存概率的步骤,可以包括:通过第二预设公式计算缓存概率,该第二预设公式可以表示为:S702, calculating a cache probability. When the edge network node receives the response message containing the target content that needs to be cached, the cache probability of the edge network node is calculated. Specifically, the step of calculating the cache probability may include: calculating the cache probability by using a second preset formula, and the second preset formula may be expressed as:

式中,pp(r)表示边缘网络节点r的缓存概率,R表示请求节点到协调节点之间的中间节点的数量,DrS表示边缘网络节点r与协调节点的距离。In the formula, p p (r) represents the cache probability of edge network node r, R represents the number of intermediate nodes between the requesting node and the coordinating node, and D rS represents the distance between the edge network node r and the coordinating node.

S703,基于缓存概率,对目标内容进行缓存,并将目标内容发送至请求节点。本发明实施例中,计算缓存概率之后,将所计算的缓存概率输入预设的缓存模块,得到是否对目标内容进行缓存的输出,进一步对目标内容进行缓存,并将目标内容发送至请求节点。本发明实施例中,预设的缓存模块判断是否对目标内容进行缓存的实现方式,可参考开源仿真工具NDNSim中的模块,该模块可以实现:输入缓存概率,输出是否对内容进行缓存的结果。S703, based on the caching probability, cache the target content, and send the target content to the requesting node. In this embodiment of the present invention, after calculating the cache probability, the calculated cache probability is input into a preset cache module to obtain the output of whether to cache the target content, further cache the target content, and send the target content to the requesting node. In the embodiment of the present invention, the preset caching module determines whether to cache the target content. Reference may be made to the module in the open source simulation tool NDNSim. The module can implement: input the caching probability and output the result of whether to cache the content.

本发明实施例中,基于所计算的缓存概率对目标内容进行缓存,而不是接收到响应报文之后在传输路径上所有的边缘网络节点中都对目标内容进行缓存,减少内容缓存的冗余程度,同时减少缓存空间占用,从而节省网络资源,进一步可以使得在用户请求内容时快速的获取该内容,提高缓存命中率。In the embodiment of the present invention, the target content is cached based on the calculated caching probability, instead of caching the target content in all edge network nodes on the transmission path after receiving the response message, thereby reducing the redundancy of content caching , while reducing the occupation of the cache space, thereby saving network resources, further enabling the user to quickly obtain the content when the user requests the content, and improving the cache hit rate.

下面结合具体应用实例对本发明实施例提供的一种基于边缘计算的协调缓存进行介绍。The following describes an edge computing-based coordinated cache provided by an embodiment of the present invention with reference to specific application examples.

假设边缘网络中的一个邻域中包含多个边缘网络节点,该多个边缘网络节点由一个协调节点控制,协调节点与云端网络节点通信连接,云端网络节点与源服务器通信连接,其具体的信息传递过程如图8所示。用户请求到达边缘网络节点,如果边缘网络节点中缓存有目标内容,则将目标内容发送至请求节点,如果在各边缘网络节点中都未缓存目标内容时,该用户请求经过边缘网络节点,到达协调节点。协调节点接收用户请求,查询ECT中是否记录有与目标内容对应的标记,如果ECT中记录有与目标内容对应的标记,则利用ECT中记录的路由信息,将用户请求转发至缓存有目标内容的边缘网络节点,以使缓存有目标内容的边缘网络节点向请求节点返回目标内容。如果ECT中未记录有与目标内容对应的标记,则将用户请求转发至距离协调节点最近的云端网络节点。云端网络节点接收用户请求,计算目标内容的标识信息所对应的HASH值,并在DHT中查找与HASH值对应的云端网络节点。如果在云端网络节点中缓存有目标内容,则将针对用户请求的响应报文发送至协调节点,协调节点确定该目标内容是否需要在边缘网络节点缓存,并将响应报文发送至边缘网络节点;如果在云端网络节点中未缓存目标内容,则将用户请求转发至源服务器。源服务器接收用户请求,根据该用户请求向云端网络节点返回响应报文,以便云端网络节点缓存目标内容。云端网络节点接收响应报文,计算响应报文中的目标内容的HASH值,并基于该HASH值,将目标内容缓存至与该HASH值对应的云端网络节点,并将响应报文转发至协调节点。协调节点接收响应报文,计算目标内容的缓存效用值,并基于该缓存效用值,在目标内容中添加用于标示目标内容是否需要在边缘网络节点中缓存的标识,然后将添加标识之后的响应报文发送至边缘网络节点。边缘网络节点接收响应报文,计算缓存概率,并基于该缓存概率,对目标内容进行缓存,将目标内容发送至请求节点。It is assumed that a neighborhood in the edge network contains multiple edge network nodes, the multiple edge network nodes are controlled by a coordination node, the coordination node communicates with the cloud network node, and the cloud network node communicates with the source server. The specific information The transfer process is shown in Figure 8. The user request arrives at the edge network node. If the target content is cached in the edge network node, the target content is sent to the requesting node. If the target content is not cached in each edge network node, the user request passes through the edge network node and arrives at the coordinator. node. The coordinating node receives the user request and queries whether the tag corresponding to the target content is recorded in the ECT. If the tag corresponding to the target content is recorded in the ECT, the user request is forwarded to the cache with the target content by using the routing information recorded in the ECT. The edge network node, so that the edge network node that caches the target content returns the target content to the requesting node. If there is no mark corresponding to the target content recorded in the ECT, the user request is forwarded to the cloud network node closest to the coordinating node. The cloud network node receives the user request, calculates the HASH value corresponding to the identification information of the target content, and searches the DHT for the cloud network node corresponding to the HASH value. If the target content is cached in the cloud network node, the response message for the user request is sent to the coordination node, the coordination node determines whether the target content needs to be cached at the edge network node, and sends the response message to the edge network node; If the target content is not cached in the cloud network node, the user request is forwarded to the origin server. The origin server receives the user request, and returns a response message to the cloud network node according to the user request, so that the cloud network node caches the target content. The cloud network node receives the response message, calculates the HASH value of the target content in the response message, and based on the HASH value, caches the target content to the cloud network node corresponding to the HASH value, and forwards the response message to the coordinating node . The coordinating node receives the response message, calculates the cache utility value of the target content, and based on the cache utility value, adds an identifier to the target content to indicate whether the target content needs to be cached in the edge network node, and then adds the identifier to the response. The message is sent to the edge network node. The edge network node receives the response message, calculates the cache probability, caches the target content based on the cache probability, and sends the target content to the requesting node.

本发明实施例中,云端网络节点由于能够基于得到的目标内容的HASH值,将目标内容缓存至与该HASH值对应的云端网络节点,因此目标内容对应一个云端网络节点进行缓存,不需要在其他的云端网络节点中重复缓存,协调节点能够控制边缘网络节点对需要缓存的目标内容进行缓存,而不是对所有的目标内容都进行缓存,且基于所计算的缓存概率对目标内容进行缓存,而不是接收到响应报文之后在传输路径上所有的边缘网络节点中都对目标内容进行缓存,减少内容缓存的冗余程度,同时减少缓存空间占用,从而节省网络资源,进一步可以使得在用户请求内容时快速的获取该内容,提高缓存命中率。In the embodiment of the present invention, since the cloud network node can cache the target content to the cloud network node corresponding to the HASH value based on the obtained HASH value of the target content, the target content is cached corresponding to one cloud network node, and does not need to be cached in another cloud network node. The coordinating node can control the edge network nodes to cache the target content that needs to be cached, instead of caching all the target content, and cache the target content based on the calculated caching probability, instead of caching all the target content. After receiving the response message, the target content is cached in all edge network nodes on the transmission path, reducing the redundancy of content caching and reducing the occupation of cache space, thereby saving network resources, and further enabling users to request content when Get the content quickly and improve the cache hit rate.

示例性地,本发明实施例中对目标内容使用不同的缓存方法进行缓存,使用开源的仿真工具NDNSim进行仿真实验,其中,开源操作系统Ubuntu使用14.04,标准库函数libboost使用1.55,模拟器ndnSIM使用1.0。ndnSIM1.0是实现NDN(Named DataNetworking,命名数据网络)的一个NS-3的模块。实验构建了符合域内和域间特性的网络拓扑,节点数为50,其中包含32个边缘路由器,17个云端路由器和1个源服务器,每个路由器上包含一定数量的缓存内容并且运行相应的缓存方法。用户请求分布服从Zipf齐夫分布,请求到达符合泊松过程。具体参数设置如下表1所示。Exemplarily, in the embodiment of the present invention, different caching methods are used to cache the target content, and the open-source simulation tool NDNSim is used for simulation experiments, wherein the open-source operating system Ubuntu uses 14.04, the standard library function libboost uses 1.55, and the simulator ndnSIM uses 1.0. ndnSIM1.0 is an NS-3 module that implements NDN (Named Data Networking). The experiment constructs a network topology that conforms to intra-domain and inter-domain characteristics. The number of nodes is 50, including 32 edge routers, 17 cloud routers and 1 origin server. Each router contains a certain amount of cache content and runs the corresponding cache. method. The user request distribution obeys the Zipf Zipf distribution, and the request arrival conforms to the Poisson process. The specific parameter settings are shown in Table 1 below.

表1参数设置表Table 1 Parameter setting table

参数设置parameter settings 默认值Defaults 范围scope ZipfZipf 11 0.7~1.30.7~1.3 内容数目number of contents 1000010000 // 缓存块大小/chunkcache block size/chunk 5050 10~9010~90 请求速率/(request·s<sup>-1</sup>)Request rate/(request s<sup>-1</sup>) 100100 //

本发明示例中考虑三个性能评价指标:SLRR(server load reduction ratio,服务器负载减少率):网络内未到达服务器的兴趣包数目与总的兴趣包数目之比,其表达式为:In the example of the present invention, three performance evaluation indicators are considered: SLRR (server load reduction ratio, server load reduction ratio): the ratio of the number of Interest packets that do not reach the server in the network to the total number of Interest packets, and its expression is:

式中,L_sum表示未到达服务器的兴趣包数,R_sum表示总的兴趣包数目。服务器服务负载减少率反映由于缓存响应用户请求带来的服务器端的负载压力的减少比率。该指标越高,说明服务器端负载压力越小,也说明缓存效果越明显。In the formula, L_sum represents the number of Interest packets that did not reach the server, and R_sum represents the total number of Interest packets. The server service load reduction rate reflects the reduction rate of the server-side load pressure caused by the cache responding to user requests. The higher the indicator is, the smaller the server-side load pressure is, and the more obvious the caching effect is.

AHRR(average hop reduction ratio,路由跳数减少率):兴趣包命中节点节省的距离与用户在源服务器端获取内容所需的路由跳数之比。AHRR (average hop reduction ratio, routing hop reduction ratio): The ratio of the distance saved by the interest packet hitting the node to the routing hops required by the user to obtain content on the source server.

式中,hop_c表示使用某种缓存方法后兴趣包经过的跳数,hop_nc表示不使用缓存时兴趣包经过的跳数。In the formula, hop_c represents the number of hops passed by the Interest packet after using a certain caching method, and hop_nc represents the number of hops passed by the Interest packet when the cache is not used.

CR(cache redundancy,缓存冗余度)表示为:CR (cache redundancy, cache redundancy) is expressed as:

式中,Content_counts表示缓存中的所有内容数量,type_counts表示产生的所有内容种类数量。该指标反映了内容在缓存中的冗余度,该值越低说明冗余度越低,缓存种类越丰富,最小值为1说明缓存内容不重复。In the formula, Content_counts represents the number of all contents in the cache, and type_counts represents the number of all types of content generated. This indicator reflects the redundancy of the content in the cache. The lower the value, the lower the redundancy and the richer the cache types. The minimum value of 1 means that the cached content is not repeated.

本发明实施例中,用户的内容请求服从Zipf(N,θ)分布,其中,N为网络中总内容数,θ为倾斜因子,θ值越小,内容的集中度越明显。本发明示例对目标内容使用不同的缓存方法进行缓存,得到的仿真图分别如图9a至图9f所示。其中,NEC(No Edge Caching,不设置边缘缓存)缓存方法为:只在云端网络节点中对内容进行缓存,不在边缘网络节点中对内容缓存。ECC(Edge Cloud Cacing,边缘云缓存)缓存方法即本发明实施例所采用的缓存方法。AEC(All Edge Caching,全边缘缓存)缓存方法为:只在边缘网络节点中对内容进行缓存,不在云端网络节点中对内容缓存。随着倾斜因子θ的增大,内容请求的集中度增强,内容的流行度变高。In the embodiment of the present invention, the user's content request obeys the Zipf(N, θ) distribution, where N is the total content in the network, θ is the inclination factor, and the smaller the θ value, the more obvious the content concentration. In the example of the present invention, different caching methods are used to cache the target content, and the obtained simulation graphs are shown in Fig. 9a to Fig. 9f respectively. Among them, the NEC (No Edge Caching, no edge caching is set) caching method is as follows: content is only cached in cloud network nodes, and content is not cached in edge network nodes. The ECC (Edge Cloud Cacing, edge cloud caching) caching method is the caching method adopted in the embodiment of the present invention. The AEC (All Edge Caching, All Edge Caching) caching method is as follows: content is only cached in edge network nodes, and content is not cached in cloud network nodes. As the inclination factor θ increases, the concentration of content requests increases, and the popularity of the content becomes higher.

其中,图9a为本发明实施例提供的服务器负载减小率与流行度因子变化关系仿真图,图中显示了三种不同缓存方法使得服务器负载减小率与流行度因子变化关系不同,因内容流行度的提高,使得各节点缓存内容趋同,三种方法的性能差距有所减小,ECC在边缘和云端都建立了缓存,增加缓存内容的数量,从而满足大部分的内容请求,相较而言,本发明实施例的缓存方法使得服务器负载减小率相对较高。图9b为本发明实施例提供的路由跳数减小率与流行度因子变化关系仿真图,图中显示了三种不同缓存方法使得路由跳数减小率与流行度因子变化关系不同,在内容请求集中时,边缘缓存可以满足大部分的内容请求,而NEC方法中没有进行边缘缓存,相比其他两种方法,缓存的位置距离请求者较远,路由跳数减少率的提高较少,相较而言,本发明实施例的缓存方法使得路由跳数减小率相对较高。图9c为本发明实施例提供的缓存冗余度与流行度因子变化关系仿真图,图中显示了三种不同缓存方法使得缓存冗余度与流行度因子变化关系不同,由于在云端采用的是HASH缓存,每种内容只被一个节点缓存因此对于NEC方法来说,缓存的冗余度一直保持在1,即没有冗余,而AEC方法的采用的是随处缓存,因此相对其他两种方法较高,相较而言,本发明实施例的缓存方法使得缓存冗余度相对较小。图9d为本发明实施例提供的服务器负载减小率仿真图,图中显示了三种不同缓存方法使得服务器负载减小率不同,在缓存容量较小时,节点缓存空间有限,不能完全满足缓存内容的需要,节点会频繁发生替换,AEC方法中边缘节点执行沿路缓存会产生大量替换,相比NEC和ECC,服务器负载减小率较低。随着缓存空间的增大,节点可缓存的内容增加,相较而言,三种方法下的服务器负载率都有所提高,但NEC与AEC的差距逐渐减小,ECC一直保持较好的性能,服务器负载减小率相对较高。图9e为本发明实施例提供的路由跳数减小率仿真图,图中显示了三种不同缓存方法使得路由跳数减小率不同,由于节点缓存容量增大,网络可缓存内容数量增多,三种方法的平均跳数减少率都有所增加,相较而言,本发明实施例的缓存方法使得路由跳数减小率相对较高。图9f为本发明实施例提供的缓存冗余度随缓存容量增大的变化情况仿真图,图中显示了三种不同缓存方法使得缓存冗余度随缓存容量增大的变化情况不同,对比可见,本发明实施例的缓存方法使得缓存冗余度随缓存容量增大的变化较小。9a is a simulation diagram of the relationship between the server load reduction rate and the popularity factor change provided by the embodiment of the present invention. The figure shows that three different caching methods make the server load reduction rate and the popularity factor change different. The increase in popularity has made the cached content of each node converge, and the performance gap of the three methods has been reduced. ECC has established caches on both the edge and the cloud to increase the number of cached content to satisfy most content requests. In other words, the caching method of the embodiment of the present invention makes the server load reduction rate relatively high. Fig. 9b is a simulation diagram of the relationship between the reduction rate of routing hops and the change of popularity factor provided by the embodiment of the present invention. The figure shows that three different caching methods make the relationship between the reduction rate of routing hops and the change of popularity factor different. When the requests are concentrated, the edge cache can satisfy most of the content requests, while the NEC method does not perform edge caching. Compared with the other two methods, the location of the cache is farther from the requester, and the reduction rate of routing hops is less improved. Comparatively speaking, the caching method of the embodiment of the present invention enables a relatively high reduction rate of routing hops. FIG. 9c is a simulation diagram of the relationship between cache redundancy and popularity factor variation provided by an embodiment of the present invention. The figure shows that three different caching methods make the relationship between cache redundancy and popularity factor different. HASH cache, each kind of content is only cached by one node. Therefore, for the NEC method, the redundancy of the cache is always kept at 1, that is, there is no redundancy, while the AEC method uses cache everywhere, so compared with the other two methods. In comparison, the cache method of the embodiment of the present invention makes the cache redundancy relatively small. FIG. 9d is a simulation diagram of a server load reduction rate provided by an embodiment of the present invention. The diagram shows that three different caching methods make the server load reduction rate different. When the cache capacity is small, the node cache space is limited, and the cache content cannot be fully satisfied. In the AEC method, the edge nodes will perform a large number of replacements along the way, and the server load reduction rate is lower than that of NEC and ECC. As the cache space increases, the content that can be cached by the node increases. In comparison, the server load rate under the three methods has increased, but the gap between NEC and AEC has gradually decreased, and ECC has always maintained good performance. , the server load reduction rate is relatively high. FIG. 9e is a simulation diagram of the reduction rate of routing hops provided by an embodiment of the present invention. The figure shows that three different caching methods make the reduction rate of routing hops different. Due to the increase of node cache capacity, the number of contents that can be cached by the network increases. The average hop count reduction rate of the three methods has increased. In comparison, the caching method of the embodiment of the present invention makes the route hop count reduction rate relatively high. FIG. 9f is a simulation diagram of the change of cache redundancy with the increase of cache capacity according to an embodiment of the present invention. The figure shows that three different caching methods make the change of cache redundancy with the increase of cache capacity different, and the comparison can be seen. , the cache method of the embodiment of the present invention makes the change of the cache redundancy smaller with the increase of the cache capacity.

上述仿真实验结果可知,在三种缓存方法中NEC在减少缓存冗余度方面有较大优势,而其他缓存性能指标表现均不如AEC和ECC,而AEC在冗余度上的表现并没有很差,而适当的内容冗余可以带来较好的缓存性能提升。本发明实施例的ECC能够兼顾提升服务器负载减少率和和降低缓存冗余度。The above simulation results show that among the three caching methods, NEC has a great advantage in reducing cache redundancy, while other cache performance indicators are not as good as AEC and ECC, and AEC is not very bad in redundancy performance. , and proper content redundancy can bring better cache performance improvement. The ECC of the embodiment of the present invention can improve the server load reduction rate and reduce the cache redundancy at the same time.

与前述第一种基于边缘计算的协调缓存方法相对应,在本发明实施的又一方面,还提供了第一种基于边缘计算的协调缓存装置。图10为本发明实施例提供的第一种基于边缘计算的协调缓存装置结构示意图,应用于协调层,该装置包括:Corresponding to the aforementioned first edge computing-based coordinated caching method, in another aspect of the implementation of the present invention, a first edge computing-based coordinated caching device is also provided. 10 is a schematic structural diagram of a first edge computing-based coordination cache device provided by an embodiment of the present invention, which is applied to the coordination layer, and the device includes:

第一接收模块101,用于接收第一用户请求,第一用户请求为边缘网络节点转发的用户请求,第一用户请求用于获取目标内容。查询模块102,用于查询边缘内容放置信息表ECT中是否记录有与目标内容对应的标记;如果ECT中记录有与目标内容对应的标记,则利用ECT中记录的路由信息,将第一用户请求转发至缓存有目标内容的边缘网络节点;如果ECT中未记录有与目标内容对应的标记,则将第一用户请求转发至距离协调节点最近的云端网络节点,以使云端网络节点处理第一用户请求。本发明实施例中,协调节点针对接收到的第一用户请求,查询ECT中是否记录有与目标内容对应的标记,如果有,则将第一用户请求转发至缓存有目标内容的边缘网络节点。避免请求节点在其请求路径上的边缘网络节点中未请求到目标内容,而进一步向云端网络节点请求目标内容,可以使请求节点更快速的得到所请求的目标内容。The first receiving module 101 is configured to receive a first user request, where the first user request is a user request forwarded by an edge network node, and the first user request is used to acquire target content. The query module 102 is used for querying whether a mark corresponding to the target content is recorded in the edge content placement information table ECT; if a mark corresponding to the target content is recorded in the ECT, the routing information recorded in the ECT is used to request the first user Forward to the edge network node that caches the target content; if the mark corresponding to the target content is not recorded in the ECT, forward the first user request to the cloud network node closest to the coordinating node, so that the cloud network node processes the first user ask. In the embodiment of the present invention, the coordinating node queries whether a mark corresponding to the target content is recorded in the ECT for the received first user request, and if so, forwards the first user request to the edge network node that caches the target content. To prevent the requesting node from not requesting the target content in the edge network nodes on its request path, and further requesting the target content from the cloud network node, the requesting node can obtain the requested target content more quickly.

需要说明的是,本发明实施例的装置是与图2所示的第一种基于边缘计算的协调缓存方法对应的装置,图2所示的第一种基于边缘计算的协调缓存方法的所有实施例均适用于该装置,且均能达到相同或相似的有益效果。It should be noted that the device in this embodiment of the present invention is a device corresponding to the first edge computing-based coordinated caching method shown in FIG. 2 , and all implementations of the first edge computing-based coordinated caching method shown in FIG. 2 All examples are applicable to the device, and all can achieve the same or similar beneficial effects.

与前述第二种基于边缘计算的协调缓存方法相对应,在本发明实施的又一方面,还提供了第二种基于边缘计算的协调缓存装置。图11为本发明实施例提供的第二种基于边缘计算的协调缓存装置结构示意图,应用于协调层,该装置包括:Corresponding to the aforementioned second edge computing-based coordinated caching method, in another aspect of the implementation of the present invention, a second edge computing-based coordinated caching device is also provided. 11 is a schematic structural diagram of a second edge computing-based coordination cache device provided by an embodiment of the present invention, which is applied to the coordination layer, and the device includes:

第二接收模块111,用于接收由云端网络节点转发的响应报文,响应报文包含目标内容。第一计算模块112,用于通过第一预设公式,计算目标内容的缓存效用值。第一判断模块113,用于判断目标内容的缓存效用值是否小于预设阈值。第一发送模块114,用于如果缓存效用值小于预设阈值,则在目标内容中添加第一标识;第一标识用于标示目标内容不需要在边缘网络节点中缓存;针对添加第一标识后的目标内容,将包含该目标内容的响应报文发送至边缘网络节点。第二发送模块115,用于如果缓存效用值大于或等于预设阈值,则在目标内容中添加第二标识;第二标识用于标示目标内容需要在边缘网络节点中缓存;针对添加第二标识后的目标内容,将包含该目标内容的响应报文发送至边缘网络节点。The second receiving module 111 is configured to receive a response message forwarded by the cloud network node, where the response message includes target content. The first calculation module 112 is configured to calculate the cache utility value of the target content by using the first preset formula. The first judging module 113 is configured to judge whether the cache utility value of the target content is less than a preset threshold. The first sending module 114 is configured to add a first identifier to the target content if the cache utility value is less than the preset threshold; the first identifier is used to indicate that the target content does not need to be cached in the edge network node; target content, and send a response message containing the target content to the edge network node. The second sending module 115 is configured to add a second identifier to the target content if the cache utility value is greater than or equal to the preset threshold; the second identifier is used to indicate that the target content needs to be cached in the edge network node; for adding the second identifier After the target content, the response message containing the target content is sent to the edge network node.

需要说明的是,本发明实施例的装置是与图3所示的第二种基于边缘计算的协调缓存方法对应的装置,图3所示的第二种基于边缘计算的协调缓存方法的所有实施例均适用于该装置,且均能达到相同或相似的有益效果。It should be noted that the apparatus in this embodiment of the present invention is an apparatus corresponding to the second edge computing-based coordinated caching method shown in FIG. 3 , and all implementations of the second edge computing-based coordinated caching method shown in FIG. 3 All examples are applicable to the device, and all can achieve the same or similar beneficial effects.

与前述第三种基于边缘计算的协调缓存方法相对应,在本发明实施的又一方面,还提供了第三种基于边缘计算的协调缓存装置。图12为本发明实施例提供的第三种基于边缘计算的协调缓存装置结构示意图,应用于云端网络层,该装置包括:Corresponding to the aforementioned third edge computing-based coordinated caching method, in another aspect of the implementation of the present invention, a third edge computing-based coordinated caching device is also provided. 12 is a schematic structural diagram of a third edge computing-based coordination cache device provided by an embodiment of the present invention, which is applied to the cloud network layer, and the device includes:

第三接收模块121,用于接收第二用户请求,第二用户请求为协调节点转发的用户请求,第二用户请求用于获取目标内容,且第二用户请求中携带有目标内容的标识信息。第二计算模块122,用于计算目标内容的标识信息所对应的哈希HASH值,并在DHT中查找与HASH值对应的云端网络节点。第二判断模块123,用于当查找到HASH值对应的云端网络节点时,判断该云端网络节点中是否已缓存目标内容。第三发送模块124,用于如果在该云端网络节点中缓存有目标内容,则将针对第二用户请求的响应报文发送至协调节点。第四发送模块125,用于如果在该云端网络节点中未缓存目标内容,则将第二用户请求转发至源服务器,以使源服务器根据第二用户请求返回响应报文。The third receiving module 121 is configured to receive a second user request, where the second user request is a user request forwarded by the coordinating node, the second user request is used to obtain target content, and the second user request carries identification information of the target content. The second calculation module 122 is configured to calculate the hash HASH value corresponding to the identification information of the target content, and search for the cloud network node corresponding to the HASH value in the DHT. The second judging module 123 is configured to judge whether the target content has been cached in the cloud network node when the cloud network node corresponding to the HASH value is found. The third sending module 124 is configured to send a response message for the second user request to the coordinating node if the target content is cached in the cloud network node. The fourth sending module 125 is configured to forward the second user request to the origin server if the target content is not cached in the cloud network node, so that the origin server returns a response message according to the second user request.

需要说明的是,本发明实施例的装置是与图4所示的第三种基于边缘计算的协调缓存方法对应的装置,图4所示的第三种基于边缘计算的协调缓存方法的所有实施例均适用于该装置,且均能达到相同或相似的有益效果。It should be noted that the device in this embodiment of the present invention is a device corresponding to the third edge computing-based coordinated caching method shown in FIG. 4 , and all implementations of the third edge computing-based coordinated caching method shown in FIG. 4 All examples are applicable to the device, and all can achieve the same or similar beneficial effects.

与前述第四种基于边缘计算的协调缓存方法相对应,在本发明实施的又一方面,还提供了第四种基于边缘计算的协调缓存装置。图13为本发明实施例提供的第四种基于边缘计算的协调缓存装置结构示意图,应用于云端网络层,该装置包括:Corresponding to the foregoing fourth edge computing-based coordinated caching method, in another aspect of the implementation of the present invention, a fourth edge computing-based coordinated caching device is also provided. 13 is a schematic structural diagram of a fourth edge computing-based coordination cache device provided by an embodiment of the present invention, which is applied to the cloud network layer, and the device includes:

第四接收模块131,用于接收响应报文。第三计算模块132,用于计算响应报文中的目标内容的HASH值。第一缓存模块133,用于基于得到的目标内容的HASH值,将目标内容缓存至与该HASH值对应的云端网络节点,并将响应报文转发至协调节点。The fourth receiving module 131 is configured to receive a response message. The third calculation module 132 is configured to calculate the HASH value of the target content in the response message. The first cache module 133 is configured to cache the target content to the cloud network node corresponding to the HASH value based on the obtained HASH value of the target content, and forward the response message to the coordination node.

需要说明的是,本发明实施例的装置是与图5所示的第四种基于边缘计算的协调缓存方法对应的装置,图5所示的第四种基于边缘计算的协调缓存方法的所有实施例均适用于该装置,且均能达到相同或相似的有益效果。It should be noted that the apparatus in this embodiment of the present invention is an apparatus corresponding to the fourth edge computing-based coordinated caching method shown in FIG. 5 , and all implementations of the fourth edge computing-based coordinated caching method shown in FIG. 5 All examples are applicable to the device, and all can achieve the same or similar beneficial effects.

与前述第五种基于边缘计算的协调缓存方法相对应,在本发明实施的又一方面,还提供了第五种基于边缘计算的协调缓存装置。图14为本发明实施例提供的第五种基于边缘计算的协调缓存装置结构示意图,应用于边缘网络层,该装置包括:Corresponding to the aforementioned fifth edge computing-based coordinated caching method, in another aspect of the implementation of the present invention, a fifth edge computing-based coordinated caching device is also provided. 14 is a schematic structural diagram of a fifth edge computing-based coordination cache device provided by an embodiment of the present invention, which is applied to the edge network layer, and the device includes:

第五接收模块141,用于获取第三用户请求,第三用户请求为请求节点发送的用户请求,第三用户请求用于获取目标内容。第三判断模块142,用于判断各边缘网络节点中是否缓存有目标内容。第五发送模块143,用于如果边缘网络节点中缓存有目标内容,则将目标内容发送至请求节点。第六发送模块144,用于如果边缘网络节点中均未缓存目标内容,则将第三用户请求转发至协调节点,以使协调节点查询边缘内容放置信息表ECT中是否记录有与目标内容对应的标识。The fifth receiving module 141 is configured to obtain a third user request, where the third user request is a user request sent by the requesting node, and the third user request is used to obtain target content. The third judgment module 142 is configured to judge whether the target content is cached in each edge network node. The fifth sending module 143 is configured to send the target content to the requesting node if the target content is cached in the edge network node. The sixth sending module 144 is configured to forward the third user request to the coordinating node if the target content is not cached in the edge network nodes, so that the coordinating node queries the edge content placement information table ECT whether there is a record corresponding to the target content. logo.

需要说明的是,本发明实施例的装置是与图6所示的第五种基于边缘计算的协调缓存方法对应的装置,图6所示的第五种基于边缘计算的协调缓存方法的所有实施例均适用于该装置,且均能达到相同或相似的有益效果。It should be noted that the device in this embodiment of the present invention is a device corresponding to the fifth edge computing-based coordinated caching method shown in FIG. 6 , and all implementations of the fifth edge computing-based coordinated caching method shown in FIG. 6 All examples are applicable to the device, and all can achieve the same or similar beneficial effects.

与前述第六种基于边缘计算的协调缓存方法相对应,在本发明实施的又一方面,还提供了第六种基于边缘计算的协调缓存装置。图15为本发明实施例提供的第六种基于边缘计算的协调缓存装置结构示意图,应用于边缘网络层,该装置包括:Corresponding to the foregoing sixth edge computing-based coordinated caching method, in another aspect of the implementation of the present invention, a sixth edge computing-based coordinated caching device is also provided. FIG. 15 is a schematic structural diagram of a sixth edge computing-based coordination cache device provided by an embodiment of the present invention, which is applied to the edge network layer, and the device includes:

第六接收模块151,用于接收协调节点发送的包含添加第二标识后的目标内容的响应报文。第四计算模块152,用于计算缓存概率。第二缓存模块153,用于基于缓存概率,对目标内容进行缓存,并将目标内容发送至请求节点。The sixth receiving module 151 is configured to receive a response message sent by the coordinating node and including the target content added with the second identifier. The fourth calculation module 152 is used to calculate the cache probability. The second caching module 153 is configured to cache the target content based on the caching probability, and send the target content to the requesting node.

需要说明的是,本发明实施例的装置是与图7所示的第六种基于边缘计算的协调缓存方法对应的装置,图7所示的第六种基于边缘计算的协调缓存方法的所有实施例均适用于该装置,且均能达到相同或相似的有益效果。It should be noted that the apparatus in this embodiment of the present invention is an apparatus corresponding to the sixth edge computing-based coordinated caching method shown in FIG. 7 , and all implementations of the sixth edge computing-based coordinated caching method shown in FIG. 7 All examples are applicable to the device, and all can achieve the same or similar beneficial effects.

与前述基于边缘计算的协调缓存方法相对应,在本发明实施的又一方面,还提供了一种基于边缘计算的协调缓存系统。该系统包括:源服务器,云端网络节点,协调节点以及边缘网络节点,源服务器与云端网络节点直接通信,协调节点分别与云端网络节点和边缘网络节点通信连接;Corresponding to the aforementioned coordinated caching method based on edge computing, in another aspect of the implementation of the present invention, a coordinated caching system based on edge computing is also provided. The system includes: a source server, a cloud network node, a coordination node and an edge network node, the source server communicates directly with the cloud network node, and the coordination node communicates with the cloud network node and the edge network node respectively;

边缘网络节点用于:接收请求节点发送的用于获取目标内容的第三用户请求;判断各边缘网络节点中是否缓存有目标内容;如果边缘网络节点中缓存有目标内容,则将目标内容发送至请求节点;如果边缘网络节点中均未缓存目标内容,则将第三用户请求转发至协调节点,以使协调节点查询边缘内容放置信息表ECT中是否记录有与目标内容对应的标识;或者,接收协调节点发送的包含添加第二标识后的目标内容的响应报文;计算缓存概率;基于缓存概率,对目标内容进行缓存,并将目标内容发送至请求节点;The edge network node is used for: receiving the third user request sent by the requesting node for obtaining the target content; judging whether the target content is cached in each edge network node; if the target content is cached in the edge network node, sending the target content to requesting node; if the target content is not cached in the edge network nodes, the third user request is forwarded to the coordinating node, so that the coordinating node inquires whether the edge content placement information table ECT records an identifier corresponding to the target content; or, receiving Coordinating the response message sent by the node including the target content after adding the second identifier; calculating the cache probability; based on the cache probability, cache the target content, and send the target content to the requesting node;

协调节点用于:接收边缘网络节点转发的用于获取目标内容的第一用户请求;查询边缘内容放置信息表ECT中是否记录有与目标内容对应的标记;如果ECT中记录有与目标内容对应的标记,则利用ECT中记录的路由信息,将第一用户请求转发至缓存有目标内容的边缘网络节点;如果ECT中未记录有与目标内容对应的标记,则将第一用户请求转发至距离协调节点最近的云端网络节点,以使云端网络节点处理第一用户请求;或者,接收由云端网络节点转发的包含目标内容的响应报文;通过第一预设公式,计算目标内容的缓存效用值;如果缓存效用值小于预设阈值,则在目标内容中添加第一标识;第一标识用于标示目标内容不需要在边缘网络节点中缓存;针对添加第一标识后的目标内容,将包含该目标内容的响应报文发送至边缘网络节点;如果缓存效用值大于或等于预设阈值,则在目标内容中添加第二标识;第二标识用于标示目标内容需要在边缘网络节点中缓存;针对添加第二标识后的目标内容,将包含该目标内容的响应报文发送至边缘网络节点;The coordinating node is used to: receive the first user request for acquiring the target content forwarded by the edge network node; query whether the edge content placement information table ECT records a mark corresponding to the target content; if there is a mark corresponding to the target content recorded in the ECT mark, then use the routing information recorded in the ECT to forward the first user request to the edge network node that caches the target content; if the mark corresponding to the target content is not recorded in the ECT, then forward the first user request to the distance coordination the cloud network node closest to the node, so that the cloud network node can process the first user request; or, receive a response message containing the target content forwarded by the cloud network node; calculate the cache utility value of the target content through the first preset formula; If the cache utility value is less than the preset threshold, add a first identifier to the target content; the first identifier is used to indicate that the target content does not need to be cached in the edge network node; for the target content after adding the first identifier, the target content will be included The response message of the content is sent to the edge network node; if the cache utility value is greater than or equal to the preset threshold, a second identifier is added to the target content; the second identifier is used to indicate that the target content needs to be cached in the edge network node; for adding For the target content after the second identification, a response message containing the target content is sent to the edge network node;

云端网络节点用于:接收协调节点转发的携带有目标内容的标识信息的第二用户请求,计算目标内容的标识信息所对应的HASH值,并在分布式哈希表DHT中查找与HASH值对应的云端网络节点;当查找到HASH值对应的云端网络节点时,判断该云端网络节点中是否已缓存目标内容;如果在该云端网络节点中缓存有目标内容,则将针对第二用户请求的响应报文发送至协调节点;如果在该云端网络节点中未缓存目标内容,则将第二用户请求转发至源服务器,以使源服务器根据第二用户请求返回响应报文;或者,接收响应报文;计算响应报文中的目标内容的HASH值;基于得到的目标内容的HASH值,将目标内容缓存至与该HASH值对应的云端网络节点,并将响应报文转发至协调节点;The cloud network node is used to: receive the second user request carrying the identification information of the target content forwarded by the coordination node, calculate the HASH value corresponding to the identification information of the target content, and search the distributed hash table DHT for the corresponding HASH value When the cloud network node corresponding to the HASH value is found, it is determined whether the target content has been cached in the cloud network node; if the target content is cached in the cloud network node, it will respond to the second user request The message is sent to the coordination node; if the target content is not cached in the cloud network node, the second user request is forwarded to the origin server, so that the origin server returns a response message according to the second user request; or, receives the response message ; Calculate the HASH value of the target content in the response message; Based on the obtained HASH value of the target content, cache the target content to the cloud network node corresponding to the HASH value, and forward the response message to the coordination node;

源服务器用于:针对云端网络节点所转发的用户请求,返回响应报文。The origin server is used to: return a response message to the user request forwarded by the cloud network node.

示例性地,本发明实施例中,云端网络节点可以是云端路由器,协调节点可以是服务器,边缘网络节点可以是边缘路由器,具体的,本领域技术人员可根据实际需求对云端网络节点,协调节点和边缘网络节点进行设置,本发明实施例在此不作限制。Exemplarily, in this embodiment of the present invention, the cloud network node may be a cloud router, the coordination node may be a server, and the edge network node may be an edge router. Set with edge network nodes, which is not limited in this embodiment of the present invention.

本发明实施例的协调缓存系统,云端网络节点由于能够基于得到的目标内容的HASH值,将目标内容缓存至与该HASH值对应的云端网络节点,因此目标内容对应一个云端网络节点进行缓存,不需要在其他的云端网络节点中重复缓存,协调节点能够控制边缘网络节点对需要缓存的目标内容进行缓存,而不是对所有的目标内容都进行缓存,且基于所计算的缓存概率对目标内容进行缓存,而不是接收到响应报文之后在传输路径上所有的边缘网络节点中都对目标内容进行缓存,减少内容缓存的冗余程度,同时减少缓存空间占用,从而节省网络资源,进一步可以使得在用户请求内容时快速的获取该内容,提高缓存命中率。In the coordinated caching system according to the embodiment of the present invention, since the cloud network node can cache the target content to the cloud network node corresponding to the HASH value based on the obtained HASH value of the target content, the target content corresponds to a cloud network node for caching, and does not It needs to be cached repeatedly in other cloud network nodes, and the coordinating node can control the edge network nodes to cache the target content that needs to be cached, instead of caching all the target content, and cache the target content based on the calculated caching probability. , instead of caching the target content in all edge network nodes on the transmission path after receiving the response message, reducing the redundancy of content caching and reducing the occupancy of cache space, thereby saving network resources and further enabling users to When requesting content, quickly obtain the content to improve the cache hit rate.

本发明实施例还提供了一种电子设备,如图16所示,包括处理器161、通信接口162、存储器163和通信总线164,其中,处理器161,通信接口162,存储器163通过通信总线164完成相互间的通信,存储器163,用于存放计算机程序;处理器161,用于执行存储器163上所存放的程序时,实现本发明实施例所提供的应用于信息中心网络中的协调节点的一种基于边缘计算的协调缓存方法。An embodiment of the present invention further provides an electronic device, as shown in FIG. 16 , including a processor 161 , a communication interface 162 , a memory 163 and a communication bus 164 , wherein the processor 161 , the communication interface 162 , and the memory 163 pass through the communication bus 164 To complete the mutual communication, the memory 163 is used to store computer programs; the processor 161 is used to execute the program stored in the memory 163 to realize a method provided by the embodiment of the present invention and applied to the coordination nodes in the information center network. A coordinated caching method based on edge computing.

本发明实施例提供的一种电子设备,由于能够通过协调节点控制边缘网络节点对需要缓存的目标内容进行缓存,而不是对所有的目标内容都进行缓存,因此,本发明实施例可以减少内容缓存的冗余程度,同时减少缓存空间占用,从而节省网络资源。In the electronic device provided by the embodiment of the present invention, since the coordinating node can control the edge network node to cache the target content that needs to be cached, instead of caching all the target content, the embodiment of the present invention can reduce the content cache The degree of redundancy, while reducing the occupancy of cache space, thus saving network resources.

本发明实施例还提供了另一种电子设备,如图17所示,包括处理器171、通信接口172、存储器173和通信总线174,其中,处理器171,通信接口172,存储器183通过通信总线174完成相互间的通信,存储器173,用于存放计算机程序;处理器171,用于执行存储器173上所存放的程序时,实现本发明实施例所提供的应用于信息中心网络中的云端网络节点的一种基于边缘计算的协调缓存方法。An embodiment of the present invention further provides another electronic device, as shown in FIG. 17 , including a processor 171, a communication interface 172, a memory 173, and a communication bus 174, wherein the processor 171, the communication interface 172, and the memory 183 pass through the communication bus 174 completes mutual communication, the memory 173 is used to store computer programs; the processor 171 is used to implement the cloud network node applied in the information center network provided by the embodiment of the present invention when executing the program stored in the memory 173 A coordinated caching method based on edge computing.

本发明实施例提供的另一种电子设备,由于能够基于得到的目标内容的HASH值,将目标内容缓存至与该HASH值对应的云端网络节点,因此目标内容对应一个云端网络节点进行缓存,不需要在其他的云端网络节点中重复缓存,减少内容缓存的冗余,同时减少空间的占用,节省网络资源。Another electronic device provided by the embodiment of the present invention can cache the target content to a cloud network node corresponding to the HASH value based on the obtained HASH value of the target content, so the target content is cached corresponding to a cloud network node, and does not It is necessary to repeat the caching in other cloud network nodes to reduce the redundancy of content caching, reduce space occupation, and save network resources.

本发明实施例还提供了另一种电子设备,如图18所示,包括处理器181、通信接口182、存储器183和通信总线184,其中,处理器181,通信接口182,存储器183通过通信总线184完成相互间的通信,存储器183,用于存放计算机程序;处理器181,用于执行存储器183上所存放的程序时,实现本发明实施例所提供的应用于信息中心网络中的边缘网络节点的一种基于边缘计算的协调缓存方法。An embodiment of the present invention further provides another electronic device, as shown in FIG. 18 , including a processor 181, a communication interface 182, a memory 183, and a communication bus 184, wherein the processor 181, the communication interface 182, and the memory 183 pass through the communication bus 184 completes mutual communication, the memory 183 is used to store the computer program; the processor 181 is used to implement the edge network node applied in the information center network provided by the embodiment of the present invention when executing the program stored in the memory 183 A coordinated caching method based on edge computing.

本发明实施例提供的另一种电子设备,由于是基于所计算的缓存概率对目标内容进行缓存,而不是接收到响应报文之后在传输路径上所有的边缘网络节点中都对目标内容进行缓存,减少内容缓存的冗余程度,同时减少缓存空间占用,从而节省网络资源,进一步可以使得在用户请求内容时快速的获取该内容,提高缓存命中率。Another electronic device provided by the embodiment of the present invention caches the target content based on the calculated caching probability, instead of caching the target content in all edge network nodes on the transmission path after receiving the response message , reducing the redundancy of the content cache and reducing the occupancy of the cache space, thereby saving network resources, further enabling the user to obtain the content quickly when the content is requested, and improving the cache hit rate.

上述电子设备提到的通信总线可以是外设部件互连标准(Peripheral ComponentInterconnect,简称PCI)总线或扩展工业标准结构(Extended Industry StandardArchitecture,简称EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。通信接口用于上述电子设备与其他设备之间的通信。存储器可以包括随机存取存储器(RandomAccess Memory,简称RAM),也可以包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(Digital SignalProcessing,简称DSP)、专用集成电路(Application Specific Integrated Circuit,简称ASIC)、现场可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The communication bus mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI for short) bus or an Extended Industry Standard Architecture (EISA for short) bus or the like. The communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The communication interface is used for communication between the above electronic device and other devices. The memory may include random access memory (Random Access Memory, RAM for short), and may also include non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor. The above-mentioned processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, referred to as CPU), a network processor (Network Processor, referred to as NP), etc.; may also be a digital signal processor (Digital Signal Processing, referred to as DSP), Application Specific Integrated Circuit (ASIC for short), Field-Programmable Gate Array (FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.

本发明实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述实施例中任一所述的应用于信息中心网络中的协调节点、云端网络节点、或源服务器的一种基于边缘计算的协调缓存方法,以获取相同的技术效果。An embodiment of the present invention also provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, when the computer-readable storage medium runs on a computer, the computer is made to execute any one of the foregoing embodiments and apply to an information center An edge computing-based coordination caching method for coordinating nodes in the network, cloud network nodes, or origin servers to obtain the same technical effect.

需要说明的是,本发明实施例的装置、系统、电子设备及存储介质分别是应用上述一种基于边缘计算的协调缓存方法的装置、电子设备及存储介质,则上述一种基于边缘计算的协调缓存方法的所有实施例均适用于该装置、系统、电子设备及存储介质,且均能达到相同或相似的有益效果。It should be noted that the device, system, electronic device, and storage medium in the embodiments of the present invention are the device, electronic device, and storage medium that apply the above-mentioned edge computing-based coordination caching method, respectively, and the above-mentioned edge computing-based coordination All embodiments of the caching method are applicable to the apparatus, system, electronic device and storage medium, and can achieve the same or similar beneficial effects.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any relationship between these entities or operations. any such actual relationship or sequence exists. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置/系统电子设备/存储介质实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a related manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments. Especially, for the apparatus/system electronic device/storage medium embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the partial description of the method embodiment.

以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (9)

1. a kind of coordination caching method based on edge calculations, which is characterized in that applied to the coordination section in information centre's network Point, information centre's network include: source server, cloud network layer, cooperation layer and edge network layer, the cloud network Layer includes several cloud network nodes, and the cooperation layer includes several coordinator nodes, and the edge network layer includes several edges Network node, the cooperation layer are communicated to connect with the cloud network layer and the edge network layer respectively, which comprises
The first user request is received, first user request is user's request of edge network node forwarding, described the One user requests for obtaining object content;
Label corresponding with the object content whether has been recorded in inquiry edge content placement information table ECT;
If record has label corresponding with the object content in the ECT, believed using the routing recorded in the ECT First user request is forwarded to the edge network node for being cached with the object content by breath;
If not recorded label corresponding with the object content in the ECT, first user request is forwarded to The cloud network node nearest apart from the coordinator node, so that the first user described in the cloud network node processing requests;
The response message forwarded by the cloud network node is received, the response message includes the object content;
By the first preset formula, the caching value of utility of the object content is calculated;
If the caching value of utility is less than preset threshold, first identifier is added in the object content;First mark Knowledge does not need to cache in edge network node for indicating the object content;
For the object content after addition first identifier, the response message comprising the object content is sent to the edge network Node;
If the caching value of utility is greater than or equal to preset threshold, second identifier is added in the object content;It is described Second identifier caches in edge network node for indicating the object content needs;
For the object content after addition second identifier, the response message comprising the object content is sent to the edge network Node.
2. the method according to claim 1, wherein first preset formula indicates are as follows:
In formula, CU (i) indicates that the caching value of utility of object content i, P (i) indicate that the popularity of object content i, Size (i) indicate The memory space that object content i is occupied, CR (i) indicate the network profit ratio of object content i caching;Wherein, the object content Popularity for indicating the requested frequent degree of the object content;The network profit ratio of the object content caching is used for Indicate the percentage of time that the object content is saved in edge network node caching.
3. a kind of coordination caching method based on edge calculations, which is characterized in that applied to the cloud net in information centre's network Network node, information centre's network include: source server, cloud network layer, cooperation layer and edge network layer, the cloud Network layer packet contains several cloud network nodes, and the cooperation layer includes several coordinator nodes, and the edge network layer includes several Edge network node, the cooperation layer are communicated to connect with the cloud network layer and the edge network layer respectively, the method Include:
Second user request is received, the second user request is user's request of coordinator node forwarding, and described second uses Family request carries the identification information of the object content for obtaining object content, and in second user request;
Calculate Hash HASH value corresponding to the identification information of the object content, and in distributed hashtable DHT search with The corresponding cloud network node of the HASH value;
When finding the corresponding cloud network node of the HASH value, judge whether to have cached in the cloud network node described Object content;
It, will be for the response report of second user request if being cached with the object content in the cloud network node Text is sent to the coordinator node;
If the uncached object content in the cloud network node, second user request is forwarded to source service Device, so that the source server requests returning response message according to the second user;
Receive the response message;
Calculate the HASH value of the object content in the response message;
Based on the HASH value of the obtained object content, the object content is cached to cloud net corresponding with the HASH value Network node, and the response message is forwarded to coordinator node.
4. a kind of coordination caching method based on edge calculations, which is characterized in that applied to the edge net in information centre's network Network node, information centre's network include: source server, cloud network layer, cooperation layer and edge network layer, the cloud Network layer packet contains several cloud network nodes, and the cooperation layer includes several coordinator nodes, and the edge network layer includes several Edge network node, the cooperation layer are communicated to connect with the cloud network layer and the edge network layer respectively, the method Include:
Third user request is received, the third user request is user's request that requesting node is sent, and the third user asks It asks for obtaining object content;
Judge the object content whether is cached in each edge network node;
If being cached with the object content in the edge network node, the object content is sent to the request and is saved Point;
If the uncached object content in the edge network node, third user request is forwarded to described Coordinator node, so as to whether recorded and the object content in coordinator node inquiry edge content placement information table ECT Corresponding mark;
Receive the response message comprising the object content after addition second identifier that the coordinator node is sent;
Calculate caching probability;
Based on the caching probability, the object content is cached, and the object content is sent to the request and is saved Point.
5. according to the method described in claim 4, it is characterized in that, the step of calculating caches probability, comprising:
Caching probability is calculated by the second preset formula, second preset formula indicates are as follows:
In formula, pp(r) indicate that the caching probability of edge network node r, R indicate requesting node to the middle node between coordinator node The quantity of point, DrSIndicate edge network node r at a distance from coordinator node.
6. a kind of coordination buffer storage based on edge calculations, which is characterized in that applied to the cooperation layer in information centre's network, Information centre's network includes: source server, cloud network layer, cooperation layer and edge network layer, the cloud network layer packet Containing several cloud network nodes, the cooperation layer includes several coordinator nodes, and the edge network layer includes several edge networks Node, the cooperation layer are communicated to connect with the cloud network layer and the edge network layer respectively, and described device includes:
First receiving module, for receiving the first user request, the first user request is that the edge network node forwards User's request, first user request is for obtaining object content;
Enquiry module, for inquiring in edge content placement information table ECT whether recorded mark corresponding with the object content Note;If record has label corresponding with the object content in the ECT, using the routing iinformation recorded in the ECT, First user request is forwarded to the edge network node for being cached with the object content;If do not recorded in the ECT There is label corresponding with the object content, then first user request is forwarded to the cloud nearest apart from the coordinator node Network node is held, so that the first user described in the cloud network node processing requests;
Second receiving module, for receiving the response message forwarded by the cloud network node, the response message includes institute State object content;
First computing module, for calculating the caching value of utility of the object content by the first preset formula;
First judgment module, for judging whether the caching value of utility of the object content is less than preset threshold;
First sending module, if adding the in the object content for the caching value of utility less than preset threshold One mark;The first identifier does not need to cache in edge network node for indicating the object content;For addition the Object content after one mark, is sent to the edge network node for the response message comprising the object content;
Second sending module, if being greater than or equal to preset threshold for the caching value of utility, in the object content Add second identifier;The second identifier caches in edge network node for indicating the object content needs;For adding Response message comprising the object content is sent to the edge network node by the object content after adding second identifier.
7. a kind of coordination buffer storage based on edge calculations, which is characterized in that applied to the cloud net in information centre's network Network layers, information centre's network include: source server, cloud network layer, cooperation layer and edge network layer, the cloud net Network layers include several cloud network nodes, and the cooperation layer includes several coordinator nodes, and the edge network layer includes several sides Edge network node, the cooperation layer are communicated to connect with the cloud network layer and the edge network layer respectively, described device packet It includes:
Third receiving module, for receiving second user request, the second user request is the use of coordinator node forwarding Family request, the second user request carry in the target for obtaining object content, and in second user request The identification information of appearance;
Second computing module, for calculating Hash HASH value corresponding to the identification information of the object content, and in distribution Cloud network node corresponding with the HASH value is searched in Hash table DHT;
Second judgment module, for judging the cloud network section when finding the corresponding cloud network node of the HASH value Whether the object content has been cached in point;
Third sending module, if for being cached with the object content in the cloud network node, it will be for described the The response message of two users request is sent to the coordinator node;
4th sending module, if used for the uncached object content in the cloud network node by described second Family request is forwarded to source server, so that the source server requests returning response message according to the second user;
4th receiving module, for receiving the response message;
Third computing module, for calculating the HASH value of the object content in the response message;
First cache module, for the HASH value based on the obtained object content, by the object content cache to this The corresponding cloud network node of HASH value, and the response message is forwarded to coordinator node.
8. a kind of coordination buffer storage based on edge calculations, which is characterized in that applied to the edge net in information centre's network Network layers, information centre's network include: source server, cloud network layer, cooperation layer and edge network layer, the cloud net Network layers include several cloud network nodes, and the cooperation layer includes several coordinator nodes, and the edge network layer includes several sides Edge network node, the cooperation layer are communicated to connect with the cloud network layer and the edge network layer respectively, described device packet It includes:
5th receiving module, for obtaining third user request, the third user request is that the user that requesting node is sent asks It asks, the third user request is for obtaining object content;
Third judgment module, for judging whether be cached with the object content in each edge network node;
5th sending module, if for being cached with the object content in the edge network node, it will be in the target Appearance is sent to the requesting node;
6th sending module, if for the uncached object content in the edge network node, by the third Whether user's request is forwarded to the coordinator node, so as to remember in coordinator node inquiry edge content placement information table ECT Record has mark corresponding with the object content;
6th receiving module, for receiving that the coordinator node sends comprising the object content after addition second identifier Response message;
4th computing module, for calculating caching probability;
Second cache module caches the object content, and for being based on the caching probability by the object content It is sent to the requesting node.
9. a kind of coordination caching system based on edge calculations characterized by comprising source server, cloud network node, association Point of adjustment and edge network node, the source server and the cloud network node direct communication, the coordinator node point It is not communicated to connect with the cloud network node and the edge network node;
The edge network node is used for: receiving the third user request for obtaining object content that requesting node is sent;Sentence Break and whether is cached with the object content in each edge network node;If being cached with the target in the edge network node The object content is then sent to the requesting node by content;If the uncached mesh in the edge network node Content is marked, then third user request is forwarded to the coordinator node, so that coordinator node inquiry edge content is put It sets and whether has recorded mark corresponding with the object content in information table ECT;
Alternatively, receiving the response message comprising the object content after addition second identifier that the coordinator node is sent;Meter Calculate caching probability;Based on the caching probability, the object content is cached, and the object content is sent to described Requesting node;
The coordinator node is used for: the first user for obtaining object content for receiving the edge network node forwarding asks It asks;Label corresponding with the object content whether has been recorded in inquiry edge content placement information table ECT;If the ECT Middle record has label corresponding with the object content, then using the routing iinformation recorded in the ECT, by first user Request is forwarded to the edge network node for being cached with the object content;If do not recorded in the ECT in the target Hold corresponding label, then first user request is forwarded to the cloud network node nearest apart from the coordinator node, with Request the first user described in the cloud network node processing;
Alternatively, receiving the response message comprising the object content forwarded by the cloud network node;It is default by first Formula calculates the caching value of utility of the object content;If the caching value of utility is less than preset threshold, in the target First identifier is added in content;The first identifier does not need to delay in edge network node for indicating the object content It deposits;For the object content after addition first identifier, the response message comprising the object content is sent to the edge network Node;If the caching value of utility is greater than or equal to preset threshold, second identifier is added in the object content;It is described Second identifier caches in edge network node for indicating the object content needs;For the target after addition second identifier Response message comprising the object content is sent to the edge network node by content;
The cloud network node is used for: receiving the second of the identification information for carrying object content of the coordinator node forwarding User's request, calculates Hash HASH value corresponding to the identification information of the object content, and look into distributed hashtable DHT Look for cloud network node corresponding with the HASH value;When finding the corresponding cloud network node of the HASH value, judgement The object content whether has been cached in the cloud network node;If be cached in the target in the cloud network node Hold, then will be sent to the coordinator node for the response message of second user request;If in the cloud network node In the uncached object content, then by the second user request be forwarded to source server so that the source server according to The second user requests returning response message;
Alternatively, receiving the response message;Calculate the HASH value of the object content in the response message;Described in obtaining The HASH value of object content caches the object content to cloud network node corresponding with the HASH value, and by the sound Message is answered to be forwarded to coordinator node;
The source server is used for: being requested for the user that the cloud network node is forwarded, returning response message.
CN201910299332.7A 2019-04-15 2019-04-15 Edge calculation-based coordinated caching method, device and system Expired - Fee Related CN110012106B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910299332.7A CN110012106B (en) 2019-04-15 2019-04-15 Edge calculation-based coordinated caching method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910299332.7A CN110012106B (en) 2019-04-15 2019-04-15 Edge calculation-based coordinated caching method, device and system

Publications (2)

Publication Number Publication Date
CN110012106A true CN110012106A (en) 2019-07-12
CN110012106B CN110012106B (en) 2021-01-29

Family

ID=67171770

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910299332.7A Expired - Fee Related CN110012106B (en) 2019-04-15 2019-04-15 Edge calculation-based coordinated caching method, device and system

Country Status (1)

Country Link
CN (1) CN110012106B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110460652A (en) * 2019-07-26 2019-11-15 网宿科技股份有限公司 A kind of resource acquiring method and edge calculations dispatch server
CN110581883A (en) * 2019-08-22 2019-12-17 北京邮电大学 Content distribution method, content publishing device, content requesting device and routing node
CN110650194A (en) * 2019-09-23 2020-01-03 中国科学技术大学 Task execution method based on edge computing in computer network
CN111447506A (en) * 2020-03-25 2020-07-24 武汉理工大学 Streaming media content placement method based on delay and cost balance in cloud edge environment
CN111935301A (en) * 2020-08-20 2020-11-13 北京邮电大学 Method and device for determining cache placement decision information of named data network
CN112003921A (en) * 2020-08-18 2020-11-27 东北大学 Method for actively caching and replacing hot data in edge computing environment
CN112395469A (en) * 2020-11-27 2021-02-23 中国银联股份有限公司 Biological characteristic storage method, device, equipment and storage medium
CN112740642A (en) * 2020-08-31 2021-04-30 华为技术有限公司 Communication method and multi-access edge computing server
CN112989250A (en) * 2021-03-11 2021-06-18 北京百度网讯科技有限公司 Web service response method and device and electronic equipment
CN113784308A (en) * 2021-07-26 2021-12-10 北京邮电大学 Content sharing method and device based on encoding cache
CN114422573A (en) * 2022-01-14 2022-04-29 杭州华橙软件技术有限公司 Message sending method and device, storage medium and electronic device
CN114785856A (en) * 2022-03-21 2022-07-22 鹏城实验室 Edge calculation-based collaborative caching method, device, equipment and storage medium
CN116527756A (en) * 2023-05-04 2023-08-01 武汉精阅数字传媒科技有限公司 News content distribution system based on wireless mobile communication network

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188569A (en) * 2006-11-16 2008-05-28 饶大平 Method for constructing data quanta space in network and distributed file storage system
CN101345690A (en) * 2007-07-12 2009-01-14 中国电信股份有限公司 Contents grading memory of telecommunication level P2P network and transmission method
CN103036967A (en) * 2012-12-10 2013-04-10 北京奇虎科技有限公司 Data download system and device and method for download management
CN105635319A (en) * 2016-03-03 2016-06-01 北京邮电大学 Data caching method and device
CN108696895A (en) * 2017-04-07 2018-10-23 华为技术有限公司 Resource acquiring method, apparatus and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188569A (en) * 2006-11-16 2008-05-28 饶大平 Method for constructing data quanta space in network and distributed file storage system
CN101345690A (en) * 2007-07-12 2009-01-14 中国电信股份有限公司 Contents grading memory of telecommunication level P2P network and transmission method
CN103036967A (en) * 2012-12-10 2013-04-10 北京奇虎科技有限公司 Data download system and device and method for download management
CN105635319A (en) * 2016-03-03 2016-06-01 北京邮电大学 Data caching method and device
CN108696895A (en) * 2017-04-07 2018-10-23 华为技术有限公司 Resource acquiring method, apparatus and system

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110460652A (en) * 2019-07-26 2019-11-15 网宿科技股份有限公司 A kind of resource acquiring method and edge calculations dispatch server
CN110460652B (en) * 2019-07-26 2021-09-14 网宿科技股份有限公司 Resource acquisition method and edge computing scheduling server
CN110581883B (en) * 2019-08-22 2021-05-04 北京邮电大学 Content distribution method, content distribution device, content request device, and routing node
CN110581883A (en) * 2019-08-22 2019-12-17 北京邮电大学 Content distribution method, content publishing device, content requesting device and routing node
CN110650194A (en) * 2019-09-23 2020-01-03 中国科学技术大学 Task execution method based on edge computing in computer network
CN111447506A (en) * 2020-03-25 2020-07-24 武汉理工大学 Streaming media content placement method based on delay and cost balance in cloud edge environment
CN111447506B (en) * 2020-03-25 2021-10-15 武汉理工大学 A streaming media content placement method based on delay and cost balance in cloud-side environment
CN112003921A (en) * 2020-08-18 2020-11-27 东北大学 Method for actively caching and replacing hot data in edge computing environment
CN111935301A (en) * 2020-08-20 2020-11-13 北京邮电大学 Method and device for determining cache placement decision information of named data network
CN112740642A (en) * 2020-08-31 2021-04-30 华为技术有限公司 Communication method and multi-access edge computing server
CN112395469A (en) * 2020-11-27 2021-02-23 中国银联股份有限公司 Biological characteristic storage method, device, equipment and storage medium
CN112989250B (en) * 2021-03-11 2024-01-12 北京百度网讯科技有限公司 Web service response method and device and electronic equipment
CN112989250A (en) * 2021-03-11 2021-06-18 北京百度网讯科技有限公司 Web service response method and device and electronic equipment
CN113784308A (en) * 2021-07-26 2021-12-10 北京邮电大学 Content sharing method and device based on encoding cache
CN113784308B (en) * 2021-07-26 2024-04-23 北京邮电大学 Content sharing method and device based on coding cache
CN114422573A (en) * 2022-01-14 2022-04-29 杭州华橙软件技术有限公司 Message sending method and device, storage medium and electronic device
CN114422573B (en) * 2022-01-14 2023-08-15 杭州华橙软件技术有限公司 Message sending method and device, storage medium and electronic device
CN114785856A (en) * 2022-03-21 2022-07-22 鹏城实验室 Edge calculation-based collaborative caching method, device, equipment and storage medium
CN114785856B (en) * 2022-03-21 2024-03-19 鹏城实验室 Collaborative caching method, device, equipment and storage medium based on edge calculation
CN116527756B (en) * 2023-05-04 2023-10-20 杭州元媒科技有限公司 News content distribution system based on wireless mobile communication network
CN116527756A (en) * 2023-05-04 2023-08-01 武汉精阅数字传媒科技有限公司 News content distribution system based on wireless mobile communication network

Also Published As

Publication number Publication date
CN110012106B (en) 2021-01-29

Similar Documents

Publication Publication Date Title
CN110012106A (en) A method, device and system for coordinated caching based on edge computing
CN104584512B (en) The method that content is oriented to cooperation caching in network
CN105282215B (en) Reputation-based strategies for forwarding and responding to interests through a content-centric network
Rossini et al. Evaluating CCN multi-path interest forwarding strategies
CN105049254B (en) Data buffer storage replacement method based on content rating and popularity in a kind of NDN/CCN
CN107317879B (en) A kind of distribution method and system of user&#39;s request
CN103428267B (en) A kind of wisdom caching system and the method distinguishing user preferences dependency thereof
Dutta et al. Caching scheme for information‐centric networks with balanced content distribution
WO2021253889A1 (en) Load balancing method and apparatus, proxy device, cache device and serving node
CN107682416B (en) Broadcast-storage network-based fog computing architecture content collaborative distribution method and application system
CN106161204A (en) Data transmission method in mobile social network based on group intelligence
CN111294394B (en) Self-adaptive caching strategy method based on complex network junction
CN103905332B (en) A kind of method and apparatus for determining cache policy
CN105933234A (en) Node management method and system in CDN network
CN106603646B (en) A kind of information centre&#39;s network-caching method based on user interest preference
CN111314223A (en) A forwarding method based on routing interface ranking in NDN
KR20140099834A (en) A method and system for adaptive content discovery for distributed shared caching system
Huang et al. On-path collaborative in-network caching for information-centric networks
Zhang et al. DENA: An intelligent content discovery system used in named data networking
CN110012071B (en) Caching method and device for Internet of Things
Feng et al. Cache-filter: A cache permission policy for information-centric networking
Cao et al. Family-aware pricing strategy for accelerating video dissemination over information-centric vehicular networks
CN104506432B (en) A kind of polymerization of content requests rate and caching laying method
CN106941695A (en) A kind of data distributing method matched based on interest in opportunistic network
CN112822275B (en) Lightweight caching strategy based on TOPSIS entropy weight method

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210129

Termination date: 20210415