首页> 外文学位 >Realization of resource-efficient embedded Web services using Representational State Transfer (REST) packaging and roll-back streaming XML (RBStreX) parser.
【24h】

Realization of resource-efficient embedded Web services using Representational State Transfer (REST) packaging and roll-back streaming XML (RBStreX) parser.

机译:使用代表性状态传输(REST)打包和回滚流XML(RBStreX)解析器来实现资源有效的嵌入式Web服务。

获取原文
获取原文并翻译 | 示例

摘要

Web services technology is a platform-independent, XML-based Web application on general computing systems. Two important components are needed to handle the XML (Extensible Markup Language) data. The first is the packaging mechanism to specify the XML data arrangement during information exchanges between machines. Contemporary Web services have adopted SOAP (Simple Object Access Protocol) for their purpose. The second is the XML parser to interpret the information from XML representation (for Web services) into raw data (for application or processor) and vice versa. SAX and DOM are the two most commonly used parsers. SAX (Simple API for XML) provides great resource saving but it only parses at forward direction; while DOM (Document Object Model) provides random accessibility and object-oriented characteristic but at high resource cost. Recently, ubiquitous Web services prompted the migration of the conventional Web services towards embedded system. For examples, several SOAP Web services were embedded on microprocessor-based board (Bucci et al., 2005; Machado et al., 2006; Almeida et al., 2007) and FPGA (Cuenca-Asensi et al., 2008). However, mapping of complex SOAP Web services onto low-resource embedded system triggered high processing and memory, thus increases the implementation cost. Also, there had been efforts to migrate the XML parsers towards embedded system using light-weight Java-based SAX and DOM parsers (Wilson, 2008; Scheemaecker, 2003; Collado et al., 2008). XimpleWare had introduced VTD-XML (Virtual Token Descriptor for XML) (Zhang, 2008) to achieve better resource-functionality tradeoff between SAX and DOM; but it still requires relatively high resources compared to SAX. A much lower resource-intensive XML parser is required to run embedded Web services. In addition, the overall high abstraction requirements of current embedded Web services had resulted in over-dependency on costly processor-based embedded system. Economical solution such as FGPA-based implementation is needed.;This dissertation proposes three strategies to achieve better optimization within resource-abstraction considerations of embedded Web applications: first, the implementation of efficient REST (Representational State Transfer) style Web services to replace SOAP; second, introduction of the novel RBStreX (Roll-Back Streaming XML) parser; and lastly, dedicated hardware implementation of Web applications' components. In the first strategy, a REST Web services server is proposed and implemented. The REST request services information resides within the HTTP header, instead of being HTTP payload data as SOAP does. When a REST request message is received from client, the server directly extracts the services information from the HTTP headers of the request message during HTTP processing stage. Then, the application program will execute the request based on the services information and generate corresponding response information. The response information will be wrapped in simple XML format, instead of lengthy SOAP format, and sent back to the client. In the second strategy, a RBSTreX is proposed as a new XML parsing method to serve embedded XML application. Direct Ancestor (DA) buffer and "roll-back" feature were introduced to provide backward referencing capability, which overcame the shortage of SAX's unidirectional parsing and offered more parsing flexibility. In order to avoid over-dependency on software platform, both REST Web services and RBStreX had been implemented in dedicated hardware design to achieve high performance and low resource utilization.;Hardware prototypes of both REST and SOAP Web services implementations had been first simulated on Altera Quartus II software; and then carried out and compared on a Spartan 3-E Starter Kit FPGA platform. Comparisons were focused on the effects of REST and SOAP packaging mechanism by ignoring application program complexity, as well as discovery and description mechanisms of Web services. The REST implementation had utilized less FPGA logic resource (about 15% reduction on slices utilization), less processing stages (no XML message extraction for service request) and performed faster (12∼13% reduction on processing time) than SOAP. It also utilized shorter services messages (60∼75% reduction on request message; 30∼50% reduction on response message) than that of SOAP, proving lower memory requirement. Meanwhile, the RBStreX parser with backward reference parsing capability was simulated on Altera Quartus II software. It utilizes resource (10B for 1kB XML document) slightly higher than SAX (almost no memory usage) but significantly smaller than VTD-XML (1.3~1.5kB for 1kB XML document). The drawback of RBStreX is its variable total parsing time that depends on the pattern of parsing operations. In conclusion, both REST Web services and RBStreX parser were successfully demonstrated on embedded Web services applications at low resource usages, which will be useful for low cost applications.
机译:Web服务技术是通用计算系统上与平台无关的基于XML的Web应用程序。需要两个重要的组件来处理XML(可扩展标记语言)数据。第一种是用于在机器之间的信息交换期间指定XML数据排列的打包机制。现代Web服务已出于其目的采用了SOAP(简单对象访问协议)。第二个是XML解析器,用于将XML表示形式的信息(对于Web服务)解释为原始数据(对于应用程序或处理器),反之亦然。 SAX和DOM是两个最常用的解析器。 SAX(用于XML的简单API)可节省大量资源,但只能向前解析。而DOM(文档对象模型)提供了随机可访问性和面向对象的特性,但是资源成本很高。最近,无处不在的Web服务促使常规Web服务向嵌入式系统迁移。例如,一些SOAP Web服务被嵌入到基于微处理器的板上(Bucci等,2005; Machado等,2006; Almeida等,2007)和FPGA(Cuenca-Asensi等,2008)。但是,将复杂的SOAP Web服务映射到低资源嵌入式系统上会触发大量的处理和内存,从而增加了实现成本。此外,还曾尝试使用基于Java的轻量级SAX和DOM解析器将XML解析器迁移到嵌入式系统(Wilson,2008; Scheemaecker,2003; Collado等,2008)。 XimpleWare引入了VTD-XML(XML的虚拟令牌描述符)(Zhang,2008年),以在SAX和DOM之间实现更好的资源功能权衡。但是与SAX相比,它仍然需要相对较高的资源。运行嵌入式Web服务需要低得多的资源密集型XML解析器。另外,当前嵌入式Web服务的总体高抽象要求导致对昂贵的基于处理器的嵌入式系统的过度依赖。本文提出了三种经济的解决方案,例如基于FGPA的实现。本文提出了三种策略,可以在嵌入式Web应用程序的资源占用方面实现更好的优化:首先,实现有效的REST(表示状态转移)样式的Web服务来代替SOAP。其次,介绍新颖的RBStreX(回滚流XML)解析器;最后是Web应用程序组件的专用硬件实现。在第一种策略中,提出并实现了REST Web服务服务器。 REST请求服务信息驻留在HTTP标头中,而不是像SOAP一样是HTTP有效负载数据。当从客户端收到REST请求消息时,服务器会在HTTP处理阶段直接从请求消息的HTTP标头中提取服务信息。然后,应用程序将基于服务信息执行请求并生成相应的响应信息。响应信息将以简单的XML格式(而不是冗长的SOAP格式)包装,并发送回客户端。在第二种策略中,提出了RBSTreX作为服务于嵌入式XML应用程序的新XML解析方法。引入了直接祖先(DA)缓冲区和“回滚”功能以提供向后引用功能,从而克服了SAX单向解析的不足,并提供了更大的解析灵活性。为了避免对软件平台的过度依赖,已在专用硬件设计中同时实现了REST Web服务和RBStreX,以实现高性能和低资源利用率。; REST和SOAP Web服务实现的硬件原型首先在Altera上进行了仿真。 Quartus II软件;然后在Spartan 3-E入门套件FPGA平台上进行了比较。通过忽略应用程序的复杂性以及Web服务的发现和描述机制,比较着重于REST和SOAP打包机制的效果。 REST实现与SOAP相比,使用了更少的FPGA逻辑资源(减少了约15%的切片利用率),减少了处理阶段(无需为服务请求提取XML消息),并且执行得更快(减少了12-13%的处理时间)。与SOAP相比,它还利用了更短的服务消息(请求消息减少60%至75%;响应消息减少30%至50%),从而证明了较低的内存需求。同时,在Altera Quartus II软件上模拟了具有向后引用解析能力的RBStreX解析器。它使用的资源(用于1kB XML文档的资源为10B)略高于SAX(几乎不占用内存),但是比VTD-XML(用于1kB XML文档的资源为1.3〜1.5kB)小得多。 RBStreX的缺点是其可变的总解析时间取决于解析操作的模式。总而言之,REST Web服务和RBStreX解析器均已在低资源使用率的嵌入式Web服务应用程序上成功演示。,这对于低成本应用程序很有用。

著录项

  • 作者

    Chee Er, Chang.;

  • 作者单位

    Multimedia University (Malaysia).;

  • 授予单位 Multimedia University (Malaysia).;
  • 学科 Engineering Computer.;Web Studies.
  • 学位 M.Eng.Sc.
  • 年度 2011
  • 页码 82 p.
  • 总页数 82
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号