Enabling Both AAD and CDN on HUAWEI CLOUD
Scenarios
If you have plenty of resources, for example, images or videos on the video or e-commerce platform, to present to your customers and want them to be quickly acquired by the customers, you can use the AAD and CDN services. This service interworking implements quick access to the resources, ensures stable business running, and enhances network processing capabilities for deployed service systems, such as those for platform login and payment.
This topic describes how to configure interworking between AAD and CDN.
Mechanism
Your video and e-commerce service systems can distinguish dynamic and static resources by domain name.
| Type | Description | Example | Solution |
|---|---|---|---|
| Dynamic resource | A service that the server needs to interact with the database before responding to a user request |
| The domain name of a dynamic resource is resolved into the AAD CNAME. AAD protects functional platforms, such as login and payment platforms, against DDoS attacks and ensures their stable running. |
| Static resource | A fixed resource that can be obtained from the Object Storage Service (OBS) |
| The domain name of a static resource is resolved into the CDN CNAME. CDN accelerates content delivery and enables customers to quickly obtain resources such as videos and images with better experience. |
This interworking solution is not suitable for the platforms that do not distinguish between dynamic and static resources and apply the same set of domain names for the resources. In this case, refer to Alternative Solution for substitution.
Procedure
For a static resource, for example, an image service whose domain name is image.abc.com, DNS will resolve image.abc.com into the CDN CNAME to accelerate the content delivery of the static resource.
For a dynamic resource, for example, a login service whose domain name is login.abc.com, DNS will resolve login.abc.com into the AAD CNAME to ensure the stable running of the login function. For details, see Connecting a Website Service to AAD.
Alternative Solution
This alternative solution applies to the service systems where dynamic and static resources are not separated. When services are suffering from heavy DDoS attacks, you can configure high-defense IP addresses to divert attack traffic for scrubbing, ensuring the stable and reliable running of services on origin servers. For details, see the Advanced Anti-DDoS User Guide. If no attack is launched, you can use CDN to accelerate content delivery and improve user experience.
Can I Configure Traffic to Be Forwarded from CDN to AAD or from AAD to CDN?
Neither of the forwarding sequences is allowed.
- Forwarding sequence 1: The AAD service is connected behind the CDN service. Traffic is processed by CDN first and then forwarded to AAD.
Result: AAD protection becomes ineffective.
Cause: The attack traffic reaches CDN first. CDN will process it before forwarding it to AAD. In this deployment, AAD does not scrub attack traffic in a timely manner.
Figure 2 Mechanism
- Forwarding sequence 2: The CDN service is connected behind the AAD service. Traffic is processed by AAD first and then forwarded to CDN.
Result: CDN acceleration function becomes ineffective.
Cause: CDN delivers network content from origin servers to scattered CDN nodes and enables users to access their nearest CDN nodes, thereby accelerating content delivery. If the access requests are firstly directed to AAD, users cannot obtain desired content from the nearest CDN nodes.
Figure 3 Mechanism
Last Article: Enabling Both AAD and WAF on HUAWEI CLOUD
Next Article: Change History
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.