Packet loss monitoring method and device in FTTR system, gateway device and storage medium

By configuring target probes in the gateway device of the FTTR system for packet loss detection and location, the problem of data packet loss monitoring in the FTTR system is solved, efficient network monitoring and accurate packet loss location are achieved, and network performance and security are improved. sex.

CN118573605BActive Publication Date: 2024-10-29SICHUAN TIANYI COMHEART TELECOM
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411041363.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-10-29
Estimated Expiration
2044-07-31

AI Technical Summary

Technical Problem

Existing data packet loss monitoring technology is difficult to effectively monitor data packet loss problems in FTTR systems, resulting in network performance degradation and security issues.

Method used

Deploy the Linux operating system in the gateway device of the FTTR system, configure the target probe to detect and locate packet loss on the kernel execution path, and realize packet loss detection and location through the pre-configured packet loss detection trigger mechanism and callback function.

Benefits of technology

It achieves effective detection and location of data packet loss, improves the accuracy and convenience of network monitoring, and dynamically configures probes without modifying the kernel code or restarting the system, significantly improving the application value.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118573605B_ABST
    Figure CN118573605B_ABST
Patent Text Reader

Abstract

The packet loss monitoring method and device, gateway device and storage medium in the FTTR system provided by the present application relate to the field of communication technology. In the present application, firstly, for each target path position on the kernel execution path of the Linux operating system, a corresponding target probe is configured at the target path position; secondly, based on each target probe, a packet loss detection is performed on the target data packet processed at the corresponding target path position to obtain a corresponding target packet loss detection result; then, for each target probe, if the target packet loss detection result corresponding to the target probe reflects that the target data packet is discarded when being processed at the corresponding target path position, the target data packet is located based on the target path position to obtain a corresponding packet loss location result. Based on the above content, the problem of difficulty in effectively monitoring packet loss in the prior art can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a packet loss monitoring method and apparatus, a gateway device, and a storage medium in an FTTR system. Background Art

[0002] Packet loss is inevitable during network communication. Packet loss can lead to network performance degradation, network failures, and even network security issues. For network devices such as gateways in FTTR (Fiber to the Room) systems, locating packet loss is one of the important tasks of network operation and maintenance.

[0003] However, the inventors have found through research that in the existing data packet loss monitoring technology, there is a problem that it is difficult to effectively monitor the packet loss of data packets. Summary of the invention

[0004] In view of this, the purpose of the present application is to provide a packet loss monitoring method and apparatus, a gateway device and a storage medium in an FTTR system, so as to improve the problem in the prior art that it is difficult to effectively monitor the packet loss of data packets.

[0005] To achieve the above purpose, the embodiment of the present application adopts the following technical solution:

[0006] A packet loss monitoring method in an FTTR system is applied to a gateway device in the FTTR system, wherein a Linux operating system is deployed in the gateway device, wherein the packet loss monitoring method in the FTTR system comprises:

[0007] For each target path position on the kernel execution path of the Linux operating system, a corresponding target probe is configured at the target path position, wherein the target probe is used to perform packet loss detection on a target data packet processed at the corresponding target path position;

[0008] Based on each of the target probes, respectively, a packet loss detection is performed on the target data packet processed at the corresponding target path position to obtain a corresponding target packet loss detection result;

[0009] For each of the target probes, if the target packet loss detection result corresponding to the target probe reflects that the target data packet is discarded when being processed at the corresponding target path position, the target data packet is packet loss located based on the target path position to obtain a corresponding packet loss location result, wherein the packet loss location result is at least used to reflect the packet loss position of the target data packet.

[0010] In a preferred embodiment of the present application, in the packet loss monitoring method in the above-mentioned FTTR system, the step of configuring a corresponding target probe at each target path position on the kernel execution path of the Linux operating system includes:

[0011] Determine at least one target path location on the kernel execution path of the Linux operating system, wherein the target path location includes at least one of a first path location and a second path location, the first path location is configured with a function for releasing a socket buffer, and the second path location is configured with a function in a network protocol stack;

[0012] For each of the target path positions, a corresponding target probe is configured for the target path position, wherein the target probe belongs to a kernel probe, and when a corresponding callback function of the target probe is executed, processing of the target data packet based on the kernel execution path is stopped, and the corresponding callback function of the target probe is used to monitor data packet discard processing of the target data packet processed at the corresponding target path position to implement corresponding packet loss detection.

[0013] In a preferred embodiment of the present application, in the packet loss monitoring method in the above-mentioned FTTR system, the step of performing packet loss detection on the target data packet processed at the corresponding target path position based on each of the target probes to obtain the corresponding target packet loss detection result includes:

[0014] Based on the pre-configured packet loss detection trigger mechanism, determine whether it is necessary to perform packet loss detection on the target data packet, and obtain the corresponding packet loss detection confirmation result;

[0015] If the packet loss detection confirmation result reflects that packet loss detection is not required for the target data packet, determining not to enable each of the target probes, so that each of the target probes does not perform packet loss detection on the target data packet processed at the corresponding target path position;

[0016] If the packet loss detection confirmation result reflects that packet loss detection needs to be performed on the target data packet, each of the target probes is enabled, and based on the corresponding callback function of each target probe, packet loss detection is performed on the target data packet processed at the corresponding target path position to obtain the target packet loss detection result corresponding to the target data packet.

[0017] In a preferred embodiment of the present application, in the packet loss monitoring method in the above-mentioned FTTR system, the step of determining whether it is necessary to perform packet loss detection on the target data packet based on the pre-configured packet loss detection trigger mechanism and obtaining the corresponding packet loss detection confirmation result includes:

[0018] For any target data packet that needs to be processed through the kernel execution path of the Linux operating system, the target data packet is parsed to obtain target data packet identification information corresponding to the target data packet, wherein the target data packet identification information includes at least one of MAC address information, IP address information and port number information;

[0019] Determining whether the target data packet identification information belongs to target identification information, wherein the target identification information refers to data packet identification information in a pre-configured data packet identification set;

[0020] If the target data packet identification information belongs to the target identification information, it is determined that packet loss detection needs to be performed on the target data packet, and a packet loss detection confirmation result is generated for indicating that packet loss detection needs to be performed on the target data packet;

[0021] If the target data packet identification information does not belong to the target identification information, it is determined that packet loss detection does not need to be performed on the target data packet, and a packet loss detection confirmation result is generated to indicate that packet loss detection does not need to be performed on the target data packet.

[0022] In a preferred embodiment of the present application, in the packet loss monitoring method in the above-mentioned FTTR system, for each of the target probes, if the target packet loss detection result corresponding to the target probe reflects that the target data packet is discarded when processed at the corresponding target path position, then based on the target path position, the target data packet is subjected to packet loss location, and the step of obtaining the corresponding packet loss location result includes:

[0023] For each of the target probes, if the target packet loss detection result corresponding to the target probe reflects that the target data packet is discarded when being processed at the corresponding target path position, then obtaining the name and position line number of the function configured at the target path position;

[0024] Based on the name and position line number of the function configured at the target path position, a packet loss location result corresponding to the target data packet is generated.

[0025] In a preferred embodiment of the present application, in the packet loss monitoring method in the above-mentioned FTTR system, the step of generating the packet loss location result corresponding to the target data packet based on the name and position line number of the function configured based on the target path position includes:

[0026] For each of the target probes, if the target packet loss detection result corresponding to the target probe reflects that the target data packet is discarded when being processed at the corresponding target path position, then the pointer name information, target call stack information and data packet feature information of the target pointer are obtained, wherein the target pointer points to the discarded target data structure, and the target data packet will be encapsulated into a structure after being received, and the structure will be passed to the network protocol stack for processing, the structure refers to the structure corresponding to the released socket buffer, the target call stack information is used to reflect the processing flow of the target data packet on the kernel execution path, and the data packet feature information includes at least one of MAC address information, IP address information and port number information;

[0027] Based on the pointer name information of the target pointer, the target call stack information, the data packet feature information, the name and position line number of the function configured at the target path position, a packet loss location result corresponding to the target data packet is generated.

[0028] In a preferred embodiment of the present application, in the packet loss monitoring method in the above-mentioned FTTR system, for each of the target probes, if the target packet loss detection result corresponding to the target probe reflects that the target data packet is discarded when processed at the corresponding target path position, the step of obtaining the name and position line number of the function configured at the target path position includes:

[0029] For each of the target probes, if the target packet loss detection result corresponding to the target probe reflects that the target data packet is discarded when being processed at the corresponding target path position, then based on a pre-configured first filtering condition, determining whether it is necessary to perform packet loss location processing on the target data packet, wherein the first filtering condition is related to the historical data packets that need to be processed for packet loss location processing;

[0030] After determining that the target data packet needs to be processed for packet loss location, obtaining data packet feature information corresponding to the target data packet;

[0031] Determining whether it is necessary to perform positioning information determination processing on the target data packet based on a pre-configured second screening condition and data packet characteristic information corresponding to the target data packet, wherein the first screening condition and the second screening condition are formed in response to configuration operations performed by corresponding users, and the first screening condition is different from the second screening condition;

[0032] After determining that the target data packet needs to be processed for location information determination, the name and position line number of the function configured for the target path position are obtained.

[0033] The embodiment of the present application further provides a packet loss monitoring device in an FTTR system, which is applied to a gateway device in the FTTR system, wherein a Linux operating system is deployed in the gateway device, wherein the packet loss monitoring device in the FTTR system includes:

[0034] A probe configuration module, configured to configure a corresponding target probe at each target path position on the kernel execution path of the Linux operating system, wherein the target probe is used to perform packet loss detection on a target data packet processed at the corresponding target path position;

[0035] A packet loss detection module, configured to perform packet loss detection on a target data packet processed at a corresponding target path position based on each of the target probes, and obtain a corresponding target packet loss detection result;

[0036] The packet loss location module is used for, for each of the target probes, if the target packet loss detection result corresponding to the target probe reflects that the target data packet is discarded when being processed at the corresponding target path position, then the target data packet is subjected to packet loss location based on the target path position to obtain a corresponding packet loss location result, wherein the packet loss location result is at least used to reflect the packet loss position of the target data packet.

[0037] On the basis of the above, the embodiment of the present application further provides a gateway device, including:

[0038] Memory for storing computer programs;

[0039] The processor connected to the memory is used to execute the computer program stored in the memory to implement the above-mentioned packet loss monitoring method in the FTTR system.

[0040] The embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is run, the packet loss monitoring method in the FTTR system is executed.

[0041] The packet loss monitoring method and device, gateway device and storage medium in the FTTR system provided by the present application, first, for each target path position on the kernel execution path of the Linux operating system, a corresponding target probe is configured at the target path position; secondly, based on each target probe, packet loss detection is performed on the target data packet processed at the corresponding target path position to obtain a corresponding target packet loss detection result; then, for each target probe, if the target packet loss detection result corresponding to the target probe reflects that the target data packet is discarded when processed at the corresponding target path position, the target data packet is packet loss located based on the target path position to obtain a corresponding packet loss location result. Based on the above content, since the target probe is pre-configured on the kernel execution path of the Linux operating system, packet loss detection and packet loss location of the data packet can be realized based on the target probe, that is, not only packet loss detection can be realized based on the target probe, but also packet loss location can be realized based on the target probe (such as the target probe corresponds to the target path position), and packet loss location is difficult to achieve based on the existing conventional technical solutions, therefore, the problem of difficulty in effectively monitoring packet loss in the prior art can be improved. In addition, packet loss detection and location are performed based on the configuration of target probes, which can realize dynamic configuration and removal of probes and adjust the monitoring scope and accuracy as needed without modifying the kernel code or restarting the system. Packet loss detection and location of data packets are very convenient in practical applications. Therefore, they can generate higher application value, that is, they can produce more significant technical effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings.

[0043] Figure 1 A structural block diagram of a gateway device provided in an embodiment of the present application.

[0044] Figure 2 A flowchart of a packet loss monitoring method in an FTTR system provided in an embodiment of the present application.

[0045] Figure 3 A block diagram of a packet loss monitoring device in an FTTR system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.

[0047] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0048] like Figure 1 As shown, an embodiment of the present application provides a gateway device, which may include a memory, a processor, and a packet loss monitoring device in an FTTR system.

[0049] The memory and the processor are electrically connected directly or indirectly to achieve data transmission or interaction. For example, they can be electrically connected to each other through one or more communication buses or signal lines. The packet loss monitoring device in the FTTR system includes at least one software function module that can be stored in the memory in the form of software or firmware. The processor is used to execute an executable computer program stored in the memory, for example, the software function module and computer program included in the packet loss monitoring device in the FTTR system, so as to implement the packet loss monitoring method in the FTTR system provided in the embodiment of the present application.

[0050] Optionally, the memory may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc.

[0051] Furthermore, the processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), a system on chip (SoC), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0052] Understandably, Figure 1 The structure shown is for illustration only. The gateway device may also include Figure 1 More or fewer components as shown, or with Figure 1 The different configurations shown, for example, may also include a communication unit for exchanging information with other devices (such as a background server).

[0053] In addition, the gateway device may be deployed with a Linux operating system or the like.

[0054] Combination Figure 2 The embodiment of the present application also provides a packet loss monitoring method in an FTTR system that can be applied to the above-mentioned gateway device. The method steps defined in the process related to the packet loss monitoring method in the FTTR system can be implemented by the gateway device. The gateway device is deployed with a Linux operating system. Figure 2 The specific process shown is explained in detail.

[0055] Step S110 , for each target path position on the kernel execution path of the Linux operating system, a corresponding target probe is configured at the target path position.

[0056] In an embodiment of the present application, for each target path position on the kernel execution path of the Linux operating system, the gateway device can configure a corresponding target probe at the target path position. The target probe is used to perform packet loss detection on the target data packet processed at the corresponding target path position. In addition, the kernel execution path may refer to a path formed by running the kernel code of the Linux operating system. In other words, the corresponding target probe can be configured on the kernel code of the Linux operating system, so that when running to the corresponding kernel code, the corresponding target probe can be enabled to perform packet loss detection.

[0057] Step S120 , performing packet loss detection on the target data packet processed at the corresponding target path position based on each of the target probes, to obtain a corresponding target packet loss detection result.

[0058] In an embodiment of the present application, the gateway device can perform packet loss detection on the target data packet processed at the corresponding target path position based on each of the target probes, and obtain a corresponding target packet loss detection result. That is to say, when the kernel code based on the target path position processes the target data packet, the target data packet can be subjected to packet loss detection by the target probe configured on the kernel code to obtain a corresponding target packet loss detection result. The target packet loss detection result can be used to reflect that the target data packet is discarded when being processed at the corresponding target path position, such as when the corresponding kernel code processes the target data packet, the target data packet is discarded, or the target data packet is not discarded and the next processing flow is entered.

[0059] Step S130, for each of the target probes, if the target packet loss detection result corresponding to the target probe reflects that the target data packet is discarded when processed at the corresponding target path position, then the target data packet is located based on the target path position to obtain a corresponding packet loss location result.

[0060] In an embodiment of the present application, for each of the target probes, if the target packet loss detection result corresponding to the target probe reflects that the target data packet is discarded when being processed at the corresponding target path position, the gateway device can perform packet loss location on the target data packet based on the target path position to obtain a corresponding packet loss location result. The packet loss location result is at least used to reflect the packet loss position of the target data packet, that is, to achieve packet loss location, so that the target path position can be specifically located, that is, the corresponding kernel code can be located, so that the location granularity is finer and the accuracy is higher.

[0061] Based on the above content, since the target probe is pre-configured on the kernel execution path of the Linux operating system, packet loss detection and packet loss location can be realized based on the target probe, that is, not only packet loss detection can be realized based on the target probe, but also packet loss location can be realized based on the target probe (such as the target probe is corresponding to the target path position), and packet loss location is difficult to realize based on the existing conventional technical solutions. Therefore, the problem of difficulty in effectively monitoring packet loss in the existing technology can be improved. In addition, packet loss detection and packet loss location based on the configuration of the target probe can realize the dynamic configuration and removal of the probe, and adjust the monitoring range and accuracy as needed without modifying the kernel code or restarting the system. It has high convenience in actual application for packet loss detection and packet loss location of data packets, and therefore, it can produce high application value, that is, it can produce more significant technical effects.

[0062] First, it should be noted that for step S110, the configuration of the target probe is not limited and can be selected according to actual needs.

[0063] For example, in an alternative implementation, a corresponding target probe may be configured at each path position, i.e., each code segment or code module, on the kernel execution path of the Linux operating system, i.e., each path position may be used as a target path position. In this way, comprehensive packet loss monitoring may be performed on each position on the kernel execution path.

[0064] For example, in another alternative implementation, after long-term research by the inventors of this application, after comprehensively considering the impact of enabling the target probe on the performance of the gateway device and the possible location of packet loss in the application scenario of the FTTR system, a solution that can take both dimensions into account is provided. In this way, the above-mentioned step S110 can further include step S111 and step S112, and the specific contents are described as follows.

[0065] Step S111, determining at least one target path location on the kernel execution path of the Linux operating system.

[0066] In an embodiment of the present application, at least one target path location can be first determined on the kernel execution path of the Linux operating system, that is, at least one kernel code segment or kernel code module can be determined. Wherein, the target path location includes at least one of the first path location and the second path location, such as taking both the first path location and the second path location as the target path location, or, one of the path locations can also be taken as the target path location, or, on the basis of taking at least one of the path locations as the target path location, the other path locations can also be taken as the target path location, which can be configured according to actual needs, and at the first path location, a function for releasing the socket buffer, such as kfree_skb(), etc., is configured, and at the second path location, a function in the network protocol stack, such as ip_rcv(), tcp_v4_rcv(), etc., is configured.

[0067] Step S112: for each of the target path positions, a corresponding target probe is configured for the target path position.

[0068] In an embodiment of the present application, after determining at least one target path position, for each of the target path positions, a corresponding target probe can be configured for the target path position, that is, a corresponding target probe is configured in the corresponding kernel code segment or kernel code module. Wherein, the target probe belongs to a kernel probe, and when the corresponding callback function of the target probe is executed, the processing of the target data packet based on the kernel execution path is stopped, and the corresponding callback function of the target probe is used to monitor the packet discard processing of the target data packet processed at the corresponding target path position to achieve the corresponding packet loss detection. Exemplarily, the target probe can be a probe based on Kprobes technology, and the working principle is to allow the user to insert a breakpoint (also called a probe) at any point in the kernel code. When the execution process reaches these probes, a predefined handler (probe handler) will be executed, such as monitoring the packet discard processing of the target data packet processed at the corresponding target path position, and then continue to execute the original code (i.e., kernel code).

[0069] Secondly, it should be noted that for step S120, the specific processing method of packet loss detection is not limited and can be selected according to actual needs.

[0070] For example, in an alternative implementation, after configuring a corresponding target probe at each target path position, packet loss detection can be performed directly on the target data packet processed at the corresponding target path position based on each target probe to obtain a corresponding target packet loss detection result, thereby making the management and control of the target probe relatively simpler and more efficient.

[0071] For example, in another alternative implementation, in order to avoid excessive system resources occupied by packet loss detection and to achieve reliable control of packet loss detection, the above-mentioned step S120 may include step S121, step S122 and step S123, and the specific contents are described as follows.

[0072] Step S121, based on the pre-configured packet loss detection trigger mechanism, determine whether it is necessary to perform packet loss detection on the target data packet, and obtain a corresponding packet loss detection confirmation result.

[0073] In an embodiment of the present application, after configuring the corresponding target probe at each target path position, it can be determined whether it is necessary to perform packet loss detection on the target data packet based on the pre-configured packet loss detection trigger mechanism. In this way, the packet loss detection confirmation result corresponding to the target data packet can be obtained. Specifically, after the target data packet is acquired through the gateway device, before the processing of the kernel execution path, the target data packet can be analyzed to determine whether it is necessary to perform packet loss detection on the target data packet. For example, a preset number of data packets per interval or a preset duration per interval can be used to determine the currently received target data packet as a target data packet that needs to be detected for packet loss. The specific values ​​of the preset number and the preset duration are not limited. For example, they can be 5, 7, 9, etc., and 5, 7, 8, etc. seconds.

[0074] Step S122: if the packet loss detection confirmation result shows that packet loss detection is not required for the target data packet, determine not to enable each of the target probes, so that each of the target probes will not perform packet loss detection on the target data packet processed at the corresponding target path position.

[0075] In the embodiment of the present application, after obtaining the packet loss detection confirmation result, if the packet loss detection confirmation result reflects that the target data packet does not need to be detected for packet loss, it is determined not to enable each of the target probes, so that each of the target probes will not perform packet loss detection on the target data packet processed at the corresponding target path position. In this way, the problem of reduced system performance due to enabling the target probes can be improved to a certain extent.

[0076] Step S123, if the packet loss detection confirmation result reflects that packet loss detection needs to be performed on the target data packet, determine to enable each of the target probes, and based on the corresponding callback function of each target probe, perform packet loss detection on the target data packet processed at the corresponding target path position to obtain the target packet loss detection result corresponding to the target data packet.

[0077] In an embodiment of the present application, after obtaining the packet loss detection confirmation result, if the packet loss detection confirmation result reflects that the target data packet needs to be subjected to packet loss detection, it is determined to enable each of the target probes, and based on the corresponding callback function of each of the target probes, packet loss detection is performed on the target data packet processed at the corresponding target path position to obtain the target packet loss detection result corresponding to the target data packet. Exemplarily, the parameters of the drop mechanism (drop mechanism, data packets that need to be discarded are implemented through this mechanism) of the corresponding target path position can be obtained through the callback function to determine whether any discard processing has been performed. In this way, the target packet loss detection result corresponding to the target data packet can be obtained.

[0078] It can be understood that, in the above step S121, the specific content of the packet loss detection triggering mechanism is not limited, that is, the method of packet loss detection triggering is not limited and can be selected according to actual needs.

[0079] For example, in an alternative implementation, in order to enable high-precision monitoring of specific data packets, step S121 may further include step S121a, step S121b, step S121c and step S121d, the specific contents of which are described below.

[0080] Step S121a: for any target data packet that needs to be processed through the kernel execution path of the Linux operating system, the target data packet is parsed to obtain target data packet identification information corresponding to the target data packet.

[0081] In an embodiment of the present application, for any target data packet that needs to be processed through the kernel execution path of the Linux operating system, the target data packet is parsed and processed to obtain the target data packet identification information corresponding to the target data packet. For example, after receiving any target data packet through a network port, the target data packet can be parsed and processed to obtain the corresponding target data packet identification information. Wherein, the target data packet identification information includes at least one of MAC address information, IP address information and port number information. Specifically, the target data packet identification information can only include at least one of MAC address information, IP address information and port number information, or can further include other identification information on the basis of including at least one of MAC address information, IP address information and port number information. The specific identification information content is not limited and can be selected according to actual needs. For example, the identification information can refer to the protocol type of the data packet or a specific string in the data packet, etc. In addition, each address information can refer to the source address information, or to the destination address information, or to the source address information and the destination address information.

[0082] Step S121b, determining whether the target data packet identification information belongs to target identification information.

[0083] In an embodiment of the present application, after obtaining the target data packet identification information of the target data packet, it is possible to further determine whether the target data packet identification information belongs to the target identification information. The target identification information refers to the data packet identification information in a pre-configured data packet identification set. In other words, it is determined whether the target data packet identification information belongs to the data packet identification set, wherein the data packet identification information in the data packet identification set can be formed in response to the user's configuration operation, and the specific formation process is not specifically limited herein.

[0084] Step S121c: if the target data packet identification information belongs to the target identification information, it is determined that packet loss detection needs to be performed on the target data packet, and a packet loss detection confirmation result indicating that packet loss detection needs to be performed on the target data packet is generated.

[0085] In an embodiment of the present application, if it is determined that the target data packet identification information belongs to the target identification information, that is, the target data packet is hit, therefore, it can be determined that packet loss detection needs to be performed on the target data packet, and a packet loss detection confirmation result is generated to characterize the need to perform packet loss detection on the target data packet.

[0086] Step S121d: if the target data packet identification information does not belong to the target identification information, it is determined that packet loss detection does not need to be performed on the target data packet, and a packet loss detection confirmation result is generated to indicate that packet loss detection does not need to be performed on the target data packet.

[0087] In an embodiment of the present application, if it is determined that the target data packet identification information does not belong to the target identification information, that is, the target data packet is not hit, therefore, it can be determined that there is no need to perform packet loss detection on the target data packet, and a packet loss detection confirmation result is generated to characterize that there is no need to perform packet loss detection on the target data packet.

[0088] Thirdly, it should be noted that for step S130, the specific implementation method of packet loss location is not limited and can be selected according to actual needs.

[0089] For example, in an alternative implementation, in order to locate the packet loss more accurately and facilitate subsequent packet loss maintenance and other processing, the above-mentioned step S130 may further include step S131 and step S132, the specific contents of which are described as follows.

[0090] Step S131, for each of the target probes, if the target packet loss detection result corresponding to the target probe reflects that the target data packet is discarded when processed at the corresponding target path position, then obtain the name and position line number of the function configured at the target path position.

[0091] In an embodiment of the present application, when it is determined that the target data packet is discarded when being processed at the corresponding target path location, such as being hit by a firewall rule or being discarded in a data queue due to network congestion, the name and position line number of the function configured at the target path location can be further obtained, such as kfree_skb(), ip_rcv(), tcp_v4_rcv(), etc., and the position line number refers to the code line corresponding to the corresponding function.

[0092] Step S132: Generate a packet loss location result corresponding to the target data packet based on the name and position line number of the function configured at the target path position.

[0093] In the embodiment of the present application, after obtaining the name and position line number of the function configured at the target path position, the packet loss location result corresponding to the target data packet can be generated based on the name and position line number of the function configured at the target path position. In other words, packet loss location can be achieved based on the name and position line number of the configured function.

[0094] It is understandable that, in the above step S131, the specific rules for obtaining the name and position line number of the configured function are not limited and can be selected according to actual needs.

[0095] For example, in an alternative implementation, when the target packet loss detection result corresponding to the target probe reflects that the target data packet is discarded when processed at the corresponding target path location, the name and position line number of the function configured at the target path location can be directly obtained.

[0096] For example, in another alternative implementation, in order to reduce the overhead of packet loss location processing and improve efficiency, the above-mentioned step S131 may further include step S131a, step S131b, step S131c and step S131d, and the specific contents are described as follows.

[0097] Step S131a, for each of the target probes, if the target packet loss detection result corresponding to the target probe reflects that the target data packet is discarded when processed at the corresponding target path position, then based on the pre-configured first screening condition, determine whether packet loss location processing is required for the target data packet.

[0098] In an embodiment of the present application, for each of the target probes, if the target packet loss detection result corresponding to the target probe reflects that the target data packet is discarded when being processed at the corresponding target path position, it is loaded into the pre-configured first filtering condition, and then, based on the first filtering condition, it can be determined whether it is necessary to perform packet loss location processing on the target data packet. Among them, the first filtering condition is related to the historical data packets that need to be processed for packet loss location. For example, the first filtering condition can be a sampling rule, such as determining a target data packet that needs to be processed for packet loss location every specified number of data packets. That is to say, if a specified number of data packets have been determined to not need to be processed for packet loss location in the recent past, the latest received data packet will be determined to need to be processed for packet loss location.

[0099] Step S131b, after determining that the target data packet needs to be processed for packet loss location, obtain data packet characteristic information corresponding to the target data packet.

[0100] In an embodiment of the present application, after determining that the target data packet needs to be processed for packet loss location, data packet characteristic information corresponding to the target data packet can be further obtained, wherein the specific content of the data packet characteristic information can refer to the relevant description above.

[0101] Step S131c, based on the pre-configured second screening condition and the data packet characteristic information corresponding to the target data packet, determine whether it is necessary to perform positioning information determination processing on the target data packet.

[0102] In an embodiment of the present application, after acquiring the packet characteristic information corresponding to the target packet, it can also be loaded into a pre-configured second screening condition, and then, based on the second screening condition and the packet characteristic information corresponding to the target packet, it can be determined whether it is necessary to perform positioning information determination processing on the target packet. Wherein, the first screening condition and the second screening condition are formed in response to the configuration operation performed by the corresponding user, and the first screening condition is different from the second screening condition. Exemplarily, a characteristic information set can be pre-configured, and then, the packet characteristic information corresponding to the target packet can be compared with the characteristic information in the characteristic information set. If the packet characteristic information corresponding to the target packet belongs to the characteristic information set, it is determined that the positioning information determination processing needs to be performed on the target packet. Conversely, if the packet characteristic information corresponding to the target packet does not belong to the characteristic information set, it is determined that the positioning information determination processing does not need to be performed on the target packet.

[0103] Step S131d, after determining that the target data packet needs to be processed for location information determination, obtain the name and position line number of the function configured for the target path location.

[0104] In the embodiment of the present application, after determining that the target data packet needs to be processed for location information determination, the name and position line number of the function configured in the target path position can be further obtained. In this way, before the function name and position line number acquisition operation is performed, the frequency of acquiring the function name and position line number can be reduced to a certain extent through the mechanism configuration of the first screening condition and the second screening condition, so that the corresponding resource consumption is reduced.

[0105] It can be understood that the first filtering condition and the second filtering condition can be formed in response to the configuration operations performed by the corresponding user. Specifically, the gateway device can obtain the configuration information submitted by the user through the web interface (such as CGI interface) provided by the gateway device by deploying a configuration process (such as an httpserver process). Then, the first filtering condition and the second filtering condition can be generated based on the configuration information. Then, the kernel code can be written through / proc / . For example, the / proc / file system is a virtual file system, which is usually mounted in the / proc directory of the Linux system. It does not correspond to the actual disk space, but is dynamically generated by the kernel at runtime to provide information about the system and running processes. In addition to providing information, the / proc / system also allows programs in the user space to communicate with the kernel space, and obtain system information or adjust kernel parameters by reading and writing specific / proc / files.

[0106] Among them, CGI (Common Gateway Interface) is a standard protocol for interaction between Web servers and external programs (or scripts). CGI allows Web servers to execute external programs and send program output as Web page content to clients (browsers). This mechanism enables Web pages to dynamically generate content, respond to user input, or perform other tasks such as database queries and form processing. CGI workflows can include:

[0107] User request: The user accesses a URL through a browser, and the URL points to a CGI program; The server recognizes the CGI request: The Web server recognizes that the request needs to be processed by CGI based on the URL path or other identifiers (such as the file extension) of the request; Execute the CGI program: The server starts the corresponding CGI program and passes the HTTP request information as input parameters to the program; this includes environment variables (such as request method, query string, etc.) and standard input (for the data body of the POST request); Program processing: The CGI program processes the request based on the input and performs necessary operations (such as database query, calculation, etc.); Output generation: The CGI program sends the output content (usually in HTML format) and HTTP response header back to the Web server through standard output; The server responds to the client: The Web server collects the output of the CGI program and sends it to the client browser as an HTTP response.

[0108] It can be understood that, in the above-mentioned step S132, the specific method of generating the packet loss location result corresponding to the target data packet is not limited and can be selected according to actual needs.

[0109] For example, in an alternative implementation, after obtaining the name and location line number of the function configured for the target path location, the packet loss location result corresponding to the target data packet can be generated directly based on the name and location line number of the function configured for the target path location, for example, the packet loss location result only includes the name and location line number.

[0110] For another example, in another alternative implementation, in order to enrich the content of the packet loss location result and ensure the reliability of packet loss location, the above-mentioned step S132 may further include step S132a and step S132b, the specific contents of which are described as follows.

[0111] Step S132a, for each of the target probes, if the target packet loss detection result corresponding to the target probe reflects that the target data packet is discarded when processed at the corresponding target path position, then obtain the pointer name information, target call stack information and data packet feature information of the target pointer.

[0112] In an embodiment of the present application, if the target packet loss detection result corresponding to the target probe reflects that the target data packet is discarded when being processed at the corresponding target path position, the pointer name information, target call stack information and data packet feature information of the corresponding target pointer can be obtained. Among them, the target pointer points to the discarded target data structure, and the target data packet will be encapsulated into a structure after being received, and the structure will be passed to the network protocol stack for processing. The structure refers to the structure corresponding to the released socket buffer. The target call stack information is used to reflect the processing flow of the target data packet on the kernel execution path, that is, the call stack information is a record of the function call sequence and hierarchical structure during the program execution process, which can display all function call paths from the start of the program to the current execution point. When it comes to "call stack information when packet loss occurs", it means that when the data packet is lost, the system will record the code path and function call situation that is being executed when the packet loss occurs. In this way, through the call stack information, the code position where the packet loss occurs can be accurately located to help developers understand the context and possible causes of the packet loss; in addition, the call stack provides a perspective that allows users or developers to see the complete process of the kernel or application processing the data packet, which helps to identify possible bottlenecks or error handling links in the process; and, with detailed call stack information, developers can more easily reproduce the situation where the problem occurs, and carry out targeted repairs and optimizations; and, for network system maintenance personnel, directly obtaining the call stack information related to packet loss can greatly reduce the time required to diagnose the problem and improve the efficiency of problem solving. The packet feature information includes at least one of MAC address information, IP address information and port number information, as described above.

[0113] Step S132b, based on the pointer name information of the target pointer, the target call stack information, the data packet feature information, the name and position line number of the function configured at the target path location, generates a packet loss location result corresponding to the target data packet.

[0114] In an embodiment of the present application, after obtaining the pointer name information of the target pointer, the target call stack information, the data packet characteristic information, the name and position line number of the function configured at the target path position, the packet loss location result corresponding to the target data packet can be generated based on the pointer name information of the target pointer, the target call stack information, the data packet characteristic information, the name and position line number of the function configured at the target path position. In other words, the packet loss location result may only include the pointer name information of the target pointer, the target call stack information, the data packet characteristic information, the name and position line number of the function configured at the target path position, or may further include other information on the basis of including the pointer name information of the target pointer, the target call stack information, the data packet characteristic information, the name and position line number of the function configured at the target path position, which is not specifically limited here.

[0115] On the basis of the above-mentioned embodiments, since operations such as packet loss detection and packet loss location can be performed, corresponding subsequent analysis can be performed based on the results of operations such as packet loss detection and packet loss location, such as statistical analysis of packet loss rate, packet loss delay, source and destination IP addresses of packet loss, port numbers, etc., as well as analysis of the average value, maximum value, minimum value, etc. of packet loss delay.

[0116] Combination Figure 3 The embodiment of the present application also provides a packet loss monitoring device in the FTTR system that can be applied to the above-mentioned gateway device. The gateway device is deployed with a Linux operating system. In addition, the packet loss monitoring device in the FTTR system may include a probe configuration module, a packet loss detection module, and a packet loss positioning module.

[0117] In detail, the probe configuration module can be used to configure a corresponding target probe at each target path position on the kernel execution path of the Linux operating system, wherein the target probe is used to perform packet loss detection on the target data packet processed at the corresponding target path position. Figure 2 As shown in step S110, the relevant contents of the probe configuration module can refer to the above description of step S110.

[0118] In detail, the packet loss detection module can be used to perform packet loss detection on the target data packets processed at the corresponding target path position based on each of the target probes, and obtain the corresponding target packet loss detection result. Figure 2 As shown in step S120, the relevant contents of the packet loss detection module can refer to the above description of step S120.

[0119] In detail, the packet loss location module can be used for each of the target probes. If the target packet loss detection result corresponding to the target probe reflects that the target data packet is discarded when being processed at the corresponding target path position, the target data packet is then located based on the target path position to obtain a corresponding packet loss location result, wherein the packet loss location result is at least used to reflect the packet loss position of the target data packet. In this embodiment, the packet loss location module can be used to perform Figure 2 As shown in step S130, the relevant contents of the packet loss location module can refer to the above description of step S130.

[0120] In a first aspect, the probe configuration module can be specifically used for:

[0121] Determine at least one target path location on the kernel execution path of the Linux operating system, wherein the target path location includes at least one of a first path location and a second path location, a function for releasing a socket buffer is configured at the first path location, and a function in a network protocol stack is configured at the second path location;

[0122] For each of the target path positions, a corresponding target probe is configured for the target path position, wherein the target probe belongs to a kernel probe, and when a corresponding callback function of the target probe is executed, processing of the target data packet based on the kernel execution path is stopped, and the corresponding callback function of the target probe is used to perform packet discard processing monitoring on the target data packet processed at the corresponding target path position to achieve corresponding packet loss detection.

[0123] In a second aspect, the packet loss detection module can be specifically used for:

[0124] Based on the pre-configured packet loss detection trigger mechanism, determine whether it is necessary to perform packet loss detection on the target data packet, and obtain the corresponding packet loss detection confirmation result;

[0125] If the packet loss detection confirmation result reflects that packet loss detection is not required for the target data packet, determining not to enable each of the target probes, so that each of the target probes does not perform packet loss detection on the target data packet processed at the corresponding target path position;

[0126] If the packet loss detection confirmation result reflects that packet loss detection needs to be performed on the target data packet, each of the target probes is enabled, and based on the corresponding callback function of each target probe, packet loss detection is performed on the target data packet processed at the corresponding target path position to obtain the target packet loss detection result corresponding to the target data packet.

[0127] In a third aspect, the packet loss location module can be specifically used for:

[0128] For each of the target probes, if the target packet loss detection result corresponding to the target probe reflects that the target data packet is discarded when being processed at the corresponding target path position, then obtaining the name and position line number of the function configured at the target path position;

[0129] Based on the name and position line number of the function configured at the target path position, a packet loss location result corresponding to the target data packet is generated.

[0130] In an embodiment of the present application, corresponding to the above-mentioned packet loss monitoring method in the FTTR system applied to the gateway device, a computer-readable storage medium is also provided, in which a computer program is stored, and when the computer program is run, each step of the packet loss monitoring method in the FTTR system is executed.

[0131] The steps executed when the aforementioned computer program is running will not be described one by one here, and reference may be made to the explanation of the packet loss monitoring method in the aforementioned FTTR system.

[0132] In summary, the packet loss monitoring method and device, gateway device and storage medium in the FTTR system provided by the present application, first, for each target path position on the kernel execution path of the Linux operating system, a corresponding target probe is configured at the target path position; secondly, based on each target probe, packet loss detection is performed on the target data packet processed at the corresponding target path position to obtain a corresponding target packet loss detection result; then, for each target probe, if the target packet loss detection result corresponding to the target probe reflects that the target data packet is discarded when processed at the corresponding target path position, the target data packet is packet lost based on the target path position to obtain a corresponding packet loss location result. Based on the above content, since the target probe is pre-configured on the kernel execution path of the Linux operating system, packet loss detection and packet loss location of the data packet can be realized based on the target probe, that is, not only packet loss detection can be realized based on the target probe, but also packet loss location can be realized based on the target probe (such as the target probe corresponds to the target path position), and packet loss location is difficult to achieve based on the existing conventional technical solutions, therefore, the problem of difficulty in effectively monitoring packet loss in the prior art can be improved. In addition, packet loss detection and location are performed based on the configuration of target probes, which can realize dynamic configuration and removal of probes and adjust the monitoring scope and accuracy as needed without modifying the kernel code or restarting the system. Packet loss detection and location of data packets are very convenient in practical applications. Therefore, they can generate higher application value, that is, they can produce more significant technical effects.

[0133] In several embodiments provided in the embodiments of the present application, it should be understood that the disclosed device and method can also be implemented in other ways. The device and method embodiments described above are merely schematic, for example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the device, method and computer program product according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes 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 box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0134] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0135] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a gateway device, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code. It should be noted that in this article, the term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such process, method, article or device. Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.

[0136] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A packet loss monitoring method in an FTTR system, characterized in that: A gateway device applied to an FTTR system, wherein a Linux operating system is deployed in the gateway device, wherein the packet loss monitoring method in the FTTR system comprises: For each target path position on the kernel execution path of the Linux operating system, a corresponding target probe is configured at the target path position, wherein the target probe is used to perform packet loss detection on a target data packet processed at the corresponding target path position; Based on each of the target probes, respectively, a packet loss detection is performed on the target data packet processed at the corresponding target path position to obtain a corresponding target packet loss detection result; For each of the target probes, if the target packet loss detection result corresponding to the target probe reflects that the target data packet is discarded when being processed at the corresponding target path position, the target data packet is packet loss located based on the target path position to obtain a corresponding packet loss location result, wherein the packet loss location result is at least used to reflect the packet loss position of the target data packet.

2. The packet loss monitoring method in the FTTR system according to claim 1, characterized in that: The step of configuring a corresponding target probe at each target path position on the kernel execution path of the Linux operating system comprises: Determine at least one target path location on the kernel execution path of the Linux operating system, wherein the target path location includes at least one of a first path location and a second path location, a function for releasing a socket buffer is configured at the first path location, and a function in a network protocol stack is configured at the second path location; For each of the target path positions, a corresponding target probe is configured for the target path position, wherein the target probe belongs to a kernel probe, and when a corresponding callback function of the target probe is executed, processing of the target data packet based on the kernel execution path is stopped, and the corresponding callback function of the target probe is used to perform packet discard processing monitoring on the target data packet processed at the corresponding target path position to achieve corresponding packet loss detection.

3. The packet loss monitoring method in the FTTR system according to claim 1, characterized in that: The step of performing packet loss detection on the target data packet processed at the corresponding target path position based on each of the target probes to obtain the corresponding target packet loss detection result includes: Based on the pre-configured packet loss detection trigger mechanism, determine whether it is necessary to perform packet loss detection on the target data packet, and obtain the corresponding packet loss detection confirmation result; If the packet loss detection confirmation result reflects that packet loss detection is not required for the target data packet, determining not to enable each of the target probes, so that each of the target probes does not perform packet loss detection on the target data packet processed at the corresponding target path position; If the packet loss detection confirmation result reflects that packet loss detection needs to be performed on the target data packet, each of the target probes is enabled, and based on the corresponding callback function of each target probe, packet loss detection is performed on the target data packet processed at the corresponding target path position to obtain the target packet loss detection result corresponding to the target data packet.

4. The packet loss monitoring method in the FTTR system according to claim 3, characterized in that: The step of determining whether it is necessary to perform packet loss detection on the target data packet based on the pre-configured packet loss detection trigger mechanism and obtaining the corresponding packet loss detection confirmation result includes: For any target data packet that needs to be processed through the kernel execution path of the Linux operating system, the target data packet is parsed to obtain target data packet identification information corresponding to the target data packet, wherein the target data packet identification information includes at least one of MAC address information, IP address information and port number information; Determining whether the target data packet identification information belongs to target identification information, wherein the target identification information refers to data packet identification information in a pre-configured data packet identification set; If the target data packet identification information belongs to the target identification information, it is determined that packet loss detection needs to be performed on the target data packet, and a packet loss detection confirmation result is generated for indicating that packet loss detection needs to be performed on the target data packet; If the target data packet identification information does not belong to the target identification information, it is determined that packet loss detection does not need to be performed on the target data packet, and a packet loss detection confirmation result is generated to indicate that packet loss detection does not need to be performed on the target data packet.

5. The packet loss monitoring method in the FTTR system according to claim 1, characterized in that: For each of the target probes, if the target packet loss detection result corresponding to the target probe reflects that the target data packet is discarded when being processed at the corresponding target path position, the step of locating the target data packet loss based on the target path position to obtain the corresponding packet loss locating result includes: For each of the target probes, if the target packet loss detection result corresponding to the target probe reflects that the target data packet is discarded when being processed at the corresponding target path position, then obtaining the name and position line number of the function configured at the target path position; Based on the name and position line number of the function configured at the target path position, a packet loss location result corresponding to the target data packet is generated.

6. The packet loss monitoring method in the FTTR system according to claim 5, characterized in that: The step of generating a packet loss location result corresponding to the target data packet based on the name and position line number of the function configured on the target path position includes: For each of the target probes, if the target packet loss detection result corresponding to the target probe reflects that the target data packet is discarded when being processed at the corresponding target path position, then the pointer name information, target call stack information and data packet feature information of the target pointer are obtained, wherein the target pointer points to the discarded target data structure, and the target data packet will be encapsulated into a structure after being received, and the structure will be passed to the network protocol stack for processing, the structure refers to the structure corresponding to the released socket buffer, the target call stack information is used to reflect the processing flow of the target data packet on the kernel execution path, and the data packet feature information includes at least one of MAC address information, IP address information and port number information; Based on the pointer name information of the target pointer, the target call stack information, the data packet feature information, the name and position line number of the function configured at the target path location, a packet loss location result corresponding to the target data packet is generated.

7. The packet loss monitoring method in the FTTR system according to claim 5, characterized in that: For each of the target probes, if the target packet loss detection result corresponding to the target probe reflects that the target data packet is discarded when being processed at the corresponding target path position, the step of obtaining the name and position line number of the function configured at the target path position includes: For each of the target probes, if the target packet loss detection result corresponding to the target probe reflects that the target data packet is discarded when being processed at the corresponding target path position, then based on a pre-configured first filtering condition, determining whether it is necessary to perform packet loss location processing on the target data packet, wherein the first filtering condition is related to the historical data packets that need to be processed for packet loss location processing; After determining that the target data packet needs to be processed for packet loss location, obtaining data packet feature information corresponding to the target data packet; Determining whether it is necessary to perform positioning information determination processing on the target data packet based on a pre-configured second screening condition and data packet characteristic information corresponding to the target data packet, wherein the first screening condition and the second screening condition are formed in response to configuration operations performed by corresponding users, and the first screening condition is different from the second screening condition; After determining that the target data packet needs to be processed for location information determination, the name and position line number of the function configured for the target path position are obtained.

8. A packet loss monitoring device in an FTTR system, characterized in that: A gateway device applied to an FTTR system, wherein a Linux operating system is deployed in the gateway device, wherein the packet loss monitoring device in the FTTR system comprises: A probe configuration module, configured to configure a corresponding target probe at each target path position on the kernel execution path of the Linux operating system, wherein the target probe is used to perform packet loss detection on a target data packet processed at the corresponding target path position; A packet loss detection module, configured to perform packet loss detection on a target data packet processed at a corresponding target path position based on each of the target probes, and obtain a corresponding target packet loss detection result; The packet loss location module is used for, for each of the target probes, if the target packet loss detection result corresponding to the target probe reflects that the target data packet is discarded when being processed at the corresponding target path position, then the target data packet is subjected to packet loss location based on the target path position to obtain a corresponding packet loss location result, wherein the packet loss location result is at least used to reflect the packet loss position of the target data packet.

9. A gateway device, characterized in that: include: Memory for storing computer programs; A processor connected to the memory is used to execute the computer program stored in the memory to implement the packet loss monitoring method in the FTTR system according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is run, the packet loss monitoring method in the FTTR system according to any one of claims 1 to 7 is executed.

Citation Information

Patent Citations

  • EBPF-based kernel packet loss detection method, system and device

    CN113794605A

  • Implementation method of network performance management measurement probe for Internet of Things

    CN114257486A

  • UDP flow and packet loss observation method and system based on eBPF, and medium

    CN116016351A

  • Computer-implemented system and method for performing in-kernel instrumentation of kernel-level events

    US20240086558A1