SlideShare une entreprise Scribd logo
1  sur  51
Computer Networks
(Professional Elective )
Class: III/II Branch: ECE-B
Prepared by
Mr.D.Durga Prasad
Assistant Professor
ECE Dept. VIT, Bhimavaram
UNIT-3 Syllabus
 The Data Link Layer
Services Provided to the Network Layer
 Framing
Error Control
Flow Control
 Error Detection and Correction
 Error-Correcting Codes Error Detecting Codes
 Elementary Data Link Protocols
A Simplex Stop and Wait Protocol for an Error free channel
A Simplex Stop and Wait Protocol for a Noisy Channel
 Sliding Window Protocols
A One Bit Sliding Window Protocol
A Protocol Using Go-Back-N
A Protocol Using Selective Repeat.
Contd…
Contd…
Contd…
Contd…
Contd…
Contd…
Contd…
Contd…
Contd…
Contd…
Contd…
Contd…
Contd…
Contd…
Contd...
Contd…
Contd…
Contd..
Contd..
Contd..
Contd..
Contd..
Contd...
Contd..
Contd..
Contd..
Contd..
Contd..
Contd..
 Above Figure provides an outline of the three basic steps in CRC.
 1. A string of n 0s is appended to the data unit. The number n is 1 less
than the number of bits in the predetermined divisor, which is n + 1 bit.
 2. The newly elongated data unit is divided by the divisor, using a
process called binary division. The remainder resulting from this
division is the CRC.
 3. The CRC of n bits derived in step 2 replaces the appended 0s at the
end of the data unit. Note that the CRC may consist of all 0s.
Contd..
Contd..
Data Link Layer protocols
 Data Link Layer protocols can be divided into two types :
 1.Elementary protocols
 2.Sliding window protocols
 Elementary DLL protocols are further divided into three types:
 1.An Unrestricted Simplex Protocol(Utopian simplex protocol)
 2.A Simplex Stop-and-Wait Protocol
 3.A Simplex Protocol for a Noisy Channel
A Simplex Stop and Wait Protocol for an
Error free channel
 In this protocol the sender sends a single frame to receiver & waits for an
acknowledgment before sending another frame.
 The next frame is sent by sender only when acknowledgment of previous
frame is received.
 This process continues as long as the sender has data to send.
 The advantage of this protocol is that it is able to prevent the sender from
flooding the receiver.
 The disadvantage is that the sender should wait till it gets an ACK of
previous frame before it sends next frame.
 If the acknowledgment frame gets corrupted, the sender cannot perform
anymore.
Contd..
 In this protocol we assume that:
 Data are transmitted in one direction only
 No errors occur (noiseless channel)
 The receiver can only process the received information at a finite rate.
Contd..
A Simplex Stop and Wait Protocol
for a Noisy Channel
 In this protocol the error free assumption in protocol 2 is dropped i.e. frames may
be either damaged or lost completely.
 The sender will send a frame, the receiver will send an ACK frame only if the
frame is received correctly. If the frame is in error the receiver simply ignores it; the
transmitter would time out and would retransmit it.
 Protocols in which the sender waits for a positive acknowledgement before
advancing to the next frame are often called stop and wait Automatic Repeat
Request (ARQ).
 One problem with the above scheme is that if the ACK frame is lost or damaged,
duplicate frames are accepted at the receiver without the receiver knowing it.
Contd..
 To overcome this problem sender put a sequence number in the header of each
frame it sends.
 The receiver then can check the sequence number of each arriving frame to see
if it is a new frame or a duplicate to be discarded.
 This protocol can transmit one frame at a time.
 sender always waits for acknowledgement even if it has next frame ready to
send(poor utilization of band width).
Contd..
Contd..
Contd..
Contd..
Contd..

Contenu connexe

Similaire à CN UNIT-3 PPT R20 computer networks .pptx

U2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptx
U2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptxU2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptx
U2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptxk2w9psdb96
 
Dcn ppt by roma
Dcn ppt by romaDcn ppt by roma
Dcn ppt by romaboraroma
 
Importance of sliding window protocol
Importance of sliding window protocolImportance of sliding window protocol
Importance of sliding window protocoleSAT Journals
 
Importance of sliding window protocol
Importance of sliding window protocolImportance of sliding window protocol
Importance of sliding window protocoleSAT Publishing House
 
CN R16 -UNIT-3.pdf
CN R16 -UNIT-3.pdfCN R16 -UNIT-3.pdf
CN R16 -UNIT-3.pdfJoshuaeeda1
 
Computer Network Notes UNIT II
Computer Network Notes UNIT IIComputer Network Notes UNIT II
Computer Network Notes UNIT IINANDINI SHARMA
 
Dcn ppt on data link layer
Dcn ppt on data link layerDcn ppt on data link layer
Dcn ppt on data link layerroma bora
 
A Survey of Different Approaches for Differentiating Bit Error and Congestion...
A Survey of Different Approaches for Differentiating Bit Error and Congestion...A Survey of Different Approaches for Differentiating Bit Error and Congestion...
A Survey of Different Approaches for Differentiating Bit Error and Congestion...IJERD Editor
 
Data link layer
Data link layerData link layer
Data link layersbkbca
 
Jaimin chp-3 - data-link layer- 2011 batch
Jaimin   chp-3 - data-link layer- 2011 batchJaimin   chp-3 - data-link layer- 2011 batch
Jaimin chp-3 - data-link layer- 2011 batchJaimin Jani
 
Flow Control (1).ppt
Flow Control (1).pptFlow Control (1).ppt
Flow Control (1).pptsarthakgithub
 

Similaire à CN UNIT-3 PPT R20 computer networks .pptx (20)

stop and wait
stop and waitstop and wait
stop and wait
 
U2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptx
U2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptxU2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptx
U2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptx
 
Transport layer
Transport layerTransport layer
Transport layer
 
Computer network
Computer networkComputer network
Computer network
 
07 data linkcontrol
07 data linkcontrol07 data linkcontrol
07 data linkcontrol
 
Unit 2
Unit 2Unit 2
Unit 2
 
datalinklayermukesh
datalinklayermukeshdatalinklayermukesh
datalinklayermukesh
 
Data link layer
Data link layer Data link layer
Data link layer
 
Unit 2 ppt 3.ppt
Unit 2 ppt 3.pptUnit 2 ppt 3.ppt
Unit 2 ppt 3.ppt
 
Dcn ppt by roma
Dcn ppt by romaDcn ppt by roma
Dcn ppt by roma
 
Importance of sliding window protocol
Importance of sliding window protocolImportance of sliding window protocol
Importance of sliding window protocol
 
Importance of sliding window protocol
Importance of sliding window protocolImportance of sliding window protocol
Importance of sliding window protocol
 
Data link layer
Data link layerData link layer
Data link layer
 
CN R16 -UNIT-3.pdf
CN R16 -UNIT-3.pdfCN R16 -UNIT-3.pdf
CN R16 -UNIT-3.pdf
 
Computer Network Notes UNIT II
Computer Network Notes UNIT IIComputer Network Notes UNIT II
Computer Network Notes UNIT II
 
Dcn ppt on data link layer
Dcn ppt on data link layerDcn ppt on data link layer
Dcn ppt on data link layer
 
A Survey of Different Approaches for Differentiating Bit Error and Congestion...
A Survey of Different Approaches for Differentiating Bit Error and Congestion...A Survey of Different Approaches for Differentiating Bit Error and Congestion...
A Survey of Different Approaches for Differentiating Bit Error and Congestion...
 
Data link layer
Data link layerData link layer
Data link layer
 
Jaimin chp-3 - data-link layer- 2011 batch
Jaimin   chp-3 - data-link layer- 2011 batchJaimin   chp-3 - data-link layer- 2011 batch
Jaimin chp-3 - data-link layer- 2011 batch
 
Flow Control (1).ppt
Flow Control (1).pptFlow Control (1).ppt
Flow Control (1).ppt
 

Dernier

UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTUUNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTUankushspencer015
 
Artificial intelligence presentation2-171219131633.pdf
Artificial intelligence presentation2-171219131633.pdfArtificial intelligence presentation2-171219131633.pdf
Artificial intelligence presentation2-171219131633.pdfKira Dess
 
Intro to Design (for Engineers) at Sydney Uni
Intro to Design (for Engineers) at Sydney UniIntro to Design (for Engineers) at Sydney Uni
Intro to Design (for Engineers) at Sydney UniR. Sosa
 
Interfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdfInterfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdfragupathi90
 
21scheme vtu syllabus of visveraya technological university
21scheme vtu syllabus of visveraya technological university21scheme vtu syllabus of visveraya technological university
21scheme vtu syllabus of visveraya technological universityMohd Saifudeen
 
Developing a smart system for infant incubators using the internet of things ...
Developing a smart system for infant incubators using the internet of things ...Developing a smart system for infant incubators using the internet of things ...
Developing a smart system for infant incubators using the internet of things ...IJECEIAES
 
electrical installation and maintenance.
electrical installation and maintenance.electrical installation and maintenance.
electrical installation and maintenance.benjamincojr
 
Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..MaherOthman7
 
Raashid final report on Embedded Systems
Raashid final report on Embedded SystemsRaashid final report on Embedded Systems
Raashid final report on Embedded SystemsRaashidFaiyazSheikh
 
Autodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptxAutodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptxMustafa Ahmed
 
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdfInvolute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdfJNTUA
 
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas SachpazisSeismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas SachpazisDr.Costas Sachpazis
 
Working Principle of Echo Sounder and Doppler Effect.pdf
Working Principle of Echo Sounder and Doppler Effect.pdfWorking Principle of Echo Sounder and Doppler Effect.pdf
Working Principle of Echo Sounder and Doppler Effect.pdfSkNahidulIslamShrabo
 
5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...archanaece3
 
Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...IJECEIAES
 
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfInstruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfEr.Sonali Nasikkar
 
engineering chemistry power point presentation
engineering chemistry  power point presentationengineering chemistry  power point presentation
engineering chemistry power point presentationsj9399037128
 
History of Indian Railways - the story of Growth & Modernization
History of Indian Railways - the story of Growth & ModernizationHistory of Indian Railways - the story of Growth & Modernization
History of Indian Railways - the story of Growth & ModernizationEmaan Sharma
 
Insurance management system project report.pdf
Insurance management system project report.pdfInsurance management system project report.pdf
Insurance management system project report.pdfKamal Acharya
 
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...josephjonse
 

Dernier (20)

UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTUUNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
 
Artificial intelligence presentation2-171219131633.pdf
Artificial intelligence presentation2-171219131633.pdfArtificial intelligence presentation2-171219131633.pdf
Artificial intelligence presentation2-171219131633.pdf
 
Intro to Design (for Engineers) at Sydney Uni
Intro to Design (for Engineers) at Sydney UniIntro to Design (for Engineers) at Sydney Uni
Intro to Design (for Engineers) at Sydney Uni
 
Interfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdfInterfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdf
 
21scheme vtu syllabus of visveraya technological university
21scheme vtu syllabus of visveraya technological university21scheme vtu syllabus of visveraya technological university
21scheme vtu syllabus of visveraya technological university
 
Developing a smart system for infant incubators using the internet of things ...
Developing a smart system for infant incubators using the internet of things ...Developing a smart system for infant incubators using the internet of things ...
Developing a smart system for infant incubators using the internet of things ...
 
electrical installation and maintenance.
electrical installation and maintenance.electrical installation and maintenance.
electrical installation and maintenance.
 
Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..
 
Raashid final report on Embedded Systems
Raashid final report on Embedded SystemsRaashid final report on Embedded Systems
Raashid final report on Embedded Systems
 
Autodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptxAutodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptx
 
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdfInvolute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
 
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas SachpazisSeismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
 
Working Principle of Echo Sounder and Doppler Effect.pdf
Working Principle of Echo Sounder and Doppler Effect.pdfWorking Principle of Echo Sounder and Doppler Effect.pdf
Working Principle of Echo Sounder and Doppler Effect.pdf
 
5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...
 
Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...
 
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfInstruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
 
engineering chemistry power point presentation
engineering chemistry  power point presentationengineering chemistry  power point presentation
engineering chemistry power point presentation
 
History of Indian Railways - the story of Growth & Modernization
History of Indian Railways - the story of Growth & ModernizationHistory of Indian Railways - the story of Growth & Modernization
History of Indian Railways - the story of Growth & Modernization
 
Insurance management system project report.pdf
Insurance management system project report.pdfInsurance management system project report.pdf
Insurance management system project report.pdf
 
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
 

CN UNIT-3 PPT R20 computer networks .pptx

  • 1. Computer Networks (Professional Elective ) Class: III/II Branch: ECE-B Prepared by Mr.D.Durga Prasad Assistant Professor ECE Dept. VIT, Bhimavaram
  • 2. UNIT-3 Syllabus  The Data Link Layer Services Provided to the Network Layer  Framing Error Control Flow Control  Error Detection and Correction  Error-Correcting Codes Error Detecting Codes  Elementary Data Link Protocols A Simplex Stop and Wait Protocol for an Error free channel A Simplex Stop and Wait Protocol for a Noisy Channel  Sliding Window Protocols A One Bit Sliding Window Protocol A Protocol Using Go-Back-N A Protocol Using Selective Repeat.
  • 3.
  • 17.
  • 22.
  • 23.
  • 25.
  • 35.
  • 37. Contd..  Above Figure provides an outline of the three basic steps in CRC.  1. A string of n 0s is appended to the data unit. The number n is 1 less than the number of bits in the predetermined divisor, which is n + 1 bit.  2. The newly elongated data unit is divided by the divisor, using a process called binary division. The remainder resulting from this division is the CRC.  3. The CRC of n bits derived in step 2 replaces the appended 0s at the end of the data unit. Note that the CRC may consist of all 0s.
  • 40. Data Link Layer protocols  Data Link Layer protocols can be divided into two types :  1.Elementary protocols  2.Sliding window protocols  Elementary DLL protocols are further divided into three types:  1.An Unrestricted Simplex Protocol(Utopian simplex protocol)  2.A Simplex Stop-and-Wait Protocol  3.A Simplex Protocol for a Noisy Channel
  • 41. A Simplex Stop and Wait Protocol for an Error free channel  In this protocol the sender sends a single frame to receiver & waits for an acknowledgment before sending another frame.  The next frame is sent by sender only when acknowledgment of previous frame is received.  This process continues as long as the sender has data to send.  The advantage of this protocol is that it is able to prevent the sender from flooding the receiver.  The disadvantage is that the sender should wait till it gets an ACK of previous frame before it sends next frame.  If the acknowledgment frame gets corrupted, the sender cannot perform anymore.
  • 42. Contd..  In this protocol we assume that:  Data are transmitted in one direction only  No errors occur (noiseless channel)  The receiver can only process the received information at a finite rate.
  • 44. A Simplex Stop and Wait Protocol for a Noisy Channel  In this protocol the error free assumption in protocol 2 is dropped i.e. frames may be either damaged or lost completely.  The sender will send a frame, the receiver will send an ACK frame only if the frame is received correctly. If the frame is in error the receiver simply ignores it; the transmitter would time out and would retransmit it.  Protocols in which the sender waits for a positive acknowledgement before advancing to the next frame are often called stop and wait Automatic Repeat Request (ARQ).  One problem with the above scheme is that if the ACK frame is lost or damaged, duplicate frames are accepted at the receiver without the receiver knowing it.
  • 45. Contd..  To overcome this problem sender put a sequence number in the header of each frame it sends.  The receiver then can check the sequence number of each arriving frame to see if it is a new frame or a duplicate to be discarded.  This protocol can transmit one frame at a time.  sender always waits for acknowledgement even if it has next frame ready to send(poor utilization of band width).
  • 46.