Network repairing method and device and storage medium

By detecting the stagnation of data transmission and performing an automatic repair process, the problem that devices can only connect through IPv6 in a 4G network is solved, and the stability and reliability of network connections are improved.

CN119629776AActive Publication Date: 2025-03-14SHENZHEN XINGUODU TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411530566.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-30
Publication Date
2025-03-14
Estimated Expiration
2044-10-30

AI Technical Summary

Technical Problem

When using a 4G network, the device can only connect to the network through an IPv6 address, which makes it impossible to connect with an IPv4 address, resulting in unstable network connection and low reliability.

Method used

Provide a network repair method, by detecting the stagnation of data transmission in the network connection of the terminal, and detecting the connection between IPv4 and IPv6 networks respectively. If there is a connection failure, an automatic repair process will be performed, including disconnecting the current network connection, resetting the Modem, and re-establishing the network connection.

Benefits of technology

Improve the stability and reliability of network connections, reduce the impact of network failures on user experience, and reduce service interruptions caused by network problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119629776A_ABST
    Figure CN119629776A_ABST
Patent Text Reader

Abstract

The invention discloses a network repairing method and device and a storage medium, which are used for improving the stability and reliability of network connection. The method comprises the following steps: when a terminal runs, detecting whether the terminal has data transmission stagnation in network connection; if yes, respectively detecting the connection conditions of the IPv4 network and the IPv6 network of the terminal; and when the connection condition of at least one of the IPv4 network and the IPv6 network is connection failure, executing an automatic repair process which is used for repairing the connection of the IPv4 network and the IPv6 network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer network technology, and in particular to a network repair method, device and storage medium. Background Art

[0002] With the rapid development of the Internet and the surge in the number of devices, IPv4 addresses, due to their 32-bit address limitations, eventually led to the exhaustion of address resources and could not meet the increasing global connection needs. IPv6 addresses use 128-bit addresses, which expand the address space almost unlimitedly to meet the future device connection needs. In addition, IPv6 addresses also optimize network architecture and enhance security to achieve more efficient network operations. Therefore, the introduction of IPv6 addresses is an important step in meeting the challenges of the Internet era.

[0003] Currently, devices can obtain IPv4 addresses and IPv6 addresses at the same time, thereby connecting IPv4 networks and IPv6 networks, thereby promoting the development and deployment of IPv6 networks and ensuring a smooth transition to an IPv6 network environment.

[0004] However, when the device is using the 4G network, although it can correctly obtain the IPv4 address and IPv6 address, it can actually only use the IPv6 address to connect to the network, resulting in the user being unable to connect to the network using the IPv4 address. When the device cannot connect to the network, the user can only reconnect to the network by turning on or off the airplane mode or restarting the device. The network connection is unstable and has low reliability. Summary of the invention

[0005] In order to solve the above technical problems, the present application provides a network repair method, device and storage medium for improving the stability and reliability of network connections.

[0006] The technical solution provided in this application is described below:

[0007] A first aspect of the present application provides a network repair method, the method comprising:

[0008] When the terminal is running, detecting whether data transmission stagnation occurs in the network connection of the terminal;

[0009] If yes, then detecting the connection status of the IPv4 network and the IPv6 network of the terminal respectively;

[0010] When at least one of the IPv4 network and the IPv6 network has a connection failure, an automatic repair process is executed, and the automatic repair process is used to repair the connection between the IPv4 network and the IPv6 network.

[0011] Optionally, when at least one of the IPv4 network and the IPv6 network has a connection failure, after executing the automatic repair process, the method further includes:

[0012] Determine whether the connections of the repaired IPv4 network and the IPv6 network are both successfully connected;

[0013] If all connections are successful, the automatic repair process ends. Otherwise, the number of repair failures is updated and the automatic repair process is executed again.

[0014] Optionally, after updating the number of repair failures and executing the automatic repair process again, the method further includes:

[0015] Determine whether the number of repair failures reaches a preset number;

[0016] If so, the automatic repair process is disabled and an exception prompt notification is generated.

[0017] Optionally, after the automatic repair process is terminated if the repair is successful, the method further includes:

[0018] Continue to detect whether data transmission stagnation occurs in the network connection of the terminal.

[0019] Optionally, after detecting whether data transmission stagnation occurs in the terminal during network connection, the method further includes:

[0020] If not, determine the current network connection quality;

[0021] The detection frequency is dynamically adjusted according to the network connection quality.

[0022] Optionally, the method further includes:

[0023] When the network status of the terminal changes, the detection frequency is reset.

[0024] Optionally, the automatic repair process includes:

[0025] Disconnecting the current network connection of the terminal to release the occupied data connection resources;

[0026] The modem of the terminal is reset by sending a target instruction, and the network connection of the terminal is reestablished.

[0027] A second aspect of the present application provides a network repair device, the device comprising:

[0028] A first detection unit, configured to detect whether data transmission stagnation occurs in a network connection of the terminal when the terminal is running;

[0029] A second detection unit is used to detect the connection status of the IPv4 network and the IPv6 network of the terminal respectively;

[0030] The automatic repair unit is used to execute an automatic repair process when at least one of the IPv4 network and the IPv6 network has a connection failure, and the automatic repair process is used to repair the connection between the IPv4 network and the IPv6 network.

[0031] Optionally, the automatic repair unit is also used to:

[0032] Determine whether the connections of the repaired IPv4 network and the IPv6 network are both successfully connected;

[0033] If all connections are successful, the automatic repair process ends. Otherwise, the number of repair failures is updated and the automatic repair process is executed again.

[0034] Optionally, a notification unit is further included for:

[0035] Determine whether the number of repair failures reaches a preset number;

[0036] If so, the automatic repair process is disabled and an abnormal prompt notification is generated, where the abnormal prompt notification is used to prompt the user to perform a restart operation or an airplane mode switch operation.

[0037] Optionally, the first detection unit is further used for:

[0038] Continue to detect whether data transmission stagnation occurs in the network connection of the terminal.

[0039] Optionally, an adjustment unit is also included for:

[0040] If not, determine the current network connection quality;

[0041] The detection frequency is dynamically adjusted according to the network connection quality.

[0042] Optionally, the adjustment unit is further configured to:

[0043] When the network status of the terminal changes, the detection frequency is reset.

[0044] Optionally, the automatic repair unit is also used to:

[0045] Disconnecting the current network connection of the terminal to release the occupied data connection resources;

[0046] The modem of the terminal is reset by sending a target instruction, and the network connection of the terminal is reestablished.

[0047] A third aspect of the present application provides a network repair device, the device comprising:

[0048] Processor, memory, input-output unit, and bus;

[0049] The processor is connected to the memory, the input and output unit, and the bus;

[0050] The memory stores a program, and the processor calls the program to execute the first aspect and any optional method in the first aspect.

[0051] A fourth aspect of the present application provides a computer-readable storage medium, on which a program is stored. When the program is executed on a computer, the program executes the first aspect and any optional method in the first aspect.

[0052] It can be seen from the above technical solutions that this application has the following advantages:

[0053] During the operation of the terminal, it actively detects data transmission stagnation, discovers and solves network problems in advance. When data transmission stagnation occurs, by detecting the connection status of the IPv4 network and the IPv6 network respectively, it can fully cover the current mainstream network protocols and ensure that the terminal can adapt to different network environments. Once a network connection failure is detected, the automatic repair process can be immediately executed according to the specific connection status of the IPv4 network and the IPv6 network, reducing the impact of network failures on user experience, reducing service interruptions caused by network problems, and improving the stability and reliability of the terminal's network connection. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the technical solution in the present application, the drawings required for use in the description of the embodiments 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 drawings can be obtained based on these drawings without paying any creative work.

[0055] Figure 1 A flowchart of an embodiment of the network repair method provided by the present application;

[0056] Figure 2 A flowchart of another embodiment of the network repair method provided by the present application;

[0057] Figure 3 A schematic diagram of an embodiment of a flow chart for determining a connection status in a network repair method provided by the present application;

[0058] Figure 4A flowchart of an embodiment of triggering other processing mechanisms when the automatic repair process fails multiple times in a row in the network repair method provided by the present application;

[0059] Figure 5 A schematic diagram of an embodiment of a flow chart of an automated repair process in a network repair method provided by the present application;

[0060] Figure 6 A schematic diagram of the structure of an embodiment of a network repair device provided by the present application;

[0061] Figure 7 A schematic diagram of the structure of another embodiment of the network repair device provided in the present application. DETAILED DESCRIPTION

[0062] The present application provides a network repair method, device and storage medium for improving the stability and reliability of network connections.

[0063] It should be noted that the network repair method provided in this application can be applied to a terminal, a system, or a server. For example, the terminal can be a smart payment device, a smart phone or a computer, a tablet computer, a smart TV, a smart watch, a portable computer terminal, or a fixed terminal such as a desktop computer. For the convenience of explanation, this application uses the terminal as an example for explanation.

[0064] See also Figure 1 The present application first provides an embodiment of a network repair method, which includes:

[0065] S101, when the terminal is running, detecting whether data transmission stagnation occurs in the network connection of the terminal;

[0066] IPv4 (Internet Protocol version 4) is a network protocol used to identify and locate terminals on the Internet. Its address length is 32 bits, usually expressed in four groups of decimal numbers, and can provide about 4.2 billion unique addresses. Due to the rapid growth of Internet users and terminals, IPv4 addresses are gradually exhausted. IPv6 (Internet Protocol version 6) is also a network protocol, a successor to IPv4, with an address length of 128 bits, expressed in hexadecimal form. In theory, it can provide almost unlimited address space to solve the problem of address shortage and improve network security and efficiency. In the current network environment configuration, since network operators or terminal configurations give priority to using IPv6 addresses for connection to adapt to future network development and reduce the problem of IPv4 address resource exhaustion, the terminal successfully obtains IPv4 addresses and IPv6 addresses, but its default or preferred network protocol is IPv6. If the network infrastructure and the server do not support IPv4 or there are restrictions on the connection of IPv4 addresses, such as configuration problems of routers or firewalls, the terminal will not be able to access the network through IPv4. Additionally, some applications and services may only support IPv6, preventing users from connecting using an IPv4 address.

[0067] If a terminal cannot access an IPv4 network because it uses IPv6 first, some applications and services may not work properly, resulting in data transmission interruption or delay. By detecting data transmission stagnation, problems in network connections can be discovered and diagnosed in a timely manner, such as confirming whether the connection abnormality is caused by the choice of transmission protocol. In this way, measures can be taken quickly on abnormally connected networks, such as adjusting terminal configurations or contacting network service providers to ensure normal network functions and reduce business losses and user experience impacts caused by data transmission stagnation.

[0068] In this embodiment, the Data Stall detection mechanism of the Android system is selected to detect data stagnation. The Data Stall detection mechanism is a mechanism used in Android terminals to handle unstable or interrupted data connections. The Data Stall detection mechanism is deeply integrated into the Android system and can work seamlessly with other system functions to achieve higher real-time performance and accuracy. After the Android terminal is started, the Data Stall mechanism monitors the sending and receiving of data packets. If there is no data transmission within the set time, it will be considered that data stagnation has occurred.

[0069] S102: If yes, then detect the connection status of the IPv4 network and the IPv6 network of the terminal respectively;

[0070] Detecting the connection status of IPv4 and IPv6 networks can ensure the stability and reliability of the terminal's connection under two different protocols. Especially as IPv6 becomes increasingly popular, some networks may only support one of the protocols. Detecting them separately can clearly identify which type of connection has a problem, so that targeted repairs can be performed.

[0071] In this embodiment, when both IPv4 and IPv6 addresses are connected to the network at the same time, the DataStall detection mechanism of the Android terminal is usually unable to accurately determine which data link has a problem. To accurately determine the link problem, it is usually necessary to combine other tools and log analysis, or to test and diagnose the connection status of IPv4 and IPv6 separately in the network settings.

[0072] S103: When at least one of the IPv4 network and the IPv6 network has a connection failure, an automatic repair process is executed, where the automatic repair process is used to repair the connection between the IPv4 network and the IPv6 network.

[0073] It should be noted that the program that executes the automatic repair process in the system is the automatic repair program. When a connection failure of the IPv4 network or IPv6 network is detected, the system will send a signal to the automatic repair program. After receiving the signal, the automatic repair program will perform initialization processing to confirm the nature and scope of the fault, and then activate the corresponding repair process. By automatically identifying and responding to connection problems, the need for manual intervention is reduced, ensuring that the terminal can restore the normal network status as soon as possible and reducing business interruption time. This automated response mechanism can not only improve the self-healing ability of network connections, but also enhance users' trust in terminals and network services, thereby playing an important role in maintaining continuous online and smooth data interaction.

[0074] In this embodiment, during the operation of the terminal, data transmission stagnation is actively detected to discover and solve network problems in advance. When data transmission stagnation occurs, by detecting the connection status of the IPv4 network and the IPv6 network respectively, the current mainstream network protocols can be fully covered to ensure that the terminal can adapt to different network environments. Once a network connection failure is detected, the automatic repair process can be immediately executed according to the specific connection status of the IPv4 network and the IPv6 network, reducing the impact of network failures on user experience, reducing service interruptions caused by network problems, and improving the stability and reliability of the terminal's network connection.

[0075] In some other specific embodiments, the network repair method can be further optimized according to detecting whether data transmission stagnation occurs. Figure 2 , Figure 2 Another embodiment of the network repair method provided by the present application includes:

[0076] S201, detecting whether data transmission stagnation occurs in the terminal during network connection;

[0077] In this embodiment, step S201 is similar to step S101 in the above embodiment and will not be described again here.

[0078] S202, if not, determining the current network connection quality;

[0079] After confirming that data transmission is not stagnant, it is also necessary to evaluate the current network connection quality, including measuring multiple network performance indicators, such as latency, packet loss rate, and bandwidth utilization. Collect this data through network diagnostic tools or built-in monitoring mechanisms, and then use specific algorithms or models to conduct comprehensive analysis of the collected data to quantify the quality of the network connection. Understanding the quality of the network connection can help predict potential problems, optimize data transmission strategies, and improve user experience.

[0080] S203. Dynamically adjust the detection frequency according to the network connection quality.

[0081] Based on the evaluation results of the network connection quality, the detection frequency of data transmission stagnation is dynamically adjusted. When the network connection quality is high and the data transmission is stable, the detection frequency can be appropriately reduced to reduce the occupation of system resources and avoid unnecessary detection overhead. On the contrary, when the network connection quality is detected to be degraded, such as increased latency, increased packet loss rate, etc., the detection frequency is quickly increased to capture abnormalities or stagnation in data transmission in a more timely manner. For example, the detection frequency can be dynamically adjusted based on the heartbeat detection results. Dynamic adjustment of the detection frequency can ensure the continuity and reliability of data transmission.

[0082] In some specific embodiments, when the network status of the terminal changes, the detection frequency is reset, as described in detail below:

[0083] When the terminal's network status changes, such as switching from Wi-Fi to mobile data, resetting the detection frequency can help the terminal adapt to the new network environment and ensure the stability and effectiveness of the network connection. The latency, bandwidth, and stability of different networks may vary, so resetting the detection frequency can avoid frequent network requests that cause performance degradation or data waste in an unsuitable state. By adjusting the detection interval, the terminal can more intelligently choose the right time to transmit data, thereby improving the overall user experience, such as avoiding high traffic consumption on a mobile data network while maintaining necessary connection monitoring.

[0084] In this embodiment, when the network connection is normal, the detection frequency is dynamically adjusted according to the network connection quality, which can ensure the stability of the network, and at the same time, timely release or reduce the use of resources for network connection quality that does not require high-frequency detection. Dynamically adjusting the detection frequency can ensure the continuity and reliability of data transmission, and at the same time improve the automation of adjusting the network connection quality.

[0085] In the above step S102, before the automatic repair process is started, it is necessary to detect the connection status of the terminal's IPv4 network and IPv6 network respectively. After the automatic repair process is executed, it is still necessary to detect the connection status. Please refer to Figure 3 , Figure 3 An embodiment of determining whether all connection conditions are successfully connected in the network repair method provided by the present application includes:

[0086] S301, determining whether the connections of the repaired IPv4 network and the IPv6 network are both successfully connected;

[0087] If both connections are successful, execute step S302, otherwise execute step S303;

[0088] In this implementation, the Ping command can be used to determine whether the connection of the IPv4 network or IPv6 network is successfully repaired. The Ping command is a tool for testing network connection status, which determines the connectivity of the network by sending an ICMP (Internet Control Message Protocol) echo request to the target IP address and waiting for a response.

[0089] After the automatic repair process is completed, the preset Ping command is triggered to send an ICMP echo request to the target IP address to confirm whether the target terminal can respond, thereby determining whether the network connection is available. If a response is received and the response time is within an acceptable range, it means that the connection has been successfully repaired. If no reply is received or the response time is too long, it may indicate that there is still a problem with the connection. For IPv4 networks and IPv6 networks, the Ping command is also used. You only need to specify the IPv4 address or IPv6 address to complete the detection.

[0090] S302, ending the current automatic repair process;

[0091] When the Ping command is used to send a request to the target terminal and a response is successfully received from the terminal's IPv4 address or IPv6 address, it indicates that the communication between the two networks is normal. At this time, the Ping command sends a broadcast message to the automatic repair program, indicating that the network connection or the IP protocol communication is in a healthy state. After receiving this broadcast indicating that the network is normal, the automatic repair program will stop and continue to enter the next automatic repair process. This avoids continuing to perform repair operations when it is not necessary, and also ensures the stability and efficient operation of the network environment.

[0092] In some specific embodiments, after the network connection is successfully repaired, it is necessary to continue to detect whether data transmission stagnation occurs, which is specifically described below:

[0093] After the network connection is successfully repaired, it may still be affected by other factors, such as insufficient signal strength, physical obstacles, network terminal failure, and network service provider failure, which may cause the connection to be interrupted. In order to ensure smooth communication, the Data Stall detection mechanism will still run in the system background, monitoring the status of the IPv4 network and IPv6 network in real time or regularly to detect whether data transmission is stagnant or whether the sending and receiving of data packets are continuous and uninterrupted. When data transmission stagnation is detected in the network, the pre-set Ping command will be triggered to detect the current network connection status and perform an automatic repair process for the failed network connection. Continuing to detect whether data transmission stagnation occurs can timely discover and solve potential data transmission problems and ensure the stability and reliability of network connections.

[0094] S303: Update the number of repair failures and execute the automatic repair process again.

[0095] During the automatic repair process, the failure of the automatic repair process will be continuously monitored. If the network connection cannot be successfully repaired after the first automatic repair process is executed, this automatic repair process will be counted as the number of failures, the number of repair failures will be updated, and the second automatic repair process will be attempted again. This process will be repeated to overcome the problems that may be encountered in the initial repair.

[0096] In this embodiment, the Ping command is used to detect the network after the automatic repair process is executed. After detecting that the automatic repair process successfully repairs the network connection, the automatic repair process will be terminated immediately. When it is detected that the network is still in a faulty state, a signal will be transmitted to the automatic repair path to continue to try to repair it. It ensures that the automatic repair process can quickly and effectively restore the network connection when facing a network failure by timely terminating the automatic repair process, updating the number of failures, and repeatedly executing the automatic repair process. At the same time, it avoids repeating the automatic repair process in unnecessary situations, reduces resource waste, and improves the automation of network connections.

[0097] When the automatic repair process fails multiple times in a row, other processing mechanisms will be triggered. Figure 4 , Figure 4 This is an embodiment of triggering other processing mechanisms when the automatic repair process in the network repair method provided by the present application fails multiple times in a row.

[0098] S401, determining whether the number of repair failures reaches a preset number;

[0099] In order to provide timely feedback on network problems that cannot be repaired by the automatic repair process, a preset number of consecutive failures of executing the automatic repair process is set.

[0100] In this embodiment, the preset number of times is set to 5. When the automatic repair process fails continuously and reaches 5 times, it will be considered that the network problem is more serious rather than a simple temporary failure. The preset number of times can effectively avoid wasting system resources under ineffective repair attempts.

[0101] S402: If yes, disable the automatic repair process and generate an exception prompt notification.

[0102] When the number of repair failures reaches 5, the automatic repair process is immediately disabled to prevent continued invalid repair attempts. At the same time, an abnormal prompt notification is generated to remind the user that there is a problem with the network connection. This notification will suggest that the user restart or switch to airplane mode to reset the network status and help the user restore normal network connection.

[0103] In this embodiment, a preset number of times is set to handle the situation where the automatic repair process fails continuously. When the preset number of times is reached, the automatic repair is stopped and an abnormal prompt notification is issued, which effectively avoids the waste of system resources. Through clear user prompts, users are encouraged to actively intervene to solve complex network problems, thereby significantly improving the recovery efficiency of network connections.

[0104] In the above step S103, when the connection status of the IPv4 network or the IPv6 network is a connection failure, an automatic repair process will be executed. Figure 5 , Figure 5An embodiment of performing an automated repair process in a network repair method provided by the present application includes:

[0105] S501, disconnect the current network connection of the terminal to release the occupied data connection resources;

[0106] During the process, the automatic repair process will evaluate the current network configuration, connection status and history information to formulate effective recovery measures, such as clearing data connections and resetting modems.

[0107] In this embodiment, when the automatic repair process is executed, clearing measures will be taken for the current faulty network connection. First, the current network connection of the terminal is disconnected, and all data connection resources related to the connection are released to provide a channel for subsequent repairs. By disconnecting the connection, the terminal can be prevented from continuing to try to send data or receive information, reducing the waste of resources caused by network occupation, thereby improving the overall network performance.

[0108] S502: Reset the terminal's Modem by sending a target command, and re-establish the terminal's network connection.

[0109] A modem consists of a modulator and a demodulator. It is a terminal that converts digital signals into analog signals for long-distance transmission through analog transmission media such as traditional telephone lines, cables or optical fibers. It can also demodulate received analog signals back into digital signals. It is a bridge for converting between digital and analog signals, allowing digital terminals such as computers to connect to the Internet or other digital networks through analog communication lines. In Android terminals, modem is a key component that is responsible for the wireless communication function of the terminal.

[0110] After releasing the data connection resources, the automatic repair program will send a specific reset command to the terminal's modem to restore the modem's initial state and clear any potential errors or configuration problems. After the reset is complete, the automatic repair program can try to reestablish the network connection. The process of resetting the modem helps to restore the connection and improve network stability, providing users with more reliable services.

[0111] In this embodiment, the automatic repair process will release the occupied data connection resources and reset the modem for the faulty network connection to avoid continuing to try to send data or receive information, which will cause resource occupation. It can also improve network stability and provide a basis for reconnecting to the network.

[0112] See also Figure 6 The present application also provides a network repair device, including:

[0113] The first detection unit 601 is used to detect whether data transmission stagnation occurs in the network connection of the terminal when the terminal is running;

[0114] The second detection unit 602 is used to detect the connection status of the IPv4 network and the IPv6 network of the terminal respectively;

[0115] The automatic repair unit 603 is used to execute an automatic repair process when at least one of the IPv4 network and the IPv6 network has a connection failure, and the automatic repair process is used to repair the connection between the IPv4 network and the IPv6 network.

[0116] Optionally, the automatic repair unit 603 is further used for:

[0117] Determine whether the connections of the repaired IPv4 network and IPv6 network are both successful;

[0118] If all connections are successful, the automatic repair process ends. Otherwise, the number of repair failures is updated and the automatic repair process is executed again.

[0119] Optionally, the notification unit 604 is further included for:

[0120] Determine whether the number of repair failures reaches a preset number;

[0121] If so, the automatic repair process is disabled and an exception notification is generated.

[0122] Optionally, the first detection unit 601 is further used for:

[0123] Continue to detect whether the terminal has any data transmission stagnation during network connection.

[0124] Optionally, the method further includes an adjustment unit 605 for:

[0125] If not, determine the current network connection quality;

[0126] Dynamically adjust the detection frequency based on the quality of the network connection.

[0127] Optionally, the adjustment unit 605 is further configured to:

[0128] When the network status of the terminal changes, the detection frequency is reset.

[0129] Optionally, the automatic repair unit 603 is further used for:

[0130] Disconnect the current network connection of the terminal and release the occupied data connection resources;

[0131] Reset the terminal's modem by sending target commands and reestablish the terminal's network connection.

[0132] See also Figure 7 The present application also provides a network repair device, including:

[0133] Processor 701, memory 702, input and output unit 703, bus 704;

[0134] The processor 701 is connected to the memory 702, the input and output unit 703 and the bus 704;

[0135] The memory 702 stores a program, and the processor 701 calls the program to execute any of the above methods.

[0136] The present application also relates to a computer-readable storage medium, on which a program is stored. When the program is run on a computer, the computer executes any of the above methods.

[0137] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0138] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0139] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0140] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0141] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk, etc., various media that can store program codes.

Claims

1. A network repair method, characterized in that: The method comprises: When the terminal is running, detecting whether data transmission stagnation occurs in the network connection of the terminal; If yes, then detecting the connection status of the IPv4 network and the IPv6 network of the terminal respectively; When at least one of the IPv4 network and the IPv6 network has a connection failure, an automatic repair process is executed, and the automatic repair process is used to repair the connection between the IPv4 network and the IPv6 network.

2. The method according to claim 1, characterized in that When at least one of the IPv4 network and the IPv6 network is in a connection failure, after executing the automatic repair process, the method further includes: Determine whether the connections of the repaired IPv4 network and the IPv6 network are both successfully connected; If all connections are successful, the automatic repair process ends. Otherwise, the number of repair failures is updated and the automatic repair process is executed again.

3. The method according to claim 2, characterized in that After the number of failed repairs is updated and the automatic repair process is executed again, the method further includes: Determine whether the number of repair failures reaches a preset number; If so, the automatic repair process is disabled and an exception prompt notification is generated.

4. The method according to claim 2, characterized in that: After the automatic repair process is terminated if the repair is successful, the method further includes: Continue to detect whether data transmission stagnation occurs in the network connection of the terminal.

5. The method according to claim 1, characterized in that After detecting whether data transmission stagnation occurs in the network connection of the terminal, the method further includes: If not, determine the current network connection quality; The detection frequency is dynamically adjusted according to the network connection quality.

6. The method according to claim 5, characterized in that The method further comprises: When the network status of the terminal changes, the detection frequency is reset.

7. The method according to any one of claims 1 to 6, characterized in that The automatic repair process includes: Disconnecting the current network connection of the terminal to release the occupied data connection resources; The modem of the terminal is reset by sending a target instruction, and the network connection of the terminal is reestablished.

8. A network repair device, characterized in that: The device comprises: A first detection unit, configured to detect whether data transmission stagnation occurs in a network connection of the terminal when the terminal is running; A second detection unit is used to detect the connection status of the IPv4 network and the IPv6 network of the terminal respectively; The automatic repair unit is used to execute an automatic repair process when at least one of the IPv4 network and the IPv6 network has a connection failure, and the automatic repair process is used to repair the connection between the IPv4 network and the IPv6 network.

9. A network repair device, characterized in that: The device comprises: Processor, memory, input-output unit, and bus; The processor is connected to the memory, the input and output unit, and the bus; The memory stores a program, and the processor calls the program to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a program stored thereon, wherein the program, when executed on a computer, performs the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method and system for connecting dual-stack terminal to network

    CN102368789A

  • Play fault recovery method and device in IPv4 / IPv6 dual-stack environment, and storage medium

    CN112787936A

  • Method for recovering ipv6 fault in mobile communication network and pcrf

    US20170026334A1

  • Data transmission method and routing device

    WO2020132982A1