encapsulation(redirected from Compartmentalization (computer science))
Also found in: Dictionary, Thesaurus, Medical.
The technique used by layered protocols in which a layer adds header information to the protocol data unit (PDU) from the layer above. As an example, in Internet terminology, a packet would contain a header from the physical layer, followed by a header from the network layer (IP), followed by a header from the transport layer (TCP), followed by the application protocol data.
The ability to provide users with a well-defined interface to a set of functions in a way which hides their internal workings. In object-oriented programming, the technique of keeping together data structures and the methods (procedures) which act on them.
The treatment of asbestos-containing material with a liquid that covers the surface with a protective coating or embeds the fibers in an adhesive matrix to prevent their release into the air.
encapsulation(1) In object technology, the creation of self-contained modules that contain both the data and the processing. See object-oriented programming.
(2) The transmission of one network protocol within another. As data moves down the protocol stack from the application layer to the data link layer, each protocol encapsulates the higher level by adding its own header to the block of data passed to it. See tunneling protocol and wrapper.
|In this TCP/IP example, the transport layer encapsulates the data by attaching a TCP or UDP header to the packets. The network layer encapsulates the TCP packet by adding its header and so on.|