WO2023019669A1 - Cdn quality inspection method and system, server, and storage medium - Google Patents

Cdn quality inspection method and system, server, and storage medium Download PDF

Info

Publication number
WO2023019669A1
WO2023019669A1 PCT/CN2021/118855 CN2021118855W WO2023019669A1 WO 2023019669 A1 WO2023019669 A1 WO 2023019669A1 CN 2021118855 W CN2021118855 W CN 2021118855W WO 2023019669 A1 WO2023019669 A1 WO 2023019669A1
Authority
WO
WIPO (PCT)
Prior art keywords
bgp
line
cdn
cdn node
autonomous system
Prior art date
Application number
PCT/CN2021/118855
Other languages
French (fr)
Chinese (zh)
Inventor
郭志鸿
黄尔翔
王晓琳
Original Assignee
网宿科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 网宿科技股份有限公司 filed Critical 网宿科技股份有限公司
Publication of WO2023019669A1 publication Critical patent/WO2023019669A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/14Arrangements for monitoring or testing data switching networks using software, i.e. software packages

Definitions

  • the embodiments of the present application relate to the technical field of the Internet, and in particular to a CDN network quality detection method, system, server and storage medium.
  • CDN Content Delivery Network
  • the purpose of the embodiments of the present application is to provide a CDN network quality detection method, system, server and storage medium, which can effectively detect the CDN network quality, thereby improving the customer service quality of the CDN network.
  • the embodiment of the present application provides a method for detecting the quality of a CDN network.
  • the CDN network includes: a CDN node, a plurality of autonomous systems AS provided by a plurality of network operators, the CDN node, and the plurality of autonomous systems AS Interconnected through Border Gateway Protocol BGP; the method includes: constructing a plurality of detection data packets, each of which carries the line identification of a BGP line in the multiple BGP lines from the CDN node to the target autonomous system AS ; According to the line identification carried in the detection data packet, the detection data packet is sent from the CDN node to the target autonomous system AS through the BGP line corresponding to the line identification; The multiple BGP lines are tested respectively to obtain network quality parameters of each BGP line.
  • the embodiment of the present application also provides a CDN network quality detection system
  • the CDN network includes: a CDN node, a plurality of autonomous systems AS provided by a plurality of network operators, the CDN node, the plurality of autonomous systems AS
  • the ASs are interconnected through the Border Gateway Protocol BGP; the system further includes: a server located inside the CDN node, the server is used to schedule the CDN network to execute the CDN network quality detection method as described above.
  • the embodiment of the present application also provides a server, including: at least one processor; and a memory connected in communication with the at least one processor; wherein, the memory stores the information executable by the at least one processor Instructions, the instructions are executed by the at least one processor, so that the at least one processor can execute the CDN network quality detection method as described above.
  • Embodiments of the present application also provide a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the method for detecting the quality of a CDN network as described above is implemented.
  • the CDN nodes and multiple autonomous system ASs are interconnected through the Border Gateway Protocol BGP; by constructing multiple detection Each detection packet carries the line identifier of one of the multiple BGP lines from the CDN node to the target autonomous system AS; according to the line identifier carried in the detection packet, the detection packet is mapped to the The BGP lines are sent from the CDN node to the target autonomous system AS; multiple BGP lines are tested based on the sent detection packets, and the network quality parameters of each BGP line are obtained, so as to realize the communication between the CDN node and the target autonomous system AS.
  • Border Gateway Protocol BGP Border Gateway Protocol
  • the BGP lines used by the service flow between the CDN node and the target autonomous system AS are regulated, and/or the detected BGP lines are failure analysis.
  • the BGP line used by the service traffic can be flexibly regulated, and/or, fault analysis can be performed on the BGP line.
  • regulating the BGP lines used by the service flow between the CDN node and the target autonomous system AS includes: determining the CDN node to the The BGP line used by the service flow of the target autonomous system AS; after adding the line identifier corresponding to the determined BGP line to the data packet of the service flow, the data packet is sent from the CDN node.
  • the data packet is transmitted through the preferred BGP line, and the packet receiving experience of the customer in the target autonomous system is improved.
  • the line identifier is a differential service code point DSCP; the construction of the detection data packet includes: setting the coding value of the differential service code point DSCP of each detection data packet to one of a plurality of preset coding values Either one, the plurality of preset coded values correspond one-to-one to the first autonomous system AS interconnected with the CDN node among the plurality of BGP lines; according to the line identifier carried in the detection data packet, Sending the detection data packet from the CDN node to the target autonomous system AS through the BGP line corresponding to the line identifier includes: according to the code value of the differentiated service code point DSCP carried in the detection data packet, the The detection data packet is forwarded to the autonomous system AS corresponding to the code value, and the detection data packet is sent from the CDN The node sends to the target autonomous system AS.
  • Use DSCP as the line identifier to specify the first AS after the detection data packet leaves the CDN node, so that based on the BGP route selection rules, the B
  • the source address of the detection packet sent from the CDN node to the target autonomous system AS is a plurality of addresses in the IP address segment corresponding to the CDN node, and corresponds to the plurality of BGP lines one by one; correspondingly
  • the sending the detection data packet from the CDN node to the target autonomous system AS includes: according to the source address of the detection data packet, passing a plurality of the detection data packets respectively through the source of each detection data packet The BGP line corresponding to the address is sent to the target autonomous system.
  • the CDN node is a CDN node in a unicast communication scenario; according to the network quality parameters of each BGP line, the BGP used for the service flow between the CDN node and the target autonomous system AS Regulating the line includes: according to the network quality parameters of each BGP line, setting one or more IP address segments corresponding to the target autonomous system AS to access through one of the BGP lines respectively; Different service flows between the CDN node and the target autonomous system AS are correspondingly sent to one IP address segment in the plurality of IP address segments. By specifying different IP address segments of the target self-made system AS to use different BGP lines for access, access control based on the current state of network quality in unicast communication can be implemented.
  • the CDN node is a CDN node in anycast communication scenario; according to the network quality parameters of each BGP line, the BGP used for the service flow between the CDN node and the target autonomous system AS Line regulation includes: according to the network quality parameters of the BGP lines corresponding to each of the CDN nodes in anycast communication scenarios, determining the network quality of each of the CDN nodes covering the target autonomous system AS; according to each of the CDN nodes The node covers the network quality of the target autonomous system AS, and adjusts the range of the target autonomous system AS covered by anycast of each CDN node.
  • each CDN node covers the network quality of the corresponding target self-made system AS
  • the network quality of each CDN node covering AS can be obtained; and then by adjusting the coverage of each node AS range, so as to achieve the optimal coverage of each CDN node on the AS.
  • FIG. 1 is a structural diagram of a CDN network topology according to a first embodiment of the present application
  • FIG. 2 is a structural diagram of a CDN network topology according to the first embodiment of the present application
  • FIG. 3 is a specific flow chart of a CDN network quality detection method according to the first embodiment of the present application
  • FIG. 4 is a specific flow chart of a CDN network quality detection method according to the second embodiment of the present application.
  • FIG. 5 is a specific flowchart of a CDN network quality detection method according to a third embodiment of the present application.
  • FIG. 6 is a structural diagram of a CDN network topology according to a third embodiment of the present application.
  • FIG. 7 is a specific flowchart of a CDN network quality detection method according to a fourth embodiment of the present application.
  • FIG. 8 is a specific flowchart of a CDN network quality detection method according to a fifth embodiment of the present application.
  • FIG. 9 is a specific flow chart of a CDN network quality detection method according to the sixth embodiment of the present application.
  • FIG. 10 is a structural diagram of a CDN network topology according to a sixth embodiment of the present application.
  • Fig. 11 is a schematic structural diagram of a server according to an eighth embodiment of the present application.
  • the first embodiment of the present application relates to a method for detecting the quality of a CDN network.
  • the CDN network includes: a CDN node (CDN Node), a plurality of autonomous systems (Autonomous System, AS for short), such as AS 1299, AS 2914, AS 6453 and AS Client shown in Figure 1; CND nodes and multiple ASs are interconnected through Border Gateway Protocol (BGP).
  • the CDN Node has multiple BGP lines, which broadcast the 1.1.1.0/24 network segment to the outside world, and learn the AS client network segment 2.2.2.0/24 through the three BGP lines shown in Figure 1. For the convenience of illustration, only the first AS directly connected to the CDN Node egress among the three BGP lines is shown in Fig.
  • each BGP line leading to the AS client may only contain the AS provided by one network operator, or contain ASs provided by multiple network operators at the same time.
  • Figure 1 only It exemplarily shows three ASs provided by network operators that are directly connected to the egress of the CND node.
  • the CDN Node will automatically select a BGP line as the optimal line to reach the AS Client according to the BGP routing rules, as shown in Figure 2. For example, when the BGP line where AS1299 is located, all access 2.2.2.0/24( The traffic of AS client) will pass through the BGP line where AS1299 is located first, and the BGP lines where AS2914 and AS6453 are located are used as a backup solution.
  • the route rule is selected as the optimal route and used as the route to reach the AS Client.
  • the network quality of other BGP lines is not known, which makes it impossible to perform reasonable related operations based on the network quality of each BGP line, such as traffic control and fault analysis on each BGP line.
  • the CDN network quality detection method specifies to send a detection packet to the destination AS (such as the AS Client in Figure 1) through a specific BGP line, so as to realize the detection of each BGP line leading to the destination AS.
  • Network quality parameters are detected to find the optimal BGP line usage strategy, optimize and guide line regulation.
  • the CDN network quality detection method can schedule the CDN node to execute through the test server connected to the CDN node, including the following steps:
  • Step 101 Construct multiple detection data packets, and each detection data packet carries the line identifier of one of the multiple BGP lines from the CDN node to the target autonomous system AS.
  • the detection data packet when the test server constructs the detection data packet, in addition to adding the basic data content used to detect the network quality parameters of the BGP line to the data packet, the detection data packet also carries the line identifier used to indicate the BGP line, indicated
  • the BGP line of is any one of multiple BGP lines leading from the CDN node to the target autonomous system AS.
  • the line identifier can exist in data formats supported by multiple data packets, and can also borrow specified identifier bits in existing data packets.
  • Step 102 According to the line identification carried in the detection data packet, the detection data packet is sent from the CDN node to the target autonomous system AS through the BGP line corresponding to the line identification.
  • the CDN Node will pre-learn the multiple BGP lines leading to the target autonomous system locally, such as the above-mentioned access to the AS Client, but when allocating traffic for accessing the AS Client, it will select a BGP route according to the BGP routing rules lines to transmit access traffic.
  • the test server can be used to intervene in the action of CDN Node sending data packets, so that the router of CDN Node does not use BGP routing rules when sending detection data packets, but transmits detection data packets through pre-designated BGP lines , so as to realize the process of sending the detection data packet from the CDN node to the target autonomous system through different BGP lines.
  • this embodiment does not limit the action mode of intervening in CDN Node sending data packets, for example, it is possible to control the sending of detection packets through different CDN Node addresses or ports, and specify the corresponding relationship between these addresses or ports and BGP lines, so that Make the router select the corresponding BGP line to send by detecting the sending address or port of the data packet; for another example, a line identification for identifying the BGP line can be added in the detection data packet, and the router can identify the line identification in the detection data packet. Therefore, the BGP line corresponding to the line identifier is selected to send the detection data packet.
  • the detection data packet can be the detection data packet used in at least one detection method in ICMP Ping, TCP Ping, UDP Ping, and http detection.
  • Step 103 Test multiple BGP lines respectively based on the sent detection data packets, and obtain network quality parameters of each BGP line.
  • the CDN node After the CDN node sends the detection data packet, it will receive the response data packet of the detection data packet from the target autonomous system AS, and the test server will learn the network quality parameters used to evaluate the quality of the BGP line based on the response data.
  • ICMP Ping, TCP Ping, and UDP Ping are used for detection, 180 detection packets can be sent per minute for detection, and the detection results within five minutes are output; when http detection is used, the pull can be determined by pulling the corresponding url The response time required by the corresponding file, etc.
  • the network quality parameters of the BGP line obtained through the test may include: at least one of average delay, average packet loss rate, TCP average delay, UDP average delay, and bandwidth.
  • the CDN nodes and multiple autonomous system ASs are interconnected through the Border Gateway Protocol BGP; by constructing multiple detection data
  • Each detection packet carries the line identifier of one of the multiple BGP lines from the CDN node to the target autonomous system AS; according to the line identifier carried in the detection packet, the detection packet is passed through the corresponding
  • the BGP line is sent from the CDN node to the target autonomous system AS; multiple BGP lines are tested based on the sent detection packets, and the network quality parameters of each BGP line are obtained, so as to realize the detection of each link between the CDN node and the target autonomous system AS.
  • the second implementation manner of the present application relates to a CDN network quality detection method.
  • the second embodiment is an improvement made on the basis of the first embodiment.
  • the improvement is: after obtaining the network quality parameters of each BGP line, according to the network quality parameters of each BGP line, the CDN node to the target autonomous system AS Regulate the BGP lines used by the business traffic between them, and/or perform fault analysis on the detected BGP lines.
  • the above method further includes the following steps.
  • Step 104 According to the network quality parameters of each BGP line, adjust the BGP line used by the service flow between the CDN node and the target autonomous system AS, and/or perform fault analysis on the detected BGP line.
  • the network quality level of each BGP line can be determined from multiple BGP lines leading from the CDN node to the target autonomous system, and then related operations based on the network quality level can be performed, including such as Regulation of business traffic on BGP lines, and analysis of whether faults occur on each BGP line.
  • the automatic dispatching system can use this data to perform optimization processing, and dispatch the coverage traffic in some areas to the suboptimal line, so as to achieve coverage optimization and service quality stability.
  • the BGP line used by the service flow between the CDN node and the target autonomous system AS is regulated, which may specifically include:
  • the BGP lines used for subsequent transmission of different service flows are determined.
  • the test server may add the line identifier corresponding to the determined BGP line to the data packet corresponding to the service flow, and the CDN node sends the data packet.
  • the border router can forward the data packet to the corresponding BGP line according to the configuration policy, so as to transmit the data packet to the target autonomous system AS through the BGP line.
  • the embodiment of the present application utilizes the detected network quality parameters of each BGP line to realize the regulation and control of the service flow on each BGP line, as well as the line fault analysis, and realizes the optimization and maintenance of the CDN node network.
  • the line identifier corresponding to the BGP line in the data packet of the service flow the data packet is transmitted through the preferred BGP line, and the packet receiving experience of the customer in the target autonomous system is improved.
  • the third embodiment of the present application relates to a CDN network quality detection method.
  • the third embodiment is an improvement made on the basis of the first embodiment.
  • the improvement is that: the above-mentioned line is marked as a differential service code point DSCP; correspondingly, the process of constructing multiple detection data packets includes: setting each detection data
  • the coding value of the differentiated service code point DSCP of the packet is any one of multiple preset coding values, and the multiple preset coding values correspond one-to-one to the first autonomous system AS interconnected with the CDN node among the multiple BGP lines.
  • sending the detection data packet from the CDN node to the target autonomous system AS through the BGP line corresponding to the line identification includes: according to the differential service code point carried in the detection data packet DSCP code value, the detection data packet is forwarded to the autonomous system AS corresponding to the code value, and the detection data packet is sent from the CDN node through the BGP circuit with the autonomous system AS as the first autonomous system AS Send to the target autonomous system AS.
  • the above step 101 includes the following sub-steps.
  • Sub-step 1011 set the code value of the differential service code point DSCP of each probe data packet to any one of multiple preset code values, the multiple preset code values and the first BGP line interconnected with the CDN node There is a one-to-one correspondence between autonomous systems AS.
  • test server constructs the detection data packet
  • the service in the IP header of each data packet The category TOS identification byte will be automatically marked with the DSCP 8 identification; in all detection packets that need to be transmitted through the BGP line where AS 2914 is located, the service category TOS identification byte in the IP header of each data packet will be It is automatically marked with DSCP 9; in all detection packets that need to be transmitted through the BGP line where AS 6453 is located, the service category TOS identification byte in the IP header of each data packet will be automatically marked with DSCP 10 .
  • step 102 includes the following sub-steps.
  • Sub-step 1021 According to the code value of the differentiated service code point DSCP carried in the probe data packet, forward the probe data packet to the autonomous system AS corresponding to the code value, and use the autonomous system AS as the first A BGP line of an autonomous system AS sends a detection packet from the CDN node to the target autonomous system AS.
  • the test server constructs the detection data packet
  • the service category TOS identification byte in the IP header of each data packet DSCP 8 is automatically marked in the network, so that after the relevant traffic reaches the border router, it will match the policy and automatically forward the traffic from the line where AS 1299 is located; because all detection data that needs to be transmitted through the BGP line where AS 2914 is located
  • the TOS identification byte of the IP header of each data packet is automatically marked with the DSCP 9 identification, so that after the relevant traffic reaches the border router, it will match the policy and automatically route the traffic from the line where the corresponding AS 2914 is located.
  • the service category TOS identification byte of each data packet IP header is automatically marked with DSCP 10, so that the relevant traffic reaches the border router After that, the policy will be matched and the traffic will be automatically forwarded from the line where the corresponding AS 6453 is located.
  • the first AS of each BGP line After receiving the detection data packet, the first AS of each BGP line sends the detection data packet to the target autonomous system according to the pre-learned routing path on the BGP line.
  • the detection data is sent to the target autonomous system through the specified BGP line by intervention control, so as to realize the test of the corresponding BGP line.
  • the DSCP is used as the line identifier to designate the first AS after the detection data packet leaves the CDN node, so that the BGP line including the first AS can be selected based on the BGP route selection rules to send the detection data packet.
  • the fourth implementation manner of the present application relates to a CDN network quality detection method.
  • the fourth embodiment is an improvement made on the basis of any of the above embodiments.
  • the improvement is that the source address of the probe data packet sent from the CDN node to the target autonomous system AS is a plurality of addresses in the IP address segment corresponding to the CDN node , and corresponds to multiple BGP lines one by one; correspondingly, sending the detection data packet from the CDN node to the target autonomous system AS includes: according to the source address of the detection data packet, passing multiple detection data packets through the The BGP line corresponding to the source address is sent to the target autonomous system.
  • the source addresses of the detection data packets used to detect different BGP lines it is convenient to distinguish the network quality parameters obtained by testing different BGP lines.
  • step 102 may specifically include:
  • Step 1022 According to the source address of the detection data packet, send multiple detection data packets to the target autonomous system respectively through the BGP line corresponding to the source address of each detection data packet; wherein, the detection data sent from the CDN node to the target autonomous system AS
  • the source address of the packet is multiple addresses in the IP address segment corresponding to the CDN node, and corresponds to multiple BGP lines one by one.
  • the test server can respectively configure three test addresses as the source addresses of the probe data packets to test the network quality of the three BGP lines reaching the destination AS (AS Client in the figure).
  • the source address of the probe data packet via AS 1299 can be configured as 1.1.1.1, so that the relevant traffic originating from 1.1.1.1 reaches the AS Client through the BGP line where AS 1299 is located; the source address of the probe data packet via AS 2914
  • the address can be configured as 1.1.1.2, so that the relevant traffic originating from 1.1.1.2 can reach the AS Client through the BGP line where AS 2914 is located;
  • the traffic related to 1.1.1.3 reaches AS Client through the BGP line where AS 6453 is located.
  • test server when the test server receives the corresponding response data packet, it can distinguish which BGP line the response data packet is for.
  • the specific content included in the response data packet can also be used to distinguish which BGP line the response data packet is for.
  • the specific content may be the content agreed upon with the probe data packet.
  • the source addresses of the detection data packets used to detect different BGP lines are set differently, so as to facilitate the distinction of the network quality parameters obtained by testing different BGP lines.
  • the fifth implementation manner of the present application relates to a CDN network quality detection method.
  • the fifth embodiment is an improvement made on the basis of the above embodiments.
  • the improvement is that: the CDN node is a CDN node in a unicast communication scenario; correspondingly, according to the network quality parameters of each BGP line, the CDN node Regulate the BGP lines used by the service traffic to the target autonomous system AS, including: according to the network quality parameters of each BGP line, set one or more IP address segments corresponding to the target autonomous system AS through a BGP line respectively Access:
  • the preset control strategy different business traffic between the CDN node and the target autonomous system AS is correspondingly sent to one of the multiple IP address segments, so as to realize the traffic regulation in the unicast communication scenario.
  • the above step 104 may include the following sub-steps.
  • Sub-step 1041 According to the network quality parameters of each BGP line, set one or more IP address segments corresponding to the target autonomous system AS to access through a BGP line respectively.
  • the CDN Node has multiple BGP lines, which broadcast the 1.1.1.0/24 network segment to the outside world, and learn the AS client network segment 2.2.2.0/24 through the three BGP lines shown in Figure 6.
  • the test server is configured with 3 test addresses as the source addresses of the probe data packets, which are used to test the network quality of the 3 BGP lines reaching the destination AS (AS Client in the figure).
  • the source address of the detection data packet via AS 1299 can be configured as 1.1.1.1, and all the traffic originating from 1.1.1.1 will be automatically marked with DSCP 8 after testing so that the related traffic originating from 1.1.1.1 , reach the AS Client via the BGP line where AS 1299 is located;
  • the source address of the probe data packet via AS 2914 can be configured as 1.1.1.2, and all traffic originating from 1.1.1.2 will be automatically marked with DSCP 9 after testing
  • the relevant traffic originating from 1.1.1.2 can reach the AS Client via the BGP line where AS 2914 is located;
  • the source address of the detection data packet via AS 6453 can be configured as 1.1.1.3, and all traffic originating from 1.1.1.3 can be routed through
  • the test server will be marked with DSCP 10 automatically so that the relevant traffic originating from
  • the test server can obtain the network quality parameters of different BGP lines as follows.
  • the automatic dispatching system can use this data to perform optimization processing, and dispatch the coverage traffic in some areas to the suboptimal line, so as to achieve coverage optimization and service quality stability.
  • Sub-step 1042 According to the preset control strategy, correspondingly send different service flows between the CDN node and the target autonomous system AS to one IP address segment among the plurality of IP address segments.
  • control policy is a policy adopted when judging which BGP line to use when sending the service flow to the target autonomous system AS.
  • the target network segment address of the service traffic can be set to the network address corresponding to BGP line 1. segment, such as 2.2.2.0/24, so that the service traffic is sent to the target autonomous system AS through BGP line 1, so as to realize the regulation and control of the service traffic.
  • the sixth implementation manner of the present application relates to a CDN network quality detection method.
  • the sixth embodiment is an improvement made on the basis of the above embodiments.
  • the improvement is that: the CDN node is a CDN node in an anycast communication scenario; According to the network quality parameters of the BGP lines corresponding to each CDN node in the anycast communication scenario, determine the network quality of each CDN node covering the target autonomous system AS; according to each CDN node Cover the network quality of the target autonomous system AS, and adjust the scope of the target autonomous system AS covered by anycast of each CDN node.
  • each CDN node covers the network quality of the corresponding target self-made system AS
  • the network quality of each CDN node covering AS can be obtained; and then by adjusting the coverage of each node AS range, so as to achieve the optimal coverage of each CDN node on the AS.
  • the above step 104 may include the following sub-steps.
  • Sub-step 1043 According to the network quality parameters of the BGP lines corresponding to each CDN node in the anycast communication scenario, determine the network quality of each CDN node covering the target autonomous system AS.
  • CDN Node 1, CDN Node 2, and CDN Node 3 respectively announce the Anycast network segment 100.100.100.0/24, and specify the detection of each address through the policy restriction of setting the line identifier as the differential service code point DSCP The egress direction of the packet.
  • the test server marks the source address 100.100.100.1 with DSCP 16; after all the traffic with the source address 100.100.100.1 arrives at the egress router, it will match the policy routing and forward it from the Telia line. Similarly, traffic with source address 100.100.100.2 will be forwarded from NTT line; traffic with source address 100.100.100.3 will be forwarded from TATA line;
  • the test server marks the source address 100.100.100.1 with DSCP 16; after all the traffic with the source address 100.100.100.1 arrives at the egress router, it will match the policy routing and forward it from the Telia line. Similarly, traffic with a source address of 100.100.100.2 will be forwarded through the Level3 line; traffic with a source address of 100.100.100.3 will be forwarded through the TATA line;
  • CDN Node3 add DSCP 16 to the address with source address 100.100.100.1; after all the traffic with source address 100.100.100.1 arrives at the egress router, it will match the policy routing and forward it from the Telia line. Similarly, traffic with a source address of 100.100.100.2 will be forwarded out of the NTT line; traffic with a source address of 100.100.100.3 will be forwarded out of a Level3 line.
  • the test server can obtain the network quality parameters of different BGP lines as shown in Table 4.
  • the anycast coverage of each node and each line for each area/AS can be collected, so as to provide decision-making for the background and formulate an optimal coverage plan.
  • Sub-step 1044 According to the network quality of the target autonomous system AS covered by each CDN node, adjust the range of the target autonomous system AS covered by each CDN node anycast.
  • the subsequent traffic on this line will be automatically switched to the suboptimal CDN node, so as to achieve the optimization of network coverage and the stability of service quality.
  • the implementation mode of this application confirms that each CDN node covers the network quality of the corresponding target self-made system AS, thereby obtaining the pros and cons of the network quality of each CDN node covering the AS; and then by adjusting the coverage of each CDN node AS, In this way, the optimal coverage of each CDN node on the AS is realized.
  • the seventh embodiment of the present application relates to a CDN network quality detection system.
  • the CDN network includes: a CDN node, a plurality of autonomous systems AS provided by a plurality of network operators, and a connection between the CDN node and the plurality of autonomous systems AS.
  • the system is interconnected through the Border Gateway Protocol BGP; the system also includes: a server located inside the CDN node, and the server is used to schedule the CDN network to execute the CDN network quality detection method described in any method embodiment above.
  • the server located inside the CDN section may be the test server in the above embodiment.
  • the eighth embodiment of the present application relates to a server, as shown in FIG. 11 , including at least one processor 202; and a memory 201 communicatively connected to at least one processor 202; Instructions executed by 202, the instructions are executed by at least one processor 202, so that at least one processor 202 can execute any one of the foregoing method embodiments.
  • the memory 201 and the processor 202 are connected by a bus, and the bus may include any number of interconnected buses and bridges, and the bus connects one or more processors 202 and various circuits of the memory 201 together.
  • the bus may also connect together various other circuits such as peripherals, voltage regulators, and power management circuits, all of which are well known in the art and therefore will not be further described herein.
  • the bus interface provides an interface between the bus and the transceivers.
  • a transceiver may be a single element or multiple elements, such as multiple receivers and transmitters, providing means for communicating with various other devices over a transmission medium.
  • the data processed by the processor 202 is transmitted on the wireless medium through the antenna, and further, the antenna also receives the data and transmits the data to the processor 202 .
  • Processor 202 is responsible for managing the bus and general processing, and may also provide various functions including timing, peripheral interfacing, voltage regulation, power management, and other control functions. And the memory 201 may be used to store data used by the processor 202 when performing operations.
  • the ninth embodiment of the present application relates to a computer-readable storage medium storing a computer program.
  • the computer program is executed by the processor, any one of the above method embodiments is realized.
  • a storage medium includes several instructions to make a device ( It may be a single-chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .

Abstract

A CDN quality inspection method and system, a server, and a storage medium. The method comprises: constructing multiple detection data packets, each detection data packet carrying a line identifier of one of multiple BGP lines from a CDN node to a target autonomous system (AS) (101); according to the line identifier carried in the detection data packet, sending the detection data packet from the CDN node to the target AS by means of the BGP line corresponding to the line identifier (102); and on the basis of the sent detection data packet, separately testing the multiple BGP lines to obtain a network quality parameter of each BGP line (103).

Description

CDN网络质量检测方法、系统、服务器及存储介质CDN network quality detection method, system, server and storage medium
交叉引用cross reference
本申请基于申请号为“202110956987.4”、申请日为2021年08月19日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以引入方式并入本申请。This application is based on the Chinese patent application with the application number "202110956987.4" and the filing date is August 19, 2021, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby incorporated by reference. Apply.
技术领域technical field
本申请实施例涉及互联网技术领域,特别涉及一种CDN网络质量检测方法、系统、服务器及存储介质。The embodiments of the present application relate to the technical field of the Internet, and in particular to a CDN network quality detection method, system, server and storage medium.
背景技术Background technique
内容分发网络(Content Delivery Network,简称CDN)是构建在现有网络基础之上的智能虚拟网络,依靠部署在各地的边缘服务器,通过中心平台的负载均衡、内容分发、调度等功能模块,使用户就近获取所需内容,降低网络拥塞,提高用户访问响应速度和命中率。Content Delivery Network (CDN for short) is an intelligent virtual network built on the basis of the existing network, relying on the edge servers deployed in various places, through the load balancing, content distribution, scheduling and other functional modules of the central platform, so that users Obtain the desired content nearby, reduce network congestion, and improve user access response speed and hit rate.
CDN网络的诞生大大地改善了互联网的服务质量,因此传统的大型网络服务商纷纷开始建设自己的CDN网络,CDN领域的竞争愈发激烈,客户对服务质量的要求也愈发严苛。短短的几毫秒延迟甚至可能决定客户对服务商的选择。因此,高质量的服务网络显得愈发重要。业务的部署没有有效的参照物,导致业务覆盖不能最优。基于当前的CDN架构,下一代CDN(NGCDN)呼之欲出,除了业务层面,网络层面,服务商们希望有更加有效的质量监控,网络优化和性能提升。因此,如何提高客户服务质量的问题,成为服务商们亟需解决的问题。The birth of the CDN network has greatly improved the service quality of the Internet. Therefore, traditional large-scale network service providers have begun to build their own CDN networks. The competition in the CDN field has become increasingly fierce, and customers have increasingly stringent requirements for service quality. A delay of just a few milliseconds may even determine the customer's choice of service provider. Therefore, a high-quality service network is becoming more and more important. There is no effective reference for service deployment, resulting in suboptimal service coverage. Based on the current CDN architecture, the next-generation CDN (NGCDN) is imminent. In addition to the business level and the network level, service providers hope to have more effective quality monitoring, network optimization and performance improvement. Therefore, how to improve the quality of customer service has become an urgent problem for service providers to solve.
发明内容Contents of the invention
本申请实施方式的目的在于提供一种CDN网络质量检测方法、系统、服务器及存储介质,能够有效检测CDN网络质量,从而提高CDN网络的客户服务质量。The purpose of the embodiments of the present application is to provide a CDN network quality detection method, system, server and storage medium, which can effectively detect the CDN network quality, thereby improving the customer service quality of the CDN network.
本申请的实施方式提供了一种CDN网络质量检测方法,所述CDN网络包括:CDN节点、由多个网络运营商提供的多个自治系统AS,所述CND节点、所述多个自治系统AS之间通过边界网关协议BGP互联;所述方法包括:构建多个探测数据包,每个所述探测数据包中携带从CDN节点到目标自治系统AS的多条BGP线路中一条BGP线路的线路标识;根据所述探测数据包中携带的线路标识,将所述探测数据包通过该线路标识对应的BGP线路从所述CDN节点发送至所述目标自治系统AS;基于发出的所述探测数据包对所述多条BGP线路分别进行测试,得到各BGP线路的网络质量参数。The embodiment of the present application provides a method for detecting the quality of a CDN network. The CDN network includes: a CDN node, a plurality of autonomous systems AS provided by a plurality of network operators, the CDN node, and the plurality of autonomous systems AS Interconnected through Border Gateway Protocol BGP; the method includes: constructing a plurality of detection data packets, each of which carries the line identification of a BGP line in the multiple BGP lines from the CDN node to the target autonomous system AS ; According to the line identification carried in the detection data packet, the detection data packet is sent from the CDN node to the target autonomous system AS through the BGP line corresponding to the line identification; The multiple BGP lines are tested respectively to obtain network quality parameters of each BGP line.
本申请的实施方式还提供了一种CDN网络质量检测系统,所述CDN网络包括:CDN节点、由多个网络运营商提供的多个自治系统AS,所述CND节点、所述多个自治系统AS之间通过边界网关协议BGP互联;所述系统还包括:位于所述CDN节内部的服务器,所述服务器用于调度所述CDN网络执行如上所述的CDN网络质量检测方法。The embodiment of the present application also provides a CDN network quality detection system, the CDN network includes: a CDN node, a plurality of autonomous systems AS provided by a plurality of network operators, the CDN node, the plurality of autonomous systems AS The ASs are interconnected through the Border Gateway Protocol BGP; the system further includes: a server located inside the CDN node, the server is used to schedule the CDN network to execute the CDN network quality detection method as described above.
本申请的实施方式还提供了一种服务器,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如上所述的CDN网络质量检测方法。The embodiment of the present application also provides a server, including: at least one processor; and a memory connected in communication with the at least one processor; wherein, the memory stores the information executable by the at least one processor Instructions, the instructions are executed by the at least one processor, so that the at least one processor can execute the CDN network quality detection method as described above.
本申请的实施方式还提供了一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的CDN网络质量检测方法。Embodiments of the present application also provide a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the method for detecting the quality of a CDN network as described above is implemented.
本申请实施方式,对于包含CDN节点、以及由多个网络运营商提供的多个自治系统AS的CDN网络,CND节点、多个自治系统AS之间通过边界网关协议BGP互联;通过构建多个探测数据包,每个探测数据包中携带从CDN节点到目标自治系统AS的多条BGP线路中一条BGP线路的线路标识;根据探测数据包中携带的线路标识,将探测数据包通过该线路标识对应的BGP线路从CDN节点发送至目标自治系统AS;基于发出的探测数据包对多条BGP线路分别进行测试,得到各BGP线路的网络质量参数,以实现对CDN节点到目标自治系统AS之间的各条BGP线路的质量进行评估,从而为基于各BGP线路的网络质量进行的相关操作提供支持。例如,通过定期采用本方案的CDN网络质量检测方法可获取服务各个区域的最优BGP线路,从而为后台的业务部署提供有效的支撑和参考。In the implementation mode of this application, for a CDN network including CDN nodes and multiple autonomous systems AS provided by multiple network operators, the CDN nodes and multiple autonomous system ASs are interconnected through the Border Gateway Protocol BGP; by constructing multiple detection Each detection packet carries the line identifier of one of the multiple BGP lines from the CDN node to the target autonomous system AS; according to the line identifier carried in the detection packet, the detection packet is mapped to the The BGP lines are sent from the CDN node to the target autonomous system AS; multiple BGP lines are tested based on the sent detection packets, and the network quality parameters of each BGP line are obtained, so as to realize the communication between the CDN node and the target autonomous system AS. Evaluate the quality of each BGP line, so as to provide support for related operations based on the network quality of each BGP line. For example, by regularly adopting the CDN network quality detection method of this solution, the optimal BGP line serving each area can be obtained, thereby providing effective support and reference for background business deployment.
另外,根据所述各BGP线路的网络质量参数,对所述CDN节点到所述目标自治系统AS之间的业务流量所使用的BGP线路进行调控,和/或,对探测的所述BGP线路进行故障分析。这样可以灵活对业务流量所使用的BGP线路进行调控,和/或,对BGP线路进行故障分析。In addition, according to the network quality parameters of the respective BGP lines, the BGP lines used by the service flow between the CDN node and the target autonomous system AS are regulated, and/or the detected BGP lines are failure analysis. In this way, the BGP line used by the service traffic can be flexibly regulated, and/or, fault analysis can be performed on the BGP line.
另外,所述根据所述各BGP线路的网络质量参数,对所述CDN节点到所述目标自治系统AS之间的业务流量所使用的BGP线路进行调控,包括:确定所述CDN节点到所述目标自治系统AS的业务流量所使用的BGP线路;向所述业务流量的数据包中添加所确定的BGP线路所对应的线路标识后,从CDN节点发出该数据包。通过在业务流量的数据包中添加BGP线路对应的线路标识,从而将该数据包通过优选的BGP线路进行传输,提高目标自治系统中客户的收包体验。In addition, according to the network quality parameters of the respective BGP lines, regulating the BGP lines used by the service flow between the CDN node and the target autonomous system AS includes: determining the CDN node to the The BGP line used by the service flow of the target autonomous system AS; after adding the line identifier corresponding to the determined BGP line to the data packet of the service flow, the data packet is sent from the CDN node. By adding the line identifier corresponding to the BGP line in the data packet of the service flow, the data packet is transmitted through the preferred BGP line, and the packet receiving experience of the customer in the target autonomous system is improved.
另外,所述线路标识为差分服务代码点DSCP;所述构建所述探测数据包,包括:设置每个所述探测数据包的差分服务代码点DSCP的编码值为多个预设编码值中的任一个,所述多 个预设编码值与所述多条BGP线路中,与所述CDN节点互联的首个自治系统AS一一对应;所述根据所述探测数据包中携带的线路标识,将所述探测数据包通过该线路标识对应的BGP线路从所述CDN节点发送至所述目标自治系统AS,包括:根据所述探测数据包中携带的差分服务代码点DSCP的编码值,将所述探测数据包转发至该编码值所对应的自治系统AS,并通过所述多条BGP线路中以该自治系统AS作为首个自治系统AS的BGP线路,将所述探测数据包从所述CDN节点发送至所述目标自治系统AS。通过DSCP作为线路标识,指定探测数据包出CDN节点后的首个AS,从而可基于BGP选路规则,选取出包含该首个AS的BGP线路进行探测数据包的发送。In addition, the line identifier is a differential service code point DSCP; the construction of the detection data packet includes: setting the coding value of the differential service code point DSCP of each detection data packet to one of a plurality of preset coding values Either one, the plurality of preset coded values correspond one-to-one to the first autonomous system AS interconnected with the CDN node among the plurality of BGP lines; according to the line identifier carried in the detection data packet, Sending the detection data packet from the CDN node to the target autonomous system AS through the BGP line corresponding to the line identifier includes: according to the code value of the differentiated service code point DSCP carried in the detection data packet, the The detection data packet is forwarded to the autonomous system AS corresponding to the code value, and the detection data packet is sent from the CDN The node sends to the target autonomous system AS. Use DSCP as the line identifier to specify the first AS after the detection data packet leaves the CDN node, so that based on the BGP route selection rules, the BGP line including the first AS can be selected to send the detection data packet.
另外,从所述CDN节点向所述目标自治系统AS发送的探测数据包的源地址为所述CDN节点对应IP地址段中的多个地址,且与所述多条BGP线路一一对应;相应的,将所述探测数据包从所述CDN节点发送至所述目标自治系统AS,包括:根据所述探测数据包的源地址,将多个所述探测数据包分别通过各探测数据包的源地址对应的BGP线路发送至所述目标自治系统。通过区别设置用于探测不同BGP线路的探测数据包的源地址,从而方便对不同BGP线路进行测试得到的网络质量参数进行区分。In addition, the source address of the detection packet sent from the CDN node to the target autonomous system AS is a plurality of addresses in the IP address segment corresponding to the CDN node, and corresponds to the plurality of BGP lines one by one; correspondingly The sending the detection data packet from the CDN node to the target autonomous system AS includes: according to the source address of the detection data packet, passing a plurality of the detection data packets respectively through the source of each detection data packet The BGP line corresponding to the address is sent to the target autonomous system. By differently setting the source addresses of the detection data packets used to detect different BGP lines, it is convenient to distinguish the network quality parameters obtained by testing different BGP lines.
另外,所述CDN节点为单播通信场景中的CDN节点;所述根据所述各BGP线路的网络质量参数,对所述CDN节点到所述目标自治系统AS之间的业务流量所使用的BGP线路进行调控,包括:根据各BGP线路的网络质量参数,设置所述目标自治系统AS所对应的一个或多个IP地址段分别通过一所述BGP线路进行访问;根据预设的调控策略,将所述CDN节点到所述目标自治系统AS之间的不同业务流量对应发送至所述多个IP地址段中的一个IP地址段。通过指定目标自制系统AS的不同IP地址段采用不同的BGP线路进行访问,可以实现基于单播通信中网络质量现状进行访问控制。In addition, the CDN node is a CDN node in a unicast communication scenario; according to the network quality parameters of each BGP line, the BGP used for the service flow between the CDN node and the target autonomous system AS Regulating the line includes: according to the network quality parameters of each BGP line, setting one or more IP address segments corresponding to the target autonomous system AS to access through one of the BGP lines respectively; Different service flows between the CDN node and the target autonomous system AS are correspondingly sent to one IP address segment in the plurality of IP address segments. By specifying different IP address segments of the target self-made system AS to use different BGP lines for access, access control based on the current state of network quality in unicast communication can be implemented.
另外,所述CDN节点为任播通信场景中的CDN节点;所述根据所述各BGP线路的网络质量参数,对所述CDN节点到所述目标自治系统AS之间的业务流量所使用的BGP线路进行调控,包括:根据任播通信场景中各所述CDN节点对应的所述BGP线路的网络质量参数,确定各所述CDN节点覆盖所述目标自治系统AS的网络质量;根据各所述CDN节点覆盖所述目标自治系统AS的网络质量,调整各所述CDN节点任播所覆盖的目标自治系统AS的范围。在单播的基础上,通过确认每个CDN节点覆盖对应目标自制系统AS的网络质量,从而得出各CDN节点覆盖AS的网质量的优劣情况;进而可通过调整每个节点的覆盖AS的范围,从而实现各CDN节点对AS的最优覆盖。In addition, the CDN node is a CDN node in anycast communication scenario; according to the network quality parameters of each BGP line, the BGP used for the service flow between the CDN node and the target autonomous system AS Line regulation includes: according to the network quality parameters of the BGP lines corresponding to each of the CDN nodes in anycast communication scenarios, determining the network quality of each of the CDN nodes covering the target autonomous system AS; according to each of the CDN nodes The node covers the network quality of the target autonomous system AS, and adjusts the range of the target autonomous system AS covered by anycast of each CDN node. On the basis of unicast, by confirming that each CDN node covers the network quality of the corresponding target self-made system AS, the network quality of each CDN node covering AS can be obtained; and then by adjusting the coverage of each node AS range, so as to achieve the optimal coverage of each CDN node on the AS.
附图说明Description of drawings
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。One or more embodiments are exemplified by the pictures in the corresponding drawings, and these exemplifications do not constitute a limitation to the embodiments. Elements with the same reference numerals in the drawings represent similar elements. Unless otherwise stated, the drawings in the drawings are not limited to scale.
图1是根据本申请第一实施方式的CDN网络拓扑的结构图;FIG. 1 is a structural diagram of a CDN network topology according to a first embodiment of the present application;
图2是根据本申请第一实施方式的CDN网络拓扑的结构图;FIG. 2 is a structural diagram of a CDN network topology according to the first embodiment of the present application;
图3是根据本申请第一实施方式的CDN网络质量检测方法的具体流程图;FIG. 3 is a specific flow chart of a CDN network quality detection method according to the first embodiment of the present application;
图4是根据本申请第二实施方式的CDN网络质量检测方法的具体流程图;FIG. 4 is a specific flow chart of a CDN network quality detection method according to the second embodiment of the present application;
图5是根据本申请第三实施方式的CDN网络质量检测方法的具体流程图;FIG. 5 is a specific flowchart of a CDN network quality detection method according to a third embodiment of the present application;
图6是根据本申请第三实施方式的CDN网络拓扑的结构图;FIG. 6 is a structural diagram of a CDN network topology according to a third embodiment of the present application;
图7是根据本申请第四实施方式的CDN网络质量检测方法的具体流程图;FIG. 7 is a specific flowchart of a CDN network quality detection method according to a fourth embodiment of the present application;
图8是根据本申请第五实施方式的CDN网络质量检测方法的具体流程图;FIG. 8 is a specific flowchart of a CDN network quality detection method according to a fifth embodiment of the present application;
图9是根据本申请第六实施方式的CDN网络质量检测方法的具体流程图;FIG. 9 is a specific flow chart of a CDN network quality detection method according to the sixth embodiment of the present application;
图10是根据本申请第六实施方式的CDN网络拓扑的结构图;FIG. 10 is a structural diagram of a CDN network topology according to a sixth embodiment of the present application;
图11是根据本申请第八实施方式的服务器的结构示意图。Fig. 11 is a schematic structural diagram of a server according to an eighth embodiment of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图对本申请的各实施方式进行详细的阐述。然而,本领域的普通技术人员可以理解,在本申请各实施方式中,为了使读者更好地理解本申请而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施方式的种种变化和修改,也可以实现本申请所要求保护的技术方案。In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, various implementations of the present application will be described in detail below in conjunction with the accompanying drawings. However, those of ordinary skill in the art can understand that, in each implementation manner of the present application, many technical details are provided for readers to better understand the present application. However, even without these technical details and various changes and modifications based on the following implementation modes, the technical solution claimed in this application can also be realized.
本申请的第一实施方式涉及一种CDN网络质量检测方法,如图1所示,该CDN网络包括:CDN节点(CDN Node)、由多个网络运营商提供的多个自治系统(Autonomous System,简称AS),如图1中示例性给出的AS 1299,AS 2914、AS 6453和AS Client;CND节点、多个自治系统AS之间通过边界网关协议(Border Gateway Protocol,BGP)互联。CDN Node有多个BGP线路,分别对外广播1.1.1.0/24网段,并通过图1中显示的3条BGP线路学习AS client网段2.2.2.0/24。为展示方便,图1中仅示出了3条BGP线路中与CDN Node出口直接相连的第一个AS,(如AS 1299,AS 2914、AS 6453),各线路剩余路径的AS(除被访问的AS client)均示意性涵盖在Internet网络中。需要说明的是,每条通往AS client的BGP线路中,根据实际网络分布情况可能仅包含一个网络运营商提供的AS,或者同时包含多个网络运营商提供的AS,而图1中,仅示例性示出了与CND节点出口直接连接的网络运行商提 供的三个AS。The first embodiment of the present application relates to a method for detecting the quality of a CDN network. As shown in FIG. 1, the CDN network includes: a CDN node (CDN Node), a plurality of autonomous systems (Autonomous System, AS for short), such as AS 1299, AS 2914, AS 6453 and AS Client shown in Figure 1; CND nodes and multiple ASs are interconnected through Border Gateway Protocol (BGP). The CDN Node has multiple BGP lines, which broadcast the 1.1.1.0/24 network segment to the outside world, and learn the AS client network segment 2.2.2.0/24 through the three BGP lines shown in Figure 1. For the convenience of illustration, only the first AS directly connected to the CDN Node egress among the three BGP lines is shown in Fig. AS client) are schematically covered in the Internet network. It should be noted that, according to the actual network distribution, each BGP line leading to the AS client may only contain the AS provided by one network operator, or contain ASs provided by multiple network operators at the same time. In Figure 1, only It exemplarily shows three ASs provided by network operators that are directly connected to the egress of the CND node.
默认情况下,CDN Node会根据BGP的选路规则自动选择一个BGP线路作为最优线路到达AS Client,如图2所示,如当选择AS1299所在的BGP线路时,所有访问2.2.2.0/24(AS client)的流量都会优先从AS1299所在的BGP线路经过,而AS2914和AS6453所在的BGP线路则作为备用方案,在AS1299所在的BGP线路出现故障以后,备用方案中的一个BGP线路会通过BGP的选路规则选出为最优线路并作为到达AS Client的线路。而在该过程中,其他BGP线路的网络质量情况并不知晓,从而造成无法基于各BGP线路的网络质量情况进行合理的相关操作,比如各BGP线路上的业务流量控制、故障分析等。By default, the CDN Node will automatically select a BGP line as the optimal line to reach the AS Client according to the BGP routing rules, as shown in Figure 2. For example, when the BGP line where AS1299 is located, all access 2.2.2.0/24( The traffic of AS client) will pass through the BGP line where AS1299 is located first, and the BGP lines where AS2914 and AS6453 are located are used as a backup solution. The route rule is selected as the optimal route and used as the route to reach the AS Client. In this process, the network quality of other BGP lines is not known, which makes it impossible to perform reasonable related operations based on the network quality of each BGP line, such as traffic control and fault analysis on each BGP line.
本申请实施例所提供的CDN网络质量检测方法,指定通过特定的BGP线路向目的AS(如图1中的AS Client)发送探测数据包,以实现对各条通往目的AS的BGP线路上的网络质量参数进行探测,从而寻求最优的BGP线路的使用策略,优化和指导线路调控。The CDN network quality detection method provided by the embodiment of the present application specifies to send a detection packet to the destination AS (such as the AS Client in Figure 1) through a specific BGP line, so as to realize the detection of each BGP line leading to the destination AS. Network quality parameters are detected to find the optimal BGP line usage strategy, optimize and guide line regulation.
如图3所示,本申请实施例提供的CDN网络质量检测方法,可通过与CDN节点连接的测试服务器来调度CDN节点执行完成,包括如下步骤:As shown in Figure 3, the CDN network quality detection method provided by the embodiment of the present application can schedule the CDN node to execute through the test server connected to the CDN node, including the following steps:
步骤101:构建多个探测数据包,每个探测数据包中携带从CDN节点到目标自治系统AS的多条BGP线路中一条BGP线路的线路标识。Step 101: Construct multiple detection data packets, and each detection data packet carries the line identifier of one of the multiple BGP lines from the CDN node to the target autonomous system AS.
具体地,测试服务器在构建探测数据包时,除了向数据包中添加用于探测BGP线路网络质量参数的基本数据内容外,还在探测数据包中携带用于指示BGP线路的线路标识,所指示的BGP线路为CDN节点通向目标自治系统AS的多条BGP线路中的任一条。该线路标识可以多种数据包可支持的数据格式存在,同时也可以借用现有数据包中的指定标识位。Specifically, when the test server constructs the detection data packet, in addition to adding the basic data content used to detect the network quality parameters of the BGP line to the data packet, the detection data packet also carries the line identifier used to indicate the BGP line, indicated The BGP line of is any one of multiple BGP lines leading from the CDN node to the target autonomous system AS. The line identifier can exist in data formats supported by multiple data packets, and can also borrow specified identifier bits in existing data packets.
步骤102:根据探测数据包中携带的线路标识,将探测数据包通过该线路标识对应的BGP线路从CDN节点发送至目标自治系统AS。Step 102: According to the line identification carried in the detection data packet, the detection data packet is sent from the CDN node to the target autonomous system AS through the BGP line corresponding to the line identification.
默认情况下,CDN Node会预先学习本地通往目标自治系统,如上述访问AS Client的多条BGP线路,但在分配用于访问AS Client的流量时,会根据BGP的选路规则选择出一条BGP线路来传输访问流量。本实施例中可利用测试服务器干预CDN Node发数据包的动作,使CDN Node的路由器在发送探测数据包时,不采用BGP的选路规则,而是通过预先指定的BGP线路来传输探测数据包,以实现从CDN节点经不同的BGP线路向目标自治系统发送探测数据包的处理过程。By default, the CDN Node will pre-learn the multiple BGP lines leading to the target autonomous system locally, such as the above-mentioned access to the AS Client, but when allocating traffic for accessing the AS Client, it will select a BGP route according to the BGP routing rules lines to transmit access traffic. In this embodiment, the test server can be used to intervene in the action of CDN Node sending data packets, so that the router of CDN Node does not use BGP routing rules when sending detection data packets, but transmits detection data packets through pre-designated BGP lines , so as to realize the process of sending the detection data packet from the CDN node to the target autonomous system through different BGP lines.
其中,关于干预CDN Node发数据包的动作方式本实施例不做限定,例如可以控制通过不同的CDN Node的地址或端口发出探测数据包,并指定这些地址或端口与BGP线路的对应关系,从而使路由器通过探测数据包的发出的地址或端口,选择相应的BGP线路进行发送; 又例如可以在探测数据包中添加用于标识BGP线路的线路标识,路由器通过识别探测数据包中的线路标识,从而选择线路标识对应的BGP线路发送探测数据包。Among them, this embodiment does not limit the action mode of intervening in CDN Node sending data packets, for example, it is possible to control the sending of detection packets through different CDN Node addresses or ports, and specify the corresponding relationship between these addresses or ports and BGP lines, so that Make the router select the corresponding BGP line to send by detecting the sending address or port of the data packet; for another example, a line identification for identifying the BGP line can be added in the detection data packet, and the router can identify the line identification in the detection data packet. Therefore, the BGP line corresponding to the line identifier is selected to send the detection data packet.
其中,探测数据包可为采用ICMP Ping、TCP Ping、UDP Ping、http探测中至少一种探测方法中使用的探测数据包。Wherein, the detection data packet can be the detection data packet used in at least one detection method in ICMP Ping, TCP Ping, UDP Ping, and http detection.
步骤103:基于发出的探测数据包对多条BGP线路分别进行测试,得到各BGP线路的网络质量参数。Step 103: Test multiple BGP lines respectively based on the sent detection data packets, and obtain network quality parameters of each BGP line.
具体地,CDN节点在发出探测数据包后,会从目标自治系统AS接收到探测数据包的响应数据包,测试服务器基于该响应数据获悉用于评价BGP线路质量的网络质量参数。Specifically, after the CDN node sends the detection data packet, it will receive the response data packet of the detection data packet from the target autonomous system AS, and the test server will learn the network quality parameters used to evaluate the quality of the BGP line based on the response data.
例如,采用ICMP Ping、TCP Ping、UDP Ping进行探测时,每分钟可发送180个探测数据包进行探测,输出五分钟内的探测结果;采用http探测时,通过拉取对应url,可以判定拉取相应文件需要的响应时间等。For example, when ICMP Ping, TCP Ping, and UDP Ping are used for detection, 180 detection packets can be sent per minute for detection, and the detection results within five minutes are output; when http detection is used, the pull can be determined by pulling the corresponding url The response time required by the corresponding file, etc.
其中,测试得到的BGP线路的网络质量参数可包括:平均延迟、平均丢包率、TCP平均延迟、UDP平均延迟、带宽中的至少一种。Wherein, the network quality parameters of the BGP line obtained through the test may include: at least one of average delay, average packet loss rate, TCP average delay, UDP average delay, and bandwidth.
本申请实施方式对于包含CDN节点、以及由多个网络运营商提供的多个自治系统AS的CDN网络,CND节点、多个自治系统AS之间通过边界网关协议BGP互联;通过构建多个探测数据包,每个探测数据包中携带从CDN节点到目标自治系统AS的多条BGP线路中一条BGP线路的线路标识;根据探测数据包中携带的线路标识,将探测数据包通过该线路标识对应的BGP线路从CDN节点发送至目标自治系统AS;基于发出的探测数据包对多条BGP线路分别进行测试,得到各BGP线路的网络质量参数,以实现对CDN节点到目标自治系统AS之间的各条BGP线路的质量进行评估,从而为基于各BGP线路的网络质量进行的相关操作提供支持。例如,通过定期采用本方案的CDN网络质量检测方法可获取服务各个区域的最优BGP线路,从而为后台的业务部署提供有效的支撑和参考。In the implementation mode of this application, for a CDN network including CDN nodes and multiple autonomous systems AS provided by multiple network operators, the CDN nodes and multiple autonomous system ASs are interconnected through the Border Gateway Protocol BGP; by constructing multiple detection data Each detection packet carries the line identifier of one of the multiple BGP lines from the CDN node to the target autonomous system AS; according to the line identifier carried in the detection packet, the detection packet is passed through the corresponding The BGP line is sent from the CDN node to the target autonomous system AS; multiple BGP lines are tested based on the sent detection packets, and the network quality parameters of each BGP line are obtained, so as to realize the detection of each link between the CDN node and the target autonomous system AS. Evaluate the quality of each BGP line to provide support for related operations based on the network quality of each BGP line. For example, by regularly adopting the CDN network quality detection method of this solution, the optimal BGP line serving each area can be obtained, thereby providing effective support and reference for background business deployment.
本申请的第二实施方式涉及一种CDN网络质量检测方法。第二实施方式是在第一实施方式基础上做的改进,其改进之处在于:在得到各BGP线路的网络质量参数后,根据各BGP线路的网络质量参数,对CDN节点到目标自治系统AS之间的业务流量所使用的BGP线路进行调控,和/或,对探测的BGP线路进行故障分析。The second implementation manner of the present application relates to a CDN network quality detection method. The second embodiment is an improvement made on the basis of the first embodiment. The improvement is: after obtaining the network quality parameters of each BGP line, according to the network quality parameters of each BGP line, the CDN node to the target autonomous system AS Regulate the BGP lines used by the business traffic between them, and/or perform fault analysis on the detected BGP lines.
如图4所示,上述方法还包括如下步骤。As shown in Fig. 4, the above method further includes the following steps.
步骤104:根据各BGP线路的网络质量参数,对CDN节点到目标自治系统AS之间的业务流量所使用的BGP线路进行调控,和/或,对探测的BGP线路进行故障分析。Step 104: According to the network quality parameters of each BGP line, adjust the BGP line used by the service flow between the CDN node and the target autonomous system AS, and/or perform fault analysis on the detected BGP line.
具体地,根据各BGP线路的网络质量参数,可以从多条由CDN节点通往目标自治系统 的BGP线路中确定各BGP线路的网络质量等级,然后进行基于网络质量等级的相关操作,包括如各BGP线路上业务流量的调控,以及对各BGP线路上是否发生故障进行分析。Specifically, according to the network quality parameters of each BGP line, the network quality level of each BGP line can be determined from multiple BGP lines leading from the CDN node to the target autonomous system, and then related operations based on the network quality level can be performed, including such as Regulation of business traffic on BGP lines, and analysis of whether faults occur on each BGP line.
具体地,通过以上对多BGP线路的网络质量测试,可以准确计算出每条线路到达目的AS的时延,丢包和带宽等网络质量参数的情况,从而计算出CDN节点覆盖相应区域的各条线路的质量等级,并基于质量等级完成相关操作。例如,当某个BGP线路现有带宽超出规定阈值时,自动调度系统可以通过该数据进行优化处理,调度部分区域的覆盖流量到次优线路,从而实现覆盖最优化和服务质量的稳定性。Specifically, through the above network quality test on multiple BGP lines, it is possible to accurately calculate the network quality parameters such as the time delay for each line to reach the destination AS, packet loss, and bandwidth, so as to calculate the network quality parameters of the CDN nodes covering the corresponding area. The quality level of the line, and complete related operations based on the quality level. For example, when the existing bandwidth of a certain BGP line exceeds the specified threshold, the automatic dispatching system can use this data to perform optimization processing, and dispatch the coverage traffic in some areas to the suboptimal line, so as to achieve coverage optimization and service quality stability.
在一个例子中,根据各BGP线路的网络质量参数,对CDN节点到目标自治系统AS之间的业务流量所使用的BGP线路进行调控,具体可包括:In an example, according to the network quality parameters of each BGP line, the BGP line used by the service flow between the CDN node and the target autonomous system AS is regulated, which may specifically include:
确定CDN节点到目标自治系统AS的业务流量所使用的BGP线路;向业务流量的数据包中添加所确定的BGP线路所对应的线路标识后,从CDN节点发出该数据包。Determining the BGP line used by the business flow from the CDN node to the target autonomous system AS; adding the line identifier corresponding to the determined BGP line to the data packet of the business flow, and sending the data packet from the CDN node.
例如,通过对CDN节点到目标自治系统AS的多条BGP线路的网络质量参数进行比对,确定出后续传输不同业务流量所使用的BGP线路。在后续进行业务流量传输时,测试服务器可将该业务流量对应的数据包中添加所确定的BGP线路所对应的线路标识,并由CDN节点发出该数据包。边界路由器可根据配置策略,将该数据包转发至相应的BGP线路上,从而通过该BGP线路传输至目标自治系统AS。具体发送过程可参考前述发送探测数据包的处理过程,在此不做赘述。For example, by comparing the network quality parameters of multiple BGP lines from the CDN node to the target autonomous system AS, the BGP lines used for subsequent transmission of different service flows are determined. During subsequent service flow transmission, the test server may add the line identifier corresponding to the determined BGP line to the data packet corresponding to the service flow, and the CDN node sends the data packet. The border router can forward the data packet to the corresponding BGP line according to the configuration policy, so as to transmit the data packet to the target autonomous system AS through the BGP line. For the specific sending process, reference may be made to the aforementioned processing process of sending the detection data packet, which will not be repeated here.
本申请实施方式利用检测的各BGP线路的网络质量参数,实现对各BGP线路上业务流量的调控,以及线路故障分析,实现了对CDN节点网络的优化和维护。特别是通过在业务流量的数据包中添加BGP线路对应的线路标识,从而将该数据包通过优选的BGP线路进行传输,提高目标自治系统中客户的收包体验。The embodiment of the present application utilizes the detected network quality parameters of each BGP line to realize the regulation and control of the service flow on each BGP line, as well as the line fault analysis, and realizes the optimization and maintenance of the CDN node network. In particular, by adding the line identifier corresponding to the BGP line in the data packet of the service flow, the data packet is transmitted through the preferred BGP line, and the packet receiving experience of the customer in the target autonomous system is improved.
本申请的第三实施方式涉及一种CDN网络质量检测方法。第三实施方式是在第一实施方式基础上做的改进,其改进之处在于:上述线路标识为差分服务代码点DSCP;相应地,构建多个探测数据包的过程包括:设置每个探测数据包的差分服务代码点DSCP的编码值为多个预设编码值中的任一个,多个预设编码值与多条BGP线路中,与CDN节点互联的首个自治系统AS一一对应。相应地,根据探测数据包中携带的线路标识,将探测数据包通过该线路标识对应的BGP线路从CDN节点发送至所述目标自治系统AS,包括:根据探测数据包中携带的差分服务代码点DSCP的编码值,将探测数据包转发至该编码值所对应的自治系统AS,并通过多条BGP线路中以该自治系统AS作为首个自治系统AS的BGP线路,将探测数据包从CDN节点发送至目标自治系统AS。The third embodiment of the present application relates to a CDN network quality detection method. The third embodiment is an improvement made on the basis of the first embodiment. The improvement is that: the above-mentioned line is marked as a differential service code point DSCP; correspondingly, the process of constructing multiple detection data packets includes: setting each detection data The coding value of the differentiated service code point DSCP of the packet is any one of multiple preset coding values, and the multiple preset coding values correspond one-to-one to the first autonomous system AS interconnected with the CDN node among the multiple BGP lines. Correspondingly, according to the line identification carried in the detection data packet, sending the detection data packet from the CDN node to the target autonomous system AS through the BGP line corresponding to the line identification includes: according to the differential service code point carried in the detection data packet DSCP code value, the detection data packet is forwarded to the autonomous system AS corresponding to the code value, and the detection data packet is sent from the CDN node through the BGP circuit with the autonomous system AS as the first autonomous system AS Send to the target autonomous system AS.
如图5所示,上述步骤101包括如下子步骤。As shown in FIG. 5 , the above step 101 includes the following sub-steps.
子步骤1011:设置每个探测数据包的差分服务代码点DSCP的编码值为多个预设编码值中的任一个,多个预设编码值与多条BGP线路中,与CDN节点互联的首个自治系统AS一一对应。Sub-step 1011: set the code value of the differential service code point DSCP of each probe data packet to any one of multiple preset code values, the multiple preset code values and the first BGP line interconnected with the CDN node There is a one-to-one correspondence between autonomous systems AS.
例如,如图6中所示,测试服务器(Test Server)在构建探测数据包时,在所有需通过AS 1299所在的BGP线路进行传输的探测数据包中,在每个数据包IP头部的服务类别TOS标识字节中会被自动打上DSCP 8的标识;在所有需通过AS 2914所在的BGP线路进行传输的探测数据包中,在每个数据包IP头部的服务类别TOS标识字节中会被自动打上DSCP 9的标识;在所有需通过AS 6453所在的BGP线路进行传输的探测数据包中,在每个数据包IP头部的服务类别TOS标识字节中会被自动打上DSCP 10的标识。For example, as shown in Figure 6, when the test server (Test Server) constructs the detection data packet, in all the detection data packets that need to be transmitted through the BGP line where AS 1299 is located, the service in the IP header of each data packet The category TOS identification byte will be automatically marked with the DSCP 8 identification; in all detection packets that need to be transmitted through the BGP line where AS 2914 is located, the service category TOS identification byte in the IP header of each data packet will be It is automatically marked with DSCP 9; in all detection packets that need to be transmitted through the BGP line where AS 6453 is located, the service category TOS identification byte in the IP header of each data packet will be automatically marked with DSCP 10 .
相应地,步骤102包括如下子步骤。Correspondingly, step 102 includes the following sub-steps.
子步骤1021:根据探测数据包中携带的差分服务代码点DSCP的编码值,将探测数据包转发至该编码值所对应的自治系统AS,并通过多条BGP线路中以该自治系统AS作为首个自治系统AS的BGP线路,将探测数据包从CDN节点发送至目标自治系统AS。Sub-step 1021: According to the code value of the differentiated service code point DSCP carried in the probe data packet, forward the probe data packet to the autonomous system AS corresponding to the code value, and use the autonomous system AS as the first A BGP line of an autonomous system AS sends a detection packet from the CDN node to the target autonomous system AS.
例如,如图6中所示,测试服务器在构建探测数据包时,由于所有需通过AS 1299所在的BGP线路进行传输的探测数据包中,每个数据包IP头部的服务类别TOS标识字节中被自动打上DSCP 8的标识,这样相关的流量到达边界路由器后,会匹配策略,自动将流量从对应的AS 1299所在线路进行转发;由于所有需通过AS 2914所在的BGP线路进行传输的探测数据包中,每个数据包IP头部的服务类别TOS标识字节中被自动打上DSCP 9的标识,这样相关的流量到达边界路由器后,会匹配策略,自动将流量从对应的AS 2914所在线路进行转发;由于所有需通过AS 6453所在的BGP线路进行传输的探测数据包中,每个数据包IP头部的服务类别TOS标识字节中被自动打上DSCP 10的标识,这样相关的流量到达边界路由器后,会匹配策略,自动将流量从对应的AS 6453所在线路进行转发。各BGP线路的首个AS接到探测数据包后,根据预先学习的BGP线上的路由路径,将探测数据包最终发送目标自治系统上。For example, as shown in Figure 6, when the test server constructs the detection data packet, because in all the detection data packets that need to be transmitted through the BGP line where AS 1299 is located, the service category TOS identification byte in the IP header of each data packet DSCP 8 is automatically marked in the network, so that after the relevant traffic reaches the border router, it will match the policy and automatically forward the traffic from the line where AS 1299 is located; because all detection data that needs to be transmitted through the BGP line where AS 2914 is located In the packet, the TOS identification byte of the IP header of each data packet is automatically marked with the DSCP 9 identification, so that after the relevant traffic reaches the border router, it will match the policy and automatically route the traffic from the line where the corresponding AS 2914 is located. Forwarding; because in all detection packets that need to be transmitted through the BGP line where AS 6453 is located, the service category TOS identification byte of each data packet IP header is automatically marked with DSCP 10, so that the relevant traffic reaches the border router After that, the policy will be matched and the traffic will be automatically forwarded from the line where the corresponding AS 6453 is located. After receiving the detection data packet, the first AS of each BGP line sends the detection data packet to the target autonomous system according to the pre-learned routing path on the BGP line.
本申请实施方式通过在探测数据包中设置线路标识,以干预控制探测数据通过指定的BGP线路发送至目标自治系统,实现对应BGP线路的测试。进一步地,通过DSCP作为线路标识,指定探测数据包出CDN节点后的首个AS,从而可基于BGP选路规则,选取出包含该首个AS的BGP线路进行探测数据包的发送。In the embodiment of the present application, by setting the line identifier in the detection data packet, the detection data is sent to the target autonomous system through the specified BGP line by intervention control, so as to realize the test of the corresponding BGP line. Further, the DSCP is used as the line identifier to designate the first AS after the detection data packet leaves the CDN node, so that the BGP line including the first AS can be selected based on the BGP route selection rules to send the detection data packet.
本申请的第四实施方式涉及一种CDN网络质量检测方法。第四实施方式是在以上任一实 施方式基础上做的改进,其改进之处在于从CDN节点向目标自治系统AS发送的探测数据包的源地址为CDN节点对应IP地址段中的多个地址,且与多条BGP线路一一对应;相应的,将探测数据包从CDN节点发送至目标自治系统AS包括:根据探测数据包的源地址,将多个探测数据包分别通过各探测数据包的源地址对应的BGP线路发送至目标自治系统。通过区别设置用于探测不同BGP线路的探测数据包的源地址,从而方便对不同BGP线路进行测试得到的网络质量参数进行区分。The fourth implementation manner of the present application relates to a CDN network quality detection method. The fourth embodiment is an improvement made on the basis of any of the above embodiments. The improvement is that the source address of the probe data packet sent from the CDN node to the target autonomous system AS is a plurality of addresses in the IP address segment corresponding to the CDN node , and corresponds to multiple BGP lines one by one; correspondingly, sending the detection data packet from the CDN node to the target autonomous system AS includes: according to the source address of the detection data packet, passing multiple detection data packets through the The BGP line corresponding to the source address is sent to the target autonomous system. By differently setting the source addresses of the detection data packets used to detect different BGP lines, it is convenient to distinguish the network quality parameters obtained by testing different BGP lines.
如图7所示,上述步骤102可具体包括:As shown in Figure 7, the above step 102 may specifically include:
步骤1022:根据探测数据包的源地址,将多个探测数据包分别通过各探测数据包的源地址对应的BGP线路发送至目标自治系统;其中,从CDN节点向目标自治系统AS发送的探测数据包的源地址为CDN节点对应IP地址段中的多个地址,且与多条BGP线路一一对应。Step 1022: According to the source address of the detection data packet, send multiple detection data packets to the target autonomous system respectively through the BGP line corresponding to the source address of each detection data packet; wherein, the detection data sent from the CDN node to the target autonomous system AS The source address of the packet is multiple addresses in the IP address segment corresponding to the CDN node, and corresponds to multiple BGP lines one by one.
例如,对于图6中所示CDN网络,测试服务器可分别配置3个测试地址作为探测数据包的源地址,用于测试3个BGP线路到达目的AS(图中AS Client)的网络质量情况。例如,经AS 1299的探测数据包的源地址可配置为1.1.1.1,从而使得源于1.1.1.1的相关流量,经AS 1299所在的BGP线路到达AS Client;经AS 2914的探测数据包的源地址可配置为1.1.1.2,从而使得源于1.1.1.2的相关流量,经AS 2914所在的BGP线路到达AS Client;经AS 6453的探测数据包的源地址可配置为1.1.1.3,从而使得源于1.1.1.3的相关流量,经AS 6453所在的BGP线路到达AS Client。For example, for the CDN network shown in Figure 6, the test server can respectively configure three test addresses as the source addresses of the probe data packets to test the network quality of the three BGP lines reaching the destination AS (AS Client in the figure). For example, the source address of the probe data packet via AS 1299 can be configured as 1.1.1.1, so that the relevant traffic originating from 1.1.1.1 reaches the AS Client through the BGP line where AS 1299 is located; the source address of the probe data packet via AS 2914 The address can be configured as 1.1.1.2, so that the relevant traffic originating from 1.1.1.2 can reach the AS Client through the BGP line where AS 2914 is located; The traffic related to 1.1.1.3 reaches AS Client through the BGP line where AS 6453 is located.
这样,测试服务器在得到相应的响应数据包时,即可分辨出是针对哪条BGP线路的响应数据包。当然,也可以通过响应数据包中包含的特定内容,来分辨是针对哪条BGP线路的响应数据包。该特定内容可以是与探测数据包约定的内容。In this way, when the test server receives the corresponding response data packet, it can distinguish which BGP line the response data packet is for. Of course, the specific content included in the response data packet can also be used to distinguish which BGP line the response data packet is for. The specific content may be the content agreed upon with the probe data packet.
本申请实施方式通过区别设置用于探测不同BGP线路的探测数据包的源地址,从而方便对不同BGP线路进行测试得到的网络质量参数进行区分。In the embodiment of the present application, the source addresses of the detection data packets used to detect different BGP lines are set differently, so as to facilitate the distinction of the network quality parameters obtained by testing different BGP lines.
本申请的第五实施方式涉及一种CDN网络质量检测方法。第五实施方式是在以上实施方式基础上做的改进,其改进之处在于:所述CDN节点为单播通信场景中的CDN节点;相应地,根据各BGP线路的网络质量参数,对CDN节点到目标自治系统AS之间的业务流量所使用的BGP线路进行调控,包括:根据各BGP线路的网络质量参数,设置目标自治系统AS所对应的一个或多个IP地址段分别通过一BGP线路进行访问;根据预设的调控策略,将CDN节点到目标自治系统AS之间的不同业务流量对应发送至多个IP地址段中的一个IP地址段,从而实现对单播通信场景中的流量进行调控。The fifth implementation manner of the present application relates to a CDN network quality detection method. The fifth embodiment is an improvement made on the basis of the above embodiments. The improvement is that: the CDN node is a CDN node in a unicast communication scenario; correspondingly, according to the network quality parameters of each BGP line, the CDN node Regulate the BGP lines used by the service traffic to the target autonomous system AS, including: according to the network quality parameters of each BGP line, set one or more IP address segments corresponding to the target autonomous system AS through a BGP line respectively Access: According to the preset control strategy, different business traffic between the CDN node and the target autonomous system AS is correspondingly sent to one of the multiple IP address segments, so as to realize the traffic regulation in the unicast communication scenario.
如图8所示,上述步骤104可包括如下子步骤。As shown in FIG. 8, the above step 104 may include the following sub-steps.
子步骤1041:根据各BGP线路的网络质量参数,设置目标自治系统AS所对应的一个或多个IP地址段分别通过一BGP线路进行访问。Sub-step 1041: According to the network quality parameters of each BGP line, set one or more IP address segments corresponding to the target autonomous system AS to access through a BGP line respectively.
如图6所示,CDN Node有多个BGP线路,分别对外广播1.1.1.0/24网段,并通过图6中显示的3条BGP线路学习AS client网段2.2.2.0/24。As shown in Figure 6, the CDN Node has multiple BGP lines, which broadcast the 1.1.1.0/24 network segment to the outside world, and learn the AS client network segment 2.2.2.0/24 through the three BGP lines shown in Figure 6.
在CDN Node内部搭建测试服务器,并设置测试地址如下。Build a test server inside the CDN Node, and set the test address as follows.
表1 测试地址Table 1 Test address
测试地址test address 流量标识Flow ID 对应线路Corresponding line ASAS DSCPDSCP
1.1.1.11.1.1.1 ———————— Telia Telia 12991299 88
1.1.1.21.1.1.2 __ __ __ ____________ NTT NTT 29142914 99
1.1.1.31.1.1.3 ---------------- TATA TATA 64536453 1010
测试服务器分别配置3个测试地址作为探测数据包的源地址,用于测试3个BGP线路到达目的AS(图中AS Client)的网络质量情况。例如,经AS 1299的探测数据包的源地址可配置为1.1.1.1,且所有源于1.1.1.1的流量,经测试服务器会被自动打上DSCP 8的标识从而使得源于1.1.1.1的相关流量,经AS 1299所在的BGP线路到达AS Client;经AS 2914的探测数据包的源地址可配置为1.1.1.2,且所有源于1.1.1.2的流量,经测试服务器会被自动打上DSCP 9的标识从而使得源于1.1.1.2的相关流量,经AS 2914所在的BGP线路到达AS Client;经AS 6453的探测数据包的源地址可配置为1.1.1.3,且所有源于1.1.1.3的流量,经测试服务器会被自动打上DSCP 10的标识从而使得源于1.1.1.3的相关流量,经AS 6453所在的BGP线路到达AS Client。The test server is configured with 3 test addresses as the source addresses of the probe data packets, which are used to test the network quality of the 3 BGP lines reaching the destination AS (AS Client in the figure). For example, the source address of the detection data packet via AS 1299 can be configured as 1.1.1.1, and all the traffic originating from 1.1.1.1 will be automatically marked with DSCP 8 after testing so that the related traffic originating from 1.1.1.1 , reach the AS Client via the BGP line where AS 1299 is located; the source address of the probe data packet via AS 2914 can be configured as 1.1.1.2, and all traffic originating from 1.1.1.2 will be automatically marked with DSCP 9 after testing In this way, the relevant traffic originating from 1.1.1.2 can reach the AS Client via the BGP line where AS 2914 is located; the source address of the detection data packet via AS 6453 can be configured as 1.1.1.3, and all traffic originating from 1.1.1.3 can be routed through The test server will be marked with DSCP 10 automatically so that the relevant traffic originating from 1.1.1.3 will reach AS Client through the BGP line where AS 6453 is located.
测试服务器基于探测数据包所对应的响应数据包,可得到不同BGP线路的网络质量参数如下。Based on the response data packets corresponding to the detection data packets, the test server can obtain the network quality parameters of different BGP lines as follows.
表2 网络质量参数Table 2 Network quality parameters
Figure PCTCN2021118855-appb-000001
Figure PCTCN2021118855-appb-000001
通过以上的BGP线路测试,可以准确计算出每条线路到达目的AS的时延,丢包和带宽等网络质量参数的情况,从而计算出CDN节点覆盖相应区域的最优线路。例如,当某个BGP线路现有带宽超出规定阈值时,自动调度系统可以通过该数据进行优化处理,调度部分区域的覆盖流量到次优线路,从而实现覆盖最优化和服务质量的稳定性。为了方便实现对各线路上的流量进行调整,可设置AS client宣告的路由有2.2.2.0/24、3.3.3.0/24、4.4.4.0/24三个IP地址网段,并设置每个地址段通过一BGP线路进行访问,实现各网段与BGP线路的关联关 系。Through the above BGP line test, it is possible to accurately calculate the network quality parameters such as the delay of each line to the destination AS, packet loss and bandwidth, and thus calculate the optimal line for the CDN node to cover the corresponding area. For example, when the existing bandwidth of a certain BGP line exceeds the specified threshold, the automatic dispatching system can use this data to perform optimization processing, and dispatch the coverage traffic in some areas to the suboptimal line, so as to achieve coverage optimization and service quality stability. In order to facilitate the adjustment of the traffic on each line, you can set the routes announced by the AS client to have three IP address segments: 2.2.2.0/24, 3.3.3.0/24, and 4.4.4.0/24, and set each address segment Access through a BGP line to realize the association between each network segment and the BGP line.
子步骤1042:根据预设的调控策略,将CDN节点到目标自治系统AS之间的不同业务流量对应发送至多个IP地址段中的一个IP地址段。Sub-step 1042: According to the preset control strategy, correspondingly send different service flows between the CDN node and the target autonomous system AS to one IP address segment among the plurality of IP address segments.
其中,调控策略为将业务流量发送至目标自治系统AS时,判断使用哪个BGP线路时所采用的策略。Wherein, the control policy is a policy adopted when judging which BGP line to use when sending the service flow to the target autonomous system AS.
例如,当根据预设的调控策略,确定将某业务流量通过BGP线路1,从CDN节点发送到目标自治系统AS时,可将该业务流量的目标网段地址设置为与BGP线路1对应的网段,如2.2.2.0/24,从而将业务流量通过BGP线路1发送至目标自治系统AS,实现对业务流量的调控。For example, when it is determined that certain service traffic is sent from the CDN node to the target autonomous system AS through BGP line 1 according to the preset control policy, the target network segment address of the service traffic can be set to the network address corresponding to BGP line 1. segment, such as 2.2.2.0/24, so that the service traffic is sent to the target autonomous system AS through BGP line 1, so as to realize the regulation and control of the service traffic.
本申请实施方式通过指定目标自制系统AS的不同IP地址段采用不同的BGP线路进行访问,可以实现基于单播通信中网络质量现状进行访问控制。In the embodiment of the present application, by specifying different IP address segments of the target self-made system AS to use different BGP lines for access, access control based on the current state of network quality in unicast communication can be implemented.
本申请的第六实施方式涉及一种CDN网络质量检测方法。第六实施方式是在以上实施方式基础上做的改进,其改进之处在于:CDN节点为任播通信场景中的CDN节点;根据各BGP线路的网络质量参数,对CDN节点到目标自治系统AS之间的业务流量所使用的BGP线路进行调控,包括:根据任播通信场景中各CDN节点对应的BGP线路的网络质量参数,确定各CDN节点覆盖目标自治系统AS的网络质量;根据各CDN节点覆盖目标自治系统AS的网络质量,调整各CDN节点任播所覆盖的目标自治系统AS的范围。在单播的基础上,通过确认每个CDN节点覆盖对应目标自制系统AS的网络质量,从而得出各CDN节点覆盖AS的网质量的优劣情况;进而可通过调整每个节点的覆盖AS的范围,从而实现各CDN节点对AS的最优覆盖。The sixth implementation manner of the present application relates to a CDN network quality detection method. The sixth embodiment is an improvement made on the basis of the above embodiments. The improvement is that: the CDN node is a CDN node in an anycast communication scenario; According to the network quality parameters of the BGP lines corresponding to each CDN node in the anycast communication scenario, determine the network quality of each CDN node covering the target autonomous system AS; according to each CDN node Cover the network quality of the target autonomous system AS, and adjust the scope of the target autonomous system AS covered by anycast of each CDN node. On the basis of unicast, by confirming that each CDN node covers the network quality of the corresponding target self-made system AS, the network quality of each CDN node covering AS can be obtained; and then by adjusting the coverage of each node AS range, so as to achieve the optimal coverage of each CDN node on the AS.
如图9所示,上述步骤104可包括如下子步骤。As shown in FIG. 9, the above step 104 may include the following sub-steps.
子步骤1043:根据任播通信场景中各CDN节点对应的BGP线路的网络质量参数,确定各CDN节点覆盖目标自治系统AS的网络质量。Sub-step 1043: According to the network quality parameters of the BGP lines corresponding to each CDN node in the anycast communication scenario, determine the network quality of each CDN node covering the target autonomous system AS.
如图10所示,CDN Node 1、CDN Node 2、CDN Node3分别对外宣告Anycast网段100.100.100.0/24,并且通过前述将线路标识设置为差分服务代码点DSCP的策略限制,指定各个地址的探测数据包的出口方向。As shown in Figure 10, CDN Node 1, CDN Node 2, and CDN Node 3 respectively announce the Anycast network segment 100.100.100.0/24, and specify the detection of each address through the policy restriction of setting the line identifier as the differential service code point DSCP The egress direction of the packet.
在每个CDN Node内部分别搭建测试服务器,并设置测试地址如下。Build a test server inside each CDN Node, and set the test address as follows.
表3 测试地址Table 3 Test address
Figure PCTCN2021118855-appb-000002
Figure PCTCN2021118855-appb-000002
Figure PCTCN2021118855-appb-000003
Figure PCTCN2021118855-appb-000003
在CDN Node1中,测试服务器给源地址为100.100.100.1的地址打上DSCP 16;所有源地址为100.100.100.1的流量到达出口路由器以后,都会匹配策略路由从Telia线路转发出去。同理源地址为100.100.100.2的流量会被从NTT线路转发出去;源地址为100.100.100.3的流量会被从TATA线路转发出去;In CDN Node1, the test server marks the source address 100.100.100.1 with DSCP 16; after all the traffic with the source address 100.100.100.1 arrives at the egress router, it will match the policy routing and forward it from the Telia line. Similarly, traffic with source address 100.100.100.2 will be forwarded from NTT line; traffic with source address 100.100.100.3 will be forwarded from TATA line;
在CDN Node2中,测试服务器给源地址为100.100.100.1的地址打上DSCP 16;所有源地址为100.100.100.1的流量到达出口路由器以后,都会匹配策略路由从Telia线路转发出去。同理源地址为100.100.100.2的流量会被从Level3线路转发出去;源地址为100.100.100.3的流量会被从TATA线路转发出去;In CDN Node2, the test server marks the source address 100.100.100.1 with DSCP 16; after all the traffic with the source address 100.100.100.1 arrives at the egress router, it will match the policy routing and forward it from the Telia line. Similarly, traffic with a source address of 100.100.100.2 will be forwarded through the Level3 line; traffic with a source address of 100.100.100.3 will be forwarded through the TATA line;
在CDN Node3中,给源地址为100.100.100.1的地址打上DSCP 16;所有源地址为100.100.100.1的流量到达出口路由器以后,都会匹配策略路由从Telia线路转发出去。同理源地址为100.100.100.2的流量会被从NTT线路转发出去;源地址为100.100.100.3的流量会被从Level3线路转发出去。In CDN Node3, add DSCP 16 to the address with source address 100.100.100.1; after all the traffic with source address 100.100.100.1 arrives at the egress router, it will match the policy routing and forward it from the Telia line. Similarly, traffic with a source address of 100.100.100.2 will be forwarded out of the NTT line; traffic with a source address of 100.100.100.3 will be forwarded out of a Level3 line.
测试服务器基于探测数据包所对应的响应数据包,可得到不同BGP线路的网络质量参数如表4所示。Based on the response data packets corresponding to the detection data packets, the test server can obtain the network quality parameters of different BGP lines as shown in Table 4.
通过测试,可以收集到每个Node节点每个线路的anycast对于每个区域/AS的覆盖情况,从而给后台提供决策,制定覆盖最优方案。Through the test, the anycast coverage of each node and each line for each area/AS can be collected, so as to provide decision-making for the background and formulate an optimal coverage plan.
子步骤1044:根据各CDN节点覆盖目标自治系统AS的网络质量,调整各CDN节点任播所覆盖的目标自治系统AS的范围。Sub-step 1044: According to the network quality of the target autonomous system AS covered by each CDN node, adjust the range of the target autonomous system AS covered by each CDN node anycast.
例如,当某个CDN节点上某个BGP线路上的流量跑高超过阈值,自动切换该线路上的后续流量到次优的CDN节点,从而实现网络覆盖的最优化和服务质量的稳定性。For example, when the traffic on a BGP line on a certain CDN node exceeds the threshold, the subsequent traffic on this line will be automatically switched to the suboptimal CDN node, so as to achieve the optimization of network coverage and the stability of service quality.
本申请实施方式通过确认每个CDN节点覆盖对应目标自制系统AS的网络质量,从而得出各CDN节点覆盖AS的网质量的优劣情况;进而可通过调整每个CDN节点的覆盖AS的范围,从而实现各CDN节点对AS的最优覆盖。The implementation mode of this application confirms that each CDN node covers the network quality of the corresponding target self-made system AS, thereby obtaining the pros and cons of the network quality of each CDN node covering the AS; and then by adjusting the coverage of each CDN node AS, In this way, the optimal coverage of each CDN node on the AS is realized.
表4 网络质量参数Table 4 Network quality parameters
Figure PCTCN2021118855-appb-000004
Figure PCTCN2021118855-appb-000004
本申请的第七实施方式涉及一种CDN网络质量检测系统,该CDN网络包括:CDN节点、由多个网络运营商提供的多个自治系统AS,CND节点、所述多个自治系统AS之间通过边界网关协议BGP互联;所述系统还包括:位于CDN节内部的服务器,服务器用于调度CDN网络执行如上任一方法实施例中所述的CDN网络质量检测方法。The seventh embodiment of the present application relates to a CDN network quality detection system. The CDN network includes: a CDN node, a plurality of autonomous systems AS provided by a plurality of network operators, and a connection between the CDN node and the plurality of autonomous systems AS The system is interconnected through the Border Gateway Protocol BGP; the system also includes: a server located inside the CDN node, and the server is used to schedule the CDN network to execute the CDN network quality detection method described in any method embodiment above.
其中,位于CDN节内部的服务器可以为上述实施例中的测试服务器。Wherein, the server located inside the CDN section may be the test server in the above embodiment.
本申请第八实施方式涉及一种服务器,如图11所示,包括至少一个处理器202;以及,与至少一个处理器202通信连接的存储器201;其中,存储器201存储有可被至少一个处理器202执行的指令,指令被至少一个处理器202执行,以使至少一个处理器202能够执行上述任一方法实施例。The eighth embodiment of the present application relates to a server, as shown in FIG. 11 , including at least one processor 202; and a memory 201 communicatively connected to at least one processor 202; Instructions executed by 202, the instructions are executed by at least one processor 202, so that at least one processor 202 can execute any one of the foregoing method embodiments.
其中,存储器201和处理器202采用总线方式连接,总线可以包括任意数量的互联的总线和桥,总线将一个或多个处理器202和存储器201的各种电路连接在一起。总线还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路连接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口在总线和收发机之间提供接口。收发机可以是一个元件,也可以是多个元件,比如多个接收器和发送器,提供用于在传输介质上与各种其他装置通信的单元。经处理器202处理的数据通过天线在无线介质上进行传输,进一步,天线还接收数据并将数据传送给处理器202。Wherein, the memory 201 and the processor 202 are connected by a bus, and the bus may include any number of interconnected buses and bridges, and the bus connects one or more processors 202 and various circuits of the memory 201 together. The bus may also connect together various other circuits such as peripherals, voltage regulators, and power management circuits, all of which are well known in the art and therefore will not be further described herein. The bus interface provides an interface between the bus and the transceivers. A transceiver may be a single element or multiple elements, such as multiple receivers and transmitters, providing means for communicating with various other devices over a transmission medium. The data processed by the processor 202 is transmitted on the wireless medium through the antenna, and further, the antenna also receives the data and transmits the data to the processor 202 .
处理器202负责管理总线和通常的处理,还可以提供各种功能,包括定时,外围接口,电压调节、电源管理以及其他控制功能。而存储器201可以被用于存储处理器202在执行操作时所使用的数据。Processor 202 is responsible for managing the bus and general processing, and may also provide various functions including timing, peripheral interfacing, voltage regulation, power management, and other control functions. And the memory 201 may be used to store data used by the processor 202 when performing operations.
本申请第九实施方式涉及一种计算机可读存储介质,存储有计算机程序。计算机程序被处理器执行时实现上述任一方法实施例。The ninth embodiment of the present application relates to a computer-readable storage medium storing a computer program. When the computer program is executed by the processor, any one of the above method embodiments is realized.
即,本领域技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程 序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。That is, those skilled in the art can understand that all or part of the steps in the method of the above-mentioned embodiments can be completed by instructing related hardware through a program, the program is stored in a storage medium, and includes several instructions to make a device ( It may be a single-chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .
本领域的普通技术人员可以理解,上述各实施方式是实现本申请的具体实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本申请的精神和范围。Those of ordinary skill in the art can understand that the above-mentioned implementation modes are specific examples for realizing the present application, and in practical applications, various changes can be made to it in form and details without departing from the spirit and spirit of the present application. scope.

Claims (10)

  1. 一种CDN网络质量检测方法,所述CDN网络包括:CDN节点、由多个网络运营商提供的多个自治系统AS,所述CND节点、所述多个自治系统AS之间通过边界网关协议BGP互联;所述方法包括:A method for detecting the quality of a CDN network, the CDN network comprising: a CDN node, a plurality of autonomous systems AS provided by a plurality of network operators, and the border gateway protocol BGP between the CDN node and the plurality of autonomous systems AS interconnected; said method comprising:
    构建多个探测数据包,每个所述探测数据包中携带从CDN节点到目标自治系统AS的多条BGP线路中一条BGP线路的线路标识;Constructing multiple detection data packets, each of which carries the line identifier of a BGP line in the multiple BGP lines from the CDN node to the target autonomous system AS;
    根据所述探测数据包中携带的线路标识,将所述探测数据包通过该线路标识对应的BGP线路从所述CDN节点发送至所述目标自治系统AS;According to the line identification carried in the detection data packet, sending the detection data packet from the CDN node to the target autonomous system AS through the BGP line corresponding to the line identification;
    基于发出的所述探测数据包对所述多条BGP线路分别进行测试,得到各BGP线路的网络质量参数。Based on the sent detection data packets, the multiple BGP lines are tested respectively to obtain network quality parameters of each BGP line.
  2. 根据权利要求1所述的方法,所述方法还包括:The method according to claim 1, said method further comprising:
    根据所述各BGP线路的网络质量参数,对所述CDN节点到所述目标自治系统AS之间的业务流量所使用的BGP线路进行调控,和/或,对探测的所述BGP线路进行故障分析。According to the network quality parameters of the BGP lines, regulate the BGP lines used by the traffic flow between the CDN node and the target autonomous system AS, and/or perform fault analysis on the detected BGP lines .
  3. 根据权利要求2所述的方法,其中,所述根据所述各BGP线路的网络质量参数,对所述CDN节点到所述目标自治系统AS之间的业务流量所使用的BGP线路进行调控,包括:The method according to claim 2, wherein, according to the network quality parameters of the BGP lines, regulating the BGP lines used by the traffic flow between the CDN node and the target autonomous system AS includes: :
    确定所述CDN节点到所述目标自治系统AS的业务流量所使用的BGP线路;determining the BGP line used by the traffic flow from the CDN node to the target autonomous system AS;
    向所述业务流量的数据包中添加所确定的BGP线路所对应的线路标识后,从CDN节点发出该数据包。After adding the line identifier corresponding to the determined BGP line to the data packet of the service flow, the data packet is sent from the CDN node.
  4. 根据权利要求1所述的方法,其中,所述线路标识为差分服务代码点DSCP;所述构建多个探测数据包,包括:The method according to claim 1, wherein the line identification is a differential service code point DSCP; the construction of a plurality of detection packets includes:
    设置每个所述探测数据包的差分服务代码点DSCP的编码值为多个预设编码值中的任一个,所述多个预设编码值与所述多条BGP线路中,与所述CDN节点互联的首个自治系统AS一一对应;Set the coding value of the differential service code point DSCP of each detection data packet to any one of a plurality of preset coding values, the multiple preset coding values are related to the multiple BGP lines, and the CDN The first autonomous system AS of node interconnection corresponds one by one;
    所述根据所述探测数据包中携带的线路标识,将所述探测数据包通过该线路标识对应的BGP线路从所述CDN节点发送至所述目标自治系统AS,包括:According to the line identification carried in the detection data packet, sending the detection data packet from the CDN node to the target autonomous system AS through the BGP line corresponding to the line identification includes:
    根据所述探测数据包中携带的差分服务代码点DSCP的编码值,将所述探测数据包转发至该编码值所对应的自治系统AS,并通过所述多条BGP线路中以该自治系统AS作为首个自治系统AS的BGP线路,将所述探测数据包从所述CDN节点发送至所述目标自治系统AS。According to the code value of the differential service code point DSCP carried in the probe data packet, forward the probe data packet to the autonomous system AS corresponding to the code value, and use the autonomous system AS in the multiple BGP lines As the BGP line of the first autonomous system AS, the detection data packet is sent from the CDN node to the target autonomous system AS.
  5. 根据权利要求1至权利要求4任一项所述的方法,其中,从所述CDN节点向所述目标自治系统AS发送的探测数据包的源地址为所述CDN节点对应IP地址段中的多个地址, 且与所述多条BGP线路一一对应;The method according to any one of claims 1 to 4, wherein the source address of the probe data packet sent from the CDN node to the target autonomous system AS is a multiple of the corresponding IP address segment of the CDN node addresses, and one-to-one correspondence with the multiple BGP lines;
    将所述探测数据包从所述CDN节点发送至所述目标自治系统AS,包括:Sending the detection data packet from the CDN node to the target autonomous system AS includes:
    根据所述探测数据包的源地址,将多个所述探测数据包分别通过各探测数据包的源地址对应的BGP线路发送至所述目标自治系统AS。According to the source address of the detection data packet, the multiple detection data packets are respectively sent to the target autonomous system AS through the BGP line corresponding to the source address of each detection data packet.
  6. 根据权利要求2所述的方法,其中,所述CDN节点为单播通信场景中的CDN节点;The method according to claim 2, wherein the CDN node is a CDN node in a unicast communication scenario;
    所述根据所述各BGP线路的网络质量参数,对所述CDN节点到所述目标自治系统AS之间的业务流量所使用的BGP线路进行调控,包括:According to the network quality parameters of the BGP lines, regulating the BGP lines used by the traffic flow between the CDN node and the target autonomous system AS includes:
    根据各BGP线路的网络质量参数,设置所述目标自治系统AS所对应的一个或多个IP地址段分别通过一所述BGP线路进行访问;According to the network quality parameters of each BGP line, one or more IP address segments corresponding to the target autonomous system AS are set to be accessed through one of the BGP lines respectively;
    根据预设的调控策略,将所述CDN节点到所述目标自治系统AS之间的不同业务流量对应发送至所述多个IP地址段中的一个IP地址段。Correspondingly sending different service flows between the CDN node and the target autonomous system AS to one IP address segment in the plurality of IP address segments according to a preset control policy.
  7. 根据权利要求2所述的方法,其中,所述CDN节点为任播通信场景中的CDN节点;The method according to claim 2, wherein the CDN node is a CDN node in an anycast communication scenario;
    所述根据所述各BGP线路的网络质量参数,对所述CDN节点到所述目标自治系统AS之间的业务流量所使用的BGP线路进行调控,包括:According to the network quality parameters of the BGP lines, regulating the BGP lines used by the traffic flow between the CDN node and the target autonomous system AS includes:
    根据任播通信场景中各所述CDN节点对应的所述BGP线路的网络质量参数,确定各所述CDN节点覆盖所述目标自治系统AS的网络质量;According to the network quality parameters of the BGP lines corresponding to each of the CDN nodes in anycast communication scenarios, determine the network quality of each of the CDN nodes covering the target autonomous system AS;
    根据各所述CDN节点覆盖所述目标自治系统AS的网络质量,调整各所述CDN节点任播所覆盖的目标自治系统AS的范围。According to the network quality of each CDN node covering the target autonomous system AS, the range of the target autonomous system AS covered by each CDN node anycast is adjusted.
  8. 一种CDN网络质量检测系统,,所述CDN网络包括:CDN节点、由多个网络运营商提供的多个自治系统AS,所述CND节点、所述多个自治系统AS之间通过边界网关协议BGP互联;所述系统还包括:位于所述CDN节内部的服务器,所述服务器用于调度所述CDN网络执行如权利要求1至权利要求7中任一项所述的CDN网络质量检测方法。A CDN network quality detection system, wherein the CDN network includes: a CDN node, a plurality of autonomous systems AS provided by a plurality of network operators, and the border gateway protocol between the CDN node and the plurality of autonomous systems AS BGP interconnection; the system further includes: a server located inside the CDN node, the server is used to schedule the CDN network to execute the CDN network quality detection method according to any one of claims 1 to 7.
  9. 一种服务器,包括:A server comprising:
    至少一个处理器;以及,at least one processor; and,
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如权利要求1至权利要求7中任一项所述的CDN网络质量检测方法。The memory stores instructions executable by the at least one processor, the instructions are executed by the at least one processor, so that the at least one processor can perform any one of claims 1 to 7 The CDN network quality detection method described in item.
  10. 一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1至权利要求7中任一项所述的CDN网络质量检测方法。A computer-readable storage medium, storing a computer program, and implementing the CDN network quality detection method according to any one of claims 1 to 7 when the computer program is executed by a processor.
PCT/CN2021/118855 2021-08-19 2021-09-16 Cdn quality inspection method and system, server, and storage medium WO2023019669A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110956987.4A CN113872824B (en) 2021-08-19 2021-08-19 CDN network quality detection method, system, server and storage medium
CN202110956987.4 2021-08-19

Publications (1)

Publication Number Publication Date
WO2023019669A1 true WO2023019669A1 (en) 2023-02-23

Family

ID=78990713

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/118855 WO2023019669A1 (en) 2021-08-19 2021-09-16 Cdn quality inspection method and system, server, and storage medium

Country Status (2)

Country Link
CN (1) CN113872824B (en)
WO (1) WO2023019669A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116506281B (en) * 2023-05-04 2024-02-06 合芯科技(苏州)有限公司 Intelligent network quality detection method, system and device in home office environment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070183317A1 (en) * 2006-02-03 2007-08-09 Jean-Philippe Vasseur Technique for determining whether to reestablish fast rerouted primary tunnels based on backup tunnel path quality feedback
CN106878036A (en) * 2015-12-10 2017-06-20 中国电信股份有限公司 Method, management server and system for improving efficiency of network resources
CN110011915A (en) * 2018-01-04 2019-07-12 杭州达乎科技有限公司 SDN network framework, flow transmission control method and device based on SDN
CN112242949A (en) * 2019-07-18 2021-01-19 厦门网宿有限公司 Route distribution method and controller, information routing method and network node equipment

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7532631B2 (en) * 2005-04-13 2009-05-12 Cisco Technology, Inc. Method and apparatus for accelerating border gateway protocol convergence
CN102136969B (en) * 2011-02-17 2013-04-10 北京蓝汛通信技术有限责任公司 Method, device and system for probing link quality
CN103051709A (en) * 2012-12-20 2013-04-17 新浪网技术(中国)有限公司 Data transmission path determination method, network node and content delivery network system
US9374309B2 (en) * 2013-04-16 2016-06-21 Facebook, Inc. Server controlled routing system
CN105897615A (en) * 2015-09-14 2016-08-24 乐视云计算有限公司 Data transmission method and device
US10218627B2 (en) * 2016-06-30 2019-02-26 Juniper Networks, Inc. Disaggregated broadband network gateway functionality for efficient content delivery network peering
CN106211238A (en) * 2016-07-11 2016-12-07 青岛海信移动通信技术股份有限公司 Data transmission method and device, terminal
CN108600051B (en) * 2018-04-28 2020-02-18 网宿科技股份有限公司 BGP Anycast cluster service quality detection method and detection equipment
CN109302346B (en) * 2018-10-25 2020-09-18 网宿科技股份有限公司 Method and device for transmitting data flow
US10917331B1 (en) * 2019-03-29 2021-02-09 Juniper Networks, Inc. Utilizing a centralized controller for traffic engineering segment routing inter-autonomous systems

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070183317A1 (en) * 2006-02-03 2007-08-09 Jean-Philippe Vasseur Technique for determining whether to reestablish fast rerouted primary tunnels based on backup tunnel path quality feedback
CN106878036A (en) * 2015-12-10 2017-06-20 中国电信股份有限公司 Method, management server and system for improving efficiency of network resources
CN110011915A (en) * 2018-01-04 2019-07-12 杭州达乎科技有限公司 SDN network framework, flow transmission control method and device based on SDN
CN112242949A (en) * 2019-07-18 2021-01-19 厦门网宿有限公司 Route distribution method and controller, information routing method and network node equipment

Also Published As

Publication number Publication date
CN113872824B (en) 2023-04-07
CN113872824A (en) 2021-12-31

Similar Documents

Publication Publication Date Title
US11750506B2 (en) System and method for adaptive traffic path management
US9948553B2 (en) System and method for virtual network-based distributed multi-domain routing control
WO2016155330A1 (en) Balance adjustment method, device and system for egress traffic of sdn-based idc network
CN105530204B (en) The system and method for video traffic QoS guarantee in software definition wireless network
CN111225031B (en) Cloud data center virtual bottom layer network architecture and data transmission method thereof
CN107864061A (en) A kind of method of virtual machine port speed constraint and mirror image in private clound
US11924004B2 (en) Link configuration method and controller
WO2019096140A1 (en) Method, device and system for managing network service
EP2974147B1 (en) Loop-free hybrid network
KR102342723B1 (en) Multi-homed network routing and forwarding method based on programmable network technology
CN111771359B (en) Method and system for connecting communication networks
JP2009542116A (en) System and method for dynamic mode driven link management
JP2012253750A (en) MiAN, MiAN BAND WIDTH AGGREGATION METHOD, AND AGGREGATION SYSTEM
US20220321482A1 (en) System and method for accelerating or decelerating a data transport network protocol based on real time transport network congestion conditions
US11863322B2 (en) Communication method and apparatus
WO2023019669A1 (en) Cdn quality inspection method and system, server, and storage medium
KR102055686B1 (en) Method and apparatus to implement virtual networks using open flow switches and controller
US9030951B2 (en) System and method for improving network convergence via adaptive routing techniques
CN104885417A (en) Control apparatus, communication system, communication node control method and program
CN106487680A (en) For setting up method, system and the path computing device of private access
KR101706342B1 (en) Controller, switch and method based on open flow supporting data rate of packets on network
KR102029707B1 (en) Method and apparatus to implement differential networks based on virtual network
Idhaw et al. Techniques for enabling dynamic routing on airborne platforms
US20220070736A1 (en) Traffic steering device
KR101501242B1 (en) Method, device and computer-readable recording medium for aggregating network based on openflow

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21953905

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE