Beruflich Dokumente
Kultur Dokumente
According to the ISO standards, networks have been divided into 7 layers depending on the complexity
of the functionality each of these layers provide. The detailed description of each of these layers is given
in the notes below. We will first list the layers as defined by the standard in the increasing order of
function complexity:
1. Physical Layer
3. Network Layer
4. Transport Layer
5. Session Layer
6. Presentation Layer
7. Application Layer
Physical Layer
This layer is the lowest layer in the OSI model. It helps in the transmission of data between two
machines that are communicating through a physical medium, which can be optical fibers, copper wire
or wireless etc. The following are the main functions of the physical layer:
1. Hardware Specification: The details of the physical cables, network interface cards, wireless
radios, etc are a part of this layer.
2. Encoding and Signaling: How are the bits encoded in the medium is also decided by this layer.
For example, on the copper wire medium, we can use different voltage levels for a certain time
interval to represent '0' and '1'. We may use +5mV for 1nsec to represent '1' and -5mV for 1nsec
to represent '0'. All the issues of modulation is dealt with in this layer.
3. Data Transmission and Reception: The transfer of each bit of data is the responsibility of this
layer. This layer assures the transmission of each bit with a high probability. The transmission of
the bits is not completely reliable as their is no error correction in this layer.
4. Topology and Network Design: The network design is the integral part of the physical layer.
Which part of the network is the router going to be placed, where the switches will be used,
where we will put the hubs, how many machines each switch is going to handle, what server is
going to be placed where, and many such concerns are to be taken care of by the physical layer.
The various kinds of topologies that we decide to use may be ring, bus, star or a hybrid of these
topologies depending on our requirements.
This layer provides reliable transmission of a packet by using the services of the physical layer which
transmits bits over the medium in an unreliable fashion. This layer is concerned with :
1. Framing : Breaking input data into frames (typically a few hundred bytes) and caring about the
frame boundaries and the size of each frame.
2. Acknowledgment : Sent by the receiving end to inform the source that the frame was received
without any error.
4. Error Detection : The frames may be damaged, lost or duplicated leading to errors. The error
control is on link to link basis.
6. Flow Control : Necessary for a fast transmitter to keep pace with a slow receiver.
Network Layer
Static : Routes are based on static tables that are "wired into" the network and are rarely changed.
Dynamic : All packets of one application can follow different routes depending upon the
topology of the network, the shortest path and the current network load.
Semi-Dynamic : A route is chosen at the start of each conversation and then all the packets of the
application follow the same route.
Routing
The services provided by the network can be of two types :
Connection oriented service: Here, first a connection is established and then all packets of the
application follow the same route. To understand the above concept, we can also draw an
analogy from the real life. Connection oriented service is modeled after the telephone system. All
voice packets go on the same path after the connection is established till the connection is hung
up. It acts like a tube ; the sender pushes the objects in at one end and the receiver takes them out
in the same order at the other end.
Congestion Control: A router can be connected to 4-5 networks. If all the networks send packet at the
same time with maximum rate then the router may not be able to handle all the packets and may drop
some/all packets. In this context the dropping of the packets should be minimized and the source whose
packet was dropped should be informed. The control of such congestion is also a function of the network
layer. Other issues related with this layer are transmitting time, delays, jittering.
Internetworking: Internetworks are multiple networks that are connected in such a way that they act as
one large network. Internetworks are connected by networking hardware such as routers, switches, and
bridges.
Network Layer does not guarantee that the packet will reach its intended destination. There are no
reliability guarantees.
Transport Layer
Multiplexing / De-multiplexing : Normally the transport layer will create distinct network
connection for each transport connection required by the session layer. The transport layer may
either create multiple network connections (to improve throughput) or it may multiplex several
transport connections onto the same network connection (because creating and maintaining
networks may be expensive). In the latter case, de-multiplexing will be required at the receiving
end. A point to note here is that communication is always carried out between two processes and
not between two machines. This is also known as process-to-process communication.
Fragmentation and Re-assembly: The data accepted by the transport layer from the session
layer is split up into smaller units (fragmentation) if needed, and then passed to the network
layer. Correspondingly, the data provided by the network layer to the transport layer on the
receiving side is re-assembled.
Types of service : The transport layer also decides the type of service that should be provided to
the session layer. The service may be perfectly reliable, or may be reliable within certain
tolerances or may not be reliable at all. The message may or may not be received in the order in
which it was sent. The decision regarding the type of service to be provided is taken at the time
when the connection is established.
Error Control : If reliable service is provided then error detection and error recovery operations
are also performed. It provides error control mechanism on end to end basis.
Flow Control : A fast host cannot keep pace with a slow one. Hence, this is a mechanism to
regulate the flow of information.
Connection Establishment / Release : The transport layer also establishes and releases the
connection across the network. This requires some sort of naming mechanism so that a process
on one machine can indicate with whom it wants to communicate.
Session Layer
Session layer deals with connections. It establishes, manages, and terminates sessions between two
communicating nodes. This layer provides its services to the presentation layer. Session layer also
synchronizes dialogue between the presentation layers of the two hosts and manages their data
exchange. For example, web servers may have many users communicating with server at a given time.
Therefore, keeping track of which user communicates on which path is important and session layer
handle this responsibility accurately.
Presentation layer
Presentation layer prepares the data. It takes data from application layer and marks it with formatting
code such as .doc, .jpg, .txt, .avi etc. These file extensions make it easy to realize that particular file is
formatted with particular type of application. With formatting presentation layer also deals with
compression and encapsulation. It compresses (on sending computer) and decompresses (on receiving
computer) the data file. This layer can also encapsulate the data, but its uncommon as this can be done
by lower layers more effectively.
Application Layer
Application layer provides platform to send and receive data over the network. All applications and
utilities that communicate with network fall in this layer. For examples
SNMP (Simple Network Management Protocol) Used to control the connected networking devices.
TFTP (Trivial File Transfer Protocol) Used to transfer the files rapidly.
DNS (Domain Naming System) Used to translate the name with IP address and vice versa.
DHCP (Dynamic Host Configuration Protocol) Used to assign IP address and DNS information
automatically to hosts.
OSI Layers model has seven layers; Application, Presentation, Session, Transport, Network, data link
and physical.
Application Layer
Application layer provides platform to send and receive data over the network. All applications and
utilities that communicate with network fall in this layer. For examples
SNMP (Simple Network Management Protocol) Used to control the connected networking devices.
TFTP (Trivial File Transfer Protocol) Used to transfer the files rapidly.
DNS (Domain Naming System) Used to translate the name with IP address and vice versa.
DHCP (Dynamic Host Configuration Protocol) Used to assign IP address and DNS information
automatically to hosts.
Telnet used to connect remote devices.
Presentation layer
Presentation layer prepares the data. It takes data from application layer and marks it with formatting
code such as .doc, .jpg, .txt, .avi etc. These file extensions make it easy to realize that particular file is
formatted with particular type of application. With formatting presentation layer also deals with
compression and encapsulation. It compresses (on sending computer) and decompresses (on receiving
computer) the data file. This layer can also encapsulate the data, but its uncommon as this can be done
by lower layers more effectively.
Session Layer
Session layer deals with connections. It establishes, manages, and terminates sessions between two
communicating nodes. This layer provides its services to the presentation layer. Session layer also
synchronizes dialogue between the presentation layers of the two hosts and manages their data
exchange. For example, web servers may have many users communicating with server at a given time.
Therefore, keeping track of which user communicates on which path is important and session layer
handle this responsibility accurately.
Transport Layer
So far CCNA exam is concern; this is the most important layer to study. I suggest you to pay extra
attentions on this layer, as it is heavily tested in exam.
1. Segmentation
2. Connection management
4. Flow control
5. Connection multiplexing
Segmentation
Segmentation is the process of breaking large data file into smaller files that can be accommodated by
network. To understand this process thinks about a 700 MB movie that you want to download from
internet. You have 2MBPS internet connection. How will you download a 700MB movie on 2MBPS
internet connection?
In this case segmentation process is used. On server transport layer breaks 700MB movie in smaller size
of segments (less than your internet connection speed). Assume that 700Mb movie is divided in 700
segments. Each segment has file size of 1Mb that your PC can easily download at current connection
speed. Now your PC will download 700 small files instead of one large file. So next time when you see
download progress bar in browser, think it about segment receiver progress bar. Once your browser
receives all segments from server, it will pop up a message indicating download is completed. Transport
layer at your PC will merge all segments back in a single 700Mb movie file. End user will never know
how a 700Mb movie makes its way through the 2Mbps connection line.
Connection management
Transport layer setup, maintain and tear down connections for session layer. Actual mechanic of
connection is controlled by transport layer. Transport layer use two protocols for connection
management UDP and TCP.
UDP
UDP is a connection less protocol. Connection-less transmission is said to be unreliable. Now, don't get
worried about the term "unreliable" this doesn't mean that the data isn't going to get its destination; its
only means that it isn't guaranteed to get its destination. Think of your options when you are sending a
postcard, put it in the mailbox, and chances are good that it will get where it's supposed to go but there is
no guarantee. There is always a chance of missing in the way. On the other hand, it's cheap.
TCP
TCP is a connection oriented protocol. Connection-oriented transmission is said to be reliable. Think
TCP as registry AD facility available in Indian post office. For this level of service, you have to buy
extra ticket and put a bunch of extra labels on it to track where it is going and where it has been. You get
a receipt when it is delivered. In this method you have a guaranteed delivery. All of this costs you more
but it is reliable!
Reliability
Reliability means guaranteed data delivery. To insure delivery of each single segment, connection
oriented method is used. In this approach before sending any segments three way handshake process is
done.
2. P2 replies with ACK/SYN signal where ACK is the acknowledgment of PC1s SYN
signal and SYN indicates that PC2 is ready to establish a reliable session.
3. PC1 replies with ACK signal indicating that is has received SYN signal and session is
now fully established.
Once connection is established data transmission will be initiated. To provide maximum reliability it
includes following functions:-
Flow control
First, the receiver may respond to the sender with a not ready signal only when its
buffer fills up. While this message is on its way to the sender, the sender is still
sending segments to the receiver, which the receiver will have to drop because its
buffer space is full.
The second problem with the uses of this method is that once the receiver is ready
to receive more segments, it must first send a ready signal to the sender, which
must be received before sender can send more segments.
Windowing
In windowing a window size is defined between sender and receiver. Sender host will wait for an
acknowledgement signal after sending the segments equal to the window size. If any packet lost in the
way, receiver will respond with acknowledgement for lost packet. Sender will send lost packet again.
Window size is automatically set during the three step handshake process. It can be adjust anytime
throughout the lifetime of connection.
SMTP 25 TFTP 69
POP 110
NNTP 119
HTTPS 443
Network Layer
Network layer is responsible for providing logical address known as IP address. Router works on this
layer. Main functions of this layer are following:-
Define IP address
Connect different data link type together like as Token Ring, Serial, FDDI, Ethernet
etc.
IP address
IP address a 32 bit long software address which made from two components:
Subnet mask is used to distinguish between network component and host component.
127 is a reserved address and it is used for testing, like a loop back on an interface:
IP packet
Network layer receive segment from transport layer and wrap it with IP header that is known as
datagram.
Datagram
Datagram is just another name of packet. Network layer use datagram to transfer information between
nodes.
Two types of packets are used at the Network layer: data and route updates.
Data packets
Data packets are used to transport the user data across the network. Protocols used by data packets are
known as routed protocol. For example IP and IPv6
Defining how the network layer protocol is encapsulated in the data link layer frame
The first six hexadecimal digits of a MAC address represent its manufacture company.
You can have the same MAC address in different broadcast domains.
Frame
Data link layer receive packet from network layer and wrap it with layer two Header that is known as
frame. There are two specifications of Ethernet frame.
1. Ethernet II
2. 802
Ethernet II does not have any sub layers, while IEEE 802.2/3 has two: LLC and MAC.
With a SNAP frame, the SAP fields are set to 0xAA and the type field is used to
indicate the layer-3 protocol.
802.2 SAP frame is eight bits in length and only the first six bits are used for
identifying upper-layer protocols, which allows up to 64 protocols.
Physical Layer
Physical layer deals with communication media. This layer receive frame from data link layer and
convert them in bits. It loads these bits on actual communication media. Depending on media type these
bit values are converted in single. Some use audio tones, while others utilize state transitionschanges
in voltage from high to low and low to high.
PDU include data file and a consistent body of information attached onto data at each successive layer.
This information is called header and footer. It includes instructions on how to restore the file to its
original state when it receives to the target system.
As a PDU passes through the layers, a header (and footer only on data link layer) is added to the packet
with information to the peer layer on the destination system for reconstructing the data on its way back
up through the layers of the destination network.
In data exchange process, participating computers work in reverse mode. Layers on receiving computer
perform the same task in reverse mode.
The receiving device takes delivery of, handles, and translates the data from the sending device at a
particular layer. For example on sending computer presentation layer compress the data, same
presentation layer on receiving computer decompress the data.
On sending computer
Presentation layer format the data as per network requirement and forward it's to
session layer.
Session layer initiate the connection and forward the data to the transport layer.
Transport layer broke down the large data file in smaller segments and add a header
with control information, which are bits designated to describe how to determine
whether the data is complete, uncorrupted, in the correct sequence, and so forth.
Segments are forwarded to the network layer. Network layer add its header, with
logical address and convert it in packet. Network layer forwards packet to data link
layer.
Data link layer attach its header and footer to the packet and convert it in frame.
Frames are forwarded to the physical layers that convert them in signals. These
signals are loaded in media.
On receiving computer
Physical layer receive signals from media and convert them in frames. Frames are
forwarded to the data link layer.
Data link layer check the frame. All tampered frame are dropped here. If frame is
correct, data link layer strip down its header and footer from frame and hand over
packet to network layer.
Network layer check the packet with its own implementations. If it's found
everything fine with packet, it strips down its header from packet and hand over
segment to transport layer.
Transport layer again do the same job. It verifies the segments with its own protocol
rules. Only the verified segments are processed. Transport layer remove its header
from verified segments and reassemble the segments in data. Data is handed over
the session layer.
Session layer keep track of open connection and forwarded the receiving data to
presentation layer.
Presentation form the data in such a way that application layer use it.
Application layer on receiving computer find the appropriate application from the
computer and open data within particular application.
In nutshell
At the sending device, each layer breaks the data down into smaller packets and adds its own header.
At the receiving device, each layer strips off the header and builds the data packets into larger packets.
Each protocol layer is blind to the headers of any other protocol layer and cannot process them.
TCP/IP protocol model is another popular layer model that describes network standards. For CCNA
exam you should be aware about this model as well. This model has same names of layers as OSI
reference model has. Don't be confuse with same name, layers at both model have different functionality
in each model.
Let's see how TCP/IP model is different from OSI reference model
Application layer:
TCP/IP model combine the functionality of application layer, presentation layer and session layer from
OSI model in single application layer. In TCP/IP model application layer do all tasks those are
performed by upper layers in OSI model. Application layer deals with high level protocols, including
data presentation, compression and dialog control.
Transport layer:
In TCP/IP model transport layer provides quality of services. TCP protocol is used for reliable data
delivery. Flow control and error correction methods are used for guaranteed data delivery.
Internet layer:
In TCP/IP model Internet layer provide all the functionality that network layer provides in OSI model.
Internet layer is responsible for finding the correct path for datagram [packet].
Name of this layer may confuse you as OSI model has a layer of same name. In TCP/IP model network
access layer deals with LAN and WAN protocols and all the functionality provided by physical and data
link layer in OSI model.
Cisco's three layer hierarchical model is a set of networking specification provided by Cisco. This model
describe which cisco device works on which layers.
Core Layer
Distribution Layer
Distribution layer stands between access and core layers. Router and layer 3 switch works in this layer.
Access Layer
This layer provides user's initial access to the network via switches or hubs.
Thats all for this article. In next article I will explain another CCNA topic.
Technical update
Language update
Please download editable version of this article in DOCX format and send updated version back to
computernetworkingnotes@gmail.com
Online Tutorial and Step by Step Guide for CCNA, CCNAX, ICND1 and ICND2 Exams
100 + Sample resume objectives for computer hardware and networking job
Basic Networking Commands Tracert Ping ARP Netstat Nbtstat NetBIOS Ipconfig
Privacy Policy
Contact Us
Write for us
Advertise with us