Table of Contents
What is a CDN?
How Does a CDN Work?
A CDN uses performance metrics to serve the traffic to the end users, once the end users make a request the CDN will calculate which server is the optimal to serve that traffic taking into account things like:
- Network Proximity
- Server Load
- Content Availability
The request flow will work as follows:
- Stage 1: End user request > CDN assigns the EDGE Server to serve the traffic > if the content is on the Server then it will be served to the end user
- Stage 2: If the CDN Edge Server does not have the content > The request will be forwarded to the CDN parent server, if the content is found then it is sent to the edge and end user
- Stage 3: If both the edge and parent servers do not have the content > then request is sent to the origin server > then both the parent and the edge server will store the content to be served to other end users if requested
What is a CDN Edge Server?
CDN Edge Servers are the servers that will be assigned by the CDN to deliver the assets to the end users, they will be as close to the end users as possible.
What is a CDN Parent Server?
The CDN parent servers will live in between the Edge Server and the Origin, these servers will be used to store and deliver assets to the different edge servers from different regions, this will improve Offload to the origin by having multiple layers of caching.
What is an Origin Server?
The origin server is the server that contains the original versions of the content and is responsible for delivering the content to end users when requested.
What are the benefits of using a CDN?
Faster delivery of assets:
- Optimal CDN server will be used to deliver the content
- Caching of assets closer to the end users
- CDN will absorb the high volume of users and requests accessing your content, offloading your origin and bandwidth requirements
- Reduction of rebuffering
- Multiple format support: HLS, DASH, CMAF
- CDNs constantly monitor the network to ensure optimal paths are used to reach the origin when necessary
Security and CDN origin protection
- Your origin will be protected by the CDN it will never be exposed to the world
- Attacks will hit the CDN not your origin
- CDN Tokenization will help you protect your content against piracy by encrypting the Manifest and Child playlists with a Short and Long tokens
- Short token used to encrypt the child playlists, this token is refreshed every X amount of seconds
- Long Token does not change in several minutes and it is stored in a cookie, as this is intended for the master playlist
- CORS headers, a CDN will not serve the content from domains that are not authorized to access the assets
Reliability of content delivery
- More than 240,000 servers across the world are available to deliver your assets
- CDN networks are monitored to ensure the health of all regions
- Offload to your origin will mean a more stable origin with less resources from your end
- Even if your origin goes down the CDN can still deliver the content that is cached on the edge servers (stale content)
- Even during large events a CDN will use as many edge servers as required in order to deliver your assets without affecting your origin, hence protecting your origin from going down
- You can have multiple origins and use the CDN to load balance across them
In conclusion, the benefits of using a CDN are to increase your security, stability, and worldwide presence. CDN servers will also enable you to save in hardware deployments and bandwidth. It also translates to a better user experience and quality of service, having the power of thousands of servers spread across the globe available to deliver your content as needed.
Interested in our CDN IPTV Solution? Learn more about NoraGO and Setplex
zortilonrel · January 24, 2021 at 6:15 am
whoah this blog is wonderful i love reading your articles. Keep up the great work! You know, a lot of people are looking around for this information, you can help them greatly.