Encapsulation: "wrapping" data in information (or context):
+-------------------------------+
| WWW Page Contents |
+-------------------------------+
V V
+--------------------------------------+
| HTTP | |
|Header| |
Application +--------------------------------------+
---------------------- V ------------------------------------ V
Network/OS +---------------------------------------------+
| TCP | |
|Header| |
+---------------------------------------------+
V V
+----------------------------------------------------+
| IP | |
|Header| |
+----------------------------------------------------+
V V
+-------------------------------------------------------------+--------+
|Ethernet| IP | TCP | HTTP | WWW Page Contents |Ethernet|
|Header |Header|Header|Header| | Trailer|
+-------------------------------------------------------------+--------+
Protocol: a formula for passing messages, specifying the
details of message formats, and describing how to handle error
conditions. Protocols exist at various levels: