Chapter 2 Point-to-Point Data Transfer Flashcards

(41 cards)

1
Q

In the data link layer what is a “frame”

A

A unit of data exchanged between nodes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Two main ways of handling corrupted frames

A

Forward Error Correction: Receiver corrects errors based on added redundancy
Error Dectection: Receiver identifies erros and dsicards corrupted frames

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Stop-and-wait Protocol

A

Send one frame, wait for an ACK before sending next, requires sequence numbers for frame recognition and timeout mechanisms to avoid deadlock.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Why can stop-and-wait protocol be inefficient?

A

Long propagation delays relative to transmission times.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are two basic pipelining strategies in reliable data transfer

A

Go-Back-N sliding window
Selective Repeat sliding window

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Go-Back-N sliding window

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are cumulative Acks? Where is it used?

A

These are acks that are all the frames transmitted before frame i-1. Used in Go-Back-N

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a sending window?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Why must Go-Back-n limit the sending window size when using small sequence numbers?

A

To avoid ambiguity between new and retransmitted frames due to sequence number reuse

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Maximum sending window size with k-bit sequencenumber in Go-Back-N?

A

2^k - 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Why can’t Go-Back-n use a window size equal to the number of sequence numbers?

A

Because if all ACK’s are lost, retransmissions may appear to the receiver as new frames due to sequence number overlap

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the bandwidth-delay product?

A

Bandwidth * Round-trip Time; represents amount of data that can be in the minimum window size needed for full channel utilization.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Selective Repeat Sliding Window

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How does the sender in Selective Repeat decide when to retransmit?

A

It sets a timeout and only retransmits the oldest unACK’d frame when the timeout expires.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Why add redundancy in data transmission

A

To enable error detection, by adding extra bits to the original data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Block Code?

A

A code that maps m message bits to an n = m + r bit codeword only using the current m bits.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Systematic Code?

A

Input data is embedded on the output

18
Q

How is code rate defined

A

Code Rate = m/n

19
Q

Hamming Distance between two codewords?

A

Number of bit postions in which the two codewords differe

20
Q

Hamming Distance of a code?

A

THe minimum hamming distance among all valid codeword pairs.

21
Q

To DETECT up to “d” errors what hamming distance is needed?

22
Q

to CORRECT up to d errors, what hamming distance is needed?

A

At least 2d + 1

23
Q

How does the number of redundancy bits “r” scale with message length “m” and errors “d”?

A

r scales roughly as d log m for reliable correction

24
Q

Cyclic Redundancy Check

A

Error-detching code widely used at the link layer. It generates a checksum

25
How is CRC Codeword formed
Append r redundancy bits to m messages so that n = m + r bits that are divisble under XOR
26
How does a receiver use CRC to detect errors
It checks if the received codeword is divisble by G using XOR divison, if not than an error is detected.
27
Convolutional Codes
Codes that output encoded bits based on current and previous message bits.
28
Code rate of convolutional code
The ratio of message bits to codeword bits
29
Difference between soft-decision and hard-decision decoding
Hard decision: Each bit is either 0 or 1 Soft-decision: uses physical layer info baout the signal condience levels to improve accuracy.
30
4 methods for Frame Delimiting
-Flag bytes with byte stuffing -bit stuffing -coding violations -preamble + legnth field
31
Framing in the link layer
the process of encapsulating data received from the network layer into smaller, manageable units called frames before transmission over the physical medium
32
What fields helps the receiver identify how to process the frame payload?
A type field indicating the payloads protocol (IP)
33
What happens when the sender transmits faster than the receiver can process?
Reciever buffer overflow or data loss.
34
How do we deal with potential scenario of sender transmitting data faster than the receiver can deal with it?
Simply discard traffic Use a flow control mechanism.
35
What is Converged Enchanced Ethernet?
an enchanced version of ethernet used in data centers to support advanced control mechanisms
36
Priority flow control
A machanism to send pause/resume frames for individual traffic
37
The problem with flow control at the link layer?
It can have a cascading pause effect, a paused node may need to pause upstream nodes casuing congestion
38
What is QCN? Quantized Congestion Notification
A congestion management technique in CEEE that helps control the cascading pause problem for long lived flows. Used in high performance data centers
39
End-to-end argument say about protocol design
That certain functionalities like relaibility needs to be implemented at the endpoints to be correct and complete for this application
40
Why can't the lower layers guarantee reliable delivery across the network?
They can't account for failures at intermediate nodes between sender and receiver.
41
Why might implementing reliability at the core of the network be avoided?
Keeps core simple and cheap Reduces overhead for apps that dont need reliability Makes network more adaptable