CN103812728A - Network diagnostic method, system and router - Google Patents

Network diagnostic method, system and router Download PDF

Info

Publication number
CN103812728A
CN103812728A CN201410050588.1A CN201410050588A CN103812728A CN 103812728 A CN103812728 A CN 103812728A CN 201410050588 A CN201410050588 A CN 201410050588A CN 103812728 A CN103812728 A CN 103812728A
Authority
CN
China
Prior art keywords
router
network
fault
diagnostic
reason
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
CN201410050588.1A
Other languages
Chinese (zh)
Other versions
CN103812728B (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.)
TP Link Technologies Co Ltd
Original Assignee
TP Link Technologies 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 TP Link Technologies Co Ltd filed Critical TP Link Technologies Co Ltd
Priority to CN201410050588.1A priority Critical patent/CN103812728B/en
Publication of CN103812728A publication Critical patent/CN103812728A/en
Application granted granted Critical
Publication of CN103812728B publication Critical patent/CN103812728B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention is applicable to the filed of communication, and provides a network diagnostic method, a system and a router. The method comprises the steps that the router diagnoses the reason of a network linkage fault according to the parameter setting of the router and/or the state of the router, when the existing network linkage fault of the router is generated; and the router prompts the reason of the network linkage fault. According to the method, the network diagnosis can be realized even if an additional device is not needed to add in network topology, so that the cost can be reduced, convenience in use can be realized, and the user experience of the router can be promoted.

Description

A kind of network diagnosis method, system and router
Technical field
The invention belongs to the communications field, relate in particular to a kind of network diagnosis method, system and router.
Background technology
Prior art provides a kind of multi-purpose network diagnostic modules, and this network diagnostic modules can be implemented any one in multiple network diagnostic function.Network diagnostic modules receives the indication that will implement selected network diagnostic function (such as network analyser, interference unit, generator, bit error rate tester etc.).Described network diagnostic modules receives to be had for implement the instruction of described selected network diagnostic function or the bit file of data at one or more ports.The programmed logical module of described one or more ports is controlled in described network diagnostic modules identification.A part for described bit file is loaded on identified programmed logical module by described network diagnostic modules, so that described programmed logical module and described one or more port cooperate to implement described selected network diagnostic function.The plurality of network diagnostic modules can be included in common computer system chassis.
But above-mentioned multi-purpose network diagnostic modules is to add extra equipment in network topology, realizes network diagnosis by this extra equipment, therefore increase cost and disposed use inconvenient.
Summary of the invention
The object of the present invention is to provide a kind of network diagnosis method, system and router, be intended to solve prior art and realize network diagnosis by add extra equipment in network topology, therefore increased cost and disposed inconvenient problem with use.
First aspect, the invention provides a kind of network diagnosis method, and described method comprises:
In the time that the current network of router connects fault, router connects the reason of fault according to the state value diagnostic network of the parameter setting of router and/or router;
Router prompt network connects the reason of fault.
Second aspect, the invention provides a kind of network diagnostic systems, and described system is built in router, and described system comprises:
Diagnostic module, in the time that the current network of router connects fault, connects the reason of fault according to the state value diagnostic network of the parameter setting of router and/or router;
Reminding module, for pointing out network to connect the reason of fault.
The third aspect, the invention provides a kind of router that comprises above-mentioned network diagnostic systems.
In the present invention, due in the time that the current network of router connects fault, directly connected the reason of fault according to the state value diagnostic network of the parameter setting of router and/or router by router; And point out network to connect the reason of fault.Therefore need in network topology, not add extra equipment and realize network diagnosis, therefore reduce cost and easy to use, the user who promotes router experiences.
Accompanying drawing explanation
Fig. 1 is the flow chart of the network diagnosis method that provides of the embodiment of the present invention one.
Fig. 2 is the flow chart of the network diagnosis method that provides of the embodiment of the present invention two.
Fig. 3 is under the pattern of 3G, 4G, L2TP, PPTP, WISP dialing, the flow chart of S203.
Fig. 4 is under the pattern of static IP interconnection network mode, the flow chart of S203.
Fig. 5 is under the pattern of dynamic IP interconnection network mode, the flow chart of S203.
Fig. 6 is under the pattern of PPPoE dialing, the flow chart of S203.
Fig. 7 is the flow chart of the network diagnosis method that provides of the embodiment of the present invention three.
Embodiment
In order to make object of the present invention, technical scheme and beneficial effect clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
For technical solutions according to the invention are described, describe below by specific embodiment.
embodiment mono-:
Refer to Fig. 1, the network diagnosis method that the embodiment of the present invention one provides comprises the following steps:
S101, in the time that the current network of router connects fault, router connects the reason of fault according to the state value diagnostic network of the parameter setting of router and/or router;
S102, router prompt network connect the reason of fault.
In the embodiment of the present invention one, in described S101, described method can also comprise:
Obtain the corresponding fault restoration suggestion of reason of fault connected to the network;
, in described S102, described method can also comprise:
The corresponding fault restoration suggestion of reason of router prompt fault connected to the network, to help user to repair fault.
In the embodiment of the present invention one, S102 is specifically as follows:
The reason that the modes such as router employing note, mail send network connection fault is to user.
But aforesaid way is ageing not and need on router, add other modules and could realize, and has limitation.In addition, because router is the Dominator that terminal is connected into the Internet, the packet that terminal sends can be intercepted and captured on router, and therefore, in the embodiment of the present invention two, the preferred plan of S102 is:
Router is is initiatively intercepted and captured terminal and sends to DNS request and the HTTP web-page requests of the Internet;
The mode being connected with forgery TCP by forging DNS packet, the described HTTP web-page requests that user is sent is redirected to the fault prompting page of router, thereby just can receive that router connects the prompting of the reason of fault about network user during by normal mode accessed web page.
In the embodiment of the present invention one, due in the time that the current network of router connects fault, directly connected the reason of fault according to the state value diagnostic network of the parameter setting of router and/or router by router; And point out network to connect the reason of fault.Therefore need in network topology, not add extra equipment and realize network diagnosis, therefore reduce cost and easy to use, the user who promotes router experiences.
embodiment bis-:
Refer to Fig. 2, the network diagnosis method that the embodiment of the present invention two provides comprises the following steps:
S201, router are initiated interconnection network request to server;
In the embodiment of the present invention two, S201 is specially:
Router adopts 3G, 4G, PPPoE(point-to-point protocol over ethernet, point-to-point protocol on Ethernet), L2TP(Layer2Tunneling Protocol, Layer 2 Tunneling Protocol), PPTP(Point-to-Point Tunneling Protocol, Point to Point Tunnel Protocol), WISP(Wireless Internet Service Provider, wireless interconnected network operation business) the conventional interconnection network mode of router such as dialing and dynamic IP, static IP initiates interconnection network request to server.
S202, the current network connection state of router Real-Time Monitoring router, judge that whether network connects fault;
Under the pattern of 3G, 4G, PPPoE, L2TP and PPTP dialing, because being all adopts PPP dialing, therefore S202 specifically comprises the following steps:
Router checks current PPP(point-to-point protocol, point-to-point protocol) dialing status, judge that whether dialing is successful;
If not successfully dialing, judges that router network connects fault;
Whether if successfully dialing, regularly sends detection packet to current dns server, observing dns server has feedback, if without feedback, judges that router network connects fault, and wherein the content of detection packet is the IP address to current dns server request dns server.
Under the pattern of static IP pattern and dynamic IP interconnection network mode, S202 specifically comprises the following steps:
Whether the WAN mouth that checks router there is effective IP address;
If nothing, judges that router network connects fault;
If have, regularly send detection packet to current dns server, whether have feedback, if without feedback, judge that router network connects fault if observing dns server, and wherein the content of detection packet is the IP address to current dns server request dns server.
Under the pattern of WISP dialing, because reality after being connected to upper strata gateway still can select the connected mode such as static IP, PPPoE to be connected into the Internet, therefore S202 specifically can comprise the following steps:
Router checks current PPP(point-to-point protocol, point-to-point protocol) dialing status, judge that whether dialing is successful;
If not successfully dialing, judges that router network connects fault;
Whether if successfully dialing, regularly sends detection packet to current dns server, observing dns server has feedback, if without feedback, judges that router network connects fault, and wherein the content of detection packet is the IP address to current dns server request dns server.
S202 specifically also can comprise the following steps:
Whether the WAN mouth that checks router there is effective IP address;
If nothing, judges that router network connects fault;
If have, regularly send detection packet to current dns server, whether have feedback, if without feedback, judge that router network connects fault if observing dns server, and wherein the content of detection packet is the IP address to current dns server request dns server.
If S203 router network connects fault, router is worth to come by mating linearly predetermined each reason that diagnostic network connects fault;
In the embodiment of the present invention two, network connects that the reason of fault comprises that physical layer is obstructed, link layer is obstructed, IP layer is obstructed, LAN/WAN conflict, dns resolution failure, router overburden etc.
S204, router prompt network connect the reason of fault.
In the embodiment of the present invention two, S204 is specifically as follows:
The reason that the modes such as router employing note, mail send network connection fault is to user.
But aforesaid way is ageing not and need on router, add other modules and could realize, and has limitation.In addition, because router is the Dominator that terminal is connected into the Internet, the packet that terminal sends can be intercepted and captured on router, and therefore, in the embodiment of the present invention two, the preferred plan of S204 is:
Router is is initiatively intercepted and captured terminal and sends to DNS request and the HTTP web-page requests of the Internet;
The mode being connected with forgery TCP by forging DNS packet, the described HTTP web-page requests that user is sent is redirected to the fault prompting page of router, thereby just can receive that router connects the prompting of the reason of fault about network user during by normal mode accessed web page.
In the embodiment of the present invention two, in described S203, described method can also comprise:
Obtain the corresponding fault restoration suggestion of reason of fault connected to the network.
Now, in described S104, described method can also comprise:
The corresponding fault restoration suggestion of reason of router prompt fault connected to the network, to help user to repair fault.
Under the pattern of 3G, 4G, L2TP, PPTP, WISP dialing, refer to Fig. 3, S203 specifically comprises the following steps:
S1, judge whether to be subject to ARP deception, if so, carry out S2, otherwise, S3 carried out;
In the embodiment of the present invention two, judge whether to be subject to ARP deception and be specially:
The information such as frequency, number that in statistics network, the ARP packet of same IP address and different MAC Address occurs judges in network whether exist ARP to cheat.
S2, diagnostic network connect the former of fault because be subject to ARP deception;
S3, judge whether success of dialing, if so, carry out S4, otherwise, S5 carried out;
In the embodiment of the present invention two, judge whether dialing is successfully specially:
Judge that according to current PPP dialing status whether dialing is successful.
S4, judge whether LAN/WAN conflicts, if so, carry out S6, otherwise, S7 carried out;
In the embodiment of the present invention two, judge whether LAN/WAN conflicts to be specially:
The LAN/WAN information of preserving according to router judges LAN/WAN conflict.
S5, judge whether to arrange user's manual dialup, if so, carry out S17, otherwise, S18 carried out;
In the embodiment of the present invention two, judge whether to arrange user's manual dialup and be specially:
Judge according to configuration information on router whether user arranges manual dialup.
S6, diagnostic network connect the former of fault because LAN/WAN conflicts, and automatically revise the IP of LAN mouth;
S7, judge whether router resource exhausts, if so, carry out S8, otherwise, S9 carried out;
In the embodiment of the present invention two, judge whether router resource exhausts to be specially:
Judge according to the maximum number of connections of the current linking number of router and router hardware restriction whether router resource exhausts.
S8, diagnostic network connect the former of fault because router resource exhausts, and prompting arranges router QoS;
S9, judge that whether gateway is unobstructed, if so, carry out S10, otherwise, S11 carried out;
In the embodiment of the present invention two, judge whether gateway is unobstructed to be specially:
According to whether existing effective gateway IP respective items to judge that whether gateway is unobstructed in router-A RP table.
S10, judge that whether DNS is normal, if so, carry out S12, otherwise, S13 carried out;
In the embodiment of the present invention two, judge whether DNS is normally specially:
Rely on router timing to send the inquiry request to root dns server IP address to current dns server, judge whether effective response of current dns server, judge that whether DNS is normal.
S11, diagnostic network connect the former of fault because gateway is unreachable;
S12, judge whether to arrange router fire compartment wall, if so, carry out S14, otherwise, S15 carried out; In the embodiment of the present invention two, judge whether to arrange router fire compartment wall and be specially:
Preserve configuration information according to router self and judge whether to arrange router fire compartment wall.
S13, diagnostic network connect the former of fault because DNS is undesired, and temporarily substitute with 8.8.8.8;
S14, diagnostic network connect the former of fault because be provided with router fire compartment wall, and route fire compartment wall is closed in prompting;
S15, judge whether to arrange the machine fire compartment wall, if so, carry out S16;
S16, diagnostic network connect the former of fault because be provided with the machine fire compartment wall, and the machine fire compartment wall is closed in prompting;
S17, diagnostic network connect the former of fault because dialing is not set, and point out user corresponding configuration;
S18, judge whether 3G/4G card of surfing Internet is identified, if so, carry out S19, otherwise, S20 carried out;
In the embodiment of the present invention two, judge whether 3G/4G card of surfing Internet is identified to be specially:
Judge according to router interface state whether 3G/4G card of surfing Internet is identified.
S19, judge whether SIM card is inserted, if so, carry out S21, otherwise, S22 carried out;
S20, diagnostic network connect the former of fault because the equipment that 3G/4G card of surfing Internet is not supported, be not plugged or equipment damages;
S21, judge that whether dialing parameters is correct, if so, carry out S23, otherwise, S24 carried out;
S22, diagnostic network connect the former of fault because SIM card is not inserted, and SIM card is inserted in prompting;
S23, diagnostic network connect the former in not bright of fault, and prompting contact operator;
S24, diagnostic network connect the former of fault because dialing parameters is incorrect, and the redirected page of prompting, re-enter.
Under the pattern of static IP interconnection network mode, refer to Fig. 4, S203 specifically comprises the following steps:
S31, judge whether to be subject to ARP deception, if so, carry out S32, otherwise, S33 carried out;
In the embodiment of the present invention two, judge whether to be subject to ARP deception and be specially:
The information such as frequency, number that in statistics network, the ARP packet of same IP address and different MAC Address occurs judges in network whether exist ARP to cheat.
S32, diagnostic network connect the former of fault because be subject to ARP deception;
S33, judge whether WAN mouth netting twine is communicated with, and if so, carries out S34, otherwise, S35 carried out;
In the embodiment of the present invention two, judge whether WAN mouth netting twine is communicated with to be specially:
Judge according to router interface state whether WAN mouth netting twine is communicated with.
S34, judge whether LAN/WAN conflicts, if so, carry out S36, otherwise, S37 carried out;
In the embodiment of the present invention two, judge whether LAN/WAN conflicts to be specially:
The LAN/WAN information of preserving according to router judges LAN/WAN conflict.
S35, diagnostic network connect the former of fault because WAN mouth netting twine does not insert;
S36, diagnostic network connect the former of fault because LAN/WAN conflicts, and automatically revise the IP of LAN mouth;
S37, judge whether router resource exhausts, if so, carry out S38, otherwise, S39 carried out;
In the embodiment of the present invention two, judge whether router resource exhausts to be specially:
Judge according to the maximum number of connections of the current linking number of router and router hardware restriction whether router resource exhausts.
S38, diagnostic network connect the former of fault because router resource exhausts, and prompting arranges router QoS;
S39, judge that whether gateway is unobstructed, if so, carry out S40, otherwise, S41 carried out;
In the embodiment of the present invention two, judge whether gateway is unobstructed to be specially:
According to whether existing effective gateway IP respective items to judge that whether gateway is unobstructed in router-A RP table.
S40, judge that whether DNS is normal, if so, carry out S42, otherwise, S43 carried out;
In the embodiment of the present invention two, judge whether DNS is normally specially:
Rely on router timing to send the inquiry request to root dns server IP address to current dns server, judge whether effective response of current dns server, judge that whether DNS is normal.
S41, diagnostic network connect the former of fault because gateway is unreachable;
S42, judge whether to arrange router fire compartment wall, if so, carry out S44, otherwise, S45 carried out; In the embodiment of the present invention two, judge whether to arrange router fire compartment wall and be specially:
Preserve configuration information according to router self and judge whether to arrange router fire compartment wall.
S43, diagnostic network connect the former of fault because DNS is undesired, and temporarily substitute with 8.8.8.8;
S44, diagnostic network connect the former of fault because be provided with router fire compartment wall, and route fire compartment wall is closed in prompting;
S45, judge whether to arrange the machine fire compartment wall, if so, carry out S46;
S46, diagnostic network connect the former of fault because be provided with the machine fire compartment wall, and the machine fire compartment wall is closed in prompting.
Under the pattern of dynamic IP interconnection network mode, refer to Fig. 5, S203 specifically comprises the following steps:
S51, judge whether to be subject to ARP deception, if so, carry out S52, otherwise, S53 carried out;
In the embodiment of the present invention two, judge whether to be subject to ARP deception and be specially:
The information such as frequency, number that in statistics network, the ARP packet of same IP address and different MAC Address occurs judges in network whether exist ARP to cheat.
S52, diagnostic network connect the former of fault because be subject to ARP deception;
S53, judge whether WAN mouth netting twine is communicated with, and if so, carries out S54, otherwise, S55 carried out;
In the embodiment of the present invention two, judge whether WAN mouth netting twine is communicated with to be specially:
Judge according to router interface state whether WAN mouth netting twine is communicated with.
S54, judge the whether effective IP of WAN mouth, if so, carry out S56, otherwise, S57 carried out;
In the embodiment of the present invention two, judge that the whether effective IP of WAN mouth is specially:
The WAN message breath of preserving according to router judges the whether effective IP of WAN mouth.
S55, diagnostic network connect the former of fault because WAN mouth netting twine does not insert;
S56, judge whether LAN/WAN conflicts, if so, carry out S58, otherwise, S59 carried out;
In the embodiment of the present invention two, judge whether LAN/WAN conflicts to be specially:
The LAN/WAN information of preserving according to router judges LAN/WAN conflict.
S57, judge whether Dynamic Host Configuration Protocol server, if so, carried out S69, otherwise, S70 carried out;
In the embodiment of the present invention two, judge whether that Dynamic Host Configuration Protocol server is specially:
Send DHCP discover message to outer net, observe it and respond to have judged whether Dynamic Host Configuration Protocol server.
S58, diagnostic network connect the former of fault because LAN/WAN conflicts, and automatically revise the IP of LAN mouth;
S59, judge whether router resource exhausts, if so, carry out S60, otherwise, S61 carried out;
In the embodiment of the present invention two, judge whether router resource exhausts to be specially:
Judge according to the maximum number of connections of the current linking number of router and router hardware restriction whether router resource exhausts.
S60, diagnostic network connect the former of fault because router resource exhausts, and prompting arranges router QoS;
S61, judge that whether gateway is unobstructed, if so, carry out S62, otherwise, S63 carried out;
In the embodiment of the present invention two, judge whether gateway is unobstructed to be specially:
According to whether existing effective gateway IP respective items to judge that whether gateway is unobstructed in router-A RP table.
S62, judge that whether DNS is normal, if so, carry out S64, otherwise, S65 carried out;
In the embodiment of the present invention two, judge whether DNS is normally specially:
Rely on router timing to send the inquiry request to root dns server IP address to current dns server, judge whether effective response of current dns server, judge that whether DNS is normal.
S63, diagnostic network connect the former of fault because gateway is unreachable;
S64, judge whether to arrange router fire compartment wall, if so, carry out S66, otherwise, S67 carried out; In the embodiment of the present invention two, judge whether to arrange router fire compartment wall and be specially:
Preserve configuration information according to router self and judge whether to arrange router fire compartment wall.
S65, diagnostic network connect the former of fault because DNS is undesired, and temporarily substitute with 8.8.8.8;
S66, diagnostic network connect the former of fault because be provided with router fire compartment wall, and route fire compartment wall is closed in prompting;
S67, judge whether to arrange the machine fire compartment wall, if so, carry out S68;
S68, diagnostic network connect the former of fault because be provided with the machine fire compartment wall, and the machine fire compartment wall is closed in prompting;
S69, diagnostic network connect the former of fault because there is no Dynamic Host Configuration Protocol server, and prompting does not have Dynamic Host Configuration Protocol server;
S70, diagnostic network connect the former in parameter error of fault.
Under the pattern of PPPoE dialing, refer to Fig. 6, S203 specifically comprises the following steps:
S71, judge whether to be subject to ARP deception, if so, carry out S72, otherwise, S73 carried out;
In the embodiment of the present invention two, judge whether to be subject to ARP deception and be specially:
The information such as frequency, number that in statistics network, the ARP packet of same IP address and different MAC Address occurs judges in network whether exist ARP to cheat.
S72, diagnostic network connect the former of fault because be subject to ARP deception;
S73, judge whether WAN mouth netting twine is communicated with, and if so, carries out S74, otherwise, S75 carried out;
In the embodiment of the present invention two, judge whether WAN mouth netting twine is communicated with to be specially:
Judge according to router interface state whether WAN mouth netting twine is communicated with.
S74, judge whether success of dialing, if so, carry out S76, otherwise, S77 carried out;
S75, diagnostic network connect the former of fault because WAN mouth netting twine does not insert;
S76, judge whether LAN/WAN conflicts, if so, carry out S78, otherwise, S79 carried out;
In the embodiment of the present invention two, judge whether LAN/WAN conflicts to be specially:
The LAN/WAN information of preserving according to router judges LAN/WAN conflict.
S77, judge whether to carry out manually, by settings such as time dialing, if so, carry out S89, otherwise, execution S90;
S78, diagnostic network connect the former of fault because LAN/WAN conflicts, and automatically revise the IP of LAN mouth;
S79, judge whether router resource exhausts, if so, carry out S80, otherwise, S81 carried out;
In the embodiment of the present invention two, judge whether router resource exhausts to be specially:
Judge according to the maximum number of connections of the current linking number of router and router hardware restriction whether router resource exhausts.
S80, diagnostic network connect the former of fault because router resource exhausts, and prompting arranges router QoS;
S81, judge that whether gateway is unobstructed, if so, carry out S82, otherwise, S83 carried out;
In the embodiment of the present invention two, judge whether gateway is unobstructed to be specially:
According to whether existing effective gateway IP respective items to judge that whether gateway is unobstructed in router-A RP table.
S82, judge that whether DNS is normal, if so, carry out S84, otherwise, S85 carried out;
In the embodiment of the present invention two, judge whether DNS is normally specially:
Rely on router timing to send the inquiry request to root dns server IP address to current dns server, judge whether effective response of current dns server, judge that whether DNS is normal.
S83, diagnostic network connect the former of fault because gateway is unreachable;
S84, judge whether to arrange router fire compartment wall, if so, carry out S86, otherwise, S87 carried out;
In the embodiment of the present invention two, judge whether to arrange router fire compartment wall and be specially:
Preserve configuration information according to router self and judge whether to arrange router fire compartment wall.
S85, diagnostic network connect the former of fault because DNS is undesired, and temporarily substitute with 8.8.8.8;
S86, diagnostic network connect the former of fault because be provided with router fire compartment wall, and route fire compartment wall is closed in prompting;
S87, judge whether to arrange the machine fire compartment wall, if so, carry out S88;
S88, diagnostic network connect the former of fault because be provided with the machine fire compartment wall, and the machine fire compartment wall is closed in prompting;
S89, diagnostic network connect the former of fault because user does not do relevant configuration, and point out user relevant configuration;
S90, judge whether PPPOE server, if so, carried out S91, otherwise, S92 carried out;
In the embodiment of the present invention two, judge whether that PPPOE server is specially:
Whether send PADI according to the PPP during dialing LCP stage has significant response to judge whether PPPoE server.
S91, judge that whether dialing parameters is correct, if so, carry out S93, otherwise, S94 carried out;
S92, diagnostic network connect the former of fault because there is no PPPOE server, and prompting;
S93, diagnostic network connect the former in not bright of fault, and prompting contact operator;
S94, diagnostic network connect the former of fault because dialing parameters is incorrect, and the redirected page of prompting, re-enter.
In the embodiment of the present invention two, if because router network connects fault, be worth to come by mating linearly predetermined each reason that diagnostic network connects fault, and point out network to connect the reason of fault.Therefore need in network topology, not add extra equipment and realize network diagnosis, therefore reduce cost and easy to use, the user who promotes router experiences.
embodiment tri-:
Refer to Fig. 7, the network diagnosis method that the embodiment of the present invention three provides comprises the following steps:
S301, router Real-time Obtaining are diagnosed the current all state values of required router;
In the embodiment of the present invention three, diagnose the current all state values of required router as shown in the table.
Title Describe
connMode Connection mode
connType Connected mode
wanIP Current WAN mouth IP
wanGW Current WAN mouth gateway
hasARP Whether suffer that ARP attacks
hasDNSHijacking Whether suffer that DNS kidnaps
CPUUtilization CPU usage
memoryUtilization Memory usage
numOfConn Current linking number
connedRootAP Whether with upper strata physical connection
hasPPPoEServer Whether there is PPPoE server
hasDhcpServer Whether there is dhcp server
hasDNSServer Whether there is dns server
hasQoSRule Whether QoS rule is set
hasFirewall Whether firewall rule is set
PPPoEReply PPPoE response result
WiFiReply Wireless connections response result
LANWANConflict LAN/WAN conflict
Everyly in upper table in router, all can represent by a byte, therefore can represent, transmit each current state information of router by 18 bytes that use in order in table.
S302, router mate described state value in diagnostic knowledge base according to matched rule, show that current network connection state, network connect the reason that whether fault and network connect fault;
In the embodiment of the present invention three, diagnostic knowledge base can be the local diagnostic knowledge base of storing in router, can be also remote diagnosis knowledge base.Local diagnostic knowledge base can be mutual with remote diagnosis knowledge base, regularly synchronous, the storehouse of refreshing one's knowledge.
Diagnostic knowledge base is mainly made up of diagnosis matched rule and diagnostic result, wherein, diagnosis matched rule by keeper rule of thumb, environment etc. drafts, for finding corresponding diagnostic result according to each state value of current router at diagnostic knowledge base, diagnosis matched rule comprises that state value, current network connection state, network connect whether fault, network and connect the reason of fault and the corresponding relation of fault restoration suggestion, and diagnosis matched rule illustrates as shown in the table.
Figure BDA0000465793490000141
Figure BDA0000465793490000151
Diagnostic result equally by keeper rule of thumb, environment etc. drafts, this comprises again many subitems diagnostic result: whether network connection state, network connection break down, network connects failure cause, fault restoration suggestion etc., are described as follows shown in table.
Title Describe
Network connection state Whether connect into network
Whether network connects fault Whether visiting from outside is broken down
Network connects the reason of fault Access outer network failure cause
Fault restoration suggestion For reparation, Optimizing Suggestions when prior fault
S303, router prompt network connect the reason of fault.
In the embodiment of the present invention three, S303 is specifically as follows:
The reason that the modes such as router employing note, mail send network connection fault is to user.
But aforesaid way is ageing not and need on router, add other modules and could realize, and has limitation.In addition, because router is the Dominator that terminal is connected into the Internet, the packet that terminal sends can be intercepted and captured on router, and therefore, in the embodiment of the present invention three, the preferred plan of S303 is:
Router is is initiatively intercepted and captured terminal and sends to DNS request and the HTTP web-page requests of the Internet;
The mode being connected with forgery TCP by forging DNS packet, the described HTTP web-page requests that user is sent is redirected to the fault prompting page of router, thereby just can receive that router connects the prompting of the reason of fault about network user during by normal mode accessed web page.
In the embodiment of the present invention three, in described S302, described method can also comprise:
Router mates described state value in diagnostic knowledge base according to matched rule, draw the corresponding fault restoration suggestion of reason of fault connected to the network.
Now, in described S303, described method can also comprise:
The corresponding fault restoration suggestion of reason of router prompt fault connected to the network, to help user to repair fault.
In the embodiment of the present invention three, because router mates state value in diagnostic knowledge base according to matched rule, disposablely show that current network connection state, network connect whether fault and network and connect the reason of fault, and point out network to connect the reason of fault.Therefore need in network topology, not add extra equipment and realize network diagnosis, therefore reduce cost and easy to use, the user who promotes router experiences.
embodiment tetra-:
The embodiment of the present invention four provides a kind of network diagnostic systems, described system is built in router, described network diagnostic systems is the system embodiment corresponding with network diagnosis method described in the embodiment of the present invention one, two and three, only describe main system configuration herein, other detailed technical schemes please refer to the embodiment of the present invention one, two and three.
Described system comprises: diagnostic module and reminding module, wherein,
Diagnostic module, in the time that the current network of router connects fault, connects the reason of fault according to the state value diagnostic network of the parameter setting of router and/or router;
Reminding module, for pointing out network to connect the reason of fault.
In the embodiment of the present invention four, described diagnostic module can also be used for obtaining the corresponding fault restoration suggestion of reason of fault connected to the network;
Described reminding module can also be used for pointing out the corresponding fault restoration suggestion of reason of fault connected to the network.
In the embodiment of the present invention four, described reminding module specifically can comprise:
Intercept and capture module, send to DNS request and the HTTP web-page requests of the Internet for initiatively intercepting and capturing terminal;
Redirection module, for the mode being connected with forgery TCP by forging DNS packet, the described HTTP web-page requests that user is sent is redirected to the fault prompting page of router.
In the embodiment of the present invention four, described diagnostic module specifically can comprise:
Request module, for initiating interconnection network request to server;
Monitoring modular, for the current network connection state of Real-Time Monitoring router, judges that whether network connects fault;
The first matching module, if connect fault for router network, is worth to come by mating linearly predetermined each reason that diagnostic network connects fault.
Described diagnostic module specifically also can comprise:
Acquisition module, diagnoses the current all state values of required router for Real-time Obtaining;
The second matching module, for described state value is mated according to matched rule at diagnostic knowledge base, show that current network connection state, network connect the reason that whether fault and network connect fault.
Fifth embodiment of the invention provides a kind of router that comprises the network diagnostic systems that fourth embodiment of the invention provides.
One of ordinary skill in the art will appreciate that all or part of step realizing in above-described embodiment method is can carry out the hardware that instruction is relevant by program to complete, described program can be stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk, CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. a network diagnosis method, is characterized in that, described method comprises:
In the time that the current network of router connects fault, router connects the reason of fault according to the state value diagnostic network of the parameter setting of router and/or router;
Router prompt network connects the reason of fault.
2. the method for claim 1, it is characterized in that, described, in the time that the current network of router connects fault, router is according in the step of the reason of the state value diagnostic network connection fault of the parameter setting of router and/or router, and described method also comprises:
Obtain the corresponding fault restoration suggestion of reason of fault connected to the network;
Connect in the step of reason of fault at described router prompt network, described method also comprises:
The corresponding fault restoration suggestion of reason of router prompt fault connected to the network.
3. the method for claim 1, is characterized in that, the reason that described router prompt network connects fault specifically comprises:
Router is is initiatively intercepted and captured terminal and sends to DNS request and the HTTP web-page requests of the Internet;
The mode being connected with forgery TCP by forging DNS packet, the described HTTP web-page requests that user is sent is redirected to the fault prompting page of router.
4. the method as described in claims 1 to 3 any one, is characterized in that, described in the time that the current network of router connects fault, the reason that router connects fault according to the state value diagnostic network of the parameter setting of router and/or router specifically comprises:
Router is initiated interconnection network request to server;
The network connection state that router Real-Time Monitoring router is current, judges that whether network connects fault;
If router network connects fault, router is worth to come by mating linearly predetermined each reason that diagnostic network connects fault.
5. the method as described in claims 1 to 3 any one, is characterized in that, described in the time that the current network of router connects fault, the reason that router connects fault according to the state value diagnostic network of the parameter setting of router and/or router specifically comprises:
Router Real-time Obtaining is diagnosed the current all state values of required router;
Router mates described state value in diagnostic knowledge base according to matched rule, show that current network connection state, network connect the reason that whether fault and network connect fault.
6. a network diagnostic systems, is characterized in that, described system is built in router, and described system comprises:
Diagnostic module, in the time that the current network of router connects fault, connects the reason of fault according to the state value diagnostic network of the parameter setting of router and/or router;
Reminding module, for pointing out network to connect the reason of fault.
7. system as claimed in claim 6, is characterized in that, described reminding module specifically comprises:
Intercept and capture module, send to DNS request and the HTTP web-page requests of the Internet for initiatively intercepting and capturing terminal;
Redirection module, for the mode being connected with forgery TCP by forging DNS packet, the described HTTP web-page requests that user is sent is redirected to the fault prompting page of router.
8. the system as described in claim 6 or 7, is characterized in that, described diagnostic module specifically comprises:
Request module, for initiating interconnection network request to server;
Monitoring modular, for the current network connection state of Real-Time Monitoring router, judges that whether network connects fault;
The first matching module, if connect fault for router network, is worth to come by mating linearly predetermined each reason that diagnostic network connects fault.
9. the system as described in claim 6 or 7, is characterized in that, described diagnostic module specifically comprises:
Acquisition module, diagnoses the current all state values of required router for Real-time Obtaining;
The second matching module, for described state value is mated according to matched rule at diagnostic knowledge base, show that current network connection state, network connect the reason that whether fault and network connect fault.
10. one kind comprises the router of network diagnostic systems claimed in claim 6.
CN201410050588.1A 2014-02-13 2014-02-13 A kind of network diagnosis method, system and router Active CN103812728B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410050588.1A CN103812728B (en) 2014-02-13 2014-02-13 A kind of network diagnosis method, system and router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410050588.1A CN103812728B (en) 2014-02-13 2014-02-13 A kind of network diagnosis method, system and router

Publications (2)

Publication Number Publication Date
CN103812728A true CN103812728A (en) 2014-05-21
CN103812728B CN103812728B (en) 2018-06-19

Family

ID=50708967

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410050588.1A Active CN103812728B (en) 2014-02-13 2014-02-13 A kind of network diagnosis method, system and router

Country Status (1)

Country Link
CN (1) CN103812728B (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202199A (en) * 2014-09-16 2014-12-10 上海斐讯数据通信技术有限公司 Method and system for detecting interface status and processing interface fault according to interface status
CN104378238A (en) * 2014-11-25 2015-02-25 乐视致新电子科技(天津)有限公司 Method and device for obtaining network link fault information
CN104394010A (en) * 2014-10-30 2015-03-04 中移物联网有限公司 Network state detection method, router, network state display method and network state display terminal
CN104394036A (en) * 2014-12-05 2015-03-04 北京极科极客科技有限公司 Method for detecting network status
CN104503829A (en) * 2014-12-23 2015-04-08 北京极科极客科技有限公司 Method for detecting and maintaining management process
CN104539464A (en) * 2015-01-19 2015-04-22 北京极科极客科技有限公司 Node failure diagnosis method and node failure diagnosis device
CN105262622A (en) * 2015-10-27 2016-01-20 北京极科极客科技有限公司 Method and system for optimizing and diagnosing router
WO2016202046A1 (en) * 2015-06-17 2016-12-22 中兴通讯股份有限公司 Method and apparatus for repairing wireless router device
CN106488494A (en) * 2016-03-31 2017-03-08 深圳市美贝壳科技有限公司 A kind of method of monitoring network connection state
CN107018136A (en) * 2017-04-06 2017-08-04 福建中金在线信息科技有限公司 A kind of detection method and device of ARP attacks
CN107070739A (en) * 2017-02-24 2017-08-18 上海斐讯数据通信技术有限公司 A kind of router operation troubles intelligent detecting method and system
CN107231647A (en) * 2017-08-03 2017-10-03 广东欧珀移动通信有限公司 Network detecting method, network detection means and intelligent terminal
CN107241228A (en) * 2017-06-30 2017-10-10 北京小米移动软件有限公司 Determination method, device and the equipment of network failure
CN107332765A (en) * 2017-07-04 2017-11-07 百度在线网络技术(北京)有限公司 Method and apparatus for repairing router failure
CN110312245A (en) * 2019-07-26 2019-10-08 天津泰岳小漫科技有限公司 A kind of business monitoring method and device of transnational roaming terminal
CN110995542A (en) * 2019-12-16 2020-04-10 金蝶智慧科技(深圳)有限公司 Network state detection method, system and related equipment
CN111953537A (en) * 2020-07-31 2020-11-17 深圳市友华通信技术有限公司 Method and device for rapidly troubleshooting network faults
CN113608928A (en) * 2021-08-11 2021-11-05 芯河半导体科技(无锡)有限公司 System design and implementation for automatic diagnosis and recovery of home gateway fault

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004028102A1 (en) * 2002-09-19 2004-04-01 Cisco Technology, Inc Ip redundancy with improved failover notification
CN1853168A (en) * 2003-08-26 2006-10-25 菲尼萨公司 Multi-purpose network diagnostic modules
CN101188530A (en) * 2007-12-26 2008-05-28 清华大学 Method and device for IPv4 and IPv6 network failure detection and location
CN101399694A (en) * 2007-09-29 2009-04-01 上海市闵行中学 Test method according to router
CN101557393A (en) * 2008-03-26 2009-10-14 阿瓦亚公司 Simultaneous active registration in a SIP survivable network configuration
CN102158360A (en) * 2011-04-01 2011-08-17 华中科技大学 Network fault self-diagnosis method based on causal relationship positioning of time factors
CN102447634A (en) * 2011-12-29 2012-05-09 华为技术有限公司 Method, device and system for transmitting message

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004028102A1 (en) * 2002-09-19 2004-04-01 Cisco Technology, Inc Ip redundancy with improved failover notification
CN1853168A (en) * 2003-08-26 2006-10-25 菲尼萨公司 Multi-purpose network diagnostic modules
CN101399694A (en) * 2007-09-29 2009-04-01 上海市闵行中学 Test method according to router
CN101188530A (en) * 2007-12-26 2008-05-28 清华大学 Method and device for IPv4 and IPv6 network failure detection and location
CN101557393A (en) * 2008-03-26 2009-10-14 阿瓦亚公司 Simultaneous active registration in a SIP survivable network configuration
CN102158360A (en) * 2011-04-01 2011-08-17 华中科技大学 Network fault self-diagnosis method based on causal relationship positioning of time factors
CN102447634A (en) * 2011-12-29 2012-05-09 华为技术有限公司 Method, device and system for transmitting message

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202199B (en) * 2014-09-16 2018-05-25 上海斐讯数据通信技术有限公司 Detect Interface status and according to the method and system of Interface status Processing Interface failure
CN104202199A (en) * 2014-09-16 2014-12-10 上海斐讯数据通信技术有限公司 Method and system for detecting interface status and processing interface fault according to interface status
CN104394010A (en) * 2014-10-30 2015-03-04 中移物联网有限公司 Network state detection method, router, network state display method and network state display terminal
CN104378238A (en) * 2014-11-25 2015-02-25 乐视致新电子科技(天津)有限公司 Method and device for obtaining network link fault information
CN104394036A (en) * 2014-12-05 2015-03-04 北京极科极客科技有限公司 Method for detecting network status
CN104503829A (en) * 2014-12-23 2015-04-08 北京极科极客科技有限公司 Method for detecting and maintaining management process
CN104539464B (en) * 2015-01-19 2019-04-16 北京极科极客科技有限公司 Nodal fault diagnostics method and device
CN104539464A (en) * 2015-01-19 2015-04-22 北京极科极客科技有限公司 Node failure diagnosis method and node failure diagnosis device
WO2016202046A1 (en) * 2015-06-17 2016-12-22 中兴通讯股份有限公司 Method and apparatus for repairing wireless router device
CN105262622A (en) * 2015-10-27 2016-01-20 北京极科极客科技有限公司 Method and system for optimizing and diagnosing router
CN106488494A (en) * 2016-03-31 2017-03-08 深圳市美贝壳科技有限公司 A kind of method of monitoring network connection state
CN107070739A (en) * 2017-02-24 2017-08-18 上海斐讯数据通信技术有限公司 A kind of router operation troubles intelligent detecting method and system
CN107018136A (en) * 2017-04-06 2017-08-04 福建中金在线信息科技有限公司 A kind of detection method and device of ARP attacks
CN107241228A (en) * 2017-06-30 2017-10-10 北京小米移动软件有限公司 Determination method, device and the equipment of network failure
CN107332765B (en) * 2017-07-04 2021-05-07 百度在线网络技术(北京)有限公司 Method and apparatus for repairing router failures
CN107332765A (en) * 2017-07-04 2017-11-07 百度在线网络技术(北京)有限公司 Method and apparatus for repairing router failure
CN107231647A (en) * 2017-08-03 2017-10-03 广东欧珀移动通信有限公司 Network detecting method, network detection means and intelligent terminal
CN110312245A (en) * 2019-07-26 2019-10-08 天津泰岳小漫科技有限公司 A kind of business monitoring method and device of transnational roaming terminal
CN110995542A (en) * 2019-12-16 2020-04-10 金蝶智慧科技(深圳)有限公司 Network state detection method, system and related equipment
CN111953537A (en) * 2020-07-31 2020-11-17 深圳市友华通信技术有限公司 Method and device for rapidly troubleshooting network faults
CN111953537B (en) * 2020-07-31 2022-10-04 深圳市友华通信技术有限公司 Method and device for rapidly troubleshooting network faults
CN113608928A (en) * 2021-08-11 2021-11-05 芯河半导体科技(无锡)有限公司 System design and implementation for automatic diagnosis and recovery of home gateway fault
CN113608928B (en) * 2021-08-11 2024-01-19 芯河半导体科技(无锡)有限公司 System design and implementation for automatic diagnosis and recovery of home gateway faults

Also Published As

Publication number Publication date
CN103812728B (en) 2018-06-19

Similar Documents

Publication Publication Date Title
CN103812728A (en) Network diagnostic method, system and router
US9917845B2 (en) Link discovery method and apparatus
CA2723660C (en) System to configure and manage routers through wireless communication
EP2530900B1 (en) Network security parameter generation and distribution
US7978595B2 (en) Method for processing multiple active devices in stacking system and stacking member device
CN106972958A (en) Gateway device collocation method, apparatus and system
CN108055688A (en) A kind of distribution method and device for intelligent display device, terminal device
WO2016108074A1 (en) Methods and systems for communications through a slave gateway
CN109660637A (en) P2P burrows transmission method and system, electronic device and computer readable storage medium
CN103024462A (en) Method for network detection and digital terminal
CN101577645B (en) Method and device for detecting counterfeit network equipment
CN108063836A (en) Automatically configure method, laser marking system, terminal and the medium of IP address
CN106303753A (en) Play the method and device of Internet video
EP1887756A2 (en) Communication system, connection adapter for communication device, and network router
CN110830598B (en) Method and network equipment for establishing and transmitting interface address and alias in BGP (Border gateway protocol) session
CN101707535B (en) Method and device for detecting counterfeit network equipment
CN116719868A (en) Network asset identification method, device and equipment
CN106254424B (en) Web camera configuration method and device
CN105718329B (en) Terminal data restoration methods and system
CN110798381B (en) Method, device and equipment for verifying KCS channel communication stability
CN107465554B (en) Route switching method and system for wireless networking and single network application
CN109348522B (en) Networking method, device and equipment based on TR181 and readable storage medium
CN104954187A (en) Method and device for determining state of CPE (customer premise equipment)
CN101895524B (en) LINUX-based method and network equipment enabling application program to access Internet
CN105634810B (en) method and system for accessing universal plug and play device and access device

Legal Events

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