220 likes | 361 Views
Chapter 10 Homework. 10 - 2, 11, 33, 41, 62. Chapter 10 Data Link Control. Flow Control Error Control High-Level Data Link Control (HDLC) Other Data Link Control Protocols. Terminology. What is a Frame? A group of bits representing a block of data.
E N D
Chapter 10 Homework • 10 - 2, 11, 33, 41, 62
Chapter 10Data Link Control • Flow Control • Error Control • High-Level Data Link Control (HDLC) • Other Data Link Control Protocols
Terminology • What is a Frame? • A group of bits representing a • block of data.
Some Reasons for Sending Data in Frames • Limitation on the receiving device buffer size • Transmission of large blocks of data means higher probability for errors • Fair access of medium
Data Link Error Control Line Management Flow Control How much data May be sent? How can errors be corrected? Who should send now?
Some Requirements for Effective Data Transmission Systems • Frame Synchronization • Flow Control • Error Control • Addressing • Handling control info and data ( preferred on the same link) • Link Management • Connection initiation • Connection maintenance • Connection termination
Flow Control: Regulates the flow of data from a transmitting device so that the receiver’s buffers do not overflow • Bit errors by transmission system should be detected and corrected.
Flow Control Methods • Stop-and Wait Flow Control • Sliding-Window Flow Control
Stop-and Wait Flow Control • Send a Frame. • Wait until an acknowledgement • is received. • Send next frame
Efficiency of Stop-and-Wait Flow Control Define: • Transmission time • Processing time • Propagation time
Efficiency(utilization) of Stop-and-Wait Flow Control U= d=distance L=frame length R=data rate This represents the ratio of the length of the medium in bits(bit length) to frame length.
Sliding-Window Flow ControlProcess Two Stations A & B connected by full duplex link. • B allocates buffer space for W frames. • Acan send W frames without waiting for acknowledgement. • B acknowledges a frame that includes the sequence number of the next expected frame. • (for 3-bit field sequence number rages from 0-7)
Error Detection(Checksum) • Sender performs one’s complement of the sum of all the 16-bit words in the segment.(all the 1’s convertred to 0 and all 0’s converted to 1) • This is placed in the checksum field of the packet. • At the receiver, all 16-bit words including the checksum are added. • If no errors occurred, the sum will be: • 1111111111111111 (16 ones) • Presence of any zero indicates an error.
Error Detection (Checksum Example) • Assume we have the following 16-bit words: • 0110011001100110 • 0101010101010101 • The sum is (using modulo 2 arithmetic equivalent to XOR operation) • 1011101110111011 • 0100010001000100 (one’s complement of the sum) • 1111111111111111 (sum of the one’s complement and all 16-bit words at the receiver)
Error Control Methods • Stop-and-wait ARQ (automatic repeat request) • Go-back-N ARQ • Selective-reject ARQ
Error Control Methods • Stop-and-wait ARQ • Is based on stop-and-wait flow control
Error Control Methods • Go-back-N ARQ • Is based on sliding-window flow control
Error Control Methods • Selective-reject ARQ • Frames are retransmitted only if negative acknowledgement is received.