• 沒有找到結果。

6 Performance Evaluation

6.7 Effect of Cache Size

This experiment evaluates the effect of cache size on average access time and average tuning time, and the experimental results are shown in Figure 14. Similar to [8], cache size is determined as “cache size ratio×the summation of the sizes of all data items.” The case that the value of cache size ratio is set to zero indicates the case that the server does not employ cache.

As shown in Figure 14a, average access time decreases as the value of cache size ratio increases. When the cache size is large, many data items are cached and can be obtained by the server without being fetched from the data servers. In addition, when the cache size is large enough, the benefit of increasing cache size diminishes since data items with high access rates are cached in the server cache. We also observe from Figure 14a that employing server cache, which is neglected in the prior studies on data indexing for on-demand data broadcasting [13], is able to effectively reduce average access time.

As the observations in Section 4.2, when it comes to average tuning time, cases with short average access time favor schemes with small values of degree. Hence, scheme Static-2 outperforms scheme Static-8 especially when the value of cache size ratio is large. This observation agrees with the results shown in Figure 14b. When the value of cache size ratio is small, both schemes do not perform well since the value of degree in scheme Static-2 is too small and the value of degree in scheme Static-8 is too large. On the other hand, scheme AIDOA is able to dynamically adjust the value of degree to attain better performance, showing the advantage of scheme AIDOA.

7 Conclusion

We proposed in this paper an energy-conserving on-demand data broadcasting system employing the data indexing technique. Different from the prior work, power consumption of turning on and turning off the wireless network interfaces was considered. In addition, we also employed server cache to reduce the effect of data fetch time. Specifically, we first analyzed the access time and tuning time of data requests and proposed algorithm AIDOA to adjust the degree of buckets according to system workload.

We also devised an approximation method to estimate the effect of increasing and decreasing the values of degree, and employed the approximation method to guide the adjustment of algorithm AIDOA. In addition, the companion program generation algorithm and cache replacement policy were proposed to cooperate with algorithm AIDOA. Several experiments were then conducted to evaluate the performance of algorithm AIDOA. Experimental results showed that algorithm AIDOA is able to greatly reduce power consumption at the cost of a slight increase in average access time and dynamically adjust the index and data organization to adapt to change of system workload.

References

[1] S. Acharya, R. Alonso, M. Franklin, and S. Zdonik. Broadcast Disks: Data Management for Asymmetric Communication Environments. In Proceedings of the ACM SIGMOD Conference, pages 198–210, March 1995.

[2] S. Acharya and S. Muthukrishnan. Scheduling On-demand Broadcasts: New Metrics and Algorithms. In Proceedings of the 4th ACM/IEEE International Conference on Mobile Computing and Networking, pages 43–94, October 1998.

[3] C. Aggarwal, J. L. Wolf, and P. S. Yu. Caching on the World Wide Web. IEEE Transactions on Knowledge and Data Engineering, 11(1):94–107, 1999.

[4] M. Agrawal, A. Manjhi, N. Bansal, and S. Seshan. Improving Web Performance in Broadcast-Unicast Net-works. In Proceedings of the IEEE INFOCOM Conference, March-April 2003.

[5] D. Aksoy and M. J. Franklin. Scheduling for Large-Scale On-Demand Data Broadcasting. In Proceedings of IEEE INFOCOM Conference, pages 651–659, March 1998.

[6] D. Aksoy, M. J. Franklin, and S. Zdonik. Data Staging for On-Demand Broadcst. In Proceedings of the 27th International Conference on Very Large Data Bases, pages 571–580, September 2001.

[7] L. Breslau, P. Cao, G. Phillips, and S. Shenker. Web Caching and Zipf-like Distributions: Evidence and Implications. In Proceedings of the IEEE INFOCOM Conference, March 1999.

[8] C.-Y. Chang and M.-S. Chen. Exploring Aggregate Effect with Weighted Transcoding Graphs for Efficient Cache Replacement in Transcoding Proxies. In Proceedings of the 18th IEEE International Conference on Data Engineering, Feburary 2002.

[9] S. Glassman. A Caching Relay for the World Wide Web. Computer Networks and ISDN Systems, 27, 1994.

[10] J.-L. Huang and M.-S. Chen. Dependent Data Broadcasting for Unordered Queries in a Multiple Channel Mobile Environment . IEEE Transactions on Knowledge and Data Engineering, 16(9):1143–1156, September 2004.

[11] J.-L. Huang and W.-C. Peng. An Energy-Conserved On-Demand Data Broadcasting System. In Proceedings of the 6th International Conference on Mobile Data Management, May 2005.

[12] T. Imielinski, S. Viswanathan, and B. R. Badrinath. Data on Air: Organization and Access. IEEE Transactions on Knowledge and Data Engineering, 9(9):353–372, June 1997.

[13] S. Lee, D. P. Carney, and S. Zdonik. Index Hint for On-demand Broadcasting. In Proceedings of the 19th IEEE International Conference on Data Engineering, March 2003.

[14] C.-W. Lin, H. Hu, and D. L. Lee. Adaptive Realtime Bandwidth Allocation for Wireless Data Delivery.

ACM/Kluwer Wireless Networks, 10:103–120, 2004.

[15] V. Padmanabhan and L. Qiu. The Content and Access Dynamics of a Busy Web Site: Findings and Implica-tions. In Proceedings of the IEEE SIGCOMM Conference, pages 293–304, August-September 2000.

[16] M. A. Sharaf and P. K. Chrysanthis. On-Demand Data Broadcasting for Mobile Decision Making. ACM/Kluwer Mobile Networks and Applications, 9(4):703–714, December 2004.

[17] E. Shih, P. Bahl, and M. J. Sinclair. Wake on Wireless: An Event Driven Energy Saving Strategy for Bettery Operated Devices. In Proceedings of the 8th ACM/IEEE International Conference on Mobile Computing and Networking, September 2002.

[18] T. Simunic, S. Boyd, and P. Glynn. Managing Power Consumption in Networks on Chips. IEEE Transactions on Very Large Scale Integration Systems, 12(1):96–107, January 2004.

[19] M. A. Viredaz, L. S. Brakmo, and W. R. Hamburgen. Energy Management on Handheld Devices. ACM Queue, 1(7):44–52, October 2003.

[20] J. Xu, W.-C. Lee, and X. Tang. Exponential Index: A Parameterized Distributed Indexing Scheme for Data on Air. In Proceedings of the 2nd ACM/USENIX International Conference on Mobile Systems, June 2004.

[21] J. L. Xu, B. Zheng, W.-C. Lee, and D. K. Lee. Energy Efficient Index for Querying Location-Dependent Data in Mobile Broadcast Environments. In Proceedings of the 19th International Conference on Data Engineering, March 2003.

[22] H. Zhu and G. Cao. A Power-Aware and QoS-Aware Service Model on Wireless Networks. In Proceedings of IEEE INFOCOM Conference, March 2004.

Ii(1) Ii(2) Ii(3) Di(1) Di(2) Di(3)

Ii(1) Ii(2) Ii(3) Ii(4) Di(1) Di(2) Di(3) Di(4)

A F N A

tEnd tStart tSleep(i) tWakeUp(i)

D

A F N A

tEnd tStart tSleep(i) tWakeUp(i)

D

Bucket(i)

Bucket(i)

Time

Time

Figure 15: An example scenario of Type I data requests that dCurr.= 3 and dNext = 4

Appendix

Proof of Lemma 1:

Consider the cases that dNext > dCurr.. Figure 15 shows an example of Type I data requests. When the degree of buckets is set from dCurr. to dNext, dNext− dCurr. index item(s) and dNext− dCurr. data item(s) will be appended to each index segment and data segment, respectively. As observed from Figure 15, setting the degree of buckets from dCurr.to dNext increases the average access time of Type I data requests by (dNext−dBCurr.)×SI. In addition, we also observe that appending dNext− dCurr. index items into each index segment does not affect the average tuning time of Type I requests. Hence, from the above observations, we have

StatIdNext.AvgAT = StatI.AvgAT + (dNext− dCurr.) ×SI B, and StatIdNext.AvgT T = StatI.AvgT T.

We then apply the above equations as the approximations of StatIdNext.AvgAT and StatIdNext.AvgT T in the cases that dNext < dCurr., and hence, prove Lemma 1. Q.E.D.

Proof of Lemma 2:

Consider the example probe bucket of Type II data requests shown in Figure 16. Suppose that tStart follows a uniform distribution between Bucketi.Start and Bucketi.End. Therefore, as observed from Fig-ure 16, the probabilities of a Type II data request to be Type II.I and Type II.II are S SI

I+SD and SSD

I+SD,

A F N

Figure 16: An example scenario of Type II data requests that dCurr.= 3 and dNext = 4 on the probe bucket respectively. Therefore, by the definition of StatIIdNext.AvgAT P and StatIIdNext.AvgT T P, we have

StatIIdNext.AvgAT P = SI

We now consider the cases that dNext > dCurr. and derive the approximations of StatII.IdNext.AvgAT P, StatII.IdNext.AvgT T P, StatII.IIdNext.AvgAT P and StatII.IIdNext.AvgT T P. When the degree of buckets is set to from dCurr.

to dNext, dNext− dCurr. index item(s) and dNext− dCurr.data item(s) will be appended to each index segment and data segment. As observed from Figure 16, setting the degree of buckets from dCurr. to dNextincreases the average access time and average tuning time of the probe buckets of Type II.I data requests (i.e., StatII.IdNext.AvgAT P and StatII.IdNext.AvgT T P) by (dNext−dCurr.B)×(SI+SD) and (dNext−dBCurr.)×SI, respectively. Hence,

In addition, we also observe that increasing the degree of buckets from dCurr. to dNext increases both

the average access time and average tuning time of the probe buckets of Type II.II data requests (i.e., StatII.IIdNext.AvgAT P and StatII.IIdNext.AvgT T P) by (dNext−dCurr.B)×(SI+SD). Therefore, we have

StatII.IIdNext.AvgAT P = StatII.AvgAT P + (dNext− dCurr.) ×SD B , and

StatII.IIdNext.AvgT T P = StatII.AvgT T P + (dNext− dCurr.) ×SD B .

We then apply the above equations to the approximations of StatII.IdNext.AvgAT P, StatII.IdNext.AvgT T P, StatII.IIdNext.AvgAT P and StatII.IIdNext.AvgT T P in the cases that dNext < dCurr., and hence, prove Lemma 2.

Q.E.D.

Proof of Lemma 3:

In the cases that the degree of buckets is dCurr., since one data item and the corresponding index item contribute StatII.AvgAT S by SI+SB D, the average number of data items in Type II data requests is StatII.AvgAT S ×S B

I+SD.

Consider the cases that set the degree of buckets to dNext. For each Type II data request, on aver-age, dNext− dCurr. index items and dNext− dCurr. data items move from the search buckets to the probe bucket. Therefore, the average number of index and data items in Type II data requests both become StatII.AvgAT S ×S B

I+SD− (dNext− dCurr.). Since each search bucket contains dNext index items and dNext

data items, the average number of search buckets of Type II data requests is

AvgSBNoNext= StatII.AvgAT S × B

SI+ SD− (dNext− dCurr.).

Finally, according to the derivations in Section 3.2.2, since each Type II data request contains AvgSBNoNext search buckets on average, we have

StatIIdNext.AvgAT S = AvgSBNoNext× dNext×(SI+ SD) B , and

StatIIdNext.AvgT T S = AvgSBNoNext× µ

dNext×SI

B + TO f f+ TOn

.

Q.E.D.

Proof of Lemma 4:

A F N Time Bucket(j)

Ij(1) Ij(2) Ij(3) Dj(1) Dj(2) Dj(3)

A tEnd tSleep(j) tWakeUp(j)

D

A F N Time

Bucket(j)

Ij(1) Ij(2) Ij(4) Dj(1) Dj(2)

A tEnd

tSleep(j) tWakeUp(j)

D

Ij(3) Dj(3) Dj(4)

Figure 17: An example scenario of Type II data requests that dCurr. = 3 and dNext = 4 on the retrieval bucket

Consider the cases that dNext> dCurr.and the example Type II data request shown in Figure 17. When the degree of buckets is set to from dCurr.to dNext, dNext−dCurr.index item(s) and dNext−dCurr.data item(s) will be appended to each index segment and data segment, respectively. As observed from Figure 17, setting the degree of buckets from dCurr. to dNext increases the average access time of each Type II data request on the retrieval bucket by (dNext−dBCurr.)×SI. In addition, we also observe that appending dNext− dCurr.

index items into each index segment does not affect the average tuning time of each Type II request on the retrieval bucket. Hence, from the above observations, we have

StatIIdNext.AvgAT R = StatII.AvgAT R + (dNext− dCurr.) ×SI B, and StatIIdNext.AvgT T R = StatII.AvgT T R.

We then apply the above equations as the approximations of StatIIdNext.AvgAT R and StatIIdNext.AvgT T R in the cases that dNext< dCurr., and hence, prove Lemma 4. Q.E.D.

相關文件