CN106454937A - Distribution control method for caching space of mobile terminal - Google Patents

Distribution control method for caching space of mobile terminal Download PDF

Info

Publication number
CN106454937A
CN106454937A CN201610865044.XA CN201610865044A CN106454937A CN 106454937 A CN106454937 A CN 106454937A CN 201610865044 A CN201610865044 A CN 201610865044A CN 106454937 A CN106454937 A CN 106454937A
Authority
CN
China
Prior art keywords
mobile terminal
node
threshold
message
spatial cache
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610865044.XA
Other languages
Chinese (zh)
Other versions
CN106454937B (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 CN201610865044.XA priority Critical patent/CN106454937B/en
Publication of CN106454937A publication Critical patent/CN106454937A/en
Application granted granted Critical
Publication of CN106454937B publication Critical patent/CN106454937B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/021Traffic management, e.g. flow control or congestion control in wireless networks with changing topologies, e.g. ad-hoc networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • H04W28/14Flow control between communication endpoints using intermediate storage

Abstract

The invention discloses a distribution control method for a caching space of a mobile terminal. The distribution control method comprises the following steps: 1, starting a program, and setting a caching threshold value to be threshold, wherein the set caching threshold value is less than an available space of a mobile terminal node; 2, initializing the caching space of the mobile terminal node, wherein each node sets a caching space which is half of the threshold for APP for storage, carrying and forwarding of a message; 3, collecting network information, and counting the number of pieces of information reaching the node within unit time and the service time Tn-1 of previous n pieces of messages for each terminal node; 4, forecasting the size of the caching space Npre; and 5, adjudging the caching size. The distribution control method can dynamically distribute the caching space for storage, carrying and forwarding of the messages between the terminal nodes, so that the nodes can dynamically distribute the caching size to increase the cache utilization rate, and various applications can share the caching space to enhance the user experience; and the distribution control method can be cooperated with a strategy and an algorithm of the mobile terminal for use so as to complete forwarding of the messages between the mobile terminals.

Description

A kind of distribution control method of mobile terminal spatial cache
Technical field
The invention belongs to mobile terminal caching technology field, particularly to being based on Ma Erke in a kind of mobile ad-hoc network The distribution control method of the mobile terminal spatial cache of husband's model and the Forecasting Methodology of spatial cache size.
Background technology
Movable self-organization (MobileAd Hoc) network is the autonomous data of the multi-hop that a kind of mobile terminal (node) forms Transmission system, the infrastructure that whole network is not fixed, can cannot using or not convenient use network infrastructure In the case of (including base station and AP), provide the data communication services between mobile terminal.Mobile terminal tool in network There are route and packet forwarding, being communicated wirelessly by radio network interface, thus constituting corresponding network on demand Topology.Mobile ad-hoc network be widely used in Military Network, mobile conference, wireless sensor network, emergency services and Disaster recovery field.
Because mobile node memory space is relatively limited, it is real that mobile ad-hoc network needs efficient cache management strategy Apply storage, delivery and the discarding of message, to reduce the possibility of nodal cache spilling, it is to avoid network congestion.Existing movement is from group In knitmesh network, buffer memory management method is concentrated mainly in the scheduling to buffered message, can be divided into following three kinds:1)Drop The tradition buffer memory management method such as random, Drop head, Drop tail, this kind of method is simple, but in self-organizing network In performance very poor.2) the global buffer management method of global network state information, such as GBD (Global are utilized Knowledge based Drop), GBSD (Global Knowledge based Scheduling and Drop) etc..This kind of The performance of method preferably and provides an optimum framework, but because self-organizing network has the spy of dynamic topological structure Property, obtain network global state information more difficult, therefore such method is difficult to be applied to real network environment.3) profit Partial cache management with the remaining life cycle of partial network information such as message, the size of message, jumping figure, message copy number etc. Method, such as E-DROP (Equal drop), T-DROP (ThresholdDrop) etc..Such method is than global buffer management strategy It is easily achieved and more preferable than the performance of traditional cache management strategy, research is more at present.
The present invention finds in research process, and existing method is mostly to consider in the case that spatial cache is limited, such as What scheduling message is to improve delivery success rate, but in the case of nodal cache space relatively abundance, existing cache management is calculated Method mostly give tacit consent to by whole spaces be used for storage forward message (showing stronger greediness in resource bid and use), Lead to the other application on mobile terminal (APP) then cannot normally run, cause each application in terminal that spatial cache is used Unfair and significantly reduce Consumer's Experience.
Content of the invention
Goal of the invention:For problems of the prior art, the present invention provides in a kind of mobile ad-hoc network and is based on The distribution control method of the mobile terminal spatial cache of Markov model and the Forecasting Methodology of spatial cache size, Ke Yiwei Between terminal node, message stores, carries, forwarding dynamically distribution spatial cache, contributes to node dynamically distributes cache size to carry High level cache utilization rate, is easy to multiple Application share spatial caches to lift Consumer's Experience it is not necessary to change the message of mobile terminal Scheduling strategy and Related Routing Algorithm, can be used in combination with the strategy of mobile terminal and algorithm, and completion message is mobile whole Forwarding between end.
Technical scheme:For solving above-mentioned technical problem, the present invention provides a kind of distribution of mobile terminal spatial cache to control Method, comprises the steps:
Step one:Program starts and sets caching threshold values as threshold, and the caching threshold values of setting is less than mobile terminal section The free space of point;
Step 2:The spatial cache of mobile terminal node is initialized, each node arranges threshold/ for APP The storage that 2 spatial cache is used for message carries forwarding;
Step 3:Collecting network information, to reaching the Information Number λ of node and front in each terminal node statistical unit time The service time T of n bar messagen-1(service time of wherein front a piece of news is T0, the service time of front two message is T1, front n The service time of bar message is Tn-1);
Step 4:Prediction spatial cache NpreSize;
Step 5:Adjustment cache size, the spatial cache N being predicted according to step 4preAdjustment is currently used in message storage The spatial cache N forwarding, if NpreLess than N, then abandon part messages until remaining message is big using Drop head strategy Little no more than Npre, then unnecessary spatial cache is returned system;If NpreIt is not more than N and then judge NpreWhether it is less than Threshold, if NpreMore than N and less than threshold, then apply for N again to systempreThe space of-N size;If NpreNo Less than threshold, then again to the space of system application threshold-N size.
Further, predict spatial cache size N in step 4preMethod as follows:
(1) the service time T needed for each node calculates (n+1)th messagenAverage:
(2) the service time T needed for each node calculates (n+1)th messagenVariance:
(3) each node calculates the average queue length of message:
(4) each node, according to the message size m setting in advance, calculates the spatial cache needed for subsequent time:
Npre=m × Ls
Compared with prior art, it is an advantage of the current invention that:
1st, the present invention can make each mobile terminal node with reference to network operation conditions predict and arrange node caching big Little, improve Buffer Utilization and forward success rate, and avoid message to overflow.
2nd, the present invention enables each terminal node dynamically distributes cache size, is easy to multiple Application share spatial caches, carries Rise Consumer's Experience.
3rd, the present invention does not need to change scheduling message strategy and the Related Routing Algorithm of mobile terminal, can be with above-mentioned strategy It is used in combination with algorithm, forwarding between mobile terminal for the completion message.
Brief description
Fig. 1 is the flow chart of the present invention;
Fig. 2 is M | G | 1 queuing model schematic diagram in specific embodiment;
Fig. 3 is the state transition diagram of M | G | 1 embedded Markov chain in specific embodiment;
Fig. 4 is that have storage in mobile terminal when algorithm runs in specific embodiment to forward the APP occupancy of message function slow Deposit variation diagram.
Specific embodiment
With reference to the accompanying drawings and detailed description, it is further elucidated with the present invention.
It is mobile terminal node dynamic prediction distribution caching workflow as shown in Figure 1.
Step 1, sets cache threshold.After program starts, user is to have the APP setting use that message stores forwarding capability Capacity-threshold threshold, if the threshold value of setting is more than the free space of mobile terminal node, prompting user's " threshold of warning Value arranges excessive, insufficient space ".
Step 2, spatial cache initializes.The spatial cache of mobile terminal node is initialized, each node is APP The storage that the spatial cache of setting is used for message carries forwarding.
Step 3, collecting network information.The message count of node and front n bar is reached in each terminal node statistical unit time The service time of message.
Step 4, predicts cache size.Each point calculates the average of service time and the variance needed for (n+1)th message, and According to the message size m setting in advance, calculate the spatial cache needed for subsequent time.
Step 5, adjusts cache size.Each node is currently used in message according to the cache size adjustment that step 4 predicts The spatial cache N that storage forwards.
What Fig. 2 and Fig. 3 was respectively described is M | G | 1 queuing model and the state transition diagram of M | G | 1 embedded Markov chain.Right In each mobile terminal node, the arrival process of message is modeled as poisson arrival process, the service time of message obeys typically Distribution G, and think that only a piece of news can accept service every time, it is medium to be serviced that the message that other reach is saved in caching. Accept the period of service in (n+1)th message, when the new message count entering nodal cache is solely dependent upon the service of (n+1)th message Between and unrelated with the time before.
Specifically, message arrival process is modeled as poisson arrival process, the service time of message is typically distribution G, whole Individual system modelling becomes queuing model
tn:Represent that nth bar message accepts the moment that service completes.
Xn:Represent when nth bar message accepts service and completes, the message count in nodal cache.
Tn:Represent and leave nodal cache, the service time needed for (n+1)th message when nth bar message.
Yn:Represent the period accepting service in (n+1)th message, the new message count entering nodal cache.
So, we can represent system queuing's situation with Fig. 2.
As seen from Figure 2
If making aj=P (Yn=j) > 0, wherein ajRepresent the period accepting service in (n+1)th message, newly enter ingress and delay The message count deposited is the probability of j, and j is any nonnegative integer, then may certify that { XnConstitute a Markov chain, commonly referred to as Embedded Markov chain.Additionally, YnIt is solely dependent upon the service time of (n+1)th message and unrelated with the time before.Therefore, Xn It is discrete-time Markovian chain.Note Pij=P (Xn+1=j | Xn=i), then
P0j=P (Xn+1=j | Xn=0)=P (Yn=j)=aj,j≥0 (1)
Thus
I.e. the Matrix of shifting of a step of this Markov chain is
Its state transition diagram thus can be drawn, as shown in Figure 2.
By TnDefinition understand, service time { Tn, n >=1 } and it is independent identically distributed sequence of random variables, remember its public point Cloth function is G (t)=P (Tn≤t).Then
Wherein, P (Yn=j | Tn=t) represent (0, t) (i.e. service time needed for (n+1)th message in time interval Interior) the new probability for j for the message number entering nodal cache.Because message is to reach according to Poisson flow, so should have
Bring formula (3) into, obtain
A is understood by formula (1)0=P00> 0, and each state of Markov chain is intercommunication, therefore this Markov chain is non-week Phase is irreducible, and calculates in a period of (n+1)th message sink service, new message count Y entering nodal cachenEqual Value E (Yn)
Then, the period accepting service in (n+1)th message, new message count Y entering nodal cache are calculatednVariance D (Yn)
D(Yn)=E (Yn 2)-[E(Yn)]2=ρ+λ2D(Tn)
Can verify, as ρ < 1, this Markov chain is traversal, therefore there is Stationary Distribution { pj, j >=0 }, and { pj} Must meet
Go to solve p with generating function belowj, order
Using formula (4) and formula (2), then have
Above-mentioned all formulas are added, just can get
Thus obtain the generating function of message team leader distribution in system
To seek P again0, because
P (1)=1, A (1)=1
Therefore obtained by L'Hospital rule
Then
p0=1- ρ
Substituted into formula (5), had
Utilize by above formula and twice L'Hospital rule, then in system message average queue length LsFor:
Assume that the size of every message is the same, be m, then the spatial cache N needed for the subsequent time predictingpre=m × Ls.
Fig. 4 describes has the APP occupancy caching change that storage forwards message function in mobile terminal when algorithm runs Situation.After user sets the use capacity-threshold threshold of an APP, system at most can distribute threshold size Space to this application.Spatial cache N when the prediction of node subsequent timepreLess than current cache space N, then using Drop Head strategy abandons part messages until remaining message size is not more than Npre, unnecessary spatial cache is returned system;If NpreMore than N and less than threshold, then apply for N again to systempreThe space of-N size;If NpreMore than threshold, then Apply for the space of threshold-N size again.
The foregoing is only embodiments of the invention, be not limited to the present invention.All principles in the present invention Within, the equivalent made, should be included within the scope of the present invention.The content that the present invention is not elaborated belongs to In prior art known to this professional domain technical staff.

Claims (5)

1. a kind of distribution control method of mobile terminal spatial cache it is characterised in that:Comprise the steps:
Step one:Program starts and sets caching threshold values as threshold;
Step 2:The spatial cache of mobile terminal node is initialized, each node arranges threshold/2's for APP The storage that spatial cache is used for message carries forwarding;
Step 3:Collecting network information, to the Information Number λ of arrival node and front n bar in each terminal node statistical unit time The service time T of messagen-1
Step 4:Prediction spatial cache NpreSize;
Step 5:Adjustment cache size.
2. a kind of mobile terminal spatial cache according to claim 1 distribution control method it is characterised in that:Described step Spatial cache N is predicted in rapid fourpreThe method of size is as follows:
Step 4.1:Calculate the service time T needed for (n+1)th message of each nodenAverage E (Tn):
E ( T n ) = T 0 + T 1 + ... + T n - 1 n
Step 4.2:Calculate the service time T needed for (n+1)th message of each nodenVariance D (Tn):
D ( T n ) = [ T 0 - E ( T n ) ] 2 + [ T 1 - E ( T n ) ] 2 + ... + [ T n - 1 - E ( T n ) ] 2 n
Step 4.3:Calculate average queue length L of each node messagess
L s = ρ + λ 2 D ( T n ) + ρ 2 2 ( 1 - ρ ) = λ E ( T n ) + λ 2 D ( T n ) + [ λ E ( T n ) ] 2 2 [ 1 - λ E ( T n ) ]
Step 4.4:Each node, according to the message size m setting in advance, calculates the spatial cache N needed for subsequent timepre
Npre=m × Ls.
3. a kind of distribution control method of mobile terminal spatial cache according to claim 1 is it is characterised in that described step In rapid five, adjustment cache size comprises the following steps that:The spatial cache N being predicted according to step 4preAdjustment is currently used in and disappears The spatial cache N that breath storage forwards, if NpreLess than N, then abandon part messages until remaining disappear using Drophead strategy Breath size is not more than Npre, then unnecessary spatial cache is returned system;If NpreIt is not more than N and then judge NpreWhether it is less than Threshold, if NpreMore than N and less than threshold, then apply for N again to systempreThe space of-N size;If NpreNo Less than threshold, then apply for the space of threshold-N size again to system.
4. the distribution control method of a kind of mobile terminal spatial cache according to one of claims 1 to 3, its feature exists In:In described step one, the caching threshold values threshold of setting is less than the free space of mobile terminal node.
5. the distribution control method of a kind of mobile terminal spatial cache according to one of claims 1 to 3, its feature exists In:When threshold value threshold of setting is more than the free space of mobile terminal node in described step one, then warn prompting user " threshold value arranges excessive, insufficient space ".
CN201610865044.XA 2016-09-29 2016-09-29 Distribution control method for mobile terminal cache space Active CN106454937B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610865044.XA CN106454937B (en) 2016-09-29 2016-09-29 Distribution control method for mobile terminal cache space

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610865044.XA CN106454937B (en) 2016-09-29 2016-09-29 Distribution control method for mobile terminal cache space

Publications (2)

Publication Number Publication Date
CN106454937A true CN106454937A (en) 2017-02-22
CN106454937B CN106454937B (en) 2020-02-18

Family

ID=58169882

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610865044.XA Active CN106454937B (en) 2016-09-29 2016-09-29 Distribution control method for mobile terminal cache space

Country Status (1)

Country Link
CN (1) CN106454937B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151194A (en) * 2018-08-14 2019-01-04 Oppo广东移动通信有限公司 Data transmission method, device, electronic equipment and storage medium
CN109767118A (en) * 2019-01-11 2019-05-17 沈阳建筑大学 A kind of limited buffer dynamic capacity method for obligating in there is the bus body painting workshop that can reentry process

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101562565A (en) * 2009-05-25 2009-10-21 马福奎 Dynamic queue resource management strategy and virtual queuing method
CN102006226A (en) * 2010-11-19 2011-04-06 福建星网锐捷网络有限公司 Message cache management method and device as well as network equipment
CN102026225A (en) * 2010-11-29 2011-04-20 桂林电子科技大学 Dynamic queue management method for wireless netlike network
CN105119843A (en) * 2015-08-13 2015-12-02 中国航天科工集团第三研究院第八三五七研究所 A method for setting a message buffer queue length

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101562565A (en) * 2009-05-25 2009-10-21 马福奎 Dynamic queue resource management strategy and virtual queuing method
CN102006226A (en) * 2010-11-19 2011-04-06 福建星网锐捷网络有限公司 Message cache management method and device as well as network equipment
CN102026225A (en) * 2010-11-29 2011-04-20 桂林电子科技大学 Dynamic queue management method for wireless netlike network
CN105119843A (en) * 2015-08-13 2015-12-02 中国航天科工集团第三研究院第八三五七研究所 A method for setting a message buffer queue length

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
史庆: "《管理随机系统》", 1 July 1994 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151194A (en) * 2018-08-14 2019-01-04 Oppo广东移动通信有限公司 Data transmission method, device, electronic equipment and storage medium
CN109151194B (en) * 2018-08-14 2021-03-02 Oppo广东移动通信有限公司 Data transmission method, device, electronic equipment and storage medium
CN109767118A (en) * 2019-01-11 2019-05-17 沈阳建筑大学 A kind of limited buffer dynamic capacity method for obligating in there is the bus body painting workshop that can reentry process

Also Published As

Publication number Publication date
CN106454937B (en) 2020-02-18

Similar Documents

Publication Publication Date Title
Chen et al. An adaptive on-demand multipath routing protocol with QoS support for high-speed MANET
Li et al. Delay-tolerant data traffic to software-defined vehicular networks with mobile edge computing in smart city
Prodhan et al. TTL based routing in opportunistic networks
Hammoudeh et al. Adaptive routing in wireless sensor networks: QoS optimisation for enhanced application performance
Mohanty et al. Energy efficient structure-free data aggregation and delivery in WSN
Bagci et al. A distributed fault-tolerant topology control algorithm for heterogeneous wireless sensor networks
Fasolo et al. In-network aggregation techniques for wireless sensor networks: a survey
CN101980565B (en) QoS-based Ad Hoc network adaptive node speed multi-path routing method
Al-Turjman Mobile couriers’ selection for the smart-grid in smart-cities’ pervasive sensing
Zhao et al. A novel prediction-based temporal graph routing algorithm for software-defined vehicular networks
Li et al. An intersection-based QoS routing in vehicular ad hoc networks
Mokdad et al. Performance evaluation tools for QoS MAC protocol for wireless sensor networks
Deng et al. Online adaptive compression in delay sensitive wireless sensor networks
CN111130853B (en) Future route prediction method of software defined vehicle network based on time information
CN103647714A (en) Social energy-based mobile social delay-tolerant network routing method
CN102833160A (en) Contact predication based large-scale mobile delay tolerant network cluster-based routing method and system thereof
CN103781146A (en) Wireless sensor network optimal route path establishing method based on ant colony algorithm
CN104378229A (en) Link prediction method for opportunity network
Somesula et al. Contact duration-aware cooperative cache placement using genetic algorithm for mobile edge networks
CN103108372B (en) Interference sensing cross-layer routing method based on node sending and receiving capacity
CN109831792B (en) Wireless sensor network topology control method based on multi-objective optimization
Varsha et al. Development of QoS optimized routing using Artificial bee colony and TABU-GA with a mobile base station in Wireless Sensor Network
CN106454937A (en) Distribution control method for caching space of mobile terminal
CN114423061A (en) Wireless route optimization method based on attention mechanism and deep reinforcement learning
Wang et al. Opportunistic protocol based on social probability and resources efficiency for the intelligent and connected transportation system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant