






















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!























5: DataLink Layer 5a-
understand principles behind data link layer services: error detection, correction sharing a broadcast channel: multiple access link layer addressing reliable data transfer, flow control:done!
instantiation and implementation of various link layer technologies
link layer services error detection, correction multiple access protocols and LANs link layer addressing, ARP specific link layer technologies: Ethernet hubs, bridges, switches IEEE 802.11 LANs PPP ATM
5: DataLink Layer 5a-
Link Layer: setting the context
5: DataLink Layer 5a-
encapsulate datagram into frame, adding header, trailer implement channel access if shared medium, ‘physical addresses’ used in frame headers to identify source, dest
we learned how to do this already (chapter 3)! seldom used on low bit error link (fiber, some twisted pair) wireless links: high error rates
5: DataLink Layer 5a-
Error Detection:
receiver identifies and corrects bit error(s)
5: DataLink Layer 5a-
EDC= Error Detection and Correction bits (redundancy) D = Data protected by error checking, may include header fields
5: DataLink Layer 5a-
Detect single bit errors
Detect and correct single bit errors
d data bits parity bit
0111000110101011 1
even or odd parity
5: DataLink Layer 5a-
Checksumming: Cyclic Redundancy Check
based on r+1 bit pattern (generator) G known to tx and rx
treat data bits D as a binary number
obtain r-bit CRC R such that <D,R> divisible (modulo 2) by G
receiver divides <D,R> by G. non-zero remainder implies error
can detect all burst errors less than r+1 bits
widely used in practice (ATM, HDCL)
5: DataLink Layer 5a-
CRC Example
5: DataLink Layer 5a-
only one node can send successfully at a time
multiple access protocol:
distributed algorithm that determines how stations share channel, i.e., determine when station can transmit communication about channel sharing must use channel itself! what to look for in multiple access protocols:
5: DataLink Layer 5a-
MAC Protocols: a taxonomy
divide channel into smaller “pieces” (time slots, frequency) allocate piece to node for exclusive use
tightly coordinate shared access to avoid collisions
Goal: efficient, fair, simple, decentralized
5: DataLink Layer 5a-
unique “code” assigned to each user; ie, code set partitioning
used mostly in wireless broadcast channels (cellular, satellite,etc)
all users share same frequency, but each user has own “chipping” sequence (ie, code) to encode data
sequence
allows multiple users to “coexist” and transmit simultaneously with minimal interference (if codes are “orthogonal”)
5: DataLink Layer 5a-
5: DataLink Layer 5a-
transmit at full channel data rate R.
how to detect collisions how to recover from collisions (e.g., via delayed retransmissions)
slotted ALOHA ALOHA CSMA and CSMA/CD
5: DataLink Layer 5a-
Success (S), Collision (C), Empty (E) slots