The Design and Realization of a Hardware-Based XML Parsing Method

Author
HuangNing
Advisor
HuoHongWei
School
Xi'an University of Electronic Science and Technology
Major
Computer Software and Theory
Classification
TP311.1 Programming
Degree
Master's thesis
Year
2012
Downloads
10
Citations
0

Request the full text

Abstract

XML (Extensible Markup Language) is a simple method that it marks content with markers to transmission information.Due to its extensibility and cross-platform features,XML has been widely used in web server and database system, and it has become a data description and exchange standard. However, relative to the present enterprise server GB data throughput, software-based XML processing methods fail to deliver the required throughput, posing a severe bottleneck to network performance. The need for exploring alternative solutions for parsing XML data has thus assumed prime importance today.Analyzing the theore of the XML parsing and contrasting the four parsing models, this paper proposes a DOM-based XML hardware parsing technique. It includes four main modules:Lexical Analysis module, Well-formed Checking module,DOM Constructor module and Schema Verification module.The input XML characters are marked to identify the element name,the attribute name and text content in the Lexical Analysis.This module uses a FSM to implement. Well-formed checking is mainly to check syntax of the XML document, which including the element name checking and attribute name checking. A stack is used to match the element name characters, and an efficient random storage structure called bloom filter is used to check uniqueness of attribute name, which can rapidly judge whether the current attribute had appeared. DOM constructing module is independent on the Well-formed Checking module and the Schema Verification module, which uses four kinds of node-type to build a DOM tree of the input XML document,including the element name node,the attribute name node, the element content node and the attribute content node. Schema Verification is mainly to match the element and the attribute name with the rules defined in the Schema file. Due to the relatively small volatility of schema files, we first pre-compile the current schema file into a static table which be storaged in a custom local memory to lookup rules..At last, compared with software parsing method,through a large number of experiments, the hardware parsing XML method has a high speedup ratio,.the system throughput can be achieved1.2Gbps. Realizations are tested and simulated.under the FPGA environment.

Table of contents

Summary 3-4 Abstract 4-7 first chapter 7-11 1.1 Background 7-8 Status 1.2 Research 8-9 1.3 The main 9-11 The second chapter of XML and XML Schema 11-23 2.1 Introduction to XML development and the role of 11-19 2.1.1 XML is definitions and examples 11-12 2.1.2 XML is 12-13 <br / > Related Terms nbsp 2.1.3 XML 's ; 13-17 2.1.4 XML applications 17-19 2.2 XML Schema Description 19-22 <br / > 2.2.1 XML Schema definitions and examples 19-21 2.2.2 XML Schema importance and advantages of 21-22 2.3 Summary 22 -23 the third chapter of the analytical model 23-31 3.1 DOM parsing model 23-24 3.2 SAX parsing model 24-26 3.3 StAX analytical model 26-27 3.4 VTD-XML parsing model 27-28 contrast nbsp 3.5 four analytical models ; 28-29 3.6 Summary 29-31 the fourth chapter analyzes based DOM parsing step 31-35 4.1 format good check 31-33 4.2 Schema validation 33-34 4.3 DOM tree construction 34 4.4 Summary 34-35 Chapter V hardware architecture design connections between 35-43 5.1 module 35-36 5.2 Schema pretreatment 36-39 5.2.1 static exemplar item Description structure Description 36-37 5.2.2 static table 37-39 5.3 memory organization 39-40 5.4 final architecture 40-42 5.5 Summary 42-43 sixth chapter details the hardware design and simulation 43-63 6.1 MEMORY_READ module 43-44 6.1.1 module detailed design 43 6.1.2 module interfaces and timing diagrams 43-44 6.2 lexical analysis module 44-47 6.2.1 module detailed design 44-46 6.2.2 module interfaces and timing diagrams 46-47 6.3 format good inspection module 47-49 6.3.1 module detailed design 47-48 6.3.2 module interface and timing diagram 48-49 6.4 elements check the module name 49-51 6.4.1 module detailed design 49-50 6.4.2 module interface and timing diagram 50-51 6.5 attribute names check module 51-53 6.5.1 module detailed design 51-52 6.5.2 module interface and timing diagram 52-53 6.6 Schema validation module 53-54 6.6.1 module detailed design 53 6.6.2 module interfaces and timing diagrams 53-54 <br / > 6.7 element name validation module 54-56 6.7.1 module detailed design 54-55 6.7.2 module interface and timing diagram 55-56 6.8 attribute name validation module 56-57 6.8.1 module detailed design 56 6.8.2 module interfaces and timing diagrams 56-57 6.9 element content validation module 57-58 6.9.1 module detailed design 57-58 6.9.2 module interfaces and timing diagrams 58 6.10 attribute content authentication module 58-60 6.10.1 module detailed design 58-59 6.10.2 module interfaces and timing diagrams 59 - 60 6.11 DOM tree building blocks 60-62 6.11.1 module detailed design 60-61 6.11.2 module interfaces and timing diagrams 61-62 6.12 Summary 62-63 Chapter VII of the performance evaluation 63-67 7.1 test file 63-64 <br / > 7.2 test results 64 7.3 analysis 64-65 7.4 Summary 65-67 Chapter VIII Conclusion 67 -69 8.1 summarizes 67 8.2 Prospects 67-69 Thanks 69-71 References 71 - 75 during school research 75-76

Related dissertations

  1. The Research of Multi-pattern Matching Algorithms Based on Bit-split Method
  2. Research on the Technology of the Web Employment Information Extraction Based on the HTML
    DaiHuiMin ·Hunan University of Technology ·2013 ·Master's thesis
  3. Research and Application of De-duplication Algorithm Based on Double Bloom Filter
    XiZuoWen ·Hunan University ·2013 ·Master's thesis
  4. Multi-Bloom-Filter Query Algorithms and Their Applications
    TianXiaoMei ·Hunan University ·2013 ·Doctoral dissertation
  5. Big Data Encryption Algorithm Based on Data Deduplication Technology
  6. An Efficient Algorithm for the Two-phase Bloom Filter
    LiFan ·Hunan University ·2012 ·Master's thesis
  7. Audio-on-Demand over Wireless Sensor Networks
  8. A Study on Web Information Extraction Algorithm and Agricultural Application
    LiWenPu ·Hunan Agricultural University ·2013 ·Master's thesis
  9. Research and application of technology in the Webpage recommendation in Web text mining
  10. Research on Multi-pattern Matching Algorithms Based on Regular Expressions and Hardware Implementation
  11. Research on Detection and Prevention Methods of SYN Flood Based on Campus Network
    PanJian ·Dalian Maritime University ·2012 ·Master's thesis
  12. Research on Fine-grained Access Control Based on Resource Gateway
  13. Research on Distributed Detection and Tracback Against DDoS Attack
    ZhouZaiHong ·Hunan University ·2011 ·Doctoral dissertation
  14. The Researches and Applications on High Performance Packet Classification Technology
    BiXiaAn ·Hunan University ·2012 ·Doctoral dissertation
  15. Research on Multi-business Indentification Technology Oriented High-speed Network Management and Control
    GuoLei ·PLA Information Engineering University ·2012 ·Doctoral dissertation
  16. Research on Resources Locating Strategy of Peer to Peer Network
    ChengLan ·Huaqiao University ·2012 ·Master's thesis
  17. Research on Virtual Network Embedding Algorithm in Network Virtualization Environment
  18. Research and implementation of bad text filtering system
    LiuLi ·Fudan University ·2011 ·Master's thesis
  19. Study and Implementation of Document Content Extraction and Feature Selection
  20. The Research on the Muti-keywords Search Technology over P2P Network Based on Bloom Filter
    WangMengFan ·Hunan University ·2012 ·Master's thesis