現今網路架構中存在有主從架構與同儕網路兩大架構,主從架構的優點在於virtual world中的事件,都是以server來決定事件的發生順序,所以不會出現事件不同步問題,主從架構缺點在於server是一個瓶頸,當server fail後會造成整個網路失敗。在同儕網路架構下所建構的virtual world,缺點是會存在事件不同步的問題,此外當P2P網路中peer個數增加後,會使得整體網路流量大幅度增加。 本篇論文著手解決在大範圍事件發生後,由最靠近目標的avatar成為本次事件的代理人,透過forwarding model discover所有的leader候選人,最後採用forwarding method選舉出leader,將P2P網路架構轉換成主從架構,來同時解決網路流量過高與事件不同步問題。 There are two major architectures in network, first is P2P and the other is client/server. The advantage of client/server is that server can determine the event ordering therefore, there without any event inconsistent problem. The disadvantage of client/server is that the server is a bottleneck, when the server was failed would cause the whole network fail. In P2P there is no server, every peer communicates to each other and share information. But the problem is that when the peers are increased, it would cause the whole network traffic increased, there also exists the event-inconsistent problem. In this thesis, when the event is triggered, then the avatar who is most closest to target would become the agent of this event. The agent will discover the leader’s candidates. Finally we use forwarding method to elect a leader and transform P2P to client and server to solve heavy traffic problems and the event-inconsistent.