ch3 e1 3600

4.0(1)
studied byStudied by 26 people
4.0(1)
full-widthCall with Kai
GameKnowt Play
New
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/107

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

108 Terms

1
New cards

Problem with stop and wait protocols

ACKing every packet will take a long time

2
New cards

NACK-less channel approach

sender waits “reasonable” amount of time for an ACK. It will retransmit if the ACK is not received in time

3
New cards

If packet or ACK is delayed and not lost retransmission will be a

duplicate

4
New cards

If retransmission pkt is a duplicate, the ____ will handle this

sequence number

5
New cards

receiver must specify ______ _______ of pkt being ACKed

sequence number

6
New cards

pipelining

sender allows multiple, “in-flight”, yet-to-be-acknowledged pkts with seq#

7
New cards

two forms of pipelined protocols

go-back-N (GBN), selective repeat

8
New cards

3-packet pipelining formula

(3L / R) / (RTT + (L/R))

9
New cards

Go-Back-N

sender can have up to N unacked packets in pipeline

10
New cards

GBN: receiver only send ______ _____

cumulative ack

11
New cards

Selective Repeat: receiver sends _____ ____ for each packet

individual ack

12
New cards

Go-Back-N: sender

k-bit sequence number in packet header

13
New cards

ACK(n):

ACKs all pkts up to, including seq # n -“cumulative ACK”

14
New cards

timeout(n)

retransmit packet n and all higher seq # pkts in window

15
New cards

GBN receiver Ack-only:

always send ACK for correctly received pkt with highest in-order seq #

16
New cards

out-of-order pkt

discard, dont buffer, re-ACK packet with highest in order seq #

17
New cards

Selective repeat

receiver individually acknowledges all correctly received packets

18
New cards

selective repeat: sender only resends pkts for ______

which ACK wasn’t received

19
New cards

Selective repeat: sender window

N consecutive seq #s, limits seq #s of sent unACKED pkts

20
New cards

TCP: point-to-point

one sender, one receiver. no multicasting, NOT circuit-switched

21
New cards

TCP provides

reliable in-order bytes-stream

22
New cards

TCP: pipelined

TCP congestion and flow set the window size

23
New cards

TCP: full duplex data

bi-directional data flow in same connection

24
New cards

MSS

maximum segment size

25
New cards

TCP: connection-oriented

handshaking initializes the sender-receiver state before data exchange

26
New cards

TCP: flow controlled

sender will not overwhelm receiver

27
New cards

TCP Sequence Number

Indicate the position in the byte stream, specifically the number of the first byte of data carried in the segment.

28
New cards

TCP Acknowledgements

Sequence # of next byte expected from other side. cumulative ack

29
New cards

how does the receiver handle out-of-order segments?

TCP spec doesn’t say, up to implementor

30
New cards

How to estimate RTT?

SampleRTT: measured time from segment transmission until ACK receipt

31
New cards

To get a more accurate RTT, take _______ measurements

multiple, then average

32
New cards

TCP reliable data transfer

TCP creates rdt service on top of IPs unreliable service

33
New cards

retransmissions are triggered by

timeout events, duplicate acks

34
New cards

TCP sender events: data received from app

Create segment with seq #, seq # is byte-stream number of first data byte in segment, start the timer if not already running

35
New cards

TCP sender events: timeout

retransmit segment that caused timeout, restart timer

36
New cards

TCP sender events: ack rcvd

if ack acknowledges previously unacked segments: update what is known to be ACKed, start timer if there are still unacked segments

37
New cards

Event at receiver: arrival of in-order segment with expected seq #. All data up to expected seq # is already ACKed. What is the TCP receiver action?

delayed ACK, wait up to 500ms for next segment. if no next segment, send ACK

38
New cards

Event at receiver: arrival of in-order segment with expected seq #. One other segment has ACK pending. What is the TCP receiver action?

immediately send single cumulative ACK, ACKing both in-order segments

39
New cards

event at receiver: arrival of out-of-order segment higher-than-expect seq. # . Gap detected. What is the TCP receiver action?

immediately send duplicate ACK, indicating seq. # of next expected byte

40
New cards

Event at receiver: arrival of segment that partially or completely fills gap. What is the TCP receiver action?

immediate send ACK, provided that segment starts at lower end of gap

41
New cards

TCP flow control

receiver controls sender, so sender won’t overflow receiver’s buffer by transmitting too much, too fast

42
New cards

TCP flow control: Step 1

receiver “advertises” free buffer space by including rwnd value in TCP header of receiver-to-sender segments

43
New cards

TCP flow control: step 2

sender limits amount of unacked (“in-flight”) data to receiver’s rwnd value

44
New cards

TCP flow control: final step

guarantees receive buffer will not overflow

45
New cards

2-way handshake will always work in network: T/F

False

46
New cards

TCP: Closing a connection

client, server each close their side of connection with FIN bit = 1

47
New cards

TCP: closing a connection step 2

Respond to received FIN with ACK

48
New cards

congestion

too many sources sending too much data too fast for network to handle

49
New cards

congestion is different from fflow control: T/F

True

50
New cards

lost packets means

buffer overflow at routers

51
New cards

long delays means

queueing in router buffers

52
New cards

sender limits transmission equation

LastByteSent - LastByteAcked <= cwnd

53
New cards

TCP sending rate equation

(cwnd / RTT)

54
New cards

cwnd is ______

dynamic

55
New cards

TCP slow start

when connection begins, increase rate exponentially until first loss event

56
New cards

TCP slow start: double cwnd every ____

RTT

57
New cards

TCP slow start: done by incrementing ______ for every ACK received

cwnd

58
New cards

TCP Slow start summary

initial rate is slow but ramps up exponentially fast

59
New cards

loss is indicated by

timeout

60
New cards

cwnd is set to

1 MSS

61
New cards

loss indicated by _ duplicate ACKs

3

62
New cards

TCP ______ always sets cwnd to 1

tahoe

63
New cards

when should the exponential increase switch to linear?

when cwnd gets to 1/2 of its value before timeout.

64
New cards

cwnd

congestion window

65
New cards

TCP fairness

if K TCP sessions share same bottleneck link of bandwidth R, each should have average rate of R/K

66
New cards

Transport services and protocols provides what

logical communication between app processes running on different hosts

67
New cards

transport protocols run in ___ systems

end

68
New cards

send side:

breaks app messages into segments, passes to network layer

69
New cards

rcv side:

reassembles segments into messages, passes to app layer

70
New cards

network layer

logical communication between hosts

71
New cards

transport

logical communication between processes

72
New cards

transport layer relies on and enhances what?

network layer services

73
New cards

UDP only provides ____ to ____ delivery

process to process

74
New cards

TCP has more services, such as:

flow control, seq #, acks, timers and congestion control

75
New cards

extending host-to-host delivery and process-to-process deliver is called transport layer _______ and _______

multiplexing, demultiplexing

76
New cards

multiplexing at sender

handle data from multiple sockets, add transport header (later used for demultiplexing)

77
New cards

demultiplexing at receiver

use header info to deliver received segments to correct socket

78
New cards

Demultiplexing Step 1:

host receives IP datagrams with source and destination IP address

79
New cards

Demultiplexing Step 2:

each datagram carries one transport-layer segment

80
New cards

Demultiplexing Step 3: 

each segment has source, destination port number

81
New cards

Demultiplexing step 4:

host uses IP addresses & port numbers to direct segment to appropriate socket

<p>host uses IP addresses &amp; port numbers to direct segment to appropriate socket</p>
82
New cards

TCP socket identified by 4-tuple:

Source IP address, source port number, destination IP address, destination port number

83
New cards

demux

receiver uses all four values to direct segment to appropriate socket

84
New cards

server host may support _______ TCP sockets

multiple

85
New cards

web servers have different ________ for each connecting client

sockets

86
New cards

non-persistent HTTP will have _____ _____ for each request

different socket

87
New cards

UDP stands for

User Datagram Protocol

88
New cards

UDP is a ____ _______ service

best effort

89
New cards

UDP segments may be

lost, delivered out of order

90
New cards

Connectionless UDP

no handshaking between UDP sender, receiver

91
New cards

USP uses

streaming multimedia, DNS, SNMP

92
New cards

reliable transfer over UDP:

add reliability at application layer

93
New cards

UDP Segment header

source port #, destination port #, length & checksum. all 16-bit and create a 32 bit header

94
New cards

UDP checksum goal

detect “errors” (e.g., flipped bits) in transmitted segment

95
New cards

UDP Checksum sender step 1:

treat segment contents, including header fields, as sequence of 16-bit integers

96
New cards

UDP checksum sender step 2

checksum: addition (one’s complement sum) of segment contents

97
New cards

UDP Checksum sender step 3:

sender puts checksum value into UDP checksum field

98
New cards

UDP Checksum receiver step 1:

compute checksum of received segment

99
New cards

UDP checksum receiver step 2:

check if computed checksum equals checksum field value

100
New cards

delivering the data in a transport-layer segment to the correct socket is called

demultiplexing