|
The layers of the OSI model
Virtually all networks in use today are based in some fashion on the
Open Systems Interconnection (OSI) standard. OSI was developed in 1984
by the International Organization for Standardization (ISO), a global
federation of national standards organizations representing
approximately 130 countries.
The CCNA exam might
ask you to provide at least three reasons that the "industry" uses
layered interconnection models. The basic reason for using a layered
networking approach is that a layered model takes a task, such as data
communications, and breaks it into a series of tasks, activities, or
components, each of which is defined and developed independently.
Examples of layered networking models include the seven-layer OSI model
(which you need to know inside and out) and the Department of Defense
(DOD) five-layer model (which you don't). It isn't important
for you to memorize the ISO/OSI Reference Model's layers; but it's
useful to know that they exist, and that each layer cannot work without
the services provided by the layer below it.
Take a few moments to understand the principles at work behind the
reference model, which is used as a standard to ensure different systems
can communicate effectively.
Reasons for a layered model
|
 |
Expect to see a
question on the exam that asks you to identify the reasons a layered
model is used in internetworking. Actually, a myriad of reasons
exist for why a layered model is used, but you should memorize these
possible responses:
|
-
Change: When changes are made
to one layer, the impact on the other layers is minimized. If the
model consists of a single, all-encompassing layer, any change affects
the entire model.
-
Design: A layered model
defines each layer separately. As long as the interconnections between
layers remain constant, protocol designers can specialize in one area
(layer) without worrying about how any new implementations affect
other layers.
-
Learning: The layered approach
reduces a very complex set of topics, activities, and actions into
several smaller, interrelated groupings. This makes learning and
understanding the actions of each layer and the model generally much
easier.
-
Troubleshooting: The
protocols, actions, and data contained in each layer of the model
relate only to the purpose of that layer. This enables troubleshooting
efforts to be pinpointed on the layer that carries out the suspected
cause of the problem.
-
Standards: Probably the most
important reason for using a layered model is that it establishes a
prescribed guideline for interoperability between the various vendors
developing products that perform different data communications tasks.
Remember, though, that layered models, including the OSI model,
provide only a guideline and framework, not a rigid standard that
manufacturers can use when creating their products.
|
 |
Under its official name, the Open
Systems Interconnection Reference Model, or the OSI model, was
developed by the International Organization for Standardization,
which uses the abbreviation of ISO. And, yes, the full acronym of
the OSI is ISO OSI. |
|
|
|
The OSI model is a
layered model that describes how information moves from an
application program running on one networked computer to an
application program running on another networked computer. In
essence, the OSI model prescribes the steps to be used to transfer
data over a transmission medium from one networked device to
another. The OSI model is a seven-layer model developed around five
specific design principles: |
|
|
-
Whenever a discrete level of abstraction is required, a new
layer should be created.
-
Each layer of the model should carry out a well-defined
function.
-
The function of each layer should define internationally
standardized protocols.
-
The boundaries of the layers should be placed to minimize the
flow of information across interfaces.
-
There should be a sufficient number of layers defined to
prevent unnecessary grouping of functions and the number of layers
should also be small enough so that the model remains manageable.
The layers of the OSI model
Moving down through the layers
The OSI model breaks the network communications
process into seven separate layers. From the top, or the layer closest to
the user, down, these layers are:
-
Layer 7, Application: The Application layer provides
services to the software through which the user requests network
services. Your computer application software is not on the Application
layer. This layer isn't about applications and doesn't contain any
applications. In other words, programs such as Microsoft Word or Corel
are not at this layer, but browsers, FTP clients, and mail clients
are.
-
Layer 6, Presentation: This layer is concerned with data
representation and code formatting.
-
Layer 5, Session: The Session layer establishes, maintains, and
manages the communication session between computers.
-
Layer 4, Transport: The functions defined in this layer provide
for the reliable transmission of data segments, as well as the disassembly
and assembly of the data before and after transmission.
-
Layer 3, Network: This is the layer on which routing takes
place, and, as a result, is perhaps the most important OSI layer to
study for the CCNA test. The Network layer defines the processes used
to route data across the network and the structure and use of logical
addressing.
-
Layer 2, Data Link: As its name suggests, this layer is
concerned with the linkages and mechanisms used to move data about the
network, including the topology, such as Ethernet or Token Ring, and deals
with the ways in which data is reliably transmitted.
-
Layer 1, Physical: The Physical layer's name says it all. This
layer defines the electrical and physical specifications for the
networking media that carry the data bits across a network.
|
Other interesting OSI layer stuff
|
 |
Layers 5 through 7 are generally referred to as the
upper layers. Conversely, Layers 1 through 4 are collectively called
the lower layers. Seems obvious, but you'll see these references
on the test. |
You need to know the seven layers in sequence,
either top-to-bottom or bottom-to-top. Here are some mnemonic phrases to
help you remember the layers of the OSI model:
-
"Please Do Not Throw Salami Pizza Away" — this works for
bottom-to-top. If you don't like salami pizza, then how about seafood or
spinach pizza instead?
-
"All People Seem To Need Data Processing" — a top-to-bottom
reminder.
-
"APS Transports Network Data Physically" — APS refers to
Application, Presentation, and Session. This one separates the upper and
lower layer groups.
-
"Please Do Not Tell Secret Passwords Anytime" — Shh! Another
bottom-to-top phrase.
Packaging the data
Each layer of the OSI model formats the data it
receives to suit the functions to be performed on that layer. In general,
the package of data that moves through the layers is called a Protocol Data
Unit (PDU). However, as the data is reformatted and repackaged, it takes on
unique names on certain layers.
Imagine an
e-mail message is being sent between two systems. This message is created
using an e-mail client, and when it’s sent, Application layer actions
execute. The e-mail message passes down the layers until it arrives at the
system network adapter or modem and is shot out onto a wire (or through a
wireless network). The step in which a message reaches a physical
connection, and the manner in which it is transmitted, maps to the OSI
model’s Physical layer.
When the e-mail message is received, it enters at the opposite end of the
OSI model. Instead of speeding directly to the other system’s Application
layer, it must first pass through the Physical and other layers while on the
way to the Application layer, where ultimately the e-mail message will be
passed off to a software program such as Microsoft Outlook.
Here’s
another way to visualize it. The e-mail program generates data packets that
pick up an additional layer of information each time an OSI layer is passed.
When the data packet is created in the Application layer, data specific to
that application is inserted in the data packet. When the data packet hits
the Presentation layer, redirection information is added, and the data
packet may even be restructured. The process continues for the data packet
as it passes down through each layer of the OSI model.
But what happens when the data packet travels across a wire to another
system? The second system’s Physical layer receives the packet. The second
machine’s Data-link layer strips off and interprets the Data-link layer
information the first system added, and so on, until the Application layer
receives the packet with the application data.
|
 |
Absolutely memorize the information in Table 1 to the
point that you can recite the data unit name associated with each of the
OSI model's layers. |
Table 1: PDU Names on the Layers of the OSI Model
|
OSI Layer |
PDU Name |
|
Application |
Data |
|
Presentation |
Data |
|
Session |
Data |
|
Transport |
Segment |
|
Network |
Packet |
|
Data Link |
Frame |
|
Physical |
Bits |
| |
|
Continued Click Here
|
|