CN113608928B - System design and implementation for automatic diagnosis and recovery of home gateway faults - Google Patents

System design and implementation for automatic diagnosis and recovery of home gateway faults Download PDF

Info

Publication number
CN113608928B
CN113608928B CN202110916839.XA CN202110916839A CN113608928B CN 113608928 B CN113608928 B CN 113608928B CN 202110916839 A CN202110916839 A CN 202110916839A CN 113608928 B CN113608928 B CN 113608928B
Authority
CN
China
Prior art keywords
mode
diagnosis
network
fault recovery
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.)
Active
Application number
CN202110916839.XA
Other languages
Chinese (zh)
Other versions
CN113608928A (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.)
Xinhe Semiconductor Technology Wuxi Co Ltd
Original Assignee
Xinhe Semiconductor Technology Wuxi 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 Xinhe Semiconductor Technology Wuxi Co Ltd filed Critical Xinhe Semiconductor Technology Wuxi Co Ltd
Priority to CN202110916839.XA priority Critical patent/CN113608928B/en
Publication of CN113608928A publication Critical patent/CN113608928A/en
Application granted granted Critical
Publication of CN113608928B publication Critical patent/CN113608928B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2289Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by configuration test
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/142Reconfiguring to eliminate the error
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating

Abstract

The invention discloses a system design and realization for automatic diagnosis and recovery of a home gateway fault, wherein a system framework consists of a PPPoE diagnosis module, an IPoE diagnosis module and a fault recovery module; and (3) a fault recovery module: and when the network fails, the preset information in the configuration file system is automatically called to detect, diagnose and recover without depending on operators by adopting VLAN detection and account detection modes. The invention does not depend on whether the TR069 network management ports are communicated or not, any client side including a mobile phone, a computer and a tablet can automatically redirect and jump to a diagnosis page, and a user can select to independently diagnose and automatically recover the faulty network port; the device is restarted and recovers the one-key fault recovery function, so that most of problems in network faults are solved to the maximum extent, and the maintenance pressure of a network operator is greatly reduced.

Description

System design and implementation for automatic diagnosis and recovery of home gateway faults
Technical Field
The invention relates to the technical field of home gateways, in particular to a system design and implementation for automatically diagnosing and recovering faults of a home gateway.
Background
With the rapid development of network technology, the digital popularization of home electronic equipment, and the home gateway, as a bridge for connecting various digital equipment to an external network, has become an indispensable part of life, and when encountering network faults, users are most concerned about how to simply and rapidly recover the faults.
At present, network failure occurs in home gateway equipment, network diagnosis depends on a customer service center of a user calling an electric operator, and under the condition that a TR069 network management port is normally controllable, a technician can remotely control the home gateway through a network side management platform. Once the TR069 management port cannot be connected, customer service personnel generally enable users to restart the gateway, the problem that a network is unavailable due to factors such as suspended processes of certain application programs, leakage of memory, overhigh CPU and the like can be solved, the general restarting can solve most of non-configuration problems, if the problem is caused by network configuration change, the restarting cannot be solved, only time can be scheduled for the technicians to go to the gate for checking, and at the moment, the user experience is not good, and the maintenance pressure on a network operator is also great.
Disclosure of Invention
The invention aims to provide a system design and implementation for automatic diagnosis and recovery of home gateway faults, so as to solve the problems in the background technology.
In order to achieve the above purpose, the present invention provides the following technical solutions:
a system for automatically diagnosing and recovering the fault of a home gateway comprises a system frame consisting of a PPPoE diagnosis module, an IPoE diagnosis module and a fault recovery module;
PPPoE diagnostic module: firstly, judging whether the current connection mode is a route mode or a bridge mode; the routing mode directly calls the current configuration information to enable the pppd process to dial, the dialing is successful, the PING application program is called to detect the network of the gateway or other appointed IP, and if the PING fails or the dialing fails, the fault recovery module is started to attempt repairing; if the current connection mode is the bridge mode, converting the bridge mode into a route mode to start pppd process dialing, and recovering to the bridge mode after diagnosis is finished.
IPoE diagnostic module: firstly, judging whether the current connection mode is a route mode or a bridge mode; the routing mode directly calls the current configuration information to enable the udhcpc process addressing, calls the PING application program to detect the network of the gateway or other appointed IP after the IP is taken, and enables the fault recovery module to attempt repairing if the PING fails or the addressing fails; if the current connection is a bridge mode, converting the bridge mode into a routing mode, starting the udhcpc process addressing, and recovering to the bridge mode after diagnosis is finished.
The fault recovery module adopts VLAN detection and account detection modes, and when a network fails, the fault recovery module is independent of operators and automatically invokes preset information in a configuration file system to detect, diagnose and recover.
The use flow of the system for automatically diagnosing and recovering the fault of the home gateway is as follows:
when a network fault occurs in a client, a client internet surfing page including a mobile phone, a computer and a tablet computer automatically redirects and jumps to a diagnosis page, a user can select a 'equipment restarting and recovering' button, and a gateway automatically restarts and invokes a fault recovering module to recover; the WAN interface with faults can be selected for diagnosis without restarting; the system firstly judges whether the linking mode of the WAN interface is PPPoE or IPoE according to the diagnosis request of the user for the appointed WAN interface, executes corresponding diagnosis, and if dialing or obtaining IP fails according to the current configuration information or obtaining IP but PING gateway fails, the system automatically starts a fault recovery module and carries out network repair according to the pre-configuration information stored in the configuration file of the gateway system.
The fault recovery module is used for respectively configuring and storing a group of storage nodes for fault recovery information detection to a configuration file system according to different service types in a network environment, wherein the storage nodes comprise three parameters: WAN service names, VLAN lists and account number and password lists can be updated and maintained in real time through a TR069 remote management platform, and the lists are ensured to be consistent with the latest network environment.
The user fails to connect the network by using the current WAN configuration information, can select the corresponding WAN interface to diagnose, re-dial or address, if the network is still not connected, the system automatically calls the fault recovery module, and detects VLAN ID or account password in the preset list in sequence.
Compared with the prior art, the invention has the advantages that: when a network fault occurs, the fault can be recovered conveniently and quickly, and the best experience is provided for a user; independent of whether the TR069 network management ports are communicated, any client side including a mobile phone, a computer and a tablet can automatically redirect and jump to a diagnosis page, and a user can select to independently diagnose and automatically restore the faulty network port; the fault recovery module adopts VLAN detection and account detection modes to automatically repair network faults on the premise of not affecting other functions; the device is restarted and recovers the one-key fault recovery function, so that most of problems in network faults are solved to the maximum extent, and the maintenance pressure of a network operator is greatly reduced.
Drawings
FIG. 1 is a flow chart of the automatic diagnosis and fault recovery of the present invention.
FIG. 2 is a flow chart of a fault recovery module according to the present invention.
Detailed Description
The technical scheme of the patent is further described in detail below with reference to the specific embodiments.
Referring to fig. 1, a system for automatically diagnosing and recovering a fault of a home gateway, when a network fault occurs in a client, a client internet surfing page including a mobile phone, a computer and a tablet is automatically redirected and jumped to a diagnosis page, a user can select a 'device restarting and recovering' button, and the gateway is automatically restarted and invokes a fault recovering module to recover; the system can also select a faulty WAN interface for diagnosis (such as surfing the Internet, voice, IPTV and TR 069) without restarting, firstly judges whether the linking mode of the WAN interface is PPPoE or IPoE according to the diagnosis request of a user for the designated WAN interface, executes corresponding diagnosis, and if dialing or acquiring IP fails according to the current configuration information or acquiring IP but PING gateway fails, automatically starts a fault recovery module and carries out network repair according to the preconfiguration information stored in the configuration file of the gateway system.
The whole framework of the system for automatically diagnosing and recovering the fault of the home gateway is composed of three modules: the system comprises a PPPoE diagnosis module, an IPoE diagnosis module and a fault recovery module.
PPPoE diagnostic module: if the designated diagnosis WAN is PPPoE dialing mode, firstly judging whether the current connection mode is a routing mode or a bridging mode, directly calling the current configuration information to enable the pppd process to dial, calling the PING application program to detect the network of the gateway or other designated IP, and if the PING fails or the dialing fails, enabling the fault recovery module to attempt repairing.
If the current connection mode is the bridge mode, converting the bridge mode into a route mode to start pppd process dialing, and recovering to the bridge mode after diagnosis is finished.
IPoE diagnostic module: if the designated WAN is diagnosed into IPoE mode, firstly judging whether the current connection mode is a route mode or a bridge mode, the route mode directly calls the current configuration information to enable the udhcpc process addressing, and after the IP is taken, calls the PING application program to perform network detection on the gateway or other designated IP, and if the PING fails or the addressing fails, enables the fault recovery module to perform trial repair.
If the current connection is a bridge mode, converting the bridge mode into a routing mode, starting the udhcpc process addressing, and recovering to the bridge mode after diagnosis is finished.
As shown in the flow chart of the fault recovery module in fig. 2, the fault recovery module configures and stores a group of storage nodes for information detection of fault recovery to a configuration file system according to network environments for different service types (for example, internet surfing, voice, IPTV and TR 069), and the storage nodes comprise three parameters: WAN service names, VLAN lists (for example, 46,47,100,201,1024, a plurality of different VLAN IDs are separated by commas), account number and password lists (eg: admin/1234, adminisp/adminis, a plurality of different accounts are separated by commas and are used only in a PPPoE link mode), and each list can be updated and maintained in real time through a TR069 remote management platform to ensure that the lists are consistent with the latest network environment.
The user fails to connect the network by using the current WAN configuration information, can select the corresponding WAN interface to diagnose, re-dial or address, if the network is still not connected, the system automatically calls the fault recovery module, and detects VLAN ID or account password in the preset list in sequence.
Firstly, a first VLAN ID is taken from a VLAN list of a corresponding storage node to create a virtual network interface, a process is started to detect and diagnose, for PPPoE mode, if a diagnosis result returned by the pppd process is Timeout, which indicates that the VLAN line is not connected or a PPPoE server is not available, the next VLAN ID in the list is selected to continue detection, if the result is not Timeout, the diagnosis result returned by the pppd process is judged under the condition that dialing is failed or successful but PING gateway is failed, if parameter negotiation is failed, the current authentication type is automatically modified, and if PAP is changed into CHAP to be redialed; if the user authentication fails, the system automatically and sequentially reads account information from the account password list of the corresponding storage node, replaces the current user name and password to dial again until the detection is successful, and stores the current available configuration information into the storage file system.
For IPoE mode, if the diagnosis result returned by the udhcpc process is "failure in sending DHCP message", which indicates that the VLAN line is not passed or there is no DHCP server, the next VLAN ID in the list is selected to continue to be detected until the addressing is successful and the PING gateway is enabled, and the current available configuration information is stored in the storage file system.
When a fault occurs, if a user selects a 'device restart and restore' button, the system automatically restarts and invokes the fault restore module to perform VLAN detection and diagnosis restoration on each WAN respectively, and the selection can eliminate some problems caused by non-configuration, so that the possibility of network fault restoration is higher.
While the preferred embodiments of the present patent have been described in detail, the present patent is not limited to the above embodiments, and various changes may be made without departing from the spirit of the present patent within the knowledge of one of ordinary skill in the art.

Claims (2)

1. The system is characterized in that a system framework consists of a PPPoE diagnosis module, an IPoE diagnosis module and a fault recovery module;
PPPoE diagnostic module: if the designated diagnosis WAN is in a PPPoE dialing mode, firstly judging whether the current connection mode is a routing mode or a bridging mode; the routing mode directly calls the current configuration information to enable the pppd process to dial, the dialing is successful, the PING application program is called to detect the network of the gateway or other appointed IP, and if the PING fails or the dialing fails, the fault recovery module is started to attempt repairing; if the current connection mode is a bridge mode, converting the bridge mode into a route mode to start pppd process dialing, and recovering to the bridge mode after diagnosis is finished;
IPoE diagnostic module: if the designated diagnosis WAN is in IPoE mode, firstly judging whether the current connection mode is a route mode or a bridge mode; the routing mode directly calls the current configuration information to enable the udhcpc process addressing, calls the PING application program to detect the network of the gateway or other appointed IP after the IP is taken, and enables the fault recovery module to attempt repairing if the PING fails or the addressing fails; if the current connection is a bridge mode, converting the bridge mode into a routing mode to enable the udhcpc process addressing, and recovering the bridge mode after diagnosis is finished;
and (3) a fault recovery module: adopting VLAN detection and account detection modes, and automatically calling preset information in a configuration file system to detect, diagnose and recover when a network fails without depending on operators;
the fault recovery module respectively configures and stores a group of storage nodes for information detection of fault recovery to a configuration file system according to network environments for different service types, wherein the storage nodes comprise three parameters: WAN service names, VLAN lists and account number and password lists, wherein each list can be updated and maintained in real time through a TR069 remote management platform, so that the consistency with the latest network environment is ensured;
the operation flow of the fault recovery module is as follows:
firstly, a first VLAN ID is taken from a VLAN list of a corresponding storage node to create a virtual network interface, and a process is started to detect and diagnose the VLAN;
for PPPoE mode, if the diagnosis result returned by pppd process is Timeout, it shows that this VLAN line is not passed or there is no PPPoE server, then selecting next VLANID in list to continue detection, if the result is not Timeout, judging the diagnosis result returned by pppd process if dialing is failed or dialing is successful but PING gateway is failed, if parameter negotiation is failed, automatically modifying current authentication type, including changing PAP into CHAP to redial; if the user authentication fails, the system automatically and sequentially reads account information from an account password list of a corresponding storage node, replaces the current user name and password to dial again until the detection is successful, and stores the current available configuration information into a storage file system;
for IPoE mode, if the diagnosis result returned by the udhcpc process is "failure in sending DHCP message", which indicates that the VLAN line is not passed or there is no DHCP server, the next VLAN ID in the list is selected to continue to be detected until the addressing is successful and the PING gateway is enabled, and the current available configuration information is stored in the storage file system.
2. The system for automatically diagnosing and recovering from a home gateway failure according to claim 1, wherein the process is as follows:
when a network fault occurs in a client, a client internet surfing page including a mobile phone, a computer and a tablet computer automatically redirects and jumps to a diagnosis page, a user can select a 'equipment restarting and recovering' button, and a gateway automatically restarts and invokes a fault recovering module to recover; the WAN interface with faults can be selected for diagnosis without restarting;
the system firstly judges whether the linking mode of the WAN interface is PPPoE or IPoE according to the diagnosis request of the user for the appointed WAN interface, executes corresponding diagnosis, and if dialing or obtaining IP fails according to the current configuration information or obtaining IP but PING gateway fails, the system automatically starts a fault recovery module and carries out network repair according to the pre-configuration information stored in the configuration file of the gateway system.
CN202110916839.XA 2021-08-11 2021-08-11 System design and implementation for automatic diagnosis and recovery of home gateway faults Active CN113608928B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110916839.XA CN113608928B (en) 2021-08-11 2021-08-11 System design and implementation for automatic diagnosis and recovery of home gateway faults

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110916839.XA CN113608928B (en) 2021-08-11 2021-08-11 System design and implementation for automatic diagnosis and recovery of home gateway faults

Publications (2)

Publication Number Publication Date
CN113608928A CN113608928A (en) 2021-11-05
CN113608928B true CN113608928B (en) 2024-01-19

Family

ID=78308116

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110916839.XA Active CN113608928B (en) 2021-08-11 2021-08-11 System design and implementation for automatic diagnosis and recovery of home gateway faults

Country Status (1)

Country Link
CN (1) CN113608928B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001086443A1 (en) * 2000-05-05 2001-11-15 Aprisma Management Technologies, Inc. Systems and methods for managing and analysing faults in computer networks
CN103812728A (en) * 2014-02-13 2014-05-21 普联技术有限公司 Network diagnostic method, system and router
CN108429629A (en) * 2017-02-14 2018-08-21 腾讯科技(深圳)有限公司 Equipment fault restoration methods and device
CN112968799A (en) * 2021-02-05 2021-06-15 北京直真科技股份有限公司 Smart home service-oriented home WIFI network access slow fault diagnosis method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001086443A1 (en) * 2000-05-05 2001-11-15 Aprisma Management Technologies, Inc. Systems and methods for managing and analysing faults in computer networks
CN103812728A (en) * 2014-02-13 2014-05-21 普联技术有限公司 Network diagnostic method, system and router
CN108429629A (en) * 2017-02-14 2018-08-21 腾讯科技(深圳)有限公司 Equipment fault restoration methods and device
CN112968799A (en) * 2021-02-05 2021-06-15 北京直真科技股份有限公司 Smart home service-oriented home WIFI network access slow fault diagnosis method

Also Published As

Publication number Publication date
CN113608928A (en) 2021-11-05

Similar Documents

Publication Publication Date Title
US7305466B1 (en) Network fault isolation
JP2005006121A (en) Ip-pbx backup device, ip-pbx backup system, and method for countermeasure against fault of system
CN101610188A (en) Sip server restoring method of service process fault and sip server
CN105704789A (en) Method and device for restoring network connection
CN110895469A (en) Method and device for upgrading dual-computer hot standby system, electronic equipment and storage medium
CA2637430A1 (en) Interface apparatus, main apparatus and control method for use in the interface apparatus
CN113608928B (en) System design and implementation for automatic diagnosis and recovery of home gateway faults
CN112804721A (en) Automatic link switching method for dual-frequency router and dual-frequency router
JP2006050137A (en) Method and program for diagnosing network connection, and its storage medium
JP2007529806A (en) Fault management in a management system using Ethernet
US20110149744A1 (en) Method and apparatus for directing the installation of voip devices
CN100366118C (en) Method for maintaining and restoring link inspection
Cisco Cisco DPA 7630/7610 Voice Mail Gateway Version 1.3(1) Release Notes
JP2004134878A (en) Communication system, main apparatus function backup method, maintenance management center, and user system
Cisco Release Notes for Cisco 750 Series and Cisco 760 Series Routers Software Release 3.2(4)
Cisco Release Notes for Cisco 750 Series and Cisco 760 Series Routers Software Release 3.2(4)
Cisco Release Notes for Cisco 760 Series Routers Software Release 3.2(5)
Cisco Release Notes for Cisco 750 Series and Cisco 760 Series Routers Software Release 3.2(4)
Cisco Release Notes for Cisco 750 Series and Cisco 760 Series Routers Software Release 3.2(4)
Cisco Release Notes for Cisco 750 Series and Cisco 760 Series Routers Software Release 3.2(4)
Cisco Release Notes for Cisco 750 Series and Cisco 760 Series Routers Software Release 3.2(4)
Cisco Release Notes for Cisco 750 and 760 Series Software Rel 3.2(4)
Cisco Release Notes for Cisco 760 Series Routers Software Rel 3.2(5)
Cisco Cisco DPA 7630/7610 Voice Mail Gateway Version 1.2(1) Release Notes
Cisco Release Notes for Cisco 750 Series and Cisco 760 Series Routers Software Release 3.2(2)

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