slides23 Flashcards

1
Q

OPTION No operation (NOP)

A

is used to pad to align fields to a multiple of 4 bytes

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

OPTION Maximum segment size (MSS)

A

specifies how large a segment we can cope with: the headers are not included in count

typically set to avoid fragmentation (MTU)

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

OPTION window scale

A

allows us to multiply up the value in the advertised window size header field
This optional field contains a value from 0 to 14

My desktop uses a window scale of 7: 27 × 65535 = 8388480 bytes, or a maximum of 8MB buffer space
Its initial window size on a new TCP connection is 14600, meaning 27 × 14600 = 1868800 bytes, so a buffer of a bit under 2MB has been allocated (for this socket)

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

OPTION Timestamp (TS val)

A

puts the time of day into the segment header, allowing accurate measurement of the round trip time (RTT) of a segment and its ACK. Useful for computing retransmission times (see later)

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

OPTION Timestamp Echo Reply (TS ECR)

A

in an ACK segment is the timestamp being returned to the sender so it can compute the RTT

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

OPTION Selective acknowledgement (SACK)

A

is an extension of the ACK mechanism that allows more flexible ways of acknowledging segments

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

RTT

A

round trip time

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

sliding window mechanism

A

A sliding window describes the range of bytes the sender can
transmit
As the window gets smaller, the sender should send more slowly
As the window gets bigger, the sender can send more quickly
The sender recomputes the space available in the receiver every time it receives an ACK

The left hand edge of the window is defined by the acknowledgement number in the latest ACK
The right hand edge is then given by adding on the size of the advertised window
The window size is sent in every ACK segment
As more ACKs are received, the window closes as the left edge advances

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

So how long to delay an ACK?

A

If too long, the sender might think the segment was lost and resend
If too short, we do not get so many free piggybacks or multiple ACKed segments
A typical implementation will delay for up to 200ms

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

what to do with out of order segment

A

If you get an out-of-order segment (its sequence number is not the one you are expecting next, e.g., a segment was possibly lost), you must not delay, but send an ACK immediately

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

tinygram

A

when sending (for the sake of argument) a 41 byte packet for each byte of data
(Nagle’s alg)
If you are sending tinygrams, only send one and wait until you get its ACK before sending any more
Any small segments waiting to be sent should be collected together into a single larger segment that is sent when the ACK is received

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