SlideShare a Scribd company logo
1 of 166
Computer Networks (06-05933) The Data-Link Layer Rob Minson, rm. 134 [email_address]
Data Link Layer Overview
Data Link Layer Overview ,[object Object],[object Object],[object Object],[object Object],[object Object]
Errors in the Physical Layer ,[object Object]
Errors in the Physical Layer ,[object Object],[object Object],=
Errors in the Physical Layer ,[object Object],[object Object]
Errors in the Physical Layer ,[object Object]
Errors in the Physical Layer ,[object Object]
Error Control Correction and Detection Schemes
Error Control ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Error Detection with Parity Bits ,[object Object],000 001 010 011 100 101 111 000 0 001 1 010 1 011 0 100 1 101 0 111 1 110 110 0
Error Detection with Parity Bits ,[object Object],001 1 parity check OK 000 001 010 011 100 101 111 000 0 001 1 010 1 011 0 100 1 101 0 111 1 110 110 0
Error Detection with Parity Bits ,[object Object],011 1 error detected! parity check not OK 000 001 010 011 100 101 111 000 0 001 1 010 1 011 0 100 1 101 0 111 1 110 110 0
Error Detection with Parity Bits ,[object Object],111 1 error missed!!! parity check OK 000 001 010 011 100 101 111 000 0 001 1 010 1 011 0 100 1 101 0 111 1 110 110 0
Error Detection with Parity Bits ,[object Object],[object Object],[object Object],[object Object]
Hamming Theory ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Hamming Theory ,[object Object],[object Object],[object Object],[object Object],[object Object]
Hamming Theory ,[object Object],with distance 2, if 1 error occurs we will always receive an invalid word 000 0 001 1 010 1 011 0 100 1 101 0 111 1 110 0 000 1 001 0 010 0 011 1 100 0 101 1 111 0 110 1
Hamming Theory ,[object Object],[object Object],[object Object]
Hamming Theory ,[object Object],[object Object],[object Object],[object Object],0000 1 000 0 1 00 00 1 0 000 1
Hamming Theory ,[object Object],[object Object],[object Object],[object Object],[object Object]
Hamming Theory ,[object Object],[object Object],[object Object],[object Object],[object Object],the words invalid words reserved by them all valid words + total words available ≤ 2m + (m+r)2m = (m+r+1)2m
Hamming Theory ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Hamming Theory ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Hamming Codes ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Hamming Codes ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],0  0 0  0  0 0  0 r 1  m 1  m 2  r 2  m 3  m 4  r 3
Hamming Codes ,[object Object],[object Object],[object Object],r 1   m 1  m 2  m 3 r 3   m 1  m 2  m 4 r 2   m 2  m 3  m 4 ?  0 0  ?  1 1  ? r 1  m 1  m 2  r 2  m 3  m 4  r 3
Hamming Codes ,[object Object],[object Object],[object Object],r 1   m 1  m 2  m 3 r 3   m 1  m 2  m 4 r 2   m 2  m 3  m 4 ?  1 0  ?  1 0  ? r 1  m 1  m 2  r 2  m 3  m 4  r 3
Hamming Codes ,[object Object],[object Object],[object Object],r 1   m 1  m 2  m 3 r 3   m 1  m 2  m 4 r 2   m 2  m 3  m 4 0  1 0  1  1 0  1 r 1  m 1  m 2  r 2  m 3  m 4  r 3
Hamming Codes ,[object Object],[object Object],[object Object],r 1  r 2  r 3  error bit m 1 m 2 m 3 m 4 r 1   m 1  m 2  m 3 r 3   m 1  m 2  m 4 r 2   m 2  m 3  m 4
Hamming Codes ,[object Object],[object Object],[object Object],[object Object],0  0 0  0  0 0  0 r 1  m 1  m 2  r 2  m 3  m 4  r 3
Hamming Codes ,[object Object],[object Object],[object Object],[object Object],[object Object],0  0 0  0  0 0  0 r 1  m 1  m 2  r 2  m 3  m 4  r 3
Hamming Codes w/ Logarithmic Parity ,[object Object],[object Object],0 0  0  0  0 0 0  0  0 0 0 0 0 0 0  0  0 r 1   r 2  m 1  r 3   m 2  m 3  m 4   r 4   m 5   m 6  m 7  m 8   m 9  m 10  m 11  r 5   m 12
Hamming Codes w/ Logarithmic Parity ,[object Object],[object Object],[object Object],0 0  0  0  0 0 0  0  0 0 0 0 0 0 0  0  0 r 1   r 2  m 1  r 3   m 2  m 3  m 4   r 4   m 5   m 6  m 7  m 8   m 9  m 10  m 11  r 5   m 12
Hamming Codes w/ Logarithmic Parity 0 0  0  0  0 0 0  0  0 0 0 0  r 1   r 2  m 1  r 3   m 2  m 3  m 4   r 4   m 5   m 6  m 7  m 8   1  2   3   4   5   6   7  8  9  10  11   12  r 4  (8) r 3  (4) r 2  (2) r 1  (1) 12 11 10 9 8 7 6 5 4 3 2 1
Hamming Codes w/ Logarithmic Parity ? ?  0  ?  0 1 0  ?  1 1 0 0  r 1   r 2  m 1  r 3   m 2  m 3  m 4   r 4   m 5   m 6  m 7  m 8   1  2   3   4   5   6   7  8  9  10  11   12  r 4  (8) r 3  (4) r 2  (2) r 1  (1) 12 11 10 9 8 7 6 5 4 3 2 1
Hamming Codes w/ Logarithmic Parity 1 0  0  1  0 1 0  0  1 1 0 0  r 1   r 2  m 1  r 3   m 2  m 3  m 4   r 4   m 5   m 6  m 7  m 8   1  2   3   4   5   6   7  8  9  10  11   12  r 4  (8) r 3  (4) r 2  (2) r 1  (1) 12 11 10 9 8 7 6 5 4 3 2 1
Hamming Codes w/ Logarithmic Parity 1 0  0  1  1  1 0  0  1 1 0 0  r 1   r 2  m 1  r 3   m 2  m 3  m 4   r 4   m 5   m 6  m 7  m 8   1  2   3   4   5   6   7  8  9  10  11   12  ,[object Object],[object Object],r 4  (8) r 3  (4) r 2  (2) r 1  (1) 12 11 10 9 8 7 6 5 4 3 2 1
Hamming Codes w/ Logarithmic Parity 1 0  0  1  0 1 0  0  1  0  0 0  r 1   r 2  m 1  r 3   m 2  m 3  m 4   r 4   m 5   m 6  m 7  m 8   1  2   3   4   5   6   7  8  9  10  11   12  ,[object Object],[object Object],r 4  (8) r 3  (4) r 2  (2) r 1  (1) 12 11 10 9 8 7 6 5 4 3 2 1
Hamming Codes w/ Logarithmic Parity ,[object Object],[object Object],r 4  (8) r 3  (4) r 2  (2) r 1  (1) 12 11 10 9 8 7 6 5 4 3 2 1 1 0  0  1  0 1 0  1  1 1 0 0  r 1   r 2  m 1  r 3   m 2  m 3  m 4   r 4   m 5   m 6  m 7  m 8   1  2   3   4   5   6   7  8  9  10  11   12
Hamming codes w/ Logarithmic Parity ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Hamming codes w/ Logarithmic Parity ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],1 = 1 2 = 2 3 = 1 + 2 4 = 4 5 = 4 + 1 6 = 4 + 2 7 = 4 + 2 + 1 0 1  0  1  0 1 0  r 1   r 2  m 1  r 3   m 2  m 3  m 4   1  2   3   4   5   6   7
Hamming codes w/ Logarithmic Parity ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],1 = 1 2 = 2 3 = 1 + 2 4 = 4 5 = 4 + 1 6 = 4 + 2 7 = 4 + 2 + 1 0 0  0  1  0 0 1  r 1   r 2  m 1  r 3   m 2  m 3  m 4   1  2   3   4   5   6   7
Hamming Code Summary ,[object Object],[object Object],[object Object],[object Object],[object Object]
Cyclic Redundancy for Error Detection ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Cyclic Redundancy for Error Detection ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Cyclic Redundancy for Error Detection ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Error Detection with CRC ,[object Object],[object Object],[object Object],[object Object],0 1 1 0 0x 3  + 1x 2  – 1x 1  + 0x 0 = 1 0 1 0 0 1 1x 5  + 0x 4  - 1x 3  + 0x 2  + 0x 1  - 1x 0 = ,[object Object]
Error Detection with CRC ,[object Object],0 1 1 0 - 0 1 1 1 = 0 0 0 1  0x 3  + 1x 2  - 1x 1  + 0x 0 - 0x 3  + 1x 2  - 1x 1  + 1x 0 = 0x 3  + 0x 2  + 0x 1  - 1x 0 = 1 0 1 0 0 1 - 0 0 1 1 0 0 = 1 0 0 1 0 1 1x 5  + 0x 4  - 1x 3  + 0x 2  + 0x 1  - 1x 0 - 0x 5  + 0x 4  + 1x 3  + 1x 2  + 0x 1  + 0x 0 = 1x 5  + 0x 4  - 2x 3  - 1x 2  + 0x 1  - 1x 0 = ,[object Object]
Error Detection with CRC ,[object Object]
Error Detection with CRC ,[object Object],[object Object],[object Object],[object Object],[object Object],remainder result divisor dividend
Error Detection with CRC ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],1 1 1  0 0 0 1 0 1 1 1 1  0 0 0  ÷  1 0 1  =  0 1 1 1 1 1  0 0 0  –  0 1 1  = 1 1 1  0 1 1
Error Detection with CRC ,[object Object],1 1 1  0 1 1 T  ( (x r M – R)/G  which is   divisible by  G  with 0 remainder) M  (original data)   M  (original data)   R  (remainder of  x r M / G )
Error Detection with CRC ,[object Object],[object Object],[object Object],[object Object],M = 1 1 1 1 1 1  0 1 1  /  0 1 1  =  0 0 0 0
Error Detection with CRC ,[object Object],[object Object],[object Object],[object Object],[object Object]
Error Detection with CRC ,[object Object],[object Object],[object Object],T =  1 1 1  0 1 1 T` = T + E =  1 1 0  0 1 1 E =  0 0 1 0 0 0 transmission error
Error Detection with CRC ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Error Detection with CRC ,[object Object],[object Object],= 100000100110000010001110110110111 ,[object Object],[object Object],[object Object]
Error Detection with CRC ,[object Object],[object Object],[object Object]
Error Detection with CRC ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Bursty Error Control ,[object Object],[object Object]
Bursty Error Control ,[object Object],[object Object]
Bursty Error Control ,[object Object],[object Object],[object Object]
Bursty Error Control ,[object Object],[object Object]
Error Control Design Choices ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Error Control Summary ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Framing
Framing  ,[object Object],[object Object],[object Object]
Character Count Framing ,[object Object]
Character Count Framing ,[object Object],[object Object]
Flag-Byte Framing ,[object Object],[object Object],usually a sequence number usually error control ,[object Object]
FLAG-bytes with Byte Stuffing ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
FLAG-bytes with Bit Stuffing ,[object Object],[object Object],[object Object],[object Object]
Putting it all together… DATA a chunk of network-layer binary data
Putting it all together… ESC DATA ESC bytes or 0 bits stuffed
Putting it all together… CTRL ESC DATA Control information such as  sender/receiver/seq. number/etc... (see Flow Control and MAC sub-layer) Control information such as  sender/receiver/seq. number/etc... (see Flow Control and MAC sub-layer)
Putting it all together… CRC ESC DATA CRC checksum or other error-control information CTRL
Putting it all together… FLAG FLAG CTRL CRC ESC DATA FLAG bytes mark start and end of frame (note, these are not CRC-protected) ,[object Object],FLAG bytes mark start and end of frame (note, these are not CRC-protected)
Flow Control
Flow Control Overview ,[object Object],[object Object],[object Object],[object Object],[object Object]
Unrestricted ,[object Object],[object Object]
Unrestricted ,[object Object]
Stop-and-Wait ,[object Object],[object Object]
Stop-and-Wait ,[object Object]
Stop-and-Wait ,[object Object]
Stop-and-Wait with Timeouts ,[object Object],[object Object]
Stop-and-Wait with Timeouts ,[object Object],sender receiver errors no errors
Stop-and-Wait with Timeouts ,[object Object],[object Object]
ARQ: Automatic Repeat Request ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
ARQ: Automatic Repeat Request ,[object Object]
ARQ: Automatic Repeat Request ,[object Object],[object Object],[object Object]
ARQ: Automatic Repeat Request ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Sliding Window: Go-Back-N ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Sliding Window: Go-Back-N ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Sliding Window: Go-Back-N ,[object Object],[object Object],[object Object],[object Object],[object Object]
Sliding Window: Go-Back-N ,[object Object]
Sliding Window: Go-Back-N ,[object Object]
Sliding Window: Go-Back-N ,[object Object]
Sliding Window: Go-Back-N ,[object Object],[object Object]
Sliding Window: Go-Back-N ,[object Object]
Sliding Window: Go-Back-N ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Sliding Window: Go-Back-N ,[object Object]
Sliding Window: Selective Repeat ,[object Object],[object Object]
Sliding Window: Selective Repeat ,[object Object],[object Object]
Sliding Window: Selective Repeat ,[object Object],[object Object]
Duplex Sliding Window ,[object Object],[object Object],[object Object],[object Object]
Real DLL protocols: HDLC ,[object Object],[object Object],(if piggybacked) (otherwise)
Real DLL protocols: LLC (802.2) ,[object Object],[object Object],[object Object]
Further Reading… ,[object Object],[object Object],[object Object]
Flow Control Summary ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Medium Access Control
Multiple Access Channels
Multiple Access Channels
MAC Overview ,[object Object],[object Object],[object Object],[object Object]
The MAC sub-layer Data-Link Layer provides packet send/receive service to Network Layer
The MAC sub-layer Physical Layer provides binary send/receive to Data-Link Layer
The MAC sub-layer But, different media have different constraints about multiple nodes accessing the medium
The MAC sub-layer ,[object Object],[object Object],[object Object],[object Object]
The MAC sub-layer MAC layer provides medium-access service to the Data-Link layer A separate  protocol  is needed to implement the  service  for each different transmission medium
Channel Allocation Problem ,[object Object],[object Object],[object Object],[object Object]
Channel Allocation Problem ,[object Object],[object Object]
Channel Allocation Problem ,[object Object],[object Object]
Channel Allocation Problem ,[object Object],[object Object]
Channel Allocation Problem ,[object Object],[object Object]
Channel Allocation Problem ,[object Object],[object Object],[object Object]
ALOHA Protocols ,[object Object],[object Object],[object Object]
ALOHA Protocols ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
ALOHA – Collision Detection ,[object Object],[object Object],[object Object]
Pure ALOHA ,[object Object],[object Object],[object Object]
Pure ALOHA ,[object Object],[object Object],[object Object]
Pure ALOHA ,[object Object],[object Object]
Slotted ALOHA ,[object Object],[object Object]
Slotted vs. Pure ALOHA ,[object Object],[object Object],[object Object],[object Object],[object Object]
MAC throughput performance ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
MAC throughput performance ,[object Object],[object Object],[object Object],[object Object]
MAC throughput performance ,[object Object],[object Object],[object Object]
Carrier Sense Protocols (CSMA) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
CSMA Performance
Carrier Sense Protocols (CSMA) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
CSMA/CD in Ethernet ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
CSMA/CD in Ethernet ,[object Object],[object Object]
CSMA/CD in Ethernet ,[object Object],[object Object]
CSMA/CD in Ethernet ,[object Object],[object Object]
CSMA/CD in Ethernet ,[object Object],[object Object],[object Object],[object Object]
CSMA/CD in Ethernet ,[object Object],[object Object],[object Object],[object Object]
CSMA/CD in Ethernet ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
CSMA/CD in Ethernet ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
CSMA/CD in Ethernet ,[object Object],[object Object],[object Object],[object Object]
CSMA/CD in Ethernet ,[object Object],[object Object],[object Object],[object Object]
CSMA/CA in WiFi ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
CSMA/CA in WiFi ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
CSMA/CA in WiFi ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
CSMA/CA in WiFi ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
CSMA/CA in WiFi ,[object Object],[object Object],[object Object],[object Object],[object Object]
CSMA/CA in WiFi ,[object Object],[object Object],[object Object],[object Object]
CSMA/CA in WiFi
CSMA with Adaptive Backoff ,[object Object]
CSMA with Adaptive Backoff ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
CSMA – Adaptive Backoff ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
802 error rates ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
802 addressing ,[object Object],[object Object],[object Object],[object Object],[object Object]
802 inter-connections ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
802 inter-connections ,[object Object]
802 inter-connections ,[object Object]
MAC Layer Summary ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Data Link Layer Summary ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

More Related Content

What's hot

data-link layer protocols
data-link layer protocols  data-link layer protocols
data-link layer protocols BE Smârt
 
Transmission Impairment (Attenuation, Distortion, Noise)
Transmission Impairment (Attenuation, Distortion, Noise)Transmission Impairment (Attenuation, Distortion, Noise)
Transmission Impairment (Attenuation, Distortion, Noise)Noor Nabi
 
Internet control message protocol
Internet control message protocolInternet control message protocol
Internet control message protocolasimnawaz54
 
Flow & Error Control
Flow & Error ControlFlow & Error Control
Flow & Error Controltameemyousaf
 
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESSComputer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESSDr. SELVAGANESAN S
 
TCP-IP Reference Model
TCP-IP Reference ModelTCP-IP Reference Model
TCP-IP Reference ModelMukesh Tekwani
 
Computer networks a tanenbaum - 5th editionee
Computer networks   a tanenbaum - 5th editioneeComputer networks   a tanenbaum - 5th editionee
Computer networks a tanenbaum - 5th editioneepawan1809
 
MULTIPLE ACCESS PROTOCOL COMPUTER NETWORKS
MULTIPLE ACCESS PROTOCOL COMPUTER NETWORKS MULTIPLE ACCESS PROTOCOL COMPUTER NETWORKS
MULTIPLE ACCESS PROTOCOL COMPUTER NETWORKS garishma bhatia
 

What's hot (20)

transport protocols
transport protocolstransport protocols
transport protocols
 
Framing Protocols
Framing ProtocolsFraming Protocols
Framing Protocols
 
Arp and rarp
Arp and rarpArp and rarp
Arp and rarp
 
The medium access sublayer
 The medium  access sublayer The medium  access sublayer
The medium access sublayer
 
Rarp
RarpRarp
Rarp
 
data-link layer protocols
data-link layer protocols  data-link layer protocols
data-link layer protocols
 
Transmission Impairment (Attenuation, Distortion, Noise)
Transmission Impairment (Attenuation, Distortion, Noise)Transmission Impairment (Attenuation, Distortion, Noise)
Transmission Impairment (Attenuation, Distortion, Noise)
 
Internet control message protocol
Internet control message protocolInternet control message protocol
Internet control message protocol
 
Transport Protocols
Transport ProtocolsTransport Protocols
Transport Protocols
 
Flow & Error Control
Flow & Error ControlFlow & Error Control
Flow & Error Control
 
Tcp IP Model
Tcp IP ModelTcp IP Model
Tcp IP Model
 
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESSComputer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
 
Arp and rarp
Arp and rarpArp and rarp
Arp and rarp
 
CS6551 COMPUTER NETWORKS
CS6551 COMPUTER NETWORKSCS6551 COMPUTER NETWORKS
CS6551 COMPUTER NETWORKS
 
TCP-IP Reference Model
TCP-IP Reference ModelTCP-IP Reference Model
TCP-IP Reference Model
 
Computer networks protocols
Computer networks protocolsComputer networks protocols
Computer networks protocols
 
Computer networks a tanenbaum - 5th editionee
Computer networks   a tanenbaum - 5th editioneeComputer networks   a tanenbaum - 5th editionee
Computer networks a tanenbaum - 5th editionee
 
Application layer
Application layerApplication layer
Application layer
 
Datalinklayer tanenbaum
Datalinklayer tanenbaumDatalinklayer tanenbaum
Datalinklayer tanenbaum
 
MULTIPLE ACCESS PROTOCOL COMPUTER NETWORKS
MULTIPLE ACCESS PROTOCOL COMPUTER NETWORKS MULTIPLE ACCESS PROTOCOL COMPUTER NETWORKS
MULTIPLE ACCESS PROTOCOL COMPUTER NETWORKS
 

Similar to The Data Link Layer

10-Error Detection-Kode Hamming.pptx
10-Error Detection-Kode Hamming.pptx10-Error Detection-Kode Hamming.pptx
10-Error Detection-Kode Hamming.pptxAhmadSyaifuddin35
 
Lecture Notes: EEEC6440315 Communication Systems - Information Theory
Lecture Notes:  EEEC6440315 Communication Systems - Information TheoryLecture Notes:  EEEC6440315 Communication Systems - Information Theory
Lecture Notes: EEEC6440315 Communication Systems - Information TheoryAIMST University
 
07 Data Link LayerError Control.pdf
07 Data Link LayerError Control.pdf07 Data Link LayerError Control.pdf
07 Data Link LayerError Control.pdfbaysahcmjames2kblax
 
Calculating the hamming code
Calculating the hamming codeCalculating the hamming code
Calculating the hamming codeUmesh Gupta
 
Calculating the hamming code (tutorial)
Calculating the hamming code (tutorial)Calculating the hamming code (tutorial)
Calculating the hamming code (tutorial)kiriinyaKev
 
Reed_Solomon_Implementation
Reed_Solomon_ImplementationReed_Solomon_Implementation
Reed_Solomon_Implementationramya c b
 
art_sklar7_reed-solomon
art_sklar7_reed-solomonart_sklar7_reed-solomon
art_sklar7_reed-solomonAniruddh Tyagi
 
art_sklar7_reed-solomon
art_sklar7_reed-solomonart_sklar7_reed-solomon
art_sklar7_reed-solomonaniruddh Tyagi
 
art_sklar7_reed-solomon
art_sklar7_reed-solomonart_sklar7_reed-solomon
art_sklar7_reed-solomonaniruddh Tyagi
 
Error detection and correction codes
Error detection and correction codesError detection and correction codes
Error detection and correction codesGargiKhanna1
 
CArcMOOC 02.04 - Special encodings
CArcMOOC 02.04 - Special encodingsCArcMOOC 02.04 - Special encodings
CArcMOOC 02.04 - Special encodingsAlessandro Bogliolo
 
New error-detection
New error-detectionNew error-detection
New error-detectionNitesh Singh
 
New error-detection (2)
New error-detection (2)New error-detection (2)
New error-detection (2)Nitesh Singh
 
Error dectation and correction
Error dectation and correctionError dectation and correction
Error dectation and correctionfg657
 

Similar to The Data Link Layer (20)

10-Error Detection-Kode Hamming.pptx
10-Error Detection-Kode Hamming.pptx10-Error Detection-Kode Hamming.pptx
10-Error Detection-Kode Hamming.pptx
 
Lecture Notes: EEEC6440315 Communication Systems - Information Theory
Lecture Notes:  EEEC6440315 Communication Systems - Information TheoryLecture Notes:  EEEC6440315 Communication Systems - Information Theory
Lecture Notes: EEEC6440315 Communication Systems - Information Theory
 
B041306015
B041306015B041306015
B041306015
 
07 Data Link LayerError Control.pdf
07 Data Link LayerError Control.pdf07 Data Link LayerError Control.pdf
07 Data Link LayerError Control.pdf
 
Calculating the hamming code
Calculating the hamming codeCalculating the hamming code
Calculating the hamming code
 
Calculating the hamming code (tutorial)
Calculating the hamming code (tutorial)Calculating the hamming code (tutorial)
Calculating the hamming code (tutorial)
 
Hamming code checksum
Hamming code  checksumHamming code  checksum
Hamming code checksum
 
rs_1.pptx
rs_1.pptxrs_1.pptx
rs_1.pptx
 
Reed_Solomon_Implementation
Reed_Solomon_ImplementationReed_Solomon_Implementation
Reed_Solomon_Implementation
 
art_sklar7_reed-solomon
art_sklar7_reed-solomonart_sklar7_reed-solomon
art_sklar7_reed-solomon
 
art_sklar7_reed-solomon
art_sklar7_reed-solomonart_sklar7_reed-solomon
art_sklar7_reed-solomon
 
art_sklar7_reed-solomon
art_sklar7_reed-solomonart_sklar7_reed-solomon
art_sklar7_reed-solomon
 
Error detection and correction codes
Error detection and correction codesError detection and correction codes
Error detection and correction codes
 
Es272 ch2
Es272 ch2Es272 ch2
Es272 ch2
 
Hamlet_Khachatryan_57--61
Hamlet_Khachatryan_57--61Hamlet_Khachatryan_57--61
Hamlet_Khachatryan_57--61
 
K034066071
K034066071K034066071
K034066071
 
CArcMOOC 02.04 - Special encodings
CArcMOOC 02.04 - Special encodingsCArcMOOC 02.04 - Special encodings
CArcMOOC 02.04 - Special encodings
 
New error-detection
New error-detectionNew error-detection
New error-detection
 
New error-detection (2)
New error-detection (2)New error-detection (2)
New error-detection (2)
 
Error dectation and correction
Error dectation and correctionError dectation and correction
Error dectation and correction
 

Recently uploaded

Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonJericReyAuditor
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxAnaBeatriceAblay2
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 

Recently uploaded (20)

Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lesson
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 

The Data Link Layer

  • 1. Computer Networks (06-05933) The Data-Link Layer Rob Minson, rm. 134 [email_address]
  • 2. Data Link Layer Overview
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9. Error Control Correction and Detection Schemes
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35. Hamming Codes w/ Logarithmic Parity 0 0 0 0 0 0 0 0 0 0 0 0 r 1 r 2 m 1 r 3 m 2 m 3 m 4 r 4 m 5 m 6 m 7 m 8 1 2 3 4 5 6 7 8 9 10 11 12 r 4 (8) r 3 (4) r 2 (2) r 1 (1) 12 11 10 9 8 7 6 5 4 3 2 1
  • 36. Hamming Codes w/ Logarithmic Parity ? ? 0 ? 0 1 0 ? 1 1 0 0 r 1 r 2 m 1 r 3 m 2 m 3 m 4 r 4 m 5 m 6 m 7 m 8 1 2 3 4 5 6 7 8 9 10 11 12 r 4 (8) r 3 (4) r 2 (2) r 1 (1) 12 11 10 9 8 7 6 5 4 3 2 1
  • 37. Hamming Codes w/ Logarithmic Parity 1 0 0 1 0 1 0 0 1 1 0 0 r 1 r 2 m 1 r 3 m 2 m 3 m 4 r 4 m 5 m 6 m 7 m 8 1 2 3 4 5 6 7 8 9 10 11 12 r 4 (8) r 3 (4) r 2 (2) r 1 (1) 12 11 10 9 8 7 6 5 4 3 2 1
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53.
  • 54.
  • 55.
  • 56.
  • 57.
  • 58.
  • 59.
  • 60.
  • 61.
  • 62.
  • 63.
  • 64.
  • 65.
  • 66.
  • 68.
  • 69.
  • 70.
  • 71.
  • 72.
  • 73.
  • 74. Putting it all together… DATA a chunk of network-layer binary data
  • 75. Putting it all together… ESC DATA ESC bytes or 0 bits stuffed
  • 76. Putting it all together… CTRL ESC DATA Control information such as sender/receiver/seq. number/etc... (see Flow Control and MAC sub-layer) Control information such as sender/receiver/seq. number/etc... (see Flow Control and MAC sub-layer)
  • 77. Putting it all together… CRC ESC DATA CRC checksum or other error-control information CTRL
  • 78.
  • 80.
  • 81.
  • 82.
  • 83.
  • 84.
  • 85.
  • 86.
  • 87.
  • 88.
  • 89.
  • 90.
  • 91.
  • 92.
  • 93.
  • 94.
  • 95.
  • 96.
  • 97.
  • 98.
  • 99.
  • 100.
  • 101.
  • 102.
  • 103.
  • 104.
  • 105.
  • 106.
  • 107.
  • 108.
  • 109.
  • 110.
  • 114.
  • 115. The MAC sub-layer Data-Link Layer provides packet send/receive service to Network Layer
  • 116. The MAC sub-layer Physical Layer provides binary send/receive to Data-Link Layer
  • 117. The MAC sub-layer But, different media have different constraints about multiple nodes accessing the medium
  • 118.
  • 119. The MAC sub-layer MAC layer provides medium-access service to the Data-Link layer A separate protocol is needed to implement the service for each different transmission medium
  • 120.
  • 121.
  • 122.
  • 123.
  • 124.
  • 125.
  • 126.
  • 127.
  • 128.
  • 129.
  • 130.
  • 131.
  • 132.
  • 133.
  • 134.
  • 135.
  • 136.
  • 137.
  • 139.
  • 140.
  • 141.
  • 142.
  • 143.
  • 144.
  • 145.
  • 146.
  • 147.
  • 148.
  • 149.
  • 150.
  • 151.
  • 152.
  • 153.
  • 154.
  • 155.
  • 157.
  • 158.
  • 159.
  • 160.
  • 161.
  • 162.
  • 163.
  • 164.
  • 165.
  • 166.