Week 1 - OSI Reference Model & Protocol Stack
Week 1 - OSI Reference Model & Protocol Stack
The Open Systems Interconnection reference model is a layered, abstract representation created as a guideline
for network protocol design. The OSI model divides the networking process into seven logical layers, each of
which has unique functionality and to which are assigned specific services and protocols.
In this model, information is passed from one layer to the next, starting at the Application layer on the
transmitting host, and proceeding down the hierarchy to the Physical layer, then passing over the
communications channel to the destination host, where the information proceeds back up the hierarchy, ending at
the Application layer. The figure depicts the steps in this process.
The Application layer, Layer seven, is the top layer of both the OSI and TCP/IP models. It is the layer that
provides the interface between the applications we use to communicate and the underlying network over which
our messages are transmitted. Application layer protocols are used to exchange data between programs running
on the source and destination hosts. There are many Application layer protocols and new protocols are always
being developed.
Initially the OSI model was designed by the International Organization for Standardization (ISO) to provide a
framework on which to build a suite of open systems protocols. The vision was that this set of protocols would
be used to develop an international network that would not be dependent on proprietary systems.
As a reference model, the OSI model provides an extensive list of functions and services that can occur at each
layer. It also describes the interaction of each layer with the layers directly above and below it.
1. PHYSICAL LAYER
The OSI Physical layer provides the means to transport across the network media the bits that make up a Data
Link layer frame. This layer accepts a complete frame from the Data Link layer and encodes it as a series of
signals that are transmitted onto the local media. The encoded bits that comprise a frame are received by either
an end device or an intermediate device.
The delivery of frames across the local media requires the following Physical layer elements:
- The physical media and associated connectors
- A representation of bits on the media
- Encoding of data and control information
- Transmitter and receiver circuitry on the network devices
The data link layer is divided into two sublayers: The Media Access Control (MAC) layer and the Logical
Link Control (LLC) layer. The MAC sublayer controls how a computer on the network gains access to the
data and permission to transmit it. The LLC layer controls frame synchronization, flow control and error
checking.
Protocols in Layer 2
Actual Layer 2 protocol used depends on the logical topology of the network and the implementation of the
Physical layer. Given the wide range of physical media used across the range of topologies in networking, there
are a correspondingly high number of Layer 2 protocols in use and they include:-
- Ethernet
- Point-to-Point Protocol (PPP)
- High-Level Data Link Control (HDLC)
- Frame Relay
- Asynchronous Transfer Mode (ATM)
Each protocol performs media access control for specified Layer 2 logical topologies. This means that a number
of different network devices can act as nodes that operate at the Data Link layer when implementing these
- Addressing
First, the Network layer must provide a mechanism for addressing these end devices. If individual pieces of data
are to be directed to an end device, that device must have a unique address. In an IPv4 network, when this
address is added to a device, the device is then referred to as a host.
- Routing
Next, the Network layer must provide services to direct these packets to their destination host. The source and
destination hosts are not always connected to the same network. In fact, the packet might have to travel through
many different networks. Along the way, each packet must be guided through the network to reach its final
destination and these networks are connected by routers. The role of the router is to select paths for and direct
packets toward their destination. This process is known as routing.
- Decapsulation
Finally, the packet arrives at the destination host and is processed at Layer 3. The host examines the destination
address to verify that the packet was addressed to this device. If the address is correct, the packet is decapsulated
by the Network layer and the Layer 4 PDU contained in the packet is passed up to the appropriate service at
Transport layer.
- Segmenting Data
As each application creates a stream data to be sent to a remote application, this data must be prepared to be sent
across the media in manageable pieces. The Transport layer protocols describe services that segment this data
- Reassembling Segments
At the receiving host, each piece of data may be directed to the appropriate application. Additionally, these
individual pieces of data must also be reconstructed into a complete data stream that is useful to the Application
layer. The protocols at the Transport layer describe the how the Transport layer header information is used to
reassemble the data pieces into streams to be passed to the Application layer.
When you create a connection, you authenticate the user account at the sending and receiving computers.
Connection creation also involves determining the type of communication that will take place and the protocols
that will be used by the lower layers. Data transfer and dialogue control are used to determine which computer
is making requests and which computer is making responses. This also determines whether acknowledgments are
required for data transmission.
A session is a series of related connection-oriented transmissions between network nodes. Another way to look
at it is that a session is the interrelated communications between two or more presentation entities, which
emphasizes that the Session layer provides services to the Presentation layer.
The three basic transmission modes are:
- Simplex Communications: only allows data to flow in one direction.
- Half-duplex Communications: Two way data flow, only one way at a time.
- Full-duplex Communications: Two way data flow simultaneously.
7. APPLICATION LAYER
The Application layer is responsible for directly accessing the underlying processes that manage and deliver
communication to the human network. This layer serves as the source and destination of communications across
data networks.
Within the Application layer, protocols specify what messages are exchanged between the source and destination
hosts, the syntax of the control commands, the type and format of the data being transmitted, and the appropriate
methods for error notification and recovery.
Delivery of data over the network can be requested from a server by a client, or between devices that operate in a
peer-to-peer arrangement, where the client/server relationship is established according to which device is the
source and destination at that time. Messages are exchanged between the Application layer services at each end
device in accordance with the protocol specifications to establish and use these relationships.