Chapter 3 - Part2 Flashcards

1
Q

What is the Stop and Wait Protocol

A

sender sends one packet then waits for a receiver response

  • resends packet if no response (time-out)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How is reliable services implemented (for app/transport layer)

A

Using sockets between the application and transport layer to ensure reliable data transfer protocol

  • Works even if the network layer has an unreliable channel (link)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are some mechanisms provided by the stop-and-wait protocol?

A
  • ACKS
  • Retransmissions
  • Checksums
  • Timeout
  • Sequence #’s
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What kind of protocol is Sequence numbering found in? TCP, UDP, or both?

A

TCP ONLY.

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

For Stop and Wait Protocol, what happens when there is no loss?

A

Sender: sends pkt 0

Receiver: rcv pkt 0, sends ack 0

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

For Stop and Wait Protocol, what happens when there is packet loss in the middle of transmission?

A

Timeout happens and it resends the packet that is lost.

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

For Stop and Wait Protocol, what happens when there is a packet with bit error?

A

Receiver detects the error through checksum.

Receiver sends ACK for the last packet received correctly

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

For Stop and Wait Protocol, what happens when ACK gets lost in the middle of transmission?

A

Sender doesn’t receive the ACK.

Sender sends the same packet.

Receiver receives DUPLICATE packet
- receiver ignores packet but sends ACK again

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

For Stop and Wait Protocol, what happens when there is a premature timeout / delayed ACK?

A

Timeout occurs. Sender resends packet.

Receiver receives DUPLICATE packet and sends ACK again.

Sender receives 2 back-to-back ACKS, ignores it.

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

Cons of a stop-and-wait operation?

A

Waste of time during RTT periods, utilization is very low since it only sends 1 packet at a time.

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

How to solve the Stop-and-wait operation?

A

Through Pipelined Protocols:
- increases utilization
- More packets per RTT

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

What are the 2 Pipelined Protocols?

A
  1. Go-Back-N
  2. Selective Repeat
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is Go-Back-N? Key points / window

A

Key points:
- No buffers for out-of-order packets (Discards them)
- Uses cumulative ACKs (ACK for last in-order packet)
– Ex: receiving ACK2 assumes ACK0 and ACK1 are received
- Retransmits the lost packet and all subsequent packets

Window:
- Only slides when cumulative ACKs are received.
- Sends all packets in a window for lost packet

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

What is Selective Repeat? key points / window

A

Key points:
- Buffers out of order packets before delivering them to app layer
- Uses individual ACKs
- Sender only retransmits the packets not received & timer for each unacked packet

Window:
-Slides forward as ACKs are received

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