A traffic scheduling method integrating DPI and CDN global scheduling modules

By integrating the traffic scheduling method of DPI and CDN global scheduling module, it solves the problems of inaccurate scheduling and high delay of CDN and edge cache systems in large intranet environments, and realizes the parsing of encrypted messages and supports HTTPS and HTTP2 acceleration. It enhances the system's ability to work together, reduces dependence on the local domain name system, and significantly shortens scheduling delays.

CN115866044BActive Publication Date: 2024-09-27HUNAN WANGSHU TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211342780.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-28
Publication Date
2024-09-27
Estimated Expiration
2042-10-28

AI Technical Summary

Technical Problem

Existing CDN and edge caching systems have problems such as inaccurate scheduling, high latency, incomplete DNS resolution, and inability to parse encrypted messages in large intranet environments. As a result, the content distribution service system has insufficient scheduling capabilities and cannot work effectively together.

Method used

Adopt a traffic scheduling method that integrates DPI and CDN global scheduling modules. Through the collaborative work of DPI and CDN, domain name configuration and service scope are synchronized to achieve precise redirection and acceleration of user requests. It supports content acceleration such as HTTPS and HTTP2, and reduces the impact on local domains. Name system dependencies and shorten scheduling delays.

Benefits of technology

It enhances the collaborative working ability of CDN and edge caching systems, supports HTTPS and HTTP2 acceleration, solves the problems of incorrect deployment location and inability to parse encrypted messages, significantly shortens scheduling delays, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115866044B
    Figure CN115866044B
Patent Text Reader

Abstract

The present invention discloses a traffic scheduling method integrating DPI and CDN global scheduling modules, comprising the following steps: step 1: an edge cache system completes the collaborative preparation work of DPI and CDN scheduling through interface configuration and calling; step 2: DPI processes user resource requests; step 3: a source station processes user resource requests; the present invention synchronizes user requests within the service scope of the edge cache system to CDN nodes, and at the same time, the edge cache is configured from CDN synchronization scheduling, domain names, CDN service nodes, etc., to improve the scheduling service capability of DPI, and can effectively enhance the collaborative working capability of CDN and edge cache systems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of content distribution network (CDN for short), and relates to a traffic scheduling method integrating DPI and CDN global scheduling module.

[0002] CDN: Content Delivery Network;

[0003] DPI technology, namely DPI (Deep Packet Inspection) deep packet inspection technology, is a traffic detection, analysis and control technology based on the application layer. This technology is used in edge cache systems to identify packets and redirect user resource requests to specified IP addresses. It is a commonly used traffic scheduling method. Background Art

[0004] At present, in large-scale intranet environments, CDN nodes are hierarchically deployed in the backbone network to provide services to relevant users, while edge cache systems are deployed at the end of the network to solve the problem of poor network service quality for remote users due to insufficient CDN service capabilities. CDN and edge cache systems constitute a content distribution service system in large-scale intranet environments, greatly improving the user network service experience.

[0005] CDN actively introduces user requests to the CDN global scheduler (GSLB) through the source station. GSLB introduces user traffic to the CDN node through DNS and 302 redirection technology. The edge cache system is deployed on the export gateway device of the remote unit, and actively introduces traffic to the edge cache system data distribution service module through traffic mirroring and traffic analysis technology.

[0006] In CDN, the process of user scheduling is as follows:

[0007] Case 1: DNS Scheduling

[0008] (1) The user enters a URL with a domain name in the browser, and the browser automatically sends a DNS request for the domain name to the local DNS recursive resolution system;

[0009] (2) After receiving the DNS request, the local DNS recursive resolution system recursively requests the authoritative DNS server of the domain name. After receiving the request, the server will send an alias response of the domain name, which points to the global scheduling system of the CDN.

[0010] (3) The local DNS recursive resolution system sends the DNS alias resolution request of the domain name to the CDN global scheduling system. After receiving the DNS request, the CDN global scheduling selects the CDN data distribution and service nodes based on the health status, load, distance between the node and the user, and other factors, and sends the relevant IP address to the local DNS.

[0011] (4) Finally, the local DNS sends the final resolved IP to the user.

[0012] The biggest drawback of this method is that the CDN global scheduling system is effectively scheduled based on the IP address of the local DNS recursive resolution system. Therefore, when the user terminal fills in the wrong local DNS IP address, the scheduling will be inaccurate, resulting in the user data transmission distance being too long and the acceleration effect being unclear. In addition, in large intranets, there is an incomplete DNS resolution system in the network end areas, which leads to the problem that DNS cannot be resolved. At this time, network traffic cannot be accelerated through CDN.

[0013] Case 2: HTTP302 dispatch

[0014] (1) The user enters the IP address in the browser to access the source site (long-distance access). The general format of the URL is: http: / / source site address / resource path;

[0015] (2) After receiving the request, the origin site redirects the request to the CDN global dispatcher. The general format of the redirect URL is: http: / / global dispatcher address / domain name / resource path;

[0016] (3) After receiving the redirection request, the browser automatically sends the request to the CDN global scheduler. After receiving the request, the CDN global scheduler selects a CDN data distribution and service node based on the health status, load, distance between the node and the user, and resends the redirection request to the user. The general format of the redirection URL is: http: / / CDN data distribution and service node address / domain name / resource path.

[0017] (4) After receiving the redirect request, the browser sends the request again to the CDN data distribution and service node to obtain resources.

[0018] The disadvantage of this method is that all user requests need to go through two long-distance dispatches. In a large intranet environment, due to limited resources and severe packet loss in the backbone network, long-distance dispatch delays are relatively serious. In remote units in actual environments, after actual measurements, the delay can reach 30s.

[0019] After deploying the traditional edge caching system, the user is scheduled to go through the following process:

[0020] Case 1: DNS Scheduling

[0021] (1) The user enters a URL with a domain name in the browser, and the browser automatically sends a DNS request for the domain name to the local DNS recursive resolution system;

[0022] (2) In the local network environment, the DNS request is mirrored to the DPI device. The DPI analyzes the traffic in real time and analyzes the health status of the data and distribution module of the edge cache system. When there is no problem with the module, the DPI directly responds to the DNS request, and the response address is the local system data and distribution service address.

[0023] (3) After receiving the response, the browser sends a request to the local edge cache system data and distribution address to obtain data.

[0024] Case 2: HTTP Scheduling

[0025] (1) The user enters the IP address in the browser to access the source site. The general format of the URL is: http: / / source site address / resource path;

[0026] (2) In the local network environment, HTTP requests are mirrored to the DPI device. The DPI analyzes the traffic in real time and analyzes the health status of the data and distribution module of the edge cache system. When there is no problem with the module, the DPI directly responds with HTTP 302. The general format of the jump URL is: http: / / edge cache system data distribution and service node address / domain name / resource path;

[0027] (3) After receiving the response, the browser sends a request to the local edge cache system data and distribution address to obtain data.

[0028] Disadvantages of DPI scheduling in edge cache systems:

[0029] (1) When the DPI is deployed in the wrong location (for example, a certain area is not configured), the mirrored traffic does not include some user requests of the unit or enterprise. At this time, these users cannot be accelerated by the edge cache system.

[0030] (2) DPI cannot parse encrypted HTTPS and HTTP2 messages, resulting in the edge cache system being unable to accelerate such applications (unable to complete the SSL handshake).

[0031] In large-scale intranet environments, due to resource constraints, network end areas have problems such as imperfect domain name resolution systems, high network packet loss rates, and insufficient computer room operation and maintenance personnel. These problems magnify the scheduling capabilities of the CDN and edge cache systems in the content distribution service system. Therefore, in this environment, there is an urgent need for a traffic scheduling technology that enables edge cache and CDN to work in a highly collaborative manner.

[0032] The prior art has the following problems:

[0033] (1) CDN global scheduling technology only supports scheduling users to CDN nodes, but cannot schedule them to edge cache nodes that can work with it;

[0034] (2) In the network end areas, due to the incomplete domain name system, the DNS scheduling of CDN global scheduling technology may cause the user domain name to be unable to be resolved or be scheduled to a non-optimal node due to incorrect user DNS address configuration;

[0035] (3) In the network end areas, due to the poor quality of long-distance network transmission, the HTTP scheduling of CDN global scheduling technology has high latency problems;

[0036] (4) The edge cache system scheduling technology based on DPI (deep packet inspection) can only redirect DNS requests and HTTP requests that can be identified in the traffic mirror to the edge cache node cache system, resulting in the edge cache system being unable to support technologies such as HTTPS and HTTP2. At the same time, when the edge cache system is deployed in the wrong location, some user traffic cannot be captured by DPI, and the edge cache system cannot be used for acceleration.

[0037] Therefore, it is necessary to design a new traffic scheduling method. Summary of the invention

[0038] The technical problem to be solved by the present invention is to provide a traffic scheduling method integrating DPI and CDN global scheduling modules, which can effectively enhance the collaborative working ability of CDN and edge cache system.

[0039] The technical solution of the invention is as follows:

[0040] A traffic scheduling method integrating DPI and CDN global scheduling modules, comprising the following steps:

[0041] Step 1: The edge cache system completes the collaborative preparation work of DPI and CDN scheduling through interface configuration and calling:

[0042] Step 2: DPI processes the user resource request;

[0043] After the user sends a resource request to the source station; if the user resource request is mirrored to the DPI by the switch traffic, when the DPI captures and analyzes the message, it uses regular matching to complete the matching of the message content. If it can match a certain configuration, it will send the redirection IP (pointing to the configured IP) of the resource as the redirection response to the user. After the user receives the redirection response, it will close the resource request connection, and create a new connection with the redirection IP and send the resource request, and the traffic scheduling process ends; if the user resource request is not processed by the DPI, the user resource request will be processed by the source station, and go to step 3;

[0044] Step 3: The origin server processes the user resource request;

[0045] After the source station receives the resource request, it transfers the resource request to the CDN global scheduler for processing. After the CDN global scheduler receives the user's resource request, it determines whether the IP is within the edge cache service range based on the user's source IP; if the judgment result is true, the user resource request is redirected to the edge cache service IP. At this time, the traffic is scheduled back to the edge cache system; if the judgment result is false, the traffic is scheduled to the CDN node for processing.

[0046] In step 1, (1) the domain name related configuration of CDN is synchronized to the DPI, local scheduling and cache system of the edge cache system; wherein, DPI uses the synchronized domain name back-to-source configuration and CDN service node IP to generate redirection configuration and cache system back-to-source configuration (back-to-source to CDN node). At this time, DPI receives the mirrored traffic and can complete the redirection of the relevant domain name; the cache system uses the synchronized domain name cache configuration and domain name certificate configuration to generate its own domain name configuration to ensure that the edge cache system can work with CDN and serve users as an extended node of CDN; (2) the service scope of the edge cache system is synchronized to the CDN global scheduling system to ensure that when CDN receives a resource request from an IP within the service scope, it redirects the request to the edge cache system for processing.

[0047] Configure the synchronization module on DPI and CDN. The implementation method is as follows:

[0048] CDN provides a domain name configuration interface, and the edge cache system polls the interface regularly;

[0049] CDN provides a node address query interface, which includes the global scheduler IP address and CDN node service IP address. The edge cache system polls and calls this interface to obtain content.

[0050] The edge cache provides a service range query interface.

[0051] Configuration for edge cache system:

[0052] (1) The DPI management module uses the CDN domain name configuration and node address query interface content to update the DPI analysis, identification and redirection configuration, so that the DPI can identify the CDN domain name request or HTTP request sent by the user and send a redirection response to the specified node according to the configuration;

[0053] (2) In the local scheduling and caching module, add CDN domain name related configuration so that local scheduling can handle CDN traffic.

[0054] Beneficial effects:

[0055] The solution adopted by the present invention is: synchronize user requests within the service range of the edge cache system to the CDN node. At the same time, the edge cache synchronizes the scheduling, domain name, CDN service node and other configurations from the CDN to improve the scheduling service capability of DPI, which can effectively enhance the collaborative working ability of CDN and edge cache system;

[0056] (1) Enable CDN to redirect user requests within the service range of the edge cache system to the local scheduling module of the edge cache system, and finally the edge cache system will locally schedule and select the internal cache system to provide data services to users. In this way, the edge cache system can integrate the traffic analysis and scheduling capabilities of DPI and the global scheduling capabilities of CDN, effectively solving the problem that the edge cache system cannot effectively accelerate due to the wrong deployment location of the edge cache system in the network end area, such as DPI failing to capture user requests and DPI failing to analyze and process encrypted messages (https, http2, etc.).

[0057] (2) Utilize the DPI capability of the edge cache system to enhance the global scheduling capability of the CDN. DPI analyzes user requests that are only accelerated by the CDN and quickly redirects them to the CDN global scheduling module, allowing the CDN to quickly process user requests; and redirects user requests that can be processed in the edge cache system to the local scheduling subsystem and cache subsystem of the edge cache system for processing. In this way, the CDN's dependence on the operator's DNS system is reduced, while scheduling is accurate and time can be greatly reduced.

[0058] The creativity of the present invention is embodied in:

[0059] 1. Expanded the application scope of edge cache system: By supporting CDN scheduling protocol, edge cache service can support content acceleration such as HTTPS and HTTP2.

[0060] 2. Solved the problem that users cannot accelerate due to incorrect DPI deployment location.

[0061] 3. Enhanced CDN scheduling capabilities. In the peripheral areas of large intranets, the DPI analysis and scheduling capabilities of edge caches reduce dependence on the local domain name system and greatly shorten scheduling delays. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 Schematic diagram of traffic scheduling technology integrating DPI and CDN global scheduling;

[0063] Figure 2 A diagram of the service scope configuration for edge cache synchronization;

[0064] Figure 3 CDN domain name synchronization example diagram;

[0065] Figure 4 Example diagram of CDN domain name synchronization interface content;

[0066] Figure 5 Example diagram for DPI configuration;

[0067] Figure 6 DPI configuration effective example diagram;

[0068] Figure 7 This is a configuration example diagram;

[0069] Figure 8 Configure schematic diagram for local scheduling;

[0070] Fig. 9 This is a diagram of the collaborative architecture of DPI-based scheduling and CDN global scheduling. DETAILED DESCRIPTION

[0071] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments:

[0072] Embodiment 1:

[0073] The implementation process of the present invention is as follows Figure 1 shown.

[0074] Step 1: The edge cache system completes the collaborative preparation work of DPI and CDN scheduling through the interface: (1) Synchronize the domain name related configuration of CDN to the DPI, local scheduling and cache system of the edge cache system. Among them, DPI uses the synchronized domain name back-to-source configuration, CDN service node IP, etc. to generate redirection configuration (such as Figure 2 (2) Synchronize the service scope of the edge cache system to the CDN global scheduling system to ensure that when the CDN receives a resource request from an IP within the service scope, it redirects the request to the edge cache system for processing. The synchronized configuration items are as follows: Figure 3 shown.

[0075] Step 2: The user sends a resource request to the source station; if the user request is mirrored to the DPI by the switch traffic, after the DPI captures and analyzes the message, it uses regular matching to complete the message content matching. If it can match a certain configuration, it sends a resource redirection response (pointing to the configured IP, Figure 2At this time, after receiving the redirection response, the user will close the resource request connection, create a new connection with the redirection IP, and send a resource request, and the traffic scheduling process ends. If the user resource request is not processed by DPI, the user resource request will be processed by the origin station, and go to the third step.

[0076] Step 3: After the source station receives the resource request, it forwards the resource request to the CDN global scheduler for processing. After the CDN global scheduler receives the user's resource request, it determines whether the IP is within the edge cache service range based on the user's source IP. If the judgment result is true, the user's resource request is redirected to the edge cache service IP ( Figure 3 In this case, the traffic is dispatched back to the edge cache system; if the judgment result is false, the traffic is dispatched to the CDN node for processing.

[0077] To implement the above technologies, the edge cache system and CDN scheduling module need to optimize some functions:

[0078] 1. Add configuration synchronization module for DPI and CDN. The implementation steps are as follows:

[0079] (1) CDN provides a domain name configuration interface, and the edge cache system periodically polls the interface. An example of the interface is as follows: Figure 4 and Figure 5 As shown, obtain the domain name information of CDN, including the acceleration domain name, the cache time of the resources under the domain name, the back-to-source address of the domain name, etc. After the edge cache system synchronizes the content, it can configure the domain name and redirection IP address or http matching and redirection address as needed, send it to the DPI module, modify the DPI configuration file, so that DPI can identify the CDN resource request sent by the user; and configure the domain name, security certificate, etc. in the local scheduling system and cache system, so that the local scheduling system and cache system of the edge cache system can process CDN traffic.

[0080] (2) CDN provides a node address query interface, which includes the global scheduler IP address and CDN node service IP address. The edge cache system polls and calls this interface to obtain content. For example, Figure 6 As shown. And synchronize the DPI production traffic scheduling configuration, configuration example: {domain= www.test.com , ip_list = global scheduler IP}, synchronized to the cache module of the edge cache system, and generated cache back-to-source configuration. Configuration example: {domain = www.test1.com, parent_ip=CDN node IP}. Through this interface, DPI can configure the domain name resources to redirect to the CDN global scheduler, which can effectively solve the problem of CDN application at the end of the network: inaccurate DNS resolution or inability to resolve due to incomplete domain name system.

[0081] (3) The edge cache provides a service scope query interface, which includes information such as the local scheduling service IP and IP service network segment of the edge cache system. The CDN global scheduler regularly queries this interface and updates the scheduling configuration to make the CDN global scheduler aware of the service scope of each edge cache system. When receiving a user within the service scope of the edge cache system, the CDN global scheduler can reschedule the traffic to the scheduling and caching subsystem of the edge cache system, solving the redirection failure problem caused by the wrong DPI deployment location or the inability of DPI to parse encrypted content.

[0082] 2. Edge cache system optimization.

[0083] (1) The DPI management module needs to use the CDN domain name configuration and node address query interface content to update the DPI analysis, identification and redirection configuration so that the DPI can identify the CDN domain name request or HTTP request sent by the user and send a redirection response to the specified node according to the configuration. The configuration example is shown in the figure below. After the DPI matches the DNS request for video1.mooc.mtn, the DPI will send 192.168.219.33. Figure 7 shown.

[0084] (2) For the local scheduling and caching modules, it is necessary to add CDN domain name related configurations so that local scheduling can handle CDN traffic. Figure 8 shown.

[0085] The technical architecture of an instance is as follows Fig. 9 As shown, under this architecture, the user request processing flow of remote units is described as follows:

[0086] like Fig. 9 As shown in the figure, a certain edge unit contains two user groups. Because the edge cache system is deployed in the wrong location (the correct deployment method is: it should be directly connected to the network end router), the resource request of user group 1 can be directly processed by the DPI of the edge cache system, while the resource request of user group 2 cannot be captured by the DPI of the edge cache system.

[0087] (1) The DPI scheduling device analyzes the user request in real time for the split or mirrored user group 1 request. If the user request can be identified by the DPI packet analysis module and is within the service range of the edge cache system, the DPI scheduling function redirects the user request to the edge cache data cache and service device, which distributes the data to the user end. In this case, the scheduling and transmission path between the user and the edge cache system is the shortest, and there is no need to rely on the traditional local DNS domain name resolution function in the network terminal area, so the user experience is the best. If the user request can be identified by the DPI packet analysis module and the request is required by the CDN to assist in scheduling, the DPI will schedule the request to the CDN global scheduling device without relying on the source station scheduling, thereby reducing the scheduling process of CDN acceleration.

[0088] (2) User requests that are not split or mirrored are introduced into the CDN global scheduling system by the source station. After the CDN global scheduling system recognizes the request, it redirects the user request to the local scheduling device of the edge cache system. The edge cache system schedules the user request to the data cache and service module in the node. In this case, the user resource request (small amount of data) is redirected multiple times, but the user's response data (large amount of data) is directly provided by the edge cache node. Therefore, compared with the data service provided by CDN, this method shortens the data transmission distance, and the user experience will be greatly improved. At the same time, it solves the problem that the edge cache system cannot be accelerated due to the deployment error of the DPI scheduling device.

[0089] This technology integrates the scheduling capabilities of the edge cache system and CDN to enable the two systems to work together efficiently, while effectively expanding the application scope of the edge cache system.

Claims

1. A traffic scheduling method integrating DPI and CDN global scheduling modules, characterized in that: The following steps are involved: Step 1: The edge cache system completes the collaborative preparation work of DPI and CDN scheduling through interface configuration and calling: Step 2: DPI processes the user resource request; After the user sends a resource request to the source station; if the user resource request is mirrored to the DPI by the switch traffic, when the DPI captures and analyzes the message, it uses regular matching to complete the matching of the message content. If it can match a certain configuration, it will send the redirection IP of the resource as the redirection response to the user. After the user receives the redirection response, it will close the resource request connection, and create a new connection with the redirection IP and send the resource request, and the traffic scheduling process ends; If the user resource request is not processed by DPI, the user resource request will be processed by the origin station and go to step 3; Step 3: The origin server processes the user resource request; After the origin site receives the resource request, it forwards it to the CDN global scheduler for processing. After the CDN global scheduler receives the user's resource request, it determines whether the IP is within the edge cache service range based on the user's source IP. If the judgment result is true, the user resource request is redirected to the edge cache service IP. At this time, the traffic is dispatched back to the edge cache system. If the judgment result is false, the traffic is dispatched to the CDN node for processing. In step 1, (1) the domain name related configuration of the CDN is synchronized to the DPI, local scheduling and cache system of the edge cache system; wherein, the DPI uses the synchronized domain name back-to-source configuration and CDN service node IP to generate the redirection configuration and cache system back-to-source configuration. At this time, the DPI receives the mirrored traffic and can complete the redirection of the relevant domain name; The cache system uses the synchronized domain name cache configuration and domain name certificate configuration to generate its own domain name configuration, ensuring that the edge cache system can work with the CDN and serve users as an extended node of the CDN; (2) The service scope of the edge cache system is synchronized to the CDN global scheduling system to ensure that when the CDN receives a resource request from an IP within the service scope, it redirects the request to the edge cache system for processing.

2. The traffic scheduling method integrating DPI and CDN global scheduling modules according to claim 1 is characterized in that: Configure the synchronization module on DPI and CDN. The implementation method is as follows: CDN provides a domain name configuration interface, and the edge cache system polls the interface regularly; CDN provides a node address query interface, which includes the global scheduler IP address and CDN node service IP address. The edge cache system polls and calls this interface to obtain content. The edge cache provides a service range query interface.

3. The traffic scheduling method integrating DPI and CDN global scheduling modules according to claim 1 is characterized in that: Configuration for edge cache system: (1) The DPI management module uses the CDN domain name configuration and node address query interface content to update the DPI analysis, identification and redirection configuration, so that the DPI can identify the CDN domain name request or HTTP request sent by the user and send a redirection response to the specified node according to the configuration; (2) In the local scheduling and caching module, add CDN domain name related configuration so that local scheduling can handle CDN traffic.