The OSI Reference Model PDF
The OSI Reference Model PDF
In the OSI reference model, there are seven numbered layers, each of which illustrates a particular
network function. This separation of networking functions is called layering. Dividing the network into
these seven layers provides the following advantages:
Encapsulation
You know that all communications on a network originate at a source, and are sent to a destination, and
that the information that is sent on a network is referred to as data or data packets. If one computer
(host A) wants to send data to another computer (host B), the data must first be packaged by a process
called encapsulation.
Encapsulation wraps data with the necessary protocol information before network transit. Therefore, as
the data packet moves down through the layers of the OSI model, it receives headers, trailers, and other
information. (Note: The word "header" means that address information has been added.)
To see how encapsulation occurs, lets examine the manner in which data travels through the layers as
illustrated in the Figure. Once the data is sent from the source, as depicted in the Figure, it travels
through the application layer down through the other layers. As you can see, the packaging and flow of
the data that is exchanged goes through changes as the networks perform their services for end-users.
As illustrated in the Figures, networks must perform the following five conversion steps in order to
encapsulate data:
Figure:
1. Build the data.
As a user sends an e-mail message, its alphanumeric
characters are converted to data that can travel across
the internetwork.
2. Package the data for end-to-end transport.
The data is packaged for internetwork transport. By using
segments, the transport function ensures that the
message hosts at both ends of the e-mail system can
reliably communicate.
3. Append (add) the network address to the header.
The data is put into a packet or datagram that contains a
network header with source and destination logical addresses. These addresses help network
devices send the packets across the network along a chosen path.
Data packets on a network originate at a source and then travel to a destination. Each layer depends on
the service function of the OSI layer below it. To provide this service, the lower layer uses encapsulation
to put the PDU from the upper layer into its data field; then it
adds whatever headers and trailers the layer needs to
perform its function. Next, as the data moves down through
the layers of the OSI model, additional headers and trailers
are added. After Layers 7, 6, and 5 have added their
information, Layer 4 adds more information. This grouping of
data, the Layer 4 PDU, is called a segment.
The data link layer provides a service to the network layer. It encapsulates the network layer
information in a frame (the Layer 2 PDU); the frame header contains information (e.g. physical
addresses) required to complete the data link functions. The data link layer provides a service to the
network layer by encapsulating the network layer information in a frame.
The physical layer also provides a service to the data link layer. The physical layer encodes the data link
frame into a pattern of 1s and 0s (bits) for transmission on the medium (usually a wire) at Layer 1.
As you read about the TCP/IP model layers, keep in mind the original intent of
the Internet; it will help explain why certain things are as they are. The TCP/IP
model has four layers: the application layer, the transport layer, the Internet
layer, and the network layer. It is important to note that some of the layers in
the TCP/IP model have the same name as layers in the OSI model.
Application Layer
The designers of TCP/IP felt that the higher level protocols should include the session and presentation
layer details. They simply created an application layer that handles high-level protocols, issues of
representation, encoding, and dialog control. The TCP/IP combines all application-related issues into
one layer, and assumes this data is properly packaged for the next layer.
Transport Layer
The transport layer deals with the quality-of-service issues of reliability, flow control, and error
correction. One of its protocols, the transmission control protocol (TCP), provides excellent and flexible
ways to create reliable, well-flowing, low-error network communications. TCP is a connection-oriented
protocol. It dialogues between source and destination while packaging application layer information into
units called segments. Connection-oriented does not mean that a circuit exists between the
communicating computers (that would be circuit switching). It does mean that Layer 4 segments travel
back and forth between two hosts to acknowledge the connection exists logically for some period. This
is known as packet switching.
Network Layer
The name of this layer is very broad and somewhat confusing. It is also called the host-to-network layer.
It is the layer that is concerned with all of the issues that an IP packet requires to actually make a
physical link, and then to make another physical link. It includes the LAN and WAN technology details,
and all the details in the OSI physical and data link layers.
Similarities
both have layers
both have application layers, though they include very different services
both have comparable transport and network layers
packet-switched (not circuit-switched) technology is assumed
networking professionals need to know both
Differences
TCP/IP combines the presentation and session layer issues into its application layer
TCP/IP combines the OSI data link and physical layers into one layer
TCP/IP appears simpler because it has fewer layers
TCP/IP protocols are the standards around which the Internet developed, so the TCP/IP model
gains credibility just because of its protocols. In contrast, no networks are built around specific
OSI-related protocols, even though everyone uses the OSI model to guide their thinking.
Summary
This chapter began by describing how layers are used for general forms of communication. In this
section, you learned that data travels from a source to a destination over media and that a protocol is a
formal description of a set of rules and conventions that govern how devices on networks exchange
information.
The OSI reference model is a descriptive network scheme whose standards ensure greater
compatibility and interoperability between various types of network technologies.
The OSI reference model organizes network functions into seven numbered layers:
o Layer 7 -The application layer
o Layer 6 -The presentation layer
o Layer 5 -The session layer
o Layer 4 -The transport layer
o Layer 3 -The network layer
o Layer 2 -The data link layer
o Layer 1 -The physical layer
Encapsulation is the process in which data is wrapped in a particular protocol header before it is
sent across the network.
During Peer-to-Peer Communications, each layer's protocol exchanges information,
called protocol data units (PDUs), between peer layers.