Web游戏大厅框架的设计与实现
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
网游Web化是趋势,自2006年以来,WebGame呈现迅猛发展的趋势,充满商机的手机互联网时代即将到来,WebGame相比传统网络游戏能够更好的与其衔接,未来三年WebGame手机用户的数量可能将超过PC。传统的游戏大厅是一种成熟的商业模式,将其Web化以承载WebGame的运行是有广阔前景的。本文致力于设计实现一款能满足不同类型WebGame开发和部署需求的Web化的游戏大厅平台。
     本文以获取各类网游部署时的共性为目标,对主流网游的网络架构进行研究分析,并得出以下结论:纯网页型WebGame都使用了Web服务器,而传统C/S模式网游和插件型WebGame基本上都使用了游戏网关服务器。基于这些部署时的共性,并采用将大厅平台提供的基础服务通过游戏网关服务器或者Web服务器暴露给具体WebGame的服务端的方式,本文成功设计了大厅平台服务端的网络架构和应用架构,此方案满足不同类型WebGame服务端的开发和部署需求。
     本文在对QQ游戏和百度游戏大厅运行特征分析的基础上,提取了大厅平台登陆系统必备的四个特征: SSO特征、辅助实施“分层授权”的特征、重复登陆检测特征、强制踢出重复登陆玩家特征。以对Kerberos协议进行详细分析为基础,以使其可以适合游戏大厅平台的登陆系统为目的,本文引入了以下两个改进成果:使用SRP协议使其免受密码猜测攻击,使用挑战/应答协议消除客户端与服务端的时钟同步依赖性。最终,成功地将改进的Kerberos协议引入到Web大厅登陆系统。
     本文对Web游戏大厅平台客户端的模块进行了分层架构,将各个功能模块合理的放到不同逻辑层中。并设计了基于套接口的消息系统,这使得WebGame浏览器端的开发者可以更加方便的使用套接口的通信功能。
     在最后,本文基于Silverlight平台、WCF分布式通信技术、IO完成端口技术,LINQ技术和数据库技术,成功地实现了Web游戏大厅平台的核心功能。
Along with development of the technology of computer science, the WebGame had developed rapidly since 2006. The new time is coming now, WebGame, compared with the traditional games, has better connectivity ability. After three years, the number of mobile users of WebGame would exceed the number of Personal Computer (PC) WebGame. The traditional PC game hall had been developed, and changes the PC game hall into web which it is a wide application prospects. This paper aims to design a lobby WebGame platform to meet the different types needs.
     In this section, we analyzed the network structure of the mainstream mmos and concluded that the WebGame use the web server and traditional C/S mode game used the game gateway server. Based on the common designs of these platforms, we designed an platform for the service and which is based on game gateway or web server which have exposure to specific WebGame service, and it could satisfy the different types WebGame server development and deployment requirements.
     In this section, We analyzed the QQ games hall platform and Baidu games platform. We extraction four features of the login systems of these platform, they are SSO characteristics, auxiliary implementation "layered characteristics of authorized", repeated landing detect feature and forced kicked out a repeat landing player. We also analyzed the protocol of Kerberos, and introduced SRP to prevent use password guessing attack, challenge/response to eliminate the clock synchronization dependent. At last, we have used these improvements to our login systems.
     In this section, we designed the WebGame hall as a hierarchical structure, and assigned the different modules to suitable layer. We also designed the interface based on the messaging system, which makes the WebGame developers who is at the browser client be able to communicate more convenient.
     In this paper, we used the Silverlight platform, the WCF distributed communications technology, the I/O completion port technology, the LINQ technology and the Database to successfully realize the kernel function of WebGame hall platform.
引文
[1]张新华.网游投资新风向.新经济导刊,2010,(11):1-2
    [2]百度百科.网络游戏.http://baike.baidu.com/view/49886.htm#sub3543
    [3]王新颖.网络游戏中的数据交互安全性问题研究: [硕士学位论文].成都:西南交通大学,2007
    [4]汇众教育.中国网页游戏高峰论坛见证webgame发展史.http://www.gamfe.com/gzf/content/2010-04-27/20100427161641.shtml
    [5]百度百科.网页游戏.http://baike.baidu.com/view/496047.htm#sub496047
    [6]泡泡玩新闻中心.趣游科技VP张海:未来三年WEBGAME(网页游戏)的手机用户将超PC.http://www.popwan.com/news/yejie/201011/26-71487.html
    [7]曹世军.网络游戏基础系统架构与监控策略.系统架构师大会,2009
    [8]侯瑞峥.基于ACE和框架的休闲游戏服务器设计与实现: [硕士学位论文].杭州:浙江大学,2006
    [9]吴兆定,袁江海,郑世宝.棋牌类网络游戏服务端的架构设计.计算机工程,2007, 33(15)
    [10]章华.全网络棋牌游戏平台的架构研究和设计: [硕士学位论文].成都:电子科技大学,2009
    [11]池莹.网络休闲游戏平台服务器端的研究与实现: [硕士学位论文].成都:西南交通大学,2006
    [12]曾超.休闲网络游戏平台框架设计与实现: [硕士学位论文].桂林:桂林工学院,2007
    [13]惠煌.网络跳棋类游戏分析和设计: [硕士学位论文].大连:大连理工大学,2005
    [14] 265G网页游戏门户.网游web化是趋势,传统网游享受最后的晚餐.http://www.265g.com/news/200805/4143.html
    [15]维基百科.网络游戏.http://baike.baidu.com/view/3543.htm#sub3543
    [16]谢希仁.计算机网络第五版.北京:电子工业出版社,2008,15-18
    [17]游碧蓉,张晶.网络休闲游戏的平台-C/S模式与B/S模式的比较.科技情报开发与经济,2008,(13):1-3
    [18]徐菲云. 3D游戏中路径搜索的研究与实现: [硕士学位论文].成都:电子科技大学,2007
    [19] Andrew S, Tanenbaum, Maartenvan Steen.分布式系统原理与范型.北京:清华大学出版社,2008,45-67
    [20]程卫新,郝爱民.面向分布式游戏服务器的消息公平处理方法.计算机工程,2008,32(10):1-3
    [21]梁白鸥.实时网络游戏中关键技术的研究与实现: [硕士学位论文].成都:电子科技大学,2007
    [22]百度百科.南北互联.http://baike.baidu.com/view/2000117.htm#sub2000117
    [23]杨玲.一种高性能网络游戏服务器架构设计.网络安全技术与应用,2010, (04):1-3
    [24]郭丽春,黄金波.三种适用于电子商务的VP N方案.办公自动化,2008, (22):1-3
    [25]百度百科.B/S模式.http://baike.baidu.com/view/292859.htm#sub292859
    [26]周亭.Comet:基于HTTP长连接的“服务器推”技术.http://www.ibm.com/developerworks/cn/web/wa-lo-comet/
    [27] Jonathan Swift, Chris Barker, Dan Wahlin, et al.SilverLight2 & ASP.NET高级编程.北京:清华出版社,2010,23-25
    [28]张春燕,王磊应.用RIA技术实现分布式计算环境的门户系统.计算机科学与技术,2006,(10):1-2
    [29] Silverlight官方文档.Silverlight Overview.http://msdn.microsoft.com/en-us/library/cc838158(v=VS.95).aspx
    [30] Nagel.C, et al.C#高级编程(第6版).北京:清华大学出版社,2008,469-495
    [31] Anthony Jones, Jim Ohlund.Windows网络编程(第2版).北京:清华大学出版社,2002,101-136
    [32] Jeffrey Richter.Windows高级编程指南(第三版).北京:清华出版社,1999,569-615
    [33]王瑞彪,李凤岐,施玉勋,张宪超.基于IOCP机制的网络游戏服务器通信层的实现.计算机工程与应用,2009,45(7):7-8
    [34] WCF官方文档.WCF Feature Details.http://msdn.microsoft.com/en-us/library/ms733103.aspx
    [35]蒋金楠.WCF技术剖析.北京:电子工业出版社,2009
    [36] Juval Lowy. Programming WCF Services. O'Reilly Media Inc, 2007
    [37] Dr Shahram Khosravi. Professional IIS 7 and ASP.NET Integrated Programming. Wrox, 2007
    [38]维基百科.Authentication.http://en.wikipedia.org/wiki/Authentication
    [39]梁滋璐,夏侯士戟,陈东义.基于SRP算法的安全AODVjr协议.电子科技大学学报,2010,(51),1-2
    [40]刘铮.基于改进Kerberos协议的单点登陆系统研究与实现: [硕士学位论文].重庆大学,2010
    [41]徐勇,李征,张珏. Kerberos身份认证的分析和改进.微计算机信息,2004,20(10),1-2
    [42]徐鹏.基于安全远程口令和公钥体制的Kerberos改进算法研究: [硕士学位论文].华中科技大学,2006
    [43]田园,司伟生,韩瑜.计算机网络基础:因特网协议原理与实现(第一版).北京:机械工业出版社,2006,178-189
    [44] Thomas Wu. The Secure Remote Password Protocol. Processsing of the 1998 Internet Society Network and Distribute System Security Symposium,1998,4-6
    [45] Wooley, Jim. Linq In Action. MANNING PUBN, 2008
    [46] CodeProject.Calling Managed.NET C# COM Objects from Unmanaged c++ Code.http://codeproject.com/KB/cs/ManagedCOM.aspx
    [47]博客园.Chase的技术博客.http://www.cnblogs.com/Chase/archive/2010/05/31/1748596.html