Retransmission Flow Control Link Protocol Functions
3.2.4. Retransmission
Data link layer’s approach to dealing with corrupted or lost frames is to retransmit them. Two different methods exist for this purpose. In the first method, called Selective Reject , upon encountering a faulty frame, the receiver requests the retransmission of that specific frame. Since additional frames may have followed the faulty frame, the receiver needs to be able to temporarily store these frames until it has received a corrected version of the faulty frame, so that frame order is maintained. A simpler method, Go-Back-N, involves the transmitter requesting the retransmission of the faulty frame as well as all succeeding frames i.e., all frames transmitted after the faulty frame. In other words, the receiver will not accept frames out of order and hence requires no additional means of storing them. The advantage of Selective Reject over Go-Back-N is that it leads to better throughput, because only the erroneous frames are retransmitted. Go-Back-N, however, has the advantage of being simpler to implement and requiring less memory. To obtain the best of both worlds, sometimes a hybrid method is used. It behaves the same as Selective Reject, unless two consecutive frames are in error, in which case it behaves as in Go-Back-N.3.2.5. Flow Control
The various stations in a network may operate at different speeds. One of the tasks of the data link layer is to ensure that slow devices are not swamped with data from fast devices. Flow control refers to the regulating of the rate of data flow from one 3 An octet consists of eight consecutive bits. In most systems this is the same as a byte, but there are also systems, where a byte has seven, or nine, or some other number of bits. www.pragsoft.com Chapter 3: The Data Link Layer 43 device to another so that the receiver has enough time to consume the data in its receive buffer, before it overflows. In character-oriented protocols, flow control is usually based on two control characters: XON and XOFF. When the receiver senses that it can no longer accept incoming data, it sends an XOFF character to the transmitter, which causes the latter to stop transmitting. Once the receiver has consumed enough of the data in its receive buffer so that it can receive more, it sends an XON character to the transmitter, causing it to resume transmission. In bit-oriented protocols, flow control is handled through the use of ACK frames. Since the transmitter needs to keep a copy of its transmitted but yet unacknowledged frames in a buffer in case they are corrupted and need to be retransmitted, the size of the buffer imposes an upper limit on the number of such frames. When necessary, the receiver can use this fact to slow down the transmitter by withholding ACK frames. The protocol described in the next section uses exactly such a strategy.3.3. Sliding Window Protocol
Parts
» | Komputasi | Suatu Permulaan
» Introduction 1 The Physical Layer 18 The Data Link Layer 36 The Network Layer 52
» Integrated Services Digital Network 140 Broadband ISDN and ATM 161
» Network Components Network Types
» The Physical Layer The Data Link Layer
» The Network Layer The Transport Layer
» The Session Layer The Presentation Layer
» Service Primitives Sequence Diagrams
» Signal Types Modulation Transmission
» Space Division Multiplexing SDM Frequency Division Multiplexing FDM Time Division Multiplexing TDM
» RS-232 Physical Layer Standards
» Further Reading Summary Exercises
» Synchronous Protocols Asynchronous Protocols
» Acknowledgments Timers Link Protocol Functions
» Error Checking Link Protocol Functions
» Retransmission Flow Control Link Protocol Functions
» Sliding Window Protocol The Data Link Layer
» BSC Data Link Layer Standards
» HDLC Data Link Layer Standards
» Further Reading Summary The Data Link Layer
» Exercises The Data Link Layer
» Network Services The Network Layer
» Circuit Switching Switching Methods
» Packet Switching Switching Methods
» Packet Structure Routing Packet Handling
» Congestion Control Error Handling
» CCITT X.25 Network Layer Standards
» CCITT X.75 IP Network Layer Standards
» ISO 8473 Network Layer Standards
» Further Reading Summary The Network Layer
» supports three types of packets: data packets, control packets, and interrupt
» Network Types Transport Services
» Classes of Protocol Transport Protocol
» Splitting and Recombining Transport Protocol
» Flow Control Transport Protocol
» Error Checking Transport Protocol
» TCP Transport Layer Standards
» Further Reading The Transport Layer
» Session Layer Role Session Services
» Functional Units Session Services
» Activities and Dialogue Units
» Error Reporting and Resynchronization
» Session Layer Standards The Session Layer
» Further Reading The Session Layer
» Service Primitives Presentation Services
» Definitions in ASN.1 Abstract Syntax Notation One
» Basic Encoding Rules Abstract Syntax Notation One
» Presentation Protocol The Presentation Layer
» Presentation Standards The Presentation Layer
» Further Reading The Presentation Layer
» Application Entity Application Services
» Association Control Common Application Service Elements
» Reliable Transfer Common Application Service Elements
» Virtual Terminal Specific Application Service Elements
» Message Handling Systems Specific Application Service Elements
» File Transfer, Access, and Management
» Other Standards The Application Layer
» Further Reading The Application Layer
» Topologies and Access Protocols
» Logical Link Control IEEE 802 Standards
» Token Ring Protocol ANSI FDDI Standard
» Further Reading Local Area Networks
» A Simple Network Basic Concepts
» Networks Topologies Basic Concepts
» Switching Systems Basic Concepts
» Common Channel Signaling Signaling
» Signaling Data Link Signaling Link Control
» Signaling Network Functions Signaling System Number 7
» Signaling Connection Control Part
» User Parts Signaling System Number 7
» PBX Networks Private Telephone Networks
» Corporate Networks Private Telephone Networks
» Intelligent Networks Private Telephone Networks
» Further Reading Telephone Networks
» ISDN Channels Basic Concepts
» Functional Groupings and Reference Points
» ISDN Services Basic Concepts
» The Physical Layer Protocol Architecture
» The Network Layer Protocol Architecture
» Internetworking Integrated Services Digital Network
» ISDN Standards Integrated Services Digital Network
» Further Reading Integrated Services Digital Network
» B-ISDN Services Broadband ISDN
» B-ISDN User-Network Interface Broadband ISDN
» B-ISDN Protocol Architecture Broadband ISDN
» Channels and Paths Asynchronous Transfer Mode
» ATM Cells Asynchronous Transfer Mode
» SDH-Based Interface Physical Layer
» Cell-Based Interface Physical Layer
» Cell Delineation Physical Layer
» HEC Generation and Verification
» Cell Rate Decoupling Physical Layer
» Virtual Channel Identifier ATM Layer
Show more