SlideShare uma empresa Scribd logo
1 de 52
Baixar para ler offline
Prof Madhumita Tamhane
SDLC
SYNCHRONOUS DATA LINK
COMMUNICATION
DATA LINK CONTROL
COMMUNICATION
Prof Madhumita Tamhane
SDLC
✓ Synchronous Bit Oriented Protocol by IBM.
✓ Simplex/half duplex/full duplex.
✓ Sliding window protocol.
✓ Language EBCDIC.
✓ Data frame 256 characters long.
✓ All data link control functions performed by a single
control field.
✓ Master-slave environment only.
Prof Madhumita Tamhane
SDLC
✓ The primary station controls data exchange on the
communication channel and issues command.
✓ The secondary station receives commands and returns
responses to the primary.
✓ Three transmission states:-
✓ Transient state:-before and after the initial
transmission and after each line turnaround.
✓ Idle state:- after 15 or more consecutive 1s have been
received.
✓ Active state:- whenever either primary or secondary
station is transmitting information or control signals.
Prof Madhumita Tamhane
SDLC
✓ General frame structure:
Flag Address Control Data… FCS Flag
8 bits 8 bits 8 bits Variable
multiple
of 8
16 bits 8 bits
Prof Madhumita Tamhane
SDLC - Flag
✓ 7EH binary or “=“ in EBCDIC.
✓ For synchronization and indication of limits of frame.
✓ Multiple frames can have following variations:
✓ Beginning and ending flag of a frame.
✓ FCS 01111110 01111110 address …
✓ Ending flag of a frame can be common with beginning
flag of next frame.
✓ FCS 01111110 address control…
✓ Ending ‘0’ of ending flag of a frame can be common with
beginning ‘0’ of beginning flag of next frame.
✓ FCS 011111101111110 address control…
✓ Can be sent continuously to indicate idle line 1s.
Flag Flag
01111110 01111110
Prof Madhumita Tamhane
SDLC - Address
✓ 256 addresses possible.
✓ 00H null or void address, used for network testing.
✓ FFH is broadcast address.
✓ 254 unique station addresses or group addresses.
✓ No address given to primary as…
✓ Primary to secondary frame has destination secondary
address.
✓ Secondary to primary frame has source secondary
address.
Address
8 bits
Prof Madhumita Tamhane
Control Field
!
!
!
!
✓ 8 bit long.
✓ Used for polling, acknowledging previously received
frames and other data link management functions.
✓ Defined in three different frame formats.
✓ Information frame
✓ Control frame
✓ un-numbered frame
Control
8 bits
Prof Madhumita Tamhane
Control Field – Information frame
!
!
!
!
!
✓ LSB b7 – “0” identifies information frame.
✓ Information frame is used for transmitting sequenced
information.
✓ Packet numbered using 3-bit scheme.
!
P/P
Or
F/F
b0 b1 b2 b3 b4 b5
nr
0
b6 b7
ns
Prof Madhumita Tamhane
Control Field – Information frame
✓ ns =b4, b5, b6 - number of frame being sent.
✓ From 000 to 111 and repeats.
✓ nr =b0, b1, b2 - acknowledgement.
✓ It is number of next frame it expects to receive.
✓ Indicates all frames before nr are received correctly.
✓ Uses piggybacking as it is I frame.
✓ nr and ns together used for flow control and error
control ARQ.
P/P
Or
F/F
b0 b1 b2 b3 b4 b5
nr
0
b6 b7
ns
Prof Madhumita Tamhane
Control Field – Information frame
✓ Primary keeps track of ns and nr of all secondaries
while secondary keeps track of its own ns and nr.
✓ A station can not send more than 7 frames together
before receiving an acknowledgement to avoid
ambiguity in received frame number.
✓ Say 8 frames, 0 - 7 are sent and ACK0 is received.
✓ There is ambiguity whether
✓ receiver received all correctly and expecting new
frame “0” or
✓ frame “0” had error and receiver aborted and
expecting retransmission from old frame “0”.
✓ No ambiguity if max, only 7 frames, 0 - 6 are sent.
Prof Madhumita Tamhane
Control Field – Information frame
✓ Example:
!
Primary ns:
Primary nr :
!
Secondary ns:
Secondary nr:
!
!
!
!
!
!
0 1 2
0 0 0
3 4
2 2
0 1
3 3
2 3 4
4 4 4
4 5 6 7 0
5 5 5 5 5
5
1
Prof Madhumita Tamhane
Control Field – Information frame
✓ Bit b3 is poll/not-a-poll (1/0) and sent from primary to
secondary.
✓ Bit b3 is sending final /not-a-final frame(1/0) when sent from
secondary to primary.
✓ A secondary can not transmit unless it receives a frame
addressed to it with P bit set.
✓ With I frame, primary can select a secondary station, send
formatted information, confirm previously received I frame,
and poll with a single transmission.
P/P
Or
F/F
b0 b1 b2 b3 b4 b5
nr
0
b6 b7
ns
Prof Madhumita Tamhane
Excercise
✓ Determine bit pattern for the control field of a frame
sent from the primary to a secondary for following
conditions..
✓ Primary is sending frame 3.
✓ It is a poll.
✓ Primary is confirming the correct reception of frames
2,3,4 from secondary.
!
!
✓ Solution: 10110110 = B6H
Prof Madhumita Tamhane
Control Field – Supervisory frame
✓ Information sending is not allowed.
✓ Frame is used to :
✓ 1. Confirm previously received I-frames.
✓ 2. Convey ready or busy condition.
✓ 3. Reports missing or error frames.
✓ Hence used for flow and error control and Poll/Select
when I frame not available.
Prof Madhumita Tamhane
Control Field – Supervisory frame
✓ Frame identified by 01 in b6, b7 position.
✓ nr =b0, b1, b2 -- frame expected
✓ acknowledgement of correct reception.
✓ sequence number of frame in error
✓ b3 is Poll/Not Poll or Final/Not final .
✓ Bits b4 and b5 are indicate receive status of transmitting
stations, request transmission or retransmission of
sequenced information frames.They can be…
P/P
Or
F/F
b0 b1 b2 b3 b4 b5
nr
1
b6 b7
X X 0
Prof Madhumita Tamhane
Control Field – Supervisory frame
b b Receive Status
0 0 Ready to receive RR
Positive acknowledgement when I frame not available.
0 1 Ready Not to receive RNR
1 0 REJ(Reject) Go back N ARQ
1 1 Not Used in SDLC
Prof Madhumita Tamhane
Control Field – Supervisory frame 

Options
✓ RR with P set.
✓ Polling.
✓ Ack when primary wants secondary to send more frames.
✓ RR with F set.
✓ EOT after poll
✓ Positive Ack to selection
✓ Negative response to polling
✓ RNR with P set.
✓ Selection
✓ RNR with F set.
✓ Negative Ack to selection
✓ RR with F = 0.
✓ ARQ REJ of nr (only FD)
Prof Madhumita Tamhane
Excercise
✓ Determine bit pattern for the control field of a frame
sent from the a secondary to primary for following
conditions..
✓ Secondary is ready to receive.
✓ It is a final frame.
✓ Secondary is confirming the correct reception of
frames 3,4,5 from secondary.
!
!
✓ Solution: 11010001 = D1H
Prof Madhumita Tamhane
Excercise
✓ Determine bit pattern for the control field of a frame
sent from the a secondary to primary for following
conditions..
✓ Secondary is ready to receive.
✓ It is not a final frame.
✓ Secondary is conveying correct reception of frames
2,3,4.
✓ Secondary is conveying that frame 5 is in error.
!
!
✓ Solution: 10100001 = D1H
Prof Madhumita Tamhane
Control Field – Un-numbered Frame
!
!
!
!
✓ Used for network management operations.
✓ Un-numbered Management Information sending is
allowed.
✓ Frame identified by 11 in b6, b7 position.
✓ b3 is Poll/Not Poll or Final/Not final
✓ b0, b1, b2 , b4, b5 – 32 command/responses possible.
P/P
Or
F/F
b0 b1 b2 b3 b4 b5
1
b6 b7
X X 1
X X X
Prof Madhumita Tamhane
Control Field – Un-numbered Frame
✓ Possible modes of secondary
✓ The Initialization mode:System specific
✓ Normal Response mode:A secondary can not initiate
unsolicited transmission.
✓ Can transmit only in response to a frame received
with P bit set.
✓ Normal Disconnect mode: Secondary is off-line.
✓ Secondary can receive only a TEST, XID, CFGR,
SNRM, or SIM command from primary and can
respond only if P bit is set.
Prof Madhumita Tamhane
Control Field – Some Un-numbered commands
✓ Un-numbered Information (UI)
✓ 000 P/F 0011
✓ Higher level status, operational interruptions, time of day,
link initialization parameters etc.
✓ Set Initialization Mode (SIM)
✓ 000 P 0111
✓ SIM resets nr and ns counter at primary and
secondary.
✓ Secondary Responses by UA.
✓ Used if network management error noted.
✓ To bring a station out of disconnect mode.
Prof Madhumita Tamhane
Control Field – Some Un-numbered commands
✓ Request Initialization Mode (RIM)
✓ 000 F 0111 Response
✓ Request sent by secondary for SIM from primary if
error noted or needs to come out of DISC.
✓ Set Normal Response Mode (SNRM)
✓ 100 P 0011 Command
✓ Primary places secondary in normal response mode.
✓ Resets nr and ns counter at primary and secondary.
✓ Secondary responses by UA.
Prof Madhumita Tamhane
Control Field – Some Un-numbered commands
✓ Request disconnect mode (RD)
✓ 010 F 0011 Response
✓ Disconnect (DISC)
✓ 010 P 0011 Command
✓ In this mode secondary can not receive/send I frames.
✓ Can receive only SIM, SNRM.
✓ Secondary responses by UA.
✓ Disconnect mode (DM)
✓ 000 F 1111 Response
✓ Disconnected secondary reminds primary about its status if later
tries to send un-numbered frame.
✓
Prof Madhumita Tamhane
Control Field – Some Un-numbered commands
✓ Un-numbered acknowledgement (UA)
✓ 011 F 0011 Response
✓ In response to SIM, SNRM, DISC
✓ TEST 111 P 0011
✓ Command/Response to solicit/reply TEST response.
✓ Secondary returns back information field.
✓ Exchange for link testing purpose.
Prof Madhumita Tamhane
Control Field – Some Un-numbered commands
✓ Exchange Station Identification (XID)
✓ 101 P 1111 Command/Response
✓ XID solicits identification of secondary station.
✓ I field can be included in the frame to convey
identification data of either primary or secondary
station.
✓ EX- In dial-up circuits, it is necessary that secondary
station identifies itself before primary will exchange
information frames with it.
!
Prof Madhumita Tamhane
Control Field – Some Un-numbered commands
✓ Frame Reject (FRMR) 100 F 0111 Response
✓ Reasons:
✓ Control field has invalid command.
✓ Data exceeds buffer .
✓ Information sent in frame that doesn't allow it.
✓ ns and nr do not match.
✓ Secondary keeps sending FRMR till it receives SNRM,
DISC or SIM
Prof Madhumita Tamhane
Control Field – Some Un-numbered commands

I field of FRMR
!
!
!
✓ W = 1, Invalid command
✓ X = 1, Prohibited information field received.
✓ Y = 1, Buffer overrun.
✓ Z = 1, Received nr disagrees with transmitted ns.
XXXXXXXX 0XXX0XXX WXYZ 0 0 0 0
C field of rejected
command
ns nr
secondary’s present ns and nr
Prof Madhumita Tamhane
Frame Check Sequence
!
!
!
!
✓ CRC-16
✓ g(x) = x16 + x12 + x5 + x1
16 bits
FCS
Prof Madhumita Tamhane
Transparency
✓ Flag 01111110 should be avoided in data.
✓ Using zero-bit-insertion or zero stuffing.
✓ In Data, after every five 1’s, a zero is inserted.
✓ Hence, if we get six 1’s, it is a valid flag.
✓ Example:
✓ 01111110 01101111 11010011
Flag Address Control
✓ 1110001100110101 00101011 01111110
Data FCS Flag
Prof Madhumita Tamhane
Transparency
✓ Transmitted:
✓ 01111110 01101111 101010011
Flag Address Control
✓ 11100001100110101 00101011 01111110
Data FCS Flag
!
✓ Received:
✓ 01111110 01101111 11010011
Flag Address Control
✓ 1110001100110101 00101011 01111110
Data FCS Flag
Prof Madhumita Tamhane
Message Abort
✓ Used to permanently terminate a frame.
✓ Generally done to accommodate high-priority message
such as emergency link recovery procedure,…
✓ Message abort is occurrence of 7-14 consecutive 1s.
✓ Zeros are nor inserted in message abort.
✓ Terminates an existing frame and immediately begins
a high priority frame.
✓ If more than 14 consecutive 1s occur in succession, it
places into idle line condition.
✓
Prof Madhumita Tamhane
HDLC
HIGH LEVEL DATA LINK
CONTROL
DATA LINK CONTROL
COMMUNICATION
Prof Madhumita Tamhane
HDLC
✓ In SDLC - ISO defines high order bit as bo.
✓ In HDLC - ISO defines low order bit as bo.
✓ Hence all patterns are reversed in HDLC.
b0 b1 b2 b3 b4 b5 b6 b7
SDLC
b7 b6 b5 b4 b3 b2 b1 b0
HDLC
Prof Madhumita Tamhane
HDLC - Modes
✓ Normal Response mode NRM:
✓ One primary, rest secondary.
✓ Primary polls/selects secondary.
✓ Unsolicited responses are not allowed.
!
✓ Asynchronous Response mode ARM :
✓ A secondary may initiate a transmission without permission
from primary if channel in idle.
✓ Primary-secondary relationship otherwise not altered.
✓ Secondary to secondary through primary only.
Prof Madhumita Tamhane
HDLC - Modes
✓ Asynchronous Balance mode ABM :
✓ Special arrangement.
✓ If point to point link between two secondaries is present then
Peer to peer is allowed.
✓ Mode to be invoked when desired.
✓ Primary brings a secondary in ABM mode.
Prof Madhumita Tamhane
HDLC - Frame
!
!
!
!
✓ General frame structure as defined by
✓ ISO 3309 – 1976 E (Frame structure, Flag and transparency
mechanism.)
✓ ISO 4335 – 1979 E (Control, I, S and U fields)
!
✓ Flag same as SDLC.
Flag Address Control Data… FCS Flag
8 bits extended extended Variable
multiple of 8
16 bits 8 bits
Prof Madhumita Tamhane
HDLC - Address
!
!
!
!
!
!
✓ 8 bit or extended.
✓ If bo = 0, next byte is also a part of address.
✓ If bo = 1, end of address.
Address
extended
b7 b6 b5 b4 b3 b2 b1 b0
Prof Madhumita Tamhane
HDLC - Address
✓ Example:
!
✓ 01111110 XXXXXXX0 XXXXXXX1
Flag Byte1 Byte2 -end of address
!
✓ Can extend up to n number of bytes.
Prof Madhumita Tamhane
HDLC - Control – Information Frame

Normal Mode
!
!
!
!
!
!
Control
normal
P/P
Or
F/F
b7 b6 b5 b4 b3 b2
ns
b1 b0
0
nr
Prof Madhumita Tamhane
HDLC - Control – Information Frame
Extended Mode
!
!
!
!
!
!
Control
extended
ns
0
P/
F nr
Prof Madhumita Tamhane
HDLC - Control – Supervisory Frame

Normal Mode
!
!
!
!
!
!
Control
normal
P/F
b7 b6 b5 b4 b3 b2 b1 b0
1
nr
0 X X
Prof Madhumita Tamhane
HDLC - Control – Supervisory Frame

Extended Mode
!
!
!
!
!
!
Control
extende
d
1
P/
F nr
0 X X 0 0 0 0
Prof Madhumita Tamhane
HDLC - Control – Supervisory Frame

Normal Mode
!
!
!
!
!
!
b b Receive Status
0 0 Ready to receive RR
Positive acknowledgement when I frame not available.
0 1 REJ(Reject) Go back N ARQ
1 0 RNR
1 1 SREJ (selective reject)
Prof Madhumita Tamhane
HDLC - Control – Supervisory Frame

✓ OPTIONS with RR:
✓ RR with ACK
✓ RR with P = 1
✓ RR with F = 1
✓ RR with F = 1
!
✓ OPTIONS with RNR:
✓ RNR with ACK
✓ RNR with P = 1
✓ RNR with F = 1
Prof Madhumita Tamhane
HDLC - Control – Un-numbered Frame

!
!
!
!
!
!
✓ No extended field available.
✓ Control 5 bits are reversed vis-a-vis SDLC
✓ SIM – 10000
✓ SNRM - 00001
Control
normal
P/F
b7 b6 b5 b4 b3 b2 b1 b0
1 X1 X X X X
Prof Madhumita Tamhane
Draw poll response sequence frames for HDLC

✓
Main A
Flag Flag
F
C
S A
S - Frame
0 P = 1 RR
Flag Flag
A
F
C
S
I - Frame
0 F = 0 0
Data
Flag Flag
A
F
C
S
I - Frame
1 F = 1 0
Data
Flag Flag
F
C
S A
S - Frame
2 P = 0 RNR
Prof Madhumita Tamhane
Draw select response sequence frames for
HDLC

✓
Main A
Flag Flag
F
C
S A
S - Frame
0 P = 1 RNR
Flag FlagA
FC
S
S - Frame
RR F = 1 0
Flag FlagA
F
C
S
I - Frame
0P = 00
Data
Flag FlagA
FC
S
S - Frame
RR F = 1 1
Prof Madhumita Tamhane
Peer to peer communication using

HDLC

✓
A B
Flag FlagB
F
C
S
I - Frame
00
Data
Flag FlagB
F
C
S
U - Frame
11P = 1100
Data
Flag Flag
A
F
C
S
U - Frame
00 F = 1 110
Data
Flag FlagB
F
C
S
I - Frame
10
Data
Prof Madhumita Tamhane
Contd.
✓
A B
Flag Flag
A
F
C
S
I - Frame
0 2
Data
Flag Flag
A
F
C
S
I - Frame
1 2
Data
Flag Flag
A
F
C
S
I - Frame
2 2
Data
Flag Flag
F
C
S B
S - Frame
3 RR
Prof Madhumita Tamhane
Peer to peer communication with error
✓
A B
Flag Flag
A
F
C
S
I - Frame
0 2
Data
Flag Flag
A
F
C
S
I - Frame
1 2
Data
Flag Flag
A
F
C
S
I - Frame
2 2
Data
Error
Flag Flag
F
C
S B
S - Frame
1 REJ
Prof Madhumita Tamhane
Contd.
✓
A B
Flag Flag
A
F
C
S
I - Frame
1 2
Data
Flag Flag
A
F
C
S
I - Frame
2 2
Data
Flag Flag
F
C
S B
S - Frame
3 RR

Mais conteúdo relacionado

Mais procurados

Introduction state machine
Introduction state machineIntroduction state machine
Introduction state machineShreyans Pathak
 
HDLC & basic protocols
HDLC & basic protocolsHDLC & basic protocols
HDLC & basic protocolsAkhil Kaushik
 
Network Layer,Computer Networks
Network Layer,Computer NetworksNetwork Layer,Computer Networks
Network Layer,Computer Networksguesta81d4b
 
Multiplexing
MultiplexingMultiplexing
Multiplexingstooty s
 
Error detection & correction codes
Error detection & correction codesError detection & correction codes
Error detection & correction codesRevathi Subramaniam
 
Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Jismy .K.Jose
 
Microprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesMicroprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesSrikrishna Thota
 
Lan technologies
Lan technologiesLan technologies
Lan technologiesOnline
 
Logical and shift micro operations
Logical and shift micro operationsLogical and shift micro operations
Logical and shift micro operationsSanjeev Patel
 
8259 Operating Modes.pptx
8259 Operating Modes.pptx8259 Operating Modes.pptx
8259 Operating Modes.pptxMeenaAnusha1
 
Pipeline hazard
Pipeline hazardPipeline hazard
Pipeline hazardAJAL A J
 
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
 
Embedded system design process_models
Embedded system design process_modelsEmbedded system design process_models
Embedded system design process_modelsRavi Selvaraj
 
Media Access Control (MAC Layer)
Media Access Control (MAC Layer)Media Access Control (MAC Layer)
Media Access Control (MAC Layer)Meenakshi Paul
 

Mais procurados (20)

Introduction state machine
Introduction state machineIntroduction state machine
Introduction state machine
 
HDLC & basic protocols
HDLC & basic protocolsHDLC & basic protocols
HDLC & basic protocols
 
Line coding
Line codingLine coding
Line coding
 
Network Layer,Computer Networks
Network Layer,Computer NetworksNetwork Layer,Computer Networks
Network Layer,Computer Networks
 
Multiplexing
MultiplexingMultiplexing
Multiplexing
 
Error detection & correction codes
Error detection & correction codesError detection & correction codes
Error detection & correction codes
 
Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086
 
Microprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesMicroprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 Features
 
Framing Protocols
Framing ProtocolsFraming Protocols
Framing Protocols
 
The medium access sublayer
 The medium  access sublayer The medium  access sublayer
The medium access sublayer
 
Lan technologies
Lan technologiesLan technologies
Lan technologies
 
Logical and shift micro operations
Logical and shift micro operationsLogical and shift micro operations
Logical and shift micro operations
 
8259 Operating Modes.pptx
8259 Operating Modes.pptx8259 Operating Modes.pptx
8259 Operating Modes.pptx
 
IPV4 Frame Format
IPV4 Frame FormatIPV4 Frame Format
IPV4 Frame Format
 
Media Access Control
Media Access ControlMedia Access Control
Media Access Control
 
Pipeline hazard
Pipeline hazardPipeline hazard
Pipeline hazard
 
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
 
2.6 ethernet ieee 802.3
2.6 ethernet   ieee 802.32.6 ethernet   ieee 802.3
2.6 ethernet ieee 802.3
 
Embedded system design process_models
Embedded system design process_modelsEmbedded system design process_models
Embedded system design process_models
 
Media Access Control (MAC Layer)
Media Access Control (MAC Layer)Media Access Control (MAC Layer)
Media Access Control (MAC Layer)
 

Destaque

Data link control line control unit LCU
Data link control  line control unit LCUData link control  line control unit LCU
Data link control line control unit LCUMadhumita Tamhane
 
HDLC, PPP and SLIP
HDLC, PPP and SLIPHDLC, PPP and SLIP
HDLC, PPP and SLIPNaveen Kumar
 
HDLC(high level data link control)
HDLC(high level data link control)HDLC(high level data link control)
HDLC(high level data link control)Anand Biradar
 
Data link control & protocol concepts
Data link control & protocol conceptsData link control & protocol concepts
Data link control & protocol conceptsRaji Lakshmi
 
Air to ground datalink communication
Air to ground datalink communicationAir to ground datalink communication
Air to ground datalink communicationLintang Widayanto
 
Frame relay
Frame relay Frame relay
Frame relay balub4
 
Enlace de datos - HDCL & PPP
Enlace de datos - HDCL & PPPEnlace de datos - HDCL & PPP
Enlace de datos - HDCL & PPPIsrael Cueva
 

Destaque (11)

Data link control line control unit LCU
Data link control  line control unit LCUData link control  line control unit LCU
Data link control line control unit LCU
 
Data link control protocol(3)
Data link control protocol(3)Data link control protocol(3)
Data link control protocol(3)
 
HDLC, PPP and SLIP
HDLC, PPP and SLIPHDLC, PPP and SLIP
HDLC, PPP and SLIP
 
HDLC(high level data link control)
HDLC(high level data link control)HDLC(high level data link control)
HDLC(high level data link control)
 
HDLC
HDLCHDLC
HDLC
 
Hdlc
HdlcHdlc
Hdlc
 
Data link control & protocol concepts
Data link control & protocol conceptsData link control & protocol concepts
Data link control & protocol concepts
 
Air to ground datalink communication
Air to ground datalink communicationAir to ground datalink communication
Air to ground datalink communication
 
Data link control protocol(1)
Data link control protocol(1)Data link control protocol(1)
Data link control protocol(1)
 
Frame relay
Frame relay Frame relay
Frame relay
 
Enlace de datos - HDCL & PPP
Enlace de datos - HDCL & PPPEnlace de datos - HDCL & PPP
Enlace de datos - HDCL & PPP
 

Semelhante a Data Link Synchronous Protocols - SDLC, HDLC

Data communication protocols in centralised networks (in master:slave environ...
Data communication protocols in centralised networks (in master:slave environ...Data communication protocols in centralised networks (in master:slave environ...
Data communication protocols in centralised networks (in master:slave environ...Madhumita Tamhane
 
MPI UNIT 4 - (Introduction to DMA and ADC)
MPI UNIT 4 - (Introduction to DMA and ADC)MPI UNIT 4 - (Introduction to DMA and ADC)
MPI UNIT 4 - (Introduction to DMA and ADC)RaviKiranVarma4
 
MICROPROCESSOR INPUT OUTPUT OPERATIONS
MICROPROCESSOR INPUT OUTPUT OPERATIONSMICROPROCESSOR INPUT OUTPUT OPERATIONS
MICROPROCESSOR INPUT OUTPUT OPERATIONSGeorge Thomas
 
PIN Specification of 8086 Microprocessor
PIN Specification of 8086 MicroprocessorPIN Specification of 8086 Microprocessor
PIN Specification of 8086 MicroprocessorNikhil Kumar
 
HDLC-Protocol-Overview-Presentation.pdf
HDLC-Protocol-Overview-Presentation.pdfHDLC-Protocol-Overview-Presentation.pdf
HDLC-Protocol-Overview-Presentation.pdf2O550Sujal
 

Semelhante a Data Link Synchronous Protocols - SDLC, HDLC (7)

Data communication protocols in centralised networks (in master:slave environ...
Data communication protocols in centralised networks (in master:slave environ...Data communication protocols in centralised networks (in master:slave environ...
Data communication protocols in centralised networks (in master:slave environ...
 
Hdlc
HdlcHdlc
Hdlc
 
Hdlc
HdlcHdlc
Hdlc
 
MPI UNIT 4 - (Introduction to DMA and ADC)
MPI UNIT 4 - (Introduction to DMA and ADC)MPI UNIT 4 - (Introduction to DMA and ADC)
MPI UNIT 4 - (Introduction to DMA and ADC)
 
MICROPROCESSOR INPUT OUTPUT OPERATIONS
MICROPROCESSOR INPUT OUTPUT OPERATIONSMICROPROCESSOR INPUT OUTPUT OPERATIONS
MICROPROCESSOR INPUT OUTPUT OPERATIONS
 
PIN Specification of 8086 Microprocessor
PIN Specification of 8086 MicroprocessorPIN Specification of 8086 Microprocessor
PIN Specification of 8086 Microprocessor
 
HDLC-Protocol-Overview-Presentation.pdf
HDLC-Protocol-Overview-Presentation.pdfHDLC-Protocol-Overview-Presentation.pdf
HDLC-Protocol-Overview-Presentation.pdf
 

Mais de Madhumita Tamhane

Optical wireless communication li fi
Optical wireless communication li fiOptical wireless communication li fi
Optical wireless communication li fiMadhumita Tamhane
 
Optical Fiber Communication Part 3 Optical Digital Receiver
Optical Fiber Communication Part 3 Optical Digital ReceiverOptical Fiber Communication Part 3 Optical Digital Receiver
Optical Fiber Communication Part 3 Optical Digital ReceiverMadhumita Tamhane
 
Optical fiber communication Part 2 Sources and Detectors
Optical fiber communication Part 2 Sources and DetectorsOptical fiber communication Part 2 Sources and Detectors
Optical fiber communication Part 2 Sources and DetectorsMadhumita Tamhane
 
Optical fiber communication Part 1 Optical Fiber Fundamentals
Optical fiber communication Part 1 Optical Fiber FundamentalsOptical fiber communication Part 1 Optical Fiber Fundamentals
Optical fiber communication Part 1 Optical Fiber FundamentalsMadhumita Tamhane
 
Black and white TV fundamentals
Black and white TV fundamentalsBlack and white TV fundamentals
Black and white TV fundamentalsMadhumita Tamhane
 
Telecommunication switching system
Telecommunication switching systemTelecommunication switching system
Telecommunication switching systemMadhumita Tamhane
 
Flyod's algorithm for finding shortest path
Flyod's algorithm for finding shortest pathFlyod's algorithm for finding shortest path
Flyod's algorithm for finding shortest pathMadhumita Tamhane
 
ISDN Integrated Services Digital Network
ISDN Integrated Services Digital NetworkISDN Integrated Services Digital Network
ISDN Integrated Services Digital NetworkMadhumita Tamhane
 
Asynchronous Transfer Mode ATM
Asynchronous Transfer Mode  ATMAsynchronous Transfer Mode  ATM
Asynchronous Transfer Mode ATMMadhumita Tamhane
 
Setting Artificial Neural Networks parameters
Setting Artificial Neural Networks parametersSetting Artificial Neural Networks parameters
Setting Artificial Neural Networks parametersMadhumita Tamhane
 
Weight enumerators of block codes and the mc williams
Weight  enumerators of block codes and  the mc williamsWeight  enumerators of block codes and  the mc williams
Weight enumerators of block codes and the mc williamsMadhumita Tamhane
 
Justesen codes alternant codes goppa codes
Justesen codes alternant codes goppa codesJustesen codes alternant codes goppa codes
Justesen codes alternant codes goppa codesMadhumita Tamhane
 
The stack algorithm vs viterbi algorithm
The stack algorithm vs viterbi algorithmThe stack algorithm vs viterbi algorithm
The stack algorithm vs viterbi algorithmMadhumita Tamhane
 
Bch and reed solomon codes generation in frequency domain
Bch and reed solomon codes generation in frequency domainBch and reed solomon codes generation in frequency domain
Bch and reed solomon codes generation in frequency domainMadhumita Tamhane
 

Mais de Madhumita Tamhane (20)

Fiber optic sensors
Fiber optic sensors  Fiber optic sensors
Fiber optic sensors
 
OFDM for LTE
OFDM for LTEOFDM for LTE
OFDM for LTE
 
Small cells I : Femto cell
Small cells I :  Femto cellSmall cells I :  Femto cell
Small cells I : Femto cell
 
Optical wireless communication li fi
Optical wireless communication li fiOptical wireless communication li fi
Optical wireless communication li fi
 
Optical Fiber Communication Part 3 Optical Digital Receiver
Optical Fiber Communication Part 3 Optical Digital ReceiverOptical Fiber Communication Part 3 Optical Digital Receiver
Optical Fiber Communication Part 3 Optical Digital Receiver
 
Optical fiber communication Part 2 Sources and Detectors
Optical fiber communication Part 2 Sources and DetectorsOptical fiber communication Part 2 Sources and Detectors
Optical fiber communication Part 2 Sources and Detectors
 
Optical fiber communication Part 1 Optical Fiber Fundamentals
Optical fiber communication Part 1 Optical Fiber FundamentalsOptical fiber communication Part 1 Optical Fiber Fundamentals
Optical fiber communication Part 1 Optical Fiber Fundamentals
 
Colout TV Fundamentals
Colout TV FundamentalsColout TV Fundamentals
Colout TV Fundamentals
 
Black and white TV fundamentals
Black and white TV fundamentalsBlack and white TV fundamentals
Black and white TV fundamentals
 
Telecommunication switching system
Telecommunication switching systemTelecommunication switching system
Telecommunication switching system
 
X.25
X.25X.25
X.25
 
Flyod's algorithm for finding shortest path
Flyod's algorithm for finding shortest pathFlyod's algorithm for finding shortest path
Flyod's algorithm for finding shortest path
 
Line codes
Line codesLine codes
Line codes
 
ISDN Integrated Services Digital Network
ISDN Integrated Services Digital NetworkISDN Integrated Services Digital Network
ISDN Integrated Services Digital Network
 
Asynchronous Transfer Mode ATM
Asynchronous Transfer Mode  ATMAsynchronous Transfer Mode  ATM
Asynchronous Transfer Mode ATM
 
Setting Artificial Neural Networks parameters
Setting Artificial Neural Networks parametersSetting Artificial Neural Networks parameters
Setting Artificial Neural Networks parameters
 
Weight enumerators of block codes and the mc williams
Weight  enumerators of block codes and  the mc williamsWeight  enumerators of block codes and  the mc williams
Weight enumerators of block codes and the mc williams
 
Justesen codes alternant codes goppa codes
Justesen codes alternant codes goppa codesJustesen codes alternant codes goppa codes
Justesen codes alternant codes goppa codes
 
The stack algorithm vs viterbi algorithm
The stack algorithm vs viterbi algorithmThe stack algorithm vs viterbi algorithm
The stack algorithm vs viterbi algorithm
 
Bch and reed solomon codes generation in frequency domain
Bch and reed solomon codes generation in frequency domainBch and reed solomon codes generation in frequency domain
Bch and reed solomon codes generation in frequency domain
 

Último

CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdfSuman Jyoti
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoordharasingh5698
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfrs7054576148
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 

Último (20)

CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdf
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 

Data Link Synchronous Protocols - SDLC, HDLC

  • 1. Prof Madhumita Tamhane SDLC SYNCHRONOUS DATA LINK COMMUNICATION DATA LINK CONTROL COMMUNICATION
  • 2. Prof Madhumita Tamhane SDLC ✓ Synchronous Bit Oriented Protocol by IBM. ✓ Simplex/half duplex/full duplex. ✓ Sliding window protocol. ✓ Language EBCDIC. ✓ Data frame 256 characters long. ✓ All data link control functions performed by a single control field. ✓ Master-slave environment only.
  • 3. Prof Madhumita Tamhane SDLC ✓ The primary station controls data exchange on the communication channel and issues command. ✓ The secondary station receives commands and returns responses to the primary. ✓ Three transmission states:- ✓ Transient state:-before and after the initial transmission and after each line turnaround. ✓ Idle state:- after 15 or more consecutive 1s have been received. ✓ Active state:- whenever either primary or secondary station is transmitting information or control signals.
  • 4. Prof Madhumita Tamhane SDLC ✓ General frame structure: Flag Address Control Data… FCS Flag 8 bits 8 bits 8 bits Variable multiple of 8 16 bits 8 bits
  • 5. Prof Madhumita Tamhane SDLC - Flag ✓ 7EH binary or “=“ in EBCDIC. ✓ For synchronization and indication of limits of frame. ✓ Multiple frames can have following variations: ✓ Beginning and ending flag of a frame. ✓ FCS 01111110 01111110 address … ✓ Ending flag of a frame can be common with beginning flag of next frame. ✓ FCS 01111110 address control… ✓ Ending ‘0’ of ending flag of a frame can be common with beginning ‘0’ of beginning flag of next frame. ✓ FCS 011111101111110 address control… ✓ Can be sent continuously to indicate idle line 1s. Flag Flag 01111110 01111110
  • 6. Prof Madhumita Tamhane SDLC - Address ✓ 256 addresses possible. ✓ 00H null or void address, used for network testing. ✓ FFH is broadcast address. ✓ 254 unique station addresses or group addresses. ✓ No address given to primary as… ✓ Primary to secondary frame has destination secondary address. ✓ Secondary to primary frame has source secondary address. Address 8 bits
  • 7. Prof Madhumita Tamhane Control Field ! ! ! ! ✓ 8 bit long. ✓ Used for polling, acknowledging previously received frames and other data link management functions. ✓ Defined in three different frame formats. ✓ Information frame ✓ Control frame ✓ un-numbered frame Control 8 bits
  • 8. Prof Madhumita Tamhane Control Field – Information frame ! ! ! ! ! ✓ LSB b7 – “0” identifies information frame. ✓ Information frame is used for transmitting sequenced information. ✓ Packet numbered using 3-bit scheme. ! P/P Or F/F b0 b1 b2 b3 b4 b5 nr 0 b6 b7 ns
  • 9. Prof Madhumita Tamhane Control Field – Information frame ✓ ns =b4, b5, b6 - number of frame being sent. ✓ From 000 to 111 and repeats. ✓ nr =b0, b1, b2 - acknowledgement. ✓ It is number of next frame it expects to receive. ✓ Indicates all frames before nr are received correctly. ✓ Uses piggybacking as it is I frame. ✓ nr and ns together used for flow control and error control ARQ. P/P Or F/F b0 b1 b2 b3 b4 b5 nr 0 b6 b7 ns
  • 10. Prof Madhumita Tamhane Control Field – Information frame ✓ Primary keeps track of ns and nr of all secondaries while secondary keeps track of its own ns and nr. ✓ A station can not send more than 7 frames together before receiving an acknowledgement to avoid ambiguity in received frame number. ✓ Say 8 frames, 0 - 7 are sent and ACK0 is received. ✓ There is ambiguity whether ✓ receiver received all correctly and expecting new frame “0” or ✓ frame “0” had error and receiver aborted and expecting retransmission from old frame “0”. ✓ No ambiguity if max, only 7 frames, 0 - 6 are sent.
  • 11. Prof Madhumita Tamhane Control Field – Information frame ✓ Example: ! Primary ns: Primary nr : ! Secondary ns: Secondary nr: ! ! ! ! ! ! 0 1 2 0 0 0 3 4 2 2 0 1 3 3 2 3 4 4 4 4 4 5 6 7 0 5 5 5 5 5 5 1
  • 12. Prof Madhumita Tamhane Control Field – Information frame ✓ Bit b3 is poll/not-a-poll (1/0) and sent from primary to secondary. ✓ Bit b3 is sending final /not-a-final frame(1/0) when sent from secondary to primary. ✓ A secondary can not transmit unless it receives a frame addressed to it with P bit set. ✓ With I frame, primary can select a secondary station, send formatted information, confirm previously received I frame, and poll with a single transmission. P/P Or F/F b0 b1 b2 b3 b4 b5 nr 0 b6 b7 ns
  • 13. Prof Madhumita Tamhane Excercise ✓ Determine bit pattern for the control field of a frame sent from the primary to a secondary for following conditions.. ✓ Primary is sending frame 3. ✓ It is a poll. ✓ Primary is confirming the correct reception of frames 2,3,4 from secondary. ! ! ✓ Solution: 10110110 = B6H
  • 14. Prof Madhumita Tamhane Control Field – Supervisory frame ✓ Information sending is not allowed. ✓ Frame is used to : ✓ 1. Confirm previously received I-frames. ✓ 2. Convey ready or busy condition. ✓ 3. Reports missing or error frames. ✓ Hence used for flow and error control and Poll/Select when I frame not available.
  • 15. Prof Madhumita Tamhane Control Field – Supervisory frame ✓ Frame identified by 01 in b6, b7 position. ✓ nr =b0, b1, b2 -- frame expected ✓ acknowledgement of correct reception. ✓ sequence number of frame in error ✓ b3 is Poll/Not Poll or Final/Not final . ✓ Bits b4 and b5 are indicate receive status of transmitting stations, request transmission or retransmission of sequenced information frames.They can be… P/P Or F/F b0 b1 b2 b3 b4 b5 nr 1 b6 b7 X X 0
  • 16. Prof Madhumita Tamhane Control Field – Supervisory frame b b Receive Status 0 0 Ready to receive RR Positive acknowledgement when I frame not available. 0 1 Ready Not to receive RNR 1 0 REJ(Reject) Go back N ARQ 1 1 Not Used in SDLC
  • 17. Prof Madhumita Tamhane Control Field – Supervisory frame 
 Options ✓ RR with P set. ✓ Polling. ✓ Ack when primary wants secondary to send more frames. ✓ RR with F set. ✓ EOT after poll ✓ Positive Ack to selection ✓ Negative response to polling ✓ RNR with P set. ✓ Selection ✓ RNR with F set. ✓ Negative Ack to selection ✓ RR with F = 0. ✓ ARQ REJ of nr (only FD)
  • 18. Prof Madhumita Tamhane Excercise ✓ Determine bit pattern for the control field of a frame sent from the a secondary to primary for following conditions.. ✓ Secondary is ready to receive. ✓ It is a final frame. ✓ Secondary is confirming the correct reception of frames 3,4,5 from secondary. ! ! ✓ Solution: 11010001 = D1H
  • 19. Prof Madhumita Tamhane Excercise ✓ Determine bit pattern for the control field of a frame sent from the a secondary to primary for following conditions.. ✓ Secondary is ready to receive. ✓ It is not a final frame. ✓ Secondary is conveying correct reception of frames 2,3,4. ✓ Secondary is conveying that frame 5 is in error. ! ! ✓ Solution: 10100001 = D1H
  • 20. Prof Madhumita Tamhane Control Field – Un-numbered Frame ! ! ! ! ✓ Used for network management operations. ✓ Un-numbered Management Information sending is allowed. ✓ Frame identified by 11 in b6, b7 position. ✓ b3 is Poll/Not Poll or Final/Not final ✓ b0, b1, b2 , b4, b5 – 32 command/responses possible. P/P Or F/F b0 b1 b2 b3 b4 b5 1 b6 b7 X X 1 X X X
  • 21. Prof Madhumita Tamhane Control Field – Un-numbered Frame ✓ Possible modes of secondary ✓ The Initialization mode:System specific ✓ Normal Response mode:A secondary can not initiate unsolicited transmission. ✓ Can transmit only in response to a frame received with P bit set. ✓ Normal Disconnect mode: Secondary is off-line. ✓ Secondary can receive only a TEST, XID, CFGR, SNRM, or SIM command from primary and can respond only if P bit is set.
  • 22. Prof Madhumita Tamhane Control Field – Some Un-numbered commands ✓ Un-numbered Information (UI) ✓ 000 P/F 0011 ✓ Higher level status, operational interruptions, time of day, link initialization parameters etc. ✓ Set Initialization Mode (SIM) ✓ 000 P 0111 ✓ SIM resets nr and ns counter at primary and secondary. ✓ Secondary Responses by UA. ✓ Used if network management error noted. ✓ To bring a station out of disconnect mode.
  • 23. Prof Madhumita Tamhane Control Field – Some Un-numbered commands ✓ Request Initialization Mode (RIM) ✓ 000 F 0111 Response ✓ Request sent by secondary for SIM from primary if error noted or needs to come out of DISC. ✓ Set Normal Response Mode (SNRM) ✓ 100 P 0011 Command ✓ Primary places secondary in normal response mode. ✓ Resets nr and ns counter at primary and secondary. ✓ Secondary responses by UA.
  • 24. Prof Madhumita Tamhane Control Field – Some Un-numbered commands ✓ Request disconnect mode (RD) ✓ 010 F 0011 Response ✓ Disconnect (DISC) ✓ 010 P 0011 Command ✓ In this mode secondary can not receive/send I frames. ✓ Can receive only SIM, SNRM. ✓ Secondary responses by UA. ✓ Disconnect mode (DM) ✓ 000 F 1111 Response ✓ Disconnected secondary reminds primary about its status if later tries to send un-numbered frame. ✓
  • 25. Prof Madhumita Tamhane Control Field – Some Un-numbered commands ✓ Un-numbered acknowledgement (UA) ✓ 011 F 0011 Response ✓ In response to SIM, SNRM, DISC ✓ TEST 111 P 0011 ✓ Command/Response to solicit/reply TEST response. ✓ Secondary returns back information field. ✓ Exchange for link testing purpose.
  • 26. Prof Madhumita Tamhane Control Field – Some Un-numbered commands ✓ Exchange Station Identification (XID) ✓ 101 P 1111 Command/Response ✓ XID solicits identification of secondary station. ✓ I field can be included in the frame to convey identification data of either primary or secondary station. ✓ EX- In dial-up circuits, it is necessary that secondary station identifies itself before primary will exchange information frames with it. !
  • 27. Prof Madhumita Tamhane Control Field – Some Un-numbered commands ✓ Frame Reject (FRMR) 100 F 0111 Response ✓ Reasons: ✓ Control field has invalid command. ✓ Data exceeds buffer . ✓ Information sent in frame that doesn't allow it. ✓ ns and nr do not match. ✓ Secondary keeps sending FRMR till it receives SNRM, DISC or SIM
  • 28. Prof Madhumita Tamhane Control Field – Some Un-numbered commands
 I field of FRMR ! ! ! ✓ W = 1, Invalid command ✓ X = 1, Prohibited information field received. ✓ Y = 1, Buffer overrun. ✓ Z = 1, Received nr disagrees with transmitted ns. XXXXXXXX 0XXX0XXX WXYZ 0 0 0 0 C field of rejected command ns nr secondary’s present ns and nr
  • 29. Prof Madhumita Tamhane Frame Check Sequence ! ! ! ! ✓ CRC-16 ✓ g(x) = x16 + x12 + x5 + x1 16 bits FCS
  • 30. Prof Madhumita Tamhane Transparency ✓ Flag 01111110 should be avoided in data. ✓ Using zero-bit-insertion or zero stuffing. ✓ In Data, after every five 1’s, a zero is inserted. ✓ Hence, if we get six 1’s, it is a valid flag. ✓ Example: ✓ 01111110 01101111 11010011 Flag Address Control ✓ 1110001100110101 00101011 01111110 Data FCS Flag
  • 31. Prof Madhumita Tamhane Transparency ✓ Transmitted: ✓ 01111110 01101111 101010011 Flag Address Control ✓ 11100001100110101 00101011 01111110 Data FCS Flag ! ✓ Received: ✓ 01111110 01101111 11010011 Flag Address Control ✓ 1110001100110101 00101011 01111110 Data FCS Flag
  • 32. Prof Madhumita Tamhane Message Abort ✓ Used to permanently terminate a frame. ✓ Generally done to accommodate high-priority message such as emergency link recovery procedure,… ✓ Message abort is occurrence of 7-14 consecutive 1s. ✓ Zeros are nor inserted in message abort. ✓ Terminates an existing frame and immediately begins a high priority frame. ✓ If more than 14 consecutive 1s occur in succession, it places into idle line condition. ✓
  • 33. Prof Madhumita Tamhane HDLC HIGH LEVEL DATA LINK CONTROL DATA LINK CONTROL COMMUNICATION
  • 34. Prof Madhumita Tamhane HDLC ✓ In SDLC - ISO defines high order bit as bo. ✓ In HDLC - ISO defines low order bit as bo. ✓ Hence all patterns are reversed in HDLC. b0 b1 b2 b3 b4 b5 b6 b7 SDLC b7 b6 b5 b4 b3 b2 b1 b0 HDLC
  • 35. Prof Madhumita Tamhane HDLC - Modes ✓ Normal Response mode NRM: ✓ One primary, rest secondary. ✓ Primary polls/selects secondary. ✓ Unsolicited responses are not allowed. ! ✓ Asynchronous Response mode ARM : ✓ A secondary may initiate a transmission without permission from primary if channel in idle. ✓ Primary-secondary relationship otherwise not altered. ✓ Secondary to secondary through primary only.
  • 36. Prof Madhumita Tamhane HDLC - Modes ✓ Asynchronous Balance mode ABM : ✓ Special arrangement. ✓ If point to point link between two secondaries is present then Peer to peer is allowed. ✓ Mode to be invoked when desired. ✓ Primary brings a secondary in ABM mode.
  • 37. Prof Madhumita Tamhane HDLC - Frame ! ! ! ! ✓ General frame structure as defined by ✓ ISO 3309 – 1976 E (Frame structure, Flag and transparency mechanism.) ✓ ISO 4335 – 1979 E (Control, I, S and U fields) ! ✓ Flag same as SDLC. Flag Address Control Data… FCS Flag 8 bits extended extended Variable multiple of 8 16 bits 8 bits
  • 38. Prof Madhumita Tamhane HDLC - Address ! ! ! ! ! ! ✓ 8 bit or extended. ✓ If bo = 0, next byte is also a part of address. ✓ If bo = 1, end of address. Address extended b7 b6 b5 b4 b3 b2 b1 b0
  • 39. Prof Madhumita Tamhane HDLC - Address ✓ Example: ! ✓ 01111110 XXXXXXX0 XXXXXXX1 Flag Byte1 Byte2 -end of address ! ✓ Can extend up to n number of bytes.
  • 40. Prof Madhumita Tamhane HDLC - Control – Information Frame
 Normal Mode ! ! ! ! ! ! Control normal P/P Or F/F b7 b6 b5 b4 b3 b2 ns b1 b0 0 nr
  • 41. Prof Madhumita Tamhane HDLC - Control – Information Frame Extended Mode ! ! ! ! ! ! Control extended ns 0 P/ F nr
  • 42. Prof Madhumita Tamhane HDLC - Control – Supervisory Frame
 Normal Mode ! ! ! ! ! ! Control normal P/F b7 b6 b5 b4 b3 b2 b1 b0 1 nr 0 X X
  • 43. Prof Madhumita Tamhane HDLC - Control – Supervisory Frame
 Extended Mode ! ! ! ! ! ! Control extende d 1 P/ F nr 0 X X 0 0 0 0
  • 44. Prof Madhumita Tamhane HDLC - Control – Supervisory Frame
 Normal Mode ! ! ! ! ! ! b b Receive Status 0 0 Ready to receive RR Positive acknowledgement when I frame not available. 0 1 REJ(Reject) Go back N ARQ 1 0 RNR 1 1 SREJ (selective reject)
  • 45. Prof Madhumita Tamhane HDLC - Control – Supervisory Frame
 ✓ OPTIONS with RR: ✓ RR with ACK ✓ RR with P = 1 ✓ RR with F = 1 ✓ RR with F = 1 ! ✓ OPTIONS with RNR: ✓ RNR with ACK ✓ RNR with P = 1 ✓ RNR with F = 1
  • 46. Prof Madhumita Tamhane HDLC - Control – Un-numbered Frame
 ! ! ! ! ! ! ✓ No extended field available. ✓ Control 5 bits are reversed vis-a-vis SDLC ✓ SIM – 10000 ✓ SNRM - 00001 Control normal P/F b7 b6 b5 b4 b3 b2 b1 b0 1 X1 X X X X
  • 47. Prof Madhumita Tamhane Draw poll response sequence frames for HDLC
 ✓ Main A Flag Flag F C S A S - Frame 0 P = 1 RR Flag Flag A F C S I - Frame 0 F = 0 0 Data Flag Flag A F C S I - Frame 1 F = 1 0 Data Flag Flag F C S A S - Frame 2 P = 0 RNR
  • 48. Prof Madhumita Tamhane Draw select response sequence frames for HDLC
 ✓ Main A Flag Flag F C S A S - Frame 0 P = 1 RNR Flag FlagA FC S S - Frame RR F = 1 0 Flag FlagA F C S I - Frame 0P = 00 Data Flag FlagA FC S S - Frame RR F = 1 1
  • 49. Prof Madhumita Tamhane Peer to peer communication using
 HDLC
 ✓ A B Flag FlagB F C S I - Frame 00 Data Flag FlagB F C S U - Frame 11P = 1100 Data Flag Flag A F C S U - Frame 00 F = 1 110 Data Flag FlagB F C S I - Frame 10 Data
  • 50. Prof Madhumita Tamhane Contd. ✓ A B Flag Flag A F C S I - Frame 0 2 Data Flag Flag A F C S I - Frame 1 2 Data Flag Flag A F C S I - Frame 2 2 Data Flag Flag F C S B S - Frame 3 RR
  • 51. Prof Madhumita Tamhane Peer to peer communication with error ✓ A B Flag Flag A F C S I - Frame 0 2 Data Flag Flag A F C S I - Frame 1 2 Data Flag Flag A F C S I - Frame 2 2 Data Error Flag Flag F C S B S - Frame 1 REJ
  • 52. Prof Madhumita Tamhane Contd. ✓ A B Flag Flag A F C S I - Frame 1 2 Data Flag Flag A F C S I - Frame 2 2 Data Flag Flag F C S B S - Frame 3 RR