Please enable JavaScript.
Coggle requires JavaScript to display documents.
CDN Content Delivery Network - Coggle Diagram
CDN
Content Delivery Network
定义 :pencil2: A content delivery network or content distribution network (CDN) is a geographically distributed network of proxy servers and their data centers.
benefits :star:
Improving website load times 省时
Reducing bandwidth costs 省钱
Increasing content availability and redundancy 耐用
Improving website security 防攻击
Usecases :checkered_flag:
Static Asset Caching
Live and On-Demand Video Streaming
Security and DDoS Protection
API Acceleration
Software Distribution
Origin Server
:pen: 与edge server 或 caching server并列,流量在可控范围内只需要Origin Server
CDN edge server
边缘服务器,通常在两个network分隔处,缓存一些资源
Anycast
一种路由策略,将流量引导至最近且最空闲的节点,可以对付网络堵塞和DDOS
How CDN Works :question:
CDN为了提升速度,将服务器放在“交换点”,即网络之间互相连接的地方。
IXPs
是各个互联网服务提供商(ISP)互联的主要地点,允许不同的网络相互传递流量。这些位置通常具有高带宽和强连接性,是数据流量交换的关键位置。
在
IXPs
上,不同的网络提供商可以直接交换数据流量,而不需要通过其他中间网络。这种直接连接方式降低了传输的复杂性,减少了潜在的延迟和故障点。
CDN提供商通过在
IXPs
部署服务器,不仅可以利用IXPs的高连接性,还能减少流量通过其他网络的成本和传输时间。
Internet Exchange Points, IXPs
Latency - How does a CDN improve website load times :question:
geographically closer data center
reduce the amount of data
speed up sites which use
TLS/SSL
Reliability and Redundancy :question:
Load balancing distributes network traffic
Intelligent
failover
CDN网络中的服务器瘫痪及时换一个
整个data center出问题的时候,
Anycast
会帮你换一个
Negative Caching
请求资源遇到不同的http code 缓存时间不同,比如404 TTL可以设置长时间,503可以短时间