The data translator, responsible for formatting, encrypting, and compressing payloads.
PDU: Data / Syntax
Focus: Data Formats & Security
Hardware: CPU / Crypto Accelerators
Core Purpose & Function
Different operating systems represent data differently (e.g., EBCDIC vs ASCII text, or little-endian vs big-endian integers). The Presentation Layer resolves these syntax discrepancies, ensuring that the destination system can correctly interpret the data payload, regardless of its local architecture.
Key Responsibilities
Data Translation: Serializing in-memory programming objects into common serialization formats (like JSON, XML, or binary Protocol Buffers) and decoding them at the receiver.
Encryption & Decryption: Securing data for transit by applying cryptographic protocols (like SSL/TLS) to encrypt sensitive application payloads.
Data Compression: Compressing data to minimize the total number of bytes sent over the network, maximizing bandwidth efficiency.
Common Standards & Protocols
| Standard / Protocol | Purpose | Description |
|---|---|---|
| SSL / TLS | Security & Encryption | Encrypts HTTP connections into HTTPS, protecting headers and payloads. |
| JSON / XML / YAML | Serialization Syntax | Converts software structures into readable text files. |
| Protobuf / FlatBuffers | Binary Serialization | Converts data structures into compact binary format for gRPC/speed. |
| ASCII / Unicode (UTF-8) | Character Encoding | Maps raw bytes to text characters uniformly. |
| GZIP / Brotli / LZ4 | Data Compression | Reduces text and image payload sizes before packet transmission. |