CN106899456A - A kind of link detecting and the implementation method repaired - Google Patents

A kind of link detecting and the implementation method repaired Download PDF

Info

Publication number
CN106899456A
CN106899456A CN201710151363.9A CN201710151363A CN106899456A CN 106899456 A CN106899456 A CN 106899456A CN 201710151363 A CN201710151363 A CN 201710151363A CN 106899456 A CN106899456 A CN 106899456A
Authority
CN
China
Prior art keywords
client
address
response
address server
receive
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
CN201710151363.9A
Other languages
Chinese (zh)
Other versions
CN106899456B (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.)
You Hua Telecom Technology Co Ltd Of Shenzhen
Original Assignee
You Hua Telecom Technology Co Ltd Of Shenzhen
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 You Hua Telecom Technology Co Ltd Of Shenzhen filed Critical You Hua Telecom Technology Co Ltd Of Shenzhen
Priority to CN201710151363.9A priority Critical patent/CN106899456B/en
Publication of CN106899456A publication Critical patent/CN106899456A/en
Application granted granted Critical
Publication of CN106899456B publication Critical patent/CN106899456B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5046Resolving address allocation conflicts; Testing of addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a kind of link detecting and the implementation method repaired, comprise the following steps:S1:Client obtains the IP address of address server distribution;S2:Client is established a communications link with the IP address distributed with address server, if client does not receive feedback, jumps to step S1;S3:Judge whether current IP address is occupied, step S2 is performed after new IP is distributed during occupancy;S4:Client periodically sends ARP request message, if client does not receive the response of address server, jumps to step S3;S5:After the arp reply message for receiving address server response, the IP information that client is accessed is updated according to the arp reply message for receiving.Improvement of the invention, not only allows the client in passive position to have initiative, while also allow client user's discovery as early as possible out of joint, while to process this problem, rather than wait there quietly.

Description

A kind of link detecting and the implementation method repaired
Technical field
The present invention relates to DHCP (Dynamic Host Configuration Protocol, abbreviation DHCP), the Internet protocol address of address resolution protocol (Address Resolution Protocol, abbreviation ARP) (Internet Protocol Address, abbreviation IP address) method of salary distribution;Specifically related to address server (DHCP Server) after to client (DHCP Client) distribution IP address, there is provided base between one kind detection address server and client Quick recovery method after the method for IP linkage availabilities, and failure.
Background technology
With Internet service high speed development these years, network has come into huge numbers of families, and network insertion amount is annual All growths of high speed, for this rapid growth, limited IP address is increasingly critical, the increasingly preciousness of change;So How the limited IP address of utilization of high speed, DHCP just played its great effect, limited IP address is obtained more efficient Utilize.Because the effective property of the IP address of dynamically distributes, it has certain lease time, and this lease time is by DHCP What Server was distributed, if the rental period to and if client is not re-rented, DHCP Server will be returned to it Receive, the client user of other IP address requestings is then assigned them to again.If in this rental period this period link it is abnormal or Person is because when some incorrect configurations or specific environment may result in the recovery IP that DHCP Sever shift to an earlier date, so may be used The IP address for netting interior client can be caused to fail, but visitor opens end to be found in the IP rental periods of oneself also within the normal rental period, Do not know that the IP of oneself has been failed more originally, so may result in client cannot carry out normal communication;Until When the IP rental periods expire, visitor opens end and can just initiate request of renewing a contract, but possible this time can be very long, directly influences the body of user Test and normal work.
The content of the invention
The present invention is in passive state based on the link failure existed with client when existing address server, client And cannot perceive and the problem repaired, there is provided a kind of link detecting and the implementation method repaired.
A kind of link detecting and the implementation method repaired, comprise the following steps:
S1:Client obtains the IP address of address server distribution;
S2:Client is established a communications link with the IP address distributed with address server, if client does not receive feedback, Step S1 is then jumped to, IP address is redistributed;Otherwise enter next step;
S3:Judge whether current IP address is occupied, step S2 is performed after new IP is distributed during occupancy;When vacant, perform Next step;
S4:Client periodically sends ARP request message, if client does not receive the response of address server, jumps Step S3 is gone to, next step is otherwise performed;
S5:After the arp reply message for receiving address server response, visitor is updated according to the arp reply message for receiving The IP information that family end accesses.
It is preferred that client can not receive the response of address server for continuous three times in step S2, then step S1 is jumped to.
It is preferred that when IP address takes in step S3, the DHCP Nack information with new IP address is returned to, when vacant Return to DHCP Ack information.
It is preferred that in step S4, if client can not receive the response of address server for continuous three times, jumping to step S2。
The present invention is no longer on passive status in order that obtaining client, is maintaining chain between address server and client The ageing aspect in road, allows client also to have certain real-time discovery and this abnormal ability for the treatment of, allow this abnormality when Between be spaced become very short, it is preferred that in the case that user will not discover, just recovered normal again.Similar to by address service A kind of mechanism equivalent to heartbeat being added between device and client, during with adding this heartbeat chance, service end is not interfered with again Normal work;The role of this heartbeat is served as by ARP, because ARP is a general agreement on link, just very well Take on this role.
Using improvement of the invention, the client in passive position is not only allowed to have initiative, while also allowing client User's discovery as early as possible is out of joint, while to process this problem, rather than wait there quietly.
Brief description of the drawings
Fig. 1 is running environment figure of the invention;
Fig. 2 is that address server and client user interact schematic diagram in the present invention;
Fig. 3 is operation principle flow chart one of the invention;
Fig. 4 is operation principle flowchart 2 of the invention.
Specific embodiment
Below in conjunction with the drawings and specific embodiments, invention is described in detail.
Referring to figs. 1 to Fig. 4, concrete methods of realizing of the invention is as follows:
S1, client obtain the IP address of address server distribution;
S101:In LAN, client initiates DHCP inquiries (DHCP Discover);
S102:DHCP Server receive inquiry, and response is with an inquiry response (DHCP for available IP address Offer);
S103:Whether client receives DHCP Offer, the return to step S101 if not receiving, under being performed if receiving Step.
S2, client are established a communications link with the IP address and address server distributed, if client does not receive feedback, Step S1 is then jumped to, IP address is redistributed;Otherwise enter next step;
S201:Client initiates Address requests (DHCP Request) using the IP address of distribution to DHCP Server;
Wherein, if client can not receive the response of address server for continuous three times, step S1 is jumped to.
S3, judge whether current IP address is occupied, step S2 is performed after new IP is distributed during occupancy;When vacant, perform Next step;
S301:If after DHCP Server receive DHCP Request, judging whether IP address is occupied, if occupied, The DHCP Nack information with new IP address is returned, and jumps to step S2;If vacant, DHCP Ack information is returned.
S4, client periodically send ARP request message, if client does not receive the response of address server, jump Step S3 is gone to, next step is otherwise performed;
S401:Client obtains the DHCP Nack information of feedback, represents link establishment success;Setting heart beat cycle, client End periodically sends ARP request message (ARP Request);
S402:Judge whether client receives the response of DHCP Server;
Wherein, if client can not receive the response of DHCP Server for continuous three times, step S2 is jumped to.
S5, receive address server response arp reply message after, according to receive arp reply message update visitor The IP information that family end accesses;
S501:After if DHCP Server receive ARP Request, one arp reply message of response (ARP Reply), visitor Family end updates the IP information of its access according to ARP Reply.
The above, the only present invention preferably specific embodiment, but protection scope of the present invention is not limited thereto, Any one skilled in the art in the technical scope of present disclosure, technology according to the present invention scheme and its Inventive concept is subject to equivalent or change, should all be included within the scope of the present invention.

Claims (4)

1. a kind of link detecting with repair implementation method, it is characterised in that comprise the following steps:
S1:Client obtains the IP address of address server distribution;
S2:Client is established a communications link with the IP address distributed with address server, if client does not receive feedback, is jumped Step S1 is gone to, IP address is redistributed;Otherwise enter next step;
S3:Judge whether current IP address is occupied, step S2 is performed after new IP is distributed during occupancy;When vacant, perform next Step;
S4:Client periodically sends ARP request message, if client does not receive the response of address server, jumps to Step S3, otherwise performs next step;
S5:After the arp reply message for receiving address server response, client is updated according to the arp reply message for receiving The IP information of access.
2. link detecting according to claim 1 with repair implementation method, it is characterised in that in step S2 client connect The response that can not receive address server continuous three times, then jump to step S1.
3. link detecting according to claim 1 with repair implementation method, it is characterised in that IP address is accounted in step S3 Used time, the DHCP Nack information with new IP address is returned to, DHCP Ack information is returned when vacant.
4. link detecting according to claim 1 with repair implementation method, it is characterised in that in step S4, if client The response that can not receive address server continuous three times is held, then jumps to step S2.
CN201710151363.9A 2017-03-14 2017-03-14 Method for realizing link detection and repair Active CN106899456B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710151363.9A CN106899456B (en) 2017-03-14 2017-03-14 Method for realizing link detection and repair

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710151363.9A CN106899456B (en) 2017-03-14 2017-03-14 Method for realizing link detection and repair

Publications (2)

Publication Number Publication Date
CN106899456A true CN106899456A (en) 2017-06-27
CN106899456B CN106899456B (en) 2020-03-27

Family

ID=59192284

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710151363.9A Active CN106899456B (en) 2017-03-14 2017-03-14 Method for realizing link detection and repair

Country Status (1)

Country Link
CN (1) CN106899456B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111988153A (en) * 2019-05-21 2020-11-24 广东美的制冷设备有限公司 Network exception handling method and device and household electrical appliance
CN113067742A (en) * 2020-01-02 2021-07-02 中国移动通信有限公司研究院 IPoE processing method and device and home gateway
CN117061485A (en) * 2023-10-12 2023-11-14 广东广宇科技发展有限公司 Communication line verification method for dynamic IP

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030101464A1 (en) * 2001-11-28 2003-05-29 Kye Hwan Won Method of controlling MACs between cable modem termination system and cable modem
CN101150582A (en) * 2007-10-22 2008-03-26 华为技术有限公司 Method and device for configuration information allocation
CN101355594A (en) * 2008-09-09 2009-01-28 中兴通讯股份有限公司 Method for detecting address conflict when distributing IP address
CN101640943A (en) * 2008-07-31 2010-02-03 国际商业机器公司 Method for switching network layers in wireless local area network and corresponding wireless access point equipment
CN101656763A (en) * 2009-09-11 2010-02-24 华为技术有限公司 IP address automatic distribution method, client and server
US20100077064A1 (en) * 2008-09-25 2010-03-25 Canon Kabushiki Kaisha Method for managing address spaces at an opening of a communications tunnel, corresponding tunnel end-point, and storage means
US7826453B2 (en) * 2006-09-01 2010-11-02 Hon Hai Precision Industry Co., Ltd. Set top box address detection system and method thereof
CN101951417A (en) * 2010-09-21 2011-01-19 北京星网锐捷网络技术有限公司 Method, system and trunk equipment for assigning multiple server addresses
WO2014067314A1 (en) * 2012-10-29 2014-05-08 Hangzhou H3C Technologies Co., Ltd. Address processing
CN104580548A (en) * 2014-12-24 2015-04-29 北京华胜天成科技股份有限公司 IP (Internet protocol) address conflict detecting method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030101464A1 (en) * 2001-11-28 2003-05-29 Kye Hwan Won Method of controlling MACs between cable modem termination system and cable modem
US7826453B2 (en) * 2006-09-01 2010-11-02 Hon Hai Precision Industry Co., Ltd. Set top box address detection system and method thereof
CN101150582A (en) * 2007-10-22 2008-03-26 华为技术有限公司 Method and device for configuration information allocation
CN101640943A (en) * 2008-07-31 2010-02-03 国际商业机器公司 Method for switching network layers in wireless local area network and corresponding wireless access point equipment
CN101355594A (en) * 2008-09-09 2009-01-28 中兴通讯股份有限公司 Method for detecting address conflict when distributing IP address
US20100077064A1 (en) * 2008-09-25 2010-03-25 Canon Kabushiki Kaisha Method for managing address spaces at an opening of a communications tunnel, corresponding tunnel end-point, and storage means
CN101656763A (en) * 2009-09-11 2010-02-24 华为技术有限公司 IP address automatic distribution method, client and server
CN101951417A (en) * 2010-09-21 2011-01-19 北京星网锐捷网络技术有限公司 Method, system and trunk equipment for assigning multiple server addresses
WO2014067314A1 (en) * 2012-10-29 2014-05-08 Hangzhou H3C Technologies Co., Ltd. Address processing
CN104580548A (en) * 2014-12-24 2015-04-29 北京华胜天成科技股份有限公司 IP (Internet protocol) address conflict detecting method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111988153A (en) * 2019-05-21 2020-11-24 广东美的制冷设备有限公司 Network exception handling method and device and household electrical appliance
WO2020233159A1 (en) * 2019-05-21 2020-11-26 广东美的制冷设备有限公司 Network abnormality processing method and apparatus, and household electrical appliance
CN111988153B (en) * 2019-05-21 2022-02-25 广东美的制冷设备有限公司 Network exception handling method and device and household electrical appliance
CN113067742A (en) * 2020-01-02 2021-07-02 中国移动通信有限公司研究院 IPoE processing method and device and home gateway
CN117061485A (en) * 2023-10-12 2023-11-14 广东广宇科技发展有限公司 Communication line verification method for dynamic IP
CN117061485B (en) * 2023-10-12 2024-02-09 广东广宇科技发展有限公司 Communication line verification method for dynamic IP

Also Published As

Publication number Publication date
CN106899456B (en) 2020-03-27

Similar Documents

Publication Publication Date Title
US9800457B2 (en) Network management
CN103888552B (en) Quick method, system and the terminal installation for accessing internet
JP2008028914A (en) Device and method for reducing communication load, and program
CN106899456A (en) A kind of link detecting and the implementation method repaired
CN1547828A (en) Methods, systems and computer program products for accessing an embedded web server on a broadband access terminal
US9898377B2 (en) Switch provided failover
US8224327B2 (en) Method and system for handoff of mobile node in mobile communication system supporting proxy mobile internet protocol
CN110839046B (en) Multi-protocol intercommunication method and system
CN103905574B (en) A kind of DNS Operational Visits method, DNS data synchronous method and equipment
JP2006217094A (en) Network, network terminal device, ip address management method using for the same, and program thereof
JP6896722B2 (en) Resource configuration method and equipment
CN105338128B (en) Domain name analytic method and domain name mapping device
CN1874312A (en) Wireless IP telephone system
CN1761263A (en) System and method for avoiding a network address collision
CN106210158A (en) The synchronous method of a kind of domain name mapping and equipment
CN102238245B (en) Address allocation method and equipment
CN106850747B (en) Transcoding node management system and method of distributed real-time transcoding system
CN1645794A (en) Access user management system and access user management apparatus
EP2896188A1 (en) Method of establishing a network socket with a data server
WO2003019906A2 (en) Apparatus and method of coordinating network events
CN100349433C (en) Method of distributing switchin-in address for user terminal
CN1917427A (en) Method and equipment for quick recovering environment of portal authentication
CN106210159A (en) A kind of domain name analytic method and equipment
US9591080B2 (en) Method of establishing a network socket with a data server
JP2010193015A (en) Communication apparatus and communication method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: An implementation method of link detection and repair

Effective date of registration: 20201218

Granted publication date: 20200327

Pledgee: Bank of Jiangsu Limited by Share Ltd. Shenzhen branch

Pledgor: SHENZHEN YOUHUA TECHNOLOGY Co.,Ltd.

Registration number: Y2020440020028

PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20231219

Granted publication date: 20200327

Pledgee: Bank of Jiangsu Limited by Share Ltd. Shenzhen branch

Pledgor: SHENZHEN YOUHUA TECHNOLOGY Co.,Ltd.

Registration number: Y2020440020028