Distribution network failure reason determination method and device, storage medium and electronic device

By receiving abnormal data of distribution network and determining the abnormal status, the problem of difficulty in analyzing the causes of distribution network failure in the existing technology is solved, and the effective analysis and uploading of the reasons for distribution network failure is realized, and the analyticity of the reasons for distribution network failure is improved.

CN119835141APending Publication Date: 2025-04-15HANGZHOU HUACHENG NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411986856.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-04-15

AI Technical Summary

Technical Problem

In the existing technology, it is difficult to analyze the reasons for the failure of distribution network, so that the logs that fail to distribution network cannot be uploaded to the cloud, and the cloud cannot analyze the reasons for its failure and push them to the client.

Method used

When receiving the distribution network information sent by the target terminal, the distribution network operation is performed with the distribution network equipment indicated by the distribution network information; when the distribution network operation fails, the target distribution network abnormal data sent by the distribution network equipment is received, the abnormal state is determined, and the abnormal state and distribution log are cached; the abnormal state and distribution log are sent to the target terminal so that the target terminal can determine the reason for the distribution failure based on this information.

Benefits of technology

The analysis of the reasons for the failure of the distribution network is realized, and the log of each failure of the distribution network can be uploaded to the target terminal, thus solving the problem of difficulty in analyzing the reasons for the failure of the distribution network and achieving the effect of analyzing the reasons for the failure of the distribution network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119835141A_ABST
    Figure CN119835141A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a network distribution failure reason determination method and device, a storage medium and an electronic device.The method is applied to target equipment and comprises the steps that under the condition that network distribution information sent by a target terminal is received, network distribution operation is carried out on network distribution equipment indicated by the network distribution information; under the condition that the distribution network operation fails, receiving target distribution network abnormal data sent by the distribution network equipment; determining an abnormal state based on the target distribution network abnormal data; caching the abnormal state and a first distribution network log generated in the process of establishing connection with the distribution network equipment; and sending the abnormal state and the first network distribution log to the target terminal to indicate the target terminal to determine the reason of network distribution failure based on the abnormal state, the first network distribution log and the historical network distribution log of the target device. According to the invention, the problem that the distribution network failure reason is difficult to analyze is solved, and the effect of analyzing the distribution network failure reason is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of communications, and in particular, to a method, device, storage medium and electronic device for determining a cause of network distribution failure. Background Art

[0002] In the related art, smart devices usually encounter connection failure problems during the network configuration process. In the event of a network configuration failure, the log of the network configuration failure cannot be uploaded to the cloud, and the cloud cannot analyze the cause of the failure and push it to the client.

[0003] It can be seen from this that there is a technical problem in the relevant technology that it is difficult to analyze the cause of distribution network failure.

[0004] With respect to the above-mentioned problems existing in the related technologies, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present invention provide a method, device, storage medium and electronic device for determining the cause of network distribution failure, so as to at least solve the problem that it is difficult to analyze the cause of network distribution failure in the related art.

[0006] According to one embodiment of the present invention, a method for determining the cause of a network configuration failure is provided, comprising: upon receiving network configuration information sent by a target terminal, performing a network configuration operation with a network configuration device indicated by the network configuration information; upon failure of the network configuration operation, receiving target network configuration abnormality data sent by the network configuration device; determining an abnormal state based on the target network configuration abnormality data; caching the abnormal state and a first network configuration log generated during the process of establishing a connection with the network configuration device; and sending the abnormal state and the first network configuration log to the target terminal to instruct the target terminal to determine the cause of the network configuration failure based on the abnormal state, the first network configuration log, and a historical network configuration log of the target device, wherein the historical network configuration log is a log of network configuration failure, and the historical network configuration log is a log generated during a network configuration operation before the current network configuration operation and with the shortest time interval with the current network configuration operation.

[0007] In an exemplary embodiment, performing a network configuration operation with a network configuration device indicated by the network configuration information includes: when the connection mode with the target terminal is a long connection, establishing a connection with the network configuration device based on the network configuration information; when the connection mode with the target terminal is a short connection, disconnecting the connection with the target terminal, and after disconnecting the connection with the target terminal, establishing a connection with the network configuration device based on the network configuration information.

[0008] In an exemplary embodiment, before performing a network configuration operation with the network configuration device indicated by the network configuration information, the method further includes: receiving a network configuration request sent by the target terminal; comparing a first network configuration identifier included in the network configuration request with a second network configuration identifier to obtain a comparison result, wherein the first network configuration identifier is used to identify the target terminal, and the second network configuration identifier is an identifier for identifying other terminals included in other received network configuration requests; determining a target network state based on the comparison result; and sending the target network state to the target terminal to instruct the target terminal to send the network configuration information based on the target network state.

[0009] In an exemplary embodiment, determining the target network state based on the comparison result includes: when the comparison result indicates that the first network configuration identifier is the same as the second network configuration identifier, determining that the target network state is a non-configurable network state; when the comparison result indicates that the first network configuration identifier is different from the second network configuration identifier, determining that the target network state is a configureable network state.

[0010] In an exemplary embodiment, performing a network configuration operation with the network configuration device indicated by the network configuration information includes: in a case where the connection mode with the target terminal is a long connection, establishing a connection with the network device indicated by the network device information based on the network device information included in the network configuration information; in a case where the connection with the network device fails, adjusting the network connection configuration based on the network abnormality sub-data sent by the network device; establishing a connection with the platform device indicated by the platform device information based on the platform device information included in the network configuration information; in a case where the connection mode with the target terminal is a short connection, establishing a connection with the network device indicated by the network device information based on the network device information included in the network configuration information.

[0011] In an exemplary embodiment, determining the abnormal state based on the target distribution network abnormal data includes: obtaining a pre-cached abnormal analysis protocol; classifying the target distribution network abnormal data based on the abnormal analysis protocol to obtain a target category; and determining a state corresponding to the target category as the abnormal state.

[0012] In an exemplary embodiment, sending the network configuration abnormality data and the first network configuration log to the target terminal includes one of the following: when the connection mode with the target terminal is a long connection, receiving a monitoring request sent by the target terminal, establishing a monitoring relationship with the target terminal based on the monitoring request, and after the monitoring relationship is established, allowing the target terminal to obtain the network configuration abnormality data and the first network configuration log; when the connection mode with the target terminal is a long connection or a short connection, receiving a query request sent by the target terminal, and sending the network configuration abnormality data and the first network configuration log to the target terminal based on the query request.

[0013] According to another embodiment of the present invention, a device for determining the cause of network configuration failure is provided, comprising: a network configuration module, for performing a network configuration operation with a network configuration device indicated by the network configuration information when receiving the network configuration information sent by a target terminal; a receiving module, for receiving target network configuration abnormality data sent by the network configuration device when the network configuration operation fails; a determining module, for determining an abnormal state based on the target network configuration abnormality data; a caching module, for caching the abnormal state and a first network configuration log generated in the process of establishing a connection with the network configuration device; a sending module, for sending the abnormal state and the first network configuration log to the target terminal to instruct the target terminal to determine the cause of the network configuration failure based on the abnormal state, the first network configuration log and a historical network configuration log of the target device, wherein the historical network configuration log is a log of network configuration failure, and the historical network configuration log is a log generated during a network configuration operation before the current network configuration operation and with the shortest time interval with the current network configuration operation.

[0014] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when run.

[0015] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0016] According to yet another embodiment of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps of the method described in each embodiment of the present application are implemented.

[0017] Through the present invention, the target device can perform network distribution operation with the network distribution device indicated by the network distribution information based on the network distribution information sent by the received target terminal. In the case of network distribution operation failure, the abnormal state can be determined by the target network distribution abnormal data received from the network device, the abnormal state and the first network distribution log generated in the process of establishing connection with the network distribution device are stored, and the abnormal state and the first network distribution log are sent to the target terminal, and the target terminal can be instructed to determine the cause of network distribution failure according to the abnormal state, the first network distribution log, and the log of historical network distribution failure with the shortest time interval with the current network distribution operation in the historical network distribution operation. Since the target terminal can receive the log of each network distribution failure (that is, when the connection is interrupted after the last network distribution failure, the log of the last network distribution failure can be obtained in the process of this network distribution), the reason for the network distribution connection can be obtained, therefore, the problem of difficulty in analyzing the cause of network distribution failure existing in the related art can be solved, and the effect of analyzing the cause of network distribution failure can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 is a hardware structure block diagram of a mobile terminal according to a method for determining a cause of network configuration failure according to an embodiment of the present invention;

[0019] Figure 2 is a flow chart of a method for determining a cause of a distribution network failure according to an embodiment of the present invention;

[0020] Figure 3 is a schematic diagram of a network distribution process according to an embodiment of the present invention;

[0021] Figure 4 4 is a structural block diagram of a device for determining a cause of network distribution failure according to an embodiment of the present invention. DETAILED DESCRIPTION

[0022] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.

[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0024] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a method for determining the cause of network configuration failure according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0025] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for determining the cause of network distribution failure in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0026] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0027] In this embodiment, a method for determining the cause of network configuration failure is provided. Figure 2 is a flow chart of a method for determining the cause of network distribution failure according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0028] Step S202, when receiving the network configuration information sent by the target terminal, performing a network configuration operation with the network configuration device indicated by the network configuration information;

[0029] Step S204, when the network distribution operation fails, receiving target network distribution abnormality data sent by the network distribution device;

[0030] Step S206, determining an abnormal state based on the target distribution network abnormal data;

[0031] Step S208, caching the abnormal state and the first network distribution log generated in the process of establishing a connection with the network distribution device;

[0032] Step S210: Send the abnormal state and the first network configuration log to the target terminal to instruct the target terminal to determine the cause of the network configuration failure based on the abnormal state, the first network configuration log and the historical network configuration log of the target device, wherein the historical network configuration log is a log of network configuration failure, and the historical network configuration log is a log generated during the network configuration operation before the current network configuration operation and with the shortest time interval with the current network configuration operation.

[0033] In the above embodiment, network configuration can be understood as the process of connecting the target device to the router of the cloud platform (i.e., the above network configuration device) and registering the cloud platform, so that the target device can have the ability to remotely communicate with the cloud platform, wherein the target device can be a smart device, such as a smart phone, a smart washing machine, a smart air conditioner and other smart home devices, and can also be a network camera device, etc., but not limited to this. The target terminal can be a mobile terminal, such as a mobile phone, a laptop, a tablet or a car computer, etc., which can be used to configure the target device through a local area network protocol (i.e., the above network configuration information), wherein the local area network protocol can include Bluetooth, soft AP (Soft-AP) wireless network card, wifi, cellular network, etc.

[0034] In the above embodiment, Figure 3 is a schematic diagram of a network distribution process according to an embodiment of the present invention, such as Figure 3As shown, when receiving the network configuration information sent by the target terminal (i.e., the mobile terminal in the figure), the target terminal can obtain the network configuration success log and the network configuration failure log (i.e., the above-mentioned historical network configuration log) in the last network configuration process and store them. When the target device fails to configure the network with the router, the target device can determine the abnormal state of the target device based on the target network configuration abnormal data received from the router, cache the abnormal state and generate the network configuration log (i.e., the above-mentioned first network configuration log) generated in the process of establishing a connection with the router. After receiving the abnormal state, the current network configuration log, and the last network configuration log sent by the target device, the target terminal can display the cause of the network configuration failure and remind the corresponding treatment measures. After the network configuration is completed, the target terminal can also upload the locally cached log of the failure in the last network configuration process and the log of this network configuration to the cloud platform, which can be used by relevant personnel to analyze the cause of the network configuration failure, wherein the end of the network configuration can be the success of this network configuration or the failure of this network configuration timeout.

[0035] Through the present invention, the target device can perform network distribution operation with the network distribution device indicated by the network distribution information based on the network distribution information sent by the received target terminal. In the case of network distribution operation failure, the abnormal state can be determined by the target network distribution abnormal data received from the network device, the abnormal state and the first network distribution log generated in the process of establishing connection with the network distribution device are stored, and the abnormal state and the first network distribution log are sent to the target terminal, and the target terminal can be instructed to determine the cause of network distribution failure according to the abnormal state, the first network distribution log, and the log of historical network distribution failure with the shortest time interval with the current network distribution operation in the historical network distribution operation. Since the target terminal can receive the log of each network distribution failure (that is, when the connection is interrupted after the last network distribution failure, the log of the last network distribution failure can be obtained in the process of this network distribution), the reason for the network distribution connection can be obtained, therefore, the problem of difficulty in analyzing the cause of network distribution failure existing in the related art can be solved, and the effect of analyzing the cause of network distribution failure can be achieved.

[0036] Optionally, the execution subject of the above steps may be a target device, such as a smart device, a smart phone, a smart home device, a network camera device, etc., but is not limited thereto.

[0037] In an exemplary embodiment, performing a network configuration operation with a network configuration device indicated by the network configuration information includes: when the connection mode with the target terminal is a long connection, establishing a connection with the network configuration device based on the network configuration information; when the connection mode with the target terminal is a short connection, disconnecting the connection with the target terminal, and after disconnecting the connection with the target terminal, establishing a connection with the network configuration device based on the network configuration information.

[0038] In the above embodiments, due to the different connection modes of the target device, it can be divided into long connection and short connection, where the long connection can also be called a persistent connection, that is, it can continuously send information after connecting to the device; the short connection is to disconnect immediately after an information exchange. Therefore, when the connection mode is a long connection, you can directly establish a connection with the router through the network configuration information; when the connection mode is a short connection, you need to disconnect the connection with the target terminal before you can connect to the network configuration device through the network configuration information.

[0039] In an exemplary embodiment, before performing a network configuration operation with the network configuration device indicated by the network configuration information, the method further includes: receiving a network configuration request sent by the target terminal; comparing a first network configuration identifier included in the network configuration request with a second network configuration identifier to obtain a comparison result, wherein the first network configuration identifier is used to identify the target terminal, and the second network configuration identifier is an identifier for identifying other terminals included in other received network configuration requests; determining a target network state based on the comparison result; and sending the target network state to the target terminal to instruct the target terminal to send the network configuration information based on the target network state.

[0040] In the above embodiment, when the target terminal performs network configuration, a network configuration request will be generated, and the network configuration can be performed through the unique ID (i.e., the above-mentioned first network configuration identifier) ​​information in the network configuration request. The target device will save the request ID (i.e., the above-mentioned second network configuration identifier) ​​corresponding to different target terminals during each network configuration process. By comparing the first network configuration identifier with the second network configuration identifier, the target network status during this network configuration process can be determined and sent to the target terminal. The target terminal can be instructed to send network configuration information according to the target network status, wherein the network configuration request ID can be reqid_A.

[0041] In an exemplary embodiment, determining the target network state based on the comparison result includes: when the comparison result indicates that the first network configuration identifier is the same as the second network configuration identifier, determining that the target network state is a non-configurable network state; when the comparison result indicates that the first network configuration identifier is different from the second network configuration identifier, determining that the target network state is a configureable network state.

[0042] In the above embodiment, by comparing the first network configuration identifier with the second network configuration identifier, it can be determined whether the target terminal is connected to the target device for the first time. Figure 3When the second network configuration identifier includes the first network configuration identifier, it can be explained that this target terminal is not connected for the first time, but belongs to the terminal of "same network configuration, network configuration is initiated again", which can indicate that the last network configuration between this target terminal and the target device failed (that is, the target network state of the target device at this time is a non-network configuration state); when the second network configuration identifier does not include the first network configuration identifier, it can be explained that this device terminal is connected for the first time, and it can be determined that the target network state at this time is a network configuration state.

[0043] In the above embodiment, after determining that the target network state is a non-configurable network state, the target terminal can display the received target network state and prompt the corresponding solution measures for the non-configurable network state. When the non-configurable network state is confirmed to be solved, the target terminal can notify the target device to enter the target network state of the configurable network state. After adjusting the target network state, the target device can feedback this state to the target terminal.

[0044] In an exemplary embodiment, performing a network configuration operation with the network configuration device indicated by the network configuration information includes: in a case where the connection mode with the target terminal is a long connection, establishing a connection with the network device indicated by the network device information based on the network device information included in the network configuration information; in a case where the connection with the network device fails, adjusting the network connection configuration based on the network abnormality sub-data sent by the network device; establishing a connection with the platform device indicated by the platform device information based on the platform device information included in the network configuration information; in a case where the connection mode with the target terminal is a short connection, establishing a connection with the network device indicated by the network device information based on the network device information included in the network configuration information.

[0045] In the above embodiment, see the attached Figure 3 When the connection mode is a long connection (i.e. the device in the figure does not need to disconnect from the mobile terminal for network configuration), you can first enter the wifi information authentication stage, that is, you can establish a connection with the router based on the wifi information in the network configuration information (i.e. the above network device information), which can include verifying SSID (Service Set Identifier, service set identifier) ​​information, BSSID (Bluetooth Station Interface Identifier, physical address or MAC address), password authentication, encryption information, etc. Among them, SSID can be understood as the name used by the router when it generates a signal for other wireless devices to search and connect; BSSID can be understood as an access point or device used to identify wireless network devices.

[0046] In the above embodiment, when the SSID, BSSID, encryption information and password verification fails (i.e., failure to establish a connection with the network device), the internal settings (i.e., the above network connection configuration) can be adjusted according to the failure reasons (i.e., the above network abnormality sub-data) fed back by different routers. It is also possible to establish a connection and registration with the cloud platform (i.e., the above platform device) according to the platform device information included in the network configuration information. When the connection fails, the cloud platform will return the failure reason to the target device.

[0047] In the above embodiment, when the connection mode is a short connection (i.e., the device in the figure needs to disconnect from the mobile terminal for network configuration), a connection can be established with the router according to the wifi information in the network configuration information (i.e., the above network device information). When the SSID, BSSID, encryption information, and password verification fail, the network device can feedback the principle of network configuration failure to the target device. In addition, the target terminal can re-enter the state of discovering the target device and wait for the Bluetooth or hotspot connection with the next target device.

[0048] In an exemplary embodiment, determining the abnormal state based on the target distribution network abnormal data includes: obtaining a pre-cached abnormal analysis protocol; classifying the target distribution network abnormal data based on the abnormal analysis protocol to obtain a target category; and determining a state corresponding to the target category as the abnormal state.

[0049] In the above embodiment, the target device can record the network configuration log of each stage in the network configuration process, and can record the failure information in the stage according to the display interaction process negotiated with the mobile terminal (i.e., the above-mentioned foreseeable cache exception analysis protocol). Different categories of corresponding identifiers can be pre-defined in the exception analysis protocol. After the target network configuration exception data is obtained, the target category can be determined by reading the identifier in the target network configuration exception data. Among them, the target category may include connection router timeout, authentication failure, IP conflict, DHCP server timeout and other exceptions, but is not limited to this. The classification of the indication in the exception analysis protocol can be represented by an identifier, for example: the number 0 can represent a connection router timeout, the number 1 can represent an authentication failure, the number 2 can represent an IP conflict, the number 3 can represent a DHCP server timeout, and the number 4 represents other exceptions. It should be noted that the target category can be represented by a decimal number, and the target type can also be represented by binary or hexadecimal, and the present invention is not limited to this.

[0050] In an exemplary embodiment, sending the network configuration abnormality data and the first network configuration log to the target terminal includes one of the following: when the connection mode with the target terminal is a long connection, receiving a monitoring request sent by the target terminal, establishing a monitoring relationship with the target terminal based on the monitoring request, and after the monitoring relationship is established, allowing the target terminal to obtain the network configuration abnormality data and the first network configuration log; when the connection mode with the target terminal is a long connection or a short connection, receiving a query request sent by the target terminal, and sending the network configuration abnormality data and the first network configuration log to the target terminal based on the query request.

[0051] In the above embodiment, when the connection mode with the target terminal is a long connection, the target terminal can monitor the status returned by the target device by sending a monitoring request, and can also periodically query the status of the target device, abnormal network configuration data and the target device's locally stored network configuration log by continuously requesting the query request sent during the network configuration process; when the connection mode with the target terminal is a short connection, when the network configuration fails, the status of the target device, abnormal network configuration data and the target device's locally stored network configuration log can be obtained by continuously requesting the query request sent during the network configuration process.

[0052] In the above embodiment, see the attached Figure 3 , in the case of successful network configuration, the target terminal can initiate a query request and receive the network configuration success status and the network configuration success log sent by the target device. After the target terminal obtains the network configuration success log, the target device can delete the local cache. The target terminal can integrate the received network configuration success log and the local cached log of the last network configuration failure, and send them together to the cloud platform. In the case of network configuration failure, the target terminal can initiate a query request and receive the network configuration failure status and the network configuration failure log sent by the target device. After the target terminal obtains the network configuration failure log, the target device can delete the local cache. The target terminal can integrate the received network configuration failure log and the local cached log of the last network configuration failure, and send them together to the cloud platform.

[0053] In the above embodiment, if the target terminal does not initiate a query request, the target device will solidify the abnormal state and log of this network configuration into local storage, which can be used by the target terminal to obtain it at the next network configuration. At this time, the target device can switch to the network configuration mode and wait for the next network configuration request.

[0054] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0055] In this embodiment, a device for determining the cause of network distribution failure is also provided, which is used to implement the above embodiments and preferred implementation modes, and will not be repeated hereafter. As used below, the term "module" may be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0056] Figure 4 is a structural block diagram of a device for determining the cause of network distribution failure according to an embodiment of the present invention, such as Figure 4 As shown, the device comprises:

[0057] The network configuration module 402 is used to perform network configuration operations with the network configuration device indicated by the network configuration information when receiving the network configuration information sent by the target terminal;

[0058] A receiving module 404 is used to receive target network configuration abnormality data sent by the network configuration device when the network configuration operation fails;

[0059] A determination module 406, configured to determine an abnormal state based on the target distribution network abnormal data;

[0060] A cache module 408, configured to cache the abnormal state and a first network configuration log generated during the process of establishing a connection with the network configuration device;

[0061] The sending module 410 is used to send the abnormal state and the first network configuration log to the target terminal to instruct the target terminal to determine the cause of the network configuration failure based on the abnormal state, the first network configuration log and the historical network configuration log of the target device, wherein the historical network configuration log is a log of network configuration failure, and the historical network configuration log is a log generated before the current network configuration operation and during the network configuration operation with the shortest time interval with the current network configuration operation.

[0062] In an exemplary embodiment, the network configuration module 402 can implement network configuration operations with the network configuration device indicated by the network configuration information in the following manner: when the connection mode with the target terminal is a long connection, establishing a connection with the network configuration device based on the network configuration information; when the connection mode with the target terminal is a short connection, disconnecting the connection with the target terminal, and after disconnecting the connection with the target terminal, establishing a connection with the network configuration device based on the network configuration information.

[0063] In an exemplary embodiment, the device can be used to: receive a network configuration request sent by the target terminal before performing a network configuration operation with the network configuration device indicated by the network configuration information; compare a first network configuration identifier included in the network configuration request with a second network configuration identifier to obtain a comparison result, wherein the first network configuration identifier is used to identify the target terminal, and the second network configuration identifier is an identifier for identifying other terminals included in other received network configuration requests; determine a target network state based on the comparison result; and send the target network state to the target terminal to instruct the target terminal to send the network configuration information based on the target network state.

[0064] In an exemplary embodiment, the device can also be used to determine the target network state based on the comparison result: when the comparison result indicates that the first network configuration identifier is the same as the second network configuration identifier, determine that the target network state is a non-configurable network state; when the comparison result indicates that the first network configuration identifier is different from the second network configuration identifier, determine that the target network state is a configurable network state.

[0065] In an exemplary embodiment, the network configuration module 402 can implement network configuration operations with the network configuration device indicated by the network configuration information in the following manner: when the connection mode with the target terminal is a long connection, establishing a connection with the network device indicated by the network device information based on the network device information included in the network configuration information; when the connection with the network device fails, adjusting the network connection configuration based on the network abnormality sub-data sent by the network device; establishing a connection with the platform device indicated by the platform device information based on the platform device information included in the network configuration information; when the connection mode with the target terminal is a short connection, establishing a connection with the network device indicated by the network device information based on the network device information included in the network configuration information.

[0066] In an exemplary embodiment, the determination module 406 can determine the abnormal state based on the target distribution network abnormal data in the following manner: obtain a pre-cached abnormal analysis protocol; classify the target distribution network abnormal data based on the abnormal analysis protocol to obtain a target category; and determine the state corresponding to the target category as the abnormal state.

[0067] In an exemplary embodiment, the sending module 410 can send the network configuration abnormality data and the first network configuration log to the target terminal in one of the following ways: when the connection mode with the target terminal is a long connection, receiving a monitoring request sent by the target terminal, establishing a monitoring relationship with the target terminal based on the monitoring request, and after the monitoring relationship is established, allowing the target terminal to obtain the network configuration abnormality data and the first network configuration log; when the connection mode with the target terminal is a long connection or a short connection, receiving a query request sent by the target terminal, and sending the network configuration abnormality data and the first network configuration log to the target terminal based on the query request.

[0068] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0069] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0070] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0071] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0072] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0073] An embodiment of the present invention further provides a computer program product, including a computer program, which implements the steps of the method in each embodiment of the present application when the computer program is executed by a processor.

[0074] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0075] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

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

Claims

1. A method for determining the cause of network distribution failure, characterized in that: Applied to target devices, including: When receiving the network configuration information sent by the target terminal, performing network configuration operations with the network configuration device indicated by the network configuration information; In the case where the network distribution operation fails, receiving target network distribution abnormality data sent by the network distribution device; Determining an abnormal state based on the target distribution network abnormal data; Cache the abnormal state and a first network configuration log generated during the process of establishing a connection with the network configuration device; The abnormal state and the first network configuration log are sent to the target terminal to instruct the target terminal to determine the cause of the network configuration failure based on the abnormal state, the first network configuration log and the historical network configuration log of the target device, wherein the historical network configuration log is a log of network configuration failure, and the historical network configuration log is a log generated during the network configuration operation before the current network configuration operation and with the shortest time interval with the current network configuration operation.

2. The method according to claim 1, characterized in that Performing a network configuration operation with the network configuration device indicated by the network configuration information includes: When the connection mode with the target terminal is a long connection, establishing a connection with the network distribution device based on the network distribution information; In the case that the connection mode with the target terminal is a short connection, the connection with the target terminal is disconnected, and after disconnecting the connection with the target terminal, a connection is established with the network distribution device based on the network distribution information.

3. The method according to claim 1, characterized in that Before performing a network configuration operation with the network configuration device indicated by the network configuration information, the method further includes: Receiving a network configuration request sent by the target terminal; Compare the first network configuration identifier included in the network configuration request with the second network configuration identifier to obtain a comparison result, wherein the first network configuration identifier is used to identify the target terminal, and the second network configuration identifier is an identifier included in other received network configuration requests and used to identify other terminals; Determine the target network status based on the comparison result; The target network state is sent to the target terminal to instruct the target terminal to send the network configuration information based on the target network state.

4. The method according to claim 3, characterized in that Determining the target network state based on the comparison result includes: When the comparison result indicates that the first network configuration identifier is the same as the second network configuration identifier, determining that the target network state is a network configuration unavailable state; When the comparison result indicates that the first network configuration identifier is different from the second network configuration identifier, it is determined that the target network state is a network configuration available state.

5. The method according to claim 1, characterized in that Performing a network configuration operation with the network configuration device indicated by the network configuration information includes: When the connection mode with the target terminal is a long connection, establishing a connection with the network device indicated by the network device information based on the network device information included in the network configuration information; In case of failure to establish connection with the network device, adjusting the network connection configuration based on the network abnormality sub-data sent by the network device; Establishing a connection with the platform device indicated by the platform device information based on the platform device information included in the network configuration information; In the case where the connection mode with the target terminal is a short connection, a connection is established with the network device indicated by the network device information based on the network device information included in the network configuration information.

6. The method according to claim 1, characterized in that Determining the abnormal state based on the target distribution network abnormal data includes: Get the pre-cached exception analysis protocol; Classifying the target distribution network abnormal data based on the abnormal analysis protocol to obtain a target category; The state corresponding to the target category is determined as the abnormal state.

7. The method according to claim 1, characterized in that Sending the network configuration abnormality data and the first network configuration log to the target terminal includes one of the following: In a case where the connection mode with the target terminal is a long connection, receiving a monitoring request sent by the target terminal, establishing a monitoring relationship with the target terminal based on the monitoring request, and after the monitoring relationship is established, allowing the target terminal to obtain the abnormal network configuration data and the first network configuration log; When the connection mode with the target terminal is a long connection or a short connection, a query request sent by the target terminal is received, and the network configuration abnormality data and the first network configuration log are sent to the target terminal based on the query request.

8. A device for determining the cause of network distribution failure, characterized in that: Applied to target devices, including: A network configuration module, configured to, upon receiving network configuration information sent by a target terminal, perform network configuration operations with a network configuration device indicated by the network configuration information; A receiving module, used for receiving target network distribution abnormality data sent by the network distribution device when the network distribution operation fails; A determination module, configured to determine an abnormal state based on the target distribution network abnormal data; A cache module, used for caching the abnormal state and a first network configuration log generated in the process of establishing a connection with the network configuration device; A sending module, used to send the abnormal state and the first network configuration log to the target terminal, so as to instruct the target terminal to determine the cause of the network configuration failure based on the abnormal state, the first network configuration log and the historical network configuration log of the target device, wherein the historical network configuration log is a log of network configuration failure, and the historical network configuration log is a log generated before the current network configuration operation and during the network configuration operation with the shortest time interval with the current network configuration operation.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 7 when executed.

10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 7.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.