CN101605152B - Local area network managing method and device thereof - Google Patents

Local area network managing method and device thereof Download PDF

Info

Publication number
CN101605152B
CN101605152B CN2008101099517A CN200810109951A CN101605152B CN 101605152 B CN101605152 B CN 101605152B CN 2008101099517 A CN2008101099517 A CN 2008101099517A CN 200810109951 A CN200810109951 A CN 200810109951A CN 101605152 B CN101605152 B CN 101605152B
Authority
CN
China
Prior art keywords
mentioned
dhcp
network terminal
address
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2008101099517A
Other languages
Chinese (zh)
Other versions
CN101605152A (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.)
Asustek Computer Inc
Original Assignee
Asustek Computer Inc
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 Asustek Computer Inc filed Critical Asustek Computer Inc
Priority to CN2008101099517A priority Critical patent/CN101605152B/en
Publication of CN101605152A publication Critical patent/CN101605152A/en
Application granted granted Critical
Publication of CN101605152B publication Critical patent/CN101605152B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a local area network managing method and a device thereof, which is suitable for a network terminal. The managing method comprises whether a detection network interface provides a dynamic host configuration protocol or not. If not providing the dynamic host configuration protocol, the network interface provides a static address for the network terminal, therefore, the network terminal can carry out interaction with other network terminals in the local area network through the static address. Furthermore, when the network interface provides the dynamic host configuration protocol, the static address of the network terminal is cancelled, so that the network operates according to the dynamic host configuration protocol in the local area network.

Description

The management method of LAN and device thereof
Technical field
The invention relates to a kind of management method and device thereof of LAN, and particularly about a kind of management method and the device thereof of static address to the network terminal that in LAN, in time provide.
Background technology
Flourish along with digital science and technology and communication network driven the new trend of digital home's life.The main feature of digital home's life is has intelligent operation interface and good communication ability.Aspect operation interface, digital home's life escape use control such as switch, keyboard or mouse interfaces in the past, adopt voice, behavior or mood etc. to instruct naturally and operate various digital household appliances.And the communication aspect makes its internal state that can accept outside order and circulate a notice of self for through digital household appliances being linked each other or being linked to the internet, and then realizes that family is saved from damage and the function of Long-distance Control.
Whether for instance, when the user goes out, can see through the internet and be connected to video camera in the family, supervising has the stranger to invade or the control apparatus switch.And digital household appliances mutual binding each other, more having exempted the user needs self-monitoring inconvenience.For example detect the stranger when invading when video camera, can notify recording apparatus record invador's image down in real time; When air conditioner is switch activated, just automatically close the doors and windows etc.And the new function and the value of these all to be communication network give digital home's lives.
As stated; The application apparatus of desiring to control in order correctly to be attached to; Be generally and adopt DHCP (dynamic host configuration protocol; DHCP) (internet protocol, IP) each item application apparatus is given in the address, uses through the internet and controls Internet Protocol to be provided.And the major function of DHCP is to let application apparatus see through Ethernet (Ethernet) broadcasting of itself, obtains relevant Internet Protocol address, net mask (netmask), preset gateway settings such as (default gateway) to the service unit that DHCP is provided.Thus, see through this service unit, the user just need not carry out the network settings of each item on each application apparatus.
Yet, above-mentioned service unit, for example: (access point AP), possibly exist or be removed at any time, even possibly exist and but be cancelled the function that DHCP is provided for Internet Protocol Wireless Router (IP sharer) or network bridge.If when among the net territory DHCP not being provided, the user must pass through the address that numerous and diverse program manually sets each item application apparatus, makes each item application apparatus can link interaction each other to set up LAN, so be considerably not have a hommization.Therefore, can control application apparatus in real time, must have a cover to distribute the mechanism of address automatically for the ease of the user.
Moreover when if net provides DHCP among the territory, the Internet Protocol address that the application apparatus among the LAN must adopt above-mentioned service unit to provide just can be connected to the internet.So it also is considerable that the mechanism of automatic distribution address is not conflicted in DHCP.
Summary of the invention
The present invention provides a kind of management method and device thereof of LAN; It can be in time and automatically distributes the static address that does not conflict with system to give the network terminal; Need numerous and diverse program of the address at manual setting network terminal to exempt the user, and it is interactive with other terminal binding among LAN to make the network terminal can see through static address.
The present invention proposes a kind of management method of LAN, is applicable to a network terminal.Whether this management method provides DHCP for the detecting network interface.When network interface has DHCP is not provided, just provides static address to the network terminal, and when network interface provides DHCP, the static address of the cancellation network terminal.
From another viewpoint, the present invention proposes a kind of management devices of LAN in addition, is suitable for a network terminal.This management devices comprises detecting unit and control unit.Whether detecting unit detecting network interface provides DHCP.When network interface does not have when DHCP is provided, control unit just provides static address to the network terminal according to predetermined dimension, and when network interface provided DHCP, control unit was just cancelled the static address of the network terminal.
Beneficial effect of the present invention does, exempts the numerous and diverse program that in the past needs the address at manual setting network terminal, and makes the network terminal to follow DHCP and operate, being connected to the internet, and can be because of not having different clashing property of address setting problems.
For let above and other objects of the present invention, feature and advantage can be more obviously understandable, hereinafter is special lifts preferred embodiment of the present invention, and cooperates appended graphicly, elaborates as follows.
Description of drawings
Figure 1A is the Organization Chart of the LAN management devices of one embodiment of the invention.
Figure 1B is the sketch map of the LAN of one embodiment of the invention.
Fig. 1 C is the sketch map of the LAN of another embodiment of the present invention.
Fig. 2 is the flow chart of the LAN management method of one embodiment of the invention.
Embodiment
Figure 1A is the Organization Chart of one embodiment of the invention LAN management devices.Please with reference to Figure 1A, management devices 110 comprises detecting unit 111, control unit 112 and Database Unit 113.In this embodiment; DHCP (dynamic host configuration protocol; Hereinafter to be referred as DHCP) be to provide by 130 of service units; This service unit 130 for example is router (router), wireless network bridge (access point) or Dynamic Host Configuration Protocol server, and network interface 120 for example is cable network card, wireless network card or infrared transceiver physical layer (physicallayer) elements such as (transceiver).
In the present embodiment, solid arrow representes that network terminal A1~A3 sees through network interface 120 and is linked to management devices 110.In Figure 1A, dotted arrow representes that service unit 130 sees through network interface 120 and is linked to management devices 110, but service unit 130 possibly exist or be removed at any time.And in other embodiment, dotted arrow also possibly represent the DHCP function of service unit 130 maybe be by forbidden energy.
Please continue with reference to Figure 1A, detect side unit 111 and can be used for detecting network interface 120 whether DHCP is provided.Control unit 112 couples detecting unit 111.Do not have when DHCP is provided when detecting unit 111 detects network interface 120, represent service unit 130 to be removed, perhaps the DHCP function is by forbidden energy.At this moment, control unit 112 can provide static address to network terminal A1~A3 according to predetermined dimension, and wherein the static address of network terminal A1~A3 is inequality each other, and does not conflict in already present network equipment (holding the back details).
When detecting unit 111 detects network interface 120 when DHCP is provided; Control unit 112 is just cancelled the static address of network terminal A1~A3; And Control Network terminal A1~A3 requires service unit 130 that Internet Protocol (internet protocol is provided; Hereinafter to be referred as IP) address gives network terminal A1~A3, to be connected to the internet.And Database Unit 113 couples control unit 112, in order to store static address.
Figure 1B is the sketch map of the LAN of one embodiment of the invention., for to be disposed in the PC 100 of Figure 1B, so be not please in order to limit scope of the present invention at this management devices 110 of supposing Figure 1A with reference to Figure 1A and Figure 1B.In other embodiment, PC 100 can also can be replaced by other electronic installation with function of surfing the Net.
Present embodiment perhaps make network terminal A1~A3 can link interaction each other in order to see through PC 100 management and Control Network terminal A1~A3, must construction comprises the communication network of PC 100 and network terminal A1~A3.Wherein, network terminal A1~A3 for example is that (personal digital assistant PDA) waits digital household appliances for video-audio playing device, aircondition, recording apparatus or personal digital assistant.
When detecting unit 111 detects network interface 120 when DHCP is provided at the beginning; That is there is and normally provides the function of DHCP in service unit 130, and management devices 110 can be transferred to service unit 130 with control provides the IP address to PC A1 and network terminal A1~A3.At this moment, management devices 110 not start on this network interface 120.If service unit 130 sees through wired or wireless transmission medium and be linked to network interface 120; But suddenly shutdown or forbidden energy provide the function of DHCP; Adopt in the past mode then the user be necessary for PC 100 and network terminal A1~A3 manually sets the address; It can be linked each other and interaction with the construction LAN, and this numerous and diverse setting program often cause user's puzzlement.
Whether the detecting unit 111 of present embodiment is whenever just detected network interface 120 at a distance from a Preset Time provides DHCP.If detecting unit 111 detects network interface 120 and does not have when DHCP is provided; That is service unit 130 be removed or forbidden energy its function of DHCP is provided; Then control unit 112 just provides static address to PC 100 and network terminal A1~A3 according to predetermined dimension, and wherein PC 100 also is regarded as a network terminal.
It should be noted that; Above-mentioned static address must not conflict in system and already present network equipment, and for instance, PC 100 possibly have two network cards; The communication network of one of which network card connected network terminal A1~A3, and another network card is linked to other communication network.The static address that control unit 112 is provided must not conflict in already present network equipment, to avoid influencing the running of other communication network.
Therefore, do not have when DHCP is provided when detecting unit 111 detects network interface 120, detecting unit 111 further detect PC 100 and network terminal A1~A3 the Request Packet that sends respectively whether meet predetermined dimension.Is the example explanation at this with network terminal A3.The Request Packet of supposing network terminal A3 meets predetermined dimension, the unduplicated static address that then control unit 112 calculates and supervising the network terminal A3 can link with system, and send the response packets that comprises static address and give network terminal A3.If the Request Packet of network terminal A3 does not meet predetermined dimension, represent that then network terminal A3 does not belong to the LAN of 110 management and control of management devices, so management devices 110 can be ignored this Request Packet.By this, not only can therefrom filter out PC 100 and network terminal A1~A3 in the LAN that belongs to 110 management and control of management devices, also can not have influence on the running of other communication network.
Then; Have under the situation of static address at PC 100 and network terminal A1~A3; If detect network interface 120 DHCP is provided; That is service unit 130 recovers it function of DHCP is provided; Then management devices 110 must be cancelled the static address that PC 100 and network terminal A1~A3 set originally, and control PC 100 and network terminal A1~A3 require the IP address to service unit 130 again, causes conflict property problem to avoid the PC 100 and network terminal A1~A3 one of which to have the setting of different addresses simultaneously.
At this moment, whether management devices 110 inspection PCs and network terminal A1~A3 carry out initialize routine.With network terminal A1 is example explanation, suppose that network terminal A1 does not also carry out initialize routine, that is network terminal A1 logins to the internet for the first time, and then network terminal A1 can find oneself itself not have network settings such as IP address.Therefore, control unit 112 just Control Network terminal A1 sends DHCP discovery package (" DHCPDISCOVER " packet), to broadcast to the internet.When service unit 130 receives this DHCP discovery package; Can from the database of itself, search the IP address of also not rented; And together with other network settings; For example: net mask, preset gateway etc., sending a DHCP provides package (" DHCPOFFER " packet) to give network terminal A1, and this DHCP provides package also to comprise the information in lease time limit.When network terminal A1 receives DHCP package is provided; And during the IP address that permission service unit 130 is provided; Network terminal A1 just can send DHCP Request Packet (" DHCPREQUEST " packet); To inform that other provides the service unit of DHCP on the internet, the information that its (being network terminal A1) adopted service unit 130 to be provided.
Suppose that network terminal A1 has accomplished initialize routine, then 112 of control units need Control Network terminal A1 to send the DHCP Request Packet to get final product.When service unit 130 received this DHCP Request Packet, service unit 130 can check whether the information in lease time limit expires.If the lease time limit is not yet due, then service unit 130 just can respond the dhcp response package that comprises former IP address and give network terminal A1.If the lease time limit expires, then service unit 130 can respond the dhcp response package that comprises new IP address and give network terminal A1.
Fig. 1 C is the sketch map of the LAN of another embodiment of the present invention.Please with reference to Figure 1A and Fig. 1 C, management devices 110 is also configurable among hub 140 in present embodiment, and is right non-in order to limit invention scope.When network interface 120 does not provide DHCP; Management devices 110 just provides static address to hub 140, PC 100 and network terminal A1~A3; With construction one LAN, it is linked each other and interaction, wherein hub 140 and PC 100 also are regarded as the network terminal.And when network interface provided DHCP, hub 140, PC 100 and network terminal A1~A3 just followed DHCP and operate.
By the explanation of the foregoing description, can reduce following method flow at this.Fig. 2 is the flow chart of the LAN management method of one embodiment of the invention.Please with reference to Fig. 2, at first, whether the detecting network interface provides DHCP (step S201), and wherein network interface for example is physical layer elements such as cable network card, wireless network card or infrared transceiver.When detecting network interface when DHCP is provided, then control is transferred to the service unit that DHCP is provided, provide the IP address to the network terminal (step S202) by service unit, wherein service unit for example is router, wireless network bridge or Dynamic Host Configuration Protocol server etc.Owing to provide the service unit of DHCP to exist at any time or to be removed, or exist but forbidden energy that the function of DHCP is provided, therefore whenever just detect network interface whether DHCP is provided (step S201) at a distance from a Preset Time (step S203).
Do not have when DHCP is provided if detect network interface, just provide the static address that does not conflict in already present network equipment to the network terminal (step S204).Then, whenever promptly detect network interface whether DHCP is provided (step S206) at a distance from a Preset Time (step S205).At this moment; If detect network interface when DHCP is provided; That is there is and normally provides the function of DHCP in service unit, then cancel the static address (step S207) that the network terminal sets originally, and the Control Network terminal requires again service unit to provide the IP address to the network terminal (step S208).
In sum, the foregoing description then in time and automatically provides static address to the network terminal for when among the net territory DHCP not being provided.Via the mechanism of above-mentioned automatic distribution address, not only having exempted the user need be numerous and diverse program that the network terminal is set the address one by one, also can among LAN, link and interaction with the network terminal through static address.It should be noted that the foregoing description provide static address to the network terminal before, can detect the Request Packet that the network terminal transmits and whether meet predetermined format.If, then provide static address to the network terminal, otherwise, the Request Packet of then ignoring the network terminal and being transmitted.By this, can therefrom filter out the network terminal in the LAN that belongs to institute's management and control, avoid influencing the running of other communication network.
And when in the net territory DHCP being provided, just cancel the static address of the network terminal, and the Control Network terminal requires to provide the service unit of DHCP to provide the IP address to the network terminal again.Thus, the network terminal just can be followed DHCP and operate, being connected to the internet, and also can be because of not having different clashing property of address setting problems.
Though the present invention discloses as above with preferred embodiment; Right its is not in order to limit the present invention; Has common knowledge the knowledgeable in the technical field under any; Do not breaking away from the spirit and scope of the present invention, when can doing a little change and retouching, so protection scope of the present invention is as the criterion when looking claims person of defining.

Claims (14)

1. the management method of a LAN is applicable to the network terminal, it is characterized in that, above-mentioned management method comprises the following steps:
Whether the detecting network interface provides DHCP; And
When above-mentioned network interface does not have when above-mentioned DHCP is provided; Then provide static address to the above-mentioned network terminal according to predetermined dimension; When above-mentioned network interface provides above-mentioned DHCP, cancel the above-mentioned static address of the above-mentioned network terminal.
2. management method according to claim 1 is characterized in that, does not wherein have when above-mentioned DHCP is provided when above-mentioned network interface, then provides above-mentioned static address to comprise to the step of the above-mentioned network terminal:
Detect the Request Packet that the above-mentioned network terminal transmits and whether meet above-mentioned predetermined dimension;
When above-mentioned Request Packet meets above-mentioned predetermined dimension, then send response packets, and above-mentioned response packets comprises above-mentioned static address; And
When above-mentioned Request Packet does not meet above-mentioned predetermined dimension, then ignore above-mentioned Request Packet.
3. management method according to claim 1 is characterized in that, wherein above-mentioned DHCP is to be provided by service unit.
4. management method according to claim 3 is characterized in that, wherein when above-mentioned network interface provides above-mentioned DHCP, then cancels the step of the above-mentioned static address of the above-mentioned network terminal, also comprises the following steps:
Check whether the above-mentioned network terminal carries out initialize routine;
When the above-mentioned network terminal does not also carry out above-mentioned initialize routine, then make the above-mentioned network terminal carry out above-mentioned initialize routine;
When the above-mentioned network terminal has been accomplished above-mentioned initialize routine, then control the above-mentioned network terminal and send the dhcp request package to above-mentioned service unit, to provide Internet Protocol address to the above-mentioned network terminal.
5. management method according to claim 4; It is characterized in that; The step of above-mentioned Internet Protocol address to the above-mentioned network terminal wherein is provided; Then be included in above-mentioned service unit when receiving above-mentioned dhcp request package, send the DHCP response packets and give the above-mentioned network terminal, and above-mentioned DHCP response packets comprise above-mentioned Internet Protocol address.
6. management method according to claim 4 is characterized in that, wherein above-mentioned initialize routine comprises the following steps:
Control the above-mentioned network terminal and send DHCP discovery package;
When above-mentioned service unit received above-mentioned DHCP and finds package, then sending DHCP provided package to the above-mentioned network terminal; And
When the above-mentioned network terminal receives above-mentioned DHCP package is provided, and when allowing above-mentioned service unit that above-mentioned Internet Protocol address is provided, then sends above-mentioned dhcp request package and give above-mentioned service unit.
7. management method according to claim 3 is characterized in that, wherein above-mentioned service unit is the arbitrary of router, network bridge or Dynamic Host Configuration Protocol server three.
8. the management devices of a LAN is suitable for the network terminal, it is characterized in that, above-mentioned management devices comprises:
Detecting unit, whether the detecting network interface provides DHCP; And
Control unit; Couple above-mentioned detecting unit; Do not have when above-mentioned DHCP is provided in order to detect above-mentioned network interface at above-mentioned detecting unit; Provide static address to the above-mentioned network terminal according to predetermined dimension, and when above-mentioned network interface provides above-mentioned DHCP, cancel the above-mentioned static address of the above-mentioned network terminal.
9. management devices according to claim 8 is characterized in that, also comprises:
Database Unit couples above-mentioned control unit, in order to store above-mentioned static address.
10. management devices according to claim 8; It is characterized in that; Wherein above-mentioned detecting unit is not when above-mentioned network interface provides above-mentioned DHCP, and whether the Request Packet of more detecting the above-mentioned network terminal and being transmitted meets above-mentioned predetermined dimension, and when above-mentioned Request Packet meets above-mentioned predetermined dimension; Above-mentioned control unit sends response packets and gives the above-mentioned network terminal, and wherein above-mentioned response packets comprises above-mentioned static address.
11. management devices according to claim 10 is characterized in that, wherein detects above-mentioned Request Packet when not meeting above-mentioned predetermined dimension when above-mentioned detecting unit, then ignores above-mentioned Request Packet.
12. management devices according to claim 8 is characterized in that, wherein above-mentioned DHCP is to be provided by service unit.
13. management devices according to claim 12; It is characterized in that; Wherein when above-mentioned network interface provided above-mentioned DHCP, then above-mentioned control unit was controlled the above-mentioned network terminal and is required above-mentioned service unit, provided IP address to the above-mentioned network terminal.
14. management devices according to claim 12 is characterized in that, wherein above-mentioned service unit is the arbitrary of router, network bridge or Dynamic Host Configuration Protocol server three.
CN2008101099517A 2008-06-11 2008-06-11 Local area network managing method and device thereof Active CN101605152B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101099517A CN101605152B (en) 2008-06-11 2008-06-11 Local area network managing method and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101099517A CN101605152B (en) 2008-06-11 2008-06-11 Local area network managing method and device thereof

Publications (2)

Publication Number Publication Date
CN101605152A CN101605152A (en) 2009-12-16
CN101605152B true CN101605152B (en) 2012-04-25

Family

ID=41470704

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101099517A Active CN101605152B (en) 2008-06-11 2008-06-11 Local area network managing method and device thereof

Country Status (1)

Country Link
CN (1) CN101605152B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111107522B (en) * 2017-09-01 2022-02-11 珠海格力电器股份有限公司 Security method and device, electric appliance, server and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859407A (en) * 2006-02-17 2006-11-08 华为技术有限公司 Method for securing special line user access network
JP2007318531A (en) * 2006-05-26 2007-12-06 Mitsubishi Electric Corp Remote supervisory controller

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859407A (en) * 2006-02-17 2006-11-08 华为技术有限公司 Method for securing special line user access network
JP2007318531A (en) * 2006-05-26 2007-12-06 Mitsubishi Electric Corp Remote supervisory controller

Also Published As

Publication number Publication date
CN101605152A (en) 2009-12-16

Similar Documents

Publication Publication Date Title
US7636775B2 (en) Digital network modem with an integrated DHCP server
KR100656474B1 (en) Port forwarding configuration system and method for wire and wireless network
US7096011B2 (en) Electronic apparatus and service providing method used in the electronic apparatus
US7865198B2 (en) Method for message exchanging service between residential device and mobile terminal
US20050123109A1 (en) System and method for remote control
WO2009104828A1 (en) Method for remote wake-up a computer connected to a network
US20060274771A1 (en) Electronic device
EP2246791A1 (en) Communication terminal and method for controlling connection of communication device
CN102546330A (en) Intelligent home system
KR20080089001A (en) Apparatus and method for sharing contents inter-home using a homenetwork devcie
CN102638382A (en) Method for realizing DLNA (Digital Living Network Alliance) and DLNA agent equipment
CN102065093A (en) Multimedia network service method and system for hotel
KR102411423B1 (en) Network Integrated Wiring Fault Management System and the Method thereof
CN101605152B (en) Local area network managing method and device thereof
CN101197776B (en) Method and system for remotely configuring a device
US20120134297A1 (en) Device detection apparatus and program
KR101993860B1 (en) System and method for controlling network access
JP2007324921A (en) Network connection device and providing service control program
CN201928308U (en) Hotel individualized network service system
JP2007208352A (en) Load distribution method of broadband access server
CN107835188A (en) A kind of equipment safety cut-in method and system based on SDN
TWI449373B (en) Management method of local area network and device thereof
US7881305B2 (en) Network system and method for relaying communication between devices
CN102006312A (en) Hotel individual network service method and hotel individual network service system
JP4020136B2 (en) Switching hub device, router 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
C14 Grant of patent or utility model
GR01 Patent grant