What Is a CDN and How Do CDNs Work?

What is CDN

World Wide Web usage has exploded, with traffic currently growing nearly fivefold year-over-year. What started in the early 1990s with a few scientists in Switzerland sharing research papers is now a massive worldwide network of nearly 5 billion users. Websites, email, audio and video, mobile access, social networking, ecommerce, and online business are woven into our lives,delivering contentand solutions to billions.

This growth would have been impossible without the development of a little-known technology that improves the performance of content delivery to end users over the internet: theContent Delivery Network (CDN).

What is a CDN?

A Content Delivery Networks(CDN) is a group of geographically distributed and interconnected servers that bring webcontent closerto a website’s users. CDNs reducenetwork latency (or wait time) and ensure better performance for web pages and applications.

Instead of everyone in the world accessing a single server for a particular website,website content世界各地的存储服务器上,靠近where the expected users are located.

To compare it to the world of fast food, you wouldn’t drive to the McDonald’s headquarters in Chicago to buy a Big Mac—you’d drive a shorter distance to a local franchise.

How does a CDN work?

A CDN takes an initial request for a domain and redirects it to an appropriate CDN server.Cached contentis then delivered from the CDN server to the client across a shorter distance.

The primary location where a website’s content is stored—where that initial request comes in—is called theorigin server.Types of contentstoredinclude static web pages (images, text, code), software downloads, rich media (audio and video), and dynamic content created by applications.

Cached content, which is a copy of the origin server content, is stored on geographically distributed caching servers indata centerscalledPoints of Presence (PoPs). These servers are located near whereuser requestsare expected, the so-called “edge” of the network. These servers are also called “edge servers.”

If the CDN doesn’t have the requested file, it retrieves it from the origin server and delivers it to the client, and subsequent client requests are fulfilled much faster. The CDN management software uses intelligent algorithms and machine learning to anticipate content requests, retrieve content to the CDN before it is needed, maintain synchrony with changing content on the origin server, and enhance perceived performance.

Who uses CDNs?

Organizations that want to deliver complex websites internationally or to improve the online experience for their users should be employing a CDN as part of their web architecture.

When CDN technology was introduced in the late 1990s, it was primarily used by only the biggest corporate websites and business applications. At that time the technology was new, expensive, and limited to publishing static content.

Over the past few decades, things have improved.CDN serviceshave become more ubiquitous, and CDN adoption more common. The cost of commercial CDNs has become more affordable, sometimes even being bundled withweb hostingpackages. Static and dynamic content can now both be served intelligently, and CDNs are essential to rich media streaming, particularly across broadergeographical locations.

Why use a CDN?

In addition to loading pages more quickly, CDNs can support more users simultaneously, reduce local network congestion, redirect busy server traffic forload balancing, and eliminate single points of server failure. This all happens transparently to the end user.

Advantages of CDNs

      1. Improved user experience

        One of the main motivations for most organizations using CDNs is the elimination of long wait times for downloads and streaming, and the provision of a better user experience.

      2. Optimized bandwidth.

        Distribution of content through CDNs shortens network path distances and reduces or eliminates local network bottlenecks,reducing bandwidthrequirements and enabling better network usage.

      3. More simultaneous users.

        By distributing to edge servers, more simultaneous users can be supported than is possible with even a highly scaled centralized solution.

      4. Improved security and availability.

        Distributed Denial of Service (DDoS) attacks are commonly used by cybercriminals attempting to harass or penetrate the defenses of an organization. CDNs inherently offerDDoS protectionby multiplying the number of points of access, resulting in a more reliable and available web solution.

        很多发布商包括支持additional security enhancements as well, such as Web Application Firewalls (WAFs) to protect web applications.

      5. Control of access and performance in different regions.

        It may be the case that your organization wishes to focus its content delivery on certain geographies. Smart deployment of appropriate CDN servers into those areas can enhance your web performance there, and CDN management software can automate responses to spikes in demand.

        Conversely, it may be desirable to limit access in other areas. A CDN platform can also be configured to help with this.

Disadvantages of CDNs

While there are many advantages to the use of CDNs, there may be drawbacks for some organizations. These include:

  • Cost.For non-trivial web solutions, there will be real costs paid to the CDN host, both start-up costs and ongoing operations costs tied to data transfer volume. If not planned for, these costs can grow to unexpected levels.
  • Geography.It is critical to match your CDN infrastructure to the geography where your users are. A poor geographic alignment will result in lower performance. Some organizations use multiple CDNs with different footprints to help address this issue.
  • Complexity and support.The use of a third-party CDN introduces additional complexity in deploying and managing your web solutions, as well as an additional layer of support that can potentially complicate solving system problems.

Local restrictions.Some countries and local organizations have blocked internet access to content hosted by some CDNs. This can negatively affect the reach of your website.

What is a CDN FAQ

What is a CDN and how does it work?

A Content Delivery Network (CDN) is a group of interconnected servers distributed globally that serve web content to users. A CDN takes requests for domains and is able to direct them to the appropriate CDN server which then delivers cached content to the client server.

What is a CDN's advantage?

The advantage of a CDN is that because cached content can be delivered by any number of servers, the overall bandwidth and costs associated with browsing the internet are reduced. This improves user experience and allows for more users to access content simultaneously.

What is the difference between a CDN and a proxy?

A CDN is a globally distributed network of many proxy servers operating in various data centers. Proxy servers act as an intermediary between a client requesting content and the server providing that resource.

Topics: