22-LinkLayerIntro
22-LinkLayerIntro
Chapter 5
our goals:
Link Layer understand principles behind link layer
A note on the use of these ppt slides:
services:
We’re making these slides freely available to all (faculty, students, readers).
They’re in PowerPoint form so you see the animations; and can add, modify,
error detection, correction
and delete slides (including this one) and slide content to suit your needs.
They obviously represent a lot of work on our part. In return for use, we only
sharing a broadcast channel: multiple access
ask the following:
If you use these slides (e.g., in a class) that you mention their source
Computer link layer addressing
(after all, we’d like people to use our book!)
If you post any slides on a www site, that you note that they are adapted
Networking: A Top local area networks: Ethernet, VLANs
from (or perhaps identical to) our slides, and note our copyright of this
material.
Down Approach instantiation, implementation of various link
6th edition
Thanks and enjoy! JFK/KWR Jim Kurose, Keith Ross layer technologies
All material copyright 1996-2012 Addison-Wesley
J.F Kurose and K.W. Ross, All Rights Reserved
March 2012
The course notes are adapted for Bucknell’s CSCI 363
Xiannong Meng
Spring 2016
Link Layer 5-1 Link Layer 5-2
1
Link layer services Link layer services (more)
framing, link access: flow control:
encapsulate datagram into frame, adding header, trailer pacing between adjacent sending and receiving nodes
channel access if shared medium
“MAC” addresses used in frame headers to identify error detection:
source, dest errors caused by signal attenuation, noise.
receiver detects presence of errors:
• different from IP address!
• signals sender for retransmission or drops frame
reliable delivery between adjacent nodes
we learned how to do this already (chapter 3)! error correction:
receiver identifies and corrects bit error(s) without resorting to
seldom used on low bit-error link (fiber, some twisted retransmission
pair)
wireless links: high error rates half-duplex and full-duplex
• Q: why both link-level and end-to-end reliability? with half duplex, nodes at both ends of link can transmit, but not
at same time
2
Parity checking What can 2-D parity check do? (1)
single bit parity: two-dimensional bit parity:
detect single bit detect and correct single bit errors Correct all 1-bit errors (we already saw it);
errors Detect all 2-bit errors;
An even parity example with two bit errors
What can 2-D parity check do? (2) What can 2-D parity check do? (3)
Detect all 3-bit errors; Detect most 4-bit errors;
An even parity example with three bit errors An even parity example with four bit errors that won’t
be detected
3
CRC basics CRC example
data CRC G D*2r
want: equivalently: want: G D r=3
D.2r XOR R = nG D.2r = nG XOR R D.2r XOR R = nG 101011
equivalently: 1001 101110000
1001
Are we convinced that the above are equivalent? D.2r = nG XOR R 101
equivalently: 000
if we divide D.2r by 1010
G, want remainder R 1001
Because A XOR A = 0, A XOR 0 = A, to satisfy: (remember 110
and (A XOR B) XOR B = A XOR (B XOR B), 1 XOR A = A) 000
we have (D.2r XOR R) XOR R = nG XOR R 1100
R = remainder of [
D.2r
] R 1001
1010
G
1001
0011