Content Distribution Flashcards

(46 cards)

1
Q

HTTP Request Line

A

Method (verb, POST HEAD etc.), URL, Version

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

Common HTTP headers

A

Referrer, User Agent

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

HTTP response status line

A

httpversion, response code, location , server, Allow, content-encoding, content-length, last modified

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

HTTP 100s

A

Information

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

HTTP 200s

A

Success

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

HTTP 300s

A

Move, redirect

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

HTTP 400s

A

Error 404 file not found

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

HTTP 500s

A

Server Error

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

How many TCP connection for request and response in early HTTP

A

1

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

Problem with Multiple short lived TCP connections

A

3-way handshake, slow start, servers in TIME_WAIT

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

Solution for the One TCP connection problem

A

Persistent Connections

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

What are presistent connections

A

Multiple request/response on a single TCP connection (multiplexed), Delimiters indicate the end of request, Content length

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

TIME_WAIT

A

he timeout in TIME_WAIT is just an amount of time after which we can safely assume that if the other end didn’t send anything, then it’s because he received the final ACK and closed the connection.

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

What is pipelining in persistent Connections

A

Client send request as soon as it encounters a reference object

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

Where can Caching occure

A

Client can cache, networks can cache and servers can cache

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

CDN

A

Content Distribution network

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

How does 304 relate to cache?

A

stands for NOT MODIFIED. The client should use the locally cached version.

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

Can DNS return near by servers

A

Yes, dig show this info

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

What is CDN

A

Overlay network of caches (Deliver content to client from optimal location) Geographically disparate servers

20
Q

Challenges in running a CDN

A

How?, Where?, HOw to find? How to choose server? how to direct clients?

21
Q

Goal of CDN

A

replicate content on many servers

22
Q

Server Selection

A

Which server? Lowest Load, Lowest Latency, Any “alive” servers

23
Q

Out of server selection which option is normally choosen

A

Lowest Latency

24
Q

Content routing

A

How to direct clients to a server

25
Types of Content Routing
Routing (e.g. anycast (course)), application based (http redirect (delays)), Naming-based (eg DNS (fase))
26
Benefits CDNs peer w/ISPs
better throughput (lower latency), redundancy, burstiness (lower transit cost)
27
ISP peer w/CDNs
good performance for customers, lower transit costs
28
Bittorrent
file sharing, large file distribution, fetch content from peers, file split among peers
29
Seeders
Have a full copy of the file "Create the initial copies"
30
leechers
Only have partial copy of the file
31
freeloading
Disconnecting after the file has finished downloading
32
Bittorrent solution for freeloading
Chocking
33
Chocking
temporary refusal to upload chunks. If can't download from a peer don't upload to it. Eliminates freeloading problem
34
How does bittorrent ensure chunks get swapped out
Rarest Piece first
35
What s Rarest Piece first
Determine which pieces are most rare among clients download those first
36
Since rarest piece may not be available initially what is used
Random piece first
37
What is bittorrents end game?
Actively request missing pieces from all peers
38
Distributed hash table is a form of?
Structured content overlay
39
Types of distributed hash tables
CHORD consistent hashing
40
CHORD
scalable distributed "lookup service" Key->value
41
Benefits of chord
Scalable, Provable correctness, performance
42
Chord Motivation
Scalable location of data in a large distributed system
43
What is the key problem of chord?
key lookup
44
Main idea of Consistent Hashing
Keys and nodes map to same ID space
45
Two options when implementing consistent hashing
Option1: Every node know location of every other node. Lookups: O(1). Tables: O(N). Option2: Node knows only successor Table O(1), lookups O(n)
46
chords solution to the key lookup problem
Finger table. (Read the chord paper)