CN102904972B - Local area network DHCP (Dynamic host configuration protocol) address fault seamless switching method and implementation system thereof - Google Patents
Local area network DHCP (Dynamic host configuration protocol) address fault seamless switching method and implementation system thereof Download PDFInfo
- Publication number
- CN102904972B CN102904972B CN201110212000.4A CN201110212000A CN102904972B CN 102904972 B CN102904972 B CN 102904972B CN 201110212000 A CN201110212000 A CN 201110212000A CN 102904972 B CN102904972 B CN 102904972B
- Authority
- CN
- China
- Prior art keywords
- network
- dhcp
- address
- dynamic host
- host configuration
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 22
- 238000012544 monitoring process Methods 0.000 claims abstract description 13
- 238000001514 detection method Methods 0.000 claims description 10
- 238000012545 processing Methods 0.000 claims description 8
- 230000004044 response Effects 0.000 claims description 6
- 238000004148 unit process Methods 0.000 claims description 3
- 230000006855 networking Effects 0.000 abstract description 2
- 230000007246 mechanism Effects 0.000 description 4
- 238000012360 testing method Methods 0.000 description 2
- 230000004888 barrier function Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 239000000686 essence Substances 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000011897 real-time detection Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Landscapes
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a local area network DHCP (Dynamic host configuration protocol) address fault seamless switching method and an implementation system of the method. The method comprises the steps of: monitoring the network state through a DHCP network terminal; releasing an IP (Internal Protocol) address of the current network terminal once a network fault occurs; and acquiring the IP address distributing modes of other DHCP servers in the network, so that the network terminal can be automatically switched to the IP addresses provided by other DHCP servers once the local area network DHCP address is subjected to a fault. By adopting of the method provided by the invention, the seamless switching under a DHCP address fault in the local area network can be achieved, and the stability of the DHCP network terminal in networking can be ensured.
Description
Technical field
The present invention relates to networking technology area, more particularly to a kind of seamless changing method of LAN dhcp address failure and
Which realizes system.
Background technology
The network egress of network Development to today, family or office space is more and more, may connect in same LAN
It is several with DHCP(Dynamic Host Configuration Protocol, DynamicHost arrange agreement)The network of service
Outlet, such as router.After a network terminal gets IP address, before lease does not expire, the network terminal exists
In short time be will not the distribution of active obtaining other Dynamic Host Configuration Protocol server IP address.
Above-mentioned this protocol mode, when network service is broken down, i.e., LAN dhcp address failure when, the network terminal
Cannot automatically switch on other Dynamic Host Configuration Protocol server, to user using making troubles.
The content of the invention
For this purpose, the technical problem to be solved is:There is provided a kind of LAN dhcp address failure seamless switching
Method and its realize system so that when LAN dhcp address breaks down, the network terminal can automatically switch to other
The IP address that Dynamic Host Configuration Protocol server is provided gets on.
Then, the invention provides a kind of seamless changing method of LAN dhcp address failure, the method includes:
Step 1, the DHCP network terminals are monitored to network state, when network failure is found, discharge the network terminal
Current IP address, and record currently provides the Dynamic Host Configuration Protocol server information of IP address for which;
Step 2, Dynamic Host Configuration Protocol server in the DHCP network terminals scanning LAN, and send the request for obtaining IP address;
Step 3, the Dynamic Host Configuration Protocol server response message that the DHCP network terminals rejection has been recorded, while obtaining
The IP address of the Dynamic Host Configuration Protocol server distribution not being recorded.
Said method also includes:
Step 4, after the DHCP networks successfully get the IP address of the Dynamic Host Configuration Protocol server distribution not being recorded, empties
The configuration file of recorded Dynamic Host Configuration Protocol server distribution.
Wherein, before step 1, also include:
Step 1', opens the DHCP network terminals, scans the Dynamic Host Configuration Protocol server in network, and sends acquisition IP address
Request;
Step 2', successfully gets the IP address of Dynamic Host Configuration Protocol server distribution.
Wherein, the DHCP network terminals described in step 1 is monitored to network state, including:
Local DHCP network terminals address ip is detected, local DHCP network terminals gateway is detected, is detected local DHCP networks
Terminal D NS and any external network server of detection;
If arbitrarily external network server detection is obstructed, then it is assumed that be network failure.
Wherein, the DHCP network terminals described in step 1 is monitored to network state, including:
Monitoring socket connections, if socket connections break, then it is assumed that be network failure.
The DHCP network terminals are computer or Web TV.
Present invention also offers a kind of system for realizing the seamless switching of LAN dhcp address failure, the system is placed in
Inside the DHCP network terminals, including:
Monitoring means, for realizing that the DHCP network terminals are monitored to network state, when network failure is found, notify
Processing unit;
Processing unit, for the notice sent according to monitoring means, when network failure, discharges the network terminal current
IP address, and record currently provides the Dynamic Host Configuration Protocol server information of IP address for which;
Scanning transmitting element, after processing unit processes are complete, Dynamic Host Configuration Protocol server in the unit scan LAN, and send acquisition
The request of IP address;
Judge acquiring unit, the Dynamic Host Configuration Protocol server response message that its rejection has been recorded, while obtain not remembered
The IP address of the Dynamic Host Configuration Protocol server distribution of record.
Said system also includes:
Unit is emptied, after judging that acquiring unit successfully gets the IP address of the Dynamic Host Configuration Protocol server distribution not being recorded,
Empty the configuration file of recorded Dynamic Host Configuration Protocol server distribution.
Wherein, the DHCP network terminals are computer or Web TV.
LAN dhcp address failure of the present invention is seamless changing method and its system is realized, by DHCP networks
Terminal is arranged to network status monitoring, when network failure is found, is discharged the IP address of current network terminal, and is obtained in network
The mode of the IP address of other Dynamic Host Configuration Protocol server distribution so that when LAN dhcp address breaks down, the network terminal can
Automatically switch to the IP address of other Dynamic Host Configuration Protocol server offers up, the seamless of dhcp address failure is cut in realizing LAN
Change, ensured the network operation stability of the DHCP network terminals.
Description of the drawings
Fig. 1 is the seamless changing method network environment schematic diagram of LAN dhcp address failure described in the embodiment of the present invention;
Fig. 2 is to determine the seamless changing method schematic flow sheet of LAN dhcp address failure described in the embodiment of the present invention;
Fig. 3 is to detect network state flow chart using ping mechanism;
Fig. 4 is to realize the seamless switched system structural representation of LAN dhcp address failure described in the embodiment of the present invention.
Specific embodiment
Below, describe the present invention with reference to accompanying drawing.
As depicted in figs. 1 and 2, it is assumed that have 3 Dynamic Host Configuration Protocol server in LAN, be respectively:DHCP server As, DHCP
Server B and Dynamic Host Configuration Protocol server C.
Wherein, the MAC of Dynamic Host Configuration Protocol server A(Media Access Control, medium access control)Address is:MAC:
70-F3-95-14-2F-CF, IP are:10.1.1.1;
The MAC Address of Dynamic Host Configuration Protocol server B is:MAC:70-F3-95-28-2F-CF, IP address is:172.20.1.1;
The MAC Address of Dynamic Host Configuration Protocol server C is:70-F3-95-29-2F-CF, IP address is:192.168.1.1.
Above-mentioned 3 Dynamic Host Configuration Protocol server are connected in user's LAN, and the DHCP network terminals in the LAN are network
Television set.The Web TV refers to the television set that can be surfed the Net.
Certainly, in the present embodiment, the DHCP network terminals can be Web TV, or terminal.This enforcement
Example is illustrated by taking intelligent TV set as an example.
A kind of LAN dhcp address failure is seamless changing method, which includes:
Step S1, opening network television set;
Step S2, opens the DHCP network terminals;
Step S3, scans the Dynamic Host Configuration Protocol server in network, and sends the request for obtaining IP address;
Step S4, gets the IP address of a Dynamic Host Configuration Protocol server distribution, the IP ground that for example Dynamic Host Configuration Protocol server A distributes to which
A random entry between the 10.1.1.100-200 of location.
Step S5, DHCP network terminal operational network state-detection instruments, is monitored to network state;
Step S6, when network failure is found, discharges the current IP address of the network terminal, and record is currently provided for which
The information of the Dynamic Host Configuration Protocol server A of IP address;
For example, the information of Dynamic Host Configuration Protocol server A is:
The configuration file of Dynamic Host Configuration Protocol server A is:dhcpserver.ini.
Step S7, Dynamic Host Configuration Protocol server in the DHCP network terminals scanning LAN, and send the request for obtaining IP address;
Step S8, the response message of the Dynamic Host Configuration Protocol server A that the DHCP network terminals rejection has been recorded;
Step S9, obtains the IP address of the Dynamic Host Configuration Protocol server distribution not being recorded, such as Dynamic Host Configuration Protocol server B or DHCP clothes
Business device C is the IP address of its distribution;
Step S10, after the DHCP networks successfully get the IP address of the Dynamic Host Configuration Protocol server distribution not being recorded, empties
The configuration file of recorded Dynamic Host Configuration Protocol server distribution, such as dhcpserver.ini configuration files.
Above-mentioned steps S1 to S4, runs when can open the DHCP network terminals every time, it is also possible to open DHCP nets every time
Do not run during network terminal, only run when the first time DHCP network terminal obtains IP address.
LAN dhcp address failure is seamless changing method, its key step is to want operational network status monitoring work
Tool, when network failure is found, how the network terminal is processed.
Wherein, the DHCP network terminals operational network status monitoring instrument, that is, the DHCP network terminals are to network-like
The method that state is monitored, it is possible to use ping testing mechanisms, it is also possible to using socket protocols.
For ping testing mechanisms, as shown in figure 3, the DHCP network terminals ping detects local DHCP network terminals ground
Location IP, ping detect that local DHCP network terminals gateway, ping detect local DHCP network terminals DNS(Domain Name
System, domain name system), and ping detect any external network server, when finding that any external network server ping detection is obstructed
When, then it is assumed that it is network failure.Here, the address ip of the local DHCP network terminals of the ping detections, gateway, DNS, Yi Jiren
Unexpected network server, does not have sequential requirement, simply according to normal users it will be appreciated that order just can be with.
For socket protocols, the DHCP network terminals are set up with any external network server according to socket agreements
Socket connects, and monitors socket connections, when finding that socket connections break, then it is assumed that be network failure.
As shown in figure 4, the present embodiment additionally provides a kind of system for realizing the seamless switching of LAN dhcp address failure,
The system is placed in inside the DHCP network terminals, including:
Monitoring means 21, for realizing that the DHCP network terminals are monitored to network state, when network failure is found, lead to
Know processing unit 22;
Processing unit 22, for the notice sent according to monitoring means, when network failure, discharges the network terminal current
IP address, and record currently provide the Dynamic Host Configuration Protocol server information of IP address for which;
Scanning transmitting element 23, after processing unit processes are complete, Dynamic Host Configuration Protocol server in the unit scan LAN, and send obtain
Take the request of IP address;
Judge acquiring unit 24, its Dynamic Host Configuration Protocol server response message for being recorded of rejection, while obtain not by
The IP address of the Dynamic Host Configuration Protocol server distribution of record;
In order to reduce system loading, said system can also include:Unit 25 is emptied, when judging that acquiring unit successfully obtains
To after the IP address of the Dynamic Host Configuration Protocol server distribution not being recorded, the configuration file of recorded Dynamic Host Configuration Protocol server distribution is emptied.
Wherein, the above-mentioned DHCP network terminals are computer or Web TV.
It can be seen that, the seamless changing method of LAN dhcp address failure described in the present embodiment and its system is realized, by adopting
With a kind of network real-time detection mechanism, when network failure is found, it is possible to achieve automatic switchover DHCP servers.So that network
Terminal can continual use network, preferably ensured the network operation stability of the network terminal.
In sum, the seamless changing method of LAN dhcp address failure described in the present embodiment and its system is realized, is led to
Cross and arrange to network status monitoring in the DHCP network terminals, when network failure is found, the IP address of release current network terminal,
And obtain the mode of the IP address of other Dynamic Host Configuration Protocol server distribution in network so that when LAN dhcp address breaks down,
The network terminal can automatically switch to the IP address of other Dynamic Host Configuration Protocol server offers up, realize dhcp address event in LAN
The seamless switching of barrier, has ensured the network operation stability of the DHCP network terminals.
Presently preferred embodiments of the present invention is the foregoing is only, not to limit the present invention, all essences in the present invention
Within god and principle, any modification, equivalent substitution and improvements made etc. should be included within the scope of the present invention.
Claims (4)
1. the seamless changing method of a kind of LAN dhcp address failure, it is characterised in that include:
Step 1, opens the DHCP network terminals, scans the Dynamic Host Configuration Protocol server in network, and sends the request for obtaining IP address;
Step 2, successfully gets the IP address of Dynamic Host Configuration Protocol server distribution;
Step 3, the DHCP network terminals are monitored to network state, when network failure is found, discharge the network terminal current
IP address, and record currently provide the Dynamic Host Configuration Protocol server information of IP address for which;
Step 4, Dynamic Host Configuration Protocol server in the DHCP network terminals scanning LAN, and send the request for obtaining IP address;
Step 5, the Dynamic Host Configuration Protocol server response message that DHCP network terminals rejection has been recorded, while obtain not by
The IP address of the Dynamic Host Configuration Protocol server distribution of record;
Step 6, after the DHCP networks successfully get the IP address of the Dynamic Host Configuration Protocol server distribution not being recorded, empties and has remembered
The configuration file of the Dynamic Host Configuration Protocol server distribution of record;
The DHCP network terminals are monitored local including the local DHCP network terminals address ip of detection, detection to network state
DHCP network terminal gateways, the local DHCP network terminals DNS of detection and any external network server of detection;If arbitrarily outer net takes
Business device detection is obstructed, then it is assumed that be network failure;The DHCP network terminals are monitored to network state, including:Monitoring
Socket connects, if socket connections break, then it is assumed that be network failure.
2. method according to claim 1, it is characterised in that the DHCP network terminals are computer or Web TV
Machine.
3. a kind of system for realizing the seamless switching of LAN dhcp address failure, it is characterised in that the system is placed in DHCP nets
Network terminal inner, including:
Monitoring means, for realizing that the DHCP network terminals are monitored to network state, when network failure is found, notifier processes
Unit;
Processing unit, for the notice sent according to monitoring means, when network failure, discharges the current IP ground of the network terminal
Location, and record currently provides the Dynamic Host Configuration Protocol server information of IP address for which;
Scanning transmitting element, after processing unit processes are complete, Dynamic Host Configuration Protocol server in the unit scan LAN, and send acquisition IP ground
The request of location;
Judge acquiring unit, the Dynamic Host Configuration Protocol server response message that its rejection has been recorded, while obtaining what is be not recorded
The IP address of Dynamic Host Configuration Protocol server distribution;
Unit is emptied, after judging that acquiring unit successfully gets the IP address of the Dynamic Host Configuration Protocol server distribution not being recorded, is emptied
The configuration file of recorded Dynamic Host Configuration Protocol server distribution.
4. system according to claim 3, it is characterised in that the DHCP network terminals are computer or Web TV
Machine.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110212000.4A CN102904972B (en) | 2011-07-27 | 2011-07-27 | Local area network DHCP (Dynamic host configuration protocol) address fault seamless switching method and implementation system thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110212000.4A CN102904972B (en) | 2011-07-27 | 2011-07-27 | Local area network DHCP (Dynamic host configuration protocol) address fault seamless switching method and implementation system thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102904972A CN102904972A (en) | 2013-01-30 |
CN102904972B true CN102904972B (en) | 2017-05-03 |
Family
ID=47577007
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110212000.4A Active CN102904972B (en) | 2011-07-27 | 2011-07-27 | Local area network DHCP (Dynamic host configuration protocol) address fault seamless switching method and implementation system thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102904972B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101197811A (en) * | 2006-12-04 | 2008-06-11 | 中兴通讯股份有限公司 | Method for improving server reliability in dynamic main unit configuration protocol under proxy mode |
CN102647290A (en) * | 2011-02-17 | 2012-08-22 | 中兴通讯股份有限公司 | Method and device of network keepalive connection under dynamic address configuration |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8078721B2 (en) * | 2008-02-15 | 2011-12-13 | Cisco Technology, Inc. | Dynamic host configuration protocol (DHCP) initialization responsive to a loss of network layer connectivity |
-
2011
- 2011-07-27 CN CN201110212000.4A patent/CN102904972B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101197811A (en) * | 2006-12-04 | 2008-06-11 | 中兴通讯股份有限公司 | Method for improving server reliability in dynamic main unit configuration protocol under proxy mode |
CN102647290A (en) * | 2011-02-17 | 2012-08-22 | 中兴通讯股份有限公司 | Method and device of network keepalive connection under dynamic address configuration |
Also Published As
Publication number | Publication date |
---|---|
CN102904972A (en) | 2013-01-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110855633B (en) | DDOS attack protection method, device, system, communication equipment and storage medium | |
US7636775B2 (en) | Digital network modem with an integrated DHCP server | |
US7797568B2 (en) | Relay agent device and proxy address leasing device | |
US8543669B2 (en) | Network switch and method of preventing IP address collision | |
JP4664143B2 (en) | Packet transfer apparatus, communication network, and packet transfer method | |
US7865591B2 (en) | Facilitating DHCP diagnostics in telecommunication networks | |
US20110271345A1 (en) | Detection of rogue wireless devices from dynamic host control protocol requests | |
US20050229238A1 (en) | Method and device to determine the network environment and configure a network gateway | |
EP2169877A1 (en) | Processing method and device for qinq termination configuration | |
US8769111B2 (en) | IP network service redirector device and method | |
JP5826320B2 (en) | Network location service | |
WO2006107133A1 (en) | Ip management method and apparatus for protecting/blocking specific ip address or specific device on network | |
EP2127309A2 (en) | Method and system for restricting a node from communicating with other nodes in a broadcast domain of an ip (internet protocol) network | |
CN102904761B (en) | The method of a kind of NVR stacking and NVR | |
CN102904972B (en) | Local area network DHCP (Dynamic host configuration protocol) address fault seamless switching method and implementation system thereof | |
US7826392B2 (en) | Advertisement search agent | |
CN114584352B (en) | Method, device and system for detecting network violation external connection of multi-network interconnection | |
CN105610619B (en) | A kind of network element managing method and apparatus | |
JP2004215112A (en) | Network connection apparatus and illegal access prevention method | |
US20060185009A1 (en) | Communication apparatus and communication method | |
WO2014132774A1 (en) | Node information detection device, node information detection method, and program | |
KR20100011377A (en) | Network apparatus having port auto-configuration function and method thereof | |
KR101099083B1 (en) | Network resource management system and method | |
KR20040003977A (en) | IP collision detection/ Interseption method thereof | |
JP2006093751A (en) | Wan/lan connection automatic control apparatus, wan/lan connection method, and echo server |
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 |