Download presentation
Presentation is loading. Please wait.
Published byTamsyn Gallagher Modified over 9 years ago
1
XFSP : Cross Format Schema Protocol Flexible Networking via XML-Defined Packet Payloads Ltjg. Ekrem Serin TU Navy
2
THE MOVES INSTITUTE2 XFSP: Cross-Format Schema Protocol Idea Extensible and Flexible Application Layer Protocol Syntax Transactions via XML XML Serialization / Deserialization Depending on Schema Knowledge Target Area Net-VEs Web-based Applications XML-RPC SOAP
3
THE MOVES INSTITUTE3 XFSP Benefits Schemas are tailored No need to hard code protocol syntax, Compact XML, Platform-Independent (JAVA, XML), Hybrid Platform Communication Application – Application Application - Web Run-time Extensible Can be loaded or changed
4
THE MOVES INSTITUTE4 XFSP XML Data Schema Application
5
THE MOVES INSTITUTE5 What is XML? - A Tree - Where it can be traversed in pre-order, in-order and post-order manners. 1 2
6
THE MOVES INSTITUTE6 XML Tree versionexerciseID pduType location x protocol y z header velocity x y z 3.45 56.72 -10.1 1 2 1 1.0 0.0 -0.7
7
THE MOVES INSTITUTE7 Parser APIs - With Java 1.4 SAX API is provided - Start and End of Elements (event based) - Element names are created by the user - No tree representation - JDOM - Tree Representation - Adapters (JAXP, Crimson, Oracle, Xerces, XML4J) - Outputters (Text)
8
THE MOVES INSTITUTE8 Parser APIs - DOM4J - Tree Representation - Adapters - Outputters - Custom-type Object Binding - XPath Addressing
9
THE MOVES INSTITUTE9 Schema - A Protocol - Where it defines the data structure of the XML documents for end-users. - Agreement. - Set of Rules.
10
THE MOVES INSTITUTE10 Schema
11
THE MOVES INSTITUTE11 Algorithm XML Serialization Parse the schema document. Create a look-up table for attributes and elements. Assign unique numbers to the elements and attributes. Walk through the XML tree and put each element and attribute into the output stream by replacing their tag names with numbers. Preserves the content in binary form as compact XML.
12
THE MOVES INSTITUTE12 Schema Parsing NameStart Tag NumberEnd Tag NumberDatatype /protocol1011Null /protocol/header1213ComplexType /protocol/location1415ComplexType /protocol/velocity1617ComplexType /protocol/header/version1819XSDShort /protocol/header/exerciseID2021XSDByte /protocol/header/pduType2223XSDInteger
13
THE MOVES INSTITUTE13 Schema Parsing NameTag NumberDatatype /protocol/location/@x24XSDDouble /protocol/location/@y25XSDDouble /protocol/location/@z26XSDDouble /protocol/velocity/@x27XSDFloat /protocol/velocity/@y28XSDFloat /protocol/velocity/@z29XSDFloat
14
THE MOVES INSTITUTE14 XML Serialization 1 2 10141243.452556.7226-10.1215 12200121180119220 22313161271.0281.029-0.7 21711
15
THE MOVES INSTITUTE15 Compression File JDOMDOM4J XFSP
16
THE MOVES INSTITUTE16 Algorithm XML Deserialization Read tag numbers from the stream. Retrieve element or attribute associated with that number. Read the data. Create the elements, attributes and bind data to them. Rebuild the XML tree. Retrieve data from the tree when needed.
17
THE MOVES INSTITUTE17 Where to Use ? - SOAP (Simple Object Access Protocol) - XML envelope for transactions - Send it compressed <s:Envelope xmlns:s= “http://schemas.xmlsoap.org/soap/envelope/” xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance” xmlns:xsd="http://www.w3.org/1999/XMLSchema”> Ekrem
18
THE MOVES INSTITUTE18 Where to use ? Application Code Web Service Application Client Platform and language specific communication Platform and language agnostic communication
19
THE MOVES INSTITUTE19 Binary X3D - X3D is an XML file format describes a scene graph, - Fairly heavyweight for Network Transmission, - Can be compressed by designed algorithm, - GZip Streams are used for further compression.
20
THE MOVES INSTITUTE20 X3D Compression
21
THE MOVES INSTITUTE21 X3D Compression / Decompression Serializer X3D Schema X3D File B3D GZIP Stream B3Z GZIP Stream X3D Schema B3Z File B3D Deserializer X3D
22
THE MOVES INSTITUTE22 Comparison in Kbytes
23
THE MOVES INSTITUTE23 Comparison in Percentage
24
THE MOVES INSTITUTE24 Rendering B3Z File GZIP Stream X3D Schema B3Z File B3D File Deserializer VRML97 X3D Stylesheet Xj3D Browser Transformer X3D File
25
THE MOVES INSTITUTE25 Rendering B3Z File
26
THE MOVES INSTITUTE26 NPSNET-V NPSNET-V : Run-time Extensible Networked Virtual Environment. XFSP is embedded into the NPSNET-V as a network module. Networking is run-time extensible. Packet formats are defined by using XML-Schema which is tailored to point the application layer protocol. Framework is not targeted to define the semantics between protocol and application.
27
THE MOVES INSTITUTE27 XFSP / ESPDU Packet Format
28
THE MOVES INSTITUTE28 Detonation PDU Packet Format
29
THE MOVES INSTITUTE29 Run-time Extensibility - ESPDU is loaded, no knowledge of Detonation PDU Syntax.
30
THE MOVES INSTITUTE30 Run-time Extensibility - Detonation PDU Protocol is loaded at run-time.
31
THE MOVES INSTITUTE31 XFSP Demo / Questions ?
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.