piggybacking a method to combine a data frame with ack. station a and b both have data to send....
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](https://reader038.vdocuments.us/reader038/viewer/2022110207/56649d355503460f94a0c64f/html5/thumbnails/1.jpg)
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](https://reader038.vdocuments.us/reader038/viewer/2022110207/56649d355503460f94a0c64f/html5/thumbnails/2.jpg)
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](https://reader038.vdocuments.us/reader038/viewer/2022110207/56649d355503460f94a0c64f/html5/thumbnails/3.jpg)
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](https://reader038.vdocuments.us/reader038/viewer/2022110207/56649d355503460f94a0c64f/html5/thumbnails/4.jpg)
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](https://reader038.vdocuments.us/reader038/viewer/2022110207/56649d355503460f94a0c64f/html5/thumbnails/5.jpg)
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](https://reader038.vdocuments.us/reader038/viewer/2022110207/56649d355503460f94a0c64f/html5/thumbnails/6.jpg)
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](https://reader038.vdocuments.us/reader038/viewer/2022110207/56649d355503460f94a0c64f/html5/thumbnails/7.jpg)
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](https://reader038.vdocuments.us/reader038/viewer/2022110207/56649d355503460f94a0c64f/html5/thumbnails/8.jpg)
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](https://reader038.vdocuments.us/reader038/viewer/2022110207/56649d355503460f94a0c64f/html5/thumbnails/9.jpg)
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](https://reader038.vdocuments.us/reader038/viewer/2022110207/56649d355503460f94a0c64f/html5/thumbnails/10.jpg)
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](https://reader038.vdocuments.us/reader038/viewer/2022110207/56649d355503460f94a0c64f/html5/thumbnails/11.jpg)
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](https://reader038.vdocuments.us/reader038/viewer/2022110207/56649d355503460f94a0c64f/html5/thumbnails/12.jpg)
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](https://reader038.vdocuments.us/reader038/viewer/2022110207/56649d355503460f94a0c64f/html5/thumbnails/13.jpg)
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](https://reader038.vdocuments.us/reader038/viewer/2022110207/56649d355503460f94a0c64f/html5/thumbnails/14.jpg)
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](https://reader038.vdocuments.us/reader038/viewer/2022110207/56649d355503460f94a0c64f/html5/thumbnails/15.jpg)
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](https://reader038.vdocuments.us/reader038/viewer/2022110207/56649d355503460f94a0c64f/html5/thumbnails/16.jpg)
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](https://reader038.vdocuments.us/reader038/viewer/2022110207/56649d355503460f94a0c64f/html5/thumbnails/17.jpg)
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](https://reader038.vdocuments.us/reader038/viewer/2022110207/56649d355503460f94a0c64f/html5/thumbnails/18.jpg)
Frame Check Sequence FieldFCSError detection16 bit CRCOptional 32 bit CRC