A CDN (Content Delivery Network) consists of several components, including edge servers, DNS servers, origin servers, and a network of data centers. The edge servers are located in various geographic locations and serve as the point of contact for end-users. DNS servers route traffic to the nearest edge server based on the user's location.