Data Link Layer
Data Link Layer
Services
Framing
Flow control
Error Control
Access control
Services
right
Application WAN
Framing It is a process
of separating
Variable
Fined sized
sized
An application of fined size framing is
in ATM is in WAN
variable sized is LAN
Appen
of
of Data
0111 Data 1011
Variable sized framing is categorizedinto
character oriented protocol
Bit
These utilizes U diff ways
Character
to. t
I3iiiziFsiottjj
Limitation The count can be garbled l
transmission
during
used
In this mechanism each frame starts
and end with special bytes
It helps in removal
of resynchronization
Flag lit 1 Payloadfield It I Fly
point to point
pattern
whenever sender's DLL encounters 5
0110 11 11 1 1 11 11 11 11 I 0010
I
0110
11111001111100111111,0010
I
stuffed
bits
some redundancy
y
We can apply diff set of rules to
the problem extraction
data
solve of
from a
frame En enforcing a high Low pair
1 I 0
I
i
IMI tide
Types of Delays
It
is the amount
Guing Delay of
time
message is waiting in the
buffer capacity
Amount time taken
of
Processing
the machines to process a packet
by
or frame or
message i e looking at
destination network id
it extracting
searching in the routing table and
machine
by machine to transfer
message to the outgoing link
packet
TD Size of
Bandwidth
channel
of
two machine
d da
Q Q DR
to l
s
th c
I
PD CD D2 PRD D TD D2
RTT D
PD CD
DCP
O
RTT ZED
CD Da N COD P
DID
Data
Control
Acknowledgement
tve Ive
It n is the no
of messages to be sent
for the
ve
ntl
n
If
Independent Cumulative
to 1
For every message The reciever send Ack
encieved have to
youack after some set of
Send messages
R
Piggybacking 7
DATA
DEFIED
Note Network traffic is low in cumulative
Ack
In independent Ack if the Ack no
is me the nth packet is
then
assumed to be levered
In independent Ack high traffic
is accepted
Reliability is higher in independentAck
Error Control
Error
f Packet
Bit Error
Error
InvalidDuplicate
M
I bit Multiple
error
transmission is used
parallel
Burst length is calculated from extreme
end of error
possesses
block
of data pent to enable the
reciever to deduce what the transmitted
ee redundant bits
N mtr
codeword
m
bit pataword m bits
Dataword
Posited
I
Generator Checker
Redundanter bits
I p bit
Is
n bit codeword
Channel
code way
Encoder Decoder
Sender enciever
provides the no
of bit position
in which two code words differ
9 Hamming
Codeword
Data Word
00 00000 f
01 01 1 fr
10 101.01 73
11 t
I
d Cf f 3 Altaf Y
d fists 3
dc fi ta n
Min 3
Error detection 7
Techniques of
Cyclic Code
In
case
of linear block code the Xor
valid codeword
In cyclic code the code word is cyclically
odd Even
000 I 1 1 1
011 00 1
001 11 0011 001
f t z 3
f 01100100 11 trailer
2 1000 1111 I
3 10011001 Do
of
go that the resulting data unit becomes
which is predetermined
At destination it is divided by
determined number
fame
and accept
Algorithms
of Gen
generator poly
I Append r bits to the low order end of
modulo 2 division
to Nr M n
using
r or
fewer bits tie the bit string
corresponding to ur Mcn using mudulo 2
Tca
11011
m
NVM N NYT 23 Nt
G a N't k t
G n aunt
1041 1101
1 4,8 3
toting
KS zeros a 1
I
To Meminder
N segments each
of m bits
In
checksum
n m Gender
3
3 10 8,9711141 10
8
9
f 1001
Recieverpartye
be add hogawith the
given data
Recieves
3
10
8
0101101 I
41
I I
I
complent is zero
Example 2
i_
7
100110011110001
t te te tu
n y
M 8
f 10011001
jI
0111110T
410000101
00 100101
Internet CheckSum
16 bits words
Value of checksum word is
said to 0
All words including checksum
whole data
Checksum is sent with the
data
is divided into 16
Reiger Message
bit words
is rejected
En Forouzan
FO in A IT 2
16TH
Ase 70 3 64
20 GF
Uz n 2
5 4446
a na c
7 97 a
F 46
B
o
o GE f 164th
B
83 El
D
012
75
JEFE
u
ESTA
a 762
n GE
Fo
466 F
726 F ro
757 A uz
7038
RIE
8 FC 7
FEE
t's complement
I
0000
ways
Backward error correction
are
hamming code
convalation code
Binary
Read Solomon code
Access Control
Ed
It
is
D
levels of signals
zero Idle n
A
Normal
Abnormal collision
III
DI gticalink control
SLIDES Aness
J
Pure Aloha relies on Ack from if
Mann en transmission
attempts
of
of
Randomness will help to avoid more
are a man
of
we assume thatsignals propagate at
3 108 my
find the value of backoff
time TB for ke 1 2 3
Tp 2ms Idly
K I 2K combination I
O
g1
OX 1 0 choir for T
1 2 2
K 2
0,1 2,3
Sol 7 I 1ms
Egg
Vulnerable time 2ms
Shared
frames the n
channel 200 Kbts
of
on
What
Tg Ims
G I frame ms
Throughput G e 26
0135
MA slides sepadhua
bow
of 10 Mbp
If manm propagation
of
Sat
Ty 2 256
512g
51.2 Hs
2923
frame size Is X B w 34
512 bits
69 bytes
FLOW CONTROL
L S
Noiseless
Noisy
Channell
Stop GBN SR
L
Stop waitin ARG Ara
Simpler
wait protad t
protocol Automatic repeat
request
Note of
considers unidireen flow of data
protocol
in which dataframes travel
control
flow
S
R
Frame 2 As
M Ree
yf If
much higher
then that can
processed at reciever end with storage
error control
g p
Frame
L AdFrame
s
Ack
Lost Ack
Delayed Ark
Seq no
of data transmitted
Seq no
of Ack
t
SWARY
a copy of
when timer expire
provide numbering
being sent
will be KH th
S RD
É F
S É
Tt
Aik
option e
Fi
Sn C
Ti Consent
ontill F
lot
Ain on
Su s DR
WI F
I
am I 01110
T lot d
oh Fo
a
Doth
sin L
I
T Ark
olim
Numerical If B w
of a link is
find
protocol
B w 105 Mbbs
size I RB
RTT 45 ms
Throughout
1117 1314
1882 Kbps
Pipelining D Thighttxioo
i I x 100
12 139
more
butter space
LLC
MAC
Name
IEEE 802 Standard of standard
802.1
higher layer LAN protoral
working group
802.2 Standardization
LLC
of
802 3 Ethernet
of
802.7 Broadband LAN using
coaxial cable
802.8 Fibre optic
Tag
LAN
802 10 Interoperable LAN
security
1802 17 wireless
LAN
802 12 100 base VG
802.13 unused
802.14 Cable modems
15.4 be
155
zig
wireless PAN
Mesh network
1 I5 I
BAN body Area
Network
15.7 Visible Light communicate
wireless Access
802.24
Characteristics
Ehret
Ethernet offer connectionless
communication
control and packet level
No
flow
error control
No acknoledgement
Method
Evolution Ethernet
of
as basic ethernet
Fast Ethernet 100M bps
Ethernet I Gbps
Gigabit
Frame Format
1 Byte 6Byte 6 Byte 2 Byte 46 1500Byte y byte
7Byte
K
eaderactt ta.br
Data
Preamble It 1 and
consists of s
zeros
7 Bytes
forUsed
for synchronization
purpose
Start
Frame Delimiter
SED of
11
SA DA They are 48 bit
is 1500 Bytes
needed
of
field is
Lf It is added as part of
Not ethernet
0 Data
are
rate supported by
10 Mbbs 100 Mbbs lamps
encoding
Min Man
46 1500 Data
72 1526 frame
Efficiency
te D DD ETTY Bridge a
collision
Ethernet Performance
period
IIe peri
N l
stations not to transfer data
Ps Cl Ps Probability
of success
of a single station
PIP
1
Efficiency
Assume IP is negligible
0
y II
NP Cl Ps probability of success
of
then A Ye
t
Length of th size
of packet
IIe
ttifzxtpropxe flat
Iae f una
where
Iggy
to55500 segments
m
Hs
all stations transmit with equal
If
Assume no
of contention slot 1.716
Given B W 10 Mbbs
N 500
L 512
Bytes
Tx
period
t 5,34g
If
0 4096 ms
p no
of contention slots X 51.2 10
1.716 51 2 10
8.78 10 S
D
Ffp
8gg
gnsms
0.82
Y
Utilization 82
efficiency of 50
II É
3
55 EE 2
E
Iza
where a
Bt
D
YEAR
LER
Note 0ft L BR 50
y
It L BR D 50
LL BR D 250
B UKbps
L BR
3
L Y X 103 240 10
160 bits
dst 20 Km apart
and one
way delay of looks
RTT TD
2X PD
ZX 100 10 6 87.1024
BW 103
size 1024
Protocols
Calculate RTT
or
of the problem at hand
suitable for
sliding window
where PS is the packet
Wp Wpgity
size in bits
Seq no req up
where k
Equate 2k
no
Wp
of
Suppose you
protocol
lombps
for P2P link
sliding window
wp
3IÉ
305.17
2k 305.17
1 9