unit 3.4
unit 3.4
•Design issue has to do with making sure that when 1 bit send
from one side, it is received 1 bit by other side also not as a 0
bit.
Layer 2: Data Link Layer
• Packages raw bits from the Physical layer into frames
(logical, structured packets for data).
• Provides reliable transmission of frames
• It waits for an acknowledgment from the receiving
computer.
• Retransmits frames for which acknowledgement not
received
The data link layer is divided into two sub-layers :
It is the second sub-layer of data-link layer. It controls the flow and multiplexing for
transmission medium. Transmission of data packets is controlled by this layer. This
layer is responsible for sending the data over the network interface card.
Functions are –
(i) To perform the control of access to media.
(ii) It performs the unique addressing to stations directly connected to LAN.
(iii) Detection of errors.
Design issues with data link layer are :
2.Frame synchronization –
The source machine sends data in the form of blocks called frames to the destination machine.
The starting and ending of each frame should be identified so that the frame can be recognized
by the destination machine
3.Flow control –
Flow control is done to prevent the flow of data frame at the receiver end. The source machine
must not send data frames at a rate faster than the capacity of destination machine to accept
them.
4.Error control –
Error control is done to prevent duplication of frames. The errors introduced during transmission
from source to destination machines must be detected and corrected at the destination machine.
Layer 3: Network Layer
• Manages addressing/routing of data within the subnet
• Addresses messages and translates logical addresses and names
into physical addresses.
• Determines the route from the source to the destination computer
• Manages traffic problems, such as switching, routing, and
controlling the congestion of data packets.
• Routing can be:
• Based on static tables
• determined at start of each session
• Individually determined for each packet, reflecting the current network
load.
•Functions of Network Layer
•Addressing
Maintains the address at the frame header of both source and destination and performs
addressing to detect various devices in network.
•Packeting
This is performed by Internet Protocol. The network layer converts the packets from its
upper layer.
•Routing
It is the most important functionality. The network layer chooses the most relevant and
best path for the data transmission from source to destination.
•Inter-networking
It works to deliver a logical connection across multiple devices.
Network layer design issues:
1. Store and Forward packet switching:
2. Services provided to Transport Layer:
Connectionless – The routing and insertion of packets into subnet is
done individually. No added setup is required.
Connection-Oriented – Subnet must offer reliable service and all the
packets must be transmitted over a single route.
3. Implementation of Connectionless Service
4. Implementation of Connection Oriented service
It can be done in either two ways :
• Circuit Switched Connection – A dedicated physical path or a circuit is
established between the communicating nodes and then data stream is
transferred.
• Virtual Circuit Switched Connection –
Layer 4: Transport Layer
• Manages transmission packets
• Repackages long messages when necessary into small
packets for transmission
• Reassembles packets in correct order to get the original
message.
• Handles error recognition and recovery.
• Transport layer at receiving acknowledges packet delivery.
• Resends missing packets
•Connection Control: It includes 2 types:
•Connectionless Transport Layer : Each segment is considered as an
independent packet and delivered to the transport layer at the destination
machine.
•Connection Oriented Transport Layer : Before delivering packets,
connection is made with transport layer at the destination machine.
Design Issues with Transport Layer
N N
PDU PDU
PDU - Protocol Data Unit
SDU - Service Data Unit