CN104683188A - Method for quickly detecting communication of IP channel of household router - Google Patents

Method for quickly detecting communication of IP channel of household router Download PDF

Info

Publication number
CN104683188A
CN104683188A CN201510125576.5A CN201510125576A CN104683188A CN 104683188 A CN104683188 A CN 104683188A CN 201510125576 A CN201510125576 A CN 201510125576A CN 104683188 A CN104683188 A CN 104683188A
Authority
CN
China
Prior art keywords
arp
dhcp
detection
address
seconds
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
CN201510125576.5A
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.)
Taicang T&W Electronics Co Ltd
Original Assignee
Taicang T&W Electronics 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 Taicang T&W Electronics Co Ltd filed Critical Taicang T&W Electronics Co Ltd
Priority to CN201510125576.5A priority Critical patent/CN104683188A/en
Publication of CN104683188A publication Critical patent/CN104683188A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method for quickly detecting communication of an IP channel of a household router. The method is characterized by comprising the following five steps: 1, acquiring IP address through a WAN port of a terminal, and starting network detecting; 2, sending ARP (Address Resolution Protocol) detection to a gateway at every 10 seconds, and continuously waiting for the next detection after successfully detecting within 5 seconds; 3, sending DHCP (Dynamic host configuration protocol) to relet an IP packet if the ARP response is not received after 5 seconds, and further determining whether a DHCP server is connected; 4, continuously returning to the ARP detection if the response is received within the specified time, and waiting for the next ARP detection; 5, clearing the IP address obtained by the terminal and starting a new DHCP process is the DHCP Request response is not received within the specified time or the DHCP Request exceeds the specified time. The method is used for detecting whether the IP channel of the household router is communicated.

Description

The method that fast detecting home router IP tunnel is communicated with
Technical field:
The present invention relates to a kind of method that fast detecting home router IP tunnel is communicated with.
Background technology:
In actual applications, the application software above the network equipment can not the smoothness of perception IP tunnel, will there will be business or management interrupt, such as VOIP software and network device management software.If do not have a kind of fast detecting IP tunnel to be communicated with the method for situation, these application software will take a long time and just can judge network failure, allow user feel software application poor performance.If can judge that IP tunnel goes wrong in time, so application software can restart network service, or reminding user is reported and maintenance in time.Normally used method is continuous connection server, judges that whether network service is normal.
In network application, application layer software can not judge network failure in time, occurs traffic failure or management interrupt.If the ceaselessly IP tunnel of detection network, will waste a lot of Internet resources again, and even cause server congestion, work abnormal.
Such as VOIP software, if do not check IP tunnel in time, it is also obstructed that user makes a call a few minutes, will give the impression of the no good cake of user.When multiple stage terminal, if connect voice server every now and then, will network congestion be caused, affect the quality of voice service.
The such as network management software, if do not check that network connects in time, network interruption, or topology changes, and just cannot report problem by Timeliness coverage.If detection network server always, also will cause congested.
Summary of the invention:
The object of this invention is to provide a kind of can whether connection the IP tunnel of detection network in time, and the method that the fast detecting home router IP tunnel that can reduce network load is communicated with.
Above-mentioned object is realized by following technical scheme:
The method that fast detecting home router IP tunnel is communicated with, this method comprises five steps, and first step terminal WAN port obtains IP address, starts network detection; Second step initiated ARP detection every 10 seconds to gateway, detects and successfully continue to wait for detection next time in 5 seconds; 3rd step 5 seconds does not obtain arp response later, just initiates DHCP and re-rents IP bag, judge whether Dynamic Host Configuration Protocol server is connected further; 4th step at the appointed time in receive response, continue to return the process of ARP detection, wait for ARP detection next time; 5th step at the appointed time in do not receive the response of DHCP Request, or DHCP Request exceedes predetermined number of times, removes the IP address that terminal obtains, restarts dhcp process.
The method that described fast detecting home router IP tunnel is communicated with, the 3rd described step is that transmission 3 DHCP Request re-rent IP bag.
The method that described fast detecting home router IP tunnel is communicated with, the DHCP request of the 5th described step exceedes predetermined number of times, restarts dhcp process, and the IP address of network reconfigures, the server resets of application layer software.
Whether the method that described fast detecting home router IP tunnel is communicated with, first use ARP detecting terminal to connect to the IP tunnel of gateway, secondly detect on failed basis at ARP, send DHCP request bag and regain IP address; Both obstructed basis judging, terminal disconnects to the IP tunnel of server; Go wrong the network ip address information that upgrades in time, and application layer software reports an error in time.
Beneficial effect:
1. the present invention adopts a kind of method of compromise to judge the situation of IP tunnel, and restarts network service, re-establishes network and connects.
2. client of the present invention is all concentrate on local local area network (LAN) or Intranet, and backbone network is generally unobstructed, so only need to judge that terminal is just passable to the connectedness of gateway, succinct, quick.
3. terminal equipment of the present invention only needs to initiate once to detect the ARP of gateway every 10 seconds, just can judge whether terminal is connected to gateway.
4., for major applications software, within 10 seconds, can detect that network failure just can meet the needs of user.The ARP request that terminal equipment of the present invention sends did not meet with a response in 5 seconds, and the DHCP request with regard to sending broadcast re-rents IP bag.
5. the present invention detects connectedness between terminal and gateway, and network distance is short, and in 5 seconds, not response, just can start DHCP request, judge whether network breaks down further.
6. the present invention is by the connectedness of 2 kinds of mode detection networks, guarantees to report network by mistake.
Accompanying drawing illustrates:
Accompanying drawing 1 is flow chart of the present invention.
Embodiment:
Embodiment 1:
The method that fast detecting home router IP tunnel is communicated with, this method comprises five steps, and first step terminal WAN port obtains IP address, starts network detection; Second step initiated ARP detection every 10 seconds to gateway, detects and successfully continue to wait for detection next time in 5 seconds; 3rd step 5 seconds does not obtain arp response later, just initiates DHCP and re-rents IP bag, judge whether Dynamic Host Configuration Protocol server is connected further; 4th step at the appointed time interior (3 DHCP Request wrap) receives response, continues the process returning ARP detection, waits for ARP detection next time; 5th step at the appointed time in do not receive the response of DHCP Request, or DHCP Request exceedes predetermined number of times, removes the IP address that terminal obtains, restarts dhcp process.
Embodiment 2:
The method that fast detecting home router IP tunnel described in embodiment 1 is communicated with, the 3rd described step is that transmission 3 DHCP Request re-rent IP bag.
Embodiment 3:
The method that fast detecting home router IP tunnel described in embodiment 1 is communicated with, the DHCP request of the 5th described step exceedes predetermined number of times, restarts dhcp process, and the IP address of network reconfigures, the server resets of application layer software.
Embodiment 4:
Whether the method that the fast detecting home router IP tunnel described in embodiment 1 is communicated with, first use ARP detecting terminal to connect to the IP tunnel of gateway, secondly detect on failed basis at ARP, send DHCP request bag and regain IP address; Both obstructed basis judging, terminal disconnects to the IP tunnel of server; Go wrong the network ip address information that upgrades in time, and application layer software reports an error in time.
Embodiment 5:
The method that fast detecting home router IP tunnel described in above-described embodiment is communicated with, first the WAN port of terminal obtains IP address, and starts network detection; Use DHCP again to refresh the mechanism of IP address, WAN port must be dynamic DHCP pattern; Terminal obtains IP address just can start application layer software later, starts the detection of IP tunnel.
Then every 10 seconds, ARP detection is initiated to gateway; ARP message is a broadcast packet, and the IP address of request is gateway; Just sent an ARP request bag every 1 second, receive response, represent that IP tunnel is logical; Do not receive response, send 5 times at most; Detect and successfully just continue to wait for detection next time; The stand-by period of arp response is 5 seconds.
Within next step 5 seconds, do not obtain arp response later, initiate DHCP and re-rent IP bag, judge whether Dynamic Host Configuration Protocol server is connected further; Send 3 DHCP Request and re-rent IP bag; The time interval that 3 DHCP re-rent IP bag is 2 seconds, 2 seconds, 4 seconds.
Next step at the appointed time interior (3 DHCP Request wrap), receives response again, continues the process returning ARP detection, waits for ARP detection next time; This situation represents that terminal does not have ping to lead to gateway, and network still can use, and IP tunnel is logical.
Last at the appointed time in do not receive the response of DHCP Request, or DHCP Request exceedes predetermined number of times, removes the IP address that terminal obtains, restarts dhcp process; Because WAN port does not have IP address, application layer software reporting errors.Can affirm that the IP tunnel that application layer software uses disconnects this time, need again to build.
Internet protocol IP (Internet Protocol), ARP (Address Resolution Protocol), wide area network WAN (Wide Area Network), dynamic host configuration protocol DHCP (Dynamic Host Configure Protocol), DynamicHost configuring request DHCP Request (Dynamic Host Configure Protocol Request), the voice VOIP (Voice over Internet Protocol) on the Internet.

Claims (4)

1. a method for fast detecting home router IP tunnel connection, is characterized in that: this method comprises five steps, and first step terminal WAN port obtains IP address, starts network detection; Second step initiated ARP detection every 10 seconds to gateway, detects and successfully continue to wait for detection next time in 5 seconds; 3rd step 5 seconds does not obtain arp response later, just initiates DHCP and re-rents IP bag, judge whether Dynamic Host Configuration Protocol server is connected further; 4th step at the appointed time in receive response, continue to return the process of ARP detection, wait for ARP detection next time; 5th step at the appointed time in do not receive the response of DHCP Request, or DHCP Request exceedes predetermined number of times, removes the IP address that terminal obtains, restarts dhcp process.
2. the method for fast detecting home router IP tunnel connection according to claim 1, is characterized in that: the 3rd described step is that transmission 3 DHCP Request re-rent IP bag.
3. the method for fast detecting home router IP tunnel connection according to claim 1, it is characterized in that: the DHCP request of the 5th described step exceedes predetermined number of times, restart dhcp process, the IP address of network reconfigures, the server resets of application layer software.
4. the method for fast detecting home router IP tunnel connection according to claim 1, it is characterized in that: first use ARP detecting terminal whether to connect to the IP tunnel of gateway, secondly detect on failed basis at ARP, send DHCP request bag and regain IP address; Both obstructed basis judging, terminal disconnects to the IP tunnel of server; Go wrong the network ip address information that upgrades in time, and application layer software reports an error in time.
CN201510125576.5A 2015-03-23 2015-03-23 Method for quickly detecting communication of IP channel of household router Pending CN104683188A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510125576.5A CN104683188A (en) 2015-03-23 2015-03-23 Method for quickly detecting communication of IP channel of household router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510125576.5A CN104683188A (en) 2015-03-23 2015-03-23 Method for quickly detecting communication of IP channel of household router

Publications (1)

Publication Number Publication Date
CN104683188A true CN104683188A (en) 2015-06-03

Family

ID=53317813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510125576.5A Pending CN104683188A (en) 2015-03-23 2015-03-23 Method for quickly detecting communication of IP channel of household router

Country Status (1)

Country Link
CN (1) CN104683188A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107332941A (en) * 2017-06-13 2017-11-07 青岛海信宽带多媒体技术有限公司 A kind of method, device and pattern of fusion gateway for configuring IP address, obtaining IP address
CN108259271A (en) * 2018-02-01 2018-07-06 天津天地伟业信息系统集成有限公司 A kind of method for detecting link state after more network card bindings by ARP
CN108540343A (en) * 2018-03-27 2018-09-14 新华三技术有限公司 The detection method and device in path
CN108847999A (en) * 2018-04-24 2018-11-20 普联技术有限公司 Device network method for detecting connectivity, device, terminal device and storage medium
CN110086685A (en) * 2019-06-13 2019-08-02 深圳市友华通信技术有限公司 Network recovery method based on the network terminal
CN110311995A (en) * 2019-08-05 2019-10-08 深圳创维数字技术有限公司 Distribution method, device and the computer readable storage medium of IP address
CN110311994A (en) * 2019-08-05 2019-10-08 深圳创维数字技术有限公司 The distribution request method, apparatus and readable storage medium storing program for executing of IP address
CN111770194A (en) * 2020-07-13 2020-10-13 太仓市同维电子有限公司 Method for actively triggering lower-hanging equipment to send arp
KR102223748B1 (en) * 2019-11-28 2021-03-05 (주)제이코어 Voice over Internet Protocol Phone supporting Ethernet tethering and Internet service method using the same
CN114244704A (en) * 2021-12-31 2022-03-25 四川天邑康和通信股份有限公司 Router LANWAN self-adaptation method and system
CN114640582A (en) * 2022-02-23 2022-06-17 深圳市九洲电器有限公司 Intelligent network connection method, system, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127681A (en) * 2007-09-05 2008-02-20 杭州华三通信技术有限公司 Method and device for binding server MAC address with uplink port
CN101453447A (en) * 2007-12-03 2009-06-10 华为技术有限公司 Customer aging method for dynamic host configuration protocol DHCP and access equipment
CN101640943A (en) * 2008-07-31 2010-02-03 国际商业机器公司 Method for switching network layers in wireless local area network and corresponding wireless access point equipment
CN103024226A (en) * 2012-12-10 2013-04-03 深圳市共进电子股份有限公司 Data communication method and communication terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127681A (en) * 2007-09-05 2008-02-20 杭州华三通信技术有限公司 Method and device for binding server MAC address with uplink port
CN101453447A (en) * 2007-12-03 2009-06-10 华为技术有限公司 Customer aging method for dynamic host configuration protocol DHCP and access equipment
CN101640943A (en) * 2008-07-31 2010-02-03 国际商业机器公司 Method for switching network layers in wireless local area network and corresponding wireless access point equipment
US20100118831A1 (en) * 2008-07-31 2010-05-13 International Business Machines Corporation Method For Network Layer Handoff Over a Wireless LAN and an Associated Access Point Device
CN103024226A (en) * 2012-12-10 2013-04-03 深圳市共进电子股份有限公司 Data communication method and communication terminal

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107332941A (en) * 2017-06-13 2017-11-07 青岛海信宽带多媒体技术有限公司 A kind of method, device and pattern of fusion gateway for configuring IP address, obtaining IP address
CN108259271A (en) * 2018-02-01 2018-07-06 天津天地伟业信息系统集成有限公司 A kind of method for detecting link state after more network card bindings by ARP
CN108540343A (en) * 2018-03-27 2018-09-14 新华三技术有限公司 The detection method and device in path
CN108847999A (en) * 2018-04-24 2018-11-20 普联技术有限公司 Device network method for detecting connectivity, device, terminal device and storage medium
CN110086685A (en) * 2019-06-13 2019-08-02 深圳市友华通信技术有限公司 Network recovery method based on the network terminal
CN110311995B (en) * 2019-08-05 2022-04-08 深圳创维数字技术有限公司 IP address allocation method, device and computer readable storage medium
CN110311995A (en) * 2019-08-05 2019-10-08 深圳创维数字技术有限公司 Distribution method, device and the computer readable storage medium of IP address
CN110311994A (en) * 2019-08-05 2019-10-08 深圳创维数字技术有限公司 The distribution request method, apparatus and readable storage medium storing program for executing of IP address
CN110311994B (en) * 2019-08-05 2022-04-29 深圳创维数字技术有限公司 IP address allocation request method, device and readable storage medium
KR102223748B1 (en) * 2019-11-28 2021-03-05 (주)제이코어 Voice over Internet Protocol Phone supporting Ethernet tethering and Internet service method using the same
CN111770194A (en) * 2020-07-13 2020-10-13 太仓市同维电子有限公司 Method for actively triggering lower-hanging equipment to send arp
CN111770194B (en) * 2020-07-13 2024-04-26 太仓市同维电子有限公司 Method for actively triggering down-hanging equipment to send arp
CN114244704A (en) * 2021-12-31 2022-03-25 四川天邑康和通信股份有限公司 Router LANWAN self-adaptation method and system
CN114244704B (en) * 2021-12-31 2023-06-20 四川天邑康和通信股份有限公司 Router LANWAN self-adaption method and system
CN114640582A (en) * 2022-02-23 2022-06-17 深圳市九洲电器有限公司 Intelligent network connection method, system, device and storage medium
CN114640582B (en) * 2022-02-23 2023-10-31 深圳市九洲电器有限公司 Intelligent network connection method, system, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104683188A (en) Method for quickly detecting communication of IP channel of household router
EP1914939B1 (en) A method for the triggering failure detection of bidirectional forwarding detection
US9344325B2 (en) System, method and apparatus providing MVPN fast failover
EP2725742B1 (en) Method and device for processing location information about fault point
CN101110848B (en) Method for detecting channel trouble
WO2015180292A1 (en) Method and apparatus for detecting user network interface connectivity of virtual private network
CN101304346B (en) Method and apparatus for monitoring link
WO2007073649A1 (en) A method and system for obtaining path maximum transfer unit in network
CN104283711B (en) Fault detection method, node and system based on two-way converting detection BFD
CN102177681A (en) Fault detection method and system
EP2553870B1 (en) An operations, administrations and management proxy and a method for handling operations, administrations and management messages
EP2698948A1 (en) Method and device for determining failure elimination based on oam protocol
CN107517117B (en) IP layer OAM (operation administration and maintenance) alarm method and device and network node
CN101674669A (en) Method, service node equipment and access node equipment for keep-alive processing
CN100438452C (en) Method and equipment for detecting signalling or media path fault in next generation method
CN106850281B (en) Network equipment management method
US7746949B2 (en) Communications apparatus, system and method of creating a sub-channel
WO2015024523A1 (en) Ip bearer network failure determining method and system
CN101888319A (en) Method and device for acquiring network access information of terminal equipment
TWI394402B (en) Network detecting device and method of network quality detecting thereof
WO2014090194A1 (en) Dialing method of terminal device, and access device
WO2007025426A1 (en) A method for detecting the ipv6 network application layer protocol
CN103684887B (en) A kind of method and apparatus connecting the generation of error detection group network system hardware table item
CN109039728B (en) BFD-based flow congestion detection method and system
CN101340320B (en) Link detection method, apparatus and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150603

WD01 Invention patent application deemed withdrawn after publication