Data transmission path determination method and device, equipment, storage medium and product
By receiving the interface identifier and target public network address in the encapsulated message and using the management device to generate the data transmission path, the problems of large computing resource consumption and low efficiency in the existing technology are solved, efficient data transmission path determination and traffic scheduling are achieved, and the user experience of network services is improved.
Patent Information
- Application Number
- CN202410434633.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-11
- Publication Date
- 2025-10-21
AI Technical Summary
Existing technologies consume large amounts of computing resources and are inefficient and costly when determining data transmission paths between data centers and network service providers, making it difficult to achieve efficient traffic scheduling and improve network service experience.
By receiving the interface identifier and target public network address in the encapsulated message, the management device generates a data transmission path, determines the data transmission path between the specified public network address and the data center, reduces computing resource consumption, and improves path determination efficiency.
It achieves targeted determination of data transmission paths, reduces processing costs, improves path determination efficiency, and enhances the user experience of network services.
Smart Images

Figure CN120825445A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method for determining a data transmission path, an apparatus for determining a data transmission path, a computer device, a computer-readable storage medium, and a computer program product. Background Art
[0002] An internet data center (IDC) is a platform that provides customers with basic internet platform services and various value-added services (e.g., domain name system services, load balancing systems, etc.). A data center is typically connected to one or more network service providers, such as Internet Service Providers (ISPs), which offer customers internet access, information services, and value-added services.
[0003] The user experience can be improved by performing operations such as traffic scheduling and failover on the ISP. This requires determining the data transmission path for traffic passing through the ISP to access the data center (i.e., the traffic enters the data center via a specific ISP). To determine the data transmission path, a splitter can be deployed on the data center's communication links to split and analyze all incoming traffic, obtaining access and egress information for all incoming traffic, and then determining the data transmission path for the traffic. However, due to the large volume of incoming traffic, this method consumes a large amount of computing resources, resulting in high costs and low processing efficiency. Summary of the Invention
[0004] The embodiments of the present application provide a method, apparatus, device, storage medium, and product for determining a data transmission path, which can specifically determine the data transmission path between a specified public network address and a data center, effectively improving the efficiency of transmission path determination and reducing processing costs, thereby facilitating traffic scheduling based on the data transmission path and improving the user experience of network services.
[0005] In one aspect, an embodiment of the present application provides a method for determining a data transmission path, the method comprising:
[0006] Receiving an encapsulated message sent by the first internal router, the encapsulated message including a reply message, the reply message being sent by a test device whose address is the target public network address, and the reply message being determined based on a test message sent to the test device by a detection server deployed in the target data center;
[0007] Acquire an interface identifier of a target transmission interface from the encapsulated message, where the target transmission interface is a transmission interface used by the first internal router to receive the reply message forwarded by the target network service provider, and the interface identifier of the target transmission interface is generated by a management device;
[0008] The target public network address and the interface identifier of the target transmission interface are sent to the management device. The interface identifier of the target transmission interface is used by the management device to determine the data transmission path from the test device to the target data center, and the data transmission path includes the target network service provider.
[0009] On the other hand, an embodiment of the present application provides another method for determining a data transmission path, the method comprising:
[0010] Receive the target public network address and the interface identifier of the target transmission interface sent by the detection server deployed in the target data center; the interface identifier of the target transmission interface is obtained by the detection server from the encapsulated message, and the target transmission interface is the transmission interface used by the first internal router to receive the reply message forwarded by the target network service provider; the encapsulated message is sent by the first internal router to the detection server, and the encapsulated message includes a reply message sent by a test device whose address is the target public network address, and the reply message is determined based on the test message sent by the detection server to the test device;
[0011] determining, based on the interface identifier of the target transmission interface and interface identifier mapping information, the target network service provider that communicates with the first internal router through the target transmission interface, the interface identifier mapping information including router interface mapping information corresponding to each network service provision point associated with the target data center, the router interface mapping information including the interface identifier corresponding to the transmission interface of the internal router in the network service provision point, the interface identifier being generated based on a correspondence between the transmission interface of the internal router in the network service provision point and the network service provider in the network service provision point;
[0012] A data transmission path from the test device to the target data center is determined according to the target network service provider and the target public network address.
[0013] Accordingly, an embodiment of the present application provides a data transmission path determination device, the data transmission path determination device comprising:
[0014] a receiving unit, configured to receive an encapsulated message sent by the first internal router, the encapsulated message including a reply message, the reply message being sent by a test device whose address is the target public network address, and the reply message being determined based on a test message sent to the test device by a detection server deployed in the target data center;
[0015] an acquiring unit, configured to acquire an interface identifier of a target transmission interface from the encapsulated message, wherein the target transmission interface is a transmission interface used by the first internal router to receive the reply message forwarded by the target network service provider, and the interface identifier of the target transmission interface is generated by a management device;
[0016] A sending unit is used to send the target public network address and the interface identifier of the target transmission interface to the management device, and the interface identifier of the target transmission interface is used by the management device to determine the data transmission path from the test device to the target data center, and the data transmission path includes the target network service provider.
[0017] In one implementation, the acquiring unit is further configured to perform the following steps:
[0018] Determining network quality indicator data according to the test message and the reply message, wherein the network quality indicator data includes one or both of transmission delay and packet loss rate;
[0019] The network quality indicator data is sent to the management device, where the network quality indicator data is used to indicate the quality of network services provided by the target network service provider to devices in a target external network segment, where the target external network segment is the network segment to which the target public network address belongs.
[0020] In one implementation, the encapsulated message is encapsulated based on the Virtual Extended Local Area Network (VELAN) protocol, and the message header of the encapsulated message includes a reserved field and a group identifier field; the obtaining unit is configured to obtain the interface identifier of the target transmission interface from the encapsulated message, specifically for performing the following steps:
[0021] Acquire the value of the reserved field and the value of the group identifier field from the message header of the encapsulated message;
[0022] The interface identifier of the target transmission interface is determined according to the value of the reserved field and the value of the group identifier field.
[0023] In one implementation, the encapsulated message further includes the intranet address of the detection server; and the acquiring unit is configured to, when receiving the encapsulated message sent by the first internal router, specifically perform the following steps:
[0024] An encapsulated message sent by the first internal router based on the intranet address of the detection server is received.
[0025] In one implementation, the receiving unit is further configured to perform the following steps:
[0026] receiving a path information acquisition request sent by the management device, wherein the path information acquisition request is used to obtain a data transmission path between the target data center and a device located in a target external network segment;
[0027] Obtaining a target public network address from the path information acquisition request;
[0028] A test message is generated according to the target public network address, and the test message is sent to the test device.
[0029] In one implementation, the receiving unit is configured to generate a test message according to the target public network address, and is specifically configured to perform the following steps:
[0030] receiving a service request sent by the test device;
[0031] Determining port information of a communication port of the test device according to the service request, where the communication port of the test device is used for data transmission based on a transmission control protocol;
[0032] A test message is determined according to the target public network address and the port information.
[0033] In one implementation, the acquiring unit is further configured to perform the following steps:
[0034] If the quality of the network service provided by the target network service provider meets the quality requirement, performing a first traffic scheduling operation on the target network service provider to increase the number of devices that obtain service traffic from the target network service provider;
[0035] If the quality of the network service provided by the target network service provider does not meet the quality requirement, a second traffic scheduling operation is performed on the target network service provider to reduce the number of devices that obtain service traffic from the target network service provider, and an abnormality detection is performed on the target network service provider.
[0036] Accordingly, an embodiment of the present application provides another device for determining a data transmission path, the device comprising:
[0037] A receiving unit, configured to receive a target public network address and an interface identifier of a target transmission interface sent by a detection server deployed in a target data center; the interface identifier of the target transmission interface is obtained by the detection server from an encapsulated message, and the target transmission interface is a transmission interface used by a first internal router to receive a reply message forwarded by a target network service provider; the encapsulated message is sent by the first internal router to the detection server, and the encapsulated message includes a reply message sent by a test device whose address is the target public network address, and the reply message is determined based on a test message sent by the detection server to the test device;
[0038] a matching unit, configured to determine, based on an interface identifier of the target transmission interface and interface identifier mapping information, the target network service provider that communicates with the first internal router through the target transmission interface, the interface identifier mapping information including router interface mapping information corresponding to each network service provision point associated with the target data center, the router interface mapping information including an interface identifier corresponding to a transmission interface of an internal router in the network service provision point, the interface identifier being generated based on a correspondence between the transmission interface of the internal router in the network service provision point and the network service provider in the network service provision point;
[0039] A determining unit is used to determine a data transmission path from the test device to the target data center according to the target network service provider and the target public network address.
[0040] In one implementation, the determining unit is further configured to perform the following steps:
[0041] Obtain the target public network address from the detection address database based on the target external network segment;
[0042] Generate a path information acquisition request according to the target public network address;
[0043] The path information acquisition request is sent to the detection server, where the path information acquisition request is used to instruct the detection server to send the test message to the test device.
[0044] In one implementation, the determining unit is further configured to perform the following steps:
[0045] generating router interface mapping information of the second internal router in the target network service provision point according to a correspondence between a transmission interface of the second internal router in the target network service provision point and a network service provider in the target network service provision point;
[0046] The target network service provision point is any network service provision point associated with the target data center;
[0047] The router interface mapping information of the second internal router is sent to the second internal router; the interface identifier included in the router interface mapping information of the second internal router is used by the second internal router to generate an encapsulation message including the interface identifier and a reply message.
[0048] Accordingly, an embodiment of the present application provides a computer device, comprising:
[0049] a processor suitable for implementing a computer program;
[0050] A computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor and executing the above-mentioned method for determining a data transmission path.
[0051] Accordingly, an embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is read and executed by a processor of a computer device, the computer device executes the above-mentioned method for determining a data transmission path.
[0052] Accordingly, an embodiment of the present application further provides a computer program product, comprising a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium and executes the computer program, causing the computer device to perform the above-described method for determining a data transmission path.
[0053] In the present application, the detection server deployed in the target data center can receive the encapsulated message sent by the internal router, and obtain the interface identifier and the target public network address from the encapsulated message, and send the target public network address to the management device, and the management device can determine the data transmission path from the target public network address to the target data center based on the interface identifier and the target public network address. Through the data transmission path determination method provided by the embodiment of the present application, the data transmission path from a specified public network address to the data center can be determined in a targeted manner, that is, the data transmission path detection of any public network address covering the entire network can be achieved, which has good universality; the data transmission path (i.e., the inbound transmission path) from the test equipment to the data center can be determined based on a small amount of data, without the need to analyze all the traffic data of the data center, effectively reducing the cost of determining the inbound transmission path and improving the efficiency of determining the inbound transmission path; the accurate inbound transmission path can be determined, which is conducive to the subsequent traffic scheduling of the target network service provider based on the inbound transmission path, thereby improving the network service quality and enhancing the user experience of the network service. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0055] Figure 1 This is a schematic diagram of the system architecture of a data transmission path determination system provided by an embodiment of the present application;
[0056] Figure 2 This is a flow chart of a method for determining a data transmission path provided by an embodiment of the present application;
[0057] Figure 3 This is a schematic diagram of an encapsulated message provided in an embodiment of the present application;
[0058] Figure 4 is a schematic diagram of a method for determining a data transmission path provided by an embodiment of the present application;
[0059] Figure 5 is a flowchart of another method for determining a data transmission path provided by an embodiment of the present application;
[0060] Figure 6 This is a schematic diagram of interface identifier mapping information provided by an embodiment of the present application;
[0061] Figure 7 is a schematic diagram of another method for determining a data transmission path provided by an embodiment of the present application;
[0062] Figure 8 This is a flowchart of another method for determining a data transmission path provided by an embodiment of the present application;
[0063] Figure 9 This is a structural block diagram of a data transmission path determination device provided by an embodiment of the present application;
[0064] Figure 10 This is a structural block diagram of another device for determining a data transmission path provided by an embodiment of the present application;
[0065] Figure 11 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0066] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0067] It should be noted that the terms "first" and "second" in the embodiments of this application are for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a technical feature designated as "first" or "second" may explicitly or implicitly include at least one such feature.
[0068] To facilitate understanding, we first provide a brief explanation of some nouns:
[0069] Virtual eXtensible Local Area Network (VxLAN) is an extension of the Virtual Local Area Network (VLAN) protocol. VxLAN is essentially a tunneling technology that establishes a logical tunnel on the IP network between the source and destination network devices. Sending packets are then specifically encapsulated and forwarded through this tunnel.
[0070] Internet Service Provider: Internet Service Provider, referred to as ISP, also known as network service provider, is a telecommunications operator that provides comprehensive Internet access services, information services and value-added services to terminal devices.
[0071] External router: Edge Router, referred to as ER, is a router used to allow a local area network or devices to access the Internet together.
[0072] Internal Router: Internal Router, referred to as IR, refers to a router whose all connected network segments are in the same area.
[0073] Network service provision point: Point of Presence, referred to as PoP, is a network access point established by a network service provider at a specific geographical location. A PoP can include multiple different network service providers.
[0074] Round-trip time (RTT) refers to the time it takes for a sender to send data and receive a confirmation message from the receiver when a communication connection is established based on the TCP protocol.
[0075] Some internet companies establish points of presence (PoPs) in various locations, interconnecting these PoPs with other network service providers. To improve the user experience and quickly detect network quality issues, they need to clearly understand the data transmission paths from different public network addresses to the data center. This typically involves deploying optical splitters on the data center's communication links to capture all incoming traffic, perform optical splitting and traffic analysis on it, and obtain access and egress information for all incoming traffic, thereby determining the traffic's data transmission paths. This approach consumes significant computing resources, is costly, and has low processing efficiency.
[0076] Based on this, an embodiment of the present application provides a method for determining a data transmission path, which can receive an encapsulated message sent by a first internal router, the encapsulated message including a reply message, the reply message is sent by a test device whose address is the target public network address, and the reply message is determined based on a test message sent to the test device by a detection server deployed in a target data center; the interface identifier of the target transmission interface is obtained from the encapsulated message, the target transmission interface is the transmission interface used by the first internal router to receive the reply message forwarded by the target network service provider, and the interface identifier of the target transmission interface is generated by a management device; the target public network address and the interface identifier of the target transmission interface are sent to the management device, and the interface identifier of the target transmission interface is used by the management device to determine the data transmission path from the test device to the target data center, and the data transmission path includes the target network service provider. Through the method provided by the embodiment of the present application, the data transmission path between the specified public network address and the data center can be determined in a targeted manner, which effectively improves the efficiency of determining the transmission path and reduces the processing cost, thereby being conducive to realizing traffic scheduling according to the data transmission path and improving the user experience of the network service.
[0077] The data transmission path determination method provided in the embodiment of the present application can be applied to the field of artificial intelligence. Artificial Intelligence (AI) is a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. Artificial intelligence attempts to understand the essence of intelligence and produce a new intelligent machine that can react in a similar way to human intelligence. When performing traffic scheduling for network service providers (or network service providers) in a data center, artificial intelligence technology can be used to perform traffic scheduling, thereby improving scheduling efficiency and network service quality. The data transmission path determination method provided in the present application can be applied to scenarios where traffic scheduling is implemented using artificial intelligence technology. Specifically, the data transmission path determination method provided in the embodiment of the present application can be used to determine the data transmission path between the target public network address and the target data center. The data transmission path can include the target network service provider; after determining the data transmission path, artificial intelligence technology can be used to perform traffic scheduling on the target network service provider, thereby improving the quality of network services.
[0078] The data transmission path determination method provided in the embodiment of the present application can also be applied to the field of cloud computing. Cloud computing is a computing model that distributes computing tasks on a resource pool composed of a large number of computers, so that various application systems can obtain computing power, storage space and information services as needed. The cloud computing resource pool mainly includes: computing devices (virtualized machines, including operating systems), storage devices, and network devices. The data transmission path determination method provided in the embodiment of the present application is applied to a data center that provides cloud computing services. Specifically, if a data center is used to provide cloud computing services, the method provided in the present application can be used to obtain a data transmission path between a public network address and the data center, and the data transmission path includes a target network service provider; if it is determined that the network service quality obtained by the terminal device corresponding to the public network address is poor, traffic scheduling and anomaly detection can be performed on the target network service provider, thereby improving the user experience of the network service.
[0079] The architecture of the data transmission path determination system provided in the embodiments of the present application will be introduced below with reference to the accompanying drawings.
[0080] See Figure 1 , which is a schematic diagram of the system architecture of a data transmission path determination system provided by an embodiment of the present application, the data transmission path determination system includes a management device 101, a target data center 102, a network service provider 103 (such as Figure 1As shown, the network service provision point 103 may include network service provision point 1, ..., network service provision point M, where M is an integer greater than 1, and any network service provision point may include an internal router and an external router), and the test device 104. Among them:
[0081] The management device 101 can generate interface identifier mapping information, which includes router interface mapping information corresponding to each network service provider point associated with the data center, and the router interface mapping information can include the interface identifier corresponding to the transmission interface of the internal router in the network service provider point. The management device 101 can also interact with the detection server in the target data center 102 to determine the data transmission path and network service quality data. The management device 101 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0082] The target data center 102 may include multiple detection servers, and different detection servers correspond to different internal network segments (also called intranet segments). Figure 1 As shown, the target data center 102 includes detection server 1 (corresponding to internal network segment 1), detection server 2 (corresponding to internal network segment 2), ..., detection server N (corresponding to internal network segment N), where N is an integer greater than 2. The detection server in the target data center 102 is used to initiate data transmission path detection and send the acquired data to the management device 101. It should be noted that the data transmission path determination system may include multiple data centers, and each data center can interact with the management device 101 for data. Figure 1 Only one of the multiple data centers is shown, namely the target data center. A data center is a globally coordinated network of specialized devices used to transmit, accelerate, display, compute, and store data information on the Internet infrastructure.
[0083] The network service provision point 103 may include one or more network service provision points, and any network service provision point may include an internal router and one or more external routers (such as Figure 1As shown, the network service provider 1 includes an internal router 1, an external router 1, and an external router 2. The external router 1 corresponds to the network service provider ISP1, and the external router 2 corresponds to the network service provider ISP2. The internal router and the external router can exchange data; the internal router can exchange data with the detection server in the target data center 102, and the external router can exchange data with the devices in the Internet. One external router can correspond to one network service provider (that is, the devices in the Internet can access the target data center through the network service provider in the network service provider). The data transmission path determination system can include multiple network service providers, such as Figure 1 As shown, in addition to the network service provider 1, the data transmission path determination system may also include a network service provider M, such as Figure 1 As shown, the network service provider point M includes an internal router 2, an external router 3 and an external router 4. The external router 3 corresponds to the network service provider ISP3, and the external router 4 corresponds to the network service provider ISP4.
[0084] The test device 104 can exchange data with an external router corresponding to the network service provider via the Internet. The test device can be a terminal device, specifically a handheld device with communication functions (such as a smartphone, tablet computer), a computing device (such as a personal computer (PC), an in-vehicle terminal, an intelligent voice interaction device, a wearable device, or other intelligent device, etc., but is not limited to these.
[0085] The following will explain in detail Figure 1 The working principle of the data transmission path determination system shown is:
[0086] The management device 101 can generate interface identifier mapping information, which may include router interface mapping information corresponding to each network service provider point associated with a data center in the data transmission path determination system. The router interface mapping information may include an interface identifier corresponding to a transmission interface of an internal router in the network service provider point. The interface identifier is generated based on the correspondence between the transmission interface of the internal router in the network service provider point and the network service provider in the network service provider point.
[0087] For example, the network service provision points associated with the target data center are network service provision point 1 and network service provision point M; the management device can generate router interface mapping information corresponding to network service provision point 1 and router interface mapping information corresponding to network service provision point M, wherein the router interface mapping information corresponding to network service provision point 1 includes the interface identifier corresponding to the transmission interface of internal router 1 (such as Figure 1As shown, the interface identifier of the transmission interface of the internal router 1 for communicating with the external router 1 is 1 (i.e., label=1), and the interface identifier of the transmission interface of the internal router 1 for communicating with the external router 2 is 2 (i.e., label=2); the router interface mapping information corresponding to the network service provider M includes the interface identifier corresponding to the transmission interface of the internal router 2 (i.e., label=2). Figure 1 As shown, the interface identifier of the transmission interface of the internal router 2 for communicating with the external router 3 is 3 (ie, label=3), and the interface identifier of the transmission interface of the internal router 2 for communicating with the external router 4 is 4 (ie, label=4).
[0088] After determining the router interface mapping information corresponding to each network service provider point, the management device 101 can send the router interface mapping information to the internal routers in the corresponding network service provider point (i.e., to internal router 1 and internal router 2). The management device 101 can determine the target public network address, and the device corresponding to the target public network address is the test device 104. The management device 101 can generate a path information acquisition request based on the target public network address and send the path information acquisition request to the detection server 2 in the target data center 102.
[0089] The detection server 2 can send a test message to the test device 104 (the data transmission path from the detection server 2 to the test device 104 and the data transmission path from the test device 104 to the target data center 102 can be the same or different). After receiving the test message, the test device 104 can generate a reply message based on the test message. Figure 1 As shown, the reply message can be transmitted via the Internet to external router 2 in network service provider 1, which corresponds to network service provider ISP2. External router 2 sends the reply message to internal router 1 via the target transmission interface of internal router 1. Internal router 1 can determine the interface identifier (label = 2) of the target transmission interface based on the target transmission interface and router interface mapping information. Internal router 1 determines the encapsulated message based on the interface identifier of the target transmission interface and the reply message.
[0090] The internal router 1 sends the encapsulated message to the detection server 2. The detection server 2 can obtain the interface identifier of the target transmission interface from the encapsulated message, and send the target public network address and the interface identifier of the target transmission interface to the management device 101. The management device 101 determines the target network service provider (i.e., network service provider ISP2) that communicates with the internal router 1 through the target transmission interface based on the interface identifier of the target transmission interface and the interface identifier mapping information. The management device 101 can determine the data transmission path from the test device 104 to the target data center 102 based on the target network service provider and the target public network address. The management device 101 can perform traffic scheduling based on the determined data transmission path (for example, traffic scheduling for the network service provider ISP2), thereby improving the quality of network services and enhancing the user experience of network services.
[0091] Through the data transmission path determination method provided in the embodiment of the present application, the data transmission path between the specified public network address and the data center can be determined in a targeted manner, which effectively improves the efficiency of transmission path determination and reduces processing costs, thereby facilitating traffic scheduling based on the data transmission path and improving the user experience of network services.
[0092] It is understood that the schematic diagram of the data transmission path determination system described in the embodiment of the present application is intended to more clearly illustrate the data transmission path determination method of the embodiment of the present application, and does not constitute a limitation on the data transmission path determination method provided in the embodiment of the present application. It is known to those skilled in the art that Figure 1 The number of data centers, detection servers, network service providers, external routers, and test equipment in the examples is merely illustrative. Any number of devices and nodes can be configured based on business implementation needs. Furthermore, as system architecture evolves and new business scenarios emerge, the data transmission path determination method provided in the embodiments of this application will also be applicable to similar technical problems.
[0093] It should be noted that the collection and processing of relevant data in this application should be strictly in accordance with the requirements of relevant laws and regulations when applied in practice, and the informed consent or separate consent of the personal information subject should be obtained. Subsequent data use and processing should be carried out within the scope of authorization of laws and regulations and the personal information subject.
[0094] See Figure 2 , Figure 2This is a flow chart of a method for determining a data transmission path provided in an embodiment of the present application. The method for determining a data transmission path can be implemented by the detection server in the target data center 102, or by other devices capable of implementing the method. The following description uses the method for determining a data transmission path implemented by the detection server in the target data center 102 as an example. The flow of the method for determining a data transmission path provided in an embodiment of the present application includes, but is not limited to:
[0095] S201. Receive an encapsulated message sent by a first internal router, where the encapsulated message includes a reply message. The reply message is sent by a test device whose address is a target public network address, and the reply message is determined based on a test message sent to the test device by a detection server deployed in a target data center.
[0096] In an embodiment of the present application, the data transmission path determination system may include multiple data centers, and one or more detection servers may be deployed in one data center. When it is necessary to detect the data transmission path between the target public network address and the target data center (any one of the multiple data centers), the detection server deployed in the target data center may send a test message to a test device whose address is the target public network address, and the test device may send a reply message based on the test message. The detection server may receive an encapsulated message sent by the first internal router, and the encapsulated message may include a reply message sent by the test device.
[0097] In one embodiment, the first internal router and the detection server can communicate based on a VxLAN tunnel, and the encapsulated packets sent by the first internal router can be encapsulated based on the VxLAN protocol. For example, the first internal router and the detection server can be encapsulated using VxLAN, and routing and automatic creation of the VxLAN tunnel can be completed through the protocol. The detection server can receive the encapsulated packets sent by the first internal router through the VxLAN tunnel.
[0098] It should be noted that one or more detection servers can be deployed in a data center, and one detection server can correspond to an internal network segment. The detection server corresponding to a certain internal network segment can be used to send a test message to a test device whose address is the target public network address, so that the method provided by this application can be used to determine the data transmission path from the target public network address to the internal network segment of the target data center. In some cases, the target external network segment (i.e., the target public network segment) to which the target public network address belongs can be determined, and the method provided in the embodiment of this application can determine the data transmission path from the target external network segment to the target data center (or the internal network segment of the target data center). Through the method provided in the embodiment of this application, the data transmission path from any network segment (or public network address) to the data center can be determined, which can cover the entire network and has good universality.
[0099] In one embodiment, before receiving the encapsulated message sent by the first internal router, the detection server may further perform the following steps: receiving a path information acquisition request sent by a management device, the path information acquisition request being used to obtain a data transmission path between a target data center and a device located in a target external network segment; the detection server may receive a path information acquisition request sent by a management device, the path information acquisition request being used to instruct the detection server to perform corresponding processing to obtain a data transmission path between a target data center and a device located in a target external network segment, the target external network segment being the network segment to which the target public network address belongs, and the device located in the target external network segment including a test device. The target public network address is obtained from the path test request, and the detection server may obtain the target public network address from the path test request. A test message may be generated based on the target public network address and the test message may be sent to the test device. The detection server may generate a test message based on the target public network address (the test message may also include the public network address of the detection server), and the test message may be sent to the test device. Through the method provided in the embodiment of the present application, a test message can be sent to any public network address according to application requirements, thereby facilitating the subsequent acquisition of the data transmission path from the public network address to the data center.
[0100] It should be noted that the target public network address can be the Internet Protocol Address (IP address) of the test device, and the test message can be the message ping sent by the Internet Packet Groper (Packet Internet Groper) configured in the detection server (in this case, the detection server implements ping detection). Ping is a service command that works in the application layer of the TCP / IP network architecture. It mainly sends an Echo request message in the Internet Control Message Protocol (ICMP) to the target device with a specific IP address to test whether the target device is reachable and the relevant status of the target device. The test message can also be a message sent by the detection server to the test device when the detection server and the test device establish a communication connection based on the Transmission Control Protocol (TCP) or the User Datagram Protocol (UDP) (in this case, the detection server implements TCP or UDP detection). For example: the test message can be a message sent by the detection server during the three-way handshake between the detection server and the test device to establish a TCP connection.
[0101] In one embodiment, generating a test message based on a target public network address can be achieved by: receiving a service request from a test device, which can send a service request to a data center to obtain a corresponding service, such as a cloud storage service, a cloud computing service, etc. The service request can include relevant information about the test device, such as the test device's public network address, a communication port number, etc. Port information of the test device's communication port is determined based on the service request. The test device's communication port is used for data transmission based on the Transmission Control Protocol. A detection server in the data center can determine the port information of the test device's communication terminal based on the service request. A test message is determined based on the target public network address and port information. The detection server determines the test message based on the target public network address and port information.
[0102] When it is necessary to detect the data transmission path from a certain network service acquisition object (i.e., a test device) to a data center, the method provided in the embodiment of the present application can be used to determine relevant information based on the service request sent by the test device, and generate a test message. For example: the detection server of the data center can obtain the service request sent by the network service acquisition device during the application process, and determine the public network address and port information of the communication port of the network service acquisition device according to the service request. The detection server can generate a test message based on the public network address and port information of the communication port of the network service acquisition device, and send the test message to the network service acquisition device, so that the detection server can implement TCP or UDP detection. Through the method provided in the embodiment of the present application, a variety of different detection methods (different test messages) can be adopted, which is conducive to the determination of the data transmission path in different scenarios and has good universality.
[0103] In one embodiment, the internal router and the detection server can communicate based on the Virtual Extended Local Area Network (VxLAN) protocol, and the internal router and the detection server can communicate based on the intranet address. Specifically, the encapsulated message can also include the intranet address of the detection server, and the implementation method of receiving the encapsulated message sent by the first internal router can be: receiving the encapsulated message sent by the first internal router based on the intranet address of the detection server. The first internal router can communicate with the detection server through a VxLAN tunnel, that is, the detection server uses VxLAN tunnel encapsulation, which makes the deployment of the detection server not restricted by region and networking, and can be deployed flexibly.
[0104] S202. Obtain an interface identifier of a target transmission interface from the encapsulated message, where the target transmission interface is the transmission interface used by the first internal router to receive the reply message forwarded by the target network service provider, and the interface identifier of the target transmission interface is generated by a management device.
[0105] In an embodiment of the present application, after receiving the encapsulated message sent by the first internal router, the detection server can obtain the interface identifier of the target transmission interface from the encapsulated message. The target transmission interface is the transmission interface used by the first internal router to receive the reply message forwarded by the target network service provider. The interface identifier of the target transmission interface is generated by the management device. In the data transmission path determination system, in the same network service provider point, the correspondence between the transmission interface of the external router (i.e., the network service provider) and the internal router is usually fixed, and the interface identifier of the transmission interface of any internal router is unique, and there is no duplicate interface identifier. Therefore, based on the interface identifier of the target transmission interface, the target transmission interface can be determined, and then the external router (i.e., the network service provider) connected to the target transmission interface can be determined. Through the method provided in the embodiment of the present application, the interface identifier of the target transmission interface can be determined, which is conducive to the subsequent determination of the data transmission path based on the interface identifier.
[0106] In one embodiment, the encapsulated message is encapsulated based on the Virtual Extended Local Area Network (VxLAN) protocol, and the message header of the encapsulated message includes a reserved field and a group identification field. The implementation method for obtaining the interface identification of the target transmission interface from the encapsulated message can be: obtaining the value of the reserved field and the value of the group identification field from the message header of the encapsulated message, and the detection server can obtain the required value from the fixed field of the message header of the encapsulated message, that is, obtaining the value of the reserved field and the group identification field of the message header. Based on the value of the reserved field and the value of the group identification field, the interface identification of the target transmission interface is determined. The values in the reserved field and the group identification field are usually binary data. The detection server can convert and process the values in the reserved field and the group identification field to obtain the interface identification of the target transmission interface.
[0107] In the message encapsulated based on the virtual extended LAN, the reserved field and group identification field included in the message header are usually not used (no specific value). The method provided by the present application can use these two fields to store the interface identifier, so that the interface identifier of the target transmission interface can be transmitted from the first internal router to the detection server. The internal router can add the interface identifier of the target transmission interface to the reserved field and group identification field of the message header when generating the encapsulated message. After the detection server receives the encapsulated message, it can obtain the interface identifier from the fixed position of the encapsulated message. The method provided in the embodiment of the present application can be beneficial for the subsequent management device to determine the data transmission path according to the interface identifier, thereby effectively reducing the amount of data processing and improving data processing efficiency.
[0108] See Figure 3, this figure is a schematic diagram of an encapsulated message provided in an embodiment of the present application. The encapsulated message may be sent by the first internal router to the detection server. The encapsulated message may be encapsulated based on the virtual extended local area network protocol. The encapsulated message includes a message header and a reply message, and the message header may include an outer Ethernet header (OuterEthernet header), an outer IP header (Outer IP header), an outer UDP header (Outer UDP header) and a VxLAN header (VxLAN header), wherein the outer IP header may include the intranet address of the first internal router and the intranet address of the detection server; the VxLAN header may include a VxLAN identification field (VxLAN Flags, a total of 8 bytes), a first reserved field (Reversed, a total of 8 bytes), a group identification field (Group ID, a total of 16 bytes), a VxLAN network identification field (VNI, a total of 24 bytes) and a second reserved field (Reversed, a total of 8 bytes).
[0109] The description of each field in the VxLAN header can be shown in Table 1.
[0110] Table 1:
[0111]
[0112] As shown in Table 1, VxLAN Flags is a flag bit, and its value is generally 00000000, without any tag; the first reserved field is used to store the interface identifier of the transmission interface together with the group identifier field; the group identifier field is used to store the interface identifier of the transmission interface together with the first reserved field; VNI (i.e., VxLAN network identifier field) is the VxLAN network identifier, which is used to distinguish VxLAN segments, consists of 24 bytes, and supports up to 16M network segments; the second reserved field is unused.
[0113] When encapsulating a packet, the first internal router may store the interface identifier (24 bytes in total) of the target transmission interface in the first reserved byte and the group identifier field in the VxLAN header (i.e., the first reserved byte and the group identifier byte may be used to indicate the interface identifier). For example, if the interface identifier of the target transmission interface is 1, then after storing the interface identifier of the target transmission interface in the first reserved byte and the group identifier field in the VxLAN header, the value of the first reserved byte is "00000000", and the value of the group identifier field is "0000000000000001".
[0114] The encapsulated message may also include a reply message, which may include an inner Ethernet header, an inner IP header, and a payload (the actual business data portion contained in the reply message), wherein the inner IP header may include the target public network address of the test device and the public network address of the detection server. Through the method provided in the embodiment of the present application, a specific field in the message header can be used to store the interface identifier, which is conducive to the transmission of the interface identifier from the internal router to the detection server, thereby facilitating the subsequent determination of the data transmission path based on the interface identifier.
[0115] S203. Send the target public network address and the interface identifier of the target transmission interface to the management device. The interface identifier of the target transmission interface is used by the management device to determine the data transmission path from the test device to the target data center, and the data transmission path includes the target network service provider.
[0116] In an embodiment of the present application, the detection server can send the target public network address and the interface identifier of the target data transmission interface to the management device. The interface identifier of the target transmission interface is used by the management device to determine the data transmission path from the test device to the target data center. The data transmission path includes the target network service provider. That is, through the method provided in the embodiment of the present application, it can be determined that when data or traffic is transmitted from the test device to the target data center, it is necessary to pass through the target network service provider, and then the network service provider providing network services to the test device can be determined as the target network service provider. Through the method provided in the embodiment of the present application, the interface identifier can be obtained by analyzing a small amount of data, which is conducive to determining the data transmission path from a specific public network address to the data center based on the interface identifier, which is conducive to improving data processing efficiency and effectively reducing the cost consumed in determining the data transmission path.
[0117] In one embodiment, the data transmission path determination method provided by the present application may further include the following steps: determining network quality indicator data based on the test message and the reply message, the network quality indicator data including one or both of transmission delay and packet loss rate; sending the network quality indicator data to the management device, the network quality indicator data being used to indicate the quality of network services provided by the target network service provider to devices in the target external network segment, the target external network segment being the network segment to which the target public network address belongs. The detection server may determine the network quality indicator data based on the test message and the reply message, the network quality indicator data including one or both of transmission delay (for example, ping delay, RTT (round-trip time) involved in implementing TCP detection, etc.) and packet loss rate. The transmission delay may indicate the network transmission rate between the detection server and the test device, and the packet loss rate may indicate the reachability between the detection server and the test device to a certain extent. For example, the detection device may start timing after sending the test message and stop timing after receiving the encapsulated message sent by the internal router, and the resulting duration may be the transmission delay.
[0118] After determining the network quality indicator data, the detection server can send the network quality indicator data to the management device. The network quality indicator data can indicate the quality of the network services provided by the target network service provider to devices in the target external network segment. The target external network segment is the network segment to which the target public network address belongs. The method provided in the embodiments of the present application can obtain network quality indicator data, which is beneficial for subsequent traffic scheduling and fault switching based on the network quality indicator data, thereby improving network quality.
[0119] In one embodiment, the data transmission path determination method provided by the present application may further include the following steps: if the quality of the network service provided by the target network service provider meets the quality requirements, a first traffic scheduling operation is performed on the target network service provider to increase the number of devices that obtain service traffic from the target network service provider; if the quality of the network service provided by the target network service provider does not meet the quality requirements, a second traffic scheduling operation is performed on the target network service provider to reduce the number of devices that obtain service traffic from the target network service provider, and anomaly detection is performed on the target network service provider. If the quality of the network service provided by the target network service provider meets the quality requirements (for example, the transmission delay is small, or the packet loss rate is low), a first traffic scheduling operation may be performed on the target network service provider to increase the number of devices that obtain service traffic from the target network service provider. For example, the priority of the target network service provider in the system may be increased so that more terminal devices access the data center through the target network service provider.
[0120] If the quality of the network services provided by the target network service provider does not meet the quality requirements (for example, the transmission delay is large, or the packet loss rate is high), a second traffic scheduling operation can be performed on the target network service provider to reduce the number of devices that obtain service traffic from the target network service provider. For example, the target network service provider's priority in the system can be lowered to reduce the number of terminal devices accessing the data center through the target network service provider, or the network services provided by the target network service provider can be stopped. The target network service provider is detected for anomalies to ensure the quality of the network services obtained by the terminal devices, thereby ensuring the user experience.
[0121] See Figure 4 , this figure is a schematic diagram of a data transmission path determination method provided in an embodiment of the present application. Figure 4 Including management equipment (which can correspond to the above Figure 1 The management device 101 in the detection server (which may correspond to the above Figure 1 Detection server 2), the first internal router (which can correspond to the above Figure 1 Internal router 1), target network service provider (which can correspond to the above Figure 1 External router 2) and test equipment (which can correspond to the above Figure 1 The test device 104 in the figure) is a target public network address. The detection server can send a test message to the test device via the Internet (the data transmission path from the detection server to the test device can be the same as or different from the data transmission path from the test device to the detection server). The test device can determine a reply message based on the test message and send the reply message to the target network service provider via the Internet. The target network service provider can send the reply message to the first internal router via the target transmission interface of the first internal router. The first internal router can determine the interface identifier of the target transmission interface and encapsulate the interface identifier of the target transmission interface and the reply message based on the virtual extended local area network (VxLAN) protocol to obtain an encapsulated message.
[0122] The first internal router can send the encapsulated message to the detection server, and the detection server can obtain the interface identifier of the target transmission interface from the encapsulated message, and can also determine the network quality index data based on the encapsulated message and the test message. The network quality index data may include one or both of the transmission delay and the packet loss rate. The detection server can send the target public network address, the interface identifier of the target transmission interface, and the network quality index data to the management device, so that the management device can determine the data transmission path from the test device to the target data center based on the target public network address and the interface identifier of the target transmission interface, as well as the quality of the network service provided by the target network service provider to the test device. The detection server can also perform traffic scheduling on the target network service provider based on the quality of the network service provided by the target network service provider. Through the method provided in the embodiment of the present application, a certain network address or network segment can be detected in a targeted manner, thereby obtaining the data transmission path and network service quality data.
[0123] Through the data transmission path determination method provided in the embodiment of the present application, a detection can be initiated to a specific public network address or network segment, and the data transmission path can be determined based on the returned message, which can realize data transmission path detection covering the entire network. At the same time, only a small number of data processing steps are required to determine the data transmission path, which can effectively improve data processing efficiency and reduce the cost of determining the data transmission path; the transmission of interface identifiers can be realized based on the virtual extended LAN protocol, which reduces the data transmission volume, saves network resources, and is also conducive to accurately determining the data transmission path based on the interface identifier; the detection server can be deployed based on the virtual extended LAN protocol, which is not restricted by region and networking and can be flexibly deployed; network quality indicator data can be determined, and network service provider traffic scheduling and anomaly detection can be realized based on the network quality indicator data, which is conducive to improving network service quality and enhancing user experience.
[0124] See Figure 5 , Figure 5 This is a flow chart of another method for determining a data transmission path provided in an embodiment of the present application. This method can be implemented by the management device 101 in the above-mentioned data transmission path determination system, or by other devices capable of implementing this method. The following description uses the implementation of this method by the management device 101 as an example. The process of the method for determining a data transmission path provided in an embodiment of the present application includes, but is not limited to:
[0125] S501. Receive the target public network address and the interface identifier of the target transmission interface sent by the detection server deployed in the target data center; the interface identifier of the target transmission interface is obtained by the detection server from the encapsulated message, and the target transmission interface is the transmission interface used by the first internal router to receive the reply message forwarded by the target network service provider; the encapsulated message is sent by the first internal router to the detection server, and the encapsulated message includes a reply message sent by a test device whose address is the target public network address, and the reply message is determined based on the test message sent by the detection server to the test device.
[0126] In an embodiment of the present application, the management device can receive the target public network address and the interface identifier of the target transmission interface sent by the detection server deployed in the target data center. The interface identifier of the target transmission interface is obtained by the detection server from the encapsulated message. The target transmission interface is the transmission interface used by the first internal router to receive the reply message forwarded by the target network service provider. The encapsulated message is sent by the first internal router to the detection server. The encapsulated message may include a reply message sent by a test device whose address is the target public network address. The reply message is determined based on the test message sent by the detection server to the test device.
[0127] In one embodiment, the data transmission path determination method provided by the present application may further include the following steps: obtaining the target public network address from the detection address library according to the target external network segment; generating a path information acquisition request according to the target public network address; and sending the path information acquisition request to the detection server, where the path information acquisition request is used to instruct the detection server to send a test message to the test device. Assuming that it is necessary to detect the data transmission path from the target external network segment to the target internal network segment of the target data center (i.e., the internal network segment to which the detection server belongs), the management device may obtain the target public network address from the detection address library according to the target external network segment, where the network segment to which the target public network address belongs is the target external network segment. The management device may generate a path information acquisition request according to the target public network address, and send the path information acquisition request to the detection server, where the path information acquisition request may be used to instruct the detection server to send a test message to the test device. Through the method provided in the embodiment of the present application, a path information acquisition request may be sent to the detection server so that the detection server completes the detection of the data transmission path.
[0128] For example: the management device can respond to the detection request initiated by the object (used to request the data transmission path from the target external network segment to the target internal network segment), determine the target data center from multiple data centers, and determine the detection server corresponding to the target internal network segment from the target data center, and determine the target public network address based on the target external network segment, and then determine the path information acquisition request.
[0129] S502: Determine the target network service provider that communicates with the first internal router through the target transmission interface based on the interface identifier and interface identifier mapping information of the target transmission interface, wherein the interface identifier mapping information includes router interface mapping information corresponding to each network service provision point associated with the target data center, and the router interface mapping information includes the interface identifier corresponding to the transmission interface of the internal router in the network service provision point. The interface identifier is generated based on the correspondence between the transmission interface of the internal router in the network service provision point and the network service provider in the network service provision point.
[0130] In an embodiment of the present application, the management device can determine the target network service provider that communicates with the first internal router through the target transmission interface based on the interface identifier of the target interface and the interface identifier mapping information. The interface identifier mapping information may include the router interface mapping information corresponding to each network service provider point associated with the target data center; the router interface mapping information includes the interface identifier corresponding to the transmission interface of the internal router in any network service provider point, and the interface identifier is generated based on the correspondence between the transmission interface of the internal router in the network service provider point and the network service provider in the network service provider point. Through the method provided in the embodiment of the present application, the target network service provider can be accurately and quickly determined based on the interface identifier, which is conducive to quickly determining the data transmission path and improving data processing efficiency.
[0131] See Figure 6 , this figure is a schematic diagram of interface identifier mapping information provided in an embodiment of the present application. Figure 6 The interface identification mapping information shown can be based on Figure 1 The data transmission path shown is determined by the system. Figure 6 The interface identifier mapping information includes router interface mapping information corresponding to two network service provision points (NSP 1 and NSP M) associated with the target data center 102. The router interface mapping information corresponding to NSP 1 includes: the interface name "IR1 Interface 1" (i.e., interface 1 of internal router 1) corresponds to an interface identifier (label) of "1" and the corresponding network service provider is "ISP 1" (i.e., external router 1); the interface name "IR1 Interface 2" (i.e., interface 1 of internal router 1) corresponds to an interface identifier (label) of "2" and the corresponding network service provider is "ISP 2" (i.e., external router 2).
[0132] The router interface mapping information corresponding to network service provider point M includes: the interface name "IR2 Interface 1" (i.e., interface 1 of internal router 2) corresponds to an interface identifier (label) of "3" (i.e., external router 3), and the corresponding network service provider is "ISP3"; the interface name "IR2 Interface 2" corresponds to an interface identifier (label) of "4" (i.e., external router 4), and the corresponding network service provider is "ISP4." It should be noted that the management device also includes router interface mapping information corresponding to each network service provider point associated with other data centers in the data transmission path determination system, and the interface identifiers in each router interface mapping information stored in the management device are different. The unique interface identifier facilitates the subsequent management device to determine the corresponding target network service provider based on the interface identifier of the target transmission interface, thereby determining the data transmission path.
[0133] In one embodiment, the data transmission path determination method provided in the embodiments of the present application may further include the following steps: generating router interface mapping information for the second internal router based on the correspondence between the transmission interface of the second internal router in the target network service provision point and the network service provider in the target network service provision point; the target network service provision point is any network service provision point associated with the target data center; sending the router interface mapping information of the second internal router to the second internal router; the interface identifier included in the router interface mapping information of the second internal router is used by the second internal router to generate an encapsulated message including the interface identifier and a reply message. The target network service provision point may be any network service provision point associated with the target data center, and the target data center may be any one of the one or more data centers included in the data transmission path determination system.
[0134] The management device can generate the router interface mapping information of the second internal router based on the correspondence between the transmission interface of the second internal router in the target network service provider point and the network service provider in the target network service provider point. The second internal router can be the first internal router or an internal router different from the first internal router. The management device can send the router interface mapping information of the second internal router to the second internal router. The interface identifier included in the router interface mapping information of the second internal router is used by the second internal router to generate an encapsulated message containing the interface identifier and the reply message. Through the method provided in the embodiment of the present application, the corresponding router interface mapping information can be sent to the corresponding router, so that when the router forwards the reply message, the interface identifier and the reply message can be encapsulated into an encapsulated message, thereby realizing the transmission of the interface identifier, which is beneficial for the subsequent management device to determine the data transmission path according to the interface identifier.
[0135] S503: Determine a data transmission path from the test device to the target data center according to the target network service provider and the target public network address.
[0136] In an embodiment of the present application, the management device can determine the data transmission path from the test device to the target data center based on the target network service provider and the target public network address, that is, the test device accesses the target data center through the target network service provider. In some cases, the target external network segment can be determined based on the target public network address, and the target internal network segment can be determined based on the internal network segment to which the detection server belongs. The management device can then determine the data transmission path from the target external network segment to the target internal network segment. Through the method provided in the embodiment of the present application, the data transmission path can be quickly and accurately determined based on the interface identifier, and the computing resources consumed are relatively small, effectively reducing the cost consumed in determining the data transmission path.
[0137] In one embodiment, the data transmission path determination method provided in the embodiments of the present application may further include the following steps: receiving network quality indicator data sent by a detection server; performing a network quality determination based on the network quality indicator data to obtain a quality determination result, the quality determination result being used to indicate whether the quality of the network service provided by the target network service provider meets the quality requirements; and sending the quality determination result to the detection server so that the detection server performs corresponding traffic scheduling operations on the target network service provider. A management device may receive the network quality indicator data sent by the detection server and, based on the network quality indicator data, determine the quality of the network service provided by the target network service provider to obtain a determination result. The management device may send the determination result to the detection server so that the detection server performs traffic scheduling operations for the target network service provider. The management device may also directly adjust and perform failover operations on the target network service provider based on the determination result. For example, if the management device determines that the quality of the network service provided by the target network service provider does not meet the quality requirements and that the target network service provider has an anomaly, the management device may restrict the network service provided by the target network service provider and perform further anomaly detection on the target network service provider. Through the method provided in the embodiments of the present application, the network service quality of the network service provider can be determined based on the network quality indicator data, thereby enabling reasonable traffic scheduling and failover operations, which is conducive to improving the user experience.
[0138] See Figure 7 , this figure is a schematic diagram of another data transmission path determination method provided in an embodiment of the present application. Figure 7 The data transmission path determination method shown can be based on Figure 1 The data transmission path determination system shown (hereinafter referred to as the transmission system) is implemented. Figure 7 Including management equipment (which can correspond to the above Figure 1 The management device 101 in the detection server (which may correspond to the above Figure 1 Detection server 2), the first internal router (which can correspond to the above Figure 1 Internal router 1), target network service provider (which can correspond to the above Figure 1 External router 2) and test equipment (which can correspond to the above Figure 1 The test device 104 in the example, wherein the address of the test device is the target public network address.
[0139] The management device can determine the interface identifier mapping information (the content of the interface identifier mapping information can be as described above) based on the corresponding relationship between the transmission interface of the internal router in each network service provider point of the transmission system and the network service provider. Figure 6 The management device can send the router interface mapping information corresponding to each network service provider point to the internal router in the corresponding network service provider point (such as Figure 7 As shown, the management device sends the router interface mapping information to the first internal router).
[0140] The management device can determine the target public network address, generate a path information acquisition request based on the target public network address, and send the path information acquisition request to the detection server. The detection server can generate a test message and send the test message to the test device. The test device can send a reply message to the target network service provider, and the target network service provider responds to the target transmission interface "Interface 2" of the first internal router (i.e., the above-mentioned Figure 6 The reply message is forwarded to the first internal router ("IR1 interface 2" in the target transmission interface). Based on the target transmission interface and the router interface mapping information sent by the management device, the first internal router determines that the interface identifier of the target transmission interface is "2." The first internal router encapsulates the interface identifier of the target transmission interface and the reply message to generate an encapsulated message. The first internal router sends the encapsulated message to the detection server.
[0141] The detection server can execute the steps described in steps S201-S203 above, and send the target public network address, the interface identifier of the target transmission interface, and the network quality indicator data to the management device. The management device can determine the data transmission path from the test device to the data center based on the target public network address and the interface identifier of the target transmission interface, and can determine the quality of the network service provided by the target network service provider to the test device based on the network quality indicator data and the determined data transmission path. Through the method provided in the embodiment of the present application, the determination of the data transmission path can be achieved quickly and accurately, and the quality of the network service provided by the network service provider can also be determined, which is conducive to ensuring the quality of the network service and improving the user experience.
[0142] The data transmission path determination method provided by the embodiment of the present application can generate a unique interface identifier, which is convenient for using the interface identifier to determine the corresponding network service provider, thereby reducing the amount of data processing and saving computing resources. According to the detection requirements, a detection can be initiated to a specific public network address or network segment, thereby achieving data transmission path detection covering the entire network. At the same time, only a small number of data processing steps are required to determine the data transmission path, which can effectively improve data processing efficiency and reduce the cost of determining the data transmission path; the quality of the network service provided by the network service provider can be determined based on the network quality indicator data, which is conducive to traffic scheduling and fault adjustment for the network service provider, thereby ensuring the quality of the network service and improving the user experience.
[0143] See Figure 8 , Figure 8 A flow chart of another method for determining a data transmission path provided in an embodiment of the present application. The data transmission path determination method can be performed by the above Figure 1 The data transmission path determination system shown is implemented. The process of the data transmission path determination method provided in the embodiment of the present application includes but is not limited to:
[0144] S801: A management device generates router interface mapping information of a first internal router.
[0145] In the embodiment of the present application, the target data center is any one of the one or more data centers included in the determination of the data transmission path. The target data center may be associated with one or more network service provision points. The target network service provision point is any network service provision point associated with the target data center. The management device may generate the router interface mapping information of the first internal router according to the correspondence between the transmission interface of the first internal router of the network service point and the network service provider in the network service provision point (the router interface mapping information may be as described above). Figure 6 shown).
[0146] S802: The management device sends the router interface mapping information of the first internal router to the first internal router.
[0147] In the embodiment of the present application, the management device may send the router interface mapping information of the first internal router to the first internal router, so that the first internal router can subsequently determine the interface identifier of the transmission interface according to the router interface mapping information.
[0148] S803: The management device generates a path information acquisition request according to the target public network address.
[0149] In an embodiment of the present application, when it is necessary to detect the data transmission path from the target external network segment to the target data center, the management device can obtain the target public network address from the detection address library based on the target external network segment, and generate a path information acquisition request based on the target public network address. The path information acquisition request can be used to instruct the detection server to send a test message to the test device.
[0150] S804: The management device sends a path information acquisition request to the detection server.
[0151] In an embodiment of the present application, the management device may send a path information acquisition request to a detection server. The path information acquisition request may also include detection method information, such as ping detection, TCP detection, UDP detection, etc. The detection server may implement different types of detection based on different detection method information.
[0152] S805: The detection server generates a test message according to the target public network address and sends the test message to the test device.
[0153] In an embodiment of the present application, the detection server can obtain the target public network address from the path test request and generate a test message based on the target public network address. The detection server can send the test message to the test device. In some cases, the detection server can receive a service request from the test device and determine the port information of the test device's communication port based on the service request; determine the test message based on the target public network address and port information, and send the test message to the test device.
[0154] In one embodiment, the detection server can initiate a ping probe to the test device. In this case, the test message can be an ICMP echo request message sent to a target device with a specific IP address. After receiving the test message, the test device determines the reply message as a ping reply message based on the test message. The detection server can also initiate a TCP or UDP probe to the test device. In this case, the test message can be the handshake message sent by the detection server to the test device when establishing a TCP / UDP communication connection between the detection server and the test device.
[0155] For example, when establishing a TCP communication connection between a detection server and a test device, the detection server can first set the SYN flag to 1 (indicating a connection initiation), randomly generate a value seq, and send a data packet containing SYN and seq (which can be a test message) to the test device. The detection server then waits for confirmation from the test device. After receiving the data packet containing SYN and seq, the test device can determine that the detection server has requested a connection based on the SYN flag being 1. The test device can then set both the SYN and ACK flags to 1, randomly generate a value seq, and send a data packet containing ACK and seq (which can be a reply message) to the detection server to confirm the connection request.
[0156] After the detection server receives the data packet containing ACK and seq, it determines whether ACK is 1. If so, it sets the flag ACK to 1 and sends the data packet containing ACK (which can be a test message) to the test device. After the test device determines that the data in the received data packet meets the requirements, the test device and the detection server enter the corresponding state and complete the three-way handshake.
[0157] S806: The first internal router receives the reply message forwarded by the target network service provider using the target transmission interface.
[0158] In an embodiment of the present application, the correspondence between the transmission interface of the internal router in the network service provider point and the external router is usually fixed. The first internal router can use the target transmission interface to receive the reply message forwarded by the target network service provider. The reply message is determined by the test device based on the test message after the test device receives the test message sent by the detection server.
[0159] S807: The first internal router determines the interface identifier of the target transmission interface, and determines the encapsulation message according to the interface identifier of the target transmission interface and the reply message.
[0160] In an embodiment of the present application, the first internal router stores the router interface mapping information sent by the management device, and the router interface mapping information may include the interface identifiers of the various transmission interfaces of the first internal router. The first internal router can determine the interface identifier of the target transmission interface based on the target transmission interface and the router interface mapping information. The first internal router can encapsulate the interface identifier and the reply message of the target transmission interface based on the virtual extended local area network (VxLAN) protocol to obtain an encapsulated message. The content contained in the encapsulated message can be as described above. Figure 5 shown.
[0161] S808: The first internal router sends the encapsulated message to the detection server.
[0162] In an embodiment of the present application, data transmission can be performed between the first internal router and the detection server based on a VxLAN tunnel, and the first internal router can send the encapsulated message to the detection server based on the intranet address of the detection server.
[0163] S809: The detection server obtains the interface identifier of the target transmission interface and determines network quality indicator data.
[0164] In an embodiment of the present application, the detection server can obtain the interface identifier of the target transmission interface from the encapsulated message, for example, from the reserved field and the group identifier field in the message header of the encapsulated message. The detection server can also obtain the target public network address from the reply message of the encapsulated message. The detection server can determine network quality indicator data based on the encapsulated message and the test message. The network quality indicator data may include one or both of transmission delay and packet loss rate. The network quality indicator data can be used to indicate the quality of network services provided by the target network service provider to devices in the target external network segment, and the target external network segment is the network segment to which the target public network address belongs.
[0165] S810: The detection server sends the target public network address, the interface identifier of the target transmission interface, and the network quality indicator data to the management device.
[0166] In an embodiment of the present application, the detection server can send the target public network address, the interface identifier of the target transmission interface, and the network quality indicator data to the management device so that the management device can determine the data transmission path and judge the network service quality based on the network indicator data.
[0167] S811. The management device determines a data transmission path from the test device to the target data center and the quality of the network service provided by the target network service provider.
[0168] In this embodiment of the present application, the management device can determine, based on the interface identifier and interface identifier mapping information of the target transmission interface, a target network service provider for communicating with the first internal router via the target transmission interface. Based on the target network service provider and the target public network address, the management device can determine a data transmission path from the test device to the target data center. This data transmission path can instruct the test device to access the target data center via the target network service provider.
[0169] The management device can also determine the quality of the network services provided by the target network service provider based on the determined data transmission path and network quality indicator data, so as to perform traffic scheduling and fault switching operations on the target network service provider based on the quality of the network services, thereby ensuring that the quality of the network services provided by the data transmission path determination system is high, which is conducive to improving the user experience.
[0170] The data transmission path determination method provided by the embodiment of the present application can generate a unique interface identifier, which is convenient for determining the corresponding network service provider using the interface identifier, thereby reducing the amount of data processing and saving computing resources. According to the detection requirements, detection can be initiated to a specific public network address or network segment, thereby realizing data transmission path detection covering the entire network. At the same time, only a small number of data processing steps are required to determine the data transmission path, which can effectively improve data processing efficiency and reduce the cost of determining the data transmission path; the transmission of the interface identifier can be realized based on the virtual extended LAN protocol, which reduces the amount of data transmission, saves network resources, and is also conducive to accurately determining the data transmission path according to the interface identifier; the detection server can be deployed based on the virtual extended LAN protocol, which is not restricted by region and networking and can achieve flexible deployment; network quality indicator data can be determined, and traffic scheduling and anomaly detection of the network service provider can be realized based on the network quality indicator data, thereby helping to improve the quality of network services and enhance the user experience.
[0171] See Figure 9 , Figure 9 This is a structural block diagram of a data transmission path determination device provided in an embodiment of the present application. Figure 9 The data transmission path determination device shown can correspond to the above Figure 1 The detection server in .
[0172] The device comprises:
[0173] A receiving unit 901 is configured to receive an encapsulated message sent by a first internal router, where the encapsulated message includes a reply message, where the reply message is sent by a test device whose address is a target public network address, and where the reply message is determined based on a test message sent to the test device by a detection server deployed in a target data center;
[0174] an acquiring unit 902, configured to acquire an interface identifier of a target transmission interface from the encapsulated message, where the target transmission interface is a transmission interface used by the first internal router to receive the reply message forwarded by the target network service provider, and the interface identifier of the target transmission interface is generated by a management device;
[0175] Sending unit 903 is used to send the target public network address and the interface identifier of the target transmission interface to the management device. The interface identifier of the target transmission interface is used by the management device to determine the data transmission path from the test device to the target data center, and the data transmission path includes the target network service provider.
[0176] In one embodiment, the acquiring unit 902 is further configured to:
[0177] Determining network quality indicator data according to the test message and the reply message, wherein the network quality indicator data includes one or both of transmission delay and packet loss rate;
[0178] The network quality indicator data is sent to the management device, where the network quality indicator data is used to indicate the quality of network services provided by the target network service provider to devices in a target external network segment, where the target external network segment is the network segment to which the target public network address belongs.
[0179] In one embodiment, the encapsulated message is encapsulated based on the virtual extended local area network protocol, and the message header of the encapsulated message includes a reserved field and a group identification field; when the obtaining unit 902 obtains the interface identifier of the target transmission interface from the encapsulated message, it is specifically configured to:
[0180] Acquire the value of the reserved field and the value of the group identifier field from the message header of the encapsulated message;
[0181] The interface identifier of the target transmission interface is determined according to the value of the reserved field and the value of the group identifier field.
[0182] In one embodiment, the encapsulated message further includes the intranet address of the detection server; when the obtaining unit 902 receives the encapsulated message sent by the first internal router, it is specifically configured to:
[0183] An encapsulated message sent by the first internal router based on the intranet address of the detection server is received.
[0184] In one embodiment, the receiving unit 901 is further configured to:
[0185] receiving a path information acquisition request sent by the management device, wherein the path information acquisition request is used to obtain a data transmission path between the target data center and a device located in a target external network segment;
[0186] Obtaining a target public network address from the path information acquisition request;
[0187] A test message is generated according to the target public network address, and the test message is sent to the test device.
[0188] In one embodiment, when generating a test message according to the target public network address, the receiving unit 901 is specifically configured to:
[0189] receiving a service request sent by the test device;
[0190] Determining port information of a communication port of the test device according to the service request, where the communication port of the test device is used for data transmission based on a transmission control protocol;
[0191] A test message is determined according to the target public network address and the port information.
[0192] In one embodiment, the obtaining unit 902 is further configured to: if the quality of the network service provided by the target network service provider meets the quality requirement, perform a first traffic scheduling operation on the target network service provider to increase the number of devices that obtain service traffic from the target network service provider;
[0193] If the quality of the network service provided by the target network service provider does not meet the quality requirement, a second traffic scheduling operation is performed on the target network service provider to reduce the number of devices that obtain service traffic from the target network service provider, and an abnormality detection is performed on the target network service provider.
[0194] The data transmission path determination device provided in the embodiment of the present application can initiate detection to a specific public network address or network segment, and can determine the data transmission path based on the returned message, so that data transmission path detection covering the entire network can be achieved. At the same time, only a small number of data processing steps are required to determine the data transmission path, which can effectively improve data processing efficiency and reduce the cost of determining the data transmission path; the transmission of interface identifiers can be achieved based on the virtual extended LAN protocol, which reduces the amount of data transmission, saves network resources, and is also conducive to accurately determining the data transmission path based on the interface identifier; the detection server can be deployed based on the virtual extended LAN protocol, without being restricted by region and networking, and flexible deployment can be achieved; network quality indicator data can be determined, and network service provider traffic scheduling and anomaly detection can be achieved based on the network quality indicator data, which is conducive to improving network service quality and enhancing user experience.
[0195] See Figure 10 , Figure 10 This is a structural block diagram of another data transmission path determination device provided in an embodiment of the present application. Figure 10 The data transmission path determination device shown can correspond to the above Figure 1 The management device 101 in the embodiment of the present invention comprises:
[0196] A receiving unit 1001 is configured to receive a target public network address and an interface identifier of a target transmission interface sent by a detection server deployed in a target data center; the interface identifier of the target transmission interface is obtained by the detection server from an encapsulated message, and the target transmission interface is a transmission interface used by a first internal router to receive a reply message forwarded by a target network service provider; the encapsulated message is sent by the first internal router to the detection server, and the encapsulated message includes a reply message sent by a test device whose address is the target public network address, and the reply message is determined based on a test message sent by the detection server to the test device;
[0197] a matching unit 1002 configured to determine, based on the interface identifier of the target transmission interface and interface identifier mapping information, the target network service provider that communicates with the first internal router through the target transmission interface, the interface identifier mapping information including router interface mapping information corresponding to each network service provision point associated with the target data center, the router interface mapping information including the interface identifier corresponding to the transmission interface of the internal router in the network service provision point, the interface identifier being generated based on a correspondence between the transmission interface of the internal router in the network service provision point and the network service provider in the network service provision point;
[0198] The determining unit 1003 is configured to determine a data transmission path from the test device to the target data center according to the target network service provider and the target public network address.
[0199] In one embodiment, the determining unit 1003 is further configured to:
[0200] Obtain the target public network address from the detection address database based on the target external network segment;
[0201] Generate a path information acquisition request according to the target public network address;
[0202] The path information acquisition request is sent to the detection server, where the path information acquisition request is used to instruct the detection server to send the test message to the test device.
[0203] In one embodiment, the determining unit 1003 is further configured to:
[0204] generating router interface mapping information of the second internal router in the target network service provision point according to a correspondence between a transmission interface of the second internal router in the target network service provision point and a network service provider in the target network service provision point;
[0205] The target network service provision point is any network service provision point associated with the target data center;
[0206] The router interface mapping information of the second internal router is sent to the second internal router; the interface identifier included in the router interface mapping information of the second internal router is used by the second internal router to generate an encapsulation message including the interface identifier and a reply message.
[0207] It can be understood that the functions of each functional unit of the data transmission path determination device in the embodiment of the present application can be specifically implemented according to the data transmission path determination method in the above-mentioned method embodiment. The specific implementation process can refer to the relevant description in the above-mentioned data transmission path determination method embodiment, and will not be repeated here.
[0208] The data transmission path determination device provided by the embodiment of the present application can generate a unique interface identifier, which is convenient for using the interface identifier to determine the corresponding network service provider, thereby reducing the amount of data processing and saving computing resources. According to the detection requirements, a detection can be initiated to a specific public network address or network segment, thereby achieving data transmission path detection covering the entire network. At the same time, only a small number of data processing steps are required to determine the data transmission path, which can effectively improve data processing efficiency and reduce the cost of determining the data transmission path; the quality of the network service provided by the network service provider can be determined based on the network quality indicator data, which is conducive to traffic scheduling and fault adjustment for the network service provider, thereby ensuring the quality of the network service and improving the user experience.
[0209] Based on the above method and device embodiments, the present application provides a computer device. Figure 11 , Figure 11 It is a structural diagram of a computer device provided in an embodiment of the present application. Figure 11 The computer device shown includes at least a processor 1101, an input interface 1102, an output interface 1103, and a computer-readable storage medium 1104. The processor 1101, the input interface 1102, the output interface 1103, and the computer-readable storage medium 1104 may be connected via a bus or other means.
[0210] The computer readable storage medium 1104 can be stored in the memory of the computer device. The computer readable storage medium 1104 is used to store a computer program. The computer program includes computer instructions (such as Figure 111, 2, ..., n, where n is an integer greater than 2), processor 1101 is configured to execute a computer program stored on computer-readable storage medium 1104. Processor 1101 (or CPU (Central Processing Unit)) is the computing and control core of a computer device and is suitable for implementing computer programs, specifically loading and executing computer programs to implement corresponding method flows or corresponding functions.
[0211] The embodiment of the present application also provides a computer-readable storage medium (Memory), which is a memory device in a computer device for storing programs and data. It is understandable that the computer-readable storage medium here can include both built-in storage media in the computer device and, of course, extended storage media supported by the computer device. The computer-readable storage medium provides a storage space that stores the operating system of the computer device. In addition, a computer program suitable for being loaded and executed by the processor is also stored in the storage space. It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory (Non-Volatile Memory), such as at least one disk memory; optionally, it can also be at least one computer-readable storage medium located away from the aforementioned processor.
[0212] In one embodiment, the computer device may be the above-mentioned Figure 1 In a specific implementation, the processor 1101 can load and execute the computer program stored in the computer-readable storage medium 1104 to implement the above-mentioned Figure 2 In a specific implementation, the computer program in the computer-readable storage medium 1104 is loaded by the processor 1101 and executes the following steps:
[0213] Receiving an encapsulated message sent by the first internal router, the encapsulated message including a reply message, the reply message being sent by a test device whose address is the target public network address, and the reply message being determined based on a test message sent to the test device by a detection server deployed in the target data center;
[0214] Acquire an interface identifier of a target transmission interface from the encapsulated message, where the target transmission interface is a transmission interface used by the first internal router to receive the reply message forwarded by the target network service provider, and the interface identifier of the target transmission interface is generated by a management device;
[0215] The target public network address and the interface identifier of the target transmission interface are sent to the management device. The interface identifier of the target transmission interface is used by the management device to determine the data transmission path from the test device to the target data center, and the data transmission path includes the target network service provider.
[0216] In one embodiment, when the computer program in the computer-readable storage medium 1104 is loaded and executed by the processor 1101, it is further configured to perform the following steps:
[0217] Determining network quality indicator data according to the test message and the reply message, wherein the network quality indicator data includes one or both of transmission delay and packet loss rate;
[0218] The network quality indicator data is sent to the management device, where the network quality indicator data is used to indicate the quality of network services provided by the target network service provider to devices in a target external network segment, where the target external network segment is the network segment to which the target public network address belongs.
[0219] In one embodiment, the encapsulated message is encapsulated based on the virtual extended local area network protocol, and the message header of the encapsulated message includes a reserved field and a group identification field;
[0220] When the computer program in the computer-readable storage medium 1104 is loaded and executed by the processor 1101 to obtain the interface identifier of the target transmission interface from the encapsulated message, the computer program is specifically configured to perform the following steps:
[0221] Acquire the value of the reserved field and the value of the group identifier field from the message header of the encapsulated message;
[0222] The interface identifier of the target transmission interface is determined according to the value of the reserved field and the value of the group identifier field.
[0223] In one embodiment, the encapsulated message further includes the intranet address of the detection server; when the computer program in the computer-readable storage medium 1104 is loaded and executed by the processor 1101 and receives the encapsulated message sent by the first internal router, the computer program is specifically configured to perform the following steps:
[0224] An encapsulated message sent by the first internal router based on the intranet address of the detection server is received.
[0225] In one embodiment, when the computer program in the computer-readable storage medium 1104 is loaded and executed by the processor 1101, it is further configured to perform the following steps:
[0226] receiving a path information acquisition request sent by the management device, wherein the path information acquisition request is used to obtain a data transmission path between the target data center and a device located in a target external network segment;
[0227] Obtaining a target public network address from the path information acquisition request;
[0228] A test message is generated according to the target public network address, and the test message is sent to the test device.
[0229] In one embodiment, when the computer program in the computer-readable storage medium 1104 is loaded and executed by the processor 1101 to generate a test message according to the target public network address, the computer program is specifically configured to perform the following steps:
[0230] receiving a service request sent by the test device;
[0231] Determining port information of a communication port of the test device according to the service request, where the communication port of the test device is used for data transmission based on a transmission control protocol;
[0232] A test message is determined according to the target public network address and the port information.
[0233] In one embodiment, when the computer program in the computer-readable storage medium 1104 is loaded and executed by the processor 1101, it is further configured to perform the following steps:
[0234] If the quality of the network service provided by the target network service provider meets the quality requirement, performing a first traffic scheduling operation on the target network service provider to increase the number of devices that obtain service traffic from the target network service provider;
[0235] If the quality of the network service provided by the target network service provider does not meet the quality requirement, a second traffic scheduling operation is performed on the target network service provider to reduce the number of devices that obtain service traffic from the target network service provider, and an abnormality detection is performed on the target network service provider.
[0236] In one embodiment, the computer device may be the above-mentioned Figure 1 The data transmission path determination system shown in FIG. 1 shows a management device 101. In a specific implementation, the processor 1101 can load and execute a computer program stored in a computer-readable storage medium 1104 to implement the above-mentioned Figure 5 In a specific implementation, the computer program in the computer-readable storage medium 1104 is loaded by the processor 1101 and executes the following steps:
[0237] Receive the target public network address and the interface identifier of the target transmission interface sent by the detection server deployed in the target data center; the interface identifier of the target transmission interface is obtained by the detection server from the encapsulated message, and the target transmission interface is the transmission interface used by the first internal router to receive the reply message forwarded by the target network service provider; the encapsulated message is sent by the first internal router to the detection server, and the encapsulated message includes a reply message sent by a test device whose address is the target public network address, and the reply message is determined based on the test message sent by the detection server to the test device;
[0238] determining, based on the interface identifier of the target transmission interface and interface identifier mapping information, the target network service provider that communicates with the first internal router through the target transmission interface, the interface identifier mapping information including router interface mapping information corresponding to each network service provision point associated with the target data center, the router interface mapping information including the interface identifier corresponding to the transmission interface of the internal router in the network service provision point, the interface identifier being generated based on a correspondence between the transmission interface of the internal router in the network service provision point and the network service provider in the network service provision point;
[0239] A data transmission path from the test device to the target data center is determined according to the target network service provider and the target public network address.
[0240] In one embodiment, when the computer program in the computer-readable storage medium 1104 is loaded and executed by the processor 1101, it is further configured to perform the following steps:
[0241] Obtain the target public network address from the detection address database based on the target external network segment;
[0242] Generate a path information acquisition request according to the target public network address;
[0243] The path information acquisition request is sent to the detection server, where the path information acquisition request is used to instruct the detection server to send the test message to the test device.
[0244] In one embodiment, when the computer program in the computer-readable storage medium 1104 is loaded and executed by the processor 1101, it is further configured to perform the following steps:
[0245] generating router interface mapping information of a second internal router in a target network service provision point according to a correspondence between a transmission interface of the second internal router in the target network service provision point and a network service provider in the target network service provision point; the target network service provision point being any network service provision point associated with the target data center;
[0246] The router interface mapping information of the second internal router is sent to the second internal router; the interface identifier included in the router interface mapping information of the second internal router is used by the second internal router to generate an encapsulation message including the interface identifier and a reply message.
[0247] In an embodiment of the present application, a unique interface identifier can be generated, which is convenient for determining the corresponding network service provider using the interface identifier, thereby reducing the amount of data processing and saving computing resources. According to the detection requirements, a detection can be initiated to a specific public network address or network segment, thereby realizing data transmission path detection covering the entire network. At the same time, only a small number of data processing steps are required to determine the data transmission path, which can effectively improve data processing efficiency and reduce the cost of determining the data transmission path; the transmission of the interface identifier can be realized based on the virtual extended LAN protocol, which reduces the amount of data transmission, saves network resources, and is also conducive to accurately determining the data transmission path according to the interface identifier; the detection server can be deployed based on the virtual extended LAN protocol, which is not restricted by region and networking and can be flexibly deployed; the network quality indicator data can be determined, and the network service provider's traffic scheduling and anomaly detection can be realized based on the network quality indicator data, thereby helping to improve the quality of network services and enhance the user experience.
[0248] The present application also provides a computer program product, which includes a computer program or computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer program or computer instructions from the computer-readable storage medium, and the processor executes the computer program or computer instructions, causing the computer device to perform the steps of each method embodiment of the present application to implement the data transmission path determination method provided in the present application embodiment. The specific implementation method can be found in the previous description and will not be repeated here.
[0249] Those skilled in the art will appreciate that the units and algorithmic steps of each example described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0250] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program that has a predetermined function and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0251] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted via a computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).
[0252] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any technical object of a person skilled in the art that is within the technical scope disclosed in the present application and that can be easily conceived of by a person skilled in the art is within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection of the claims.
Claims
1. A method for determining a data transmission path, characterized in that: The method comprises: Receiving an encapsulated message sent by the first internal router, the encapsulated message including a reply message, the reply message being sent by a test device whose address is the target public network address, and the reply message being determined based on a test message sent to the test device by a detection server deployed in the target data center; Acquire an interface identifier of a target transmission interface from the encapsulated message, where the target transmission interface is a transmission interface used by the first internal router to receive the reply message forwarded by the target network service provider, and the interface identifier of the target transmission interface is generated by a management device; The target public network address and the interface identifier of the target transmission interface are sent to the management device. The interface identifier of the target transmission interface is used by the management device to determine the data transmission path from the test device to the target data center, and the data transmission path includes the target network service provider.
2. The method according to claim 1, wherein The method further comprises: Determining network quality indicator data according to the test message and the reply message, wherein the network quality indicator data includes one or both of transmission delay and packet loss rate; The network quality indicator data is sent to the management device, where the network quality indicator data is used to indicate the quality of network services provided by the target network service provider to devices in a target external network segment, where the target external network segment is the network segment to which the target public network address belongs.
3. The method according to claim 1 or 2, wherein: The encapsulated message is encapsulated based on the virtual extended local area network protocol, and the message header of the encapsulated message includes a reserved field and a group identification field; The obtaining the interface identifier of the target transmission interface from the encapsulated message includes: Acquire the value of the reserved field and the value of the group identifier field from the message header of the encapsulated message; The interface identifier of the target transmission interface is determined according to the value of the reserved field and the value of the group identifier field.
4. The method according to claim 1 or 2, wherein: The encapsulated message also includes the intranet address of the detection server; and the receiving of the encapsulated message sent by the first internal router includes: An encapsulated message sent by the first internal router based on the intranet address of the detection server is received.
5. The method according to claim 1 or 2, wherein: The method further comprises: receiving a path information acquisition request sent by the management device, wherein the path information acquisition request is used to acquire a data transmission path between the target data center and a device located in a target external network segment; Obtaining a target public network address from the path information acquisition request; A test message is generated according to the target public network address, and the test message is sent to the test device.
6. The method according to claim 5, wherein Generating a test message according to the target public network address includes: receiving a service request sent by the test device; Determining port information of a communication port of the test device according to the service request, where the communication port of the test device is used for data transmission based on a transmission control protocol; A test message is determined according to the target public network address and the port information.
7. The method according to claim 2, wherein The method further comprises: If the quality of the network service provided by the target network service provider meets the quality requirement, performing a first traffic scheduling operation on the target network service provider to increase the number of devices that obtain service traffic from the target network service provider; If the quality of the network service provided by the target network service provider does not meet the quality requirement, a second traffic scheduling operation is performed on the target network service provider to reduce the number of devices that obtain service traffic from the target network service provider, and an abnormality detection is performed on the target network service provider.
8. A method for determining a data transmission path, characterized in that: The method comprises: Receive the target public network address and the interface identifier of the target transmission interface sent by the detection server deployed in the target data center; the interface identifier of the target transmission interface is obtained by the detection server from the encapsulated message, and the target transmission interface is the transmission interface used by the first internal router to receive the reply message forwarded by the target network service provider; the encapsulated message is sent by the first internal router to the detection server, and the encapsulated message includes a reply message sent by a test device whose address is the target public network address, and the reply message is determined based on the test message sent by the detection server to the test device; determining, based on the interface identifier of the target transmission interface and interface identifier mapping information, the target network service provider that communicates with the first internal router through the target transmission interface, the interface identifier mapping information including router interface mapping information corresponding to each network service provision point associated with the target data center, the router interface mapping information including the interface identifier corresponding to the transmission interface of the internal router in the network service provision point, the interface identifier being generated based on a correspondence between the transmission interface of the internal router in the network service provision point and the network service provider in the network service provision point; A data transmission path from the test device to the target data center is determined according to the target network service provider and the target public network address.
9. The method according to claim 8, wherein The method further comprises: Obtain the target public network address from the detection address database based on the target external network segment; Generate a path information acquisition request according to the target public network address; The path information acquisition request is sent to the detection server, where the path information acquisition request is used to instruct the detection server to send the test message to the test device.
10. The method according to claim 8 or 9, characterized in that The method further comprises: generating router interface mapping information of a second internal router in a target network service provision point according to a correspondence between a transmission interface of the second internal router in the target network service provision point and a network service provider in the target network service provision point; the target network service provision point being any network service provision point associated with the target data center; The router interface mapping information of the second internal router is sent to the second internal router; the interface identifier included in the router interface mapping information of the second internal router is used by the second internal router to generate an encapsulation message including the interface identifier and a reply message.
11. A data transmission path determination device, characterized in that: include: A unit for implementing the data transmission path determination method according to any one of claims 1 to 7, or including a unit for implementing the data transmission path determination method according to any one of claims 8 to 10.
12. A computer device, characterized in that: The computer device comprises: a processor suitable for implementing a computer program; A computer-readable storage medium storing a computer program, wherein the computer program is suitable for being loaded by the processor and implementing the data transmission path determination method according to any one of claims 1 to 7, or loading and implementing the data transmission path determination method according to any one of claims 8 to 10.
13. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which is suitable for being loaded by a processor and implementing the data transmission path determination method according to any one of claims 1 to 7, or loading and implementing the data transmission path determination method according to any one of claims 8 to 10.
14. A computer program product, characterized in that The computer program product includes a computer program, and when the computer program is executed by a processor, the method for determining a data transmission path according to any one of claims 1 to 7 is implemented, or the method for determining a data transmission path according to any one of claims 8 to 10 is implemented.