6.829 Fall 2018 Paper Questions

For each paper, by 12AM the evening before lecture:

List (and explain in one or two sentences each) three items from the two assigned papers that were not considered in the original design of the Internet, but which became important concerns later.

Answers:
(1) Security considerations (2) Mobiity (3) BGP / Scalability

1. The congestion avoidance method in this paper increases the congestion window (cwnd) by 1/cwnd on each arriving ACK. Explain why this method increases cwnd linearly in time.

2. This paper describes a congestion control scheme where packet losses are the only explicit signal that congestion has occurred. When a queue is full and a packet arrives at a router ("gateway"), suppose the router can drop either the arriving packet, or a packet at the very front of the queue. Which approach would you choose, and why?

3. If a router never drops packets, what happens to the delays experienced by packets?


Answers:
1. For each RTT, there are cwnd packets. Assuming no drops, the congestion window will increase by 1/(cwnd) per ACK, and since there are cwnd ACKs each RTT, the congestion window will increase by 1 packet each RTT, which is linear.

2. There is an argument to be made for both. Dropping the packet at the front of the queue has the advantage that the TCP sender can detect the packet loss faster and react to congestion sooner. Since the packet at the front of the queue was sent earlier, TCP can detect that it was dropped sooner (either via a timeout or TCP's fast retransmit mechanism). Dropping from the front also solves the so-called "lock-out" problem with tail-drop, where due to synchronization, a few flows can monopolize access to the buffer and prevent other flows from getting packets into the buffer.
The disadvantage of dropping from the front of the queue is that it wastes memory bandwidth of the buffer memories. Notice that it takes some memory bandwidth to write a packet into the buffer. This memory bandwidth is wasted if a packet that is enqueued is later dropped. In high speed routers, building fast enough memories for packet buffers is a major challenge, and so strategies like dropping from the front of the queue are rarely used. Instead, high speed routers drop the arriving packet before enqueue.

3. If a router never drops packets, delays would increase exponentially because dropped packets are a signal for senders to reduce their window size.

1. What happens to the drop probability in PIE if the queueing delay is larger than (say, twice) the target delay (QDELAY_REF) for a very long time?

2. If you have a collection of TCP connections from different sources concurrently sharing a bottleneck link whose router runs PIE, would each connection get the same throughput?

Answers:
1. The drop probability will keep increasing, and it will become 1.

2. Recall the TCP throughput formula. Assuming the same RTTs for the connections, the connections will have the same throughput (on average) because the probability of packet drop for each flow is the same.

1. Suppose a buffer of total length 100 packets is organized as 4 queues that are serviced by Fair Queuing. Assume the buffer is full, the service rate is 10 packets/sec, and that no new packets arrive to the buffer. What is the maximum queuing delay for any packet? How does this change if we use Weighted Fair Queueing and the queues have weights 1, 2, 3, 4 respectively?

2. Would you deploy fair queueing if you knew that all traffic consists of TCP connections running end-to-end congestion control?

Answers:
1. The maximum packet delay is 100 packets / (10 packets/s) = 10 seconds for both FQ and WFQ. In fact, this holds for any work-conserving scheduling algorithm. The reason is that work-conserving scheduling algorithms only affect the order in which packets are transmitted; irrespective of the transmission order, the last of the 100 packets will be sent after 10 seconds.

2. TCP congestion control will converge to fair bandwidth shares over several RTTs, so FQ is not necessary if a roughly fair bandwidth allocation between TCP connections is all that is required. However, fair queueing allows for strict traffic isolation and differentiated service/QoS. It also allows fairness at different granularities (e.g., per user, per application, etc.).

An autonomous system A advertises a route for a prefix P to a neighbor N who is in an unpaid peering relation with A. Under what conditions will packets addressed to P *not* traverse the N-A peering link?



Answer:
If the packets did not transit A, or if those packets arrived in A from:
another of A's peers, or
A's provider (this would not happen under normal circumstances because A would not advertise a route to P to its provider).

1. Name two properties that BGP hides from neighboring (=peering) networks.
2. What is Router Alias Resolution?
3. How does ZMap map response packets to previously sent out probe packets, given that its implementation is stateless?

Answers:
1. (i) paths that were not selected as best path by BGP, (ii) internal network structure, e.g., routers, and (iii) policies.
2. Determining which interface IP addresses belong to the same physical router.
3. ZMap hashes the destination IP address of each probe packet, together with a scan-specfic secret. It then encodes this value into the probe packet, e.g., into the source port field and sequence number field, in the case of TCP. Then, a potential reply to the probe packet will be sent back to the encoded port number/carrying the resp. ACK number (SEQ +1), allowing for matching.

1. What are the key features of QUIC that reduce latency for web workloads?
2. According to the paper, what are the key characteristics of the transport that impact video rebuffer rates?

Answers:
1. primarily reduced handshake latency, then improved loss recovery
2. faster loss recovery and increased throughput

1. How are ABR algorithms similar to congestion control algorithms? How are they different?
2. Which signal, playback buffer occupancy or network capacity estimate, do you expect to be more useful for ABR decisions for live video streaming? Why?
3. Why does Pensieve include the number of chunks remaining in the video in its state representation?

Answers:
1. Both ABR and congestion control algorithms seek to optimize end-host behavior for network conditions. However, ABR algorithms modify user-facing application parameters (the video quality), while congestion control algorithms take fixed amounts of application data and merely transfer them at the appropriate rate.
2. capacity because with a live video it's not possible to build much buffer anyway
3. As we approach the end of the video, we can make more aggressive ABR decisions, since there is less need to preserve a video buffer for the future. Pensieve needs to know how much video is left to know how much buffer it needs for the future.

1. What is the "grace period" and how does it help throughput estimation?
Answer: The sender does not transmit continuously—it pauses between frames. This pause could give the receiver an artificially pessimistic estimate of the network. To account for this, the sender includes the duration between when the current and previous fragments were sent (grace period).
2. What are the two reasons that Salsify needs a functional video codec?
Answer: (1) discarding an already-encoded frame when necessary, (2) accurately hitting a frame-size target

Define attenuation for fiber optics links and calculate it for a fiber between New York and Boston (distance 350 km) for 1550 nm wavelength.

What are the classes of addressing schemes between nodes? And which one is most favorite in optics?

Briefly explain the function of a tunable laser and its advantages. This paper (written in 1991) says the tunable laser diode still remains a lab device. Find a benchtop tunable laser in 1550 nm range from the following website and report its price: https://www.thorlabs.com/

Answers:
1. Attenuation is a measure of the loss of signal strength or light power that occurs as light pulses propagate through a fiber. At 1550 nm, attenuation is 0.25 dB/km. Hence attenuation between NYC and BOS is 87.5 dB.
2. WDMA (frequency division), TDMA (time division), CDMA (code division). WDMA is most favorite.
3. A tunable laser is a laser whose wavelength of operation can be altered in a controlled manner. Lasers that will tune over the entire 200-nanometer wavelength range are clearly desirable, since they can provide transmitter tunability or receiver tunability - the latter by using the tunable laser as the local oscillator in a coherent receiver structure that resembles a radio receiver. An even more important advantage of tunable lasers is that the speed of retuning the emitted wavelength of such a device can be as short as a few nanoseconds, since it is limited by device capacitance and carrier-transport times involving very tiny dimensions of less than a tenth of a millimeter.
Price is $9,900 (URL: https://www.thorlabs.com/newgrouppage9.cfm?objectgroup_id=9997)

Why can’t Sprout rely on packet losses as a signal to achieve its goals?

Sprout uses its forecasts to predict the 5th percentile of the number of bytes that will arrive at the receiver within the next 8 “ticks”. Why does it use the 5th percentile?

Answers:
1. because bufferbloat causes losses to occur only after big queues have been built up
2. because it’s trying to bound the 95%ile of the packet delay

In Chord, the information required at each node for correct routing is distinct from what’s required for good performance. What information is needed for correctness, and what is needed for good performance?

Answer: successor pointers for correctness; finger entries for performance

What benefits does a content delivery network (CDN) provide over a centralized approach to content delivery in which a content provider locates its web servers in a well-connected data center?

The Akamai CDN uses the consistent hashing algorithm to map web objects to web servers (caches) within a single cluster of servers. Explain how the approach of hashing both objects and servers to the unit circle provides a graceful mechanism for dealing with a server failure, compared to the traditional approach of mapping objects directly to servers.

Answers:
1. The CDN should provide better response time (reduced latency) because it will tend to have servers closer to the clients, and the CDN should be able to serve more clients because the amount of bandwidth at any one data center is likely to be limited. Other possible benefits: the content provider doesn't have to invest in a large amount of hardware that might sit idle much of the time, and the CDN provides automatic scalability in case the content provider has under invested. Also, the CDN may provide defenses against denial of service attacks and other forms of attacks.
2. If a server fails, only the objects that were formerly mapped to that server must be mapped to a new location. In the traditional approach, if a server goes an entirely new hash function may be needed, causing many objects to be mapped to new locations.

Azure chose to use FPGAs as their network accelerators. What are the pros and cons of using FPGAs versus dedicated network ASIC chips, or doing packet processing in software on CPUs?

Azure Accelerated Networking sends most packets through a hardware only path, but sometimes it will process some packets in software. Which packets need to be processed in software and why?

Answers:
1. ASICs are faster but inflexible. CPUs are more flexible but slower.
2. SYNs need to be processed in software because policy for that flow is not yet cached in hardware.

How does ECMP work? What is it used for and what are its disadvantages?

Why does VL2 require TCP congestion control to achieve its goal of uniform high throughput and performance isolation? What can go wrong with non-TCP traffic?

Answers:
1. ECMP is a load balancing algorithm which distributes flows amongst equal-cost paths by computing a hash of the flows' five-tuples. While ECMP provides load balancing across the core of a datacenter network, it can sometimes hash two long flows onto the same path, causing congestion.
2. TCP enforces the hose model constraints on traffic, i.e. it ensures that the aggregate traffic in/out of every ingress/egress link does not exceed its capacity. Without TCP, multiple senders could transmit to the same receiver at faster rate than the receivers’s access link (i.e., network interface) speed, thus violating the hose model.

What is the benefit of processing packets in stages of match-action tables?

Answer:
To take advantage of pipeline-parallelism and to avoid a cross-product of various stages' states being stored in one table.

What are the benefits of using RDMA? What are the drawbacks?

Answer:
Benefits: By offloading packet processing to hardware and enabling zero-copy packet I/O, RDMA supports lower latency, higher throughput and reduced CPU utilization, especially when compared to conventional network stacks in the OS.
Drawbacks: RDMA complicates network management by requiring new NIC hardware, careful management of the small amount of NIC resources, and careful configuration of switches to enable PFC (as per current deployments). It also supports a different API (IB verbs) than traditional sockets, thus requiring significant application layer changes.

What factors does a node in Roofnet consider when deciding what route to use for packets to a given destination?

In Bitcoin, the difficultly of the proof of work puzzle is adjusted over time such that on average one block is mined every 10 minutes, limiting throughput to about 3 transactions per second (with 1MB blocks). Why is the time between blocks set so large? Suppose we tried to scale throughput by reducing the inter-block time to, say, 1 second. What might go wrong?


6.829 home