Exam 2 Flashcards

1
Q

Consider the latency model for dynamic congestion windows. Which of the following components contribute to latency?

-round trip time, RTT
-the transmission time of the object, O/R
-the sum of all the stalled times
-all of the above

A

all of the above

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

When a TCP segment arrives to a host, the socket to which the segment is directed depends on

-the destination port number
-the source port number
-the source IP address of the datagram that encapsulated the segment
-all of the above

A

all of the above

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

UDP has which of the following characteristics

-three-way hand shake for connection establishment
-connection state at the server
-regulated send rate
-none of the above

A

none of the above

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

When a UDP segment arrives to a host, in order to direct the segment to the appropriate socket, the OS uses

A

the destination port number

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

The stop-and-wait protocol is highly inefficient when

A

when there is a large distance between the source and destination and the transmission rate is high

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

Pipelining requires which of the following

-transmitting many packets before receiving acknowledgements
-unique sequence numbers for each in-transit packet
-sender-side buffering of unacknowledged packets
-all of the above

A

all of the above

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

TF: Consider an HTTP Web server using persistent connections. Suppose the server spawns a separate process for each client that connects to the server. Then each of these spawned processes will have different server port numbers.

A

False

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

TF: Host A is sending host B a large file over a TCP connection. Assume host B has no data to send host A. Host B will not send acknowledgements to host A because host B cannot piggyback the acknowledgments on data.

A

False

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

TF: The size of the TCP RcvWindow never changes throughout the duration of the connection.

A

False

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

TF: Suppose host A is sending a large file to host B over a TCP connection. If the sequence number for a segment of this connection is m, then the sequence number for the subsequent segment will necessarily be m+1.

A

False

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

TF: The TCP segment has a field in its header for RcvWindow.

A

True

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

TF: Suppose that the last SampleRTT in a TCP connection is equal to 1 sec. Then Timeout for the connection will necessarily be set to a value >= 1 sec.

A

False

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

TF: Suppose host A sends hostB one segment with sequence number 38 and 4 bytes of data. Then in the same segment the acknowledgment number is necessarily 42.

A

False

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

TF: Suppose that host A wants to send data over TCP to host B, and host B wants to send data to host A over TCP. Two separate connections - one for each direction - are needed.

A

False

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

TF: The MSS is the maximum size of a TCP segment including headers.

A

False

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

TF: In TCP, the acknowledgment number that a host puts in a segment is the sequence number of the next byte the host is expecting from the sender.

A

True

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

Provides authoritative hostname to IP mappings for organizations named hosts.

A

Authoritative DNS server

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

Replies to DNS query by local host, by contacting other DNS servers to answer the query.

A

Local DNS server

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

Responsible for a domain (e.g. *.com, *.edu); knows how to contact authoritative name servers.

A

Top Level Domain (TLD) servers

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

Highest level of the DNS hierarchy, knows how to reach servers responsible for a given domain (e..g. *.com, *.edu)

A

DNS root servers

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

What is the value of caching in the local DNS name server? Check all that apply.

A

DNS caching results in less load elsewhere in DNS, when the reply to a query is found in the local cache.
DNS caching provides faster replies, if the reply to the query is found in the cache.

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

What information does the type “A” resource record hold in the DNS database? Check all that apply.

A

A hostname and an IP address

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

Check all of the phrases below that state a true property of a local DNS server.

A

The local DNS server record for a remote host is sometimes different from that of the authoritative server for that host.
The local DNS server can decrease the name-to-IP-address resolution time experienced by a querying local host over the case when a DNS is resolved via querying into the DNS hierarchy.

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

What is the role of an authoritative name server in the DNS. (Check all that apply)

A

It provides the definitive answer to the query with respect to a name in the authoritative name server’s domain.

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

We learned that in HTTP web browser caching, HTTP local web server caching, and in local DNS caching, that a user benefits (e.g. shorter delays over the case of no caching) from finding a local/nearby copy of a requested item. In which of the following forms of caching does a user benefit from its not only from its own recent requests (and cached replies) but also from recent requests made from other users?

A

Local DNS server caching
HTTP local web caching

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

Which of the requests require 8 time units to be resolved?

A

The request at t=30
The request at t=1
The request at t=0

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

Which of the requests require 6 time units to be resolved?

A

The request at t=5
The request at t=12

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

Which of the requests requires 2 time units to be resolved?

A

The request at t=10

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

Manifest file. What is the purpose of a manifest file in a streaming multimedia setting?

A

To let a client know where it can retrieve different video segments, encoded at different rates.

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

What approach is taken by a CDN to stream content to hundreds of thousands of simultaneous users?

A

Store/serve multiple copies of video at multiple geographically distributed sites.

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

A unit of video, each of which may be encoded at multiple different rates, stored in different files.

A

Chunk

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

A file containing the location and encoding rate of files corresponding to video segments in a video.

A

Manifest

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

An approach that allows a client to adapt the encoding rate of retrieved video to network congestion conditions.

A

DASH

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

A CDN approach that stores content in access networks, close to clients.

A

Enter deep

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

In DASH (Dynamic, Adaptive Streaming over HTTP), a server divides video into file chunks that… (pick best completion from below)

A

… are stored, each encoded at multiple rates (video quality). The client plays the video chunk-by-chunk, with each chunk requested at an encoding rate that fits the available bandwidth at the time.

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

Where is transport-layer functionality primarily implemented?

A

Transport layer functions are implemented primarily at the hosts at the “edge” of the network.

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

True or False: The transport layer provides for host-to-host delivery service?

38
Q

Check all the services below that are provided by the TCP protocol.

A

A congestion control service to ensure that multiple sends do not overload network links.
In-order data delivery
A flow-control service that ensures that a sender will not send at such a high rate so as to overflow receiving host buffers.
A byte stream abstraction, that does not preserve boundaries between message data sent in different socket send calls at the sender.
Reliable data delivery.

39
Q

Check all the services below that are provided by the UDP protocol.

A

A message abstraction, that preserves boundaries between message data sent in different socket send calls at the sender.

40
Q

True or False: The network layer’s best-effort delivery service means that IP makes its “best effort” to deliver segments between communicating hosts, but it makes no guarantees. In particular, it does not guarantee segment delivery, it does not guarantee orderly delivery of segments, and it does not guarantee the integrity of the data in the segments.

41
Q

What is meant by transport-layer demultiplexing?

A

Receiving a transport-layer segment from the network layer, extracting the payload (data), and delivering the data to the correct socket.

42
Q

What is meant by transport-layer multiplexing?

A

Taking data from one socket (one of possibly many sockets), encapsulating a data chunk with header information – thereby creating a transport layer segment – and eventually passing this segment to the network layer.

43
Q

True or False: When multiple UDP clients send UDP segments to the same destination port number at a receiving host, those segments (from different senders) will always be directed to the same socket at the receiving host.

44
Q

True or False: When multiple TCP clients send TCP segments to the same destination port number at a receiving host, those segments (from different senders) will always be directed to the same socket at the receiving host.

45
Q

True or False: It is possible for two UDP segments to be sent from the same socket with source port 5723 at a server to two different clients.

46
Q

True or False: It is possible for two TCP segments with source port 80 to be sent by the sending host to different clients.

47
Q

True or False: On the sending side, the UDP sender will take each application-layer chunk of data written into a UDP socket and send it in a distinct UDP datagram. And then on the receiving side, UDP will deliver a segment’s payload into the appropriate socket, preserving the application-defined message boundary.

48
Q

Which of the fields below are in a UDP segment header? [Hint: not the use of the world “header” in this question statement.]

A

Destination port number
Length (of UDP header plus payload)
Source port number
Internet checksum

49
Q

Why is the UDP header length field needed?

A

Because the payload section can be of variable length, and this lets UDP know where the segment ends.

50
Q

Over what set of bytes is the checksum field in the UDP header computed over?

A

The entire UDP segment, except the checksum field itself, and the IP sender and receive address fields.

51
Q

Which of the following statements are true about a checksum? Hint: more than one statement is true.

A

A checksum is computed at a sender by considering each byte within a packet as a number, and then adding these numbers (each number representing bytes) together to compute a sum (which is known as a checksum).
The sender-computed checksum value is often included in a checksum field within a packet header.
The receiver of a packet with a checksum field will add up the received bytes, just as the sender did, and compare this locally-computed checksum with the checksum value in the packet header. If these two values are different then the receiver knows that one of the bits in the received packet has been changed during transmission from sender to receiver.

52
Q

Compute the Internet checksum value for these two 16-bit words: 11110101 11010011 and 10110011 01000100

A

01010110 11100111

53
Q

Compute the Internet checksum value for these two 16-bit words: 01000001 11000100 and 00100000 00101011

A

10011110 00010000

54
Q

True or False: When computing the Internet checksum for two numbers, a single flipped bit (i.e., in just one of the two numbers) will always result in a changed checksum.

55
Q

True or False: When computing the Internet checksum for two numbers, a single flipped bit in each of the two numbers will always result in a changed checksum.

56
Q

Let the sender know that a packet was NOT received correctly at the receiver.

57
Q

Use by the sender or receiver to detect bits flipped during a packet’s transmission.

58
Q

Allows for duplicate detection at receiver.

A

Sequence number

59
Q

Let the sender know that a packet was received correctly at the receiver.

60
Q

Allows the receiver to eventually receive a packet that was corrupted or lost in an earlier transmission.

A

Retransmission

61
Q

Consider the rdt 2.0 sender and receiver shown below, with FSM transitions at the sender labeled S1, S2, and S3; and receiver transitions labeled R1 and R2.

Which of the following sequences of transitions could possibly occur as a result of an initial rdt_send() call at the sender, and possible later message corruption and subsequent error recovery.

A

S1, R1, S2, R2, S3
S1, R2, S3
S1, R1, S2

62
Q

What is meant by a cumulative acknowledgement, ACK(n)?

A

A cumulative ACK(n) acks all packets with a sequence number up to and including n as being received.

63
Q

Suppose a packet is 10K bits long, the channel transmission rate connecting a sender and receiver is 10 Mbps, and the round-trip propagation delay is 10ms. What is the maximum channel utilization of a stop-and-wait protocol for this channel?

64
Q

Suppose a packet is 10K bits long, the channel transmission rate connecting a sender and receiver is 10 Mbps, and the round-trip propagation delay is 10ms. What is the channel utilization of a pipelined protocol with an arbitrarily high level of pipelining for this channel?

65
Q

Suppose a packet is 10K bits long, the channel transmission rate connecting a sender and receiver is 10 Mbps, and the round-trip propagation delay is 10ms. How many packets can the sender transmit before it starts receiving acknowledgements back?

66
Q

Which of the following statements about pipelining are true? One or more statements may be true.

A

A pipelined sender can have transmitted multiple packets for which the sender has yet to receive an ACK from the receiver.
With a pipelined sender, there may be transmitted packets “in flight” – propagating through the channel – packets that the sender has sent but that the receiver has not yet received.

67
Q

What are some reasons for discarding received-but-out-of-sequence packets at the receiver in GBN? Indicate one of more of the following statements that are correct.

A

The implementation a the receiver is simpler
The sender will resend that packet in any case.

68
Q

What are some reasons for not discarding received-but-out-of-sequence packets at the receiver in GBN? Indicate one of more of the following statements that are correct.

A

Even though that packet will be retransmitted, its next retransmission could be corrupted, so don’t discard a perfectly well-received packet, silly!

69
Q

In the SR receiver window (see diagram below, taken from PPT slides and video), why haven’t the red packets been delivered yet? Check the one or more reasons below that apply.

A

There is a packet with a lower sequence number than any of the red packets that has yet to be received, so in-order delivery of data in the red packets up to the application layer is not possible.

70
Q

In SR, why does the receiver have to acknowledge packets with sequence numbers that are less than (and to the left of) those in its window, which starts at rcv_base

A

Because the sender may not have received an ACK for that packet yet.

71
Q

True or False: On the sending side, the TCP sender will take each application-layer chunk of data written into a TCFP socket and send it in a distinct TCP segment. And then on the receiving side, TCP will deliver a segment’s payload into the appropriate socket, preserving the application-defined message boundary.

72
Q

This field contains the port number associated with the sending socket for this TCP segment.

A

Source port number

73
Q

This field contains application data that was written into a socket by the sender of this TCP segment.

A

Data (or payload)

74
Q

This field contains the index in the sender-to-receiver byte stream of the first byte of that data in the payload carried in this segment.

A

Sequence number

75
Q

This field contains the index in the byte stream of the next in-order byte expected at the receiver.

A

ACK number field

76
Q

If set, this segment cumulatively ACKS all data bytes up to, but not including, the byte index in the ACK value field of this segment.

77
Q

This field contains the number of available bytes in the TCP receiver’s buffer.

A

Receiver advertised window

78
Q

This field contains the Internet checksum of the TCP segment and selected fields in the IP datagram header.

79
Q

This field contains the number of bytes in the TCP header.

A

Header length field

80
Q

Consider the TCP Telnet scenario below (from Fig. 3.31 in text). Why is it that the receiver sends an ACK that is one larger than the sequence number in the received datagram?

A

Because the send-to receiver segment carries only one byte of data, and after that segment is received, the next expected byte of data is just the next byte (i.e. has an index that is one larger) in the data stream.

82
Q

Consider TCP use of an exponentially weighted moving average (EWMA) to compute the nth value of the estimated RTT:
Estimated RTT_n = (1-a)EstimatedRTT_n-1 + aSampleRTT_n
True or False: with this EWMA algorithm the value of EstimatedRTT_n has no dependence on the earlier sample, SampleRTT_n-1

83
Q

Consider the TCP Telnet scenario (from Fig. 3.36 in text). What timer-related action does the sender take on the recipe of ACK 120?

A

Cancels any running timers

84
Q

True or False: with TCP’s flow control mechanism, where the receiver tells the sender how much free buffer space it has (and the sender always limits the amount of outstanding unACKed, in-flight data to less than this amount), it is not possible for the sender to send more data than the receiver has room to buffer.

85
Q

Consider the give images below. Indicate which of these images suggest the need for flow control (the others would suggest the need for congestion control).

A

A talking head
A glass overflowing

86
Q

Consider the figure below, which shows the application-to-application throughput achieved when two senders are competing at a shared bottleneck link. Suppose that when the overall arrival rate, lambdain’ (for each sender) is close to R/2, the throughput to the application layer (at each receiver), lambda_out, is equal to 0.8 * lambda_in’.

87
Q

Which of the following actions are used in network-assisted congestion control (say versus end-end congestion control) to signal congestion. Check all that apply.

A

A router sends an ICMP message to a host telling it to slow down its sending rate.
A router marks a field in the datagram header at a congested router.

88
Q

Which of the following actions are associated with end-end congestion control (say versus network-assisted congestion control). Check all that apply.

A

A router drops a packet at a congested router, which causes the transport-layer sender to infer that there is congestion due to the missing ACK for the lost packet.
A datagram experiences delay at a congested network router, which is then measured by the sender and used to decrease the sending rate.
A sender decreases its sending rate in response to packet loss detected via its transport-layer ACKing.
The transport-layer sender decreases its sending rate in response to a measured increase in the RTT.

89
Q

The sender infers segment loss from the absence of an ACK from the receiver.

90
Q

Bits are set at a congested router in a sender-to-receiver datagram, and bits are returned to the sender in a receiver-to-sender ACK, to indicate congestion control.

A

network-assisted

91
Q

The sender measures RTTs and uses the current RTT measurement to infer the level of congestion.

A

delay-based