Chapter 2 Point-to-Point Data Transfer Flashcards
(41 cards)
In the data link layer what is a “frame”
A unit of data exchanged between nodes
Two main ways of handling corrupted frames
Forward Error Correction: Receiver corrects errors based on added redundancy
Error Dectection: Receiver identifies erros and dsicards corrupted frames
Stop-and-wait Protocol
Send one frame, wait for an ACK before sending next, requires sequence numbers for frame recognition and timeout mechanisms to avoid deadlock.
Why can stop-and-wait protocol be inefficient?
Long propagation delays relative to transmission times.
What are two basic pipelining strategies in reliable data transfer
Go-Back-N sliding window
Selective Repeat sliding window
Go-Back-N sliding window
The sender can transmit multiple frames, the receiver does NOT buffer out-of-oder frames upon detecting a lost frame. Sender retransmits that frame plus all subsequent frames.
What are cumulative Acks? Where is it used?
These are acks that are all the frames transmitted before frame i-1. Used in Go-Back-N
What is a sending window?
Consists of a sequence numbers of those frames that have been trasnsmitted but not yet acknowledged. As well as new frames the sender is permitted to send. The window slides through this sequence numbers.
Why must Go-Back-n limit the sending window size when using small sequence numbers?
To avoid ambiguity between new and retransmitted frames due to sequence number reuse
Maximum sending window size with k-bit sequencenumber in Go-Back-N?
2^k - 1
Why can’t Go-Back-n use a window size equal to the number of sequence numbers?
Because if all ACK’s are lost, retransmissions may appear to the receiver as new frames due to sequence number overlap
What is the bandwidth-delay product?
Bandwidth * Round-trip Time; represents amount of data that can be in the minimum window size needed for full channel utilization.
Selective Repeat Sliding Window
Unlike go-back-n protocol, the receiver can now buffer out-of-order frames until the missing frames have been recieved. The sender only retransmits frames thought to have NOT be recevied correctly.
- uses a cumulative ack
- reciever maintains a window
How does the sender in Selective Repeat decide when to retransmit?
It sets a timeout and only retransmits the oldest unACK’d frame when the timeout expires.
Why add redundancy in data transmission
To enable error detection, by adding extra bits to the original data.
Block Code?
A code that maps m message bits to an n = m + r bit codeword only using the current m bits.
Systematic Code?
Input data is embedded on the output
How is code rate defined
Code Rate = m/n
Hamming Distance between two codewords?
Number of bit postions in which the two codewords differe
Hamming Distance of a code?
THe minimum hamming distance among all valid codeword pairs.
To DETECT up to “d” errors what hamming distance is needed?
Atleast d+1
to CORRECT up to d errors, what hamming distance is needed?
At least 2d + 1
How does the number of redundancy bits “r” scale with message length “m” and errors “d”?
r scales roughly as d log m for reliable correction
Cyclic Redundancy Check
Error-detching code widely used at the link layer. It generates a checksum