piggybacking a method to combine a data frame with ack. station a and b both have data to send....

18
Piggybacking A method to combine a data frame with ACK. Station A and B both have data to send. Instead of sending separately, station A sends a data frame that includes an ACK. Station B does the same thing. Piggybacking saves bandwidth.

Upload: toby-baldwin

Post on 19-Dec-2015

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Piggybacking A method to combine a data frame with ACK. Station A and B both have data to send. Instead of sending separately, station A sends a data frame

Piggybacking • A method to combine a data frame with ACK.

• Station A and B both have data to send.

• Instead of sending separately, station A sends a data frame that includes an ACK.

• Station B does the same thing.

• Piggybacking saves bandwidth.

Page 2: Piggybacking A method to combine a data frame with ACK. Station A and B both have data to send. Instead of sending separately, station A sends a data frame

HDLCHigh-level Data Link Control (HDLC) is a bit-oriented protocol for communication over point-to-point and multipoint links. It implements the ARQ mechanisms we discussed in this chapter.

Page 3: Piggybacking A method to combine a data frame with ACK. Station A and B both have data to send. Instead of sending separately, station A sends a data frame

HDLC Station TypesPrimary station

Controls operation of link Issues commands (frames)Maintains separate logical link to each secondary station

Secondary stationUnder control of primary station Issues responses (frames)

Combined stationMay issue commands and responsesCombines the features of primary and secondary

stations

Page 4: Piggybacking A method to combine a data frame with ACK. Station A and B both have data to send. Instead of sending separately, station A sends a data frame

HDLC Link ConfigurationsUnbalanced

One primary and one or more secondary stations

Supports full duplex and half duplexBalanced

Two combined stationsSupports full duplex and half duplex

Page 5: Piggybacking A method to combine a data frame with ACK. Station A and B both have data to send. Instead of sending separately, station A sends a data frame

HDLC Transfer Modes (1)Normal Response Mode (NRM)

Unbalanced configurationPrimary can only initiate transmission Secondary may only transmit data in response

to command (poll) from primaryHost computer as primaryTerminals as secondary

Page 6: Piggybacking A method to combine a data frame with ACK. Station A and B both have data to send. Instead of sending separately, station A sends a data frame

HDLC Transfer Modes (2)Asynchronous Balanced Mode (ABM)

Balanced configurationEither station may initiate transmission

without receiving permissionMost widely used

Page 7: Piggybacking A method to combine a data frame with ACK. Station A and B both have data to send. Instead of sending separately, station A sends a data frame

HDLC Transfer Modes (3)Asynchronous Response Mode (ARM)

Unbalanced configurationSecondary may initiate transmission without

permission form primaryPrimary is responsible for connect, disconnect,

error recovery, and initializationrarely used

Page 8: Piggybacking A method to combine a data frame with ACK. Station A and B both have data to send. Instead of sending separately, station A sends a data frame

Frame Structure

01111110 01111110

Defines 3 types of frames (I,S,U frames)

Page 9: Piggybacking A method to combine a data frame with ACK. Station A and B both have data to send. Instead of sending separately, station A sends a data frame

Flag Fieldsdefine frame at both ends01111110Receiver hunts for flag sequence to

synchronizeBit stuffing used to avoid confusion with data

containing 01111110The transmitter inserts 0 bit after every

sequence of five 1s with the exception of flag fields

Page 10: Piggybacking A method to combine a data frame with ACK. Station A and B both have data to send. Instead of sending separately, station A sends a data frame

Address FieldIdentifies secondary station that sent or will

receive frameUsually 8 bits long

Page 11: Piggybacking A method to combine a data frame with ACK. Station A and B both have data to send. Instead of sending separately, station A sends a data frame

Control FieldDifferent for different frame type

I-frame (information frame) data to be transmitted to user (next layer up) Flow and error control piggybacked on information

framesS-frame (Supervisory frame)

Used for flow and error controlU-frame (Unnumbered frame)

supplementary link control

First one or two bits of control filed identify frame type

Page 12: Piggybacking A method to combine a data frame with ACK. Station A and B both have data to send. Instead of sending separately, station A sends a data frame

Control Field Diagram

Page 13: Piggybacking A method to combine a data frame with ACK. Station A and B both have data to send. Instead of sending separately, station A sends a data frame

I-frameContains the sequence number of transmitted

frames and a piggybacked ACK

1 2 3 4 5 6 7 8

0 N(S) P/F N(R)

Page 14: Piggybacking A method to combine a data frame with ACK. Station A and B both have data to send. Instead of sending separately, station A sends a data frame

S-frameUsed for flow and error control

1 2 3 4 5 6 7 8

1 S P/F N(R)

• RR --- receive ready

• RNR --- receive not ready

• REJ --- reject on frame N(R)

• SREJ --- selective reject on N(R)

0

Page 15: Piggybacking A method to combine a data frame with ACK. Station A and B both have data to send. Instead of sending separately, station A sends a data frame

U-frameMode setting, recovery, connect/diconnect

1 2 3 4 5 6 7 8

1 M P/F M1

Unnumbered function bits

Page 16: Piggybacking A method to combine a data frame with ACK. Station A and B both have data to send. Instead of sending separately, station A sends a data frame

Unnumberred framesSet normal response mode (SNRM)Set asynchronous response mode (SARM)Set asynchronous balanced mode (SABM)Disconnect (DISC)Unnumberred acknowledgement (UA)Disconnect mode (DM)Request disconnect (RD)Unnumberred poll (UP)Reset (RSET)Exchange identification (XID)Test (TEST)Frame reject (FRMR)

Page 17: Piggybacking A method to combine a data frame with ACK. Station A and B both have data to send. Instead of sending separately, station A sends a data frame

Information FieldOnly in information and some unnumbered

framesMust contain integral number of octetsVariable length

Page 18: Piggybacking A method to combine a data frame with ACK. Station A and B both have data to send. Instead of sending separately, station A sends a data frame

Frame Check Sequence FieldFCSError detection16 bit CRCOptional 32 bit CRC