Professional Documents
Culture Documents
Networks
Presented by
Md. Rahat Hasan Submitted To
ID: B160305019 Sajeeb Saha
Assistant Professor
Wahida Ferdose Urmi Department Of CSE, Jagannath University
ID: B150305035
1
Contents
Introduction
Single Data Center
Content Distribution Networks
How does a CDN work?
Server Placements Philosophies
Cluster Selection Strategies
Case Study-Netflix
Case Study- Youtube
Case Study- Kankan
2
Introduction
Internet video companies are distributing on-demand multi-Mbps streams to millions
of users on a daily basis.
Challenge: How to stream content to millions of simultaneous users all over the
world?
3
Single Data Center
Store all of its videos in the data center
Stream the videos directly from the data center to clients worldwide
Drawbacks:
Long latency
Easy to be overloaded
4
Without A
CDN
5
Without A CDN
If user from a similar or other location tries to access the same site, he will go
through the same sequence.
User requests will hit the origin and the origin will reply with content. Each
step along the way adds a delay, or “latency”.
If the origin is located far from the user, response times will suffer from
significant latency, delivering a poor user experience.
6
Content Distribution Networks
CDN stands for content delivery network or content distribution network (CDN) is a
High performance.
7
Contents of CDN
CDNs serve a large fraction of the Internet content today, including:
social networks.
8
Types of CDN
Private CDN
When content owners are not satisfied with the options or costs of a
commercial CDN service, they can create their own CDN. This is called a
private CDN.
Example: Google’s CDN distributes YouTube videos and other types of
content
Third-party CDN
Distributes content on behalf of multiple content providers
Example: Akamai’s CDN distributes Netflix and Hulu contents, among
others.
9
How Does A CDN Work?
CDNs work by reducing the physical distance between a user and the origin (a web
or an application server).
It involves a globally distributed network of servers that store content much closer to
the client than the origin.
CDN architecture provides the ability to optimize content in 2 separate ways - Pull
Zones and Push Zones.
10
Pull Zone & Push Zone
Pull Zone automatically pulls the content from Push Zone on the other hand, places uploaded
origin server and creates a copy that will be content on various storage servers across the
served to users. globe and pushes content to the POP upon user
request.
11
With CDN
12
With vs
Without CDN
13
1. Bob gets URL for for video
http://netcinema.com/6Y7B23V
from netcinema.com 2. resolve http://netcinema.com/6Y7B23V
CDN
6. request video from
http://KingCDN.com/NetC6y&B23
KINGCDN server,
via KingCDN’s authoritative DNS,
streamed via HTTP which returns IP address o
netcinema’s
authorative DNS KingCDN.com KingCDN
authoritative DNS 14
Services of CDN
Request redirection and content delivery services
direct a request to the closest suitable CDN cache server
it is introduced by Akamai.
It deploys server clusters in access ISPs (ISPs direct accessing end users) all over the
world approximately at 17,000 locations.
16
Server Placements Philosophies
Bring home
It brings the ISPs home by building large clusters at a smaller number of key
locations and connecting these clusters using a private high-speed network.
Maintenance and management results in lower when compared with the Enter Deep.
17
Case Study - GOOGLE’S NETWORK
INFRASTRUCTURE
To support its vast array of cloud services—including search, gmail, calendar, YouTube video,
maps, documents, and social networks—Google has deployed an extensive private network and
CDN infrastructure.
About 30 “bring-home” clusters , with each cluster consisting on the order of 100–500
servers.
Many hundreds of “enter-deep” clusters, with each cluster located within an access ISP
18
Cluster Selection Strategies
Mechanism for dynamically directing clients to a server cluster or a data center within the
CDN.
Geographically closest.
Real-time measurements
IP anycast
Factors:
Delay, loss , bandwidth performance of network
20
Real-time Measurements
Determine the best cluster for a client based on the current traffic conditions
Active measurement of delay and loss through dedicated (for example, ping messages or DNS
queries)
One drawback of this approach is that many LDNSs are configured to not respond to such
probes.
Passive monitoring of recent/ongoing traffic between clients and CDN servers (observing
delay estimated by examining the gap between server-to-client SYNACK and client-to-server
ACK during the TCP three-way handshake)
21
IP anycast
The routers in the Internet route the client's packet to the “closest” cluster, as determined by
BGP.
BGP router treats receives multiple route advertisements as different paths to the same
physical location.
BGP router will then pick the “best” route to the IP address according to its route selection
mechanism.
22
IP anycast
Benefits:
Simple, high performance
Disadvantages:
Possibility of overload
23
Case Study - Netflix
Leading service provider for online movies and TV
shows
24
Architectural Components
The registration and payment servers
Netflix maintains registration and payment servers in its own hardware infrastructure
• Content ingestion.
• Content processing
• Uploading versions.
25
Architectural Components
Multiple CDN providers
To deliver the movies to its customers on demand, Netflix makes extensive use of CDN technology.
Netflix employs not one but three third-party CDN companies at the same time
• Akamai
• Limelight
• Level-3.
Clients
26
upload copies of
Amazon cloud
multiple versions of
video to CDNs Akamai CDN
1. Bob manages
Netflix account
Level-3 CDN
4. DASH
streaming
27
Case Study - YouTube
A globally popular “user-generated” (short) video
sharing site
28
YouTube Architecture before Google
Three (logical) web servers
Located near San Jose, CA
29
YouTube Video Delivery Architecture
YouTube videos streamed from server to client over
HTTP .
YouTube uploaders upload their videos from client to
server over HTTP.
YouTube processes video it receives, convert it to a
YouTube video format and create multiple versions at
different bit rates.
Google runs YouTube service within its own vast
infrastructure of data centers, private CDN, and private YouTube Backend
global network.
30
YouTube Video Delivery
Google has installed server clusters in many hundreds of different locations.
Directs the client to the cluster for which the RTT between client and cluster is the lowest;
To balance the load across clusters, the client is directed (via DNS) to a more distant cluster
If a cluster does not have the requested video, the cluster return an HTTP redirect message,
and redirecting the client to another cluster
31
Case Study - Kankan
P2P-based video-on demand provider in China
Similar to BitTorrent
32
Kankan
When a peer wants to see a video it
Contacts a tracker (centralized or peer-based DHT)
The peer then requests chunks of the video file in parallel from the other peers that have the
file.
Requests are preferentially made for the chunks to be viewed in near future .
Recently added a CDN for initial loading of video and as a fallback if P2P download rate is too
slow
33
Kankan
Architecture
35
Disadvantages of CDN
Content delivery networks cost additional money.
36
References
[1]. COMPUTER NETWORKING-A Top-Down Approach Sixth Ed. By James F. Kurose &
Keith W. Ross
[2]. https://www.cdnetworks.com/what-is-a-cdn/
[3]. Unreeling Xunlei Kankan: Understanding Hybrid CDN-P2P Video-on-Demand Streaming
Ge Zhang, Wei Liu, Member, IEEE, Xiaojun Hei, Member, IEEE, and Wenqing Cheng, Member,
IEEE
[4]. Content Delivery Networks: State of the Art, Insights, and Imperatives
Mukaddim Pathan, Rajkumar Buyya and Athena Vakali
37
Thank
YOU !!!
38