Unit II Part 1 Final PDF
Unit II Part 1 Final PDF
K . Srinivas
Department of Electrical Engineering
DEI Faculty of Engineering
Network Software
Protocol Hierarchies
A set of layers and protocols is called a network architecture.
services
layer N layer N
PDUs (protocol data unit)
layer N-1 layer N-1
The data portion of a packet at N-1 carries the whole packet from level N. This concept
is called encapsulation where level N-1 is not aware of which part is header and which
part is data.
2.19
Synchronization of bits.
• The sender and receiver not only must use the same bit rate but also must
be synchronized at the bit level.
• In other words, the sender and the receiver clocks must be synchronized.
Physical layer
Line configuration
• The physical layer is concerned with the connection of devices to
the media.
• In a point-to-point configuration, two devices are connected
through a dedicated link.
• In a multipoint configuration, a link is shared among several
devices.
Physical topology
• The physical topology defines how devices are connected to make
a network.
Physical Layer
Transmission mode
• The physical layer also defines the direction of transmission
between two devices: simplex, half-duplex, or full-duplex.
• In simplex mode, only one device can send; the other can only
receive. The simplex mode is a one-way communication.
• In the half-duplex mode, two devices can send and receive, but
not at the same time.
• In a full-duplex (or simply duplex) mode, two devices can send
and receive at the same time.
2.25
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 device that connects the network to the next one.
Data Link Layer
Flow control
• If the rate at which the data are absorbed by the receiver is less than the
rate at which data are produced in the sender, the data link layer imposes a
flow control mechanism to avoid overwhelming the receiver.
Error control
• 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.
Data Link layer
Access control
• 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.
2.31
Routing
• When independent networks or links are connected to create intemetworks
(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
2.36
The transport layer is responsible for the delivery
of a message from one process to another.
Reliable Process-to-process Delivery
2.38
of a Message
Transport Layer
Service-point Addressing
• Computers often run several programs at the same time. For this
reason, source-to-destination delivery means delivery not only from one
computer to the next but also from a specific process (running program)
on one computer to a specific process (running program) on the other.
• The transport layer header must therefore include 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
Segmentation and reassembly.
• 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.
Transport Layer
Connection control
• The transport layer can be either connectionless or connection oriented.
• A connectionless transport layer treats each segment as an independent packet
and delivers it to the transport layer at the destination machine.
• A connection oriented transport layer makes a connection with the transport layer
at the destination machine first before delivering the packets.
• After all the data are transferred, the connection is terminated.
Transport Layer
Flow control
• 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
• 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.
• The sending transport layer makes sure that the entire message arrives at the
receiving transport layer without error (damage, loss, or duplication).
• Error correction is usually achieved through retransmission.
Session layer
2.43
2.44
Note
The session layer is responsible for dialog
control and synchronization.
Session Layer
• The services provided by the first three layers (physical, data link, and
network) are not sufficient for some processes.
• The session layer is the network dialog controller.
• It establishes, maintains, and synchronizes the interaction among
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 (one way at a time) or full-duplex (two ways at a
time) mode.
Session Layer
Synchronization
• The session layer allows a process to add checkpoints, or synchronization points,
to a stream of data.
• In case of a crash 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.
2.47
Compression
• Data compression reduces the number of bits contained in the
information.
• Data compression becomes particularly important in the transmission of
multimedia such as text, audio, and video.
2.51
Note
The application layer is responsible for
providing services to the user.
Application Layer
• 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.
Mail services
• This application provides the basis for e-mail forwarding and storage.
Directory services
• This application provides distributed database sources and access for
global information about various objects and services.
Application layer
2.54
Summary of layers
2.55
TCP/IP PROTOCOL SUITE
2.58
Relationship of layers and addresses in TCP/IP