Data Communication Networks: Understanding the Data Link Layer, Study notes of Electrical and Electronics Engineering

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

Pre 2010

Uploaded on 11/08/2009

koofers-user-27f
koofers-user-27f 🇺🇸

7 documents

1 / 92

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CDA 4506
Design and Implementation of Data
Communication Networks
Lecture Set 2
Dr. R. Lent
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c

Partial preview of the text

Download Data Communication Networks: Understanding the Data Link Layer and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

CDA 4506

Design and Implementation of Data

Communication Networks

Lecture Set 2

Dr. R. Lent

Chapter 5 outline

n 5.1 Introduction and

services

n 5.2 Error detection and

correction

n 5.3 Multiple access

protocols

n 5.4 LAN addresses and

ARP

n 5.5 Ethernet

n 5.6 Hubs, bridges, and

switches

n 5.7 Wireless links and LANs

n 5.8 PPP

n 5.9 ATM

n 5.10 Frame Relay

Chapter 5: The Data Link Layer

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

Layered Architecture

SMTP, FTP, HTTP, etc

TCP, UDP

IP, ICMP

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)

Link Layer Services

  1. Framing, link access: n encapsulate datagram into frame, adding header, trailer n channel access if shared medium n ‘physical addresses’ used in frame headers to identify source, dest n different from IP address!
  2. Reliable delivery between adjacent nodes n seldom used on low bit error link (fiber, some twisted pair) n wireless links: high error rates n Q: why both link-level and end-end reliability?

Link Layer Services (more)

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

  1. Error Correction: n receiver identifies and corrects bit error(s) without resorting to retransmission 6. Half-duplex or full-duplex n with half duplex, nodes at both ends of link can transmit, but not at same time

Chapter 5 outline

n 5.1 Introduction and services

n 5.2 Error detection and

correction

n 5.3Multiple access protocols

n 5.4 LAN addresses and ARP

n 5.5 Ethernet

n 5.6 Hubs, bridges, and

switches

n 5.7 Wireless links and LANs

n 5.8 PPP

n 5.9 ATM

n 5.10 Frame Relay

Error Detection

EDC = Error Detection and Correction bits (redundancy) D = Data protected by error checking, may include header fields

  • Error detection not 100% reliable!
    • protocol may miss some errors, but rarely
    • larger EDC field yields better detection and correction

Internet checksum

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 )

Checksumming: Cyclic Redundancy Check

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)

Chapter 5 outline

n 5.1 Introduction and services

n 5.2 Error detection and

correction

n 5.3Multiple access protocols

n 5.4 LAN addresses and ARP

n 5.5 Ethernet

n 5.6 Hubs, bridges, and

switches

n 5.7 Wireless links and LANs

n 5.8 PPP

n 5.9 ATM

n 5.10 Frame Relay

Multiple Access Links and Protocols

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

Ideal Multiple Access Protocol

Broadcast channel of rate R bps

  1. When one node wants to transmit, it can send at rate R.
  2. When M nodes want to transmit, each can send at average rate R/M
  3. Fully decentralized:

n no special node to coordinate transmissions n no synchronization of clocks, slots

  1. Simple

MAC Protocols: a taxonomy

Three broad classes:

  1. Channel Partitioning

n divide channel into smaller “pieces” (time slots, frequency, code) n allocate piece to node for exclusive use

  1. Random Access

n channel not divided, allow collisions n “recover” from collisions

  1. “Taking turns”

n tightly coordinate shared access to avoid collisions