What Is a Data Segment?

Data segment (data segment) usually refers to a memory area used to store initialized global variables in the program. The data segment is a static memory allocation.

Data segment (data segment) usually refers to a memory area used to store initialized global variables in the program. The data segment is a static memory allocation.
Chinese name
Data segment
Foreign name
data segment
Scope of application
Memory management
OSI
Data segment PDU

Data Segment Introduction

In an architecture that uses segmented memory management, data segments and code segments are determined before the program runs.

OSI Data segment OSI

Data segment A PDU of the transport layer.
Each layer of the OSI model encapsulates data to form a PDU (Protocol Data Unit, Protocol Data Unit). The PDU contains control information added to the data at each layer of the model. This control information is usually added in the header before the data field, but may also be added in the trailer. Each layer of the OSI model encapsulates data to form a PDU. The name of the PDU varies with the information provided by the header. These PDU information are read only at the peer layer of the receiving device, then stripped, and the data is passed to the next layer.
The figure above shows the PDUs at each layer and the control information added at each layer. The figure illustrates how the upper-level user data is converted for transmission over the network. The data is then passed to the transport layer, and the transport layer establishes a virtual circuit to the receiving device by sending a synchronization packet. Next, the data stream is divided into small blocks, and a transport layer header is created and placed in the header in front of the data field. The data block at this time is called a data segment (a type of PDU). We can sort each data segment so that the data stream is reassembled in the sending order at the receiving end.

IN OTHER LANGUAGES

Was this article helpful? Thanks for the feedback Thanks for the feedback

How can we help? How can we help?