CN110708696A - Network data recovery method and device, storage medium and electronic equipment - Google Patents

Network data recovery method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN110708696A
CN110708696A CN201910930003.8A CN201910930003A CN110708696A CN 110708696 A CN110708696 A CN 110708696A CN 201910930003 A CN201910930003 A CN 201910930003A CN 110708696 A CN110708696 A CN 110708696A
Authority
CN
China
Prior art keywords
recovery
network data
preset
target
recovery operation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910930003.8A
Other languages
Chinese (zh)
Other versions
CN110708696B (en
Inventor
姚坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Realme Chongqing Mobile Communications Co Ltd
Original Assignee
Realme Chongqing Mobile Communications Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Realme Chongqing Mobile Communications Co Ltd filed Critical Realme Chongqing Mobile Communications Co Ltd
Priority to CN201910930003.8A priority Critical patent/CN110708696B/en
Publication of CN110708696A publication Critical patent/CN110708696A/en
Application granted granted Critical
Publication of CN110708696B publication Critical patent/CN110708696B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/30Network data restoration; Network data reliability; Network data fault tolerance
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses a method and a device for recovering network data, a storage medium and electronic equipment, wherein when the connection of the network data is detected, parameter values corresponding to a plurality of preset parameters in the network data are obtained; acquiring preset values corresponding to the preset parameters, and determining the connection condition of the current network data according to the parameter values and the preset values; when the current network data connection is detected to be abnormal, acquiring a preset recovery combination scheme, wherein the preset recovery combination scheme comprises a plurality of recovery operations; and determining the target difficulty level of each recovery operation, and starting the corresponding recovery operation according to the recovery sequence of the target difficulty level from low to high so as to complete the recovery of the network data. Therefore, the connection condition of the network data can be detected in real time, when the network data connection is detected to be abnormal, the corresponding recovery operation can be automatically executed according to the difficulty level sequence of the recovery operation, and the recovery efficiency of the network data is improved.

Description

Network data recovery method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for recovering network data, a storage medium, and an electronic device.
Background
With the development of mobile communication technology, namely mobile internet, people have stronger and stronger requirements for accessing internet through electronic equipment such as a smart phone, and users can access network data through the electronic equipment to realize functions of communication, entertainment and the like, so that the electronic equipment and the network data are an indispensable part of daily life of people due to the wide application of the electronic equipment and the network data.
At present, after a user accesses network data through an electronic device, the electronic device cannot be normally networked due to various network data anomalies such as terminal anomalies, base station anomalies, core network anomalies, internet Domain Name System (DNS) server anomalies or site server anomalies, and the like, so that the internet experience of the user is affected.
Disclosure of Invention
The embodiment of the application provides a method and a device for recovering network data, a storage medium and electronic equipment, which can improve the recovery efficiency of the network data.
In a first aspect, an embodiment of the present application provides a method for recovering network data, including:
when network data connection is detected, parameter values corresponding to a plurality of preset parameters in the network data are obtained;
acquiring preset values corresponding to the preset parameters, and determining the connection condition of the current network data according to the parameter values and the preset values;
when the current network data connection is detected to be abnormal, acquiring a preset recovery combination scheme, wherein the preset recovery combination scheme comprises a plurality of recovery operations;
and determining the target difficulty of each recovery operation, and starting the corresponding recovery operation according to the recovery sequence of the target difficulty from low to high so as to complete the recovery of the network data.
In a second aspect, an embodiment of the present application provides an apparatus for recovering network data, including:
the device comprises a detection unit, a processing unit and a processing unit, wherein the detection unit is used for acquiring parameter values corresponding to a plurality of preset parameters in network data when the network data connection is detected;
the determining unit is used for acquiring preset values corresponding to the preset parameters and determining the connection condition of the current network data according to the parameter values and the preset values;
the device comprises an acquisition unit, a recovery unit and a recovery unit, wherein the acquisition unit is used for acquiring a preset recovery combination scheme when the current network data connection is detected to be abnormal, and the preset network recovery combination scheme comprises a plurality of recovery operations;
and the recovery unit is used for determining the target difficulty level of each recovery operation and starting the corresponding recovery operation according to the recovery sequence of the target difficulty levels from low to high so as to complete the recovery of the network data.
In a third aspect, an embodiment of the present application provides a storage medium, on which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the method for recovering network data provided in any embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, where the memory has a computer program, and the processor is configured to execute the method for recovering network data according to any embodiment of the present application by calling the computer program.
When the network data connection is detected, parameter values corresponding to a plurality of preset parameters in the network data are obtained; acquiring preset values corresponding to the preset parameters, and determining the connection condition of the current network data according to the parameter values and the preset values; when the current network data connection is detected to be abnormal, acquiring a preset recovery combination scheme, wherein the preset recovery combination scheme comprises a plurality of recovery operations; and determining the target difficulty of each recovery operation, and starting the corresponding recovery operation according to the recovery sequence of the target difficulty from low to high so as to complete the recovery of the network data. Therefore, the connection condition of the network data can be detected in real time, when the network data connection is detected to be abnormal, a plurality of corresponding recovery operations can be automatically executed according to the difficulty level sequence of the recovery operations, and the recovery efficiency of the network data is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a scenario of a network data recovery system according to an embodiment of the present application.
Fig. 2 is a flowchart illustrating a method for recovering network data according to an embodiment of the present application.
Fig. 3 is another schematic flow chart of a method for recovering network data according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a device for recovering network data according to an embodiment of the present application.
Fig. 5 is another schematic structural diagram of a device for recovering network data according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 7 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
DETAILED DESCRIPTION OF EMBODIMENT (S) OF INVENTION
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
The term "module" as used herein may be considered a software object executing on the computing system. The various components, modules, engines, and services described herein may be viewed as objects implemented on the computing system. The apparatus and method described herein are preferably implemented in software, but may also be implemented in hardware, and are within the scope of the present application.
Referring to fig. 1, fig. 1 is a schematic view of a scenario of a recovery system for network data according to an embodiment of the present application, including: the electronic device 10 and the server 20 may be connected via a communication network, which includes a wireless network and a wired network, wherein the wireless network includes one or more of a wireless wide area network, a wireless local area network, a wireless metropolitan area network, and a wireless personal area network. The network includes network entities such as routers, gateways, etc., which are not shown in the figure. The electronic device 10 may perform information interaction with the server 20 through a communication network, for example, preset values corresponding to a plurality of preset parameters may be downloaded from the server 20.
The system for recovering network data may include a device for recovering network data, where the device for recovering network data may be specifically integrated in an electronic device with computing capability, such as a tablet computer, a mobile phone, a notebook computer, a desktop computer, and the like, which has a storage unit and is equipped with a microprocessor, in fig. 1, the electronic device is the electronic device 10 in fig. 1, and the electronic device 10 may be configured to obtain parameter values corresponding to a plurality of preset parameters in the network data when detecting a network data connection; preset values corresponding to a plurality of preset parameters are obtained from the server 20, and the electronic device 10 determines the connection status of the current network data according to the parameter values and the preset values; when the current network data connection is detected to be abnormal, acquiring a preset recovery combination scheme, wherein the preset recovery combination scheme comprises a plurality of recovery operations; and determining the target difficulty of each recovery operation, starting the corresponding recovery operation according to the recovery sequence of the target difficulty from low to high so as to complete the recovery of the network data, and the like.
The system for recovering network data may further include a server 20, which is mainly configured to receive a network data recovery instruction sent by the electronic device 10, obtain preset values corresponding to a plurality of preset parameters according to the network data recovery instruction, and send the preset values to the electronic device 10. The system for recovering network data may further include a memory configured to store an information base, where the information base includes an association relationship between the preset parameter and the preset value, so that the server 200 may obtain the preset value corresponding to the preset parameter from the memory and send the preset value to the electronic device 10.
In some embodiments, the electronic device 10 is further configured to, when it is detected that the current network data connection is abnormal, obtain abnormal information of the current network data, and report the abnormal information to the server 20, where the server 20 is further configured to receive the abnormal information, and update the preset value in real time according to the abnormal information.
It should be noted that the scenario diagram of the network data recovery system shown in fig. 1 is merely an example, and the network data recovery system and the scenario described in the embodiment of the present invention are for more clearly illustrating the technical solution of the embodiment of the present invention, and do not form a limitation on the technical solution provided in the embodiment of the present invention.
Referring to fig. 2, fig. 2 is a schematic flow chart of a method for recovering network data according to an embodiment of the present application, where the method for recovering network data includes the following steps:
in step S101, when a network data connection is detected, parameter values corresponding to a plurality of preset parameters in the network data are obtained.
For example, when it is detected that a user opens a cellular network switch in the electronic device, the connection condition of the electronic device and the cellular network data is detected in real time, and when it is detected that the cellular network data is successfully connected, parameter values corresponding to a plurality of preset parameters in the current cellular network data are obtained, where the preset parameters may include a unit time value, a Transmission Control Protocol (TCP) retransmission ratio, a difference between the number of transmitted data packets and the number of received data packets, an internet Domain Name System (DNS) non-response time, a HyperText Transfer Protocol (HTTP) request timeout time, a candidate cell signal strength value, and the like.
It should be noted that the TCP retransmission ratio refers to a ratio between the number of TCP retransmitted messages and the number of TCP outputted messages, that is, the TCP retransmission example is the number of TCP retransmitted messages/the number of TCP outputted messages, where when TCP sends a segment, a timer is set for the segment. When the timer is overtime and no confirmation is received, the message needs to be retransmitted, the number of retransmitted messages and the number of TCP output messages, namely the number of effective TCP output messages, are counted, and the TCP retransmission proportion can be calculated according to the number of retransmitted messages and the number of effective TCP output messages. It can be understood that the TCP retransmission ratio can reflect the network quality of the current data network to a certain extent, and a smaller TCP retransmission ratio indicates a better network quality of the current data network.
The difference between the number of the sending data packets and the number of the receiving data packets can be represented as the number of lost data packets, the difference between the number of the sending data packets and the number of the receiving data packets represents the current network quality to a certain extent, when the difference between the number of the sending data packets and the number of the receiving data packets is too large, the packet loss rate of the current data packets is high, at the moment, the current network data quality is poor, and the problems of line faults or network congestion and the like can exist.
The DNS no-response means that when the domain name and the IP address (IPaddress) corresponding to the domain name are converted by the DNS server, the domain name cannot be normally resolved into the IP address, which is called DNS no-response and is also called domain name resolution failure. At this time, the current network data quality can be analyzed by counting the number of times of no response of the DNS in the unit time, and when the number of times of no response of the DNS in the unit time is larger, the current network data quality is indicated to be worse.
The HTTP request timeout means that when the client initiates a request to the server, the communication layer starts to request connection with the server, and if the connection with the server is not established within a preset time, for example, within 5S, the HTTP request is considered to be timeout. At this time, the current network data quality can be analyzed by counting the number of times of the HTTP request timeout in the unit time, and when the number of times of the HTTP request timeout in the unit time is larger, it indicates that the current network data quality is worse.
The candidate cells refer to that before the mobile communication system is switched, signals of channels in the serving cell are gradually weakened, signals of channels in some adjacent cells are strengthened to a certain threshold value to keep normal communication, the adjacent cells are called as candidate cells, signal strength values of a plurality of candidate cells can be obtained at the moment, the signal strength value of the current serving cell is analyzed according to the signal strength values of the candidate cells, when the signal strength value of the candidate cell is strong, the signal strength value of the current serving cell is relatively weak, and when the signal strength value of the current serving cell is weak, the corresponding quality of current network data is poor.
Therefore, the quality of the current data network can be automatically analyzed through the parameter values of the preset parameters.
In step S102, preset values corresponding to a plurality of preset parameters are obtained, and a connection status of the current network data is determined according to the parameter values and the preset values.
Wherein, obtaining a plurality of preset parameters such as TCP retransmission ratio, the difference between the number of sending data packets and receiving data packets, the number of non-response times of DNS, the number of overtime times of HTTP request, and the corresponding parameter values of the signal intensity values of the candidate cells in a unit time value, for example, obtaining the TCP retransmission ratio value within 30 seconds, the difference between the number of sending data packets and receiving data packets, the number of non-response times of DNS, the number of overtime times of HTTP request, and the signal intensity values of the candidate cells in the network data, and receiving the preset values of the plurality of preset parameters issued by the server, the preset data being the threshold values corresponding to the plurality of preset parameters, when the parameter value corresponding to one target preset parameter in the plurality of preset parameters is greater than the corresponding preset value, it can indicate that the current network data connection is abnormal, that the current network data quality is poor, and the network access efficiency of the user is, at this time, corresponding network data recovery operation is required to ensure normal communication of the electronic device. And when the parameter values corresponding to the preset parameters are all larger than the corresponding preset values, the current network data connection is normal, and the user can normally communicate through the current network data.
In step S103, when it is detected that the current network data connection is abnormal, a preset recovery combination scheme is obtained, where the preset recovery combination scheme includes multiple recovery operations.
When the current network Data connection is detected to be abnormal, a preset recovery combination scheme is obtained, where the preset recovery combination scheme includes multiple recovery operations, and the multiple recovery operations are related to multiple network nodes where the electronic device accesses network Data, such as a cell reselection operation, a Packet Data Protocol (PDP) reactivation operation, a network Data reattachment operation, a modem (modem) restart operation, and dropping the network Data back to the second system for Data service.
And the cell reselection operation comprises the steps of acquiring a candidate cell with a cell signal strength value larger than a corresponding preset value in real time, and re-accessing the candidate cell to reside. Specifically, a target candidate cell with the strongest signal strength value may be determined from the multiple candidate cells, and the target candidate cell is re-accessed for residence, that is, the problem of network data abnormality caused by weak signal strength of the current serving cell may be solved through cell reselection operation, so as to complete recovery of network data.
The PDP reactivation operation includes deactivating the already activated PDP context to return the current terminal to an idle state, and reactivating the PDP context. I.e. re-initiating the packet data service by re-activating the PDP to enable recovery of the network data.
The network data reattachment operation comprises that the terminal initiates a network data detach request, and reattaches the network data after detaching is completed so as to re-access the network data to receive network service.
The modem restart operation includes controlling the modem restart to effect recovery of network data.
The data service is carried out by dropping the network data to the second system, which comprises the step of dropping the network system of the electronic equipment from the first system to the second system, wherein the network system of the terminal in China is various, and the network systems of different operators are different, for example, the China mobile network system is the GSM system as the 2G system; the 3G mode is a TD-SCDMA mode; the 4G system is a TD-LTE system. The China Unicom network system is a 2G system and a GSM system; the 3G mode is a WCDMA mode; the 4G system is a TD-LTE and FDD-LTE mixed system. The China telecommunication network system is 2G system and CDMA system; the 3G standard is a CDMA2000 standard; the 4G system is a TD-LTE and FDD-LTE mixed system. The network systems of the operators are unified into a 5G system, a 4G system, a 3G system, a 2G system, and the like, and dropping the network data to the second system for data service may be dropping the network data of the electronic device from the 5G system to the 4G system for data service, or dropping the network data of the electronic device from the 4G system to the 3G system or the 2G system for data service, or dropping the network data of the electronic device from the 3G system to the 2G system for data service, and the like.
In step S104, a target difficulty level of each recovery operation is determined, and corresponding recovery operations are started according to a recovery sequence from low to high of the target difficulty level, so as to complete recovery of network data.
And determining the target difficulty of the plurality of recovery operations, wherein the target difficulty is related to the influence of the execution of the recovery operations on the network data of the electronic equipment and the recovery complexity of the recovery operations. The more difficult the difficulty of the recovery operation is, the more the recovery operation has influence on the network data of the electronic device and the more the recovery complexity of the recovery operation is, so that the network data can be more thoroughly recovered according to the recovery operation. Furthermore, the plurality of recovery operations are sorted according to the target difficulty degree from easy to difficult to generate a corresponding recovery sequence, and the corresponding recovery operations are executed according to the recovery sequence.
In some embodiments, each recovery operation corresponds to an initial difficulty level, and the following recovery sequence can be obtained by sorting the recovery operations according to the initial difficulty levels from easy to difficult, such as cell reselection operation, PDP reactivation operation, network data reattachment operation, and modem restart operation until network data falls back to the second standard for data service.
As can be seen from the above, in the method for recovering network data provided in this embodiment, when a network data connection is detected, parameter values corresponding to a plurality of preset parameters in the network data are obtained; acquiring preset values corresponding to the preset parameters, and determining the connection condition of the current network data according to the parameter values and the preset values; when the current network data connection is detected to be abnormal, acquiring a preset recovery combination scheme, wherein the preset recovery combination scheme comprises a plurality of recovery operations; and determining the target difficulty level of each recovery operation, and starting the corresponding recovery operation according to the recovery sequence of the target difficulty level from low to high so as to complete the recovery of the network data. Therefore, the connection condition of the network data can be detected in real time, and when the network data connection is detected to be abnormal, a plurality of corresponding recovery operations can be automatically executed according to the difficulty level sequence of the recovery operations, so that the recovery efficiency of the network data is improved.
Referring to fig. 3, fig. 3 is another schematic flow chart of a method for recovering network data according to an embodiment of the present application, where the method for recovering network data includes the following steps:
in step S201, when a network data connection is detected, parameter values corresponding to a plurality of preset parameters in the network data are obtained.
For example, when it is detected that a user opens a cellular network switch in the electronic device, the connection condition of the electronic device and the cellular network data is detected in real time, and when it is detected that the cellular network data is successfully connected, parameter values corresponding to a plurality of preset parameters in the current cellular network data are obtained, where the preset parameters may include a unit time value, a TCP retransmission ratio, a difference between the number of transmitted packets and the number of received packets, DNS non-response times, HTTP request timeout times, candidate cell signal strength values, and the like.
In step S202, preset values corresponding to a plurality of preset parameters are obtained, and a magnitude relationship between the plurality of parameter values and the corresponding preset values is determined.
The method includes the steps of obtaining a plurality of preset parameters such as TCP retransmission ratio, the number difference between a sending data packet and a receiving data packet, DNS no-response times, HTTP request overtime times and corresponding parameter values of candidate cell signal strength values within a unit time value, for example, obtaining the TCP retransmission ratio value within 30 seconds in network data, the number difference between the sending data packet and the receiving data packet, the DNS no-response times, the HTTP request overtime times and the candidate cell signal strength values, receiving preset values of the plurality of preset parameters issued by a server, wherein the preset data are threshold values corresponding to the plurality of preset parameters, and judging the size relation between each parameter value and the corresponding preset value.
In step S203, when at least one of the plurality of parameter values is greater than the corresponding preset value, it is determined that the current network data connection is abnormal.
The method includes that a plurality of preset parameters such as TCP retransmission proportion, the number difference between a sending data packet and a receiving data packet, DNS no-response times, HTTP request overtime times and corresponding parameter values of candidate cell signal strength values in unit time values can directly reflect the quality of current network data, when one parameter value exists in a plurality of parameter value pictures and is larger than the corresponding preset value, the current network data connection can be judged to be abnormal, the abnormal condition of the current network can be analyzed according to the preset parameter of which the parameter value is larger than the preset value, for example, when the parameter value of the candidate cell signal strength value is larger than the preset value, the signal strength value of the current service cell can be analyzed to be poor, and the signal strength of the current service cell affects the quality of the current network with high probability. And when the parameter values are all smaller than or equal to the corresponding preset values, judging that the current network data connection is normal when the parameter values of all the preset parameters are in the normal range.
In step S204, when it is detected that the current network data connection is abnormal, a preset recovery combination scheme is obtained, where the preset recovery combination scheme includes multiple recovery operations.
When the current network data connection is detected to be abnormal, a preset recovery combination scheme is obtained, wherein the preset recovery combination scheme comprises a plurality of recovery operations, and the recovery operations are related to a plurality of network nodes of the electronic equipment accessing the network data, such as cell reselection operation, PDP reactivation operation, network data reattachment operation, modem restart operation, and data service of dropping the network data to the second system.
In some embodiments, after the step of detecting the current network data connection abnormality, the method further includes: acquiring abnormal information of current network data, and reporting the abnormal information to a server so that the server updates a preset value in real time according to the abnormal information; and receiving the updated preset value to perform updating operation.
After the current network data connection abnormality is detected, the abnormal information of the current network data can be counted to update the preset data in real time, the abnormal information can include current position information of the electronic equipment, current preset value information, signal strength of a current service cell, a current network system and the like, the abnormal information is reported to the server, the server updates the current preset value in real time according to the abnormal information, the updated preset value is issued to the electronic equipment by the server, and the electronic equipment performs corresponding updating operation after receiving the updated preset value. Therefore, the preset values corresponding to the preset parameters are updated in real time according to the abnormal information of the current network data, and the preset values are related to the current position information of the electronic equipment, the current preset value information, the signal strength of the current service cell and the current network system, so that the accuracy of the preset values is improved.
In step S205, an initial difficulty level of each recovery operation is acquired.
Each recovery operation corresponds to an initial difficulty level, and the recovery operations are sorted from easy to difficult according to the initial difficulty level to obtain the following recovery combination scheme, namely cell reselection operation, PDP reactivation operation, network data reattachment operation, modem restart operation and data service operation after the network data falls back to the second system.
In step S206, a target preset parameter greater than a corresponding preset value among the plurality of parameter values is obtained.
For example, if the parameter value of the TCP retransmission ratio and the parameter value of the number difference between the transmission data packet and the reception data packet in the plurality of preset parameters are both greater than the corresponding preset values, it may be determined that the target preset parameter is the TCP retransmission ratio and the number difference between the transmission data packet and the reception data packet, and at this time, the reason for the current network connection abnormality may be analyzed according to the target preset parameter.
In some embodiments, after the step of obtaining the target preset parameter greater than the corresponding preset value from the plurality of parameter values, the method may further include: acquiring the number of target preset parameters, and determining target recovery operation and a weighting coefficient of the target recovery operation according to the number of the target preset parameters; the target recovery operations are weighted according to the weighting coefficients to obtain updated target difficulty levels of each recovery operation, and step S209 is performed directly after the target difficulty levels are determined.
When the target preset parameter is 1, it may be determined that the corresponding target recovery operation is a cell reselection operation, when the target preset parameter is 2, it may be determined that the corresponding target recovery operation is a PDP reactivation operation, when the target preset parameter is 3 or 4, it may be determined that the corresponding target recovery operation is a network data reattachment operation, and when the target preset parameter is 5, it may be determined that the corresponding target recovery operation is a modem restart operation. And determining corresponding weighting coefficients according to the number of the target preset parameters, so that the target difficulty degrees after the weighting processing is carried out on the difficulty degrees of the target recovery operation according to the weighting coefficients are all smaller than the target difficulty degrees of other recovery operations.
For example, the initial difficulty of the cell reselection operation is 1, the initial difficulty of the PDP reactivation operation is 1.2, the initial difficulty of the network data reattachment operation is 1.3, the initial difficulty of the modem restart operation is 1.4, and the initial difficulty of dropping the network data to the second system for data service is 1.5, when 5 preset target parameters are detected, it is determined that the corresponding target recovery operation is the modem restart operation, and the weighting coefficient of the modem restart operation is 0.6, at this time, the initial difficulty of the modem restart operation is weighted according to the weighting coefficient 0.6, and it is obtained that the target difficulty of the modem restart operation is 0.84, it should be noted that the difficulty of other recovery operations is not changed at this time, that is, the target difficulty of other recovery operations is the initial difficulty. The target difficulty of each recovery operation is specifically as follows: the target difficulty of the modem restart operation is 0.84, the target difficulty of the cell reselection operation is 1, the target difficulty of the PDP reactivation operation is 1.2, the target difficulty of the network data reattachment operation is 1.3, and the target difficulty of dropping the network data back to the second system for data service is 1.5, at this time, the recovery operation executed first according to the recovery sequence from low to high in the target difficulty is the modem restart operation.
It can be understood that, when the number of the target preset parameters is more, the more complicated the current network data situation is, the recovery sequence of the recovery operation needs to be adjusted, the recovery operation with the difficulty in the initial difficulty level is weighted according to the weighting coefficient, so that the target difficulty level of the recovery operation is reduced, that is, the difficult recovery operation is put at a front position according to the target difficulty level and is executed first, so that the network data is recovered more effectively, the success rate of the network data recovery is increased, and the recovery efficiency of the network data is improved.
In step S207, a target recovery operation associated with the target preset parameter is determined, and a weighting coefficient corresponding to the target recovery operation is determined according to a parameter value of the target preset parameter.
Wherein each preset parameter is associated with a corresponding recovery operation, for example, the candidate cell signal strength value is associated with a cell reselection operation, the TCP retransmission ratio, the difference between the numbers of the transmitted and received packets are associated with a PDP reactivation operation and a network data reattachment operation, the DNS unresponsive times and the HTTP request timeout times are associated with a modem restart operation, so that a corresponding target recovery operation can be determined according to the target preset parameter, for example, when the target preset parameter is the TCP retransmission ratio and the difference between the numbers of the transmitted and received packets, the target recovery operation can be determined as the PDP reactivation operation and the network data reattachment operation, and at this time, the weighting coefficient of the target recovery operation is determined to be 0.8 according to the specific parameter values of the TCP retransmission ratio and the difference between the numbers of the transmitted and received packets, wherein, there is a certain mapping relationship between the parameter value of each preset parameter and the weighting coefficient, and the weighting coefficient is in negative correlation with the parameter value, for example, the weighting coefficient is less than 1, and the weighting coefficient of the target recovery operation is smaller when the parameter value of the target preset parameter is larger.
In some embodiments, when the recovery operation is associated with a plurality of target preset parameters, the target weighting coefficients of the recovery operation may be calculated jointly according to the weighting coefficients corresponding to each target preset parameter, for example, when the target preset parameter is the TCP retransmission ratio and the difference between the number of the transmission data packets and the number of the reception data packets, it can be determined that the target recovery operation is a PDP reactivation operation and a network data reattachment operation, at this time, the first weighting coefficient corresponding to the TCP retransmission ratio is 0.9, the second weighting coefficient corresponding to the difference between the numbers of the transmitted data packet and the received data packet is 0.8, at this time, the first weighting coefficient and the second weighting coefficient may be averaged to obtain a target weighting coefficient of 0.85 for the PDP reactivation operation and the network data reattachment operation, and the target weighting coefficient of 0.72 for the PDP reactivation operation and the network data reattachment operation is obtained by multiplying the first weighting coefficient and the second weighting coefficient.
In step S208, the initial difficulty level of the recovery operation is weighted according to the weighting coefficient to obtain the updated target difficulty level of each recovery operation.
Wherein, the initial difficulty of the target recovery operation is weighted according to the determined weighting factor, and the weighting factor is smaller than 1, so the difficulty of the target recovery operation after weighted calculation will be smaller, for example, the initial difficulty of each recovery operation is 1 for cell reselection operation, 1.2 for PDP reactivation operation, 1.3 for network data reattachment operation, 1.4 for modem restart operation, and 1.5 for dropping the network data to the second system for data service respectively, when the target preset parameter is TCP retransmission ratio and the difference between the number of the transmitted data packet and the received data packet, the target recovery operation can be determined as PDP reactivation operation and network data reattachment operation, and the weighting factor of the PDP reactivation operation and network data reattachment operation is obtained as 0.72, at this time, the initial difficulty of the PDP reactivation operation and the network data reattachment operation are weighted and calculated according to the weighting coefficient of 0.85, so that the target difficulty of the PDP reactivation operation is 0.864 and the target difficulty of the network data reattachment operation is 0.936.
In step S209, a current first recovery operation is determined in the recovery order of the target difficulty level from low to high, and the corresponding first recovery operation is performed.
The target difficulty and the target ease of the recovery operation are respectively as follows: the target difficulty of the PDP reactivation operation is 0.864, the target difficulty of the network data reattachment operation is 0.936, the target difficulty of the cell reselection operation is 1, the target difficulty of the modem restart operation is 1.4, and the target difficulty of dropping the network data back to the second system for data service is 1.5, at this time, the recovery sequence determined according to the target difficulty from low to high is as follows, the PDP reactivation operation, the network data reattachment operation, the cell reselection operation, and the modem operation until dropping the network data back to the second system for data service, that is, the first recovery operation can be determined as the PDP reactivation operation according to the recovery sequence, that is, the PDP reactivation operation is first started to recover the network data.
In some embodiments, after the first recovery operation is completed, the connection status of the current network data is re-detected. And when the current network data connection is detected to be normal, ending the recovery operation. And when the current network data connection is detected to be abnormal, determining a second recovery operation according to the recovery sequence.
The method comprises the steps of acquiring parameter values of a plurality of preset parameters after a first recovery operation, namely a PDP (plasma display panel) reactivation operation is completed, detecting the connection condition of current network data again according to the parameter values and the updated preset values, finishing a preset recovery combination scheme when the current network data is detected to be normally connected and indicating that the current network data is successfully recovered, determining a second recovery operation as a network data reattachment operation according to a recovery sequence and executing the second recovery operation when the current network data is detected to be abnormally connected, namely, after each recovery operation is completed, detecting the connection condition of the network data again to analyze whether the network data is successfully recovered.
In some embodiments, after all recovery operations are executed according to the recovery sequence, when the current network data is detected again to be abnormal in connection, a network data recovery failure message is reported to the server, and corresponding prompt messages are generated to prompt the user that the network data recovery fails, and prompt the user to check whether a Subscriber Identity Module (SIM) card in the electronic device is in short charge, and to check whether the SIM card is a valid SIM card.
As can be seen from the above, in the method for recovering network data provided in the embodiment of the present application, when a network data connection is detected, parameter values corresponding to a plurality of preset parameters in the network data are obtained; acquiring preset values corresponding to the preset parameters, and determining the connection condition of the current network data according to the parameter values and the preset values; when the current network data connection is detected to be abnormal, acquiring a preset recovery combination scheme, wherein the preset recovery combination scheme comprises a plurality of recovery operations; and determining the target difficulty level of each recovery operation, and starting the corresponding recovery operation according to the recovery sequence of the target difficulty level from low to high so as to complete the recovery of the network data. Therefore, the connection condition of the network data can be detected in real time, and when the network data connection is detected to be abnormal, a plurality of corresponding recovery operations can be automatically executed according to the difficulty level sequence of the recovery operations, so that the recovery efficiency of the network data is improved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a device for recovering network data according to an embodiment of the present application, specifically, the device for recovering network data includes: a detection unit 31, a determination unit 32, an acquisition unit 33, and a recovery unit 34.
The detecting unit 31 is configured to, when detecting a network data connection, acquire parameter values corresponding to a plurality of preset parameters in the network data.
The detecting unit 31 is configured to detect a connection condition of network data in real time, where the network data may include a cellular network and a wireless network, for example, when it is detected that a user opens a cellular network switch in an electronic device, detect a connection condition of the electronic device and the cellular network data in real time, and when it is detected that the cellular network data is successfully connected, obtain parameter values corresponding to a plurality of preset parameters in current cellular network data, where the preset parameters may include a unit time value, a TCP retransmission ratio, a difference between the number of transmitted packets and the number of received packets, DNS unresponsive times, HTTP request timeout times, candidate cell signal strength values, and the like.
The determining unit 32 is configured to obtain preset values corresponding to the plurality of preset parameters, and determine a connection status of the current network data according to the parameter values and the preset values.
Wherein, the determining unit 32 is configured to obtain a plurality of preset parameters, such as TCP retransmission ratio, the difference between the number of transmitted packets and the number of received packets, DNS no-response times, HTTP request timeout times, and the corresponding parameter values of the candidate cell signal strength value in a unit time value, for example, obtain the TCP retransmission ratio within 30 seconds, the difference between the number of transmitted packets and the number of received packets, DNS no-response times, HTTP request timeout times, and the candidate cell signal strength value in the network data, and receive the preset values of the plurality of preset parameters issued by the server, where the preset data is the threshold values corresponding to the plurality of preset parameters, and when a parameter value corresponding to a target preset parameter in the plurality of preset parameters is greater than the corresponding preset value, it may indicate that the current network data connection is abnormal, that the current network data quality is poor, and the internet access efficiency of the user is affected, at this time, corresponding network data recovery operation is required to ensure a normal communication process. And when the parameter values corresponding to the preset parameters are all larger than the corresponding preset values, the current network data connection is normal, and the user can normally communicate through the current network data.
The obtaining unit 33 is configured to, when it is detected that the current network data connection is abnormal, obtain a preset recovery combination scheme, where the preset recovery combination scheme includes multiple recovery operations.
When it is detected that the current network data connection is abnormal, the obtaining unit 33 is configured to obtain a preset recovery combination scheme, where the preset recovery combination scheme includes multiple recovery operations, and the multiple recovery operations are related to multiple network nodes where the electronic device accesses the network data, such as a cell reselection operation, a PDP reactivation operation, a network data reattachment operation, a modem restart operation, and a data service performed by dropping the network data back to the second system.
The recovery unit 34 is configured to determine a target difficulty level of each recovery operation, and start corresponding recovery operations according to a recovery sequence of the target difficulty level from low to high to complete recovery of network data.
The recovery unit 34 is configured to determine a target difficulty level of the plurality of recovery operations, where the target difficulty level is related to the degree of influence of performing the recovery operation on the user and the complexity of the recovery operation. And sequencing the plurality of recovery operations according to the target difficulty degree from easy to difficult to generate a corresponding recovery sequence, and executing the corresponding recovery operations according to the recovery sequence.
Referring to fig. 5, fig. 5 is another schematic structural diagram of a device for recovering network data according to an embodiment of the present application, where the recovery unit 34 includes: an acquisition subunit 341, a weighting subunit 342, and a recovery subunit 343.
An obtaining subunit 341 is configured to obtain an initial difficulty level of each recovery operation.
The obtaining subunit 341 is configured to obtain an initial difficulty level corresponding to each recovery operation, and rank the recovery operations according to the initial difficulty levels from easy to difficult to obtain a recovery combination scheme, where the recovery combination scheme includes a cell reselection operation, a PDP reactivation operation, a network data reattachment operation, and a modem restart operation, and the data service is performed after the network data falls back to the second standard.
The weighting subunit 342 is configured to perform a weighted calculation on the initial difficulty level according to the plurality of parameter values to obtain a target difficulty level updated by each recovery operation.
The weighting subunit 342 is specifically configured to obtain a target preset parameter, which is greater than a corresponding preset value, from among the plurality of parameter values; determining target recovery operation associated with the target preset parameter, determining a weighting coefficient corresponding to the target recovery operation according to a parameter value of the target preset parameter, wherein the weighting coefficient is in negative correlation with the parameter value; and carrying out weighted calculation on the initial difficulty of the recovery operation according to the weighting coefficient so as to obtain the updated target difficulty of each recovery operation.
In some embodiments, the weighting subunit 342 is further configured to obtain the number of target preset parameters when determining the target difficulty level of the recovery operation according to the target preset parameters, and determine the target recovery operation according to the number of target preset parameters.
The recovery subunit 343 is configured to start corresponding recovery operations according to a recovery sequence of the target difficulty level from low to high, so as to complete recovery of the network data.
After the recovery subunit 343 starts the corresponding recovery operation according to the recovery sequence from low to high difficulty of the target, the recovery subunit is further configured to re-detect the connection status of the data network of the current electronic device after the target recovery operation is completed; when the current network data connection is detected to be normal, ending the recovery operation; and when the current network data connection is detected to be abnormal, determining the next recovery operation according to the recovery sequence.
As can be seen from the above, in the recovery apparatus for network data provided in the embodiment of the present application, when a network data connection is detected, the detection unit 31 obtains parameter values corresponding to a plurality of preset parameters in the network data; the determining unit 32 obtains preset values corresponding to the preset parameters, and determines a connection status of the current network data according to the parameter values and the preset values; when detecting that the current network data connection is abnormal, the obtaining unit 33 obtains a preset recovery combination scheme, where the preset recovery combination scheme includes multiple recovery operations; the recovery unit 34 determines a target difficulty level of each recovery operation, and starts the corresponding recovery operations according to a recovery sequence from low to high of the target difficulty level to complete recovery of the network data. Therefore, the connection condition of the network data can be detected in real time, and when the network data connection is detected to be abnormal, a plurality of corresponding recovery operations can be automatically executed according to the difficulty level sequence of the recovery operations, so that the recovery efficiency of the network data is improved.
The embodiment of the application also provides the electronic equipment. Referring to fig. 6, an electronic device 500 includes a processor 501 and a memory 502. The processor 501 is electrically connected to the memory 502.
The processor 500 is a control center of the electronic device 500, connects various parts of the whole electronic device using various interfaces and lines, performs various functions of the electronic device 500 by running or loading a computer program stored in the memory 502, and calls data stored in the memory 502, and processes the data, thereby performing overall monitoring of the electronic device 500.
The memory 502 may be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by running the computer programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 502 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
In this embodiment, the processor 501 in the electronic device 500 loads instructions corresponding to one or more processes of the computer program into the memory 502, and the processor 501 runs the computer program stored in the memory 502, so as to implement various functions as follows:
when network data connection is detected, parameter values corresponding to a plurality of preset parameters in the network data are obtained;
acquiring preset values corresponding to a plurality of preset parameters, and determining the connection condition of the current network data according to the parameter values and the preset values;
when the current network data connection is detected to be abnormal, acquiring a preset recovery combination scheme, wherein the preset recovery combination scheme comprises a plurality of recovery operations;
and determining the target difficulty of each recovery operation, and starting the corresponding recovery operation according to the recovery sequence of the target difficulty from low to high so as to complete the recovery of the network data.
In some embodiments, when determining the connection status of the current network data according to the parameter value and the preset value, the processor 501 may specifically perform the following steps:
judging the magnitude relation between a plurality of parameter values and corresponding preset values;
when at least one parameter value in the plurality of parameter values is larger than a corresponding preset value, judging that the current network data connection is abnormal;
and when the parameter values are all smaller than or equal to the corresponding preset values, judging that the current network data connection is normal.
In some embodiments, when determining the target ease of each recovery operation, processor 501 may specifically perform the following steps:
acquiring the initial difficulty of each recovery operation;
and carrying out weighted calculation on the initial difficulty level according to the plurality of parameter values to obtain the updated target difficulty level of each recovery operation.
In some embodiments, when a plurality of parameter values perform weighted calculation on the initial difficulty level, the processor 501 may specifically perform the following steps:
determining a weighting coefficient corresponding to the recovery operation according to the magnitude relation between the parameter values and the preset value;
and carrying out weighted calculation on the initial difficulty of the recovery operation according to the weighting coefficient.
In some embodiments, when the magnitude relationship between the plurality of parameter values and the preset value determines the weighting coefficient corresponding to the recovery operation, the processor 501 may specifically perform the following steps:
acquiring a target preset parameter which is larger than a corresponding preset value in the plurality of parameter values;
determining target recovery operation associated with a target preset parameter, and determining a weighting coefficient corresponding to the target recovery operation according to a parameter value of the target preset parameter, wherein the weighting coefficient is in negative correlation with the parameter value.
In some embodiments, when the corresponding recovery operations are initiated in a recovery order from low to high difficulty of the target, the processor 501 may specifically perform the following steps:
determining a current first recovery operation according to a recovery sequence of the target difficulty degree from low to high, and executing a corresponding first recovery operation;
after the first recovery operation is finished, detecting the connection state of the current network data again;
when the current network data connection is detected to be normal, ending the recovery operation;
and when the current network data connection is detected to be abnormal, determining a second recovery operation according to the recovery sequence.
In some embodiments, when the current network data connection is detected to be abnormal, the processor 501 may further specifically perform the following steps:
acquiring abnormal information of current network data, and reporting the abnormal information to a server so that the server updates a preset value in real time according to the abnormal information;
and receiving the updated preset value to perform updating operation.
As can be seen from the above, when the network data connection is detected, the electronic device provided in the embodiment of the application acquires parameter values corresponding to a plurality of preset parameters in the network data; acquiring preset values corresponding to the preset parameters, and determining the connection condition of the current network data according to the parameter values and the preset values; when the current network data connection is detected to be abnormal, acquiring a preset recovery combination scheme, wherein the preset recovery combination scheme comprises a plurality of recovery operations; and determining the target difficulty level of each recovery operation, and starting the corresponding recovery operation according to the recovery sequence of the target difficulty level from low to high so as to complete the recovery of the network data. Therefore, the connection condition of the network data can be detected in real time, and when the network data connection is detected to be abnormal, a plurality of corresponding recovery operations can be automatically executed according to the difficulty level sequence of the recovery operations, so that the recovery efficiency of the network data is improved.
Referring to fig. 7, in some embodiments, the electronic device 500 may further include: a display 503, radio frequency circuitry 504, audio circuitry 505, and a power supply 506. The display 503, the rf circuit 504, the audio circuit 505, and the power source 506 are electrically connected to the processor 501.
The display 503 may be used to display information entered by or provided to the user as well as various graphical user interfaces, which may be made up of graphics, text, icons, video, and any combination thereof. The display 503 may include a display panel, and in some embodiments, the display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The rf circuit 504 may be used for transceiving rf signals to establish wireless communication with a network device or other electronic devices via wireless communication, and for transceiving signals with the network device or other electronic devices.
The audio circuit 505 may be used to provide an audio interface between a user and an electronic device through a speaker, microphone.
The power source 506 may be used to power various components of the electronic device 500. In some embodiments, power supply 506 may be logically coupled to processor 501 through a power management system, such that functions of managing charging, discharging, and power consumption are performed through the power management system.
Although not shown in fig. 7, the electronic device 500 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
An embodiment of the present application further provides a storage medium, where the storage medium stores a computer program, and when the computer program runs on a computer, the computer is caused to execute the method for recovering network data in any of the above embodiments, such as: when network data connection is detected, parameter values corresponding to a plurality of preset parameters in the network data are obtained; acquiring preset values corresponding to a plurality of preset parameters, and determining the connection condition of the current network data according to the parameter values and the preset values; when the current network data connection is detected to be abnormal, acquiring a preset recovery combination scheme, wherein the preset recovery combination scheme comprises a plurality of recovery operations; and determining the target difficulty of each recovery operation, and starting the corresponding recovery operation according to the recovery sequence of the target difficulty from low to high so as to complete the recovery of the network data.
In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It should be noted that, for the method for recovering network data in the embodiment of the present application, it can be understood by a person skilled in the art that all or part of the process for implementing the method for recovering network data in the embodiment of the present application may be implemented by controlling related hardware through a computer program, where the computer program may be stored in a computer readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and during the execution process, the process may include, for example, the process of the embodiment of the method for recovering network data. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
In the network data recovery apparatus according to the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented as a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium such as a read-only memory, a magnetic or optical disk, or the like.
The foregoing describes in detail a method, an apparatus, a storage medium, and an electronic device for recovering network data provided in an embodiment of the present application, and a specific example is applied in the present application to explain principles and implementations of the present application, and the description of the foregoing embodiments is only used to help understand the method and core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. A method for recovering network data, comprising:
when network data connection is detected, parameter values corresponding to a plurality of preset parameters in the network data are obtained;
acquiring preset values corresponding to the preset parameters, and determining the connection condition of the current network data according to the parameter values and the preset values;
when the current network data connection is detected to be abnormal, acquiring a preset recovery combination scheme, wherein the preset recovery combination scheme comprises a plurality of recovery operations;
and determining the target difficulty of each recovery operation, and starting the corresponding recovery operation according to the recovery sequence of the target difficulty from low to high so as to complete the recovery of the network data.
2. The method of claim 1, wherein the step of determining the connection status of the current network data according to the parameter value and the preset value comprises:
judging the magnitude relation between a plurality of parameter values and corresponding preset values;
when at least one parameter value in the plurality of parameter values is larger than a corresponding preset value, judging that the current network data connection is abnormal;
and when the parameter values are all smaller than or equal to the corresponding preset values, judging that the current network data connection is normal.
3. The method of claim 2, wherein the step of determining a target difficulty level for each recovery operation comprises:
acquiring the initial difficulty of each recovery operation;
and carrying out weighted calculation on the initial difficulty level according to the plurality of parameter values to obtain the updated target difficulty level of each recovery operation.
4. The method of claim 3, wherein the step of performing a weighted calculation of the initial difficulty level according to the plurality of parameter values comprises:
determining a weighting coefficient corresponding to the recovery operation according to the magnitude relation between the parameter values and the preset numerical value;
and carrying out weighted calculation on the initial difficulty of the recovery operation according to the weighting coefficient.
5. The method according to claim 4, wherein the step of determining the weighting factor corresponding to the recovery operation according to the magnitude relationship between the plurality of parameter values and the preset value comprises:
acquiring a target preset parameter which is larger than a corresponding preset value in the plurality of parameter values;
determining target recovery operation associated with a target preset parameter, and determining a weighting coefficient corresponding to the target recovery operation according to a parameter value of the target preset parameter, wherein the weighting coefficient is in negative correlation with the parameter value.
6. The method according to any one of claims 1 to 5, wherein the step of starting the corresponding recovery operations in the recovery order of the target difficulty level from low to high comprises:
determining a current first recovery operation according to a recovery sequence of the target difficulty degree from low to high, and executing a corresponding first recovery operation;
after the first recovery operation is finished, detecting the connection state of the current network data again;
when the current network data connection is detected to be normal, ending the recovery operation;
and when the current network data connection is detected to be abnormal, determining a second recovery operation according to the recovery sequence.
7. The method according to any one of claims 1-5, wherein after the step of detecting the current network data connection abnormality, further comprising:
acquiring abnormal information of current network data, and reporting the abnormal information to a server so that the server updates a preset value in real time according to the abnormal information;
and receiving the updated preset value to perform updating operation.
8. An apparatus for restoring network data, comprising:
the device comprises a detection unit, a processing unit and a processing unit, wherein the detection unit is used for acquiring parameter values corresponding to a plurality of preset parameters in network data when the network data connection is detected;
the determining unit is used for acquiring preset values corresponding to the preset parameters and determining the connection condition of the current network data according to the parameter values and the preset values;
the device comprises an acquisition unit, a recovery unit and a recovery unit, wherein the acquisition unit is used for acquiring a preset recovery combination scheme when the current network data connection is detected to be abnormal, and the preset network recovery combination scheme comprises a plurality of recovery operations;
and the recovery unit is used for determining the target difficulty level of each recovery operation and starting the corresponding recovery operation according to the recovery sequence of the target difficulty levels from low to high so as to complete the recovery of the network data.
9. The apparatus of claim 8, wherein the recovery unit comprises:
an obtaining subunit, configured to obtain an initial difficulty level of each recovery operation;
the weighting subunit is configured to perform weighting calculation on the initial difficulty level according to the plurality of parameter values to obtain a target difficulty level updated by each recovery operation;
and the recovery subunit is used for starting corresponding recovery operations according to the recovery sequence of the target difficulty level from low to high so as to complete the recovery of the network data.
10. A storage medium having stored thereon a computer program, characterized in that, when the computer program runs on a computer, it causes the computer to execute the recovery method of network data according to claim 1.
11. An electronic device, characterized in that it comprises a processor and a memory, said memory having a computer program, said processor being adapted to execute the method for recovery of network data according to claim 1 by calling said computer program.
CN201910930003.8A 2019-09-17 2019-09-17 Network data recovery method and device, storage medium and electronic equipment Active CN110708696B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910930003.8A CN110708696B (en) 2019-09-17 2019-09-17 Network data recovery method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910930003.8A CN110708696B (en) 2019-09-17 2019-09-17 Network data recovery method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN110708696A true CN110708696A (en) 2020-01-17
CN110708696B CN110708696B (en) 2022-05-06

Family

ID=69198081

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910930003.8A Active CN110708696B (en) 2019-09-17 2019-09-17 Network data recovery method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110708696B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111885746A (en) * 2020-07-28 2020-11-03 北京字节跳动网络技术有限公司 Network connection method and device of terminal equipment
CN112203316A (en) * 2020-09-30 2021-01-08 Oppo(重庆)智能科技有限公司 Method and device for recovering network abnormity, electronic equipment and storage medium
CN112242931A (en) * 2020-11-11 2021-01-19 北京百度网讯科技有限公司 Network environment reproduction method, terminal, platform, electronic device and readable medium
CN112804768A (en) * 2021-02-07 2021-05-14 北京字节跳动网络技术有限公司 Method and device for processing communication connection, terminal and non-transitory storage medium
CN113891497A (en) * 2021-10-09 2022-01-04 维沃移动通信有限公司 Network repairing method and device
CN114567517A (en) * 2022-01-17 2022-05-31 深圳绿米联创科技有限公司 Parameter adjusting method and device and server
CN116506977A (en) * 2023-06-25 2023-07-28 荣耀终端有限公司 Communication method, terminal and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699861A (en) * 2009-10-29 2010-04-28 中兴通讯股份有限公司 Method and system for restoring video monitoring service
CN103988549A (en) * 2011-10-17 2014-08-13 英特尔公司 Call establishment in highly congested network environment
CN106488491A (en) * 2016-12-13 2017-03-08 广东欧珀移动通信有限公司 The abnormal processing method and processing device of network communicating function
CN107801201A (en) * 2017-10-19 2018-03-13 维沃移动通信有限公司 Network recovery method and device
CN110166115A (en) * 2019-04-19 2019-08-23 全球能源互联网研究院有限公司 A kind of quantum optical network service fault recovery method and device based on pool of keys

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699861A (en) * 2009-10-29 2010-04-28 中兴通讯股份有限公司 Method and system for restoring video monitoring service
CN103988549A (en) * 2011-10-17 2014-08-13 英特尔公司 Call establishment in highly congested network environment
CN106488491A (en) * 2016-12-13 2017-03-08 广东欧珀移动通信有限公司 The abnormal processing method and processing device of network communicating function
CN107801201A (en) * 2017-10-19 2018-03-13 维沃移动通信有限公司 Network recovery method and device
CN110166115A (en) * 2019-04-19 2019-08-23 全球能源互联网研究院有限公司 A kind of quantum optical network service fault recovery method and device based on pool of keys

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111885746A (en) * 2020-07-28 2020-11-03 北京字节跳动网络技术有限公司 Network connection method and device of terminal equipment
CN112203316A (en) * 2020-09-30 2021-01-08 Oppo(重庆)智能科技有限公司 Method and device for recovering network abnormity, electronic equipment and storage medium
CN112242931A (en) * 2020-11-11 2021-01-19 北京百度网讯科技有限公司 Network environment reproduction method, terminal, platform, electronic device and readable medium
CN112804768A (en) * 2021-02-07 2021-05-14 北京字节跳动网络技术有限公司 Method and device for processing communication connection, terminal and non-transitory storage medium
CN112804768B (en) * 2021-02-07 2023-04-07 北京字节跳动网络技术有限公司 Method and device for processing communication connection, terminal and non-transitory storage medium
CN113891497A (en) * 2021-10-09 2022-01-04 维沃移动通信有限公司 Network repairing method and device
CN113891497B (en) * 2021-10-09 2024-05-24 维沃移动通信有限公司 Network repair method and device
CN114567517A (en) * 2022-01-17 2022-05-31 深圳绿米联创科技有限公司 Parameter adjusting method and device and server
CN114567517B (en) * 2022-01-17 2024-05-14 深圳绿米联创科技有限公司 Parameter adjustment method, device and server
CN116506977A (en) * 2023-06-25 2023-07-28 荣耀终端有限公司 Communication method, terminal and system
CN116506977B (en) * 2023-06-25 2023-10-20 荣耀终端有限公司 Communication method, terminal and system

Also Published As

Publication number Publication date
CN110708696B (en) 2022-05-06

Similar Documents

Publication Publication Date Title
CN110708696B (en) Network data recovery method and device, storage medium and electronic equipment
WO2020134873A1 (en) State switching method, mobile terminal, network device and communication system
WO2022143520A1 (en) Cell switching method and apparatus, and user equipment
WO2020029823A1 (en) Cell beam failure processing method, mobile communication terminal and network side device
WO2022156736A1 (en) Voice fallback method and apparatus, and user equipment
CN108900370A (en) It is long to connect multiple overtime judgment method, device and computer readable storage medium
US10728718B2 (en) Incoming call processing method, user equipment, and storage medium
CN112469096B (en) Cell switching method and device
US8457030B2 (en) Mobile phone and method for receiving calls
JP2009182956A (en) Network connection control method and terminal
WO2024027745A1 (en) Network connection method, electronic device, readable storage medium, and chip
CN112738865B (en) Service processing method and device and electronic equipment
CN113038513A (en) Method, terminal device and storage medium for independent networking weak coverage
CN111966425A (en) Process cleaning method and device, storage medium and mobile terminal
EP2949083A1 (en) Receiving a communication event
CN107566215B (en) Wireless network cutout detection method, device, storage medium and mobile terminal
CN110709801B (en) Method and equipment for reducing power consumption
US20220053485A1 (en) Configuration information obtaining and sending method, terminal, and network side device
CN108599987B (en) Processing method for network communication function abnormity, application processor and user terminal
CN108476465B (en) CSFB network holding method and user terminal
CN110650259B (en) Call request response method, device, server, terminal and storage medium
CN111083694B (en) Application program login method, device, terminal and storage medium
US10966104B2 (en) Email synchronization method and device
JP2023509407A (en) Multicast service processing method, multicast service configuration method, terminal and network equipment
CN111031038A (en) Network processing method and device, storage medium and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant