21CS52 CN Module 2
21CS52 CN Module 2
COMPUTER NETWORKS
Subject Code: 21CS52
2
MODULE- 2
• The Data link layer: Design issues of DLL,
Error detection and correction, Elementary
data link protocols, Sliding window protocols.
• The medium access control sublayer: The
channel allocation problem, Multiple access
protocols.
Laboratory Component :
1. Implement simple ESS and with transmitting nodes in
wire-less LAN by simulation and determine the
throughput with respect to transmission of packets
2. Write a program for error detecting code using CRC-
CCITT (16- bits).
DATA LINK LAYER
• This layer is one of the most complicated layers.
• Data link layer works between two hosts which are
directly connected:
Point to point
Broadcast
• The work of data link layer tends to get more
complex when it is dealing with multiple hosts on
single collision domain.
DATA LINK LAYER
• Data link layer has two sub-layers:
Module – 2(b)
The medium access control sub
layer: The channel allocation problem,
Multiple access protocols.
39
Introduction
• Broadcast networks
• Key issue: who gets to use the channel when there is competition
• Referred to as
• Multiaccess channels
• Random access channels
• MAC (Medium Access Control) sublayer
• LANs
• Wireless networks
• Satellite networks
The MAC Sublayer
40
TDM:
• Each user is statically allocated every Nth time slot
• Same problems as FDM
42
• Example, if C is 100 Mbps, the mean frame length, 1/μ, is 10,000 bits, and the
frame arrival rate, λ, is 5000 frames/sec, then T = 200 μsec. Note that if we ignored
the queueing delay and just asked how long it takes to send a 10,000- bit frame on
a 100-Mbps network, we would get the (incorrect) answer of 100 μsec. That result
only holds when there is no contention for the channel.
43
Textbooks
1. Computer-Networks- Andrew S. Tanenbaum
and David J. Wetherall, Pearson Education,
5th Edition.
(www.pearsonhighered.com/tanenbaum)
Reference Books
2. Behrouz A Forouzan, Data and Communications and
Networking, Fifth Edition, McGraw Hill, Indian Edition
3. Larry L Peterson and Brusce S Davie, Computer
Networks, fifth edition, ELSEVIER
92
Thank you