Data packet detection method and device, computer equipment and readable storage medium

By installing a crawling tool on the target terminal and using the verification information generated by the server to detect and repair the device communication data packets, the problem of information leakage during the device detection process is solved, the confidentiality and security of the device are improved, and a more complete solution is achieved. Secure troubleshooting process.

CN118748644APending Publication Date: 2024-10-08SHENZHEN SMARTMORE TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411040520.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

During the device detection process, existing technology can easily lead to information leakage and cannot effectively guarantee the confidentiality and security of the device, especially when troubleshooting communication problems between the device and other devices.

Method used

By installing the crawling tool on the target terminal, use the verification information generated by the server to start the crawling tool, receive and send the device's communication data packets to the server for detection, obtain fault information for repair, limit the use of the tool, and generate verification for different users. information to improve data confidentiality.

Benefits of technology

It improves the confidentiality and security of the device, reduces the possibility of data leakage, avoids maintenance personnel from directly viewing device logs to troubleshoot faults, and enhances the detection capability of communication data packets interacted between the device and other devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118748644A_ABST
    Figure CN118748644A_ABST
Patent Text Reader

Abstract

The invention relates to a data packet detection method and device, computer equipment and a readable storage medium. The method comprises the steps that identity information of a user associated with equipment is acquired, verification information is generated based on the identity information, and the verification information is transmitted to a target terminal so that the target terminal can start a grabbing tool based on the verification information; receiving a communication data packet of the device grabbed by the grabbing tool, the target terminal and the device being in the same network segment, and the device being linked with other devices through the communication data packet; and detecting the communication data packet to obtain fault information corresponding to the equipment so as to repair the equipment based on the fault information. By adopting the method, the confidentiality of the equipment can be improved when the problems of the equipment are checked.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of device detection, and in particular to a method, apparatus, computer equipment, computer-readable storage medium and computer program product for detecting a data packet. Background Art

[0002] With the development of computer technology, devices can communicate with other devices to jointly realize preset functions. To realize this function, the operation order between devices is specified. If the devices do not run in sequence according to the preset order, the function may not be realized. Devices can communicate with each other to inform other devices whether to start running and how to run. Therefore, when the preset function is not correctly implemented, there may be a problem with the communication between devices, which needs to be checked. However, it is usually determined by directly checking the log information of the device, which may cause information leakage of the device. Summary of the invention

[0003] Based on this, it is necessary to provide a method, device, computer device, computer-readable storage medium and computer program product for detecting data packets that can improve the confidentiality of the device when troubleshooting device problems in response to the above technical problems.

[0004] In a first aspect, the present application provides a method for detecting a data packet, comprising:

[0005] Acquire identity information of a user associated with the device, generate verification information based on the identity information, and transmit the verification information to a target terminal so that the target terminal starts a crawling tool based on the verification information;

[0006] receiving a communication data packet of the device captured by the capture tool, wherein the target terminal and the device are in the same network segment, and the device is linked with other devices through the communication data packet;

[0007] The data packet is detected to obtain fault information corresponding to the device, so as to repair the device based on the fault information.

[0008] In a second aspect, the present application provides a method for detecting a data packet, which is applied to a target terminal, wherein the target terminal and the device are in the same network segment and include:

[0009] Receive verification information sent by the server;

[0010] Initiate a crawler based on the verification information, where the verification information is generated by the server based on identity information of a user associated with the device;

[0011] The communication data packets of the device captured by the capture tool are sent to the server, so that the server detects the communication data packets and obtains the fault information corresponding to the device, so as to repair the device based on the fault information.

[0012] In a third aspect, the present application further provides a data packet detection device, comprising:

[0013] an acquisition module, used to acquire identity information of a user associated with a device, generate verification information based on the identity information, and transmit the verification information to a target terminal, so that the target terminal starts a capture tool to capture communication data packets of the device based on the verification information, the target terminal and the device are in the same network segment, and the device is linked with other devices through the communication data packets;

[0014] A communication module, used for receiving a communication data packet of the capture tool to capture the device;

[0015] The detection module is used to detect the data packet and obtain the fault information corresponding to the device, so as to repair the device based on the fault information.

[0016] In a fourth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps in the above method when executing the computer program.

[0017] In a fifth aspect, the present application also provides a computer-readable storage medium having a computer program stored thereon, which implements the steps in the above method when executed by a processor.

[0018] In a sixth aspect, the present application also provides a computer program product, including a computer program, which implements the steps in the above method when executed by a processor.

[0019] The above-mentioned data packet detection method, device, computer equipment, computer-readable storage medium and computer program product, by setting a target terminal in the network segment where the device is located, the target terminal can receive the communication data packets between the devices in the network segment through the crawling tool, and send the communication data packets to the server, so that the server detects the data packets and obtains the fault information corresponding to the device. In this way, the communication data packets interacting between the device and other devices can be detected by the server, which improves the confidentiality and security of the device compared to informing the maintenance personnel of the system password of the device so that the maintenance personnel can view the log of the device to determine the fault of the device. The user installs the crawling tool on the target terminal, and starts the crawling tool to crawl the communication data packets of the device based on the verification information generated by the server. In this way, the crawling tool can be restricted to reduce the possibility of tool abuse. Different verification information is generated for different users, which can also improve the confidentiality of the data of each user's device and reduce the possibility of data leakage. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0021] FIG1 is a diagram showing an application environment of a method for detecting a data packet in one embodiment;

[0022] FIG2 is a schematic diagram of a flow chart of a method for detecting a data packet in one embodiment;

[0023] FIG3 is a schematic diagram of a flow chart of steps for detecting a data packet in one embodiment;

[0024] FIG4 is an interactive schematic diagram of a method for detecting a data packet in another embodiment;

[0025] FIG5 is a schematic flow chart of a method for detecting a data packet in another embodiment;

[0026] FIG6 is a block diagram of a device for detecting a data packet in one embodiment;

[0027] FIG7 is a diagram showing the internal structure of a computer device in one embodiment;

[0028] FIG. 8 is a diagram showing the internal structure of a computer device in another embodiment. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0030] The data packet detection method provided in the embodiment of the present application can be applied to the application environment shown in Figure 1. Among them, the target terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. The target terminal 102 and the device are set in the same network segment, and the data packets for communication between the device and other devices can be captured. The target terminal 102 captures the communication data packets of the device through a capture tool. The capture tool is, for example, an application or service installed in the target terminal 102. After the target terminal 102 captures the communication data packets, it sends these communication data packets to the server 104. The server 104 detects these communication data packets. When there is a problem with the communication data packet of the device, the server 104 can obtain the fault information corresponding to the device to repair the device based on the fault information. In order to improve the data security of each user's device, the server 104 generates verification information based on the identity information of each user, and transmits the verification information to the target terminal 102, so that the target terminal 102 can start the capture tool based on the verification information. The target terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, and tablet computers. The server 104 may be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.

[0031] In an exemplary embodiment, as shown in FIG2 , a method for detecting a data packet is provided, which is described by taking the method applied to the server in FIG1 as an example, and includes the following steps 202 to 206. Among them:

[0032] Step 202, obtaining identity information of a user associated with the device, generating verification information based on the identity information, and transmitting the verification information to a target terminal, so that the target terminal starts a crawling tool based on the verification information.

[0033] Among them, the device is a device that communicates with other devices to perform linkage. The target terminal and the device are in the same network segment, so that the target terminal can capture all transmitted data packets in the network segment where the device is located after starting the crawler. Optionally, the device can be a barcode scanner, and the other device can be a robotic arm. The barcode scanner and the robotic arm work together to realize the grasping function of the industrial robot. After the barcode scanner scans the image, the scan result is sent to the robotic arm so that the robotic arm runs to achieve grasping. The user can be, for example, a user who purchases or uses the device. For different users, the server can generate verification information based on the identity information corresponding to the user, so that when the user uses the verification information to start the crawler, the verification information can be used to impose some restrictions on the user's authority. And starting the crawler based on the verification information also improves the security of the crawler and reduces the possibility that the user poses a threat to the security of the server through the crawler. The identity information can be information that identifies the user, such as the name of the user, the id set for the user, etc. The target terminal starts the crawler based on the verification information, which means that the target terminal starts the program of the crawler to capture data packets based on the verification information.

[0034] Optionally, when the user starts the running program of the crawler on the target terminal, the target terminal can send the user's identity information to the server so that the server obtains the identity information of the user associated with the device. After the server obtains the verification information based on the identity information, it can send the verification information to the target terminal so that the target terminal starts the crawler based on the verification information.

[0035] Optionally, when the user suspects that there is a problem with the device and informs the device manufacturer, the maintenance personnel of the device manufacturer who is connected to the user can send the user's identity information to the server in the internal system, so that the server can obtain the identity information of the user associated with the device. After the server generates verification information based on the identity information, the verification information can be sent to the terminal corresponding to the maintenance personnel, and the maintenance personnel then informs the user of the verification information, so that the user can enter the verification information into the login interface of the crawler so that the crawler can start crawling data packets.

[0036] Optionally, when the server generates verification information based on the identity information, the server may identify the authority corresponding to the identity information, such as the time limit for using the crawler, the authority to use functions in the crawler, and then generate verification information based on the authority. The verification information is, for example, a password for starting the crawler.

[0037] Step 204, receiving a communication data packet from the crawler to the device.

[0038] Among them, communication data packets refer to the collection of data transmitted between a device and other devices. The size and sending time of the communication data packet can be set in the crawler. Since the crawler can capture all data packets transmitted within the network segment where the device is located, that is, the data packets sent and received by each device, in order to obtain the communication data packets related to the target device, you can set it in the crawler. The target device is the device produced by the equipment manufacturer associated with the server. Each device corresponds to a unique IP and port. Therefore, by setting the IP and port in the crawler, the communication data packet of the target device can be captured, which facilitates the server to obtain the operating status of the target device.

[0039] In this embodiment, after the target terminal captures the communication data packet of the device, it sends the communication data packet to the server, so that the server receives the communication data packet captured by the capture tool.

[0040] Step 206: Detect the communication data packet to obtain fault information corresponding to the device, so as to repair the device based on the fault information.

[0041] The fault information may be a fault in data interaction, such as a fault in establishing a connection between a device and another device before communication, a fault in data transmission between a device and another device during communication, or a fault in disconnecting a connection between a device and another device after data transmission. The server can obtain the fault information corresponding to the device by detecting the communication packet, so as to repair the device based on the fault information.

[0042] Optionally, after obtaining the fault information, the server may send the fault information to a maintenance person, so that the maintenance person can repair the fault of the device based on the fault information.

[0043] Optionally, after receiving the communication data packet, the server may first obtain the type of the communication data packet, such as a TCP data packet or an HTTP data packet, and then obtain a corresponding detection method based on the type. For example, if it is a TCP data packet, the three-way handshake information, four-way handshake information, etc. in the data packet may be checked.

[0044] In the above-mentioned data packet detection method, by setting a target terminal in the network segment where the device is located, the target terminal can receive the communication data packets between the devices in the network segment through the crawling tool, and send the communication data packets to the server, so that the server detects the data packets and obtains the fault information corresponding to the device. In this way, the communication data packets interacting between the device and other devices can be detected by the server. Compared with informing the maintenance personnel of the system password of the device so that the maintenance personnel can view the log of the device to determine the fault of the device, the confidentiality and security of the device are improved. The user installs the crawling tool on the target terminal, and starts the crawling tool to crawl the communication data packets of the device based on the verification information generated by the server. In this way, the crawling tool can be restricted to reduce the possibility of tool abuse. Different verification information is generated for different users, which can also improve the confidentiality of the data of each user's device and reduce the possibility of data leakage.

[0045] In an exemplary embodiment, the verification information carries a usage time limit. Based on the usage time limit, the time when the user uses the crawling tool can be controlled to reduce the possibility of the user abusing the crawling tool. Generating the verification information based on the identity information includes encrypting the identity information and generating the verification information, and the verification information carries the usage time limit, so that the target terminal starts the crawling tool based on the verification information, obtains the usage time limit based on the verification information, and sends the communication data packet of the device captured by the crawling tool to the server within the usage time limit.

[0046] In this embodiment, the server encrypts the identity information to generate verification information. This can improve the security of the crawling tool and restrict the user's use of the crawling tool. When the server encrypts the identity information, it can also generate verification information in combination with the user's corresponding usage time limit. The user's usage time limit for the tool can be set by the internal personnel of the equipment manufacturer. In this way, the verification information received by the target terminal carries the usage time limit. When or after the user uses the verification information to start the crawling tool, the target terminal obtains the usage time limit based on the verification information, and sends the communication data packet of the device captured by the crawling tool to the server within the usage time limit.

[0047] For example, if the device manufacturer sets a usage time limit of 1 hour for the user, then the user can only capture communication data packets for 1 hour after starting the capture tool based on the verification information. After that, the capture tool will automatically close and prompt the user that the usage time is insufficient, and if necessary, contact the device manufacturer.

[0048] In this embodiment, by encrypting the identity information to generate verification information, the tool can be prevented from being used without permission. The verification information carries a usage time limit, which can reduce the possibility of tool abuse, improve the security of the server and the device, and reduce the possibility of other people obtaining the system information of the device through the crawling tool.

[0049] There may be many reasons for the communication problems between the device and other devices, such as when the communication is connected, when the data is transmitted, when the communication is disconnected, etc. Therefore, when the server detects the data packet, it can check the data in the data packet to determine the fault information of the device. If the data packet of the device shows that the communication between the device and other devices is normal, then the server can send the normal information of the device to the target terminal so that the user can check the problems of other devices. As shown in Figure 3, the step of detecting the data packet and obtaining the fault information corresponding to the device includes steps 302 to 306. Among them:

[0050] Step 302: If the connection establishment information in the data packet is incomplete, determine that the fault information is a connection establishment failure.

[0051] The connection establishment information may refer to whether the TCP three-way handshake is successful. If not, it means that the connection establishment information is incomplete, and the fault information is a connection establishment failure. In other words, when there is a problem with the linkage between the device and other devices, it may be because the device and other devices have not successfully established a connection before data transmission.

[0052] The server detects the communication data packet, and if it detects that the connection establishment information in the communication data packet is incomplete, it determines that the fault information is a connection establishment failure, and sends the fault information to the target terminal for device problem troubleshooting.

[0053] Step 304: If there is duplicate acknowledged data or retransmitted data in the data packet, it is determined that the fault information is a data transmission fault.

[0054] Among them, the acknowledged data refers to ACK data. ACK is the abbreviation of "acknowledgement", and ACK data is used to confirm the received data packet in data communication. If the server detects that there is duplicate ACK data or retransmitted data in the communication data packet, it means that there is a problem with the data transmission between the devices. The server determines that the fault information is a data transmission failure, and sends the fault information to the target terminal. Optionally, the server can also detect the data packet to determine whether there is an interruption or packet loss during data transmission. Optionally, when detecting the data packet, the server can also determine which device the device has a problem with when transmitting data, and send the information of the device to the target terminal.

[0055] Step 306: If a reset packet exists in the data packet, it is determined that the fault information is a disconnection fault.

[0056] The server detects the data packet, that is, analyzes the data in the data packet. If the analysis shows that there is a reset packet in the data packet, that is, reset data, then the server can determine that the fault information is a connection disconnection fault, that is, a related fault of abnormal connection termination.

[0057] Optionally, if the four wave data in the data packet are abnormal, the server also determines that the fault information is a disconnection fault, and sends more specific fault information to the target terminal.

[0058] In some other embodiments, the server may also analyze application layer protocols of data packets, such as HTTP protocol, DNS protocol, etc.

[0059] In one embodiment, the server obtains the identity information of the user associated with the device, generates verification information based on the identity information, and transmits the verification information to the target terminal. The process of the server generating verification information based on the identity information includes: encrypting the identity information and generating verification information. As shown in Figure 4, the insider sends the user's identity information to the server (VertificationServer shown in the figure) through the terminal (PermissionClient shown in the figure), and the server encrypts the identity information to generate a key, sends the key to the terminal corresponding to the insider, so that the insider knows the key, and inputs the key into the crawler of the target terminal to start the crawler (DataEnvironmentTool1, ..., DataEnvironmentTooln). Optionally, the user starts the crawler based on the verification information and can also be implemented by the following steps: the user starts the running program of the crawler to display the login interface of the crawler on the display of the target terminal. The operation of starting the running program of the crawler can be, for example, double-clicking the application icon corresponding to the crawler. The login interface is used to enter the verification information to start the program of the crawler to capture data packets. When the user starts the running program of the crawler, the target terminal can send the user's identity information to the server. The server generates verification information based on the identity information and sends the verification information to the target terminal. In this way, the target terminal can start the crawler based on the verification information. In order to provide the security of the tool, after the server receives the identity information sent by the target terminal, it is also necessary to verify the request to start the crawler. When it is determined that the request is allowed, the verification information is sent to the target terminal.

[0060] The server can communicate with multiple crawling tools to obtain fault information of multiple devices of the equipment vendor. The verification information carries the usage time limit, and the target terminal starts the crawling tool based on the verification information, obtains the usage time limit based on the verification information, and sends the communication data packet of the device captured by the crawling tool to the server within the usage time limit. That is, after the crawling tool is started, it can only be used for a preset time, which is the usage time limit given by the server to the user.

[0061] After the crawler is started, the communication data packets of the target device in the network segment are captured based on the specified IP and port. When the crawler captures the data packets, it can package the captured data within the set time into a communication data packet according to the tool configuration information, and then send it to the server. This can reduce the frequency of data transmission between the target terminal and the server and reduce the possibility of packet loss. The target terminal sends the communication data packet captured by the crawler to the server through a TCP request or an HTTP POST request. The server detects the communication data packet and obtains the corresponding fault information of the device to repair the device based on the fault information. For example, the server can determine whether there is a problem with the data packet based on the data packet, and determine the address and time of the problem, so as to locate the problem quickly and accurately. This can prevent users from knowing the account password of the device and improve the confidentiality of the device system. In addition, by starting the crawler, you can understand the operating status of the device, that is, determine whether the data interaction of the device is normal. If it is abnormal, you can also know the corresponding fault information, which can simplify the detection process and reduce the difficulty of detection.

[0062] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0063] As shown in FIG5 , the present application also provides a data packet detection method applied to a target terminal, the method comprising steps 502 to 506. Among them:

[0064] Step 502: Receive verification information transmitted by the server.

[0065] Step 504 , starting a crawler based on verification information, where the verification information is generated by the server based on identity information of a user associated with the device.

[0066] Step 506, sending the communication data packets of the device captured by the capture tool to the server, so that the server detects the communication data packets and obtains the fault information corresponding to the device, so as to repair the device based on the fault information.

[0067] In some embodiments, the verification information carries a usage time limit, so after the target terminal obtains the verification information, it can obtain the usage time limit based on the verification information, and determine the closing time of the crawler based on the usage time limit. When the closing time is reached, the crawler is closed to stop the communication data packets of the crawler device. Specifically, when the crawler is started, the timer is started at the same time, and the duration of the timer is set to the usage time limit. In this way, the length of time the user uses the crawler can be limited, avoiding the situation where the bandwidth in the device is affected due to the user's use of the tool.

[0068] In some embodiments, since the target terminal can collect all the data packets of the interaction within the network segment, the equipment manufacturer only needs to care whether there are problems with the equipment it produces. Therefore, the data captured by the packet capture tool can be filtered in the capture tool so that the data packets sent to the server are all data related to the device. Specifically, the capture tool can obtain device information, and the device information includes the IP number and port number of the device, that is, information that can uniquely identify the device. After that, the capture tool filters the data captured by the capture tool based on the IP number and port number, determines that the sender or destination is the IP number and port number of the device as the communication data packet of the device, and then sends the communication data packet to the server.

[0069] For the description of the embodiment of the method for detecting a data packet applied to a target terminal, reference may be made to the description of the method for detecting a data packet applied to a server, which will not be repeated here.

[0070] Based on the same inventive concept, the embodiment of the present application also provides a data packet detection device for implementing the data packet detection method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the detection device for one or more data packets provided below can refer to the limitations of the data packet detection method above, and will not be repeated here.

[0071] In an exemplary embodiment, as shown in FIG6 , a data packet detection device is provided, including: an acquisition module 610, a communication module 620 and a detection module 630, wherein:

[0072] The acquisition module 610 is used to obtain the identity information of the user associated with the device, generate verification information based on the identity information, and transmit the verification information to the target terminal so that the target terminal starts the crawling tool based on the verification information. The target terminal and the device are in the same network segment, and the device is linked with other devices through communication data packets.

[0073] The communication module 620 is used to receive communication data packets from the crawling tool to the crawling device.

[0074] The detection module 630 is used to detect the data packet and obtain the fault information corresponding to the device so as to repair the device based on the fault information.

[0075] In some embodiments, the acquisition module 610 is also used to encrypt the identity information and generate verification information, which carries a usage time limit so that the target terminal starts the crawling tool based on the verification information, obtains the usage time limit based on the verification information, and sends the communication data packets of the device captured by the crawling tool to the server within the usage time limit.

[0076] In some embodiments, the detection module 630 is also used to determine that the fault information is a connection establishment failure if the connection establishment information in the data packet is incomplete; if there is repeated acknowledgement data or retransmission data in the data packet, the fault information is determined to be a data transmission failure; if there is a reset packet in the data packet, the fault information is determined to be a connection disconnection failure.

[0077] Each module in the above-mentioned data packet detection device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.

[0078] In an exemplary embodiment, a data packet detection device is provided, which is applied to a target terminal and includes: a communication module and a start module, wherein:

[0079] The communication module is used to receive the verification information transmitted by the server, and send the communication data packet of the device captured by the capture tool to the server, so that the server can detect the communication data packet and obtain the fault information corresponding to the device, so as to repair the device based on the fault information.

[0080] A starting module is used to start the crawling tool based on the verification information, where the verification information is generated by the server based on the identity information of the user associated with the device.

[0081] In some embodiments, the startup module is also used to obtain the usage time limit based on the verification information; determine the closing time of the grabbing tool based on the usage time limit, and when the closing time is reached, close the grabbing tool to stop grabbing the communication data packets of the device.

[0082] In some embodiments, the communication module is also used to obtain device information, which includes an IP number and a port number; filter the data captured by the crawler based on the IP number and port number to obtain a communication data packet of the device; and send the communication data packet to the server.

[0083] Each module in the above-mentioned data packet detection device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.

[0084] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG7. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the communication data packets received by the device and the data for detecting the communication data packets. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for detecting a data packet is implemented.

[0085] In an exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG8. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner may be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a method for detecting a data packet is implemented. The display unit of the computer device is used to form a visually visible picture, which may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0086] Those skilled in the art will understand that the structure shown in FIG. 7 or FIG. 8 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0087] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method when executing the computer program.

[0088] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method are implemented.

[0089] In one embodiment, a computer program product is provided, comprising a computer program, which implements the steps in the above method when executed by a processor.

[0090] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0091] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0092] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0093] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for detecting a data packet, characterized in that: Applied to a server, the method comprises: Acquire identity information of a user associated with the device, generate verification information based on the identity information, and transmit the verification information to a target terminal so that the target terminal starts a crawling tool based on the verification information; receiving a communication data packet of the device captured by the capture tool, wherein the target terminal and the device are in the same network segment, and the device is linked with other devices through the communication data packet; The communication data packet is detected to obtain fault information corresponding to the device, so as to repair the device based on the fault information.

2. The method according to claim 1, characterized in that The generating verification information based on the identity information includes: The identity information is encrypted to generate the verification information, which carries a usage time limit, so that the target terminal starts the crawling tool based on the verification information, obtains the usage time limit based on the verification information, and sends the communication data packet of the device captured by the crawling tool to the server within the usage time limit.

3. The method according to claim 2, characterized in that The detecting the data packet to obtain the fault information corresponding to the device includes: If the connection establishment information in the communication data packet is incomplete, determining that the fault information is a connection establishment failure; If there is duplicate acknowledged data or retransmitted data in the data packet, determining that the fault information is a data transmission fault; If a reset packet exists in the data packet, it is determined that the fault information is a connection disconnection fault.

4. A method for detecting a data packet, characterized in that: Applied to a target terminal, the target terminal and the device are in the same network segment, the method comprises: Receive verification information sent by the server; Initiate a crawler based on the verification information, where the verification information is generated by the server based on identity information of a user associated with the device; The communication data packets of the device captured by the capture tool are sent to the server, so that the server detects the communication data packets and obtains the fault information corresponding to the device, so as to repair the device based on the fault information.

5. The method according to claim 4, characterized in that The verification information carries a usage time limit, and starting the crawler based on the verification information includes: Obtaining the usage time limit based on the verification information; The closing time of the grabbing tool is determined based on the usage time limit, and when the closing time is reached, the grabbing tool is closed to stop grabbing the communication data packets of the device.

6. The method according to claim 4, characterized in that Sending the communication data packet of the device captured by the capture tool to the server includes: Obtain device information, including IP number and port number; Filter the data captured by the capture tool based on the IP number and port number to obtain the communication data packet of the device; The communication data packet is sent to the server.

7. A data packet detection device, characterized in that: The device comprises: an acquisition module, used to acquire identity information of a user associated with a device, generate verification information based on the identity information, and transmit the verification information to a target terminal, so that the target terminal starts a capture tool to capture communication data packets of the device based on the verification information, the target terminal and the device are in the same network segment, and the device is linked with other devices through the communication data packets; A communication module, used for receiving a communication data packet of the capture tool to capture the device; The detection module is used to detect the communication data packet and obtain the fault information corresponding to the device, so as to repair the device based on the fault information.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 4 to 6 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.