广域网分布式虚拟环境中的动态因果消息序控制方法.doc_第1页
广域网分布式虚拟环境中的动态因果消息序控制方法.doc_第2页
广域网分布式虚拟环境中的动态因果消息序控制方法.doc_第3页
广域网分布式虚拟环境中的动态因果消息序控制方法.doc_第4页
广域网分布式虚拟环境中的动态因果消息序控制方法.doc_第5页
已阅读5页,还剩3页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

广域网分布式虚拟环境中的动态因果消息序控制方法摘要:在广域网运行的分布式虚拟环境中,由于消息传输延迟较大,因果消息序的一致性控制效果同时由因果序的正确性和实时性两方面决定。针对分布式虚拟环境消息序维护方法必须动态平衡因果序正确性和实时性的问题,提出了一种新的因果消息序控制方法,能够动态地调节和平衡分布式虚拟环境中各节点阻塞的结果事件数与延迟的原因事件数,满足因果消息处理的正确性和实时性需求。实验结果表明,与现有方法相比,该方法能够在保证实时性的同时,有效提高因果序维护的正确程度,为广域网分布式虚拟环境的消息序维护提供有力支撑。关键词:广域网;分布式虚拟环境;因果消息序;一致性控制;实时性dynamic causal order control approach in distributedvirtual environment on wide area networkfu sha*, zhou hang.jundepartment of information management, hunan university of finance and economics, changsha hunan 410205, chinaabstract:in a distributed virtual environment (dve) system running on wide area network (wan), the control effect of causal order consistency is determined by not only the correctness of causality but also the real-timeness due to the large network transmission delay. in order to achieve a better trade-off between the quality of causal order consitency and real-timeness in a dve, a novel dynamic causal order control approach was proposed. the core idea of this approach was to dynamically adjust and balance the amount of blocked effect messages and that of delayed causal messages on each site in a dve system, so as to meet the demands of causality correctness and real-time requirement on message ordering delivery. the evaluation results demonstrate that the proposed approach can outperform the previous ones by effectively improving the quality of causal order control while simultaneously preserve the real-time property of dve systems.in a distributed virtual environment (dve) system running on wide area network (wan), the control effect of causal order consistency is determined by both the correctness of causality and the real.time due to the large network transmission delay. in order to achieve a better trade.off between the quality of causal order consistency and real.time in a dve, a new dynamic causal order control approach was proposed. the core idea of this approach was to dynamically adjust and balance the amount of blocked effect messages and that of delayed causal messages on each site in a dve system, so as to meet the demands of causality correctness and real.time requirement on message ordering delivery. the evaluation results demonstrate that the proposed approach can outperform the previous ones by effectively improving the quality of causal order control while simultaneously preserving the real.time property of dve systems.key words:wide area network (wan);distributed virtual environment (dve);causal order of message;consistency control;real.time0 引言随着分布式网络和虚拟环境的快速发展,越来越多的分布式虚拟环境在广域网中得到广泛应用。分布式虚拟环境是由计算机生成的3d虚拟世界,它允许地理上分布在各地的参与节点通过网络进行实时交互,并传递消息1。节点间不共享存储设备,只通过消息传递进行通信。由于广域网范围广泛,节点之间通常也没有共享的全局时钟2。在分布式虚拟环境中,如何在各节点分布维护消息的因果序一直是研究工作的重点2。在真实世界里,人们观测到原因事件总是在结果事件之前发生,事件间的因果先后关系自然而然地能够得到维护。然而,在分布式虚拟环境中,由于节点间只能通过消息传递进行通信,消息处理的因果先后顺序并不一定能得到正确保证。由于网络传输延迟的存在,有可能某个节点先接收并处理了结果事件消息,而该结果事件的原因事件消息还在网络中传输。若因果事件消息处理顺序违背正确的先后关系,则会对虚拟环境的参与者造成困惑和歧义,降低仿真的有效性。另一方面,因为分布式虚拟环境旨在模拟真实世界,其中的大部分数据都具有一个共同属性:实时性。因此,消息中包含的数据并不是无限期有效,而是存在一个生命周期,在该周期的时间限制内有效,即分布式虚拟环境中的消息必须在生命周期内得到处理。对于受到广域网延迟影响,而不能在其生命周期或结果事件生命周期内到达的消息,可能会导致大量已接收的结果事件消息被阻塞等待,而不能在其生命周期内得到及时处理,严重破坏仿真过程的实时性。接收节点通常会主动丢弃这类迟到消息,以保证已到达消息能被有效处理,从而维护虚拟环境的实时性3。然而,如果过多的延迟消息被丢弃,因果一致性控制则缺乏连续性,会使仿真的正确程度遭到极大弱化。因此,分布式虚拟环境的因果序控制方法必须能针对上述情况进行有效地、均衡地维护。在现有因果一致性控制方法中,文献4定义了“happened before”关系,用以捕获分布事件间的因果先后关系。向量时间(vector time,vt)法5-7是经典的因果序方法,它为每个消息添加足够的向量时间作为控制信息,从而维护因果事件处理顺序的一致性。然而,这类经典方法并没有考虑消息的生命周期限制,因此结果事件可能在“happened before”关系得不到维护的情况下先被执行。.因果序方法3提出给每个消息设置相同的生命周期“”,并保证每个接收的事件消息在其生命周期内得到处理。然而,这种方法要求分布式虚拟环境具有完全同步的全局时钟,因此,难以在广域网中得到应用。直接依赖关系法(immediate dependency relation, idr)8-10具有控制信息量小、实时性良好等特征,然而如果直接依赖的消息不能及时传到,尤其是关键因果事件对传输迟到,则会导致idr方法控制信息过少而无法避免dve系统中因果违背情况的发生。针对上述情况,本文深入分析了问题产生原因,提出了一种新的广域网分布式虚拟环境中的动态因果消息序控制方法,通过定义和实时计算阻塞结果事件消息数和延迟原因事件消息数,动态权衡和判断因果事件处理正确性和虚拟环境实时性的重要程度,从而动态地决定因果消息的有效处理过程。实验结果表明,该方法能够有效提高因果序维护的正确性,同时保持虚拟环境的实时性。4 结语面向广域网运行的分布式虚拟环境,因果一致性控制的有效性由因果消息处理的正确性和实时性两方面共同决定,因此,因果序控制方法必须能动态地考虑两方面的处理要求。本文提出了一种新的广域网分布式虚拟环境中的动态因果消息序控制方法dmo,通过比较当前消息的阻塞结果事件消息数e.number与延迟原因事件消息数c.number,dmo方法能够动态地判定因果消息处理正确性和实时性的重要程度,从而动态决定因果消息的执行过程。实验结果表明,dmo控制方法能够达到广域网分布式虚拟环境的实时性要求,同时有效维护事件消息的因果一致性。参考文献:1张伟,周航军,彭宇行,等. 分布式交互仿真中的异步时钟一致性控制方法j. 软件学报, 2010, 21(6):1208-1219.2fujimoto r m. parallel and distributed simulation systemsm. new york: wiley interscience, 2000.3baldoni r, prakash r, raynal m, et al. efficient .causal broadcastingj. international journal of computer systems science and engineering, 1998(13):263-271.4lamport l. time, clocks, and the ordering of events in a distributed systemj. communications of the acm, 1978, 21(7):558-565.5schwarz r, mattern f. detecting causal relationships in distributed computations: in search of the holy grailj. distributed computing, 1994, 7(3):149-174.6schiper a, eggli j, sandoz a. a new algorithm to implement causal orderingc/ proceedings of the 3rd international workshop on distributed algorithms. berlin:springer.verlag, 1989:219-232.7raynal m, schiper a, toueg s. the causal ordering abstraction and a simple way to implement itj. information processing letters, 1991, 39(6):343-350.8hernndez s p, fanchon j, drira k. the immediate dependency relation: an optimal way to ensure causal group communicationj. annual review of scalable computing, 2004, 6(3):61-79.9scheuermann b, kiess w, roos m, et al. on the time synchronization of distributed log files in networks with

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论