CN104468543A - Method and device for accessing devices in local area network - Google Patents

Method and device for accessing devices in local area network Download PDF

Info

Publication number
CN104468543A
CN104468543A CN201410695919.7A CN201410695919A CN104468543A CN 104468543 A CN104468543 A CN 104468543A CN 201410695919 A CN201410695919 A CN 201410695919A CN 104468543 A CN104468543 A CN 104468543A
Authority
CN
China
Prior art keywords
equipment
main frame
domain name
packet
devices
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
CN201410695919.7A
Other languages
Chinese (zh)
Other versions
CN104468543B (en
Inventor
刘岸
邓一凡
侯旭勃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TP Link Technologies Co Ltd
Original Assignee
TP Link Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TP Link Technologies Co Ltd filed Critical TP Link Technologies Co Ltd
Priority to CN201410695919.7A priority Critical patent/CN104468543B/en
Publication of CN104468543A publication Critical patent/CN104468543A/en
Application granted granted Critical
Publication of CN104468543B publication Critical patent/CN104468543B/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/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]

Abstract

The invention is suitable for the technical field of communication, and provides a method and device for accessing devices in a local area network. The method includes the steps that the first device monitors data packages broadcasted by other devices in the same local area network; the first device builds a device list page according to the monitored data packages, wherein device identification of the first device and the second devices is displayed in the device list page, and the second devices are devices with login domain names the same as the login domain name of the first device; when a host computer accesses the first device through the login domain name, the first device returns the device list page to the host computer; the first device enables the device list page to be skipped into management pages of the devices according to IP addresses of the devices selected by the host computer. By means of the method and device, on the premise that a network topology structure of the local area network is not changed, the host computer can access the other devices with the same login domain names in the local area network by the device for capturing DNS query requests of the host computer through webpage skipping.

Description

A kind of access method of lan device and device
Technical field
The invention belongs to the communications field, particularly relate to a kind of access method and device of lan device.
Background technology
In a local network, need to access the administration page that specific IP address can log in lan device, increasing along with network equipment kind, the IP address that different lan devices is corresponding different, inconvenient user's memory, therefore, the appearance adopting domain logon technology to avoid the problems referred to above at present more.
In domain logon technology, lan device can pre-set not revisable login domain name usually, such as abc.com, when main frame accesses this domain name by browser first time, lan device can tackle the DNS query request that browser sends automatically, then the DNS response of the IP address carrying this lan device is returned, so, just achieve the successful binding of IP address on main frame of this lan device, login domain name corresponding to this lan device is directly inputted at main frame, just can access the IP address of this local area network (LAN), thus log in corresponding administration page.
At present, there is following shortcoming in above-mentioned domain logon technology: when there is the lan device of multiple identical login domain name in same local area network (LAN), and main frame cannot conduct interviews from the wherein lan device that this login domain name of main separation is corresponding.
Summary of the invention
The object of the embodiment of the present invention is the access method providing a kind of lan device, is intended to solve when there is the lan device of multiple identical login domain name in same local area network (LAN), and main frame cannot from the main separation wherein problem that conducts interviews of a lan device.
The embodiment of the present invention is achieved in that a kind of access method of lan device, comprising:
First equipment monitors the packet of other device broadcasts in same local area network (LAN), and the information that described packet carries comprises the login domain name of the equipment of this packet of broadcast, device identification and IP address;
Described first equipment creates the list of devices page according to the packet listened to, and illustrate the device identification of described first equipment and the second equipment in the described list of devices page, described second equipment is the equipment possessing identical login domain name with described first equipment;
When main frame is by logging in the first equipment described in domain name access, described first equipment returns the described list of devices page to described main frame, selectes to make described main frame one of them equipment shown in the described list of devices page;
The IP address of the equipment that described first equipment is selected according to described main frame, by described list of devices page jump to the administration page of this equipment, to realize the access of described main frame to this equipment.
Another object of the embodiment of the present invention is the access means providing a kind of lan device, comprises;
Monitoring unit, monitors the packet of other device broadcasts in same local area network (LAN) for the first equipment, the information that described packet carries comprises the login domain name of equipment of this packet of broadcast, device identification and IP address;
Creating unit, the list of devices page is created according to the packet listened to for described first equipment, illustrate the device identification of described first equipment and the second equipment in the described list of devices page, described second equipment is the equipment possessing identical login domain name with described first equipment;
First returns unit, and for when main frame is by logging in the first equipment described in domain name access, described first equipment returns the described list of devices page to described main frame, selectes to make described main frame one of them equipment shown in the described list of devices page;
Jump-transfer unit, for the IP address of the equipment that described first equipment is selected according to described main frame, by described list of devices page jump to the administration page of this equipment, to realize the access of described main frame to this equipment.
The embodiment of the present invention under the prerequisite of network topology structure not changing local area network (LAN), can be passed through webpage redirect by the equipment of interception main frame DNS query request, realizes the access of the equipment of other identical login domain names in main frame local area network.
Accompanying drawing explanation
Fig. 1 is the realization flow figure of the access method of the lan device that the embodiment of the present invention provides;
Fig. 2 is the flow chart of the lan device broadcast data packet that the embodiment of the present invention provides;
Fig. 3 is the realization flow figure of the access method of the lan device that another embodiment of the present invention provides;
Fig. 4 is the realization flow figure of the access method of the lan device that another embodiment of the present invention provides;
Fig. 5 is the structured flowchart of the access means of the lan device that the embodiment of the present invention provides.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Fig. 1 shows the realization flow of the access method of the lan device that the embodiment of the present invention provides, it should be noted that, in the following embodiments, described " the first equipment " and described " the second equipment " does not have difference on functional realiey, just for convenience of description, the equipment tackling the DNS query request that main frame sends in the process of host access equipment is called " the first equipment ", same local area network (LAN) will be positioned at the first equipment, and be called " the second equipment " with the equipment that the first equipment possesses identical login domain name, illustrate no longer one by one in subsequent embodiment.
Details are as follows for realization flow shown in Fig. 1:
In S101, the first equipment monitors the packet of other device broadcasts in same local area network (LAN), and the information that described packet carries comprises the login domain name of the equipment of this packet of broadcast, device identification and IP address.
In the present embodiment, the all devices (comprising " the first equipment " that S101 mentions) being arranged in same local area network (LAN) all every Preset Time in this local area network (LAN) broadcast data packet, in the packet of device broadcasts, at least carry the login domain name of this equipment, device identification and IP address.
Wherein, logging in domain name is that this equipment is pre-configured when dispatching from the factory, such as, abc.com, by domain name resolution service (Domain Name Service, DNS), the DNS request about this domain name that equipment can send according to main frame, this domain name mapping is become the IP address of this equipment, and IP address is carried at DNS response in return to main frame, successfully access this equipment to enable main frame according to this IP address.
Device identification, for can in a local area network (LAN) character string of a unique identification equipment, such as, it can be the model (if the model of this equipment is unique in local area network (LAN)) of equipment, or, can be the serial number that dispatches from the factory of equipment, or, it can be medium access control (Media Access Control, the MAC) address of equipment.
IP address, in the present embodiment, for the logical address that equipment is assigned with in a local network at it, such as, 192.168.1.12, main frame directly can have access to the administration page of this equipment by the IP address of equipment, and in other words, main frame can realize the access to this equipment by the IP address of equipment.
The flow chart of device broadcasts packet as shown in Figure 2, the good Preset Time of Equipments Setting, such as, 5 seconds, after executing once broadcast action, equipment starts timing, if timing does not exceed this Preset Time, then continue wait for, until timing this exceeded Preset Time, then again perform broadcast action.The mode of above-mentioned fixed time broadcast packet makes the relevant information of the equipment of access in local area network (LAN) to be refreshed in time.
In S102, described first equipment creates the list of devices page according to the packet listened to, illustrate the device identification of described first equipment and the second equipment in the described list of devices page, described second equipment is the equipment possessing identical login domain name with described first equipment.
In the present embodiment, first equipment can listen to the packet that other equipment except himself are broadcasted, first equipment is by resolving the packet listened to, extract the packet carrying the login domain name identical with the first equipment wherein, and create the list of devices page according to the packet extracted.
In the list of devices page created, illustrate all devices device identification separately under same login domain name in this local area network (LAN), comprise the device identification of the first equipment and the device identification of the second equipment, wherein, the second equipment possessing identical login domain name with the first equipment may have multiple stage, then in the list of devices page, need this multiple stage second equipment to represent and show one by one.Further, in the list of devices page, the said equipment IP address separately can also be shown.By the list of devices page, the correlation circumstance of all devices using same login domain name can be shown, so that the equipment needing to log in therefrom selected by main frame in subsequent step.
In S103, when main frame is by logging in the first equipment described in domain name access, described first equipment returns the described list of devices page to described main frame, selectes to make described main frame one of them equipment shown in the described list of devices page.
When main frame passes through the login domain name of browser access first equipment, main frame sends the DNS query request of carrying this domain name, first equipment tackles this DNS query request, and the DNS response of the IP address of first equipment that carries is returned to main frame, main frame is after receiving this DNS and responding, using the analysis result of the IP address of the first equipment as DNS, again send the request of this IP address of access, now, webpage corresponding for this IP address is redirected to its list of devices page created by the first equipment, thus the related data of this list of devices page is returned to main frame, main frame is after completing data and downloading, this list of devices page is played up in its local browser.Based on the content of showing in the list of devices page, user can operate in a browser, selectes one of them equipment shown in the list of devices page to make main frame, and this equipment is the equipment that user wishes by host access.
It should be noted that, in S103, the DNS query request that the first equipment sends to realize interception main frame, any one situation below demand fulfillment:
One, the first equipment and main frame direct-connected, and in the gateway path of main frame;
Two, the DNS query request that the first equipment is positioned at main frame is mail on the path of dns server, and is equipment that on this path, first is collected the DNS query request of main frame.
In S104, the IP address of the equipment that described first equipment is selected according to described main frame, by described list of devices page jump to the administration page of this equipment, to realize the access of described main frame to this equipment.
The equipment that main frame is selected in S103 can return to the first equipment as web page access data, thus, first equipment just obtains the equipment of cicada main frame actual needs access, then now, the data of this administration page by list of devices page jump to the administration page of this equipment, and are sent to main frame by the IP address of the equipment that the first equipment is selected according to main frame, to make the local browser renders of main frame go out this administration page, to realize the access of main frame to its selected equipment.
The lan device access method set forth by above-described embodiment, can under the prerequisite of network topology structure not changing local area network (LAN), pass through webpage redirect by the equipment of interception main frame DNS query request, realize the access of the equipment of other identical login domain names in main frame local area network.Meanwhile, said method goes for the equipment of all support IP stacks and domain logon technology in local area network (LAN), applied widely.
As one embodiment of the present of invention, after S102, Host field in the HTTP request message that first equipment can be sent by parsing main frame in head (Header), judge that this main frame is undertaken by logging in domain name its access, or directly undertaken by IP address.When judging that main frame visits the first equipment by logging in domain name, then perform the S103 in Fig. 1 embodiment, and if judge that main frame visits the first equipment by IP address, then as shown in Figure 3, in S105, the first equipment returns the administration page of the first equipment to main frame.Namely, under this situation, what the first equipment can specify the actual hope access of main frame is exactly the first equipment, so now, first equipment is no longer to main frame Returning equipment original list, but the administration page of the first equipment is returned directly to main frame, eliminate the correlation step that equipment selected by main frame, which thereby enhance the access efficiency of equipment in main frame local area network.
As another embodiment of the present invention, as shown in Figure 4, after S101, described method also comprises:
S106, when described first equipment does not hear the packet carrying the login domain name identical with it, if when main frame is by logging in the first equipment described in domain name access, described first equipment returns the administration page of described first equipment to described main frame.
In the present embodiment, if the first equipment is by monitoring, when not hearing the packet carrying login domain name identical with it, then can judge in same local area network (LAN), there is not the equipment possessing same domain name with it, so now, first equipment no longer creates the list of devices page, in this case, if main frame is by logging in domain name access first equipment, then the first equipment returns the administration page of himself directly to main frame, realizes the access of main frame to the first equipment, improves the access efficiency of main frame local area network equipment thus.
Based on Fig. 1 of the present invention to embodiment illustrated in fig. 4, Fig. 5 shows the structured flowchart of the access means of the lan device that the embodiment of the present invention provides, this device can be positioned at support IP stack and support among the lan device of domain name login techniques, for running the access method of the lan device described in Fig. 1 to Fig. 4 embodiment of the present invention.For convenience of explanation, illustrate only part related to the present embodiment.
With reference to Fig. 5, this device comprises:
Monitoring unit 51, the first equipment monitors the packet of other device broadcasts in same local area network (LAN), and the information that described packet carries comprises the login domain name of the equipment of this packet of broadcast, device identification and IP address.
Creating unit 52, described first equipment creates the list of devices page according to the packet listened to, illustrate the device identification of described first equipment and the second equipment in the described list of devices page, described second equipment is the equipment possessing identical login domain name with described first equipment.
First returns unit 53, and when main frame is by logging in the first equipment described in domain name access, described first equipment returns the described list of devices page to described main frame, selectes to make described main frame one of them equipment shown in the described list of devices page.
Jump-transfer unit 54, the IP address of the equipment that described first equipment is selected according to described main frame, by described list of devices page jump to the administration page of this equipment, to realize the access of described main frame to this equipment.
Alternatively, described device also comprises:
Radio unit, described first equipment broadcasts described packet every Preset Time in described local area network (LAN).
Alternatively, described device also comprises:
Second returns unit, and when described main frame is by IP address described first equipment of access, described first equipment returns the administration page of described first equipment to described main frame.
Alternatively, described device also comprises:
3rd returns unit, and when described first equipment does not hear the packet carrying the login domain name identical with it, if log in domain name described in host access, described first equipment returns the administration page of described first equipment to described main frame.
Alternatively, the IP address of described first equipment and described second equipment is also illustrated in the described list of devices page.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. an access method for lan device, is characterized in that, comprises;
First equipment monitors the packet of other device broadcasts in same local area network (LAN), and the information that described packet carries comprises the login domain name of the equipment of this packet of broadcast, device identification and IP address;
Described first equipment creates the list of devices page according to the packet listened to, and illustrate the device identification of described first equipment and the second equipment in the described list of devices page, described second equipment is the equipment possessing identical login domain name with described first equipment;
When main frame is by logging in the first equipment described in domain name access, described first equipment returns the described list of devices page to described main frame, selectes to make described main frame one of them equipment shown in the described list of devices page;
The IP address of the equipment that described first equipment is selected according to described main frame, by described list of devices page jump to the administration page of this equipment, to realize the access of described main frame to this equipment.
2. the method for claim 1, is characterized in that, described method also comprises:
Described first equipment broadcasts described packet every Preset Time in described local area network (LAN).
3. method as claimed in claim 1 or 2, it is characterized in that, described method also comprises:
When described main frame is by IP address described first equipment of access, described first equipment returns the administration page of described first equipment to described main frame.
4. method as claimed in claim 1 or 2, is characterized in that, after described first equipment monitors the packet of broadcasting in local area network (LAN), described method also comprises:
When described first equipment does not hear the packet carrying the login domain name identical with it, if log in domain name described in host access, described first equipment returns the administration page of described first equipment to described main frame.
5. the method for claim 1, is characterized in that, also illustrates the IP address of described first equipment and described second equipment in the described list of devices page.
6. an access means for lan device, is characterized in that, comprises;
Monitoring unit, monitors the packet of other device broadcasts in same local area network (LAN) for the first equipment, the information that described packet carries comprises the login domain name of equipment of this packet of broadcast, device identification and IP address;
Creating unit, the list of devices page is created according to the packet listened to for described first equipment, illustrate the device identification of described first equipment and the second equipment in the described list of devices page, described second equipment is the equipment possessing identical login domain name with described first equipment;
First returns unit, and for when main frame is by logging in the first equipment described in domain name access, described first equipment returns the described list of devices page to described main frame, selectes to make described main frame one of them equipment shown in the described list of devices page;
Jump-transfer unit, for the IP address of the equipment that described first equipment is selected according to described main frame, by described list of devices page jump to the administration page of this equipment, to realize the access of described main frame to this equipment.
7. device as claimed in claim 6, it is characterized in that, described device also comprises:
Radio unit, broadcasts described packet every Preset Time for described first equipment in described local area network (LAN).
8. device as claimed in claims 6 or 7, it is characterized in that, described device also comprises:
Second returns unit, and for when described main frame is by IP address described first equipment of access, described first equipment returns the administration page of described first equipment to described main frame.
9. device as claimed in claims 6 or 7, it is characterized in that, described device also comprises:
3rd returns unit, and for when described first equipment does not hear the packet carrying the login domain name identical with it, if log in domain name described in host access, described first equipment returns the administration page of described first equipment to described main frame.
10. device as claimed in claim 6, is characterized in that, also illustrate the IP address of described first equipment and described second equipment in the described list of devices page.
CN201410695919.7A 2014-11-26 2014-11-26 The access method and device of a kind of lan device Active CN104468543B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410695919.7A CN104468543B (en) 2014-11-26 2014-11-26 The access method and device of a kind of lan device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410695919.7A CN104468543B (en) 2014-11-26 2014-11-26 The access method and device of a kind of lan device

Publications (2)

Publication Number Publication Date
CN104468543A true CN104468543A (en) 2015-03-25
CN104468543B CN104468543B (en) 2018-02-13

Family

ID=52913915

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410695919.7A Active CN104468543B (en) 2014-11-26 2014-11-26 The access method and device of a kind of lan device

Country Status (1)

Country Link
CN (1) CN104468543B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106411542A (en) * 2015-07-27 2017-02-15 中兴通讯股份有限公司 Method and device of realizing device search
CN110602092A (en) * 2019-09-12 2019-12-20 福建深空信息技术有限公司 Method for only allowing designated IP to update website based on process forwarding
CN111526189A (en) * 2020-04-13 2020-08-11 恒安嘉新(北京)科技股份公司 Equipment monitoring method and device, computer equipment and storage medium
CN116112469A (en) * 2023-04-14 2023-05-12 杭州云缔盟科技有限公司 Method, system and application for reporting host name information in local area network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040044788A1 (en) * 2002-09-03 2004-03-04 Motorola, Inc. Multiple unicast of data to multiple hosts having the same domain name
CN101262477A (en) * 2007-03-09 2008-09-10 国际商业机器公司 System and method for detecting multiple IP address
CN102469166A (en) * 2010-10-29 2012-05-23 国际商业机器公司 Method for providing virtual domain name system (DNS) in local area network, terminal equipment and system
CN103916492A (en) * 2014-04-11 2014-07-09 深信服网络科技(深圳)有限公司 Network device access control method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040044788A1 (en) * 2002-09-03 2004-03-04 Motorola, Inc. Multiple unicast of data to multiple hosts having the same domain name
CN101262477A (en) * 2007-03-09 2008-09-10 国际商业机器公司 System and method for detecting multiple IP address
CN102469166A (en) * 2010-10-29 2012-05-23 国际商业机器公司 Method for providing virtual domain name system (DNS) in local area network, terminal equipment and system
CN103916492A (en) * 2014-04-11 2014-07-09 深信服网络科技(深圳)有限公司 Network device access control method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106411542A (en) * 2015-07-27 2017-02-15 中兴通讯股份有限公司 Method and device of realizing device search
CN110602092A (en) * 2019-09-12 2019-12-20 福建深空信息技术有限公司 Method for only allowing designated IP to update website based on process forwarding
CN110602092B (en) * 2019-09-12 2022-03-04 福建深空信息技术有限公司 Method for only allowing designated IP to update website based on process forwarding
CN111526189A (en) * 2020-04-13 2020-08-11 恒安嘉新(北京)科技股份公司 Equipment monitoring method and device, computer equipment and storage medium
CN116112469A (en) * 2023-04-14 2023-05-12 杭州云缔盟科技有限公司 Method, system and application for reporting host name information in local area network
CN116112469B (en) * 2023-04-14 2023-06-06 杭州云缔盟科技有限公司 Method, system and application for reporting host name information in local area network

Also Published As

Publication number Publication date
CN104468543B (en) 2018-02-13

Similar Documents

Publication Publication Date Title
CN110569463B (en) Page refreshing method and device and storage medium
CN109348171B (en) Video networking monitoring video acquisition method and device
EP2787742B1 (en) Method and system for transmitting network video
KR101670344B1 (en) Access control method and system, and access point
US8949952B2 (en) Multi-stack subscriber sign on
CN104539902B (en) The remote access method and system of a kind of IPC
EP2351292B1 (en) Device and method for retrieving information from a device
CN102664964A (en) Open WIFI (Wireless Fidelity) network advertisement media system
CN104468543A (en) Method and device for accessing devices in local area network
CN103997479B (en) A kind of asymmetric services IP Proxy Methods and equipment
KR101682513B1 (en) Dns proxy service for multi-core platforms
CN105323325A (en) Address assignment method for identity and position separation network, and access service node
US20120036545A1 (en) Method and apparatus for obtaining address of video transmission management server
CN101378407B (en) Method, system and equipment for pushing information
EP3096492A1 (en) Page push method, device, server and system
US8843644B2 (en) Method and apparatus for enabling a management system to interface with managed devices
US11115326B2 (en) Port-based multi-tenancy router to manage wireless network
EP3089422B1 (en) Content distribution method, apparatus and system
CN110674436A (en) Data processing method and device based on browser
CN202872838U (en) Open WIFI network advertising media system
CN110618773B (en) Menu processing method and device, electronic equipment and readable storage medium
CN109857419B (en) Method and device for automatically upgrading scheduling system
CN107079196B (en) Receiving apparatus, transmitting apparatus, and data processing method
CN101453396B (en) Method and system for multiple service provider device management
CN105554039B (en) A kind of portal authentication method and Verification System of wireless network

Legal Events

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