Acknowledgments Timers Link Protocol Functions
3.2.1. Acknowledgments
Data link layer does not provide end-to-end accountability; this is a responsibility of higher layers. Instead, each station is responsible for ensuring that the data received by it is correctly passed to the next station. This is facilitated by the use of acknowledgments, of which there are two types: • An acknowledgment ACK is sent by a receiver to a transmitter to indicate that a frame has been received seemingly intact. • A negative acknowledgment NAK is sent by a receiver to a transmitter to indicate that a corrupt frame has been received, or that a frame is missing. In character-based protocols, acknowledgments are implemented as control characters. In bit-oriented protocols, they are implemented as acknowledgment frames . The control field of a frame can contain two sequence numbers: a send sequence number and a receive sequence number. The frames dispatched by a transmitter are sequentially numbered using the send sequence number. The receiver compares the send sequence number of a frame against the send sequence numbers of earlier frames to check for lost frames. A NAK frame uses the receive sequence number to identify a corrupted frame, while an ACK frame uses the receive sequence number to identify the next frame it expects to receive, implying that it has correctly received all frames with sequence numbers less than that number. To improve the use of network bandwidth, an acknowledgment method known as piggybacking is often used. In piggybacking, instead of sending a separate acknowledgment frame, the receiver waits until it has data to send to the receiver and embeds the acknowledgment in that frame.3.2.2. Timers
Timers provide a mechanism for placing a time limit on certain operations to be completed. A timer is set by a process and has a predefined expiry period. When the timer expires, the corresponding process is notified to take appropriate action. Link protocols make use of a number of different timers, the exact number and function of which is protocol-dependent. However, two important timers called T1 and T2 are used by most protocols. T1 is set by a transmitter upon transmitting a frame. The transmitter expects to receive an acknowledgment frame before T1 expires. Otherwise, the transmitter resets T1 and retransmits the frame. The protocol allows a certain number of retries before the problem is propagated to a higher layer. T2 is set by a receiver to ensure that an acknowledgment frame is sent to the transmitter before its T1 timer expires. This is intended to avoid the transmitter having 40 Communication Networks Copyright © 2005 PragSoft to retransmit frames because the receiver has been slow in acknowledging their receipt. When piggybacking is used, the receiver will send a separate acknowledgment frame if T2 expires.3.2.3. Error Checking
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