You are on page 1of 6

DATA LINK LAYER sender knows whether or nor a frame has

is the second layer of the OSI model arrived safely


*Acknowledge Connection-Oriented Service:
The Most sophisticated service the DLL can
provide to the network layer is connection-
oriented service. with this, the source and
destination machine establish a connection
before any data are transferred. each frame
sent over the connection is numbered and DLL
guarantees that each frame sent is indeed
received
The data link layer is responsible for error free 2: Framing: Data transmtss1on in the physical
transfer of data frames. This layer provides layer means moving bits in the form of a signal
synchronisation for the physical level. This from the source to the destination. The physical
purpose of the data link layer is to transfer layer provides bit synchronisation to ensure that
blocks of data without error between two the sender and receiver use the same bit
adjacent devices. Adjacent devices are durations and timing.
physically connected by a communication The data link layer, on the other hand, needs to
channel such as telephone lines, coaxial cables. pack bits into frames, so that each frame is
optical fibres, or satellites. distinguishable from another. Framing is the
DATA LINK LAYER DESIGN ISSUES function of the data link layer that separates a
the data link layer has a number off functions to message from one source to a destination or
carry out. these functions include providing a from other messages to other destinations by
well-defined service interface to the network adding a sender address and a destination
layer. determining how the bits of the physical address. The destination address defines where
layer are grouped into frames. the packet is to go the ender address helps the
The design issues of the data link layer are given recipient acknowledge the receipt.
below: *Fixed-Size Framing: Frames can be of fixed is
1: Services Provides to Network Layer: The variable size. in fixed-size framing, there is no
function of the data link layer is to provide need for defining the boundaries of the frame
services to the network layer. The principle the size itself can be used us a delimiter. An
service is transferring data from the network example of this type of framing is the ATM WAN
layer on the source machine to the Network which uses frames of fixed size called cells
layer on the destination machine. the job of the Variable-Size Framing: In Variable-Size Framing
DLL is to transmit the bits to the destination one needs a way to define the end of the frame
machine, so they can be handed over to the and the beginning of the next. Historically two
network layer. The actual transmission follows approaches were used for this purpose:
the path but it is easier to think in terms of two a) Character-Oriented Protocols: In a Character-
data link layer process communicating using a oriented Protocol, data to be earned are 8-bit
data link protocol characters from a coding system such as ASCII.
Three reasonable possibilities that commonly The header ,which normally cames the source
provided are: and destination addresses and other control
*Unacknowledged Connectionless Service: It information and the trailer which carries error
consist of having the source machine send detection or error correction redundant bits, are
independent frames to the destination machine also multiples of 8 bits.
without having the destination machine b) Bit-Oriented Protocols: In a bit-oriented
acknowledge them Protocol. the data section of a frame is a
*Acknowledge Connectionless Service: when sequence of bits lo be interpreted by the upper
this service is offered, there are still no layer as text, graphic, audio, video and so on.
connections used, but each frame sent is
individually acknowledged. In this way the
3: Flow Control: Flow control is a set of
procedures that tells the sender how much data
it can transmit before it must wait for an
acknowledgment from the receiver. The flow of
data must not be allowed to overwhelm the
receiver. Any receiving device has a limited
speed al which it can process incoming data and
a limited amount of memory in which to store
incoming data.
flow control there is two approaches are
commonly used:
1: Feedback-Based Flow Control: In this Advantages
approach receiver sends back information to *It is a very simple protocol of flow control.
the sender giving it permission to send more *Since size of frames is small hence error
data or at least telling the sender how the detection is easy
receiver is doing. Disadvantage
2: Rate-Based Flow Control: In this the protocol *Only single frame is transmitted which makes
has a built-in mechanism that limits the rate at the protocol inefficient
which senders may transmit data, without using *Throughput is very poor and the channel
feedback from the receiver. bandwidth is not used efficiently.
4: Error Control: Error control provides error 2: Sliding Window Protocol: In the
detection and correction. There are two basic elementary data link protocols, data frames are
strategies for dealing with errors. These are: transmitted in one direction only but there is a
1: To include only enough redundancy to allow need to transmitting data in both directions.
the receiver to confirm that an error occurred, This is achieved by sliding window protocol.
but not aware of which error and therefore In the sliding window method, the sender can
request it for re-transmission. transmit several frames before needing an
2: Second method is to include enough acknowledgment. Frames can be sent one right
unwanted data along with each block of data after another, meaning that the link can carry
sent to enable to receiver to extract what the several frames at once and its capacity can be
transmitted character must have been. used efficiently. The sender maintains
Mechanics for error handling at this layer are information about:
based on error detection and retransmission *Size of sender window *Last frame sent
with the error handling usually performed using *Last acknowledgement received
algorithms implemented in software such as The receiver acknowledges only some of the
checksum in error detection and correction. frames, using a single ACK lo confirm the receipt
CATEGORIES OF FLOW CONTROL of multiple data frames.
1: Stop-und-Wail Protocol: In stop-and-wait Receiver holds information about
protocol, the source sends a packet and only *Receiver window size,*Large acceptable frame,
after receiving the acknowledgment from the *Last frame received
destination, it sends next packet. This is a simple In the sliding window method protocol, several
protocol, bur it results in lots of delay, and the frames can be in transmit at a time. The sliding
bandwidth is not used efficiently. window refers to imaginary boxes at both the
When the source (end system A) sends the first sender and receiver. This window can hold
packet to the destination (end system 8) and frames at either end and provides the upper
waits for the acknowledgment, then B sends an limit un the number of frames that can be
acknowledgement packet. transmitted before requiring an
Then A sends the second packer, and B sends acknowledgment.
the acknowledgement. A repeat this process
until sender A transmit an end of transmission
frame (EOT).
Types of ARQ Techniques
1: Stop-and-Wait ARQ: Stop-and-wait ARQ is a
form of stop-and-wait flow control extended to
include retransmission of data in case of lost or
damaged frames It is also known as
ABP(Alternating Bit Protocol).
For retransmission to work, four features are
added to the basic flow control mechanism:
*The sending device keeps a copy of the last
frame transmitted until it receives an
acknowledgment for that frame. Keeping a copy
allows the sender to retransmit lost or damaged
frames until they are received correctly.
*For identification purposes. both data frames
and ACK frames are numbered alternately 0 & 1.
This numbering allows for identification of data
frames in case of duplicate transmission.

Advantages
*Network Utilization
*Data can be transmitted in both directions.
*Several frames can be in transit at a time.
Disadvantages
*complexity and hardware capacity
*The window can hold n-1 frames at either end. * If an error is discovered in a data frame,
therefore, a minimum of n-1 frame may be cut indicating that it has been corrupted in transit, a
before an acknowledgment is required NAK frame is returned. NAK frames, which are
AUTOMATIC REPEAT REQUEST (ARQ) not numbered, tell the sender to retransmit the
also known as Automatic Repeat Query, is an last frame sent
error-control method for data transmission that * The sending device is equipped with a timer. If
uses acknowledgements (messages sent by the an expected acknowledgment is not received
receiver indicating that it has correctly received within an allotted time period, the sender
a data frame or packet) and timeouts (specified assumes that the last data frame was lost in
periods of time allowed to elapse before an transit and sends it again
acknowledgment is to be received) to achieve
reliable data transmission over an unreliable
service
If the sender does not receive an
acknowledgment before the timeout. it usually
re-transmits the frame/packet until the sender
receives an acknowledgment or exceeds a
predefined number of re-transmissions. The
receiver will send back an ARQ message to the
transmitter to indicate that the last block should
be retransmitted
2: Sliding Window ARQ: Disadvantages of Selective-Repeat ARQ
1: Go-Back-n ARQ: This is a specific instance of i) More complexity at sender and receiver
the automatic repeat request (ARQ) protocol, in ii) Each frame must be acknowledged
which the sending process continues. to Send a individually
number of frames specified by a window size iii) Receiver may receive frames out of sequence
even without receiving an acknowledgement
(ACK) packet from the receiver.
It is a special case of the general sliding window
protocol with the transmit window size of N and
receive window size of 1.

Data Link Layer Protocols and Technologies


A data link protocol is a set of specifications
used to implement the data link layer. OPNET
2: Selective Reject ARQ: Selective Reject or supports a wide range of data link layer
Selective Repeat is one of the automatic repeat protocols and technologies including:
request (ARQ) techniques. With selective 1: CDDI: For a local area network (LAN), CDDI
repeat. the sender sends a number of frames (Copper Distributed Data Interface) is a
specified by a window size even without the standard for data transmission based on FDDI
need to wait for individual ACK from the (Fiber Distributed Data Interface) that uses
receiver as in stop-and wait. shielded twisted-pair (STP) or unshielded
However, the receiver sends ACK for each frame twisted pair (UTP) copper wire instead of fiber
individually, which is not like cumulative ACK as optic lines. CDDI supports a dual-ring capacity of
used with go-back-n. 200 Mbps. CDDI's maximum distance is up to
The receiver accepts out-of-order frames and 200 meters, which is much shorter than FDDI.
buffers them. The sender individually
retransmits frames that have timed out.
In selective-repeat ARQ, only the specific
damaged or lost frame is retransmitted. If a
frame is corrupted in transit, a NAK is returned
and the frame is resent out of sequence. The
receiving device must be able to sort the frames
it has and insert the retransmitted frame into its CDDI is officially named the Twisted-Pair
proper place in the sequence. Physical Medium Dependent (TP-PMD) standard
Advantages of Selective-Repeat ARQ and is also referred to as Twisted Pair
i) Similar to Go-Back-N ARQ. However, the Distributed Data Interface (TP-DDI).
sender only retransmits frames for which a NAK 2: frame Relay: In packet switching packet are
is received. moved between the various network segments
ii) Fewer retransmission until the destination is reached. Frame relay
uses variable length packets for more efficient
and flexible transfer than that offered by X.25
the older packet switching technology
Virtual connections of frame relay only use the 4: Point-to-Point Protocol: PPP (Point-to-Point
required bandwidth for the period of the burst Protocol) is u protocol for communication
or usage. This is one reason why frame relay is between two computers using a serial interface,
used so widely to interconnect LAN s over a typically a personal computer connected by
Wide Area Network (WAN) phone line to a server. PPP is a full-duplex
protocol that can be use<d on various physical
media, including twisted pair fiber optic lines. or
satellite transmission. It uses variation of High
Speed Data Link Control (HD for packet
encapsulation.
The functions performed are:
i: The Point-to-Point Protocol (PPP) was
designed to transport multi-protocol packets
between two peers connected by simple links.
ii: These links provide full-duplex simultaneous
bi directional operation
3: ATM (Asynchronous Transfer Mode): ATM is 5: HDLC: High-level Data Link Control is an
a networking technology that was designed International Standards Organisation data link
specifically to handle a combination of the low- protocol. All these hit-oriented, protocols grew
delay steady stream characteristics of voice and out from the original IBM SDLC (Synchronous
video and the bursty, intermittent chara of data Data Link Control).
communications. HDLC is a discipline for the management of
Asynchronous Transfer Mode (ATM) is an information transfer over a data communication
electronic digital data transmission technology. channel. HDLC has a basic structure that
ATM is implemented as a network protocol and governs the function and the use of control
was first developed in the mid-1980s. The goal procedures.
was to design a single networking strategy that DATA LINK LAYER (DLL) IN INTERNET
could transport real-time video and audio as Internet consists of various "networks" i.e, they
well as image files, text and e-mail. may support different network layer protocols
It differs from other networks as ATM exposes and even links
properties from both circuit switched and small For either case of connections, some data link
packet switched networking. making it suitable layer protocol is required. Internet uses the
for wide area data networking as well as real- Point-to-Point Protocol (PPP) which handles
time media transport. ATM uses a connection- error detection, supports multiple protocols,
oriented model and establishes a virtual circuit and allows IP addresses to be negotiated at
between two end points before the actual data connection time, permit authentication. Two
exchange begins. ATM is a core protocol used in protocols used for data link layer in Internet arc:
the SONET/SDH backbone of the public 1: SLIP (Serial Line IP)
switched telephone network 2: PPP (Point-to-Point Protocol)
LAN/MAN Standards
The IEEE 802 LAN/MAN Standards Committee
develops LAN standards and MAN standards.
The most widely used standards are for the
Ethernet family, token ring, WLAN, Bridging, and
Virtual Bridged LANs. All standards created by
this committee are designated 802.
IEEE 802.3 Standard: Ethernet
Ethernet is the most popular physical layer LAN
technology in use today. Ethernet was invented
by engineer Robert Metcalfe. it defines the
number of conductors that are required for a
connection, the performance thresholds that
can be expected. and provides the framework
for data transmission. A standard Ethernet
network can transmit data at a rate up to 10
Megabits per second (10 Mbps).
Frame Format of Ethernet

IEEE 802.4: Token bus


A type of LAN that has a bus topology in which
all devices are connected to a central cable
called the bus or backbone and uses a token
passing mechanism to regulate traffic on the
bus. Ethernet systems use a bus topology
A Token bus network is very similar to a token
ring network, the main difference being that the
endpoints of bus do not meet to form a physical
ring.

IEEE 802.5 Standard: Token Ring


Token ring is the IEEE 802.5 standard token-
passing ring in communication networks with a
star-configured physical topology. Internally BRIDGES
signals travel around the communication A bridge is also a device which works In the Data
network from one station to the next ring. Link Layer, but is more primitive when
Physically each station connects to a central hub compared to a switch. Initial bridges were used
called a MAU (Multistation Access Unit) to connect only 2 LAN's but the most recent
ones perform similar operation as the switches.
It also Works on the principle of transfer of
information using the MAC addresses of the
ports.

You might also like