CDN scheduling analysis method
By analyzing DNS logs and Flow address changes, the CDN scheduling method is determined, which solves the problem that operators cannot accurately control the scheduling behavior of large IDC customers, improves the accuracy of scheduling analysis, and effectively handles traffic scheduling to prevent network performance degradation.
Patent Information
- Application Number
- CN202410970622.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-10-11
AI Technical Summary
Operators lack effective observation methods to accurately control the CDN scheduling behavior of large IDC customers, resulting in a sudden increase in traffic traversing the backbone network in local directions, relay congestion, and network performance degradation.
By analyzing DNS logs and Flow address changes, we determine the CDN scheduling method, including DNS scheduling, BGP scheduling, and httpDNS scheduling, establish the time series mapping relationship between application client addresses and application addresses, and identify address changes to determine the scheduling method.
It improves the accuracy of CDN scheduling analysis, effectively handles the traffic scheduling of head customers, and avoids sudden increases in local directions of traffic crossing the backbone network and network performance degradation.
Smart Images

Figure CN118764463A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of CDN scheduling analysis, and in particular to an analysis method for CDN scheduling. Background Art
[0002] Due to the flexible traffic scheduling of IDC large-bandwidth customers, large-scale traffic traverses the backbone network, causing a sudden increase in traffic in local directions, relay congestion, and network performance degradation. Operators currently have no effective observation method, and the scheduling method of IDC customers is currently a black box, which cannot accurately control the scheduling behavior of large IDC customers. Summary of the invention
[0003] In order to solve the above problems existing in the prior art, the present invention provides a CDN scheduling analysis method, which determines the CDN scheduling mode from the DNS log and the address change of the Flow, and effectively improves the accuracy of the CDN scheduling analysis.
[0004] To achieve the above object, the present invention adopts the following technical solutions:
[0005] In one embodiment of the present invention, a CDN scheduling analysis method is proposed, the method comprising:
[0006] Determine the application client address and application address by analyzing DNS logs and Flow;
[0007] Determine the application client address and the AS-PATH and the city of the application address through BGP routing;
[0008] Establish a mapping relationship between the application client address and the application address in the time series to determine the change of the application address;
[0009] The CDN scheduling mode of the application is determined according to the change of the application address, and the scheduling mode includes DNS scheduling, BGP scheduling and httpDNS scheduling.
[0010] Furthermore, the application client address is composed of the Flow client address and the DNS client address.
[0011] Furthermore, the DNS log and Flow are analyzed to determine the application client address and application address, including:
[0012] The DNS log determines the DNS client address and application address of the application based on the domain name.
[0013] Flow builds the application session information based on the application address, and the client address of the session is the Flow client address.
[0014] Furthermore, the Flow client address is composed of a DNS client address and an httpDNS client address.
[0015] Furthermore, AS-PATH determines the application client address and the city to which the application address belongs based on the VIP AS and the public AS.
[0016] Furthermore, the change of the application address includes the change of the IP address, the change of the AS number, the change of the AS-PATH, the change of the proportion of the same IP address and the CNMAE change.
[0017] Furthermore, the CDN scheduling mode of the application is determined according to the change of the application address, and the scheduling mode includes DNS scheduling, BGP scheduling and httpDNS scheduling, including:
[0018] If the application address responded by the application client address does not change, but the city to which the application address belongs changes, it is BGP scheduling;
[0019] If the application address and CNAME to which the DNS client address responds change, it is DNS scheduling;
[0020] If the application address responded by the httpDNS client address changes, it is httpDNS scheduling.
[0021] In one embodiment of the present invention, a computer device is also proposed, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the aforementioned CDN scheduling analysis method when executing the computer program.
[0022] In one embodiment of the present invention, a computer-readable storage medium is further provided, wherein the computer-readable storage medium stores a computer program for executing the CDN scheduling analysis method.
[0023] Beneficial effects:
[0024] 1. The present invention determines the CDN scheduling method from the DNS log and the address change of the Flow, effectively improving the accuracy of the CDN scheduling analysis.
[0025] 2. The present invention is based on the CDN scheduling method to effectively handle the traffic scheduling of top customers. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 It is a schematic diagram of the flow of the analysis method of CDN scheduling of the present invention;
[0027] Figure 2 is a schematic diagram of CDN scheduling analysis according to an embodiment of the present invention;
[0028] Figure 3 It is a schematic diagram of the computer device structure of the present invention. DETAILED DESCRIPTION
[0029] The principles and spirit of the present invention will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present invention, and are not intended to limit the scope of the present invention in any way. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.
[0030] Those skilled in the art will appreciate that the embodiments of the present invention may be implemented as a system, system, device, method or computer program product. Therefore, the present disclosure may be implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.
[0031] According to an implementation manner of the present invention, a CDN scheduling analysis method is proposed, which determines the application client address and the application address by analyzing DNS logs and Flow; determines the AS-PATH and the city of the application client address and the application address through BGP routing; establishes a mapping relationship between the application client address and the application address in a time series to determine the change of the application address within the same range; determines the CDN scheduling mode of the application according to the change of the application address, and the scheduling mode includes DNS scheduling, BGP scheduling and httpDNS scheduling.
[0032] The principle and spirit of the present invention are explained in detail below with reference to several representative embodiments of the present invention.
[0033] Figure 1 Schematic diagram of the CDN scheduling analysis method of the present invention. Figure 1 As shown, the method includes:
[0034] S1. Determine the application client address and application address by analyzing DNS logs and Flow.
[0035] The application client address is composed of the Flow client address and the DNS client address.
[0036] The DNS log determines the DNS client address and application address of the application based on the domain name.
[0037] Flow determines the application session information based on the application address, and the client address of the session is the Flow client address.
[0038] The Flow client address consists of the DNS client address and the httpDNS client address.
[0039] The httpDNS client address is the Flow client address minus the DNS client address.
[0040] S2. Determine the application client address and the AS-PATH and the city of the application address through BGP routing.
[0041] AS-PATH determines the city where the application client address and the application address belong based on the key customer AS and public AS.
[0042] Based on the DNS log and Flow session information, a mapping relationship between the application client address and the application address is constructed.
[0043] The mapping between the application client address and the application address is composed of time, address identifier, city, application, client address and application address.
[0044] S3. Establish a mapping relationship between the application client address and the application address in the time series to determine the change of the application address.
[0045] Application address changes include changes in IP addresses, AS numbers, AS-PATH, the proportion of IP addresses with the same affiliation, and CNMAE.
[0046] In specific implementation, it can be divided according to cities and counties, and the application addresses serving the same address constitute an application address set.
[0047] S4. Determine the CDN scheduling mode of the application according to the change of the application address, which scheduling mode includes DNS scheduling, BGP scheduling and httpDNS scheduling.
[0048] If the application address responded by the application client address does not change, but the city to which the application address belongs changes, it is BGP scheduling.
[0049] If the application address and CNAME to which the DNS client address corresponds change, it is DNS scheduling.
[0050] If the application address to which the httpDNS client address corresponds changes, it is httpDNS scheduling.
[0051] It should be noted that, although the operations of the method of the present invention are described in a specific order in the above embodiments and the accompanying drawings, this does not require or imply that the operations must be performed in the specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.
[0052] In order to explain the above CDN scheduling analysis method more clearly, a specific embodiment is described below. However, it should be noted that this embodiment is only for better illustrating the present invention and does not constitute an improper limitation to the present invention.
[0053] Example:
[0054] In this embodiment, the system collects DNS logs and collects the Flow of the metropolitan area network border router and the IDC border router, such as Figure 2 shown.
[0055] The implementation steps are as follows:
[0056] S1. Determine the client address and application address of the application by analyzing the DNS log and Flow.
[0057] The DNS log determines the DNS client address and application address of the application based on the domain name.
[0058] For example, Taobao's top-level domain name is taobao.com. When the domain name in the DNS log matches the domain name of the application, the A / AAAA record is the application address, and the requested address is the DNS client address.
[0059] In specific implementation, a mapping relationship between the application client address and the application address is established according to time. At the same time, an application address library is constructed, and the application address is the server address of the application.
[0060] In specific implementation, Flow is a general term, including netFlow, sFlow protocol, IPFIX protocol, etc.
[0061] Flow is cleaned according to the application address, and the remaining flow is application-related flow traffic. Flow sessions are built according to the five-tuple of flow, and the address of the other end of the session is used as the address of the flow client. In specific implementation, the flow session table is built according to the time of the flow session, and the flow session table consists of five-tuples.
[0062] In specific implementation, the source and destination addresses of the Flow are relative. To distinguish whether the client accesses the application server or the server responds to the client, it is necessary to distinguish and match the source address and destination address according to the direction of the traffic.
[0063] In specific implementation, when the collected traffic is the inbound traffic of the uT port (the port connected to the backbone network side) of the metropolitan area network egress device, the source address of the Flow is the application address, and the destination address is the application client address. When the collected traffic is the inbound traffic of the dT port (the port of the device in the downstream metropolitan area network) of the metropolitan area network, the source address of the Flow is the application client address, and the destination address is the application address. If the collected traffic is the inbound traffic of the uT port of the IDC egress device, the source address of the Flow is the application client address, and the destination address is the application address.
[0064] The Flow client address and the DNS client address together constitute the client address of the application; the Flow client address excludes the DNS client address as the client address of httpDNS. Specifically, Flow generally performs sampling, so the Flow client address may only contain part of the DNS client address.
[0065] During specific implementation, the application client address is marked with an application identifier and an address identifier, and the address identifier is used to identify the DNS client address and the httpDNS client address.
[0066] In specific implementation, some application addresses are requested through httpDNS, and these requests are not included in the DNS log. However, the address returned by httpDNS is the same as the server address returned by the DNS request. Therefore, Flow cleans based on the application address, and its client address includes all clients that access the application address, so Flow's clients include httpDNS clients.
[0067] S2. Determine the application client address and the AS-PATH and city of the application address through BGP routing.
[0068] In the specific implementation, the BGP routes of the routing device are collected, and the DNS client address, application address and Flow client address are matched with the corresponding BGP routes. The DNS client address and application address are matched with the BGP routes of the province, and the route hit by the longest match is used as the AS-PATH of the address.
[0069] AS-PATH determines the city where the application client address and application address belong based on the AS of major customers and public AS. The AS of major customers is the AS allocated to customers and accesses the operator network through EBGP, but the customer address can be accessed in multiple places, that is, the ownership of the IP address cannot be determined based on the customer AS alone. Public AS generally has clear location information and can be located in cities. For example, 58461 is the AS of Hangzhou IDC.
[0070] During the specific implementation, we build a database of AS features for major customers, such as 37963, which is Alibaba's AS. The public AS feature database includes AS, operator information, country, province, and city.
[0071] In specific implementation, the last AS is first determined. If it is a major customer AS, the previous AS is used to determine the city to which it belongs. If the last AS is not a major customer AS, the city to which it belongs is determined based on the last AS.
[0072] For example, AS-PATH:41345846137963. When the BGP route is queried for a certain address and the AS-PATH is determined to be 41345846137963, it is considered that the address belongs to Hangzhou.
[0073] S3. Establish a mapping relationship between the application client address and the application address in the time series to determine the change of the application address;
[0074] According to the city or province to which the application client address belongs, the application client address is divided into ranges, and the mapping relationship between the application client address and the application address is established in combination with the session information of Flow. The address identifier is used to distinguish whether the client address is a client for DNS request or httpDNS request. The details are as follows Table 1:
[0075] Table 1
[0076]
[0077] In the specific implementation, according to the time, city, address identifier and application client address, the ownership of the application address is distinguished, as shown in Table 2:
[0078] Table 2
[0079]
[0080] When implementing this, compare the changes in cities, address identifiers, and application addresses at different time points:
[0081] Application address changes include changes and deletions of IP addresses, changes in AS numbers, changes in AS-PATH, changes in the proportion of IP addresses with the same affiliation, and changes in CNMAE.
[0082] The same affiliation generally refers to the same AS, the same computer room, or the same city.
[0083] In specific implementation, the proportion of IP addresses in the same computer room mainly includes the proportion of DNS requests carried by IP addresses and the proportion of traffic carried by IP addresses. The proportion of DNS requests refers to the ratio of the number of DNS requests responded by a certain computer room or city IP to the total number of DNS requests. The proportion of traffic refers to the ratio of the traffic carried by the application address in the same computer room or city to the total application traffic.
[0084] In specific implementation, there may be multiple IP addresses carrying the same application. Generally, whether scheduling occurs is determined based on the AS to which the IP address belongs. If an AS is added or deleted, scheduling is considered to occur.
[0085] In specific implementation, the AS to which the IP belongs does not change, that is, time T1 is AS1, AS2, and AS3, and time T2 is still these three ASs. However, if the proportion of the number of IP addresses in the AS changes, scheduling is also considered to have occurred.
[0086] In real-world scenarios, applications in each city are served by multiple application servers. Therefore, there may be many application addresses in the same city. For example, Taobao users in Zhejiang are served by more than 20 provinces across the country. For Zhejiang Taobao users, their application addresses are distributed to different ASs and cities. When traffic scheduling is required, the routing can be adjusted through BGP, or the DNS response address can be adjusted to achieve the scheduling purpose.
[0087] S4. Determine the CDN scheduling mode of the application according to the change of the application address, which scheduling mode includes DNS scheduling, BGP scheduling and httpDNS scheduling.
[0088] If the application address of the DNS or httpDNS response does not change, but the city to which the AS-PATH of the application address belongs changes, it is BGP scheduling.
[0089] If the application address or CNAME to which the DNS client address corresponds changes, it is DNS scheduling.
[0090] If the application address responded by the httpDNS client address changes, it is httpDNS scheduling.
[0091] In specific implementation, compare the changes in the application addresses of the same city, application, and address identifier at adjacent time points. For example, at time T1, IPa, IPb, and IPc addresses serve a certain application in a certain city, but at time T2, IPa, IPb, and IPd addresses serve the city, which reduces the IPc address and adds the IPd address. It is considered that scheduling has occurred. If the IP address has not changed, but the city to which the IP address belongs has changed, such as address 39.106.10.10 is the address of a certain customer and can be accessed from multiple locations, it is necessary to determine the city to which the address belongs based on the AS-PATH of the BGP route. If the city to which the address belongs has changed, scheduling has occurred.
[0092] Based on the above invention concept, Figure 3 As shown, the present invention further proposes a computer device 200, including a memory 210, a processor 220, and a computer program 230 stored in the memory 210 and executable on the processor 220, and when the processor 220 executes the computer program 230, the aforementioned CDN scheduling analysis method is implemented.
[0093] Based on the aforementioned inventive concept, the present invention further proposes a computer-readable storage medium, which stores a computer program for executing the aforementioned CDN scheduling analysis method.
[0094] The CDN scheduling analysis method proposed in the present invention determines the CDN scheduling method from the DNS log and the address change of the Flow, effectively improving the accuracy of the CDN scheduling analysis; based on the CDN scheduling method, the traffic scheduling of the top customers is effectively handled.
[0095] Although the spirit and principle of the present invention have been described with reference to several specific embodiments, it should be understood that the present invention is not limited to the disclosed specific embodiments, and the division of various aspects does not mean that the features in these aspects cannot be combined to benefit, and such division is only for the convenience of expression. The present invention is intended to cover various modifications and equivalent arrangements contained in the spirit and scope of the attached claims.
[0096] Regarding the limitation of the protection scope of the present invention, those skilled in the art should understand that, based on the technical solution of the present invention, various modifications or variations that can be made by those skilled in the art without creative work are still within the protection scope of the present invention.
Claims
1. A CDN scheduling analysis method, It is characterized in that The method includes: Determine the application client address and application address by analyzing DNS logs and Flow; Determine the application client address and the AS-PATH and the city of the application address through BGP routing; Establish a mapping relationship between the application client address and the application address in the time series to determine the change of the application address; The CDN scheduling mode of the application is determined according to the change of the application address, and the scheduling mode includes DNS scheduling, BGP scheduling and httpDNS scheduling.
2. According to the CDN scheduling analysis method of claim 1, It is characterized in that The application client address is composed of the Flow client address and the DNS client address.
3. The CDN scheduling analysis method according to claim 1, It is characterized in that Determine the application client address and application address by analyzing DNS logs and Flow, including: The DNS log determines the DNS client address and application address of the application based on the domain name. Flow builds the application session information based on the application address, and the client address of the session is the Flow client address.
4. The CDN scheduling analysis method according to claim 3, It is characterized in that The Flow client address consists of a DNS client address and an httpDNS client address.
5. The CDN scheduling analysis method according to claim 1, It is characterized in that The AS-PATH determines the application client address and the city to which the application address belongs based on the VIP AS and the public AS.
6. The CDN scheduling analysis method according to claim 1, It is characterized in that The change of the application address includes the change of the IP address, the change of the AS number, the change of the AS-PATH, the change of the proportion of the same IP address and the CNMAE change.
7. The CDN scheduling analysis method according to claim 1, It is characterized in that Determine the CDN scheduling mode of the application based on the change of the application address. The scheduling mode includes DNS scheduling, BGP scheduling and httpDNS scheduling, including: If the application address responded by the application client address does not change, but the city to which the application address belongs changes, it is BGP scheduling; If the application address and CNAME to which the DNS client address responds change, it is DNS scheduling; If the application address responded by the httpDNS client address changes, it is httpDNS scheduling.
8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program for executing the method according to any one of claims 1 to 7.
