Lecture Practice
Lecture Practice
The user
support layers
The network
support layers
Layered Architecture
• As the message travels from
A to B, it may pass through
many intermediate nodes.
These intermediate nodes
usually involve only the first
three layers of the OSI
model.
• Each layer defines a family
of functions distinct from
those of the other layers.
• Within a single machine,
each layer calls upon the
services of the layer just
below it. Layer 3, for
example, uses the services
Between machines, layer x on one provided by layer 2 and
machine logically communicates provides services for layer 4.
with layer x on another machine.
Layered Architecture
• Interfaces between Layers: Each interface
defines what information and services a layer
must provide for the layer above it.
❑Physical addressing.
▫ If frames are to be distributed to different systems on the
network, the data link layer adds a header to the frame to define
the sender and/or receiver of the frame. If the frame is
intended for a system outside the sender’s network, the
receiver address is the address of the connecting device
that connects the network to the next one.
Data Link Layer (2)
❑Flow control.
o If the rate at which the data is absorbed by the receiver
is less than the rate produced at the sender, the data
link layer imposes a flow control mechanism to prevent
overwhelming the receiver.
❑Error control.
o The data link layer adds reliability to the physical layer by
adding mechanisms to detect and retransmit damaged or lost
frames. It also uses a mechanism to recognize duplicate
frames. Error control is normally achieved through a trailer
added to the end of the frame.
❑Access control.
o When two or more devices are connected to the same link,
data link layer protocols are necessary to determine which
device has control over the link at any given time.
Network Layer (3)
• The network layer is responsible for the source-to-
destination delivery of a packet, possibly across
multiple networks (links).
• Whereas the data link layer oversees the delivery of
the packet between two systems on the same network
(link), the network layer ensures that each packet gets
from its point of origin to its final destination.
• If two systems are connected to the same link, there is
usually no need for a network layer. However, if the
two systems are attached to different networks
(links) with connecting devices between the networks
(links), there is often a need for the network layer
to accomplish source-to-destination delivery.
Network Layer (3)
❑ Logical addressing.
o The physical addressing implemented by the data
link layer handles the addressing problem
locally. If a packet passes the network boundary, we
need another addressing system to help distinguish
the source and destination systems. The network layer
adds a header to the packet coming from the upper layer
that, among other things, includes the logical addresses
of the sender and receiver.
❑ Routing.
o When independent networks or links are connected
together to create internetworks (network of networks)
or a large network, the connecting devices (called
routers or switches) route or switch the packets to
their final destination. One of the functions of the
network layer is to provide this mechanism.
Transport Layer(4)
• The transport layer is responsible for process-to-
process delivery of the entire message. A process
is an application program running on the
host.
• The transport layer, ensures that the whole
message arrives intact and in order.
❑ Service-point addressing.
o The transport layer header must add a type of address
called a service-point address (or port address). The
network layer gets each packet to the correct
computer; the transport layer gets the entire message
to the correct process on that computer.
Transport Layer(4)
❑ Segmentation and reassembly.
o A message is divided into transmittable segments, with each
segment containing a sequence number. These numbers
enable the transport layer to reassemble the message
correctly upon arriving at the destination and to identify and
replace packets that were lost in transmission.
❑ Connection control.
o The transport layer can be either connectionless or connection-
oriented.
❑ Flow control.
o Like the data link layer, the transport layer is responsible for
flow control. However, flow control at this layer is performed
end to end rather than across a single link.
❑ Error control.
o Like the data link layer, the transport layer is responsible for
error control. However, error control at this layer is performed
process-to-process rather than across a single link. Error
correction is usually achieved through retransmission.
Session Layer(5)
• The session layer is the network dialog controller. It
establishes, maintains, and synchronizes the interaction
between communicating systems.
❑ Dialog control.
• The session layer allows two systems to enter into a dialog. It
allows the communication between two processes to take place
in either half-duplex or full-duplex mode.
❑ Synchronization.
• The session layer allows a process to add checkpoints
(synchronization points) into a stream of data. For example, if a
system is sending a file of 2,000 pages, it is advisable to insert
checkpoints after every 100 pages to ensure that each 100-
page unit is received and acknowledged independently. In this
case, if a crash happens during the transmission of page 523, the
only pages that need to be resent after system recovery are pages
501 to 523. Pages previous to 501 need not be resent.
Presentation Layer (6)
• The presentation layer is concerned with the syntax and
semantics of the information exchanged between two
systems.
❑ Translation.
o The presentation layer is responsible for interoperability
between these different encoding methods.
o The presentation layer at the sender changes the
information from its sender-dependent format into a
common format. The presentation layer at the receiving
machine changes the common format into its receiver-
dependent format.
❑ Encryption.
❑ Compression.
Application Layer (7)
• The application layer enables the user, whether
human or software, to access the network.
• It provides user interfaces and support for
services such as electronic mail, remote file
access and transfer, shared database
management, and other types of
distributed information services.
Summary of OSI Layers
TCP/IP PROTOCOL SUITE
• The first layered protocol model for internetwork
communications was created in the early 1970s and is
referred to as the Internet model. It defines four
categories of functions that must occur for
communications to be successful. The architecture of the
TCP/IP protocol suite follows the structure of this model.
Because of this, the Internet model is commonly referred
to as the TCP/IP model.
• The TCP/IP protocol suite was developed prior to the OSI
model. Therefore, the layers in the TCP/IP protocol suite
do not match exactly with those in the OSI model. The
original TCP/IP protocol suite was defined as four
software layers built upon the hardware.
TCP/IP PROTOCOL SUITE
TCP/IP PROTOCOL SUITE
TCP/IP PROTOCOL SUITE
TCP/IP PROTOCOL SUITE
• Today, TCP/IP is thought of as a five-layer model
with the layers named similarly to the ones in the
OSI model.
Comparison between OSI and TCP/IP
Protocol Suite • Here, two layers, session
and presentation, are
missing from the TCP/IP
protocol suite. These two
layers were not added to
the TCP/IP protocol suite
after the publication of
the OSI model. The
application layer in the
suite is usually
considered to be the
combination of three
layers in the OSI model.
Comparison between OSI and TCP/IP
Protocol Suite
• Two reasons were mentioned for this
decision.
• First, TCP/IP has more than one transport-layer protocol.
Some of the functionalities of the session layer are
available in some of the transport layer protocols.
• Second, the application layer is not only one piece of
software. Many applications can be developed at this layer.
If some of the functionalities mentioned in the session and
presentation are needed for a particular application, it can
be included in the development of that piece of software.
Layers in the TCP/IP Protocol Suite
• When we study the purpose of each layer, it is easier to think
of a private internet, instead of the global Internet. Such an
internet is made up of several small networks called links.
• A link is a network that allows a set of computers to
communicate with each other. A link can be a LAN or WAN.
• Our imaginary internet that is used to show the purpose of
each layer.
Physical Layer (1) TCP/IP
• TCP/IP does not define any specific protocol for the physical
layer. It supports all of the standard and proprietary protocols.
• TCP/IP does not define any specific protocol for the data
link layer either. It supports all of the standard and
proprietary protocols.
• At this level, the communication is also between
two hops or nodes. The unit of communication
however, is a packet called a frame.
• A frame is a packet that encapsulates the data received
from the network layer with an added header and
sometimes a trailer.
• The head includes the source and destination of frame.
The destination address is needed to define the right
recipient of the frame. The source address is needed for
possible response or acknowledgment as may be
required by some protocols.
Data Link Layer (2) TCP/IP • Note that the frame that
is travelling between
computer A and router
R1 may be different
from the one travelling
between router R1 and
R3.
• When the frame is
received by router R1,
this router passes the
frame to the data link
layer protocol (left). The
frame is opened, the
data are removed.
• The data are then passed
to the data link layer
protocol (right) to create
a new frame to be sent
to the router R3.
Network Layer(3) TCP/IP
• Note that the communication at the application layer, like the one
at the transport layer, is end to end. A message generated at
computer A is sent to computer B without being changed
during the transmission.
Transport Layer (5) TCP/IP
ADDRESSING
• Four levels of addresses are used in an internet employing the
TCP/IP protocols: physical address, logical address,
port address, and application-specific address. Each
address is related to a one layer in the TCP/IP architecture:
Physical Addresses
• The physical address, also known as the link address, is the
address of a node as defined by its LAN or WAN. It is included
in the frame used by the data link layer. It is the lowest-level
address.
• The size and format of these addresses vary depending
on the network. For example, Ethernet uses a 6-byte
(48-bit) physical address that is imprinted on the
network interface card (NIC). LocalTalk (Apple), however,
has a 1-byte dynamic address that changes each time the
station comes up.
Physical Addresses
For more:
CCNA Exploration 4.0 Network Fundamentals, Chapter Three
Application Layer functionality & Protocols (P. 24).
Application-Specific Addresses
• Some applications have user-friendly addresses that are
designed for that specific application.
• Examples include the e-mail address (for example,
[email protected]) and the Universal Resource Locator
(URL) (for example, www.mhhe.com). The first defines the
recipient of an e-mail; the second is used to find a document
on the World Wide Web.
• These addresses, however, get changed to the corresponding
port and logical addresses by the sending computer.