DETECTION METHOD AND DETECTION DEVICE FOR DETECTING QUALITY OF SERVICE OF BGP ANYCAST CLUSTER
20210336861 ยท 2021-10-28
Inventors
Cpc classification
H04L41/5009
ELECTRICITY
International classification
Abstract
Method and device for detecting quality of service (QoS) of border gateway protocol (BGP) anycast cluster. In the method, the detection device receives detection-task information for detecting the QoS of the BGP anycast cluster, the detection-task information including a BGP anycast IP address; the detection device sends a detection-request information to the BGP anycast IP address, the detection-request information received by an entity server in the BGP anycast cluster that has a shortest AS path from the detection device; the detection device receives a detection-response information sent by the entity server in the BGP anycast cluster, the detection-response information including an IP address of the entity server; and the detection device generates detection index data according to the detection-request information and the detection-response information, the detection index data including the BGP anycast IP address and the IP address of the entity server.
Claims
1. A method for detecting quality of service (QoS) of a border gateway protocol (BGP) anycast cluster, implemented by a detection device the method comprising: receiving, by the detection device, detection-task information for the QoS of the BGP anycast cluster, wherein the detection-task information includes a BGP anycast IP address; sending, by the detection device, detection-request information to the BGP anycast IP address, wherein the detection-request information is received by an entity server in the BGP anycast cluster that has a shortest autonomous system (AS) path from the detection device; receiving, by the detection device, detection-response information sent by the entity server in the BGP anycast cluster, wherein the detection-response information includes an IP address of the entity server; and generating, by the detection device, detection index data according to the detection-request information and the detection-response information, wherein the detection index data includes the BGP anycast IP address and the IP address of the entity server.
2. The method of claim 1, wherein the detection request information includes http protocol detection-request information.
3. The method of claim 1, wherein the detection-request information includes DNS protocol detection-request information.
4. The method of claim 1, wherein the detection index data further includes a status code and a response time of the entity server.
5. The method of claim 1, wherein after the detection device generates the detection index data according to the detection-request information and the detection-response information, the method further includes: analyzing the detection index data to obtain QoS data of the entity server in the BGP anycast cluster.
6. A detection device for detecting QoS of a border gateway protocol (BGP) anycast cluster, wherein: a quantity of the detection device is multiple, and the detection devices are distributed in a BGP anycast cluster network, and the detection device includes: a receiving module, configured to receive detection-task information for detecting the QoS of the BGP Anycast cluster, wherein the detection-task information includes a BGP anycast IP address; and a sending module, configured to send detection-request information to the BGP anycast IP address, wherein the detection-request information is received by an entity server in the BGP anycast cluster that has a shortest AS path from the detection device; the receiving module is further configured to receive a detection-response information sent by the entity server in the BGP anycast cluster, wherein the detection-response information includes an IP address of the entity server; and the detection device further includes a processing module, and the processing module is configured to generate detection index data according to the detection-request information and the detection-response information, wherein the detection index data includes the BGP anycast IP address and the IP address of the entity server.
7. The device of claim 6, wherein the detection request information includes http protocol detection request information.
8. The device of claim 6, wherein the detection-request information includes DNS protocol detection-request information.
9. The device of claim 6, wherein the detection index data further includes a status code and a response time of the entity server.
10. The device of claim 6, further comprising an analysis module, wherein the analyzing module is configured to analyze the detection index data to obtain QoS data of the entity server in the BGP Anycast cluster.
11. The method of claim 2, further comprising: writing, by the entity server after receiving the http request, the entity server IP into the response content; and correlating, by the surveillance device after receiving the response content, detection index with the entity server IP and BGP anycast IP to complete collecting the detection index data.
12. The method of claim 3, further comprising: writing, by the entity server after receiving the DNS request, the entity server IP into the response content; and correlating, by the surveillance device after receiving the response content, the detection index with the entity sever IP and BGP anycast IP to complete the collection of the detection index data.
13. A detection device, comprising: at least one processor, a memory configured to store a program; and at least one communication bus configured to communicatively connecting the at least one processor and the memory; wherein when executing the program, the at least one processor is configured to implement a method for detecting quality of service (QoS) of a border gateway protocol (BGP) anycast cluster, the method comprising: receiving, by the detection device, detection-task information for the QoS of the BGP anycast cluster, wherein the detection-task information includes a BGP anycast IP address; sending, by the detection device, detection-request information to the BGP anycast IP address, wherein the detection-request information is received by an entity server in the BGP anycast cluster that has a shortest autonomous system (AS) path from the detection device; receiving, by the detection device, detection-response information sent by the entity server in the BGP anycast cluster, wherein the detection-response information includes an IP address of the entity server; and generating, by the detection device, detection index data according to the detection-request information and the received detection-response information, wherein the detection index data includes the BGP anycast IP address and the IP address of the entity server.
14. The device of claim 13, wherein the detection request information includes http protocol detection-request information.
15. The device of claim 13, wherein the detection-request information includes DNS protocol detection-request information.
16. The device of claim 13, wherein the detection index data further includes a status code and a response time of the entity server.
17. The device of claim 13, wherein the method further includes: analyzing the detection index data to obtain QoS data of the entity server in the BGP anycast cluster.
Description
DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in embodiments of the present disclosure, the drawings used in the description of the embodiments are briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present disclosure. Other drawings may also be obtained from those of ordinary skill in the art in view of the drawings without any creative effort.
[0027]
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
DETAILED DESCRIPTION
[0034] The technical solutions in embodiments of the present disclosure are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present disclosure. It is obvious that the described embodiments are only a part of the embodiments of the present disclosure, but not all the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present disclosure without creative efforts are within the scope of the present disclosure.
[0035]
[0036] S101: The detection device receives detection-task information for detecting the QoS of the BGP anycast cluster, where the detection-task information includes a BGP anycast IP address.
[0037] Specifically, the detection task may be set according to different requirements of the QoS of the BGP anycast cluster in different application scenarios. The detection-task information may be a task instruction sent by a detection-task management personnel to the detection device through other network devices, or may be a task instruction input by the detection-task management personnel through a human-computer interaction interface of the detection device. The detection device may be a surveillance device.
[0038] S102: The detection device sends detection-request information to the BGP anycast IP address, where the detection-request information is received by an entity server in the BGP anycast cluster that has a shortest AS path from the detection device.
[0039] For example, when detecting the QoS of a BGP anycast cluster that has an IP address 1.1.1.1, the http protocol detection-request information: GET http://www.wangsu.com/ is used, where www.wangsu.com is a test domain name to detection. The IP address comes out after analysis is 1.1.1.1, which is the BGP anycast IP address. After sending a detection-request information to the BGP anycast IP address, the detection device selects the entity server with the shortest AS path from the detection device to receive.
[0040] S103: The detection device receives a detection-response information sent by the entity server in the BGP anycast cluster, where the detection-response information includes an IP address of the entity server.
[0041] The detection device sends a detection-request information to the BGP anycast IP address. After receiving the detection-request information, the entity server that provides the service writes the actual IP address thereof into the response content.
[0042] S104: The detection device generates detection index data according to the sent detection-request information and the received detection-response information, where the detection index data includes the BGP anycast IP address and the IP address of the entity server.
[0043] After receiving the detection-response information, the detection device can accurately obtain the IP address of the detected entity server, and thus can accurately correlate the detected index data with the entity server IP and anycast IP. The detected index data may also include a status code and a response time of the entity server.
[0044] According to the technical solutions provided by embodiments of the present disclosure, each entity server in the BGP anycast cluster can be detected by arranging multiple detection devices in the BGP anycast cluster network. After receiving the detection task of the QoS of the BGP anycast cluster, the detection device sends a detection-request information to the BGP anycast IP address to execute the detection task, where the detection-request information is received by an entity server in the BGP anycast cluster that has a shortest AS path from the detection device. Then, the entity server in the BGP anycast cluster sends the detection-response information to the detection device, where the detection-response information includes an IP address of the entity server. Thus, the detection device can generate the detection index data according to the sent detection-request information and the received detection-response information, where the detection index data includes the BGP anycast IP address and the IP address of the entity server. If the entity server fails, the failed server can be quickly found through the entity server IP. Therefore, the technical solutions provided by embodiments of the present disclosure can accurately collect the detection index data of the entity server in the BGP anycast cluster, thereby improving the QoS of the BGP anycast cluster.
[0045]
[0046] S201: The detection index data is analyzed to obtain the QoS data of the entity server in the BGP anycast cluster.
[0047] For example, based on the collected BGP anycast IP address, the IP address of the entity server, and the status code and the response time of the entity server, the service status of the entity server in the entire BGP anycast cluster can be obtained by big data analytics.
[0048]
[0049] Assuming that the IP of the surveillance device 1 is 1.2.3.4, and the http detection protocol is used to detection the QoS of the BGP anycast cluster with the IP address of 1.1.1.1, an initiated detection-request information is: GET http://www.wangsu.com/(www.wangsu.com is the test domain name for detecting, and the resolved IP is 1.1.1.1). When initiating a request to an anycast IP 1.1.1.1, the surveillance device 1 selects a node with the shortest AS path from the surveillance device 1, which is assumed to be the server in Moscow (of which the entity server IP is 3.3.3.3), in process 0 in
[0050] When receiving the response from the server (IP 3.3.3.3) in Moscow, the surveillance device 1 extracts the response content, and combines the BGP anycast IP, the physical machine IP, the status code, and the response time into a piece of detection data. As such, detecting for an http of a surveillance point to BGP anycast IP can be completed. By analogy, the http detection for the BGP anycast IP can be detected by a large number of surveillance devices to obtain the detection index data of the BGP anycast IP and the corresponding physical IP. Through big data analytics, the service status of the entire BGP anycast service cluster can be obtained.
[0051] In the present embodiment, when the surveillance device initiates the http request detection to the BGP anycast IP, after receiving the http request, the entity server writes the entity server IP into the response content, and after receiving the response content, the surveillance device correlates detection index (status code, the response time, etc.) with the entity server IP and BGP anycast IP to complete the collection of the detection index data.
[0052]
[0053] In the present embodiment, when the surveillance device initiates a DNS detection-request to the BGP anycast IP, after receiving the DNS request, the entity server writes the entity server IP into the response content, and after receiving the response content, the surveillance device correlates the detection index (status code, and the response time, etc.) with the entity server IP and BGP anycast IP to complete the collection of the detection index data.
[0054] The detection devices according to embodiments of the present disclosure usually can be multiple and distributed in a BGP anycast cluster network.
[0055] The device in the present embodiment may be applied to perform the method according to the method embodiment shown in
[0056] For the device as described above, the detection-request information may be an http protocol detection-request information; the detection-request information may also be DNS protocol detection-request information; and the detection index data may further include a status code and a response time of the entity server.
[0057] The implementation principle of the device in the present embodiment and the technical effects to be achieved are discussed above, and thus are not described herein again.
[0058]
[0059]
[0060] In some embodiments, the memory 703 stores a program 705 that can be executed by the processor 701. The program 705 includes executing a detection method for detecting the QoS of the BGP Anycast cluster, the method includes that:
[0061] the detection device receives detection-task information for detecting the QoS of the BGP Anycast cluster, where the detection-task information includes a BGP Anycast IP address;
[0062] the detection device sends a detection-request information to the BGP Anycast IP address, where the detection-request information is received by an entity server in the BGP Anycast cluster that has a shortest AS path from the detection device;
[0063] the detection device receives a detection-response information sent by the entity server in the BGP Anycast cluster, where the detection-response information includes an IP address of the entity server; and
[0064] the detection device generates detection index data according to the sent detection-request information and the received detection-response information, where the detection index data includes the BGP Anycast IP address and the IP address of the entity server.
[0065] The above-mentioned program for performing the detection method for detecting the QoS of the BGP anycast cluster, preferably, the detection-request information is http protocol detection-request information.
[0066] The above-mentioned program for performing the detection method for detecting the QoS of the BGP anycast cluster, preferably, the detection-request information is DNS protocol detection-request information.
[0067] The above-mentioned program for performing the detection method for detecting the QoS of the BGP anycast cluster, preferably, the detection index data further includes a status code and a response time of the entity server.
[0068] The above-mentioned program for performing the detection method for detecting the QoS of the BGP anycast cluster, preferably, after the detection device generates the detection index data according to the sent detection-request information and the received detection-response information, the method further includes that:
[0069] the detection index data is analyzed to obtain the QoS data of the entity server in the BGP anycast cluster.
[0070] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, and are not limited thereto; although the present disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still make modifications for the technical solutions described in the foregoing embodiments, or equivalent replacements for some of the technical features. The essence of the technical solutions corresponding to those modifications and replacements is not deviated from the spirit and scope of the technical solutions of the embodiments of the present disclosure.