CN114553673A - Network fault processing method and device, computer equipment and storage medium - Google Patents

Network fault processing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN114553673A
CN114553673A CN202210055797.XA CN202210055797A CN114553673A CN 114553673 A CN114553673 A CN 114553673A CN 202210055797 A CN202210055797 A CN 202210055797A CN 114553673 A CN114553673 A CN 114553673A
Authority
CN
China
Prior art keywords
network
fault
processing data
processing
module
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.)
Pending
Application number
CN202210055797.XA
Other languages
Chinese (zh)
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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology 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 Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202210055797.XA priority Critical patent/CN114553673A/en
Publication of CN114553673A publication Critical patent/CN114553673A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application relates to the communication field, in particular to a network fault processing method, a device, computer equipment and a storage medium, wherein the method is applied to a network system consisting of at least two network equipment and comprises the following steps: generating corresponding processing data based on the network fault of one of the network equipment under the condition that the first communication modules of at least two network equipment have the same network fault; wherein the processing data is for processing the network failure; and sending the processing data to each network device with the network fault. According to the invention, under the condition that the first communication modules of at least two network devices have the same network fault, corresponding processing data are generated based on the network fault of one network device, and the processing data are respectively sent to the network devices with the network fault, so that batch processing of the at least two network devices with the same network fault is realized, and the efficiency is higher compared with a one-to-one debugging fault solution mode.

Description

Network fault processing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of communications, and in particular, to a method and an apparatus for processing a network fault, a computer device, and a storage medium.
Background
Various connectivity problems often arise due to imperfect network deployment. The current common solution is to detach the network device, debug it in the background through the PC and the wired connection device, after the debugging is successful, encode and recompile the packaging program, and upgrade the network device one by one. The network failure processing method undoubtedly needs to consume a large amount of manpower and material resources, and greatly increases the maintenance cost and the time cost.
In view of the above technical problems, no effective solution has been proposed.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a network failure processing method, apparatus, computer device and storage medium.
In a first aspect, an embodiment of the present invention provides a network fault processing method, which is applied to a network system including at least two network devices, where the method includes:
generating corresponding processing data based on the network fault of one of the network equipment under the condition that the first communication modules of at least two network equipment have the same network fault; wherein the processing data is for processing the network failure;
and sending the processing data to each network device with the network fault.
In an embodiment, the generating corresponding processing data based on the network failure of one of the network devices includes:
determining a corresponding operation step and an operation parameter corresponding to each operation step based on the network fault of one network device;
and generating corresponding processing data based on the operation steps and the operation parameters corresponding to the operation steps.
In an embodiment, the generating corresponding processing data based on the operation steps and the operation parameters corresponding to the operation steps includes:
determining a corresponding function pointer based on the operation step, wherein the function pointer is used for calling a function corresponding to the operation step;
and combining each function pointer with the corresponding operation parameter, and generating corresponding processing data based on the sequence of the operation steps.
In a second aspect, an embodiment of the present invention provides a network fault processing apparatus, which is applied to a network system including at least two network devices, where the apparatus includes:
the fault processing module is used for generating corresponding processing data based on the network fault of one of the network equipment under the condition that the first communication modules of the at least two network equipment have the same network fault; wherein the processing data is for processing the network failure;
and the data sending module is used for sending the processing data to each network device with network faults.
In one embodiment, the fault handling module comprises:
the first determining module is used for determining corresponding operation steps and operation parameters corresponding to the operation steps based on the network fault of one network device;
and the first data generation module is used for generating corresponding processing data based on the operation steps and the operation parameters corresponding to the operation steps.
In one embodiment, the data generation module comprises:
a second determining module, configured to determine, based on the operation step, a corresponding function pointer, where the function pointer is used to call a function corresponding to the operation step;
and the second data generation module is used for combining each function pointer and the corresponding operation parameter and generating corresponding processing data based on the sequence of the operation steps.
In one embodiment, the apparatus comprises:
and the wireless communication module is used for communicating with a second communication module of the network equipment with the network fault.
In one embodiment, the apparatus comprises:
and the display editing module is used for displaying and editing the processed data.
In a third aspect, an embodiment of the present invention provides a computer device, including a memory and a processor, where the memory stores a computer program, and the processor executes the steps in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and the processor implements the steps of the first aspect when executing the computer program.
Compared with the prior art, the method, the device, the computer equipment and the storage medium generate corresponding processing data based on the network fault of one network equipment under the condition that the first communication modules of at least two network equipments have the same network fault, and respectively send the processing data to the network equipment with the network fault, so that the batch processing of at least two network equipments with the same network fault is realized, and the efficiency is higher compared with a one-to-one debugging fault solution mode.
Drawings
FIG. 1 is a schematic diagram of an application environment of a network fault handling method in one embodiment;
FIG. 2 is a flow diagram illustrating a method for handling network failures in one embodiment;
FIG. 3 is a flow diagram illustrating a method for process data generation in one embodiment;
FIG. 4 is a schematic flow chart diagram illustrating a method for processing data generation according to an embodiment;
FIG. 5 is a schematic diagram of a network failure processing apparatus according to an embodiment;
FIG. 6 is a block diagram of a computer device in one embodiment.
Detailed Description
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only examples or embodiments of the invention, from which it is possible for a person skilled in the art, without inventive effort, to apply the invention also in other similar contexts. Unless otherwise apparent from the context, or otherwise indicated, like reference numbers in the figures refer to the same structure or operation.
As used in this disclosure and in the claims, the terms "a," "an," "the," and/or "the" are not intended to be inclusive in the singular, but rather are inclusive in the plural, unless the context clearly dictates otherwise. In general, the terms "comprises" and "comprising" merely indicate that steps and elements are included which are explicitly identified, that the steps and elements do not form an exclusive list, and that a method or apparatus may include other steps or elements.
Although the present invention makes various references to certain modules in a system according to embodiments of the present invention, any number of different modules may be used and run on a computing device and/or processor. The modules are merely illustrative and different aspects of the systems and methods may use different modules.
It will be understood that when an element or module is referred to as being "connected," "coupled" to another element, module or block, it can be directly connected or coupled or in communication with the other element, module or block or intervening elements, modules or blocks may be present, unless the context clearly dictates otherwise. As used herein, the term "and/or" can include any and all combinations of one or more of the associated listed items.
The network fault processing method provided by the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the network device 104 via a network. The terminal 102 generates corresponding processing data based on the network fault of one of the network devices when the first communication modules of at least two network devices have the same network fault; wherein the processing data is for processing the network failure; the terminal 102 sends the processing data to each network device 104 with network failure. Each network device 104 handles network failures using process data. The terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
In an embodiment, as shown in fig. 3, a network failure handling method is provided, which is described by taking the application environment in fig. 1 as an example, and includes the following steps:
s202: and generating corresponding processing data based on the network fault of one of the network equipment under the condition that the first communication modules of at least two network equipment have the same network fault.
Wherein the processing data is for processing the network failure.
It should be noted that, in the same network environment, the network failures occurring in the network devices are generally the same. For example, in a 5G network environment, various connection problems often arise due to the wide variety of configurations of the 5G private network.
It is understood that the first communication module may be a communication module such as a 5G module.
Since the network failures of the network devices are the same, in this embodiment, the network failure of only one of the network devices with the network failure is debugged, and the processing data is generated after the debugging.
S204: and sending the processing data to each network device with the network fault.
Since the network failures of the network devices are the same, in this embodiment, the processing data is respectively sent to the network devices with the network failures, and each network device implements the processing of the network failures based on the processing data. The embodiment can realize batch processing of at least two network devices with the same network fault, and has higher efficiency compared with a one-to-one debugging fault solution mode.
In one embodiment, as shown in fig. 3, generating corresponding processing data based on a network failure of one of the network devices includes the following steps:
s302: determining corresponding operation steps and operation parameters corresponding to the operation steps based on the network fault of one network device;
s304: and generating corresponding processing data based on the operation steps and the operation parameters corresponding to the operation steps.
It can be understood that, when network faults of network devices are debugged, corresponding operation steps (for example, execution of AT instructions, loop operation, condition judgment, callback replied by the AT, etc.) may be determined, each step has corresponding operation parameters (various types of variables and constants), and the operation steps and the operation parameters corresponding to the operation steps generate corresponding processing data, which does not need to be coded in a customized manner, is convenient and reliable to maintain, and is not easy to introduce risks to other network environments.
In an embodiment, the auxiliary device may be communicatively connected to a network device with a network failure, so as to implement simple control and management of the network device, such as device reboot.
In one embodiment, the auxiliary device may be connected to other terminals, such as a computer with debugging function, a smart phone, and the like. The on-site debugging can be carried out in a wired connection mode, and the remote debugging can also be realized in a wireless connection mode such as wifi.
The communication connection mode of the auxiliary device and the network device can be a wired connection or a wireless connection. It should be noted that, if the wireless connection is adopted, communication needs to be performed through the communication modules in the network device except the first communication module. The mode through wireless connection is more convenient, need not to dismantle the network equipment who will install in the eminence.
After the process data is generated, the process data may be generated in batches to facilitate distribution of the process data. Meanwhile, the processed data can be displayed on an interface and can be manually edited.
After the data transmission is successfully processed, marking the corresponding network equipment to determine whether the network equipment is debugged.
In an example embodiment, the first communication module of the network device is a 5G module, and communication can be achieved through a wifi module. The network equipment opens the wifi module to scan under the condition that the 5G module is found to have network faults, the AP is searched according to the preset rule, the auxiliary equipment opens the wifi module, the AP is established according to the preset rule, connection with the network equipment is established and completed, and then debugging of the network equipment is achieved.
In an embodiment, as shown in fig. 4, generating corresponding processing data based on the operation steps and the operation parameters corresponding to the operation steps includes the following steps:
s402: determining a corresponding function pointer based on the operation step, wherein the function pointer is used for calling a function corresponding to the operation step;
s404: and combining each function pointer with the corresponding operation parameter, and generating corresponding processing data based on the sequence of the operation steps.
Each operation step can be implemented by a corresponding function, and in this embodiment, a corresponding function pointer is determined by the operation step, and the function pointer can call the corresponding function. The operation parameters are parameters in the corresponding function, each function pointer is combined with the corresponding operation parameter, and corresponding processing data is generated based on the sequence of the operation steps. By using the mode of combining the function pointer and the operation parameters, the data transmission quantity is small, customized coding is not needed, and the maintenance is convenient and reliable.
After the network equipment receives the processing data, the function pointer and the corresponding operating parameters are obtained by analyzing the processing data, and the debugging of the network fault can be realized by calling the corresponding function by using the function pointer and then combining the operating parameters, so that the processing of the network fault is realized.
After the network of the network equipment is successfully recovered, the received processing data is stored in a storage area stored in power failure (if backup data exists, the data is directly covered), the processing data is read again after the network equipment is restarted, and the processing data is executed according to the processing data.
In one embodiment, as shown in fig. 5, the present invention provides a network fault handling apparatus, including:
a fault processing module 502, configured to generate corresponding processing data based on a network fault of one of the network devices when a first communication module of at least two network devices has the same network fault; wherein the processing data is for processing the network failure;
a data sending module 504, configured to send the processing data to each network device with a network fault.
In one embodiment, the fault handling module comprises:
the first determining module is used for determining corresponding operation steps and operation parameters corresponding to the operation steps based on the network fault of one network device;
and the first data generation module is used for generating corresponding processing data based on the operation steps and the operation parameters corresponding to the operation steps.
In one embodiment, the data generation module comprises:
a second determining module, configured to determine, based on the operation step, a corresponding function pointer, where the function pointer is used to call a function corresponding to the operation step;
and the second data generation module is used for combining each function pointer and the corresponding operation parameter and generating corresponding processing data based on the sequence of the operation steps.
In one embodiment, the apparatus comprises:
and the wireless communication module is used for communicating with a second communication module of the network equipment with the network fault.
In one embodiment, the apparatus comprises:
and the display editing module is used for displaying and editing the processed data.
For the specific definition of the network fault handling apparatus, reference may be made to the definition of the program upgrading method in the foregoing, and details are not described here. The modules in the network fault processing device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing motion detection data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement the steps of any of the above described network failure handling method embodiments.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, which includes a memory and a processor, the memory storing a computer program, and the processor implementing the steps of any of the above network fault handling method embodiments when executing the computer program.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the steps of any of the above described network fault handling method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A network fault processing method is applied to a network system consisting of at least two network devices, and is characterized by comprising the following steps:
generating corresponding processing data based on the network fault of one of the network equipment under the condition that the first communication modules of at least two network equipment have the same network fault; wherein the processing data is for processing the network failure;
and sending the processing data to each network device with the network fault.
2. The method of claim 1, wherein generating corresponding process data based on a network failure of one of the network devices comprises:
determining corresponding operation steps and operation parameters corresponding to the operation steps based on the network fault of one network device;
and generating corresponding processing data based on the operation steps and the operation parameters corresponding to the operation steps.
3. The method of claim 2, wherein the generating corresponding processing data based on the operation steps and the operation parameters corresponding to the operation steps comprises:
determining a corresponding function pointer based on the operation step, wherein the function pointer is used for calling a function corresponding to the operation step;
and combining each function pointer with the corresponding operation parameter, and generating corresponding processing data based on the sequence of the operation steps.
4. A network failure processing apparatus applied to a network system composed of at least two network devices, the apparatus comprising:
the fault processing module is used for generating corresponding processing data based on the network fault of one of the network equipment under the condition that the first communication modules of the at least two network equipment have the same network fault; wherein the processing data is for processing the network failure;
and the data sending module is used for sending the processing data to each network device with network faults.
5. The apparatus of claim 4, wherein the fault handling module comprises:
the first determining module is used for determining corresponding operation steps and operation parameters corresponding to the operation steps based on the network fault of one network device;
and the first data generation module is used for generating corresponding processing data based on the operation steps and the operation parameters corresponding to the operation steps.
6. The apparatus of claim 5, wherein the data generation module comprises:
a second determining module, configured to determine, based on the operation step, a corresponding function pointer, where the function pointer is used to call a function corresponding to the operation step;
and the second data generation module is used for combining each function pointer and the corresponding operation parameter and generating corresponding processing data based on the sequence of the operation steps.
7. The apparatus according to any one of claims 4 to 6, wherein the apparatus comprises:
and the wireless communication module is used for communicating with a second communication module of the network equipment with the network fault.
8. The apparatus according to any one of claims 4 to 6, wherein the apparatus comprises:
and the display editing module is used for displaying and editing the processed data.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any one of claims 1 to 3.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 3.
CN202210055797.XA 2022-01-18 2022-01-18 Network fault processing method and device, computer equipment and storage medium Pending CN114553673A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210055797.XA CN114553673A (en) 2022-01-18 2022-01-18 Network fault processing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210055797.XA CN114553673A (en) 2022-01-18 2022-01-18 Network fault processing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114553673A true CN114553673A (en) 2022-05-27

Family

ID=81671751

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210055797.XA Pending CN114553673A (en) 2022-01-18 2022-01-18 Network fault processing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114553673A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105812177A (en) * 2016-03-08 2016-07-27 华为技术有限公司 Network fault processing method and processing apparatus
US20210191831A1 (en) * 2018-09-06 2021-06-24 Huawei Technologies Co., Ltd. Fault diagnosis system and server
CN113176996A (en) * 2021-04-29 2021-07-27 深信服科技股份有限公司 Fault processing method, engine, plug-in probe, device and readable storage medium
CN113825164A (en) * 2021-10-29 2021-12-21 中国电信股份有限公司 Network fault repairing method and device, storage medium and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105812177A (en) * 2016-03-08 2016-07-27 华为技术有限公司 Network fault processing method and processing apparatus
US20210191831A1 (en) * 2018-09-06 2021-06-24 Huawei Technologies Co., Ltd. Fault diagnosis system and server
CN113176996A (en) * 2021-04-29 2021-07-27 深信服科技股份有限公司 Fault processing method, engine, plug-in probe, device and readable storage medium
CN113825164A (en) * 2021-10-29 2021-12-21 中国电信股份有限公司 Network fault repairing method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN110008118B (en) Page data testing method and device, computer equipment and storage medium
CN108958843A (en) Plug-in unit construction method, system, equipment and medium based on lightweight script
CN111008132B (en) Application debugging method and device for Android system, computer equipment and storage medium
CN112416458A (en) Preloading method and device based on ReactNative, computer equipment and storage medium
CN104809045A (en) Operation method and device of monitoring script
CN111159039A (en) Service simulation method, system, device and storage medium
CN110851159A (en) Business rule updating method and device, computer equipment and storage medium
CN112527397A (en) Method and device for modifying basic input output system options and computer equipment
CN112035344A (en) Multi-scenario test method, device, equipment and computer readable storage medium
CN111124801A (en) Intelligent system resource monitoring method and device and computer readable storage medium
CN111506393B (en) ARM-based virtualization device and use method thereof
CN113190399A (en) Log storage method and device, computer equipment and storage medium
CN112559155A (en) Batch job processing method, system, computer device and readable storage medium
CN112636978A (en) Security event processing method, device, equipment and computer readable storage medium
CN114553673A (en) Network fault processing method and device, computer equipment and storage medium
CN108009084B (en) Testing method, device and system for hybrid mobile application
CN104965742A (en) Automated script and apparatus for processing front-end tasks
CN113138768B (en) Application package generation method and device, electronic equipment and readable storage medium
CN111414270B (en) Exception handling method and device
CN111159027B (en) Automatic testing method and device, computer equipment and readable storage medium
CN115114135A (en) Software data testing method, device, equipment, medium and product
CN112417533A (en) Anti-screenshot method and device, computer equipment and storage medium
CN111563038A (en) SDK test method, device, computer equipment and computer readable storage medium
CN111475322A (en) Method and device for positioning stuck thread, computer equipment and readable storage medium
CN113535187B (en) Service online method, service updating method and service providing method

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