SlideShare a Scribd company logo
1 of 30
Different protocols for data
communication network
Chapter 11
Data communication and networks
Framing
• The physical layer provides bit synchronization to ensure that the sender
and receiver use the same bit durations and timing.
• Data link layer needs to pack bits into frames, so that each frame is
distinguishable from another
• Separate a message from one source to a destination, or from other
messages to other destinations, by adding a sender address and a
destination address .
• Fixed-size framing: There is no need for defining the boundaries of the
frames . ( example : ATM )
• Variable-size framing : Need a way to define the end of the frame and the
beginning of the next .
1. Character-oriented approach
2. bit-oriented approach
Character-Oriented Protocols
• To separate one frame from the next, an 8-bit (1-byte) flag is added at the
beginning and the end of a frame.
• Any pattern used for the flag could also be part of the information. If this
happens, the receiver, when it encounters this pattern in the middle of the data,
thinks it has reached the end of the frame.
• The data section is stuffed with an extra byte “byte stuffing” ,This byte is usually
called the escape character (ESC), which has a predefined bit pattern. Whenever
the receiver encounters the ESC character, it removes it from the data section and
treats the next character as data .
• If the ESC characters that are part of
the text must also be marked by another
ESC character. In other words, if the ESC
character is part of the text, an extra one
is added to show that the second one
is part of the text
Bit-Oriented Protocols
• Bit stuffing is the process of adding one extra “0” whenever five
consecutive 1’s follow a “0” in the data, so that the receiver does not
mistake the pattern “01111110” for a flag.
• This extra stuffed bit is eventually removed from the data by the receiver
Example :
Data : 01111110
Stuffed data : 011111010
Stuffed bit will be removed by receiver
flow control & error control
• Data link control = flow control + error control
• Flow control refers to a set of procedures used to restrict the amount of
data that the sender can send before waiting for acknowledgment.
• Error control : It allows the receiver to inform the sender of any frames
lost or damaged in transmission and coordinates the retransmission of
those frames by the sender. This process is called automatic repeat
request (ARQ).
Simplest Protocol ( no flow control and
no error control )
• There is no action until there is a request from the network layer.
• The sender site cannot send a frame until its network layer has a data packet to
send. The receiver site cannot deliver a data packet to its network layer until a
frame arrives
Simplest Protocol
• Sender-site algorithm
• Receiver-site algorithm
Stop-and-Wait Protocol
• sender sends one frame, stops until it receives confirmation from the
receiver (okay to go ahead), and then sends the next frame .
• Adds flow control to simplest protocol
• At any time, there is either one data frame on the forward channel or one
ACK frame on the reverse channel (half-duplex link ) .
Stop-and-Wait Protocol
• Sender-site algorithm
• Receiver-site algorithm
Stop-and-Wait ARQ
• Adds a simple error control mechanism to the Stop-and-Wait Protocol .
• When the frame arrives at the receiver site, it is checked and if it is corrupted, it is
silently discarded , same process is done vice-versa .
• The sender keeps a copy of the sent frame. At the same time, it starts a timer. If
the timer expires and there is no ACK for the sent frame, the frame is resent, the
copy is held, and the timer is restarted .
• Different cases :
1. The frame arrives safe and sound at the receiver site , the receiver sends an
acknowledgment. The acknowledgment arrives at the sender site, causing the
sender to send the next frame numbered x + 1.
2. The frame arrives safe and sound at the receiver site; the receiver sends an
acknowledgment, but the acknowledgment is corrupted or lost. The sender
resends the frame (numbered x) after the time-out.
3. The frame is corrupted or never arrives at the receiver site; the sender resends
the frame (numbered x) after the time-out
• sequence numbering :
Sender to receiver frame’s
1st frame  0 : 2nd frame  1 : 3rd frame  0 : 4th frame  1 and so on
Receiver to sender frame’s
if frame 0 has arrived safe and sound, the receiver sends an ACK frame with
acknowledgment 1 (meaning frame 1 is expected next).
Stop-and-Wait ARQ
• Sender-site algorithm
Stop-and-Wait ARQ
• Receiver-site algorithm
Stop-and-Wait ARQ: Example
Go-Back-N ARQ
• In this protocol we can send several frames before receiving
acknowledgments; we keep a copy of these frames until the ACK
arrive.
• If the header of the frame allows m bits for the sequence number,
the sequence numbers range from 0 to 2m - 1.
• The send window is an abstract concept defining an imaginary box
of size 2m − 1 with three variables: Sf , Sn , and Ssize .
• The send window can slide one or more slots when a valid
acknowledgment arrives.
• The receive window is an abstract concept defining an imaginary
box of “size 1” with one single variable Rn. The window slides
when a correct frame has arrived; sliding occurs one slot at a time.
• The receiver sends a positive acknowledgment if a frame has
arrived safe and sound and in order. If a frame is damaged or is
received out of order, the receiver is silent and will discard all
subsequent frames until it receives the one it is expecting
Limitation for window size
Go-Back-N ARQ: Example 1
Go-Back-N ARQ: Example 2
Selective Repeat ARQ
• In a noisy link a frame has a higher probability
of damage, which means the resending of
multiple frames. This resending uses up the
bandwidth and slows down the transmission .
• another mechanism that does not resend “N”
frames when just 1 frame is damaged; only
the damaged frame is resent. This mechanism
is called Selective Repeat ARQ. It is more
efficient for noisy links .
Selective Repeat ARQ: Example
Piggybacking
• To improve the efficiency of the bidirectional protocols
• Piggybacking in Go-Back-N ARQ
HDLC
• High-level Data Link Control : bit-oriented protocol for
communication
• Two common transfer mode: normal response mode (NRM) and
asynchronous balanced mode (ABM)
HDLC: Frames
• I(information)-frames are used to transport user data and control
information relating to user data (piggybacking) .
• S(supervisory)-frames are used only to transport control information.
• U(unnumbered)-frames are reserved for system management.
• In multiple-frame transmissions, the ending flag of one frame can serve as
the beginning flag of the next frame.
HDLC: Frames fields
• Flag field. The flag field of an HDLC frame is an 8-bit sequence with the bit pattern
01111110
• Address field. The second field of an HDLC frame contains the address of the
secondary station. If a primary station created the frame, it contains a to address.
If a secondary creates the frame, it contains a from address. An address field can
be 1 byte or several bytes long, depending on the needs of the network. One byte
can identify up to 128 stations (l bit is used for another purpose).
• Control field. The control field is a 1- or 2-byte segment of the frame used for flow
and error control. The interpretation of bits in this field depends on the frame type
and its functionality
• Information field. The information field contains the user's data from the network
layer or management information. Its length can vary from one network to
another.
• FCS field. The frame check sequence (FCS) is the
HDLC error detection field. It can contain either a
2- or 4-byte ITU-T CRC.
Control fields
• Control Field for I-Frames :
1. If the first bit of the control field is 0, this means the frame is an I-frame.
2. The next 3 bits, called N(S), define the sequence number of the frame.
3. The last 3 bits, called N(R), correspond to the acknowledgment number
when piggybacking is used.
4. The single bit between N(S) and N(R) is called the P/F ( poll/final) bit. It has
meaning only when it is set (bit = 1) and can mean poll or final. It means poll
when the frame is sent by a primary station to a secondary. It means final
when the frame is sent by a secondary to a primary .
• Control Field for S-Frames :
1. If the first 2 bits of the control field is 10, frame is an S-frame.
2. The last 3 bits, called N(R), corresponds to the acknowledgment number
(ACK) or negative acknowledgment number (NAK) .
3. The 2 bits called code is used to define the type of S-frame
00 Receive ready n(r) = ACK number
01 Reject (REJ). n(r) = NAK number
10 Receive not ready (RNR) n(r) = ACK number
11 Selective reject (SREJ) n(r) = NAK number
Control Field for U-Frames
Point-to-Point Protocol: PPP
• Flag: 01111110 the same as HDLC, but it treated as a byte
because of PPP is a byte-oriented protocol
• Address: constant value ie 11111111 (broadcast address)
• Control: This field is set to the constant value 11000000 , No
need because PPP has no flow control and limited error control
• Protocol. The protocol field defines what is being carried in
the data field: either user data or other information.
• This field carries either the user data or other information
that we will discuss shortly. The data field is a sequence of
bytes with the default of a maximum of 1500 bytes;
• This field is set to the constant value 11000000

More Related Content

What's hot

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
 
Limitations of memory system performance
Limitations of memory system performanceLimitations of memory system performance
Limitations of memory system performanceSyed Zaid Irshad
 
14 data link control
14 data link control14 data link control
14 data link controlarvindsarja
 
Stacks & subroutines 1
Stacks & subroutines 1Stacks & subroutines 1
Stacks & subroutines 1deval patel
 
data-link layer protocols
data-link layer protocols  data-link layer protocols
data-link layer protocols BE Smârt
 
Memory organization of 8051
Memory organization of 8051Memory organization of 8051
Memory organization of 8051Muthu Manickam
 
Intel 8257 programmable dma controller
Intel 8257 programmable dma controllerIntel 8257 programmable dma controller
Intel 8257 programmable dma controllerabdulugc
 
Spanning tree protocol
Spanning tree protocolSpanning tree protocol
Spanning tree protocolMuuluu
 
Flow control and error control
Flow control and error controlFlow control and error control
Flow control and error controlBHUVIJAYAVELU
 
What Is Sliding Window Protocol?
What Is Sliding Window Protocol?What Is Sliding Window Protocol?
What Is Sliding Window Protocol?Simplilearn
 
Go back-n protocol
Go back-n protocolGo back-n protocol
Go back-n protocolSTEFFY D
 
Token Ring : 802.5
Token Ring : 802.5Token Ring : 802.5
Token Ring : 802.5Pnkj_Sharma
 

What's hot (20)

Token bus
Token busToken bus
Token bus
 
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
 
Limitations of memory system performance
Limitations of memory system performanceLimitations of memory system performance
Limitations of memory system performance
 
14 data link control
14 data link control14 data link control
14 data link control
 
Stop and-wait protocol
Stop and-wait protocolStop and-wait protocol
Stop and-wait protocol
 
Stacks & subroutines 1
Stacks & subroutines 1Stacks & subroutines 1
Stacks & subroutines 1
 
Data link control protocol(1)
Data link control protocol(1)Data link control protocol(1)
Data link control protocol(1)
 
data-link layer protocols
data-link layer protocols  data-link layer protocols
data-link layer protocols
 
Hdlc
HdlcHdlc
Hdlc
 
Memory organization of 8051
Memory organization of 8051Memory organization of 8051
Memory organization of 8051
 
Intel 8257 programmable dma controller
Intel 8257 programmable dma controllerIntel 8257 programmable dma controller
Intel 8257 programmable dma controller
 
Spanning tree protocol
Spanning tree protocolSpanning tree protocol
Spanning tree protocol
 
Flow control and error control
Flow control and error controlFlow control and error control
Flow control and error control
 
What Is Sliding Window Protocol?
What Is Sliding Window Protocol?What Is Sliding Window Protocol?
What Is Sliding Window Protocol?
 
Ch12 microprocessor interrupts
Ch12 microprocessor interruptsCh12 microprocessor interrupts
Ch12 microprocessor interrupts
 
Go back-n protocol
Go back-n protocolGo back-n protocol
Go back-n protocol
 
Sliding window protocol
Sliding window protocolSliding window protocol
Sliding window protocol
 
Classes of ip addresses
Classes of ip addressesClasses of ip addresses
Classes of ip addresses
 
Flow control main
Flow control mainFlow control main
Flow control main
 
Token Ring : 802.5
Token Ring : 802.5Token Ring : 802.5
Token Ring : 802.5
 

Similar to Data Communication Protocols Explained

PCCN DATA LINK LAYER UNIT 4 NOTES
PCCN DATA LINK LAYER UNIT 4 NOTESPCCN DATA LINK LAYER UNIT 4 NOTES
PCCN DATA LINK LAYER UNIT 4 NOTESsirishayerraboina
 
a_presentation_on_hdlc_and_dlc_computer.ppt
a_presentation_on_hdlc_and_dlc_computer.ppta_presentation_on_hdlc_and_dlc_computer.ppt
a_presentation_on_hdlc_and_dlc_computer.pptBlackHat41
 
New framing-protocols
New framing-protocolsNew framing-protocols
New framing-protocolsNitesh Singh
 
Dcn ppt by roma
Dcn ppt by romaDcn ppt by roma
Dcn ppt by romaboraroma
 
Dcn ppt on data link layer
Dcn ppt on data link layerDcn ppt on data link layer
Dcn ppt on data link layerroma bora
 
Unit 4 data link layer
Unit 4 data link layerUnit 4 data link layer
Unit 4 data link layermekind
 
Unit IV_Flow.pptx
Unit IV_Flow.pptxUnit IV_Flow.pptx
Unit IV_Flow.pptxTejasRao8
 
Chapter 7 - Data Link Control Protocols 9e
Chapter 7 - Data Link Control Protocols 9eChapter 7 - Data Link Control Protocols 9e
Chapter 7 - Data Link Control Protocols 9eadpeer
 
09 Data Link LayerFlow Control.ppt
09 Data Link LayerFlow Control.ppt09 Data Link LayerFlow Control.ppt
09 Data Link LayerFlow Control.pptShaliniKumariGupta1
 
Data Link Control.ppt
Data Link Control.pptData Link Control.ppt
Data Link Control.pptTeshome48
 
Data Link Control Protocols
Data Link Control ProtocolsData Link Control Protocols
Data Link Control ProtocolsTechiNerd
 
Data link control & protocol concepts
Data link control & protocol conceptsData link control & protocol concepts
Data link control & protocol conceptsRaji Lakshmi
 
Chapter 11: Data Link Control
Chapter 11: Data Link ControlChapter 11: Data Link Control
Chapter 11: Data Link ControlJeoffnaRuth
 
DataLinkControl.ppt
DataLinkControl.pptDataLinkControl.ppt
DataLinkControl.pptMaddalaSeshu
 
Datalink control(framing,protocols)
Datalink control(framing,protocols)Datalink control(framing,protocols)
Datalink control(framing,protocols)Hira Awan
 

Similar to Data Communication Protocols Explained (20)

PCCN DATA LINK LAYER UNIT 4 NOTES
PCCN DATA LINK LAYER UNIT 4 NOTESPCCN DATA LINK LAYER UNIT 4 NOTES
PCCN DATA LINK LAYER UNIT 4 NOTES
 
a_presentation_on_hdlc_and_dlc_computer.ppt
a_presentation_on_hdlc_and_dlc_computer.ppta_presentation_on_hdlc_and_dlc_computer.ppt
a_presentation_on_hdlc_and_dlc_computer.ppt
 
New framing-protocols
New framing-protocolsNew framing-protocols
New framing-protocols
 
Dcn ppt by roma
Dcn ppt by romaDcn ppt by roma
Dcn ppt by roma
 
07 data linkcontrol
07 data linkcontrol07 data linkcontrol
07 data linkcontrol
 
Dcn ppt on data link layer
Dcn ppt on data link layerDcn ppt on data link layer
Dcn ppt on data link layer
 
Unit 4 data link layer
Unit 4 data link layerUnit 4 data link layer
Unit 4 data link layer
 
Unit IV_Flow.pptx
Unit IV_Flow.pptxUnit IV_Flow.pptx
Unit IV_Flow.pptx
 
DATA LINK LAYER.pdf
DATA LINK LAYER.pdfDATA LINK LAYER.pdf
DATA LINK LAYER.pdf
 
Chapter 7 - Data Link Control Protocols 9e
Chapter 7 - Data Link Control Protocols 9eChapter 7 - Data Link Control Protocols 9e
Chapter 7 - Data Link Control Protocols 9e
 
09 Data Link LayerFlow Control.ppt
09 Data Link LayerFlow Control.ppt09 Data Link LayerFlow Control.ppt
09 Data Link LayerFlow Control.ppt
 
Data Link Control.ppt
Data Link Control.pptData Link Control.ppt
Data Link Control.ppt
 
Data Link Control Protocols
Data Link Control ProtocolsData Link Control Protocols
Data Link Control Protocols
 
Data link layer (Unit 2).pdf
Data link layer (Unit 2).pdfData link layer (Unit 2).pdf
Data link layer (Unit 2).pdf
 
Data link control & protocol concepts
Data link control & protocol conceptsData link control & protocol concepts
Data link control & protocol concepts
 
Chapter 11: Data Link Control
Chapter 11: Data Link ControlChapter 11: Data Link Control
Chapter 11: Data Link Control
 
Unit 2 ppt 3.ppt
Unit 2 ppt 3.pptUnit 2 ppt 3.ppt
Unit 2 ppt 3.ppt
 
DataLinkControl.ppt
DataLinkControl.pptDataLinkControl.ppt
DataLinkControl.ppt
 
Protocols
ProtocolsProtocols
Protocols
 
Datalink control(framing,protocols)
Datalink control(framing,protocols)Datalink control(framing,protocols)
Datalink control(framing,protocols)
 

More from Nt Arvind

Quantitative Aptitude , Section-Arithmetic , Chapter-Percentages
Quantitative Aptitude , Section-Arithmetic , Chapter-PercentagesQuantitative Aptitude , Section-Arithmetic , Chapter-Percentages
Quantitative Aptitude , Section-Arithmetic , Chapter-PercentagesNt Arvind
 
Introduction to Sequential circuits and flip flops
Introduction to Sequential circuits and flip flops Introduction to Sequential circuits and flip flops
Introduction to Sequential circuits and flip flops Nt Arvind
 
Detail explanation about the HOQ ( House of quality ) concept in engineering ...
Detail explanation about the HOQ ( House of quality ) concept in engineering ...Detail explanation about the HOQ ( House of quality ) concept in engineering ...
Detail explanation about the HOQ ( House of quality ) concept in engineering ...Nt Arvind
 
Philosophy and Introduction of Engineering Design
Philosophy and Introduction of Engineering Design Philosophy and Introduction of Engineering Design
Philosophy and Introduction of Engineering Design Nt Arvind
 
Introduction of smart bus transportation project @ IICDC 2016-2017
Introduction of smart bus transportation project @ IICDC 2016-2017Introduction of smart bus transportation project @ IICDC 2016-2017
Introduction of smart bus transportation project @ IICDC 2016-2017Nt Arvind
 
8051 development board project report
8051 development board project report8051 development board project report
8051 development board project reportNt Arvind
 
Multiple access protocols in data communication networks
Multiple access protocols in data communication networksMultiple access protocols in data communication networks
Multiple access protocols in data communication networksNt Arvind
 
Error Detection and correction concepts in Data communication and networks
Error Detection and correction concepts in Data communication and networksError Detection and correction concepts in Data communication and networks
Error Detection and correction concepts in Data communication and networksNt Arvind
 
Switching concepts Data communication and networks
Switching concepts Data communication and networksSwitching concepts Data communication and networks
Switching concepts Data communication and networksNt Arvind
 
Basics on different types operational amplifier (op-amp)
Basics on different types operational amplifier (op-amp)Basics on different types operational amplifier (op-amp)
Basics on different types operational amplifier (op-amp)Nt Arvind
 

More from Nt Arvind (10)

Quantitative Aptitude , Section-Arithmetic , Chapter-Percentages
Quantitative Aptitude , Section-Arithmetic , Chapter-PercentagesQuantitative Aptitude , Section-Arithmetic , Chapter-Percentages
Quantitative Aptitude , Section-Arithmetic , Chapter-Percentages
 
Introduction to Sequential circuits and flip flops
Introduction to Sequential circuits and flip flops Introduction to Sequential circuits and flip flops
Introduction to Sequential circuits and flip flops
 
Detail explanation about the HOQ ( House of quality ) concept in engineering ...
Detail explanation about the HOQ ( House of quality ) concept in engineering ...Detail explanation about the HOQ ( House of quality ) concept in engineering ...
Detail explanation about the HOQ ( House of quality ) concept in engineering ...
 
Philosophy and Introduction of Engineering Design
Philosophy and Introduction of Engineering Design Philosophy and Introduction of Engineering Design
Philosophy and Introduction of Engineering Design
 
Introduction of smart bus transportation project @ IICDC 2016-2017
Introduction of smart bus transportation project @ IICDC 2016-2017Introduction of smart bus transportation project @ IICDC 2016-2017
Introduction of smart bus transportation project @ IICDC 2016-2017
 
8051 development board project report
8051 development board project report8051 development board project report
8051 development board project report
 
Multiple access protocols in data communication networks
Multiple access protocols in data communication networksMultiple access protocols in data communication networks
Multiple access protocols in data communication networks
 
Error Detection and correction concepts in Data communication and networks
Error Detection and correction concepts in Data communication and networksError Detection and correction concepts in Data communication and networks
Error Detection and correction concepts in Data communication and networks
 
Switching concepts Data communication and networks
Switching concepts Data communication and networksSwitching concepts Data communication and networks
Switching concepts Data communication and networks
 
Basics on different types operational amplifier (op-amp)
Basics on different types operational amplifier (op-amp)Basics on different types operational amplifier (op-amp)
Basics on different types operational amplifier (op-amp)
 

Recently uploaded

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
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........LeaCamillePacle
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayMakMakNepo
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
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
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxsqpmdrvczh
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
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
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 

Recently uploaded (20)

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 🔝✔️✔️
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up Friday
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
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
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
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
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 

Data Communication Protocols Explained

  • 1. Different protocols for data communication network Chapter 11 Data communication and networks
  • 2. Framing • The physical layer provides bit synchronization to ensure that the sender and receiver use the same bit durations and timing. • Data link layer needs to pack bits into frames, so that each frame is distinguishable from another • Separate a message from one source to a destination, or from other messages to other destinations, by adding a sender address and a destination address . • Fixed-size framing: There is no need for defining the boundaries of the frames . ( example : ATM ) • Variable-size framing : Need a way to define the end of the frame and the beginning of the next . 1. Character-oriented approach 2. bit-oriented approach
  • 3. Character-Oriented Protocols • To separate one frame from the next, an 8-bit (1-byte) flag is added at the beginning and the end of a frame. • Any pattern used for the flag could also be part of the information. If this happens, the receiver, when it encounters this pattern in the middle of the data, thinks it has reached the end of the frame. • The data section is stuffed with an extra byte “byte stuffing” ,This byte is usually called the escape character (ESC), which has a predefined bit pattern. Whenever the receiver encounters the ESC character, it removes it from the data section and treats the next character as data . • If the ESC characters that are part of the text must also be marked by another ESC character. In other words, if the ESC character is part of the text, an extra one is added to show that the second one is part of the text
  • 4. Bit-Oriented Protocols • Bit stuffing is the process of adding one extra “0” whenever five consecutive 1’s follow a “0” in the data, so that the receiver does not mistake the pattern “01111110” for a flag. • This extra stuffed bit is eventually removed from the data by the receiver Example : Data : 01111110 Stuffed data : 011111010 Stuffed bit will be removed by receiver
  • 5. flow control & error control • Data link control = flow control + error control • Flow control refers to a set of procedures used to restrict the amount of data that the sender can send before waiting for acknowledgment. • Error control : It allows the receiver to inform the sender of any frames lost or damaged in transmission and coordinates the retransmission of those frames by the sender. This process is called automatic repeat request (ARQ).
  • 6. Simplest Protocol ( no flow control and no error control ) • There is no action until there is a request from the network layer. • The sender site cannot send a frame until its network layer has a data packet to send. The receiver site cannot deliver a data packet to its network layer until a frame arrives
  • 7. Simplest Protocol • Sender-site algorithm • Receiver-site algorithm
  • 8. Stop-and-Wait Protocol • sender sends one frame, stops until it receives confirmation from the receiver (okay to go ahead), and then sends the next frame . • Adds flow control to simplest protocol • At any time, there is either one data frame on the forward channel or one ACK frame on the reverse channel (half-duplex link ) .
  • 9. Stop-and-Wait Protocol • Sender-site algorithm • Receiver-site algorithm
  • 10. Stop-and-Wait ARQ • Adds a simple error control mechanism to the Stop-and-Wait Protocol . • When the frame arrives at the receiver site, it is checked and if it is corrupted, it is silently discarded , same process is done vice-versa . • The sender keeps a copy of the sent frame. At the same time, it starts a timer. If the timer expires and there is no ACK for the sent frame, the frame is resent, the copy is held, and the timer is restarted . • Different cases : 1. The frame arrives safe and sound at the receiver site , the receiver sends an acknowledgment. The acknowledgment arrives at the sender site, causing the sender to send the next frame numbered x + 1. 2. The frame arrives safe and sound at the receiver site; the receiver sends an acknowledgment, but the acknowledgment is corrupted or lost. The sender resends the frame (numbered x) after the time-out. 3. The frame is corrupted or never arrives at the receiver site; the sender resends the frame (numbered x) after the time-out • sequence numbering : Sender to receiver frame’s 1st frame  0 : 2nd frame  1 : 3rd frame  0 : 4th frame  1 and so on Receiver to sender frame’s if frame 0 has arrived safe and sound, the receiver sends an ACK frame with acknowledgment 1 (meaning frame 1 is expected next).
  • 11.
  • 15. Go-Back-N ARQ • In this protocol we can send several frames before receiving acknowledgments; we keep a copy of these frames until the ACK arrive. • If the header of the frame allows m bits for the sequence number, the sequence numbers range from 0 to 2m - 1. • The send window is an abstract concept defining an imaginary box of size 2m − 1 with three variables: Sf , Sn , and Ssize . • The send window can slide one or more slots when a valid acknowledgment arrives. • The receive window is an abstract concept defining an imaginary box of “size 1” with one single variable Rn. The window slides when a correct frame has arrived; sliding occurs one slot at a time. • The receiver sends a positive acknowledgment if a frame has arrived safe and sound and in order. If a frame is damaged or is received out of order, the receiver is silent and will discard all subsequent frames until it receives the one it is expecting
  • 16.
  • 17.
  • 21. Selective Repeat ARQ • In a noisy link a frame has a higher probability of damage, which means the resending of multiple frames. This resending uses up the bandwidth and slows down the transmission . • another mechanism that does not resend “N” frames when just 1 frame is damaged; only the damaged frame is resent. This mechanism is called Selective Repeat ARQ. It is more efficient for noisy links .
  • 22.
  • 24. Piggybacking • To improve the efficiency of the bidirectional protocols • Piggybacking in Go-Back-N ARQ
  • 25. HDLC • High-level Data Link Control : bit-oriented protocol for communication • Two common transfer mode: normal response mode (NRM) and asynchronous balanced mode (ABM)
  • 26. HDLC: Frames • I(information)-frames are used to transport user data and control information relating to user data (piggybacking) . • S(supervisory)-frames are used only to transport control information. • U(unnumbered)-frames are reserved for system management. • In multiple-frame transmissions, the ending flag of one frame can serve as the beginning flag of the next frame.
  • 27. HDLC: Frames fields • Flag field. The flag field of an HDLC frame is an 8-bit sequence with the bit pattern 01111110 • Address field. The second field of an HDLC frame contains the address of the secondary station. If a primary station created the frame, it contains a to address. If a secondary creates the frame, it contains a from address. An address field can be 1 byte or several bytes long, depending on the needs of the network. One byte can identify up to 128 stations (l bit is used for another purpose). • Control field. The control field is a 1- or 2-byte segment of the frame used for flow and error control. The interpretation of bits in this field depends on the frame type and its functionality • Information field. The information field contains the user's data from the network layer or management information. Its length can vary from one network to another. • FCS field. The frame check sequence (FCS) is the HDLC error detection field. It can contain either a 2- or 4-byte ITU-T CRC.
  • 28. Control fields • Control Field for I-Frames : 1. If the first bit of the control field is 0, this means the frame is an I-frame. 2. The next 3 bits, called N(S), define the sequence number of the frame. 3. The last 3 bits, called N(R), correspond to the acknowledgment number when piggybacking is used. 4. The single bit between N(S) and N(R) is called the P/F ( poll/final) bit. It has meaning only when it is set (bit = 1) and can mean poll or final. It means poll when the frame is sent by a primary station to a secondary. It means final when the frame is sent by a secondary to a primary . • Control Field for S-Frames : 1. If the first 2 bits of the control field is 10, frame is an S-frame. 2. The last 3 bits, called N(R), corresponds to the acknowledgment number (ACK) or negative acknowledgment number (NAK) . 3. The 2 bits called code is used to define the type of S-frame 00 Receive ready n(r) = ACK number 01 Reject (REJ). n(r) = NAK number 10 Receive not ready (RNR) n(r) = ACK number 11 Selective reject (SREJ) n(r) = NAK number
  • 29. Control Field for U-Frames
  • 30. Point-to-Point Protocol: PPP • Flag: 01111110 the same as HDLC, but it treated as a byte because of PPP is a byte-oriented protocol • Address: constant value ie 11111111 (broadcast address) • Control: This field is set to the constant value 11000000 , No need because PPP has no flow control and limited error control • Protocol. The protocol field defines what is being carried in the data field: either user data or other information. • This field carries either the user data or other information that we will discuss shortly. The data field is a sequence of bytes with the default of a maximum of 1500 bytes; • This field is set to the constant value 11000000