






















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
These are the Lecture Slides of Computer Networks which includes Specific Protocols, Socket Programming, Network Application Protocols, Service Models, Client Server Paradigm, Distributed Processes, Interprocess Communication etc. Key important points are: Data Link Layer, Link Layer Services, Error Detection, Multiple Access Protocols, Link Layer Addressing, Specific Link Layer Technologies, Physically Connected Devices, Error Correction
Typology: Slides
1 / 30
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