160 likes | 302 Views
Computer Networks (CS3623). # 20 | Data Transformation. What is this?.
E N D
Computer Networks(CS3623) #20 | Data Transformation
What is this? • 1011010100101000010101011110100100100100010001001101010010010010100101010010101001010100111101011001100011010111010100110001100111111010100101001001000010100101010100100101001010100101001010100110101001010100111101011001100011010111010100110001100111111010100101001001000010100101010100100 ……….
Issues • The two sides agreeing to a message format, often called the presentation format • The efficiency of the encoding (data compression)
Encoding & Decoding Data • Exp: Big / Little Endian
Argument marshalling • converting, packing, and linearizing
Taxonomy • Data types • base, flat, complex • Conversion strategies • canonical intermediate form, receiver-makes-right • Tags • Tagged, untagged • Stub • interpreted., compiled
Tagged: example • A 32-bit integer
Popular network data representations • XDR (External Data Representation) SunRPC • ASN.1 (Abstract Syntax Notation One) ISO • NDR (Network Data Representation) DCE • XML (Extensible Markup Language)
ASN.1 • (tag, length, value)
Classes • Lossless • Run length encoding (RLE) • differential pulse code modulation (DPCM) • Dictionary-Based Methods: Lempel-Ziv & its variants • Lossy • JPEG • MPEG • MP3