7 - Reliability Flashcards
Rdt 1.0 (this card is not very good, update it)
Perfectly reliable
Rdt2
Underlying channel may flip bits in packets
so use ACKs to recover
- error detection
- receiver feedback
rdt 3.0
Send pkt 0
Receive pkt 0
send ACK 0
Receive ACK 0
repeat
If not ACK received, resend last packet
What is sliding window protocol?
Send more data at once
first packet bit, t = 0
last bit transmitted t= L/R
first packet bit arrives
last packt bit arrives, send ACK
last bit of 2nd pkt, send ACK
last bit of 3rd, send ACK
ACK arrives send next packet t = RTT + L/R
(3Psize)/(BRTT) = efficiency increased by N (window size)
What is pipelined protocols?
pipelining - sender allows multiple, unacknowledged pkts
go-back-N
selective repeat
Go back N
Receiver only sends cumulative ACKs (ie no gaps)
Sender maintains timer for oldest unacked packet
- retransmit all unacked packets
Selective Repeat
Receiver acks individual packets
Sender maintains timer for each unacked packet
- only resend unacked packet
What is the advantage of GbN?
Simplicity of receiver buffering, need NOT buffer any out of order packets
What is a disadvantage of GbN?
subsequent retransmission might be lost, necessitating further transmissions
how large must window size be?
Less than or equal to half the size of the sequence number space for SR protocol
Parity Bit
A bit that is added to ensure that num of 1 bits is always even (or odd)
What is the internet checksum?
Binary data viewed as 16bit symbols where b is the 1’s complement of the rest of data
If it’s 1111…1 no error, else error
1’s Complement
Convert all 0s to 1s and all 1s to 0s