Cloud network data packet tracking method and related equipment

By periodically counting and reporting forwarding information of virtual network devices in the cloud network, long-term tracking and positioning of occasional packet loss is achieved, the problem of large performance overhead in the existing technology is solved, and the availability and service of the network are improved. stability.

CN119052140APending Publication Date: 2024-11-29BEIJING VOLCANO ENGINE TECH CO LTD

Patent Information

Application Number
CN202411535591.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

The prior art has a large performance overhead in the diagnosis of occasional packet loss, affecting network performance, and it is difficult to track and locate the packet loss location for a long time.

Method used

The network controller sends tracking tasks to virtual network devices, marks data packets and periodically forwards information, reducing the performance overhead of packet tracking and realizing long-term tracking and packet loss positioning.

Benefits of technology

Without affecting the overall network performance, it is possible to capture and locate occasional packet loss, improving the availability and service stability of the cloud network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119052140A_ABST
    Figure CN119052140A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a cloud network data packet tracking method and related equipment, and the method comprises the steps: transmitting a tracking task to virtual network equipment on a transmission path through a network controller, the tracking task indicates the initial virtual network equipment to mark a task exclusive identifier for a target data packet, and then the target data packet carrying the task exclusive identifier is forwarded to the terminal virtual network equipment through the intermediate virtual network equipment; indicating each virtual network device on the transmission path to periodically count and report forwarding information about the task exclusive identifier according to a preset period; receiving forwarding information of the task exclusive identifier periodically counted and reported by each virtual network device on the transmission path; restoring a transmission path of the target data packet and statistical data at each position according to the forwarding information; and carrying out packet loss judgment and positioning according to the restored transmission path and the statistical data at each position. The performance overhead of data packet tracking can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The disclosed embodiments relate to the field of cloud computing technology, and more particularly to a cloud network data packet tracing method and related equipment. Background Art

[0002] In a public cloud environment, tenants' computing resources (virtual machines / containers) are connected to an independent virtual network plane and communicate data packets with the outside world through the virtual network to access resources in other locations (virtual machines / containers, cloud services, resources on the Internet, etc.) or provide services to the outside world. If a tenant's data packet is lost in the transmission path, its business will be damaged. In order to shorten the time of business damage and improve the overall availability of services, cloud service providers need to have the diagnostic capability to quickly locate the location of packet loss so that they can take corresponding measures to restore network services in a timely manner.

[0003] Existing technologies can quickly locate the location of packet loss through a short tracking task. If packet loss is an occasional phenomenon, it may not be captured in a short period of time, and it is necessary to keep tracking for a long time. However, since the existing technology requires reporting packet records for each marked packet, the performance overhead on the network forwarding device is large, and keeping tracking for a long time will seriously affect the overall network performance. Therefore, the existing technology is not suitable for the diagnosis of occasional packet loss. Summary of the invention

[0004] The disclosed embodiments provide a cloud network data packet tracing method and related devices, which can reduce the performance overhead of tracing data packets.

[0005] In a first aspect, an embodiment of the present disclosure provides a cloud network data packet tracing method, comprising:

[0006] A tracking task is issued to the virtual network devices on the transmission path through the network controller, wherein the tracking task instructs the starting virtual network device to first mark the target data packet with a task-specific identifier and then forward the target data packet carrying the task-specific identifier to the end virtual network device via the intermediate virtual network device, and instructs each virtual network device on the transmission path to periodically count and report forwarding information about the task-specific identifier according to a preset period;

[0007] Receiving forwarding information of the task-specific identifier periodically counted and reported by each virtual network device on the transmission path;

[0008] Restore the transmission path of the target data packet and the statistical data at each location according to the forwarding information of the task-specific identifier reported by each virtual network device;

[0009] Packet loss is determined and located based on the restored transmission path and statistical data at each location.

[0010] In a second aspect, an embodiment of the present disclosure provides a cloud network data packet tracking device, including:

[0011] A marking unit is used to issue a tracking task to a virtual network device on a transmission path through a network controller, wherein the tracking task instructs the starting virtual network device to first mark a target data packet with a task-specific identifier and then forward the target data packet carrying the task-specific identifier to the end virtual network device via an intermediate virtual network device, and instructs each virtual network device on the transmission path to periodically count and report forwarding information about the task-specific identifier according to a preset period;

[0012] A receiving unit, used to receive forwarding information of a task-specific identifier periodically counted and reported by each virtual network device on the transmission path;

[0013] A path restoration unit, used to restore the transmission path of the target data packet and the statistical data at each location according to the forwarding information of the task-specific identifier reported by each virtual network device;

[0014] The tracking and positioning unit is used to determine and locate packet loss based on the restored transmission path and statistical data at each location.

[0015] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor and a memory;

[0016] The memory stores computer-executable instructions;

[0017] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the cloud network data packet tracing method described in the first aspect and various possible designs of the first aspect.

[0018] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the cloud network data packet tracking method described in the first aspect and various possible designs of the first aspect is implemented.

[0019] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the cloud network data packet tracing method described in the first aspect and various possible designs of the first aspect.

[0020] The cloud network data packet tracking method and related equipment provided by this embodiment include: issuing a tracking task to a virtual network device on a transmission path through a network controller, the tracking task instructs the starting virtual network device to first mark the target data packet with a task-specific identifier and then forward the target data packet carrying the task-specific identifier to the end virtual network device through an intermediate virtual network device, and instructs each virtual network device on the transmission path to periodically count and report forwarding information about the task-specific identifier according to a preset period; receiving the forwarding information of the task-specific identifier periodically counted and reported by each virtual network device on the transmission path; according to the forwarding information of the task-specific identifier reported by each virtual network device, restoring the transmission path of the target data packet and the statistical data at each position; and determining and locating packet loss according to the restored transmission path and the statistical data at each position. In this technical solution, since the forwarding information of the marked target data packet is periodically counted and reported by the virtual network device, and then the packet loss is determined and located by periodic statistical data, the periodic statistics do not need to frequently obtain the forwarding information of each virtual network device, thereby reducing the performance overhead of data packet tracking, so that the tenant data packet can be tracked for a long time without much impact on the overall network performance, so as to capture and locate the occasional packet loss problem. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0022] Figure 1 A schematic diagram of an application scenario of the cloud network data packet tracing method provided by an embodiment of the present disclosure;

[0023] Figure 2 The process of the cloud network data packet tracing method provided by the embodiment of the present disclosure Figure 1 ;

[0024] Figure 3 Schematic diagram of the cloud network data packet tracing method provided by the embodiment of the present disclosure Figure 1 ;

[0025] Figure 4 Schematic diagram of statistical information provided by the embodiment of the present disclosure Figure 1 ;

[0026] Figure 5 Schematic diagram of the cloud network data packet tracing method provided by the embodiment of the present disclosure Figure 2 ;

[0027] Figure 6 Schematic diagram of the cloud network data packet tracing method provided by the embodiment of the present disclosure Figure 3 ;

[0028] Figure 7 A schematic diagram of the structure of a cloud network data packet tracing device provided in an embodiment of the present disclosure;

[0029] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0031] In a public cloud environment, tenants' computing resources (virtual machines / containers) are connected to an independent virtual network plane and communicate data packets with the outside world through the virtual network to access resources in other locations (virtual machines / containers, cloud services, resources on the Internet, etc.) or provide services to the outside world. If a tenant's data packet is lost in the transmission path, its business will be damaged. In order to shorten the time of business damage and improve the overall availability of services, cloud service providers need to have the diagnostic capability to quickly locate the location of packet loss so that they can take corresponding measures to restore network services in a timely manner.

[0032] The existing diagnosis technology for tenant packet loss problems mainly tracks the packet loss path by marking data packets. To locate the specific location of packet loss, it is necessary to restore the transmission path of the data packet and obtain the statistical data of the marked data packets on each network device in the path. For example, if the number of packets received by a network device in the path is less than the number of packets sent by the previous hop network device, the path can be located as a packet loss path and the packet loss location is between two network devices.

[0033] Existing technologies require all virtual network devices in the path to report the reception and transmission records of each marked data packet (the records contain information such as the source and destination device addresses of the data packet), so as to restore the transmission path by associating the data packet information in the records, and obtain the statistical data of the marked data packets on each network device by calculating the number of records at the same position.

[0034] When packet loss continues to occur on the transmission path, existing technologies can quickly locate the location of packet loss through a short tracking task. If packet loss is an occasional phenomenon, it may not be captured in a short period of time, and it is necessary to keep tracking for a long time. However, since the existing technology requires reporting packet records for each marked packet, the performance overhead on the network forwarding device is large, and keeping tracking for a long time will seriously affect the overall network performance. Therefore, the existing technology is not suitable for the diagnosis of occasional packet loss.

[0035] It can be seen that how to reduce the performance overhead of data packet tracking to achieve diagnosis of occasional packet loss is a relatively challenging technical issue in cloud network operation and maintenance.

[0036] In response to the technical problems in the prior art, the inventor's technical conception is as follows: the virtual network forwarding device does not need to report data packet records for each marked data packet, but instead maintains long-term tracking of tenant data packets by counting the marked data packets according to the network topology and then periodically reporting the statistical data; at the same time, the transmission path of the marked data packet and the statistical information of each position therein can be dynamically discovered and restored based on the reported statistical data, thereby realizing the determination and location of packet loss.

[0037] Accordingly, the specific steps may include: first, issuing a tracking task to the virtual network devices on the transmission path through the network controller, the tracking task instructs the starting virtual network device to first mark the target data packet with the task-specific identifier and then forward the target data packet carrying the task-specific identifier to the end virtual network device via the intermediate virtual network device, and instructs each virtual network device on the transmission path to periodically count and report forwarding information about the task-specific identifier according to a preset period. Then, receiving the forwarding information of the task-specific identifier periodically counted and reported by each virtual network device on the transmission path; based on the forwarding information of the task-specific identifier reported by each virtual network device, restoring the transmission path of the target data packet and the statistical data at each position. Finally, based on the restored transmission path and the statistical data at each position, packet loss determination and location are performed.

[0038] In this technical solution, the forwarding information of the marked target data packets is periodically counted and reported through the virtual network device, and then the packet loss is determined and located through the periodic statistical data. The periodic statistics do not need to frequently obtain the forwarding information of each virtual network device, thereby reducing the performance overhead of data packet tracking. In this way, the tenant data packets can be tracked for a long time without much impact on the overall network performance, so as to capture and locate occasional packet loss problems.

[0039] The application scenarios of the embodiments of the present disclosure are explained below:

[0040] The cloud network data packet tracing method provided by the embodiments of the present disclosure can be applied in various cloud network maintenance scenarios. Figure 1 A schematic diagram of an application scenario of a cloud network data packet tracing method provided by an embodiment of the present disclosure. Figure 1 As shown, the display terminal 101 transmits the packet loss location request of the abnormal transmission service to the server 102 via the wireless network. The server 102 receives the packet loss location request for the abnormal transmission service, and performs packet loss determination and location for the abnormal transmission service through the cloud network data packet tracing method provided in the embodiment of the present disclosure. The server 102 returns the packet loss determination and location result corresponding to the abnormal transmission service to the display terminal 101 for display.

[0041] Figure 2 Cloud network data packet tracing method process provided by the embodiment of the present disclosure Figure 1 In the embodiment of the present disclosure, the execution subject of the detection method may be an electronic device for performing abnormal analysis, and the electronic device may be a terminal or a server. Figure 2 As shown, the cloud network data packet tracing method may include:

[0042] S201. A tracking task is issued to the virtual network devices on the transmission path through the network controller. The tracking task instructs the starting virtual network device to first mark the target data packet with a task-specific identifier and then forward the target data packet carrying the task-specific identifier to the end virtual network device via the intermediate virtual network device. In addition, each virtual network device on the transmission path is instructed to periodically count and report forwarding information about the task-specific identifier according to a preset period.

[0043] In the disclosed embodiment, the transmission path may be a network path for transmitting a data packet of a certain service. The first computing node may be forwarded to the second computing node through a virtual network device on the transmission path. Optionally, when the transmission of a data packet of a certain service is abnormal, a tracking task for the data packet of the abnormal service may be sent to the virtual network device on the transmission path through a network controller to determine and locate packet loss on the transmission path.

[0044] In some embodiments, before the tracking task is sent to the virtual network device on the transmission path through the network controller, the tracking task to be sent can be configured first. Accordingly, the process of starting and sending the tracking task can include the following steps (1) to (5):

[0045] (1) receiving tracking task configuration information, the tracking task configuration information at least including a device identifier of a starting virtual network device, a matching rule of a target data packet, and a task-specific identifier for marking the target data packet; and generating a tracking task according to the tracking task configuration information.

[0046] Optionally, the target data packet can be marked and tracked by the DSCP value (Differentiated Services Code Point). For example, if the abnormal transmission service is a transmission service for a certain user, the DSCP value can be marked on the data packet transmitted by the XX user to obtain the marked target data packet.

[0047] In some embodiments, Figure 3 As shown, the user can send tracking task configuration information to the network analysis center in the server through the terminal. The server generates a tracking task according to the tracking task configuration information through the network analysis center.

[0048] Optionally, the tracking configuration information may include: the starting virtual network device (such as a virtual switch), the matching rules of the target data packet (such as a tenant private network ID, a data packet five-tuple, etc.), a dedicated DSCP value for marking the data packet, a predicted tracking duration, and other information.

[0049] Exemplarily, the matching rules of the target data packet include the tenant private network address and / or the data packet quintuple; the tracking task specifically instructs the starting virtual network device to match the received data packet according to the tenant private network address and / or the data packet quintuple, and puts a task-specific mark in the IP header of the matched target data packet.

[0050] (2) A tracking task is sent to the starting virtual network device through the network controller. The tracking task includes a matching rule for the target data packet and a task-specific tag for marking the target data packet, which is used to indicate that the target data packet is to be marked and tracked.

[0051] In some embodiments, Figure 3 As shown, the network controller of the server can send the tracking task and task information to the starting virtual network device according to the device identifier of the starting virtual network device. The task information may include: the matching rule of the target data packet and the task-specific tag used to mark the target data packet. Among them, the task-specific tag is used to instruct the starting virtual network device to mark and track the target data packet.

[0052] (3) The data packet tracking state of the starting virtual network device is adjusted to the activated state, and the received data packets are matched according to the matching rules of the target data packets through the starting virtual network device, and the task-specific tag of the target data packet is added to the matching data packet, and the forwarding information of the target data packet is counted.

[0053] In the disclosed embodiment, each virtual network device on the transmission path maintains its own data packet tracking state, and the data packet tracking state is used to characterize whether the virtual network device enters a data packet tracking activation state or a virtual network device enters a data packet tracking inactivation state; wherein, when the starting virtual network device receives a tracking task, the starting virtual network device enters a data packet tracking activation state, and starts statistics and reporting of the task-specific identifier; when each virtual network device on the transmission path receives a data packet marked with a task-specific identifier, each virtual network device enters a data packet tracking activation state, and starts statistics and reporting of the task-specific identifier.

[0054] Optionally, this step may include: adjusting the data packet tracking state of the starting virtual network device to an activated state, matching the received data packet according to the matching rule of the target data packet through the starting virtual network device, and if the match is successful, marking the task-specific DSCP value in the IP header of the data packet finally sent out.

[0055] In some embodiments, the abnormal transmission service is a transmission service for a certain user, and the matching rule of the target data packet may be a user network identifier (e.g., a tenant private network ID). Accordingly, matching the received data packet according to the matching rule of the target data packet by the starting virtual network device includes: matching the received data packet according to the user network identifier of the target data packet by the starting virtual network device.

[0056] In other embodiments, the abnormal transmission service is a transmission service for a certain transmission path, and the matching rule of the target data packet can be the data packet five-tuple information. Accordingly, matching the received data packet according to the matching rule of the target data packet by the starting virtual network device includes: matching the received data packet according to the five-tuple information of the target data packet by the starting virtual network device, wherein the five-tuple information includes the source device address, the destination device address, the source port number, the destination port number and the transport layer protocol.

[0057] (4) In response to any virtual network device other than the starting virtual network device receiving a target data packet with a tag, adjusting the data packet tracking state of the virtual network device to an activated state, and collecting statistics on forwarding information of the target data packet.

[0058] In this step, if Figure 3 As shown, when the virtual network device forwards the marked target data packet, it keeps the DSCP value of the target data packet unchanged and transmits the DSCP mark in the transmission path, so as to track the transmission path of the target data packet with the same DSCP value.

[0059] It should be noted that when the data packet tracking state of the virtual network device is adjusted to the activated state, if there are previous statistical data about this DSCP value on the virtual network device, the statistical data of this DSCP should be reset.

[0060] S202: Receive forwarding information of a task-specific identifier that is periodically counted and reported by each virtual network device on the transmission path.

[0061] In some embodiments, the forwarding information of the task-specific mark includes: sending end statistics and receiving end statistics, the sending end statistics are statistics of the target data packets carrying the task-specific identifier sent by the virtual network device as a sending end; the receiving end statistics are statistics of the target data packets carrying the task-specific identifier received by the virtual network device as a receiving end.

[0062] Optionally, the sending end statistical information includes one or more of the following: a sending end identifier, a device identifier of the virtual network device, a task-specific tag of a target data packet, a local address of the virtual network device, a peer address of the virtual network device, and a total amount of forwarded data; the receiving end statistical information includes one or more of the following: a receiving end identifier, a device identifier of the virtual network device, a task-specific tag of a target data packet, a local address of the virtual network device, a peer address of the virtual network device, and a total amount of forwarded data; wherein the total amount of forwarded data includes: the number of forwarded destination data packets and / or the number of bytes of forwarded destination data packets.

[0063] In the embodiment of the present disclosure, the device identifier of the virtual network device is: a device identifier that is unique in the entire network, for example, it may be a unique IP address of the device.

[0064] It should be noted that the local address is: the receiving end's statistical data corresponds to the receiving address of the current device; the sending end's statistical data corresponds to the sending address of the current device. The peer address: the receiving end's statistical data corresponds to the sending address of the previous hop device; the sending end's statistical data corresponds to the receiving address of the next hop device.

[0065] In the above transmitting end statistical information, the peer end address of the virtual network device is also the local end address of the next hop virtual network device. In the above receiving end statistical information, the peer end address of the virtual network device is also: the local end address of the previous hop virtual network device.

[0066] For example, Figure 4As shown in the figure, the statistical information of the sender includes: "Location: sender, device ID: XX, DSCP value: 10, local address: 0001, remote address: 0002, and number of packets: 1000". The statistical information of the receiver includes: "Location: receiver, device ID: XX, DSCP value: 10, local address: 0002, remote address: 0001, and number of packets: 1000". The location is used to identify the statistical information of the sender or receiver. The DSCP value is the DSCP value corresponding to the data packet.

[0067] S203: Restore the transmission path of the target data packet and the statistical data at each location according to the forwarding information of the task-specific identifier reported by each virtual network device.

[0068] In some embodiments, this step may include: matching the device identifier in the received statistical record according to the device identifier of the starting virtual network device specified in the tracking task, and determining the receiving-end statistical record and the sending-end statistical record of the starting device on the transmission path of the target data packet; searching for the receiving-end statistical record corresponding to the next-hop device according to the sending-end statistical record, and searching for all sending-end statistical records of the same device according to the receiving-end statistical record, so as to restore the path hop by hop until all paths reach the end point.

[0069] In some embodiments, the location in the statistical information is: the location of the identification statistics, the value is: "receiving end" or "sending end". Figure 5 As shown, the transmission path of the target data packet and the statistical data at each position can be periodically restored. When the receiving-end statistical records and the sending-end statistical information in the statistical data no longer change, it indicates that all the marked data numbers have completed transmission and statistics. At this time, the location of the packet loss can be determined and located. Accordingly, this step may include: sending a termination signaling for the tracking task to the starting virtual network device through the network controller, and the termination signaling is used to instruct the starting virtual network device to stop the marking tracking of the target data packet. After periodically restoring the transmission path of the target data packet and the statistical data at each position until the transmission path and the statistical data at each position no longer change, the step of determining and locating the packet loss based on the restored transmission path and the statistical data at each position is performed.

[0070] Accordingly, according to the forwarding information of the task-specific identifier reported by each virtual network device, restoring the transmission path of the target data packet and the statistical data at each location may include the following steps (1) to (3):

[0071] (1) According to the device identifier of the starting virtual network device specified in the tracking task, the device identifier in the received statistical record is matched to determine the receiving end statistical record and the sending end statistical record of the starting device on the transmission path of the target data packet.

[0072] In the embodiment of the present disclosure, the transmission path of the target data packet includes one or more transmission paths. When there are multiple transmission paths, such as Figure 5 As shown, each next-hop virtual network device corresponds to a sender statistic information, and each previous-hop virtual network device corresponds to a sender statistic information.

[0073] (2) Starting from the starting virtual network device, obtain the receiving end statistical records and sending end statistical information of each virtual network device on the transmission path hop by hop.

[0074] For example, Figure 6 As shown, this step may include the following steps S21 to S24:

[0075] S21. Obtain a receiving-end statistical record of an initial virtual network device and transmitting-end statistical information corresponding to at least one transmission path.

[0076] S22. Match the local end address in the receiving end statistical record of other virtual network devices according to the opposite end address in the sending end statistical record corresponding to each transmission path, and determine the matching receiving end statistical record as the receiving end statistical record of the next hop virtual network device of the starting virtual network device.

[0077] S23. Match the sending-end statistical record including the same device identifier according to the device identifier of the virtual network device in the receiving-end statistical record of the next-hop virtual network device, and determine the matching sending-end statistical record as the sending-end statistical record of the next-hop virtual network device of the starting virtual network device.

[0078] S24. Until the acquired receiving-end statistical record or sending-end statistical information meets the preset termination matching condition, stop acquiring the receiving-end statistical record and the sending-end statistical information, and obtain the receiving-end statistical record and the sending-end statistical information of each virtual network device on the transmission path.

[0079] Among them, the preset termination matching condition includes: according to the device identifier of the virtual network device in the receiving end statistical record of the virtual network device, at least one sending end statistical record with the same device identifier cannot be matched; or, the opposite end address in the sending end statistical record of the virtual network device is empty; or, according to the opposite end address in the sending end statistical record of the virtual network device, the local end address in the receiving end statistical record of other virtual network devices cannot be matched.

[0080] (3) Until the receiving-end statistical record and the sending-end statistical information of each virtual network device no longer change, the tracking statistical information obtained by each virtual network device performing statistics on the forwarding information of the target data packet is obtained.

[0081] Alternatively, if Figure 3As shown, in response to the tracking time reaching the preset tracking time, the network analysis center can send a "termination signaling" to the starting virtual network device of the transmission path through the network controller, and the starting virtual network device stops the marking and tracking of the target data packet.

[0082] S204: Determine and locate packet loss based on the restored transmission path and statistical data at each location.

[0083] In some embodiments, this step may include: determining whether packet loss occurs at any virtual network device location based on the sending end statistical information and the receiving end statistical information reported by any virtual network device on the transmission path; determining whether packet loss occurs in the network link between any virtual network device and its next-hop virtual network device based on the sending end statistical information reported by any virtual network device on the transmission path and the receiving end statistical information reported by its associated next-hop virtual network device.

[0084] Optionally, packet loss determination and location can be divided into the following cases:

[0085] If the total number of data packets in the sender statistics reported by any virtual network device is less than the total number of data packets in the receiver statistics, it is determined that packet loss has occurred and the packet loss position is located in the virtual network device;

[0086] If any non-endpoint virtual network device only reports the receiving-end statistics record but no sending-end statistics record, it is determined to be packet loss and the packet loss position is located at the virtual network device;

[0087] If the number of data packets in any receiving-end statistical record reported by any virtual network device is less than the number of data packets in the sending-end statistical record corresponding to the previous-hop device, it is determined that packet loss has occurred and the packet loss position is located in the physical transmission path between the two virtual network devices;

[0088] If any sender statistics record of any non-end virtual network device does not have a corresponding next-hop device's receive statistics record, it is determined that packet loss has occurred and the packet loss location is located in the physical transmission path between the non-end virtual network device and the virtual network device indicated by the opposite end address in any sender statistics record.

[0089] It should be noted that after completing the packet loss location, each virtual network device needs to be restored to its initial state. At this time, a reset instruction can be sent to all virtual network devices in the restored path through the network controller. The reset instruction is used to instruct the virtual network device to reset the corresponding statistical data and enter the data packet tracking inactive state.

[0090] The disclosed embodiment provides a cloud network data packet tracking method: a tracking task is issued to a virtual network device on a transmission path through a network controller, the tracking task instructs the starting virtual network device to first mark the target data packet with a task-specific identifier and then forward the target data packet carrying the task-specific identifier to the end virtual network device via an intermediate virtual network device, and instructs each virtual network device on the transmission path to periodically count and report forwarding information about the task-specific identifier according to a preset period; receives the forwarding information of the task-specific identifier periodically counted and reported by each virtual network device on the transmission path; restores the transmission path of the target data packet and the statistical data at each position according to the forwarding information of the task-specific identifier reported by each virtual network device; and determines and locates packet loss according to the restored transmission path and the statistical data at each position. In this technical solution, since the forwarding information of the marked target data packet is periodically counted and reported by the virtual network device, and then the packet loss is determined and located by periodic statistical data, the periodic statistics do not need to frequently obtain the forwarding information of each virtual network device, thereby reducing the performance overhead of data packet tracking, so that the tenant data packet can be tracked for a long time without having a great impact on the overall network performance, so as to capture and locate the occasional packet loss problem.

[0091] Figure 7 A schematic diagram of the structure of a cloud network data packet tracking device provided by an embodiment of the present disclosure is shown in FIG. Figure 7 As shown, the cloud network data packet tracking device includes:

[0092] The marking unit 701 is used to issue a tracking task to the virtual network devices on the transmission path through the network controller, wherein the tracking task instructs the starting virtual network device to first mark the target data packet with a task-specific identifier and then forward the target data packet carrying the task-specific identifier to the end virtual network device via the intermediate virtual network device, and instructs each virtual network device on the transmission path to periodically count and report forwarding information about the task-specific identifier according to a preset period;

[0093] A receiving unit 702 is used to receive forwarding information of a task-specific identifier periodically counted and reported by each virtual network device on the transmission path;

[0094] A path restoration unit 703, configured to restore the transmission path of the target data packet and the statistical data at each location according to the forwarding information of the task-specific identifier reported by each virtual network device;

[0095] The tracking and positioning unit 704 is used to determine and locate packet loss based on the restored transmission path and statistical data at each location.

[0096] According to one or more embodiments of the present disclosure, the device also includes: a task issuing unit; the task issuing unit is used to receive tracking task configuration information, and the tracking task configuration information at least includes a device identifier of a starting virtual network device, a matching rule of a target data packet, and a task-specific identifier for marking a target data packet; a tracking task is generated according to the tracking task configuration information, and the tracking task is issued to the starting virtual network device through the network controller, and the tracking task includes a matching rule of a target data packet and a task-specific tag for marking a target data packet, which is used to indicate that the target data packet is to be marked and tracked.

[0097] According to one or more embodiments of the present disclosure, the matching rule of the target data packet includes the tenant private network address and / or the data packet quintuple; the tracking task specifically instructs the starting virtual network device to match the received data packet according to the tenant private network address and / or the data packet quintuple, and to mark the IP header of the matched target data packet with a task-specific mark.

[0098] According to one or more embodiments of the present disclosure, the device also includes: a task termination unit; the task termination unit is used to send a termination signaling for the tracking task to the starting virtual network device through the network controller, and the termination signaling is used to instruct the starting virtual network device to stop marking and tracking the target data packet; when the transmission path of the target data packet and the statistical data at each position are periodically restored until the transmission path and the statistical data at each position no longer change, packet loss judgment and positioning are performed based on the restored transmission path and the statistical data at each position.

[0099] According to one or more embodiments of the present disclosure, the apparatus further includes: a device status maintenance unit, the device status maintenance unit being used to maintain respective data packet tracing states for respective virtual network devices on a transmission path, the data packet tracing states being used to characterize whether the virtual network device has entered a data packet tracing activation state or a virtual network device has entered a data packet tracing deactivation state; wherein, when the starting virtual network device receives the tracing task, the starting virtual network device enters a data packet tracing activation state, and starts statistics and reporting of the task-specific identifier; when each virtual network device on the transmission path receives a data packet marked with the task-specific identifier, each virtual network device enters a data packet tracing activation state, and starts statistics and reporting of the task-specific identifier.

[0100] According to one or more embodiments of the present disclosure, the forwarding information of the task-specific mark includes: sending-end statistical data and receiving-end statistical data, wherein the sending-end statistical data is statistical data of the target data packets carrying the task-specific identifier sent by the virtual network device as a sending end; and the receiving-end statistical data is statistical data of the target data packets carrying the task-specific identifier received by the virtual network device as a receiving end.

[0101] According to one or more embodiments of the present disclosure, the path restoration unit 703 restores the transmission path of the target data packet and the statistical data at each location according to the forwarding information of the task-specific identifier reported by each virtual network device, including: matching the device identifier in the received statistical record according to the device identifier of the starting virtual network device specified in the tracking task, and determining the receiving-end statistical record and the sending-end statistical record of the starting device on the transmission path of the target data packet; searching for the receiving-end statistical record corresponding to the next-hop device according to the sending-end statistical record, and searching for all sending-end statistical records of the same device according to the receiving-end statistical record, so as to restore the path hop by hop until all paths reach the end point.

[0102] According to one or more embodiments of the present disclosure, the tracking and positioning unit 704 performs packet loss determination and positioning based on the restored transmission path and statistical data at each location, including: determining whether packet loss occurs at the location of any virtual network device based on the sending end statistical information and the receiving end statistical information reported by any virtual network device on the transmission path; determining whether packet loss occurs in the network link between any virtual network device and its next-hop virtual network device based on the sending end statistical information reported by any virtual network device on the transmission path and the receiving end statistical information reported by its associated next-hop virtual network device.

[0103] According to one or more embodiments of the present disclosure, if the total number of data packets in the sending-end statistical information reported by any virtual network device is less than the total number of data packets in the receiving-end statistical information, it is determined that packet loss has occurred and the packet loss position is located in the virtual network device; if any non-end virtual network device only reports the receiving-end statistical record but does not have the sending-end statistical record, it is determined that there is packet loss and the packet loss position is located in the virtual network device; if the number of data packets in any receiving-end statistical record reported by any virtual network device is less than the number of data packets in the sending-end statistical record corresponding to the previous-hop device, it is determined that packet loss has occurred and the packet loss position is located in the physical transmission path between the two virtual network devices; if any sending-end statistical record of any non-end virtual network device does not have a corresponding receiving-end statistical record of the next-hop device, it is determined that packet loss has occurred and the packet loss position is located in the physical transmission path between the non-end virtual network device and the virtual network device indicated by the opposite-end address in any sending-end statistical record.

[0104] According to one or more embodiments of the present disclosure, the device also includes: a device reset unit; the device reset unit is used to send a reset instruction to all virtual network devices in the restored path through the network controller after completing the packet loss location, and the reset instruction is used to instruct the virtual network device to reset the corresponding statistical data and enter the data packet tracking inactivated state.

[0105] According to one or more embodiments of the present disclosure, the sending-end statistical information includes one or more of the following: a sending-end identifier, a device identifier of a virtual network device, a task-specific tag of a target data packet, a local address of the virtual network device, a remote address of the virtual network device, and a total amount of forwarded data; the receiving-end statistical information includes one or more of the following: a receiving-end identifier, a device identifier of a virtual network device, a task-specific tag of a target data packet, a local address of the virtual network device, a remote address of the virtual network device, and a total amount of forwarded data; wherein the total amount of forwarded data includes: the number of forwarded destination data packets and / or the number of bytes of forwarded destination data packets.

[0106] refer to Figure 8 , which shows a schematic diagram of the structure of an electronic device 800 suitable for implementing the embodiment of the present disclosure, and the electronic device 800 may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers, portable multimedia players (PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0107] like Figure 8 As shown, the electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 to a random access memory (RAM) 803. Various programs and data required for the operation of the electronic device 800 are also stored in the RAM 803. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0108] Typically, the following devices may be connected to the I / O interface 805: input devices 806 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 808 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 8 The electronic device 800 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0109] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 809, or installed from a storage device 808, or installed from a ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0110] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0111] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0112] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0113] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0114] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0115] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".

[0116] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0117] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0118] In a first aspect, according to one or more embodiments of the present disclosure, a cloud network data packet tracing method is provided, comprising:

[0119] A tracking task is issued to the virtual network devices on the transmission path through the network controller, wherein the tracking task instructs the starting virtual network device to first mark the target data packet with a task-specific identifier and then forward the target data packet carrying the task-specific identifier to the end virtual network device via the intermediate virtual network device, and instructs each virtual network device on the transmission path to periodically count and report forwarding information about the task-specific identifier according to a preset period;

[0120] Receiving forwarding information of the task-specific identifier periodically counted and reported by each virtual network device on the transmission path;

[0121] Restore the transmission path of the target data packet and the statistical data at each location according to the forwarding information of the task-specific identifier reported by each virtual network device;

[0122] Packet loss is determined and located based on the restored transmission path and statistical data at each location.

[0123] According to one or more embodiments of the present disclosure, the method also includes: receiving tracing task configuration information, the tracing task configuration information at least including a device identifier of a starting virtual network device, a matching rule for a target data packet, and a task-specific identifier for marking a target data packet; generating a tracing task according to the tracing task configuration information, and issuing the tracing task to the starting virtual network device through the network controller, the tracing task including a matching rule for a target data packet and a task-specific identifier for marking a target data packet, for indicating that the target data packet is to be marked and tracked.

[0124] According to one or more embodiments of the present disclosure, the matching rule of the target data packet includes the tenant private network address and / or the data packet quintuple; the tracking task specifically instructs the starting virtual network device to match the received data packet according to the tenant private network address and / or the data packet quintuple, and to mark the IP header of the matched target data packet with a task-specific mark.

[0125] According to one or more embodiments of the present disclosure, the method further includes: sending a termination signaling for the tracking task to the starting virtual network device through the network controller, wherein the termination signaling is used to instruct the starting virtual network device to stop the marking and tracking of the target data packet; periodically restoring the transmission path of the target data packet and the statistical data at each position until the transmission path and the statistical data at each position no longer change, and then performing packet loss determination and positioning based on the restored transmission path and the statistical data at each position.

[0126] According to one or more embodiments of the present disclosure, the method further includes: maintaining a respective data packet tracing state for each virtual network device on the transmission path, the data packet tracing state being used to characterize whether the virtual network device has entered a data packet tracing activation state or a virtual network device has entered a data packet tracing inactivation state; wherein, when the starting virtual network device receives the tracing task, the starting virtual network device enters a data packet tracing activation state, and starts statistics and reporting of the task-specific identifier; when each virtual network device on the transmission path receives a data packet marked with the task-specific identifier, each virtual network device enters a data packet tracing activation state, and starts statistics and reporting of the task-specific identifier.

[0127] According to one or more embodiments of the present disclosure, the forwarding information of the task-specific mark includes: sending-end statistical data and receiving-end statistical data, wherein the sending-end statistical data is statistical data of the target data packets carrying the task-specific identifier sent by the virtual network device as a sending end; and the receiving-end statistical data is statistical data of the target data packets carrying the task-specific identifier received by the virtual network device as a receiving end.

[0128] According to one or more embodiments of the present disclosure, the transmission path of the target data packet and the statistical data at each location are restored based on the forwarding information of the task-specific identifier reported by each virtual network device, including: matching the device identifier in the received statistical record according to the device identifier of the starting virtual network device specified in the tracking task, and determining the receiving-end statistical record and the sending-end statistical record of the starting device on the transmission path of the target data packet; searching for the receiving-end statistical record corresponding to the next-hop device according to the sending-end statistical record, and searching for all sending-end statistical records of the same device according to the receiving-end statistical record, so as to restore the path hop by hop until all paths reach the end point.

[0129] According to one or more embodiments of the present disclosure, the packet loss determination and location based on the restored transmission path and statistical data at each location includes: determining whether packet loss occurs at the location of any virtual network device based on sender statistical information and receiver statistical information reported by any virtual network device on the transmission path; determining whether packet loss occurs in the network link between any virtual network device and its next-hop virtual network device based on sender statistical information reported by any virtual network device on the transmission path and receiver statistical information reported by its associated next-hop virtual network device.

[0130] According to one or more embodiments of the present disclosure, if the total number of data packets in the sending-end statistical information reported by any virtual network device is less than the total number of data packets in the receiving-end statistical information, it is determined that packet loss has occurred and the packet loss position is located in the virtual network device; if any non-end virtual network device only reports the receiving-end statistical record but does not have the sending-end statistical record, it is determined that there is packet loss and the packet loss position is located in the virtual network device; if the number of data packets in any receiving-end statistical record reported by any virtual network device is less than the number of data packets in the sending-end statistical record corresponding to the previous-hop device, it is determined that packet loss has occurred and the packet loss position is located in the physical transmission path between the two virtual network devices; if any sending-end statistical record of any non-end virtual network device does not have a corresponding receiving-end statistical record of the next-hop device, it is determined that packet loss has occurred and the packet loss position is located in the physical transmission path between the non-end virtual network device and the virtual network device indicated by the opposite-end address in any sending-end statistical record.

[0131] According to one or more embodiments of the present disclosure, the method further includes: after completing the packet loss location, sending a reset instruction to all virtual network devices in the restored path through the network controller, wherein the reset instruction is used to instruct the virtual network device to reset the corresponding statistical data and enter an inactivated state of data packet tracking.

[0132] According to one or more embodiments of the present disclosure, the sending-end statistical information includes one or more of the following: a sending-end identifier, a device identifier of a virtual network device, a task-specific tag of a target data packet, a local address of the virtual network device, a remote address of the virtual network device, and a total amount of forwarded data; the receiving-end statistical information includes one or more of the following: a receiving-end identifier, a device identifier of a virtual network device, a task-specific tag of a target data packet, a local address of the virtual network device, a remote address of the virtual network device, and a total amount of forwarded data; wherein the total amount of forwarded data includes: the number of forwarded destination data packets and / or the number of bytes of forwarded destination data packets.

[0133] In a second aspect, according to one or more embodiments of the present disclosure, a cloud network data packet tracing device is provided, comprising:

[0134] A marking unit is used to issue a tracking task to a virtual network device on a transmission path through a network controller, wherein the tracking task instructs the starting virtual network device to first mark a target data packet with a task-specific identifier and then forward the target data packet carrying the task-specific identifier to the end virtual network device via an intermediate virtual network device, and instructs each virtual network device on the transmission path to periodically count and report forwarding information about the task-specific identifier according to a preset period;

[0135] A receiving unit, used to receive forwarding information of a task-specific identifier periodically counted and reported by each virtual network device on the transmission path;

[0136] A path restoration unit, used to restore the transmission path of the target data packet and the statistical data at each location according to the forwarding information of the task-specific identifier reported by each virtual network device;

[0137] The tracking and positioning unit is used to determine and locate packet loss based on the restored transmission path and statistical data at each location.

[0138] According to one or more embodiments of the present disclosure, the device also includes: a task issuing unit; the task issuing unit is used to receive tracking task configuration information, and the tracking task configuration information at least includes a device identifier of a starting virtual network device, a matching rule of a target data packet, and a task-specific identifier for marking a target data packet; a tracking task is generated according to the tracking task configuration information, and the tracking task is issued to the starting virtual network device through the network controller, and the tracking task includes a matching rule of a target data packet and a task-specific tag for marking a target data packet, which is used to indicate that the target data packet is to be marked and tracked.

[0139] According to one or more embodiments of the present disclosure, the matching rule of the target data packet includes the tenant private network address and / or the data packet quintuple; the tracking task specifically instructs the starting virtual network device to match the received data packet according to the tenant private network address and / or the data packet quintuple, and to mark the IP header of the matched target data packet with a task-specific mark.

[0140] According to one or more embodiments of the present disclosure, the device also includes: a task termination unit; the task termination unit is used to send a termination signaling for the tracking task to the starting virtual network device through the network controller, and the termination signaling is used to instruct the starting virtual network device to stop marking and tracking the target data packet; when the transmission path of the target data packet and the statistical data at each position are periodically restored until the transmission path and the statistical data at each position no longer change, packet loss judgment and positioning are performed based on the restored transmission path and the statistical data at each position.

[0141] According to one or more embodiments of the present disclosure, the apparatus further includes: a device status maintenance unit, the device status maintenance unit being used to maintain respective data packet tracing states for respective virtual network devices on a transmission path, the data packet tracing states being used to characterize whether the virtual network device has entered a data packet tracing activation state or a virtual network device has entered a data packet tracing deactivation state; wherein, when the starting virtual network device receives the tracing task, the starting virtual network device enters a data packet tracing activation state, and starts statistics and reporting of the task-specific identifier; when each virtual network device on the transmission path receives a data packet marked with the task-specific identifier, each virtual network device enters a data packet tracing activation state, and starts statistics and reporting of the task-specific identifier.

[0142] According to one or more embodiments of the present disclosure, the forwarding information of the task-specific mark includes: sending-end statistical data and receiving-end statistical data, wherein the sending-end statistical data is statistical data of the target data packets carrying the task-specific identifier sent by the virtual network device as a sending end; and the receiving-end statistical data is statistical data of the target data packets carrying the task-specific identifier received by the virtual network device as a receiving end.

[0143] According to one or more embodiments of the present disclosure, the path restoration unit restores the transmission path of the target data packet and the statistical data at each location based on the forwarding information of the task-specific identifier reported by each virtual network device, including: matching the device identifier in the received statistical record according to the device identifier of the starting virtual network device specified in the tracking task, and determining the receiving-end statistical record and the sending-end statistical record of the starting device on the transmission path of the target data packet; searching for the receiving-end statistical record corresponding to the next-hop device according to the sending-end statistical record, and searching for all sending-end statistical records of the same device according to the receiving-end statistical record, so as to restore the path hop by hop until all paths reach the end point.

[0144] According to one or more embodiments of the present disclosure, the tracking and positioning unit performs packet loss determination and positioning based on the restored transmission path and statistical data at each location, including: determining whether packet loss occurs at the location of any virtual network device based on the sending end statistical information and the receiving end statistical information reported by any virtual network device on the transmission path; determining whether packet loss occurs in the network link between any virtual network device and its next-hop virtual network device based on the sending end statistical information reported by any virtual network device on the transmission path and the receiving end statistical information reported by its associated next-hop virtual network device.

[0145] According to one or more embodiments of the present disclosure, if the total number of data packets in the sending-end statistical information reported by any virtual network device is less than the total number of data packets in the receiving-end statistical information, it is determined that packet loss has occurred and the packet loss position is located in the virtual network device; if any non-end virtual network device only reports the receiving-end statistical record but does not have the sending-end statistical record, it is determined that there is packet loss and the packet loss position is located in the virtual network device; if the number of data packets in any receiving-end statistical record reported by any virtual network device is less than the number of data packets in the sending-end statistical record corresponding to the previous-hop device, it is determined that packet loss has occurred and the packet loss position is located in the physical transmission path between the two virtual network devices; if any sending-end statistical record of any non-end virtual network device does not have a corresponding receiving-end statistical record of the next-hop device, it is determined that packet loss has occurred and the packet loss position is located in the physical transmission path between the non-end virtual network device and the virtual network device indicated by the opposite-end address in any sending-end statistical record.

[0146] According to one or more embodiments of the present disclosure, the device also includes: a device reset unit; the device reset unit is used to send a reset instruction to all virtual network devices in the restored path through the network controller after completing the packet loss location, and the reset instruction is used to instruct the virtual network device to reset the corresponding statistical data and enter the data packet tracking inactivated state.

[0147] According to one or more embodiments of the present disclosure, the sending-end statistical information includes one or more of the following: a sending-end identifier, a device identifier of a virtual network device, a task-specific tag of a target data packet, a local address of the virtual network device, a remote address of the virtual network device, and a total amount of forwarded data; the receiving-end statistical information includes one or more of the following: a receiving-end identifier, a device identifier of a virtual network device, a task-specific tag of a target data packet, a local address of the virtual network device, a remote address of the virtual network device, and a total amount of forwarded data; wherein the total amount of forwarded data includes: the number of forwarded destination data packets and / or the number of bytes of forwarded destination data packets.

[0148] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: at least one processor and a memory;

[0149] The memory stores computer-executable instructions;

[0150] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the cloud network data packet tracing method described in the first aspect and various possible designs of the first aspect.

[0151] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer execution instructions. When a processor executes the computer execution instructions, the cloud network data packet tracking method described in the first aspect and various possible designs of the first aspect is implemented.

[0152] In a fifth aspect, according to one or more embodiments of the present disclosure, a computer program product is provided, including a computer program, which, when executed by a processor, implements the cloud network data packet tracing method described in the first aspect and various possible designs of the first aspect.

[0153] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0154] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0155] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A cloud network data packet tracing method, characterized in that: include: A tracking task is issued to the virtual network devices on the transmission path through the network controller, wherein the tracking task instructs the starting virtual network device to first mark the target data packet with a task-specific identifier and then forward the target data packet carrying the task-specific identifier to the end virtual network device via the intermediate virtual network device, and instructs each virtual network device on the transmission path to periodically count and report forwarding information about the task-specific identifier according to a preset period; Receiving forwarding information of the task-specific identifier periodically counted and reported by each virtual network device on the transmission path; Restore the transmission path of the target data packet and the statistical data at each location according to the forwarding information of the task-specific identifier reported by each virtual network device; Packet loss is determined and located based on the restored transmission path and statistical data at each location.

2. The cloud network data packet tracing method according to claim 1, characterized in that: The method further comprises: Receiving tracking task configuration information, the tracking task configuration information at least includes a device identifier of a starting virtual network device, a matching rule of a target data packet, and a task-specific identifier for marking the target data packet; A tracking task is generated according to the tracking task configuration information, and the tracking task is sent to the starting virtual network device through the network controller. The tracking task includes a matching rule for the target data packet and a task-specific tag for marking the target data packet, which is used to instruct the starting virtual network device to mark and track the target data packet.

3. The cloud network data packet tracing method according to claim 2, characterized in that: The matching rule of the target data packet includes the tenant private network address and / or the data packet quintuple; the tracking task specifically instructs the starting virtual network device to match the received data packet according to the tenant private network address and / or the data packet quintuple, and puts a task-specific mark in the IP header of the target data packet that matches the target data packet.

4. The cloud network data packet tracing method according to claim 1, characterized in that: The method further comprises: Sending a termination signaling for the tracking task to the starting virtual network device through the network controller, wherein the termination signaling is used to instruct the starting virtual network device to stop the marking tracking of the target data packet; The transmission path of the target data packet and the statistical data at each position are restored periodically until the transmission path and the statistical data at each position no longer change, and then the packet loss is determined and located based on the restored transmission path and the statistical data at each position.

5. The cloud network data packet tracing method according to claim 1, characterized in that: The method further comprises: A respective data packet tracking state is maintained for each virtual network device on the transmission path, and the data packet tracking state is used to indicate that the virtual network device has entered a data packet tracking activation state or a data packet tracking inactivation state; wherein, when the starting virtual network device receives the tracking task, the starting virtual network device enters a data packet tracking activation state, and starts statistics and reporting of the task-specific identifier; when each virtual network device on the transmission path receives a data packet marked with the task-specific identifier, each virtual network device enters a data packet tracking activation state, and starts statistics and reporting of the task-specific identifier.

6. The cloud network data packet tracing method according to claim 1, characterized in that: The forwarding information of the task-specific mark includes: sending end statistical data and receiving end statistical data, the sending end statistical data is the statistical data of the target data packets carrying the task-specific identifier sent by the virtual network device as a sending end; the receiving end statistical data is the statistical data of the target data packets carrying the task-specific identifier received by the virtual network device as a receiving end.

7. The cloud network data packet tracing method according to claim 6, characterized in that: The method of restoring the transmission path of the target data packet and the statistical data at each location according to the forwarding information of the task-specific identifier reported by each virtual network device includes: According to the device identifier of the starting virtual network device specified in the tracking task, the device identifier in the received statistical record is matched to determine the receiving end statistical record and the sending end statistical record of the starting device on the transmission path of the target data packet; The receiving-end statistical record corresponding to the next-hop device is searched according to the sending-end statistical record, and all sending-end statistical records of the same device are searched according to the receiving-end statistical record, so as to restore the path hop by hop until all paths reach the end point.

8. The cloud network data packet tracing method according to claim 6, characterized in that: The packet loss determination and location based on the restored transmission path and statistical data at each location include: Determining whether packet loss occurs at the location of any virtual network device according to the sending end statistical information and the receiving end statistical information reported by any virtual network device on the transmission path; According to the sending-end statistical information reported by any virtual network device on the transmission path and the receiving-end statistical information reported by its associated next-hop virtual network device, it is determined whether a network link between any virtual network device and its next-hop virtual network device has packet loss.

9. The cloud network data packet tracing method according to claim 8, characterized in that: If the total number of data packets in the sender statistics reported by any virtual network device is less than the total number of data packets in the receiver statistics, it is determined that packet loss has occurred and the packet loss position is located in the virtual network device; If any non-endpoint virtual network device only reports the receiving-end statistics record but no sending-end statistics record, it is determined to be packet loss and the packet loss position is located at the virtual network device; If the number of data packets in any receiving-end statistical record reported by any virtual network device is less than the number of data packets in the sending-end statistical record corresponding to the previous-hop device, it is determined that packet loss has occurred and the packet loss position is located in the physical transmission path between the two virtual network devices; If any sender statistics record of any non-end virtual network device does not have a corresponding next-hop device's receive statistics record, it is determined that packet loss has occurred and the packet loss location is located in the physical transmission path between the non-end virtual network device and the virtual network device indicated by the opposite end address in any sender statistics record.

10. The cloud network data packet tracing method according to claim 1, characterized in that: The method further comprises: After the packet loss location is completed, a reset instruction is sent to all virtual network devices in the restored path through the network controller, and the reset instruction is used to instruct the virtual network device to reset the corresponding statistical data and enter the data packet tracking inactive state.

11. The cloud network data packet tracing method according to claim 7, characterized in that: The sending end statistical information includes one or more of the following: a sending end identifier, a device identifier of a virtual network device, a task-specific tag of a target data packet, a local address of a virtual network device, a peer address of a virtual network device, and a total amount of forwarded data; The receiving end statistical information includes one or more of the following: a receiving end identifier, a device identifier of a virtual network device, a task-specific tag of a target data packet, a local address of a virtual network device, a peer address of a virtual network device, and a total amount of forwarded data; The total forwarded data volume includes: the number of forwarded destination data packets and / or the number of bytes of forwarded destination data packets.

12. A cloud network data packet tracking device, characterized in that: include: A marking unit is used to issue a tracking task to a virtual network device on a transmission path through a network controller, wherein the tracking task instructs the starting virtual network device to first mark a target data packet with a task-specific identifier and then forward the target data packet carrying the task-specific identifier to the end virtual network device via an intermediate virtual network device, and instructs each virtual network device on the transmission path to periodically count and report forwarding information about the task-specific identifier according to a preset period; A receiving unit, used to receive forwarding information of a task-specific identifier periodically counted and reported by each virtual network device on the transmission path; A path restoration unit, used to restore the transmission path of the target data packet and the statistical data at each location according to the forwarding information of the task-specific identifier reported by each virtual network device; The tracking and positioning unit is used to determine and locate packet loss based on the restored transmission path and statistical data at each location.

13. An electronic device, characterized in that: include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor executes the cloud network data packet tracing method as described in any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the processor executes the computer-executable instructions, the cloud network data packet tracing method as described in any one of claims 1 to 11 is implemented.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the cloud network data packet tracing method as described in any one of claims 1 to 11 is implemented.

Citation Information

Patent Citations

  • Method for processing media data packets in multimedia network and related product thereof

    CN114124754A

  • Flow analysis system and method and related equipment

    CN116781498A

  • Message processing method and device, equipment and storage medium

    CN117014335A

  • Network quality monitoring method and device

    CN118740691A

  • System and method for troubleshooting SDN networks using flow statistics

    US20170126475A1

Cited By

  • Flow information acquisition method and device, equipment, storage medium and program product

    CN119583389A