Service data unit


In Open Systems Interconnection terminology, a service data unit is a unit of data that has been passed down from an OSI layer or sublayer to a lower layer. This unit of data has not yet been encapsulated into a protocol data unit by the lower layer. That SDU is then encapsulated into the lower layer's PDU and the process continues until reaching the PHY, physical, or lowest layer of the OSI stack.
The SDU can also be thought of as a set of data that is sent by a user of the services of a given layer, and is transmitted semantically unchanged to a peer service user.
It differs from a PDU in that the PDU specifies the data that will be sent to the peer protocol layer at the receiving end, as opposed to being sent to a lower layer.
The SDU accepted by any given layer ' from layer ' above, is a PDU of the layer ' above. In effect the SDU is the 'payload' of a given PDU. The layer ' may add headers or trailers, or both, to the SDU and may do other kinds of reformatting, recoding, splitting or transformations on the data, forming one or more layer ' PDUs. The added headers or trailers and other possible changes are part of the process that makes it possible to get data from a source to a destination. Layer ' may also generate additional layer ' PDUSs. Each unit of data that layer ' gives to layer ' below is in turn handed down as a layer ' SDU.
When the PDU of layer ', plus any metadata layer ' would add; would exceed the maximum size a layer-n PDU can be ; the SDU must be split into multiple payloads for layer ; a process known as fragmentation.