CN111432270B - Real-time service delay optimization method based on layered cache - Google Patents

Real-time service delay optimization method based on layered cache Download PDF

Info

Publication number
CN111432270B
CN111432270B CN202010160106.3A CN202010160106A CN111432270B CN 111432270 B CN111432270 B CN 111432270B CN 202010160106 A CN202010160106 A CN 202010160106A CN 111432270 B CN111432270 B CN 111432270B
Authority
CN
China
Prior art keywords
video
user
onu
cache
popularity
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
CN202010160106.3A
Other languages
Chinese (zh)
Other versions
CN111432270A (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.)
Chongqing University of Post and Telecommunications
Original Assignee
Chongqing University of Post 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 Chongqing University of Post and Telecommunications filed Critical Chongqing University of Post and Telecommunications
Priority to CN202010160106.3A priority Critical patent/CN111432270B/en
Publication of CN111432270A publication Critical patent/CN111432270A/en
Application granted granted Critical
Publication of CN111432270B publication Critical patent/CN111432270B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • 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
    • 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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Abstract

The invention relates to a real-time service delay optimization method based on layered caching, belongs to the technical field of communication, and particularly relates to the technical field of real-time data processing. The method aims at the problem that the time delay of a user is overlarge due to limited wireless link resources in real-time services, firstly, in consideration of the behaviors of retreating, fast forwarding and the like in the process of watching videos and other real-time services of the user, the method provides a mode of adopting optical domain and wireless domain hierarchical caching to cache popular video contents, complete video files are cached in an optical domain in a cooperation mode, and video clips with high popularity are cached in a wireless domain; and then, constructing a problem of minimizing transmission delay according to different positions of the video clip obtained by the user, and distributing an optimal transmission rate for each video layer by adopting a particle swarm algorithm by combining the characteristics of the scalable video stream to achieve the purpose of minimizing the transmission delay. The method can effectively reduce the transmission delay of the user and has wide application prospect.

Description

Real-time service delay optimization method based on layered cache
Technical Field
The invention belongs to the technical field of communication, particularly relates to the technical field of real-time data processing, and relates to a real-time service delay optimization method based on hierarchical cache.
Background
With the rapid growth of the number of mobile users and wireless multimedia applications, limited network resources and increasing traffic demands have become major issues in mobile communication networks. The proliferation of real-time traffic occupies more resources in the mobile network, and especially in densely populated areas and during peak periods of user requests, congestion of the transmission link is easily caused. This will place higher demands on the next generation radio access networks, such as low delay, high peak rate and better network coverage. The FiWi network conforms to the future development requirements of the network, integrates the characteristics of high capacity, high speed, low power consumption of optical fiber access, mobility, flexibility and the like of wireless access, and can provide lower use cost, higher data rate, better experience quality and wider coverage range for users. FiWi networks have become one of the most promising technologies for the next generation broadband access networks.
A great deal of research shows that the frequency of clicking videos by users is closely related to the popularity of the videos, and the frequency and the popularity of the videos are subject to Zipf distribution. There are a large number of repeated requests in video services, for example, in some large video websites, 20% of the videos located in the top of popularity rank account for nearly 80% of the click-through rate. Therefore, the Content Server (CS) repeatedly transmits the same video Content to different users, which results in a rapid decrease in link utilization. And since the video service is a very typical delay sensitive service, if the link condition is poor, the transmission delay of the user is obviously increased, and even the possibility of interruption is caused. Therefore, an efficient caching strategy is carried out in the FiWi network in advance to avoid repeated transmission of the same content, and the network performance can be effectively improved to achieve the purpose of reducing time delay.
However, according to the network environment that adapts to dynamic changes, the conventional video coding method cannot flexibly select a proper quality for a user, the scalable video coding technology encodes video content into a Base Layer (BL) and one or more Enhancement Layers (ELs), the Base Layer provides the most basic viewing quality, data at a higher Layer depends on data at a lower Layer, and the user must correctly decode the data at the lower Layer in order to receive the data at the higher Layer. In the resource-limited situation, the transmission rates of different video layers are mutually restricted and conflict with each other, that is, one layer is increased and the other layer is decreased, and due to the dependency of the lower layer of the higher layer, the base layer needs to be allocated with a proper rate to ensure that the video can be correctly received, so that it is important to allocate different transmission rates to different video layers.
Disclosure of Invention
In view of the above, the present invention provides a real-time service delay optimization method based on hierarchical caching, which dynamically pre-caches popular video files and video clips on both optical domain and wireless domain by analyzing and calculating the caching value and popularity of real-time services, and first, aiming at the problems that a dynamically changing network environment and the delay sensitivity of real-time services are likely to cause interruption events for users, and the problems that the video quality adaptive to the current network state cannot be dynamically selected for users by using the conventional video coding technology; furthermore, in order to effectively reduce the transmission delay, a minimum delay function is constructed according to the specific mode of acquiring the video clips by the user, and an appropriate transmission rate is allocated to each video layer through a particle swarm algorithm. The method can effectively reduce the transmission delay of the user.
In order to achieve the purpose, the invention provides the following technical scheme:
a real-time service time delay optimization method based on hierarchical cache comprises the steps of firstly dynamically pre-caching popular video files and video clips on an optical domain layer and a wireless domain layer by analyzing and calculating the cache value and popularity of a real-time service; further, a minimum time delay function is constructed according to the specific mode of obtaining the video clips by the user, and a proper transmission rate is distributed to each video layer through a particle swarm algorithm; the method specifically comprises the following steps:
s1: optical wireless domain layered caching: analyzing the popularity of the complete video file and the video clip, and performing layered caching on the video content with higher popularity in an optical domain and a wireless domain;
s2: optical domain ONU cooperation buffering: caching a video file with high popularity at an ONU node of an optical domain, and assisting a heavy-load ONU to perform video pre-caching by using a light-load ONU according to the caching value of the video file;
s3: wireless domain video clip caching: each video clip in a video file has independent popularity, and a plurality of video clips can be repeatedly sent under the condition that a user backs or fast forwards, so that the video clips with high popularity are cached at a router in a wireless network, a Markov model is constructed to analyze the popularity of the video clips, and the network cost is analyzed by combining the distance between the user and the router, so that the video clips are cached in a proper router;
s4: analyzing service delay: after finishing caching the video files and the video clips according to the steps S2 and S3, establishing a minimum time transmission delay model by analyzing a specific path of video content acquired by a user according to cache hit rates of optical domain ONU and wireless domain router nodes;
s5: video layer rate allocation: according to the characteristic of scalable video coding, a user has to correctly decode a low video layer when receiving a high video layer, and an optimal rate allocation scheme of the video layer is obtained based on a particle swarm optimization under the constraint condition that the total time delay of the user is minimized.
Further, the step S2 specifically includes:
s21: the number of times that the user clicks the video and the popularity of the video both obey Zipf distribution, and the popularity of the video file is represented by the Zipf distribution;
s22: residual buffer space C combined with optical domain ONUnSize S of video file vvSelecting direct cache or replacement cache for the cache value of the video file, and judging whether the video file v meets the cache condition;
s23: for the heavy-load ONU, calculating the cache value of the video file v according to the probability of the user requesting the video file v under the ONU node and the popularity of the video file v, and caching according to the step S22; for the light-load ONU, the light-load ONU is utilized to cooperatively cache the video file which does not meet the caching condition of the step S22 but has high request probability in the heavy-load ONU; and calculating the caching value of the video file v in the light-load ONU according to the request probability and the popularity of the video file v under the light-load ONU and the probability of the video file v needing to be cooperatively cached in the heavy-load ONU, and caching according to the step S22.
Further, in step S3, the method specifically includes:
s31: establishing a Markov model to analyze the popularity of the video segments, wherein in order to reduce the complexity of calculation and ensure the accuracy of prediction, the analyzed video file is the video content pre-cached in the optical domain ONU, the video segments continuously watched by a user are used as a user access sequence, and the popularity of the user access sequence is analyzed by the Markov model, so that the request probability of the video segments can be obtained;
s32: in order to reduce the delay, the pre-cached video content should be as close to the user side as possible; calculating the network overhead of the user for acquiring the video clip according to the size of the user access sequence and the number of router hops transmitted to the user from the buffer position;
s33: and according to the request probability of each video clip obtained in the step S31 and the quotient of the network cost calculated in the step S32, the probability that the wireless domain router node caches each user access sequence is represented, and the user access sequence with the highest router cache popularity and the lowest total cost is selected by adopting a method of traversing the router nodes.
Further, in step S4, the method specifically includes:
s41: after a user sends a request, in a wireless domain, firstly judging whether an adjacent router of the user is hit, and if the adjacent router of the user is hit in a cache, returning the content to the user; if the adjacent router is not cached and hit, continuing to forward the request, and judging whether the non-adjacent router and the ONU connected with the user hit; if the cache hits, selecting according to the hop count between the node and the user; if only one node cache is hit, returning the content to the user; otherwise, continuing to forward the request;
s42: in the optical domain, judging whether an ONU connected with a user is in cache hit or not, if so, returning video content to the user, and if not, detecting whether a coordinated ONU node is in cache hit or not; if the optical domain and the wireless domain are not cached and hit, the server provides service for the user;
s43: analyzing time delay when the wireless domain, the optical domain and the server respectively provide services for the user according to the cache hit rate of the ONU node, the cache hit rate of the wireless domain router node, the distance between the service node and the user and the size of the video clip;
s44: and constructing a minimized time delay function for obtaining the complete video file by the user according to three different paths for providing services for the user.
Further, in step S5, the method specifically includes:
s51: initializing a deployment strategy, providing rates corresponding to four different modulation coding modes, randomly generating I particles, wherein each particle is an E-dimensional vector and the number of iteration is limited to J;
s52: updating the particle sequence, and evaluating the particles in the population by using a fitness function;
s53: optimizing the particle swarm, updating and iterating the position and the speed of the particles to obtain a better video layer rate distribution strategy; if the particle fitness value after iteration is smaller than the fitness value of the individual extreme value, replacing the individual extreme value with the position of the iteration, otherwise, continuously updating the individual extreme value; similarly, the global extreme value of the whole particle swarm represents the optimal position for stopping the current iteration, if the individual extreme value of the current particle is smaller than the global extreme value, the position of the particle is used for replacing the global extreme value, otherwise, the global extreme value is not updated;
s54: selecting an optimal solution, wherein if the global extreme value fitness of the particles after multiple iterations is smaller than a certain set range relative to the global extreme value change amplitude before the iterations, the extreme value is very close to the optimal extreme value, and the iterations are stopped, namely the optimal transmission rate is allocated to the video layer under the constraint condition of the minimum time delay function; otherwise, repeating the above steps until reaching the maximum iteration number.
The invention has the beneficial effects that: aiming at the problems that a user is easy to have an interrupt event due to time delay sensitivity of a dynamically changing network environment and a real-time service, and the problems that the video quality adaptive to the current network state cannot be dynamically selected for the user by using the traditional video coding technology, the invention provides a real-time service time delay optimization method based on layered cache, and popular video files and video clips are dynamically pre-cached on two layers of an optical domain and a wireless domain by analyzing and calculating the cache value and popularity of the real-time service; furthermore, in order to effectively reduce the transmission delay, a minimum delay function is constructed according to the specific mode of acquiring the video clips by the user, and an appropriate transmission rate is allocated to each video layer through a particle swarm algorithm. The method provided by the invention can effectively reduce the transmission delay of the user and has wide application prospect.
Additional advantages, objects, and features of the invention will be set forth in part in the description which follows and in part will become apparent to those having ordinary skill in the art upon examination of the following or may be learned from practice of the invention. The objectives and other advantages of the invention may be realized and attained by the means of the instrumentalities and combinations particularly pointed out hereinafter.
Drawings
For the purposes of promoting a better understanding of the objects, aspects and advantages of the invention, reference will now be made to the following detailed description taken in conjunction with the accompanying drawings in which:
FIG. 1 is a system architecture diagram of the present invention;
FIG. 2 is a flow chart of the optical domain and wireless domain cooperative caching in the present invention;
FIG. 3 is a flow chart of service delay analysis in the present invention;
fig. 4 is a flow chart of a video layer rate allocation scheme in the present invention.
Detailed Description
The following detailed description of specific embodiments of the invention refers to the accompanying drawings.
As shown in fig. 1, a method for optimizing a real-time service delay based on a hierarchical cache preferably includes the following steps:
step one, optical wireless domain layered caching: and analyzing the popularity of the video files and video clips, and performing layered caching on the video content with higher popularity in an optical domain and a wireless domain.
Step two, optical domain ONU cooperation caching: the video file v with higher popularity is cached at the ONUn of the optical domain, the caching value of the video file v is calculated, the light-load ONU is utilized to assist the heavy-load ONU in caching the video file with high request probability, and the transmission delay of a user under the heavy-load ONU is reduced. The preferable method specifically comprises the following steps:
step two (one), the number of times that the user clicks the video and the popularity of the video obey Zipf distribution, and the popularity of the video file v is represented by the Zipf distribution:
Figure BDA0002404706030000051
the V is as follows: the content server contains V video files;
the alpha is: the video popularity tilt parameter, wherein alpha is 0, means that the video popularity obeys even distribution, and the larger alpha is, the video requests are concentrated on fewer popular video files;
step two, combining the residual cache space C of the optical domain ONU nodenAnd size S of video file vvSelecting a direct cache or a replacement cache: 1) if the remaining space C is cachedn> 0, and satisfy Cn>SvThe cache can be directly realized; 2) if the direct caching condition is not met, the caching value of the video file v' cached in the ONU is smaller than that of the video v, and S is metv′>SvOr the sum of the caching values of the y video files is smaller than that of the video v and meets the requirement
Figure BDA0002404706030000052
A replaceable cache;
step two (third), aiming at the heavy load ONUn', according to the probability p of the user u requesting the video file v under the ONUv,uPopularity f with video filesvCalculating the caching value of the video file v under the heavy load ONU
Figure BDA0002404706030000053
And carrying out cache judgment according to the second step (II);
the gamma isn"is: a collection of heavily loaded ONUn "serving users;
step two (four), aiming at the light load ONUn', the light load ONU is used for cooperatively caching the cache condition which does not meet the step two in the heavy load ONU, but the user request probability pv,uHigh video file v. Calculating video files v under light load ONUThe cache value is:
Figure BDA0002404706030000054
the method comprises the steps that the caching value of a user request video file v under the light load ONU and the probability of the video file v needing to be cooperatively cached in the heavy load ONU are included, and caching judgment is carried out according to the second step;
the above-mentioned
Figure BDA0002404706030000055
Comprises the following steps:
Figure BDA0002404706030000056
the probability that the video file v needs to be cooperatively cached in the heavily loaded ONU is expressed;
said N is1Comprises the following steps: co-exist of N1A heavily loaded ONU;
the above-mentioned
Figure BDA0002404706030000057
The video file v is a binary variable and indicates whether the video file v meets the condition of caching in a heavy load ONUn';
step three, caching the video clips in the wireless domain: each video clip k in a video file has its own popularity, which can result in multiple video clips being sent repeatedly in case of a user backing off or fast forwarding. Therefore, the invention caches the video segment k with high popularity at the router node m of the wireless domain, and preferably specifically comprises the following steps:
and step three (one), in order to reduce the complexity of calculation and ensure the accuracy of prediction, the analyzed video is a total video file pre-cached in the optical domain ONU. And taking the video clips continuously watched by the user as a user access sequence B, wherein the B comprises a plurality of video clips. Establishing Markov model to analyze video segment popularity, and calculating state transition probability p of Markov chain by using historical dataijAnd an initial state probability distribution θ, the state transition matrix H representing the transition probability between any two states in the markov chain:
Figure BDA0002404706030000061
predicting according to the established Markov model, wherein the state with the maximum probability value is the user access sequence most possibly requested by the user, namely the popularity f of the user access sequenceB,v
Step three (two), according to the size s of the user access sequence BBThe number of router hops from the router m to the user u, and the network overhead of the user for acquiring the user access sequence from the router m are calculated
Figure BDA0002404706030000062
D is(m,u)Comprises the following steps: the hop count from router m to user u;
d is(m,n)Comprises the following steps: hop count of routers m to ONUn;
delta. them,δ′mComprises the following steps: by considering the idea of the semi-aversion P-bit problem, i.e. m weight delta for a router node of' preference typemIs positive, is of ' aversion type ' delta 'mThe value of (1) is negative, so that the distance between the selected cache node and the user is closer to the greatest extent, and the network overhead is smaller;
step three (three), according to the popularity f of each user access sequence obtained by the step three (one)B,vAnd the network overhead calculated in the third step (second step)
Figure BDA0002404706030000063
Computing
Figure BDA0002404706030000064
And caching the probability of the user accessing the sequence B for the wireless domain router m. Selecting a user access sequence with the lowest total cost and the highest cache popularity of the router node by adopting a method of traversing the router node;
step four, service delay analysis: after finishing caching the video files and the video clips in the second step and the third step, analyzing cache hit rates of the optical domain ONUn and the wireless router m, and analyzing the total time delay of the user for obtaining the complete video file v according to the specific path of the user for obtaining the video content. The preferable method specifically comprises the following steps:
step four (one), after the user sends the request, firstly, judging whether the adjacent router m of the user hits in the wireless domain, if so, if m is 1, returning the video content to the user; if the adjacent router m is not in the cache hit when the adjacent router m is 0, continuing to forward the request and judging the non-adjacent router
Figure BDA0002404706030000071
And whether the ONUn connected with the user hits, if all, the ONUn is cached to hit
Figure BDA0002404706030000072
And n is 1, selecting according to the hop count between the node and the user: 1) when in use
Figure BDA0002404706030000073
When it is acquired from the router m, 2) when it is
Figure BDA0002404706030000074
Then, obtaining from ONUn; if only one node cache is hit, returning the content to the user; otherwise, continuing to forward the request;
step four, in the optical domain, judging whether the ONUn connected with the user is in cache hit, and if the cache hit n is 1, returning the video content to the user; if the miss n is 0, detecting cooperation
Figure BDA0002404706030000075
Whether hit occurs; if both the optical domain and the wireless domain miss the cache hit m is 0,
Figure BDA0002404706030000076
n=0,
Figure BDA0002404706030000077
the server provides a service ser equal to 1.
Step four (step three), according to the cache hit ratio of the optical domain ONUn
Figure BDA0002404706030000078
Cache hit rate for wireless domain router m
Figure BDA0002404706030000079
Distance d between service node and user(m/n/ser,u)And size of video segment
Figure BDA00024047060300000710
Analyzing the time delay when the wireless domain, the optical domain and the server respectively provide service for the user:
Figure BDA00024047060300000711
Figure BDA00024047060300000712
Figure BDA00024047060300000713
wherein said
Figure BDA00024047060300000714
Figure BDA00024047060300000715
Comprises the following steps: binary number, which represents ONU, router cache hit rate;
said LkComprises the following steps: video clip k comprises LkA video layer;
b islComprises the following steps: size of video layer l is bl
The above-mentioned
Figure BDA00024047060300000716
Comprises the following steps: transmitting the speed of the video layer l in the video clip k from the router m, ONUn and the server respectively;
k is1,k2,k3Comprises the following steps: the wireless domain, the optical domain and the server respectively provide the total number of the video clips of the service for the user;
step four, constructing a minimum time delay function for the user to obtain the complete video file v according to three different paths for providing services for the user
Figure BDA00024047060300000717
Step five, video layer rate allocation: depending on the nature of scalable video coding, a high quality layer relies on a low quality layer, and a user must correctly decode the low layer data in order to receive the high layer data. And under the constraint of minimum total time delay of the acquired complete video file v, distributing different sending rates to each video layer according to a particle swarm algorithm. The preferable method specifically comprises the following steps:
step five (one), the deployment strategy is initialized, and the rates corresponding to four different modulation coding modes are provided: BPSK, QPSK, 16-QAM, 64-QAM, correspond to the number 1-4 separately, produce I particle at random, each particle is a E dimensional vector, limit the iteration number to J;
step five (step two), particle sequence updating, utilizing fitness function FnAnd evaluating the particles in the population, wherein the particles with smaller fitness represent that the time delay of the user is smaller under the scheme. The method is based on video clip analysis, namely, the method can be decomposed into three independent time delay minimization problems of a server, an ONU and a router for solving, and a fitness function is constructed by taking the service provided by the ONU as an example
Figure BDA0002404706030000081
Z isnComprises the following steps: and a dynamically changing penalty function, after the particle selects a good rate for each layer of video, calculating the total bandwidth consumed by transmitting all video layers, and if the total bandwidth is greater than the maximum available bandwidth of the ONU, subtracting the penalty function Z after the fitness functionn(ii) a Penalty function Z if the total bandwidth required is less than the maximum available bandwidth of the ONUnThe larger the amplitude of the consumed network bandwidth is than the link bandwidth, the penalty function is 0And will scale up accordingly.
And step five (three), optimizing the particle swarm, wherein each available scheme in the particle swarm algorithm is represented by one particle, each particle is an E-dimensional vector and has two characteristics of a position and a speed, and the objective function value corresponding to the current position of the particle is the fitness value of the particle. One SVC video clip has LkThe current position of the ith particle in the video layer
Figure BDA0002404706030000082
Representing an allocation scheme in which each element
Figure BDA0002404706030000083
Representing a video layer lkThe assigned rate. For the optimum position currently searched by the ith particle
Figure BDA0002404706030000084
Showing that the optimum position searched by the whole particle group is
Figure BDA0002404706030000085
And (4) showing. The particle update rate at the next moment in the iterative process is related to the current position of the particle, the optimal position searched by the particle and the optimal position searched by the particle swarm. The particle updating speed calculation method comprises the following steps:
Figure BDA0002404706030000086
wherein μ is: the coefficient of inertia of the particles is such that,
the epsilon1,ε2Comprises the following steps: the weight coefficient is used for adjusting the weight relation between the self-searched optimal position and the global optimal position,
the rand is as follows: random constants with the value range of [0,1 ];
the calculation method of the position of the particle at the next moment comprises the following steps:
Figure BDA0002404706030000087
and obtaining a better video layer rate distribution strategy according to the position and speed updating iteration of the particles. If the particle fitness value after iteration is larger than the optimal position of the particle i under the current iteration, namely the individual extreme value OiIf the fitness value is small, the position of the iteration is used for replacing the individual extreme value, otherwise, the individual extreme value is continuously updated. Similarly, the global extreme value G of the whole particle swarm represents the optimal position of the current iteration, if the individual extreme value of the current particle i is smaller than the global extreme value, the position of the particle is used for replacing the global extreme value, otherwise, the global extreme value is not updated.
And step five (four), selecting an optimal solution, wherein along with the continuous change of the speed and the position of the particles, the speed and the movement track of the particles are influenced by the individual extreme value of the particles and the global extreme value of the whole particle swarm, so that all the particles approach towards the direction of the objective function, and if the global extreme value fitness F of the particles after the jth iteration is carried out, the global extreme value fitness F of the particles isn(Gj) If F is smaller than a predetermined range Delta from the global extreme before iterationn(Gj)/Fn(G)≤Δ,G*=GjThen, the extreme value is close to the optimal extreme value, and the iteration is stopped;
the G is*Comprises the following steps: stopping the optimal position of the particles during iteration, namely the optimal video layer rate distribution scheme selected under the constraint condition of the minimum time delay function, otherwise, repeating the steps until the maximum iteration times is reached.
Finally, the above embodiments are only intended to illustrate the technical solutions of the present invention and not to limit the present invention, and although the present invention has been described in detail with reference to the preferred embodiments, it will be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions, and all of them should be covered by the claims of the present invention.

Claims (1)

1. A real-time service delay optimization method based on a layered cache is characterized in that: the method comprises the steps of firstly, dynamically pre-caching popular video files and video clips on two layers of an optical domain and a wireless domain by analyzing and calculating the caching value and popularity of real-time services; further, a minimum time delay function is constructed according to the specific mode of obtaining the video clips by the user, and a proper transmission rate is distributed to each video layer through a particle swarm algorithm; the method specifically comprises the following steps:
s1: optical wireless domain layered caching: analyzing the popularity of the complete video file and the video clip, and performing layered caching on the video content with higher popularity in an optical domain and a wireless domain;
s2: optical domain ONU cooperation buffering: caching a video file with high popularity at an ONU node of an optical domain, and assisting a heavy-load ONU to perform video pre-caching by using a light-load ONU according to the caching value of the video file;
s3: wireless domain video clip caching: each video clip in a video file has independent popularity, and a plurality of video clips can be repeatedly sent under the condition that a user backs or fast forwards, so that the video clips with high popularity are cached at a router in a wireless network, a Markov model is constructed to analyze the popularity of the video clips, and the network cost is analyzed by combining the distance between the user and the router, so that the video clips are cached in a proper router;
s4: analyzing service delay: after finishing caching the video files and the video clips according to the steps S2 and S3, establishing a minimum time transmission delay model by analyzing a specific path of video content acquired by a user according to cache hit rates of optical domain ONU and wireless domain router nodes;
s5: video layer rate allocation: according to the characteristics of scalable video coding, a user has to correctly decode a low video layer when receiving a high video layer, and an optimal rate allocation scheme of the video layer is obtained based on a particle swarm algorithm under the constraint condition that the total time delay of the user is minimized;
the step S2 specifically includes:
s21: the number of times that the user clicks the video and the popularity of the video both obey Zipf distribution, and the popularity of the video file is represented by the Zipf distribution;
s22: residual buffer space C combined with optical domain ONUnSize S of video file vvSelecting direct cache or replacement cache for the cache value of the video file, and judging whether the video file v meets the cache condition;
s23: for the heavy-load ONU, calculating the cache value of the video file v according to the probability of the user requesting the video file v under the ONU node and the popularity of the video file v, and caching according to the step S22; for the light-load ONU, the light-load ONU is utilized to cooperatively cache the video file which does not meet the caching condition of the step S22 but has high request probability in the heavy-load ONU; calculating the caching value of the video file v in the light-load ONU according to the request probability and the popularity of the video file v under the light-load ONU and the probability of the video file v needing to be cooperatively cached in the heavy-load ONU, and caching according to the step S22;
in step S3, the method specifically includes:
s31: establishing a Markov model to analyze the popularity of the video segments, wherein in order to reduce the complexity of calculation and ensure the accuracy of prediction, the analyzed video file is the video content pre-cached in the optical domain ONU, the video segments continuously watched by a user are used as a user access sequence, and the popularity of the user access sequence is analyzed by the Markov model, so that the request probability of the video segments can be obtained;
s32: in order to reduce the delay, the pre-cached video content should be as close to the user side as possible; calculating the network overhead of the user for acquiring the video clip according to the size of the user access sequence and the number of router hops transmitted to the user from the buffer position;
s33: according to the request probability of each video clip obtained in the step S31 and the quotient of the network cost calculated in the step S32, the probability that the wireless domain router node caches each user access sequence is represented, and the user access sequence with the highest router cache popularity and the smallest total cost is selected by adopting a method of traversing the router nodes;
in step S4, the method specifically includes:
s41: after a user sends a request, in a wireless domain, firstly judging whether an adjacent router of the user is hit, and if the adjacent router of the user is hit in a cache, returning the content to the user; if the adjacent router is not cached and hit, continuing to forward the request, and judging whether the non-adjacent router and the ONU connected with the user hit; if the cache hits, selecting according to the hop count between the node and the user; if only one node cache is hit, returning the content to the user; otherwise, continuing to forward the request;
s42: in the optical domain, judging whether an ONU connected with a user is in cache hit or not, if so, returning video content to the user, and if not, detecting whether a coordinated ONU node is in cache hit or not; if the optical domain and the wireless domain are not cached and hit, the server provides service for the user;
s43: analyzing time delay when the wireless domain, the optical domain and the server respectively provide services for the user according to the cache hit rate of the ONU node, the cache hit rate of the wireless domain router node, the distance between the service node and the user and the size of the video clip;
s44: constructing a minimum time delay function for a user to obtain a complete video file by three different paths for providing services for the user;
in step S5, the method specifically includes:
s51: initializing a deployment strategy, providing rates corresponding to four different modulation coding modes, randomly generating I particles, wherein each particle is an E-dimensional vector and the number of iteration is limited to J;
s52: updating the particle sequence, and evaluating the particles in the population by using a fitness function;
s53: optimizing the particle swarm, updating and iterating the position and the speed of the particles to obtain a better video layer rate distribution strategy; if the particle fitness value after iteration is smaller than the fitness value of the individual extreme value, replacing the individual extreme value with the position of the iteration, otherwise, continuously updating the individual extreme value; similarly, the global extreme value of the whole particle swarm represents the optimal position for stopping the current iteration, if the individual extreme value of the current particle is smaller than the global extreme value, the position of the particle is used for replacing the global extreme value, otherwise, the global extreme value is not updated;
s54: selecting an optimal solution, wherein if the global extreme value fitness of the particles after multiple iterations is smaller than a certain set range relative to the global extreme value change amplitude before the iterations, the extreme value is very close to the optimal extreme value, and the iterations are stopped, namely the optimal transmission rate is allocated to the video layer under the constraint condition of the minimum time delay function; otherwise, repeating the above steps until reaching the maximum iteration number.
CN202010160106.3A 2020-03-09 2020-03-09 Real-time service delay optimization method based on layered cache Active CN111432270B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010160106.3A CN111432270B (en) 2020-03-09 2020-03-09 Real-time service delay optimization method based on layered cache

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010160106.3A CN111432270B (en) 2020-03-09 2020-03-09 Real-time service delay optimization method based on layered cache

Publications (2)

Publication Number Publication Date
CN111432270A CN111432270A (en) 2020-07-17
CN111432270B true CN111432270B (en) 2022-03-11

Family

ID=71546342

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010160106.3A Active CN111432270B (en) 2020-03-09 2020-03-09 Real-time service delay optimization method based on layered cache

Country Status (1)

Country Link
CN (1) CN111432270B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112887314B (en) * 2021-01-27 2022-06-03 重庆邮电大学 Time delay perception cloud and mist cooperative video distribution method
CN113225584B (en) * 2021-03-24 2022-02-22 西安交通大学 Cross-layer combined video transmission method and system based on coding and caching
CN114257647B (en) * 2021-12-21 2024-01-26 中国工商银行股份有限公司 Conference video caching method, server and system based on D2D communication
CN117135693B (en) * 2023-10-27 2024-01-23 四川长虹新网科技有限责任公司 Real-time service distribution method based on federal learning under multi-AP environment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108848395A (en) * 2018-05-28 2018-11-20 东南大学 Edge cooperation caching method for arranging based on drosophila optimization algorithm
CN109040855A (en) * 2018-09-03 2018-12-18 重庆邮电大学 A kind of wireless DASH streaming media bit rate smooth adaptive transmission method
CN109428827A (en) * 2017-08-21 2019-03-05 深圳市中兴微电子技术有限公司 Flow self-adaptive cache allocation device and method and ONU (optical network Unit) equipment
CN110035415A (en) * 2019-04-03 2019-07-19 西安交通大学 A kind of D2D network-caching method for down loading of latency model
CN110418143A (en) * 2019-07-19 2019-11-05 山西大学 The transmission method of SVC video in a kind of car networking

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130144750A1 (en) * 2009-07-28 2013-06-06 Comcast Cable Communications, Llc Content on demand edge cache recommendations

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109428827A (en) * 2017-08-21 2019-03-05 深圳市中兴微电子技术有限公司 Flow self-adaptive cache allocation device and method and ONU (optical network Unit) equipment
CN108848395A (en) * 2018-05-28 2018-11-20 东南大学 Edge cooperation caching method for arranging based on drosophila optimization algorithm
CN109040855A (en) * 2018-09-03 2018-12-18 重庆邮电大学 A kind of wireless DASH streaming media bit rate smooth adaptive transmission method
CN110035415A (en) * 2019-04-03 2019-07-19 西安交通大学 A kind of D2D network-caching method for down loading of latency model
CN110418143A (en) * 2019-07-19 2019-11-05 山西大学 The transmission method of SVC video in a kind of car networking

Also Published As

Publication number Publication date
CN111432270A (en) 2020-07-17

Similar Documents

Publication Publication Date Title
CN111432270B (en) Real-time service delay optimization method based on layered cache
CN111935784B (en) Content caching method based on federal learning in fog computing network
CN110730471A (en) Mobile edge caching method based on regional user interest matching
CN111491331B (en) Network perception self-adaptive caching method based on transfer learning in fog computing network
CN113282786B (en) Panoramic video edge collaborative cache replacement method based on deep reinforcement learning
Li et al. Learning-based delay-aware caching in wireless D2D caching networks
CN108769729B (en) Cache arrangement system and cache method based on genetic algorithm
CN114863683B (en) Heterogeneous Internet of vehicles edge computing unloading scheduling method based on multi-objective optimization
Ye et al. Quality-aware DASH video caching schemes at mobile edge
Zhang et al. A reinforcement learning-based user-assisted caching strategy for dynamic content library in small cell networks
Baccour et al. CE-D2D: Collaborative and popularity-aware proactive chunks caching in edge networks
Behravesh et al. Machine learning at the mobile edge: The case of dynamic adaptive streaming over http (dash)
CN112911614B (en) Cooperative coding caching method based on dynamic request D2D network
Tang et al. Content-Aware Routing based on Cached Content Prediction in Satellite Networks
Serhane et al. PbCP: A profit-based cache placement scheme for next-generation IoT-based ICN networks
Jia et al. Joint optimization scheme for caching, transcoding and bandwidth in 5G networks with mobile edge computing
CN116056156A (en) MEC auxiliary collaborative caching system supporting self-adaptive bit rate video
CN111447506B (en) Streaming media content placement method based on delay and cost balance in cloud edge environment
Xie et al. Joint Caching and User Association Optimization for Adaptive Bitrate Video Streaming in UAV-Assisted Cellular Networks
CN112887314B (en) Time delay perception cloud and mist cooperative video distribution method
Kabir Cooperative Content Caching and Distribution in Dense Networks.
He et al. MACC: MEC-assisted collaborative caching for adaptive bitrate videos in dense cell networks
Shi et al. COCAM: a cooperative video edge caching and multicasting approach based on multi-agent deep reinforcement learning in multi-clouds environment
Duraimurugan et al. Optimized Cache and Forward Video Streaming in High Bandwidth Network
Cai et al. Video Streaming Caching and Transcoding for Heterogeneous Mobile Users

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