[go: up one dir, main page]

CN114630183B - An edge device caching method and evaluation method based on scalability coding - Google Patents

An edge device caching method and evaluation method based on scalability coding Download PDF

Info

Publication number
CN114630183B
CN114630183B CN202210262522.3A CN202210262522A CN114630183B CN 114630183 B CN114630183 B CN 114630183B CN 202210262522 A CN202210262522 A CN 202210262522A CN 114630183 B CN114630183 B CN 114630183B
Authority
CN
China
Prior art keywords
video
bit rate
cache
past
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210262522.3A
Other languages
Chinese (zh)
Other versions
CN114630183A (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.)
Southeast University
Original Assignee
Southeast University
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 Southeast University filed Critical Southeast University
Priority to CN202210262522.3A priority Critical patent/CN114630183B/en
Publication of CN114630183A publication Critical patent/CN114630183A/en
Application granted granted Critical
Publication of CN114630183B publication Critical patent/CN114630183B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44004Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video buffer management, e.g. video decoder buffer or video display buffer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440281Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the temporal resolution, e.g. by frame skipping

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses an edge equipment caching method and an evaluation method based on scalable coding. The algorithm comprises the following steps: collecting video request information in an area received by the equipment on an edge equipment; the collected video request information is classified according to the request time, the video number and the code rate of the video; counting the request quantity of each code rate of each video of the past time slices including a specified time slice when the specified time slice is finished; calculating the cache cost performance of each video code rate according to the request quantity; and adjusting the video content cached by the device in the next time slice according to the size sequence of the cache price. The invention also provides a method for quantifying the magnitude scores provided by the edge device for caching content for the user in a time period. The algorithm and the evaluation method thereof utilize the advantage of SVC scalable coding on the cache, can effectively improve the cache efficiency of single equipment, and improve the capability of providing video services for users by utilizing the edge cache technology.

Description

一种基于可伸缩性编码的边缘设备缓存方法及评估方法An edge device caching method and evaluation method based on scalability coding

技术领域Technical field

本发明属于计算机网络技术领域,尤其涉及一种基于可伸缩性编码的边缘设备缓存方法及评估方法。The invention belongs to the field of computer network technology, and in particular relates to an edge device caching method and evaluation method based on scalability coding.

背景技术Background technique

随着网络视频流业务的日益增多,视频流服务正在成为互联网上最热门的业务。根据思科的预测,到2021年底,视频流服务的所花费的流量在所有网络流量中的占比将达到82%。然而,由于具有不同偏好和限制的用户之间在分辨率、帧速率和比特深度等方面存在网络异构性,因此有效地传送视频内容仍然是一项具有挑战性的工作。With the increasing number of online video streaming services, video streaming services are becoming the most popular business on the Internet. According to Cisco's predictions, by the end of 2021, video streaming services will account for 82% of all network traffic. However, efficiently delivering video content remains a challenging task due to network heterogeneity in terms of resolution, frame rate, and bit depth among users with different preferences and constraints.

视频点播服务质量的两个重要的评判标准是视频响应时延以及占用带宽。视频响应时延直接影响到用户观看视频时的体验,视频的响应时延越短,用户在观看该视频的时候越能获得更加舒适的体验,从而提高该视频点播服务的服务器质量。视频占用带宽影响到视频在传输中消耗的网络资源,如果视频占用带宽过多,当在一个区域内出现大量视频点播请求的时候可能会造成网络拥塞,影响到视频传输的时延和稳定性,降低该区域内所有视频点播用户的观看体验。Two important evaluation criteria for video on demand service quality are video response delay and occupied bandwidth. Video response delay directly affects the user's experience when watching videos. The shorter the video response delay, the more comfortable the user experience when watching the video, thereby improving the server quality of the video on demand service. The bandwidth occupied by the video affects the network resources consumed during the transmission of the video. If the video occupies too much bandwidth, it may cause network congestion when a large number of video on demand requests appear in an area, affecting the delay and stability of video transmission. Degrade the viewing experience for all video on demand users in the area.

为了提供高质量的视频点播服务,当下视频提供商总是采用内容交付网络CDN来提供点播视频。CDN是在现有网络中增加一层新的网络架构,将源站的内容发布和传送到最靠近用户的边缘地区,使用户可以就近访问想要的内容,从而提高用户访问的响应速度。CDN的基本原理是依靠放置在各地的缓存服务器,通过全局调度以及内容分发等功能模块,将用户需要的那部分内容部署到最贴近用户的地方,降低用户在进行视频点播服务时由于物理距离所产生的时延,将原本低效、不可靠的网络转变成高效、可靠的智能网络,满足用户对内容访问质量的更高要求,改善互联网网络拥塞问题,提高用户访问网站的响应速度。此外,在网络边缘采用视频内容缓存设备的性能与在网络中间节点采用的性能相当。In order to provide high-quality video on-demand services, current video providers always use content delivery networks (CDNs) to provide on-demand videos. CDN adds a new layer of network architecture to the existing network to publish and transmit the content of the origin site to the edge area closest to the user, so that the user can access the desired content nearby, thus improving the response speed of user access. The basic principle of CDN is to rely on caching servers placed in various places, through global scheduling and content distribution and other functional modules, to deploy the part of the content that users need to the place closest to the user, reducing the user's physical distance when providing video on demand services. The resulting delay transforms an originally inefficient and unreliable network into an efficient and reliable intelligent network, meeting users' higher requirements for content access quality, improving Internet network congestion problems, and improving the response speed for users to access websites. Additionally, the performance of video content caching devices at the edge of the network is comparable to that at mid-network nodes.

然而,随着新兴的短视频平台的普及以及用户对视频服务需求的增长,互联网内的视频流量出现了爆炸式的增长,传统的CDN技术越来越难以满足用户对视频服务日益严苛的需求,此时提出了边缘缓存的概念。传统网络将内容(视频、网页等)部署在数据中心或区域CDN缓存服务器中,存在内容获取端到端延时长、回传带宽受限、低效冗余传输等问题,无法满足5G及未来应用低延时等需求。移动边缘缓存的核心思想是将内容下沉至网络接入单元(如5G基站、路基单元等),实现一跳式就近内容服务,可以显著降低端到端延时、提高网络传输效率。However, with the popularity of emerging short video platforms and the increase in user demand for video services, video traffic on the Internet has exploded, making it increasingly difficult for traditional CDN technology to meet users' increasingly demanding demands for video services. , at this time the concept of edge caching was proposed. Traditional networks deploy content (videos, web pages, etc.) in data centers or regional CDN cache servers. There are problems such as long end-to-end delay in content acquisition, limited backhaul bandwidth, and inefficient redundant transmission. They cannot meet the needs of 5G and the future. Application requirements such as low latency. The core idea of mobile edge caching is to sink content to network access units (such as 5G base stations, road base units, etc.) to achieve one-hop nearby content services, which can significantly reduce end-to-end delay and improve network transmission efficiency.

发明内容Contents of the invention

由于边缘缓存的容量有限,如何能最大程度的利用有限的缓存空间为视频点播用户提供高质量视频服务是一个问题。Due to the limited capacity of the edge cache, how to make the most of the limited cache space to provide high-quality video services to video on demand users is a problem.

为解决上述问题,本发明公开了一种基于可伸缩性编码的边缘设备缓存方法,SVC-BEC(SVC based on edge caching),In order to solve the above problems, the present invention discloses an edge device caching method based on scalability coding, SVC-BEC (SVC based on edge caching),

包括以下步骤:Includes the following steps:

S1、在一个边缘设备上收集该设备收到的区域内的视频请求信息;S1. Collect video request information in the area received by the device on an edge device;

S2、收集到的视频请求信息按请求时间,请求视频号,请求视频码率分类;S2. The collected video request information is classified according to request time, requested video number, and requested video bit rate;

S3、在一个规定时间片结束时,统计包括该时间片在内的过去若干个时间片每种视频码率的请求数量;S3. At the end of a specified time slice, count the number of requests for each video bit rate in the past several time slices including this time slice;

S4、通过请求数量计算每种视频码率的缓存性价比;S4. Calculate the cache cost-effectiveness of each video bit rate based on the number of requests;

S5、根据缓存性价比的大小顺序,调整该设备在下一个时间片内缓存的视频内容。S5: Adjust the video content cached by the device in the next time slice according to the order of cache cost performance.

本发明进一步优选:其中所述步骤S1中,具体包括以下:The present invention further prefers that step S1 specifically includes the following:

S11,选取一个正常运行的边缘缓存设备,确定其缓存空间大小;S11, select a normally operating edge cache device and determine its cache space size;

S12,统计该设备所能提供的视频缓存服务,设计收集请求信息的数据结构;S12, count the video caching services that the device can provide, and design the data structure for collecting request information;

S13,在实际环境下进行数据采集,记录其请求时间。S13, collect data in the actual environment and record the request time.

本发明进一步优选:其中所述步骤S2中,具体包括以下:The present invention further prefers that step S2 specifically includes the following:

S21,将收集到的信息按照请求时间,请求视频号,请求视频码率分类;S21, classify the collected information according to the request time, requested video number, and requested video bit rate;

S22,根据先前的设计将收集到的数据分类放入数据结构中;S22, classify the collected data into a data structure according to the previous design;

S23,将分类完成的数据信息存入设备。S23: Store the classified data information into the device.

本发明进一步优选:步骤S3中,具体包括以下:The present invention further prefers that step S3 specifically includes the following:

S31,设计好时间片长度,在一个时间片结束时暂停视频请求回应;S31, design the time slice length, and pause the video request response at the end of a time slice;

S32,统计过去包括该时间片在内的过去若干个时间片每种视频码率的请求数量;S32, count the number of requests for each video bit rate in the past several time slices including this time slice;

S33,将统计完成的数据根据视频种类和码率进行分类。S33: Classify the statistically completed data according to video type and bit rate.

本发明进一步优选:步骤S4中,具体包括以下:The present invention further prefers that step S4 specifically includes the following:

S41,根据时间局限性,认为视频请求数量表示视频热度;S41, based on time limitations, it is believed that the number of video requests indicates the popularity of the video;

S42,提取文件中的每种视频的每种码率过去m个时间片的请求数量并求和;S42, extract the number of requests for each bit rate of each video in the file in the past m time slices and sum them up;

S43,用热度除以缓存视频所占空间,得出该视频在过去m个时间片的缓存性价比;S43, divide the popularity by the space occupied by the cached video to obtain the cache cost-effectiveness of the video in the past m time slices;

S45,将每种视频每种码率的缓存性价比存入文件。S45 stores the cache cost-effectiveness of each bit rate of each video into a file.

本发明进一步优选:所述S41具体为:The present invention further prefers that the S41 is specifically:

S411,调取存有视频请求信息的文件;S411, retrieve the file containing the video request information;

S412,检查其中每种视频在过去m个时间段内是否收到过来自用户的请求;S412, check whether each video has received requests from users in the past m time periods;

S43,若一个视频的一种码率在过去m个时间片内被请求过,那么就统计其热度。S43, if a bit rate of a video has been requested in the past m time slices, then its popularity is calculated.

本发明进一步优选:步骤S5中具体包括以下:The present invention further prefers that step S5 specifically includes the following:

S51,将所有在过去请求过的视频的缓存性价比从高到低排序;S51, sort the cache cost-effectiveness of all videos requested in the past from high to low;

S52,从缓存性价比最高的视频开始存入当前边缘缓存设备;S52 starts with the most cost-effective video and stores it in the current edge cache device;

S53,在置入过程中,如果发现当前视频i已经被放入设备,如果已经存入的视频i的码率高于当前处理的码率,那么就跳过当前码率版本,如果已经存入的码率低于当前处理的视频i的码率,那么就将当前处理的视频i的对应码率覆盖之前存入的视频i;S53, during the placement process, if it is found that the current video i has been put into the device, and if the bit rate of the stored video i is higher than the currently processed bit rate, then the current bit rate version will be skipped. If it has been stored The bit rate is lower than the bit rate of the currently processed video i, then the corresponding bit rate of the currently processed video i overwrites the previously stored video i;

S54,重复此过程直到设备D存储的视频所占空间达到存储上限。S54, repeat this process until the space occupied by the video stored in device D reaches the storage upper limit.

本发明的一种基于可伸缩性编码的边缘设备缓存质量评估方法,具体包括以下步骤:An edge device cache quality assessment method based on scalability coding of the present invention specifically includes the following steps:

S6、由于峰值信噪比PSNR和视频码率成正比,用视频码率的对数表示峰值信噪比,表示用户从该视频中获得的体验得分;S6. Since the peak signal-to-noise ratio (PSNR) is directly proportional to the video bit rate, the logarithm of the video bit rate is used to represent the peak signal-to-noise ratio, which represents the user experience score obtained from the video;

S7、计算过去一个时间段内该设备内缓存的所有视频提供的用户体验得分总和;S7. Calculate the sum of user experience scores provided by all videos cached in the device in the past time period;

S8、将总和除以过去一个时间段内的用户请求数量来进行标准化,获得过去一个时间段内该设备的缓存方案用户体验得分S。S8. Divide the sum by the number of user requests in the past time period to normalize, and obtain the cache solution user experience score S of the device in the past time period.

本发明进一步优选:其中步骤S7中具体包括以下:The present invention is further preferred: wherein step S7 specifically includes the following:

S71,对于一个视频码率,将用户请求数乘以PSNR值即码率的对数得到视频得分s;S71, for a video code rate, multiply the number of user requests by the PSNR value, which is the logarithm of the code rate, to obtain the video score s;

S72,统计所有种类视频码率的得分s之和;S72, count the sum of scores s of all types of video bit rates;

S73,统计过去一个时间片内请求的视频的得分之和S。S73: Calculate the sum S of scores of the videos requested in the past time slice.

本发明进一步优选:其中步骤S8中,若S越大,则说明过去一个时间片内该设备为用户提供视频服务的质量越高;若S越小,则统说明过去一个时间片内该设备为用户提供视频服务的质量越低The present invention is further preferred: in step S8, if S is larger, it means that the quality of the video service provided by the device to the user in the past time slice is higher; if S is smaller, it means that the device is in the past time slice. The lower the quality of the video service provided to users

本发明的有益效果:针对视频点播服务,利用可伸缩性编码在存储方面的优点,基于时间局限性原理,能够有效提升边缘设备的缓存质量,并且能够通过用户得分来进行评估。Beneficial effects of the present invention: For video on demand services, by utilizing the advantages of scalable coding in storage and based on the time limitation principle, the cache quality of edge devices can be effectively improved, and can be evaluated through user scores.

附图说明Description of drawings

图1示意性示出了本发明实施例提供的统计方法流程图;Figure 1 schematically shows the flow chart of the statistical method provided by the embodiment of the present invention;

图2示意性示出了本发明实施例提供的视频请求信息收集结构图;Figure 2 schematically shows a structure diagram of video request information collection provided by an embodiment of the present invention;

图3示意性示出了本发明实施例提供的缓存内容更替流程图。Figure 3 schematically shows a cache content replacement flow chart provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面结合附图和具体实施方式,进一步阐明本发明,应理解下述具体实施方式仅用于说明本发明而不用于限制本发明的范围。需要说明的是,下面描述中使用的词语“前”、“后”、“左”、“右”、“上”和“下”指的是附图中的方向,词语“内”和“外”分别指的是朝向或远离特定部件几何中心的方向。The present invention will be further clarified below with reference to the accompanying drawings and specific embodiments. It should be understood that the following specific embodiments are only used to illustrate the present invention and are not intended to limit the scope of the present invention. It should be noted that the words "front", "back", "left", "right", "upper" and "lower" used in the following description refer to the directions in the drawings, and the words "inside" and "outside" ” refers to the direction toward or away from the geometric center of a specific part, respectively.

图1所示,本发明实施例提供了一种基于可伸缩性编码的边缘设备缓存方法,包括:As shown in Figure 1, an embodiment of the present invention provides an edge device caching method based on scalability coding, including:

S1、在一个边缘设备上收集该设备收到的区域内视频请求信息。图2示意性示出了信息采集结构图,参阅图2,以下为具体说明。S1. Collect on an edge device the video request information in the area received by the device. Figure 2 schematically shows the information collection structure diagram. Refer to Figure 2 and the following is a detailed description.

具体实施内容为:The specific implementation content is:

首先,选取边缘设备,记录其缓存空间大小D,在边缘设备上部署探针以获取用户请求信息,硬件上使用多网卡采集,由交换机通过负载均衡技术将原始请求流量分流到各个网卡上,以满足信息采集需求。First, select the edge device, record its cache space size D, deploy probes on the edge device to obtain user request information, use multiple network cards to collect the hardware, and use the switch to shunt the original request traffic to each network card through load balancing technology. Meet information collection needs.

然后,对网卡缓冲区施行双缓冲区机制,通过时间片来控制缓冲区的生效顺序,这样可以保证网卡一直处于可用状态。当某个网卡缓冲区满时,工作线程会将缓冲区地址传递给可重入的数据收集接口。Then, a double-buffer mechanism is implemented on the network card buffer, and the order in which the buffers take effect is controlled through time slices, thus ensuring that the network card is always available. When a network card buffer is full, the worker thread passes the buffer address to the reentrant data collection interface.

最后,为了能够并行采集所有网卡的请求数据,采用多线程技术。在采集服务器上部署DPDK套件,其快速数据包处理功能经过调整即可用于信息采集;采集服务器将用户的视频请求信息传入存储区。Finally, in order to collect request data from all network cards in parallel, multi-threading technology is used. Deploy the DPDK suite on the collection server, and its fast packet processing function can be used for information collection after adjustment; the collection server transfers the user's video request information into the storage area.

S2、将收集到的视频请求信息按请求时间,请求视频号,请求视频码率分类;S2. Classify the collected video request information according to request time, requested video number, and requested video bit rate;

具体实施内容为:从存储区中提取收集到的视频请求信息;将收集到的信息按照请求时间,请求视频号,请求视频码率分类;统计每个时间片总共请求视频内容的次数;根据先前的设计将收集到的数据分类放入数据结构中。The specific implementation content is: extract the collected video request information from the storage area; classify the collected information according to the request time, requested video number, and requested video bit rate; count the total number of video content requests in each time slice; according to the previous The design classifies the collected data into data structures.

S3、在一个规定时间片结束时,统计包括该时间片在内的过去若干个时间片每种视频每种码率的热度。具体实施步骤表述如下:S3. At the end of a specified time slice, count the popularity of each video and each code rate in the past several time slices including this time slice. The specific implementation steps are described as follows:

首先,对于一种视频i的一种码率j,提取其在过去m个时间片内被用户请求的次数CijFirst, for a code rate j of a video i, extract the number of times C ij requested by the user in the past m time slices.

然后,为了消除请求次数多的时间片和请求次数少的时间片之间的区别,将提取到的特定视频码率的请求次数除以对应的每个时间片的总请求次数Rt,从而进行标准化。Then, in order to eliminate the difference between time slices with more requests and less requests, the extracted number of requests for a specific video bit rate is divided by the corresponding total number of requests for each time slice Rt, thereby normalizing .

最后,将标准化过后的m个数据相加得到该视频码率在过去m个时间片内的热度,即 Finally, add the standardized m data to get the popularity of the video bit rate in the past m time slices, that is

将以上操作重复用在所有在过去m个时间片内被请求过的视频码率上。Repeat the above operation for all video bit rates that have been requested in the past m time slices.

S4、通过请求数量计算每种视频码率的缓存性价比;S4. Calculate the cache cost-effectiveness of each video bit rate based on the number of requests;

由于时间局限性原理,过去热度高的视频在未来热度也一定会高,也即会收到较多的用户请求,但是由于设备缓存空间有限,如果缓存过大的视频会减少能够缓存的总的视频数量,导致该设备整体的请求命中率下降,所以为了提高缓存设备的整体缓存质量,计算每种视频码率的缓存性价比并以此为依据来选择缓存视频。Due to the principle of time limitation, videos that were popular in the past will definitely be popular in the future, that is, they will receive more user requests. However, due to the limited cache space of the device, caching too large videos will reduce the total number of cacheable videos. The number of videos causes the overall request hit rate of the device to decrease. Therefore, in order to improve the overall cache quality of the cache device, calculate the cache cost-effectiveness of each video bit rate and select cached videos based on this.

对于过去m个时间片来说,定位在该时间段内的所有视频码率热度信息文件;读取文件,提取文件中的所有视频码率的热度值Cij′,将热度值除以该视频版本的码率vij,代表该视频所占空间大小,从而得到该视频版本的缓存性价比WijFor the past m time slices, locate all video bit rate popularity information files within that time period; read the file, extract the popularity value C ij ′ of all video bit rates in the file, and divide the popularity value by the video The bit rate v ij of the version represents the space occupied by the video, thereby obtaining the cache cost-effectiveness W ij of the video version.

S5、根据缓存性价的的大小顺序,调整该设备在下一个时间片内缓存的视频内容。S5: Adjust the video content cached by the device in the next time slice according to the order of cache performance and price.

对于所有视频的所有码率版本,将Wij从大到小排序,从第一位开始存入边缘设备,在置入过程中,如果发现当前视频i已经被放入设备,如果已经存入的视频i的码率高于当前处理的码率,那么就跳过当前码率版本,如果已经存入的码率低于当前处理的视频i的码率,那么就将当前处理的视频i的对应码率覆盖之前存入的视频i,重复此过程直到设备D存储的视频所占空间达到存储上限M,该过程具体示例见图3For all code rate versions of all videos, sort W ij from large to small, and store it in the edge device starting from the first position. During the placement process, if it is found that the current video i has been placed in the device, if it has been stored If the bit rate of video i is higher than the currently processed bit rate, then the current bit rate version will be skipped. If the already stored bit rate is lower than the bit rate of currently processed video i, then the corresponding version of currently processed video i will be skipped. The code rate covers the previously stored video i, and this process is repeated until the space occupied by the video stored in device D reaches the storage upper limit M. A specific example of this process is shown in Figure 3

本发明还提供一种缓存质量评估方法,包括:The present invention also provides a cache quality evaluation method, including:

S6、由于峰值信噪比PSNR和视频码率成正比,用视频码率的对数表示峰值信噪比,表示用户从该视频中获得的体验得分,即认为Sij=PSNRij=lgvij表示用户从一次请求视频i的码率j版本的命中时获得的体验得分;S6. Since the peak signal-to-noise ratio PSNR is proportional to the video bit rate, the logarithm of the video bit rate is used to represent the peak signal-to-noise ratio, which represents the experience score the user obtains from the video, that is, it is considered that S ij =PSNR ij =lgv ij The experience score the user gets from a hit requesting the bitrate j version of video i;

S7、计算过去一个时间段内该设备内缓存的所有视频提供的用户体验得分总和。即对于一个视频码率,将用户请求数乘以PSNR值即码率的对数得到视频得分s;统计所有种类视频码率的得分s之和;统计过去一个时间片内请求的视频的得分之和S;S7: Calculate the sum of user experience scores provided by all videos cached in the device in the past time period. That is, for a video bit rate, multiply the number of user requests by the PSNR value, which is the logarithm of the bit rate, to get the video score s; count the sum of the scores s of all types of video bit rates; count the sum of the scores of the videos requested in the past time slice and S;

S8、将总和除以过去一个时间段内的用户请求数量来进行标准化,即从而获得过去一个时间段内该设备的缓存方案用户体验得分S。若S越大,则说明过去一个时间片内该设备为用户提供视频服务的质量越高;若S越小,则统说明过去一个时间片内该设备为用户提供视频服务的质量越低。S8. Divide the sum by the number of user requests in the past time period to normalize, that is Thus, the cache solution user experience score S of the device in the past time period is obtained. If S is larger, it means that the quality of the video service provided by the device to the user in the past time slice is higher; if S is smaller, it means that the quality of the video service provided by the device to the user in the past time slice is lower.

本发明方案所公开的技术手段不仅限于上述实施方式所公开的技术手段,还包括由以上技术特征任意组合所组成的技术方案。The technical means disclosed in the solution of the present invention are not limited to the technical means disclosed in the above embodiments, but also include technical solutions composed of any combination of the above technical features.

Claims (7)

1.一种基于可伸缩性编码的边缘设备缓存方法,其特征在于:包括以下步骤:1. An edge device caching method based on scalability coding, characterized by: including the following steps: S1、在一个边缘设备上收集该设备收到的区域内的视频请求信息;S1. Collect video request information in the area received by the device on an edge device; S2、收集到的视频请求信息按请求时间,请求视频号,请求视频码率分类;S2. The collected video request information is classified according to request time, requested video number, and requested video bit rate; S3、在一个规定时间片结束时,统计包括该时间片在内的过去若干个时间片每种视频码率的请求数量;具体实施步骤表述如下:S3. At the end of a specified time slice, count the number of requests for each video bit rate in the past several time slices including this time slice; the specific implementation steps are as follows: 首先,对于一种视频i的一种码率j,提取其在过去m个时间片内被用户请求的次数CijFirst, for a type of video i and a code rate j, extract the number of times C ij it has been requested by the user in the past m time slices; 然后,为了消除请求次数多的时间片和请求次数少的时间片之间的区别,将提取到的特定视频码率的请求次数除以对应的每个时间片的总请求次数Rt,从而进行标准化;Then, in order to eliminate the difference between time slices with more requests and less requests, the extracted number of requests for a specific video bit rate is divided by the corresponding total number of requests for each time slice Rt, thereby normalizing ; 最后,将标准化过后的m个数据相加得到该视频码率在过去m个时间片内的热度,即将以上实施步骤重复用在所有在过去m个时间片内被请求过的视频码率上;Finally, add the standardized m data to get the popularity of the video bit rate in the past m time slices, that is Repeat the above implementation steps for all video bit rates that have been requested in the past m time slices; S4、通过请求数量计算每种视频码率的缓存性价比;具体包括以下:S4. Calculate the cache cost-effectiveness of each video bit rate based on the number of requests; details include the following: S41,根据时间局限性,认为视频请求数量表示视频热度;具体为:S41, based on time limitations, it is believed that the number of video requests indicates the popularity of the video; specifically: S411,调取存有视频请求信息的文件;S411, retrieve the file containing the video request information; S412,检查其中每种视频在过去m个时间段内是否收到过来自用户的请求;S412, check whether each video has received requests from users in the past m time periods; S413,若一个视频的一种码率在过去m个时间片内被请求过,那么统计其热度;S413, if a bit rate of a video has been requested in the past m time slices, then count its popularity; S42,提取文件中的每种视频的每种码率过去m个时间片的请求数量并求和;S42, extract the number of requests for each bit rate of each video in the file in the past m time slices and sum them up; S43,用热度除以缓存视频所占空间,得出该视频在过去m个时间片的缓存性价比;S43, divide the popularity by the space occupied by the cached video to obtain the cache cost-effectiveness of the video in the past m time slices; S45,将每种视频每种码率的缓存性价比存入文件;S45, save the cache cost-effectiveness of each bit rate of each video into a file; 其中对于过去m个时间片来说,定位在该时间段内的所有视频码率热度信息文件;读取文件,提取文件中的所有视频码率的热度值Cij′,将热度值除以该视频版本的码率vij,代表该视频所占空间大小,从而得到该视频版本的缓存性价比WijAmong them, for the past m time slices, locate all video bit rate heat information files within this time period; read the file, extract the heat value C ij ′ of all video bit rates in the file, and divide the heat value by the The bitrate v ij of the video version represents the space occupied by the video, thereby obtaining the cache cost-effectiveness W ij of the video version; S5、根据缓存性价比的大小顺序,调整该设备在下一个时间片内缓存的视频内容;具体包括以下:S5. Adjust the video content cached by the device in the next time slice according to the order of cache cost performance; specifically including the following: S51,将所有在过去请求过的视频的缓存性价比从高到低排序;S51, sort the cache cost-effectiveness of all videos requested in the past from high to low; S52,从缓存性价比最高的视频开始存入当前边缘缓存设备;S52 starts with the most cost-effective video and stores it in the current edge cache device; S53,在置入过程中,如果发现当前视频i已经被放入设备,如果已经存入的视频i的码率高于当前处理的码率,那么就跳过当前码率版本,如果已经存入的码率低于当前处理的视频i的码率,那么就将当前处理的视频i的对应码率覆盖之前存入的视频i;S53, during the placement process, if it is found that the current video i has been put into the device, and if the bit rate of the stored video i is higher than the currently processed bit rate, then the current bit rate version will be skipped. If it has been stored The bit rate is lower than the bit rate of the currently processed video i, then the corresponding bit rate of the currently processed video i overwrites the previously stored video i; S54,重复此过程直到设备D存储的视频所占空间达到存储上限。S54, repeat this process until the space occupied by the video stored in device D reaches the storage upper limit. 2.根据权利要求1所述的一种基于可伸缩性编码的边缘设备缓存方法,其特征在于:2. An edge device caching method based on scalability coding according to claim 1, characterized in that: 其中所述步骤S1中,具体包括以下:The step S1 specifically includes the following: S11,选取一个正常运行的边缘缓存设备,确定其缓存空间大小;S11, select a normally operating edge cache device and determine its cache space size; S12,统计该设备所能提供的视频缓存服务,设计收集请求信息的数据结构;S12, count the video caching services that the device can provide, and design the data structure for collecting request information; S13,在实际环境下进行数据采集,记录其请求时间。S13, collect data in the actual environment and record the request time. 3.根据权利要求2所述的一种基于可伸缩性编码的边缘设备缓存方法,其特征在于:其中所述步骤S2中,具体包括以下:3. An edge device caching method based on scalability coding according to claim 2, characterized in that step S2 specifically includes the following: S21,将收集到的信息按照请求时间,请求视频号,请求视频码率分类;S21, classify the collected information according to the request time, requested video number, and requested video bit rate; S22,根据先前的设计将收集到的数据分类放入数据结构中;S22, classify the collected data into a data structure according to the previous design; S23,将分类完成的数据信息存入设备。S23: Store the classified data information into the device. 4.根据权利要求1所述的一种基于可伸缩性编码的边缘设备缓存方法,其特征在于:步骤S3中,具体包括以下:4. An edge device caching method based on scalability coding according to claim 1, characterized in that step S3 specifically includes the following: S31,设计好时间片长度,在一个时间片结束时暂停视频请求回应;S31, design the time slice length, and pause the video request response at the end of a time slice; S32,统计过去包括该时间片在内的过去若干个时间片每种视频码率的请求数量;S32, count the number of requests for each video bit rate in the past several time slices including this time slice; S33,将统计完成的数据根据视频种类和码率进行分类。S33: Classify the statistically completed data according to video type and bit rate. 5.根据权利要求1所述的一种基于可伸缩性编码的边缘设备缓存质量评估方法,其特征在于:具体包括以下步骤:5. An edge device cache quality assessment method based on scalability coding according to claim 1, characterized in that it specifically includes the following steps: S6、由于峰值信噪比PSNR和视频码率成正比,用视频码率的对数表示峰值信噪比,表示用户从该视频中获得的体验得分;S6. Since the peak signal-to-noise ratio (PSNR) is directly proportional to the video bit rate, the logarithm of the video bit rate is used to represent the peak signal-to-noise ratio, which represents the user experience score obtained from the video; S7、计算过去一个时间段内该设备内缓存的所有视频提供的用户体验得分总和;S7. Calculate the sum of user experience scores provided by all videos cached in the device in the past time period; S8、将总和除以过去一个时间段内的用户请求数量来进行标准化,获得过去一个时间段内该设备的缓存方案用户体验得分S。S8. Divide the sum by the number of user requests in the past time period to normalize, and obtain the cache solution user experience score S of the device in the past time period. 6.根据权利要求5所述的一种基于可伸缩性编码的边缘设备缓存评估方法,其特征在于:其中步骤S7中具体包括以下:6. An edge device cache evaluation method based on scalability coding according to claim 5, characterized in that step S7 specifically includes the following: S71,对于一个视频码率,将用户请求数乘以PSNR值即码率的对数得到视频得分s;S71, for a video code rate, multiply the number of user requests by the PSNR value, which is the logarithm of the code rate, to obtain the video score s; S72,统计所有种类视频码率的得分s之和;S72, count the sum of scores s of all types of video bit rates; S73,统计过去一个时间片内请求的视频的得分之和S。S73: Calculate the sum S of scores of the videos requested in the past time slice. 7.根据权利要求5所述的一种基于可伸缩性编码的边缘设备缓存评估方法,其特征在于:其中步骤S8中,若S越大,则说明过去一个时间片内该设备为用户提供视频服务的质量越高;若S越小,则统说明过去一个时间片内该设备为用户提供视频服务的质量越低。7. An edge device cache evaluation method based on scalability coding according to claim 5, characterized in that: in step S8, if S is larger, it means that the device provided video to the user in the past time slice. The higher the quality of the service; if S is smaller, it means that the quality of the video service provided by the device to users in the past time slice is lower.
CN202210262522.3A 2022-03-17 2022-03-17 An edge device caching method and evaluation method based on scalability coding Active CN114630183B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210262522.3A CN114630183B (en) 2022-03-17 2022-03-17 An edge device caching method and evaluation method based on scalability coding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210262522.3A CN114630183B (en) 2022-03-17 2022-03-17 An edge device caching method and evaluation method based on scalability coding

Publications (2)

Publication Number Publication Date
CN114630183A CN114630183A (en) 2022-06-14
CN114630183B true CN114630183B (en) 2024-03-26

Family

ID=81901390

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210262522.3A Active CN114630183B (en) 2022-03-17 2022-03-17 An edge device caching method and evaluation method based on scalability coding

Country Status (1)

Country Link
CN (1) CN114630183B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105979274A (en) * 2016-05-06 2016-09-28 上海交通大学 Distributive cache storage method for dynamic self-adaptive video streaming media
CN107889160A (en) * 2017-11-15 2018-04-06 北京邮电大学 A kind of cell network edge part caching method for considering user's time delay
CN110177310A (en) * 2019-06-28 2019-08-27 三星电子(中国)研发中心 A kind of content distribution system and method
CN111866601A (en) * 2020-07-21 2020-10-30 中国科学技术大学 A Video Bit Rate Decision Method in Mobile Edge Scenarios Based on Cooperative Game
CN113225584A (en) * 2021-03-24 2021-08-06 西安交通大学 Cross-layer combined video transmission method and system based on coding and caching

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9253231B2 (en) * 2013-12-19 2016-02-02 Verizon Patent And Licensing Inc. Retrieving and caching adaptive bitrate stream segments based on network congestion

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105979274A (en) * 2016-05-06 2016-09-28 上海交通大学 Distributive cache storage method for dynamic self-adaptive video streaming media
CN107889160A (en) * 2017-11-15 2018-04-06 北京邮电大学 A kind of cell network edge part caching method for considering user's time delay
CN110177310A (en) * 2019-06-28 2019-08-27 三星电子(中国)研发中心 A kind of content distribution system and method
CN111866601A (en) * 2020-07-21 2020-10-30 中国科学技术大学 A Video Bit Rate Decision Method in Mobile Edge Scenarios Based on Cooperative Game
CN113225584A (en) * 2021-03-24 2021-08-06 西安交通大学 Cross-layer combined video transmission method and system based on coding and caching

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于PANDA算法的视频码率自适应切换算法;封红旗;王和;杨长春;顾寰;;计算机工程与设计(第06期);全文 *

Also Published As

Publication number Publication date
CN114630183A (en) 2022-06-14

Similar Documents

Publication Publication Date Title
US9065809B2 (en) Method and node for distributing electronic content in a content distribution network
CN112543357B (en) Stream media data transmission method based on DASH protocol
US6708213B1 (en) Method for streaming multimedia information over public networks
CN102282804B (en) Adaptive Web Content Delivery System
US20070283036A1 (en) System And Method For Providing A Web Page
CN102439579A (en) Variable rate media delivery system
RU2571732C2 (en) Control device and method of controlling network streaming of video data to network user device
JP5874730B2 (en) Content distribution system, cache server, and content distribution method
CN110809167B (en) A video playback method, device, electronic device and storage medium
CN109348264B (en) Video resource sharing method and device, storage medium and electronic equipment
Liang et al. Integrated prefetching and caching for adaptive video streaming over HTTP: An online approach
CN105979274A (en) Distributive cache storage method for dynamic self-adaptive video streaming media
CN107276788B (en) Communication model construction method with cache base station based on sleep control
KR20130057232A (en) Contents delivery network system having edge node and method for caching and managing contents
CN103828377B (en) Delivery network, server and dissemination method
CN108234210A (en) The log processing method and device of a kind of content distributing network
CN114630183B (en) An edge device caching method and evaluation method based on scalability coding
JP2013069073A (en) Distribution network, server and distribution method
CN115051996B (en) Video cache management method based on local video utility value under multi-access edge calculation
CN114339311B (en) Video cloud transcoding and distribution combined decision method and system
JP2013048327A (en) Distribution network and server, and distribution method
KR20100053009A (en) System and method for multimedia streaming of distributed contents using node switching based on cache segment acquisition time
CN115941992B (en) Channel condition-based cache-enabled multi-quality video distribution method
CN113992653B (en) CDN-P2P network content downloading, pre-storing and replacing method based on edge cache
Bhandarkar et al. Collaborative caching for efficient dissemination of personalized video streams in resource constrained environments

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