




















































































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
A lecture set for chapter 5 of the cda 4506 course on design and implementation of data communication networks. The chapter focuses on the data link layer, which is responsible for transferring datagrams between nodes over a link. Topics covered include error detection and correction, multiple access protocols, lan addresses, and various link layer technologies such as ethernet, hubs, bridges, and wireless links. Students will learn about the principles behind data link layer services and the implementation of different link layer technologies.
Typology: Study notes
1 / 92
This page cannot be seen from the preview
Don't miss anything!





















































































Our goals:
understand principles behind data link layer services:
n error detection, correction n sharing a broadcast channel: multiple access n link layer addressing n reliable data transfer, flow control (Ch. 3) n instantiation and implementation of various link layer technologies
SMTP, FTP, HTTP, etc
Ethernet, WiFi, PPP, ATM, Frame Relay, X.
Application
Transport
Network
Link
Physical
Datagrams
data-link layer has responsibility of transferring datagram from one node to adjacent node over a link
2-PDU is often called a frame ( encapsulates datagram)
3. Flow Control: n pacing between adjacent sending and receiving nodes 4. Error Detection : n errors caused by signal attenuation, noise. n receiver detects presence of errors: n signals sender for retransmission or drops frame
EDC = Error Detection and Correction bits (redundancy) D = Data protected by error checking, may include header fields
Sender: n treat segment contents as sequence of 16-bit integers n checksum: addition (1’s complement sum) of segment contents n sender puts checksum value into UDP checksum field
Receiver: n compute checksum of received segment n check if computed checksum equals checksum field value: n NO - error detected n YES - no error detected. But maybe errors nonetheless? More later ….
Goal: detect “errors” (e.g., flipped bits) in transmitted segment (note: used at transport layer only )
n view data bits, D, as a binary number
n choose r+1 bit pattern (generator), G
n goal: choose r CRC bits, R, such that
n <D,R> exactly divisible by G (modulo 2) n receiver knows G, divides <D,R> by G. If non-zero remainder: error detected! n can detect all burst errors less than r+1 bits
n widely used in practice (ATM, HDCL)
Two types of “links”: n point-to-point n PPP for dial-up access n point-to-point link between Ethernet switch and host n broadcast (shared wire or medium) n traditional Ethernet n upstream HFC n 802.11 wireless LAN
Broadcast channel of rate R bps
n no special node to coordinate transmissions n no synchronization of clocks, slots
Three broad classes:
n divide channel into smaller “pieces” (time slots, frequency, code) n allocate piece to node for exclusive use
n channel not divided, allow collisions n “recover” from collisions
n tightly coordinate shared access to avoid collisions