Method, the Apparatus and system of network equipment detection
Technical field
The present invention relates to Internet technical field, particularly relate to method, the Apparatus and system of the detection of a kind of network equipment.
Background technology
In order to can the network equipment in unified management LAN environment; server can send probe data packet to the network equipment usually; the network equipment receiving this detection packet can return IP(Internet Protocol) (Internet Protocol to server; be called for short IP) packet; server is by the parsing to IP packet; judge and obtain the information such as the service that the main frame of the network equipment in local area network (LAN), operating system and main frame provide, and then the detection realized the network equipment and management.But carry out in the process of detection network equipment at above-mentioned server, server needs to send probe data packet respectively to each network equipment in local area network (LAN).When the number of devices in network is more, equipment detection consuming time longer, for fairly large local area network (LAN), this consuming time normally can not be received.
Summary of the invention
In view of this, method, Apparatus and system that the embodiment of the present invention provides a kind of network equipment to detect, main purpose is to solve network equipment detection longer problem consuming time.
According to one aspect of the invention, provide the method for a kind of network equipment detection, described method comprises:
Obtain the attribute information of the network equipment in local area network (LAN);
From the network equipment, agent equipment is selected according to attribute information;
Issue exploration policy to agent equipment, so that agent equipment detects other network equipments based on exploration policy, and obtain result of detection;
The result of detection that Receiving Agent equipment reports.
According to another aspect of the present invention, provide the method for a kind of network equipment detection, described method comprises:
The exploration policy that reception server issues;
Based on exploration policy, the network equipment is detected, and obtain result of detection;
Result of detection is reported to server.
According to another aspect of the present invention, provide the device of a kind of network equipment detection, described device comprises:
Acquiring unit, for obtaining the attribute information of the network equipment in local area network (LAN);
Selected cell, selects agent equipment for the attribute information obtained according to acquiring unit from the network equipment;
Issue unit, issue exploration policy for the agent equipment selected to selected cell, so that agent equipment detects other network equipments based on exploration policy, and obtain result of detection;
Receiving element, for Receiving Agent equipment report according to the result of detection issuing exploration policy that unit issues and obtain.
According to another aspect of the present invention, provide the device of a kind of network equipment detection, described device comprises:
Receiving element, for the exploration policy that reception server issues;
Probe unit, detects the network equipment for the exploration policy received based on receiving element, and obtains result of detection;
Report unit, for the result of detection reporting probe unit to detect to server.
According to another aspect of the present invention, provide the system of a kind of network equipment detection, described system comprises: server and agent equipment, wherein,
Server is used for, and obtains the attribute information of the network equipment in local area network (LAN), selects agent equipment, issue exploration policy to agent equipment according to attribute information from the network equipment;
Agent equipment is used for, the exploration policy that reception server issues, and detects, and obtains result of detection, report result of detection to server based on exploration policy to the network equipment;
Server is also for, the result of detection that Receiving Agent equipment reports.
By technique scheme, method, the Apparatus and system of network equipment detection provided by the invention, server obtains the attribute information of the network equipment in local area network (LAN), from the network equipment, agent equipment is selected according to this attribute information, and issue exploration policy to this agent equipment, agent equipment receives this exploration policy, detects, the result detected is reported server according to this exploration policy to the network equipment.Respectively carry out detection compared with by server to each network equipment in local area network (LAN) with prior art, the present invention is configured exploration policy at server end, and this exploration policy is handed down to proxy server, without the need to the participation of server in detection network device procedures, but detected by other network equipments in agent equipment local area network, the distributed parallel detection that this slack resources of agent equipment realizes each local area network (LAN) can be made full use of, greatly save the elapsed time that the network equipment is detected.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of specification, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows the flow chart of the method for a kind of network equipment detection that the embodiment of the present invention provides;
Fig. 2 shows server that the embodiment of the present invention provides to the flow chart of the method that the network equipment quantity after detection adjusts;
The schematic diagram that the server that Fig. 3 shows the embodiment of the present invention to be provided filters premise equipment type;
Fig. 4 shows the flow chart of the method for the another kind of network equipment detection that the embodiment of the present invention provides;
Fig. 5 shows the schematic diagram having multiple agent equipment in local area network (LAN) that the embodiment of the present invention provides;
Fig. 6 shows agent equipment that the embodiment of the present invention provides to the schematic diagram facing net detection;
Fig. 7 shows the composition frame chart of the device of a kind of network equipment detection that the embodiment of the present invention provides;
Fig. 8 shows the composition frame chart of the device of the another kind of network equipment detection that the embodiment of the present invention provides;
Fig. 9 shows the composition frame chart of the device of the another kind of network equipment detection that the embodiment of the present invention provides;
Figure 10 shows the composition frame chart of the device of the another kind of network equipment detection that the embodiment of the present invention provides;
Figure 11 shows the composition frame chart of the system of a kind of network equipment detection that the embodiment of the present invention provides.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
In order to solve network equipment detection longer problem consuming time, embodiments provide the method for a kind of network equipment detection, the method is applied to server side.As shown in Figure 1, described method comprises:
101, the attribute information of the network equipment in local area network (LAN) is obtained.
Before the attribute information obtaining the network equipment in local area network (LAN), first server issues the solicited message obtaining attribute information to the network equipment in local area network (LAN), and receives the attribute information that the described network equipment reports.Server can judge the performance state of the network equipment and the idle condition of the network equipment according to the attribute information got.In the operating process of reality, server is when issuing the solicited message obtaining attribute information to all-network equipment or partial network devices in local area network (LAN), server can the single attribute information of acquisition request, also can the combination of the multiple attribute information of acquisition request, the embodiment of the present invention does not limit this.
102, from the network equipment, agent equipment is selected according to attribute information.
Described agent equipment is the network equipment that server is selected according to attribute information, and in essence, agent equipment remains a network equipment, except as except agent equipment, can performing the operational order of other network equipment execution.Server is when selecting agent equipment, and can select an agent equipment in a local area network (LAN), also can select multiple agent equipment, the embodiment of the present invention does not limit this.It should be noted that, for the ease of the expansion of the embodiment of the present invention, following examples will select an agent equipment to be described for server in each local area network (LAN).
In the embodiment of the present invention, when multiple local area network (LAN) shares same server, using the local area network (LAN) at agent equipment place as local area network, and be described for the communication interaction between the network equipment in server and local area network, wherein, other local area network (LAN)s except local area network are for facing local area network (LAN).Exemplary, local area network (LAN) A, local area network (LAN) B, local area network (LAN) C, local area network (LAN) D share a server, if agent equipment is arranged in local area network (LAN) B, then local area network (LAN) B is local area network, and local area network (LAN) A, local area network (LAN) C, local area network (LAN) D are for facing local area network (LAN); Or if agent equipment is arranged in local area network (LAN) D, then local area network (LAN) D is local area network, and local area network (LAN) A, local area network (LAN) B, local area network (LAN) C are for facing local area network (LAN).The embodiment of the present invention to which local area network (LAN) concrete is not construed as limiting as local area network.
103, exploration policy is issued to agent equipment.
Described exploration policy is not unalterable, server can be configured this exploration policy according to the different demands of detection network equipment, such as, can be configured investigative range of the design parameter of the time period of the particular type of detection network equipment, detection network equipment, detection network equipment, detection network equipment etc.Concrete exploration policy instruction agent equipment carries out the content detected, and the actual demand according to detection network equipment is configured, and the embodiment of the present invention does not limit the particular content comprised in exploration policy.
104, the result of detection that reports of Receiving Agent equipment.
Agent equipment reports the content of result of detection should based on the concrete instruction of server in exploration policy.After server receives result of detection, the network equipment just completed in server local area network carries out detecting of task.The method of the network equipment detection that the embodiment of the present invention provides, can make full use of the process resource of agent equipment in local area network (LAN), instead of consumes the limited process resource of server.
The method of the network equipment detection that the embodiment of the present invention provides, server obtains the attribute information of the network equipment in local area network (LAN), from the network equipment, agent equipment is selected according to this attribute information, and issue exploration policy to this agent equipment, agent equipment receives this exploration policy, according to this exploration policy, the network equipment is detected, the result detected is reported server.Respectively carry out detection compared with by server to each network equipment in local area network (LAN) with prior art, the embodiment of the present invention is configured exploration policy at server end, and this exploration policy is handed down to proxy server, without the need to the participation of server in detection network device procedures, but detected by other network equipments in agent equipment local area network, the detection distributed arranged side by side that this slack resources of agent equipment realizes each local area network (LAN) can be made full use of, greatly save the elapsed time that the network equipment is detected.
Further, as to the refinement of above-mentioned steps and expansion, in above-mentioned steps 101, attribute information comprises client and installs mark, and wherein, whether client is installed mark and be used for token network equipment and be provided with and can carry out the particular clients of direct communication with server.Wherein, client is installed to identify can adopt but be not limited to following mode and is realized, and such as, client is installed mark and is carried in the user name of the network equipment, as equipment 1
khd, equipment 3
khd, equipment 9
khdetc.; Or, rule is pre-established between server and the network equipment, when the network equipment reports client to install mark, server can identify this network equipment, as receive when server client install be designated client 1 time, the network equipment then determining to report this client to install mark is the network equipment 1, when server receive client install be designated client 5 time, then determine that the network equipment reporting this client to install mark is the network equipment 5.The embodiment of the present invention does not limit the specific implementation that client installs mark.
In addition, a particular clients can only be installed in a network equipment, therefore, after server receives client installation mark, the quantity of the network equipment installing particular clients is added up, and calculate the installation rate of installing particular clients in this local area network (LAN), so that server manages the network equipment being provided with particular clients.Exemplary, suppose there are 100 network equipments in local area network (LAN), the client that server receives is installed and is designated 18, namely the quantity being provided with the network equipment of particular clients in this local area network (LAN) is 18, and so in this local area network (LAN), the installation rate of particular clients is 18%.In the application of reality, described particular clients can be the client of safety applications class software, and concrete, the embodiment of the present invention does not limit particular clients.
Further, in above-mentioned steps 101, attribute information also comprises: the performance parameter of the network equipment.Wherein, the performance parameter of the network equipment comprises: central processing unit (Central Processing Unit, CPU), internal memory, hardware, operating system, IP(Internet Protocol) (Internet Protocol, IP) address etc.The performance parameter of installing mark and the network equipment based on the client in attribute information selects agent equipment, be specially: server selects to be provided with the network equipment of particular clients, and from the network equipment being provided with particular clients selectivity parameter higher than the network equipment of parameter preset threshold value as agent equipment.Wherein, described parameter preset threshold value is artificial setting, according to the different demands of exploration policy, can reconfigure this parameter preset threshold value.Exemplary, the parameter preset threshold value that can arrange the resources occupation rate of CPU is 30%, the parameter preset threshold value arranging CPU frequency is 800MHz, the parameter preset threshold value arranging the resources occupation rate of internal memory is 50% etc., and the embodiment of the present invention does not limit the performance parameter of the network equipment, parameter preset threshold value.
Further, after server selects agent equipment, if server does not issue exploration policy to this agent equipment, then this agent equipment is still the network equipment in local area network (LAN); If server has issued exploration policy to this agent equipment, then this agent equipment has detected other network equipments based on described exploration policy.Wherein, exploration policy comprises following at least one Policy Info: detection protocol type, end of probe slogan, IP(Internet Protocol) IP network section, detect cycle and detection period.Wherein, detect protocol type comprise local area network detection and face local area network (LAN) and detect the detection protocol type used; Physical port number when end of probe slogan comprises detection and logical port number; IP network section comprises distinguishes IP network sections different in the network segment of LAN and same local area network (LAN), detect cycle comprises the cycle detected the network equipment in server instruction agent equipment local area network, such as, can arrange detect cycle is 24 hours, and also can arrange detect cycle is one week etc.; The detection period network equipment comprised in server instruction agent equipment local area network carries out the concrete period detected, and such as, can arrange the detection period is 12:00-13:00, and also can arrange the detection period is 16:00-16:30.The mode of the embodiment of the present invention to the content of the policy information of exploration policy and Provisioning Policy content does not limit.
Further, as agent equipment when carrying out detecting other network equipments, may need to send a large amount of address resolution protocol (Address ResolutionProtocol to other network equipments in local area network (LAN), ARP) packet, owing to being previously provided with the critical frequency sending ARP packet in agent equipment, if agent equipment sends the frequency of ARP packet higher than critical frequency, then the communication between agent equipment and other network equipments can be forced to disconnect.In order to prevent the above-described problem from occurring, server is before sending ARP packet to other network equipments, first the critical frequency of the transmission ARP packet of agent equipment can be obtained, the critical frequency that server sends ARP packet according to agent equipment is arranged described configuration parameter, and issues the configuration parameter of the transmission frequency of the ARP packet after configuration to agent equipment.Described configuration parameter is set to be less than or equal to the critical frequency that agent equipment sends ARP packet, guarantees the proper communication between agent equipment and other network equipments.Wherein, because different agent equipment may exist the critical frequency of different transmission ARP packets, the setting of described configuration parameter is arranged depending on concrete condition, such as, the critical frequency that agent equipment sends ARP packet is 100/s, then described configuration parameter can be set to 100/s, also can be set to 80/s, and the concrete embodiment of the present invention does not limit this.
Further, before the result of detection that Receiving Agent equipment reports, the investigative range that server can indicate agent equipment concrete, investigative range comprises carries out Home Network detection and/or carries out facing net detection, when agent equipment receives the instruction that server issues, selecting to detect Home Network according to instruction, detecting, to Home Network with face net and detect simultaneously facing net.In embodiments of the present invention, if server does not issue the instruction of investigative range to agent equipment, the acquiescence investigative range of agent equipment can be set for only to carry out Home Network detection; Or also can arrange the acquiescence investigative range of agent equipment for carrying out Home Network and facing net detection, concrete, the embodiment of the present invention does not limit the acquiescence investigative range arranging agent equipment.
Further, after the result of detection that server reports at Receiving Agent equipment, the result of detection received is resolved, and obtains the network equipment quantity of agent equipment detection.Network equipment quantity and the amount threshold preset are compared, if the result compared there are differences, then server adjusts accordingly network equipment quantity according to exploration policy.Embodiments provide a kind of method that server adjusts the network equipment quantity after detection, as shown in Figure 2, the method comprises:
201, the network equipment quantity that reports of Receiving Agent equipment.
Corresponding to the result of detection that server Receiving Agent equipment in above-mentioned steps 104 reports, result of detection comprises the network equipment quantity that Receiving Agent equipment reports, the object of the network equipment quantity that Receiving Agent equipment reports is, check whether there is error between the network equipment quantity that agent equipment detects and default amount threshold, miss extent based on this, server can adopt corresponding strategy to reduce or eliminate error.Wherein, the result of detection that agent equipment reports, except comprising network equipment quantity, also should report to agent equipment based on the corresponding result of detection of the instruction content in exploration policy, exemplary, indicate the device identification of agent equipment report network equipment in exploration policy, OS Type, instruction agent equipment report EMS memory occupation etc. about other network equipments, concrete, the embodiment of the present invention reports the content of result of detection not limit to agent equipment.
202, network equipment quantity and the amount threshold preset are compared.
If network equipment quantity is greater than amount threshold, then perform step 203; If network equipment quantity is less than amount threshold, then perform step 204.
It should be noted that, perform after the result of detection that Receiving Agent equipment reports during the execution of this step.
203, the network equipment after detection is filtered.
When filtering the network equipment after detection, server can need the network equipment of filtration by following several way selection:
Mode one: the network equipment of premise equipment type is filtered.
The network equipment in the local area network (LAN) that agent equipment can detect, comprises PC (PersonalComputer, PC), printer, switch, virtual machine etc.When network equipment quantity is greater than amount threshold, server filters the network equipment after detection based on premise equipment type, exemplary, if presetting device type is PC, is then filtered by the network equipment to device type being PC; If premise equipment type is virtual machine, then filtered by the network equipment to device type being virtual machine, the embodiment of the present invention does not limit the premise equipment type that server apparatus filters.
Hold the result of detection reported by server Receiving Agent equipment in above-mentioned steps 104, result of detection comprises the media access control address (Media Access Control Address, MAC Address) of the network equipment.Before the network equipment of server to default device type filters, need the concrete device type judging the network equipment accurately, in a kind of implementation of the embodiment of the present invention, because each network site has a MAC Address be specific to, by resolving the prefix of described MAC Address or parsing MAC Address, the concrete device type of the network equipment just can accurately be judged.In the embodiment of the present invention, the mode about the prefix by resolving described MAC Address or parsing MAC Address can with reference to existing techniques in realizing, and the embodiment of the present invention no longer repeats this.
Mode two: the network equipment in predetermined local area network (LAN) is filtered.
In this implementation, server can also by filtering the network equipment in predetermined local area network (LAN), wherein, the network equipment in predetermined local area network (LAN) comprises, whole local area network or the whole network equipment, partial network devices, the partial network devices faced in local area network (LAN) in local area network facing local area network (LAN).Exemplary, when server filters the partial network devices in local area network, partial network devices in described local area network may comprise the network equipment of certain subnet in local area network, also the network equipment that in local area network, certain refers in particular to may be comprised, therefore, server can filter the network equipment according to the IP address of the network equipment, such as, server is by resolving IP address, and obtain network number and the host number of this IP address, can judge whether the network equipment that will filter belongs to the network equipment of certain subnet based on the network number got, if the determination result is YES, then this network equipment is filtered, if judged result is no, then this network equipment is retained, can judge whether the network equipment that will filter belongs to certain network equipment refered in particular to based on the host number got, if the determination result is YES, then this network equipment be filtered, if judged result is no, then this network equipment be retained.Just achieve server thus to filter the network equipment in predetermined network equipment.
Mode three: the premise equipment type in predetermined local area network (LAN) is filtered.
This implementation is combined aforesaid way one and mode two, realizes server and filter the premise equipment type in predetermined local area network (LAN).As shown in Figure 3, Fig. 3 shows the schematic diagram embodiments providing server and filter the premise equipment type in predetermined local area network (LAN), first, the result of detection about the network equipment in local area network (LAN) A, local area network (LAN) B, local area network (LAN) C, local area network (LAN) D that server reports according to agent equipment, after determining that network equipment quantity is greater than amount threshold, server selects do not have the local area network (LAN) of subnet division to filter in local area network (LAN) A, local area network (LAN) B, local area network (LAN) C, local area network (LAN) D, now local area network (LAN) C, local area network (LAN) D is filtered; Then, server selects the premise equipment type in the subnet 1 of local area network (LAN) A, local area network (LAN) B to be that the network equipment of virtual machine filters respectively, and the premise equipment type just realized thus in server local area network A, local area network (LAN) B is that the network equipment of virtual machine filters.Wherein, judge how to judge that premise equipment type is the relevant description of virtual machine about server, please refer to the relevant description in aforesaid way two, the embodiment of the present invention no longer repeats at this.
204, instruction does not start the local area network (LAN) startup detection of detection.
When network equipment quantity is less than amount threshold, server is by checking detection daily record, selection comprises agent equipment and does not start the local area network (LAN) startup detection of detection, issue the notice starting detection to the agent equipment selected simultaneously, force this agent equipment to start detection, thus the error rate of server detection network equipment can be reduced.Wherein, detection daily record is for recording the attribute information of the network equipment in local area network (LAN), whether opening the information such as device identification of detecting server, the network equipment, and the embodiment of the present invention does not limit the particular content in detection daily record.
It should be noted that, the result of detection that server Receiving Agent equipment reports comprises MAC Address, in the embodiment of the present invention, described MAC Address is except having and can accurately judging the concrete device type of the network equipment, and MAC Address is also as the device identification of the network equipment.
In prior art, using the device identification of IP address as the network equipment, but, owing to may open DynamicHost in local area network (LAN), agreement (Dynamic Host Configuration Protocol is set, DHCP) serve, and the IP address under DHCP service easily changes, therefore, IP address can not as the unique device identification of the network equipment, and the result that server may be caused to detect the network equipment is inaccurate.In order to the accuracy that Deterministic service device detects the network equipment, the embodiment of the present invention is using the unique device identity of MAC Address as the network equipment, when server detects the network equipment, avoid and that cause error uncertain due to device identification, ensure that the accuracy that server detects the network equipment thus.Optionally, the corresponding relation of the MAC Address of the network equipment and IP address is carried out binding and processes, because MAC Address can the unique identification network equipment, then the MAC Address after binding process and IP address also can as the device identifications of the network equipment.
Further, the method that the embodiment of the present invention provides the another kind of network equipment to detect, the method is applied to network equipment side, and as shown in Figure 4, the method comprises:
401, the exploration policy that issues of reception server.
Agent equipment is not before receiving the exploration policy that server issues, and can receive other operational order, such as, user uses copy editor's instrument to carry out editor's word, uses drawing instrument to carry out drawing etc.; After agent equipment receives the exploration policy that server issues, while agent equipment performs the operational order that other network equipments perform, can also based on the related content in exploration policy implementation strategy information.In actual applications, can be understood as agent equipment and perform under background mode based on the related content in exploration policy implementation strategy information, the operational order that agent equipment performs other network equipment execution can't be affected.
402, based on exploration policy, the network equipment is detected, and obtain result of detection.
This step corresponds to server in above-mentioned steps 103 and issues exploration policy to agent equipment, and exploration policy comprises following at least one Policy Info: detection protocol type, end of probe slogan, IP(Internet Protocol) IP network section, detect cycle and detection period.Wherein, about the associated description of policy information, please refer to the associated description of any one policy information as above, the embodiment of the present invention repeats no more herein.
403, result of detection is reported to server.
Wherein, about the description of result of detection in this step, please refer to the detailed description of server side about result of detection, the embodiment of the present invention no longer repeats herein.
The method of the network equipment detection that the embodiment of the present invention provides, server obtains the attribute information of the network equipment in local area network (LAN), from the network equipment, agent equipment is selected according to this attribute information, and issue exploration policy to this agent equipment, agent equipment receives this exploration policy, according to this exploration policy, the network equipment is detected, the result detected is reported server.Respectively carry out detection compared with by server to each network equipment in local area network (LAN) with prior art, the embodiment of the present invention is configured exploration policy at server end, and this exploration policy is handed down to proxy server, without the need to the participation of server in detection network device procedures, but detected by other network equipments in agent equipment local area network, the detection distributed arranged side by side that this slack resources of agent equipment realizes each local area network (LAN) can be made full use of, greatly save the elapsed time that the network equipment is detected.
The too much problem of the quantity of probe data packet is sent to the network equipment in order to solve server in prior art, in the embodiment of the present invention, the task of detection network equipment is transferred in agent equipment by server, agent equipment sends probe data packet based on exploration policy to the network equipment and carries out network equipment detection, thus solves server in prior art and send the too much problem of probe data packet quantity to the network equipment.
As to the refinement detected the network equipment based on exploration policy in step 402 and expansion, the embodiment of the present invention can adopt but be not limited to following mode and realize:
First, agent equipment sends probe data packet based on exploration policy to the network equipment.
Agent equipment sends probe data packet based on the detection protocol type in exploration policy to the network equipment, often there is different detection protocol types in different exploration policy, and agent equipment will select different detection protocol types in conjunction with different exploration policy.When agent equipment execution carries out network detection to local area network, can adopt but be not limited to and use following agreement, such as, use network basic input/output (NetBios Services Protocols, NetBios) agreement, address resolution (Address Resolution Protocol, ARP) agreement; Or, use transmission to control (Transmission Control Protocol, TCP) agreement, user data package (User DatagramProtocol, UDP) agreement etc.When agent equipment perform to face local area network (LAN) carry out network detection time, can adopt but be not limited to and use following agreement, such as, use NetBios agreement; Or, use Internet to control message (Internet Control Message Protocol, ICMP) agreement, Transmission Control Protocol etc.Concrete, the protocol type that the embodiment of the present invention uses when carrying out network detection at agent equipment does not limit.
Agent equipment sends after probe data packet to the network equipment, receives the echo packet that in local area network (LAN), each network equipment returns, comprises the MAC Address of the network equipment self in echo packet.In the embodiment of the present invention, in echo packet except including the MAC Address of the network equipment self, also comprise the IP address of the network equipment self, the user name, group name etc. of the network equipment, the embodiment of the present invention does not limit the content comprised in echo packet.It should be noted that, described MAC Address is the device identification of the network equipment, and relevant MAC Address is the associated description that the detailed description of device identification please refer to about MAC Address in server side, and the embodiment of the present invention no longer repeats herein.
When agent equipment carries out network detection based on NetBios agreement to local area network, probe data packet is sent to the network equipment, the described network equipment responds this probe data packet, and sending NetBios protocol massages to agent equipment, agent equipment receives and resolves this NetBios protocol massages.Wherein, in described NetBios protocol massages, comprise source IP address, object IP address, the MAC Address, data field etc. of source MAC, gateway; Agent equipment can obtain the MAC Address of the network equipment, the information such as user name, group name of the network equipment from the data field of described NetBios protocol massages.Now, the MAC Address of the network equipment that agent equipment obtains is the MAC Address of the network equipment correct in the network equipment.But, when sending probe data packet based on NetBios agreement to the network equipment, some network equipments in this local area network (LAN) can't return echo packet to agent equipment, therefore, the quantity of the network equipment that agent equipment may be caused to detect is less than the quantity of the network equipment of the reality in local area network (LAN).
When sending probe data packet based on NetBios agreement to the network equipment for solving, some network equipments in this local area network (LAN) can not return the problem of echo packet to agent equipment, in the another kind of implementation of the embodiment of the present invention, agent equipment detects the network equipment in local area network based on ARP agreement, can ensure that each network equipment in local area network (LAN) all can return echo packet to agent equipment.When but agent equipment sends detection data based on ARP agreement to the network equipment, not only each network equipment returns echo packet to agent equipment, and LAN gateway also can return echo packet to agent equipment, carry himself MAC Address of the IP address of the network equipment in local area network and LAN gateway in the echo packet that LAN gateway returns, form gateway deception.
An arp cache table can be stored in agent equipment, about arp cache table, as described in Table 1:
Table 1
IP address |
MAC Address |
192.168.1.1 |
00-aa-00-62-c6-09 |
192.168.1.2 |
00-aa-00-62-c5-03 |
192.168.1.3 |
00-aa-01-75-c3-06 |
…… |
…… |
As can be seen from the above table, the IP address of recording in this arp cache table and MAC Address are one to one, and this buffer memory represents dynamic memory.When LAN gateway sends echo packet to agent equipment, agent equipment checks the echo packet receiving LAN gateway, and the corresponding relation of the IP address-MAC Address stored in the corresponding relation of the IP address-MAC Address in the echo packet of LAN gateway and arp cache table is compared, if comparison result is inconsistent, then the corresponding relation of previous IP address-MAC Address is updated to the corresponding relation of the IP address-MAC Address in the echo packet of the LAN gateway newly received.So, the MAC Address of himself that agent equipment provides according to LAN gateway, causes agent equipment successfully probe data packet to be sent on other network equipments.Wherein, arp cache table is only exemplary citing, and the embodiment of the present invention does not limit the content in arp cache table.
Based on the gateway deception function that gateway has himself, in the improvement project of the embodiment of the present invention, the echo packet of real echo packet and LAN gateway deception can be judged for ease of agent equipment, the MAC Address of LAN gateway, after receiving the echo packet that LAN gateway returns, is deleted by agent equipment.As shown in table 2, the corresponding relation of IP address-MAC Address that LAN gateway reports is have recorded in table 2, wherein, in table 2, the IP address of record is the IP address of the network equipment in whole local area network (LAN), and MAC Address corresponding to IP address is the MAC Address of LAN gateway.
Table 2
IP address |
MAC Address |
192.168.1.1 |
00-aa-01-75-a5-08 |
192.168.1.2 |
00-aa-01-75-a5-08 |
192.168.1.3 |
00-aa-01-75-a5-08 |
…… |
00-aa-01-75-a5-08 |
In a kind of implementation of the embodiment of the present invention, agent equipment is after the echo packet receiving LAN gateway transmission, resolve this echo packet, obtain the corresponding relation of IP address-MAC Address that LAN gateway sends, the corresponding relation recording IP address-MAC Address in the corresponding relation of the IP address-MAC Address of record in table 1 and table 2 is compared, and IP address in table 2 is different, and the corresponding relation of the identical IP address-MAC Address of MAC Address is deleted, so just can solve the problem of the gateway deception existed when agent equipment carries out the detection of this web network equipment.In the another kind of implementation of the embodiment of the present invention, the generation of cheating to prevent LAN gateway, before agent equipment detects, the IP address of the network equipment in local area network (LAN) and MAC Address can also be bound, the problem of the gateway deception occurred when avoiding agent equipment to detect.The embodiment of the present invention does not limit the embodiment how agent equipment prevents gateway from cheating.
Further, agent equipment sends ARP packet based on exploration policy to other network equipments, the network equipment in local area network (LAN) is more, the quantity sending ARP packet is more, and frequency is faster, but himself has anti-attack ability due to agent equipment, when agent equipment transmission ARP Packet Generation frequency exceedes critical frequency, just can cut off the connection of agent equipment and other network equipments, therefore, this agent equipment will be caused based on exploration policy can not to complete the task of detection network equipment.In order to solve the problem, agent equipment is before detecting other network equipments based on exploration policy, the configuration parameter of the transmission frequency of the ARP packet that reception server issues, the configuration parameter of the transmission frequency of this ARP packet is less than or equals the critical frequency of agent equipment, guarantee the proper communication of agent equipment and other network equipments, therefore, this agent equipment can detect the network equipment based on exploration policy.
Further, before detecting the network equipment based on exploration policy, the investigative range instruction that agent equipment reception server issues, detects according to investigative range instruction.Wherein, the investigative range instruction in the invention process comprises: Home Network detection, face net detection, the subnet detection in Home Network, the IP section detection in Home Network, the subnet detection of facing in net, face IP section detection in net and particular network device.Server is before issuing investigative range instruction to agent equipment, often the local area network (LAN) in investigative range instruction is identified, so that agent equipment is when receiving investigative range instruction, can detect according to the instruction of this investigative range fast, and belong to Home Network still face net without the need to calculating investigative range.Exemplary, suppose, there are local area network (LAN) A, local area network (LAN) B, local area network (LAN) C, local area network (LAN) D, local area network (LAN) E, wherein, agent equipment is arranged in local area network (LAN) B, and the investigative range instruction that server issues to agent equipment comprises: detect Home Network, host number is 36-50 in local area network E particular network device detects, local area network D detects.Before server issues investigative range instruction to agent equipment, meeting local area network office B, local area network (LAN) E, local area network (LAN) D identify, and are designated local area network (LAN) office B
t, local area network (LAN) E
t, local area network (LAN) D
t, and the information after mark is sent to agent equipment, agent equipment is to the local area network (LAN) office B after mark
t, local area network (LAN) D
tdetect, find local area network (LAN) E
tafter, according to local area network (LAN) E
tthe IP address of the middle network equipment and subnet mask, calculate local area network (LAN) E
tmiddle host number is the network equipment of 36-50.In the another kind of implementation of the embodiment of the present invention, if do not identify investigative range instruction before issue investigative range instruction to agent equipment at server, then agent equipment is after receiving investigative range instruction, go out to need the scope of detection by IP address and subnet mask account, and the network equipment in this investigative range is detected.The concrete embodiment of the present invention does not limit this.
In the application of reality, when agent equipment carries out facing net detection based on investigative range instruction, first need the gateway status detecting gateway, when gateway status is presence, agent equipment can detect facing net.If gateway status is not presence, then illustrating that agent equipment needs the net that faces of detection to be non-existent, therefore, without the need to sending probe data packet to the network equipment faced in net again, it being detected.Send compared with probe data packet with server in prior art to the network equipment in local area network (LAN), the method that the embodiment of the present invention provides effectively can reduce the rate of giving out a contract for a project sending probe data packet.Wherein, when agent equipment detects the gateway status of gateway, can adopt but be not limited to following mode and realize, such as, agent equipment is by the gateway status of ICMP protocol detection gateway; Or, the gateway status of gateway is detected by ping order.The implementation of the concrete embodiment of the present invention to the gateway status detecting gateway does not limit.
In the application of reality, can also have multiple agent equipment in a local area network (LAN), as shown in Figure 5, Fig. 5 shows the schematic diagram having multiple agent equipment in local area network (LAN) that the embodiment of the present invention provides.Assuming that server have selected two agent equipments in local area network (LAN) A, be respectively agent equipment 1, agent equipment 2, and indicate agent equipment 1, agent equipment 2 local area network A, local area network (LAN) B, local area network (LAN) C carry out network equipment detection.Because the agent equipment that can perform detection mission is two, when detecting the network equipment based on exploration policy, can adopt but be not limited to following method, such as, between agent equipment 1 and agent equipment 2, select an agent equipment to carry out facing net detection, another agent equipment carries out Home Network detection, as agent equipment 1 carries out Home Network detection, agent equipment 2 to facing net local area network (LAN) B, local area network (LAN) C detects; Or agent equipment 1, agent equipment 2 detect Home Network simultaneously, after Home Network is detected, at the same time other the net that faces is detected.In embodiments of the present invention, server can select the quantity of agent equipment according to the actual quantity of the network equipment in local area network (LAN), if the actual quantity of the network equipment is many in local area network (LAN), then can select multiple agent equipment; If the actual quantity of the network equipment is fewer in local area network (LAN), then can select an agent equipment, the concrete embodiment of the present invention does not limit selecting the concrete quantity of agent equipment.
It should be noted that, when there is at least two agent equipments in same local area network (LAN), those agent equipments need to identify the probed network equipment, and inform that other agent equipments are without the need to again detecting the network equipment after mark, avoid the same network equipment by the detection of different agent equipments repeatedly, the quantity of the network equipment that agent equipment may be caused to detect is greater than the quantity of the actual network equipment.
Hold by above-mentioned, being described in detail, below only will carrying out specific descriptions to facing net detection to agent equipment for agent equipment to Home Network detection, as shown in Figure 6, Fig. 6 shows agent equipment that the embodiment of the present invention provides to the schematic diagram facing net and detect.Suppose, there is N number of local area network (LAN) (N>=2), and server selects agent equipment in local area network (LAN) 1, when agent equipment only detects the network equipment facing local area network (LAN), the network equipment that agent equipment faces in net respectively to those sends probe data packet respectively, and receives the result of facing the detection that the network equipment returns in net, and result of detection is reported server, thus, agent equipment is just achieved only to the detection of facing web network equipment.Agent equipment detects facing net, and can be applied to face in net does not have the qualified network equipment as in the scene of agent equipment.
Further, after server receives the result of detection that agent equipment reports, network system administrator can carry out network inventory management, service upgrade, system monitoring and security scan etc. according to result of that probe.In order to can more can be clear, easy the result of detection that utilizes carry out network operation, in a kind of implementation of the embodiment of the present invention, server is after receiving result of detection, according to IP section, the property parameters of the network equipment in local area network (LAN), IP address, MAC Address etc. are carried out classification display, exemplary, as shown in table 3, table 3 shows server and according to IP section is: the network equipment is carried out classification display by 192.168.2.1-192.168.2.254.Wherein, exemplary citing is only in table 3.
Table 3
IP address |
MAC Address |
Property parameters |
192.168.2.1 |
00-ba-08-67-c9-21 |
CUP occupancy is 20% |
192.168.2.2 |
00-ba-08-67-c9-21 |
CUP occupancy is 34% |
192.168.2.3 |
00-23-5A-15-99-42 |
CUP occupancy is 78% |
192.168.2.4 |
00-12-5A-15-36-58 |
CUP occupancy is 12% |
…… |
…… |
…… |
In the another kind of implementation of the embodiment of the present invention, after server receives result of detection, can carry out classification display according to the dissimilar of the network equipment, the type of the network equipment comprises: PC, printer, switch, router, mobile phone, panel computer, virtual machine etc.The concrete mode of the embodiment of the present invention to network equipment classification display is not restricted.
Further, as the realization to said method, embodiments provide the device of a kind of network equipment detection, this device can be arranged in server, also and data interaction relation can be had between server, in order to realize the method shown in different execution modes that above-described embodiment provides independent of server.As shown in Figure 7, this device comprises:
Acquiring unit 71, for obtaining the attribute information of the network equipment in local area network (LAN);
Selected cell 72, selects agent equipment for the attribute information obtained according to acquiring unit 71 from the network equipment;
Issue unit 73, issue exploration policy for the agent equipment selected to selected cell 72, so that agent equipment detects other network equipments based on exploration policy, and obtain result of detection;
Receiving element 74, for Receiving Agent equipment report according to the result of detection issuing exploration policy that unit 73 issues and obtain.
Further, the attribute information that acquiring unit 71 obtains comprises client and installs mark, and whether client is installed mark and be used for token network equipment and be provided with and can carry out the particular clients of direct communication with server;
Selected cell 72 for, based on client, mark is installed, selects to be provided with the network equipment of particular clients.
Further, the attribute information that acquiring unit 71 obtains also comprises the performance parameter of the network equipment;
Selected cell 72 for, in the network equipment being provided with particular clients, selectivity parameter higher than the network equipment of parameter preset threshold value as agent equipment.
Further, issue unit 73 for, the following at least one Policy Info: detection protocol type issued to agent equipment, end of probe slogan, IP(Internet Protocol) IP network section, detect cycle and detection period.
Further, issue unit 73 also for before the result of detection that reports at receiving element 74 Receiving Agent equipment, issue the configuration parameter of the transmission frequency of ARP packet to agent equipment.
Further, as shown in Figure 8, described device comprises further:
First indicating member 75, for before the result of detection that reports at receiving element 74 Receiving Agent equipment, instruction agent equipment carries out Home Network detection and/or faces net detection.
Further, receiving element 74 is for, the network equipment quantity that Receiving Agent equipment reports;
Further, as shown in Figure 8, described device comprises further:
Comparing unit 76, for after the result of detection that reports at receiving element 74 Receiving Agent equipment, compares network equipment quantity and the amount threshold preset;
Filter element 77, for when the network equipment quantity of comparing unit 76 comparison is greater than amount threshold, filters the network equipment after detection;
Second indicating member 78, for when the network equipment quantity of comparing unit 76 comparison is less than amount threshold, the local area network (LAN) that instruction does not start detection starts detection.
Further, filter element 77 for, the network equipment of premise equipment type is filtered.
Further, filter element 77 for, the network equipment in predetermined local area network (LAN) is filtered.
Further, the second indicating member 78 for, check detection daily record, select comprise agent equipment and do not start detection local area network (LAN) start detection.
Further, comprise the device identification of the network equipment in the result of detection that receiving element 74 receives, device identification is MAC address.
Further, as the realization to said method, the device that the embodiment of the present invention also provides a kind of network equipment to detect, this device is arranged in agent equipment, and as shown in Figure 9, device comprises:
Receiving element 81, for the exploration policy that reception server issues;
Probe unit 82, detects the network equipment for the exploration policy received based on receiving element 81, and obtains result of detection;
Report unit 83, the result of detection detected for reporting probe unit 82 to server.
Further, it is characterized in that, the following at least one Policy Info: detection protocol type that receiving element 81 issues for, reception server, end of probe slogan, IP(Internet Protocol) IP network section, detect cycle and detection period.
Further, as shown in Figure 10, probe unit 82, comprising:
First sending module 821, for sending probe data packet based on exploration policy to the network equipment;
First receiver module 822, for receiving the echo packet that each network equipment in local area network (LAN) returns, comprises the MAC address of the network equipment self in echo packet;
First receiver module 822 also for, the echo packet that office of acceptance's area network gateway returns, comprises the MAC Address of LAN gateway in echo packet;
Removing module 823, the MAC Address for the LAN gateway received by the first receiver module 822 is deleted.
Further, as shown in Figure 10, probe unit 82, also comprises:
Second sending module 824, for sending probe data packet based on exploration policy to the network equipment;
Second receiver module 825, for the protocol massages that office of acceptance's area network gateway sends;
Acquisition module 826, for obtaining the MAC Address of the network equipment in the data field of protocol massages that receives from the second receiver module 825.
Further, receiving element 81 also for, before probe unit 82 pairs of network equipments detect, the configuration parameter of the transmission frequency of the ARP packet that reception server issues;
Probe unit 82 also for, the configuration parameter received based on receiving element 81 detects the network equipment.
Further, receiving element 81 also for, before probe unit 82 pairs of network equipments detect, the instruction of investigative range that reception server issues, investigative range instruction is used to indicate to be carried out Home Network detection and/or faces net detection;
Probe unit 82 also for, the instruction of the investigative range that receives according to receiving element 81 is carried out Home Network detection and/or is faced net detection.
Further, as shown in Figure 10, device comprises further:
Detecting unit 84, for carry out facing net detection at probe unit 82 before, detects the gateway status of facing net gateway;
Probe unit 82, for when the gateway status that detecting unit 84 detects is presence, carries out facing net detection.
Further, comprise the device identification of the network equipment in the result of detection that probe unit 82 detects, device identification is MAC Address.
Further, as to the realization of said method and the application of said apparatus, as shown in figure 11, embodiments provide the system of a kind of network equipment detection, system comprises: server 91 and agent equipment 92, wherein,
Server 91 for, obtain the attribute information of the network equipment in local area network (LAN), from the network equipment, select agent equipment 92 according to attribute information, issue exploration policy to agent equipment 92;
Agent equipment 92 for, the exploration policy that reception server 91 issues, detects the network equipment based on exploration policy, and obtains result of detection, reports result of detection to server 91;
Server 91 is also for, the result of detection that Receiving Agent equipment 92 reports.
The Apparatus and system of the network equipment detection that the embodiment of the present invention provides, server obtains the attribute information of the network equipment in local area network (LAN), from the network equipment, agent equipment is selected according to this attribute information, and issue exploration policy to this agent equipment, agent equipment receives this exploration policy, according to this exploration policy, the network equipment is detected, the result detected is reported server.Respectively carry out detection compared with by server to each network equipment in local area network (LAN) with prior art, the embodiment of the present invention is configured exploration policy at server end, and this exploration policy is handed down to proxy server, without the need to the participation of server in detection network device procedures, but detected by other network equipments in agent equipment local area network, the detection distributed arranged side by side that this slack resources of agent equipment realizes each local area network (LAN) can be made full use of, greatly save the elapsed time that the network equipment is detected.
Embodiments of the invention disclose:
The method of A1, a kind of network equipment detection, it is characterized in that, described method comprises:
Obtain the attribute information of the network equipment in local area network (LAN);
From the network equipment, agent equipment is selected according to described attribute information;
Issue exploration policy to described agent equipment, so that described agent equipment detects other network equipments based on described exploration policy, and obtain result of detection;
Receive the described result of detection that described agent equipment reports.
A2, method according to claim A1, is characterized in that, described attribute information comprises client and installs mark, and whether described client is installed mark and be used for token network equipment and be provided with and can carry out the particular clients of direct communication with server;
Describedly from the network equipment, select agent equipment according to described attribute information, comprising:
Based on described client, mark is installed, selects the network equipment being provided with described particular clients.
A3, method according to claim A2, it is characterized in that, described attribute information also comprises the performance parameter of the network equipment;
Describedly from the network equipment, select agent equipment according to described attribute information, comprising:
In the network equipment being provided with described particular clients, selectivity parameter higher than the network equipment of parameter preset threshold value as described agent equipment.
A4, method according to claim A1, is characterized in that, describedly issues exploration policy to described agent equipment, comprising:
To the following at least one Policy Info: that described agent equipment issues
Detection protocol type, end of probe slogan, IP(Internet Protocol) IP network section, detect cycle and detection period.
A5, method according to claim A1, it is characterized in that, before the described result of detection that the described agent equipment of described reception reports, described method comprises further:
The configuration parameter of the transmission frequency of ARP packet is issued to described agent equipment.
A6, method according to claim A1, it is characterized in that, before the described result of detection that the described agent equipment of described reception reports, described method comprises further:
Indicate described agent equipment to carry out Home Network detection and/or face net detection.
A7, method according to claim A1, is characterized in that the described result of detection that the described agent equipment of described reception reports comprises:
Receive the network equipment quantity that described agent equipment reports;
After the described result of detection that the described agent equipment of described reception reports, described method comprises further:
Described network equipment quantity and the amount threshold preset are compared;
If described network equipment quantity is greater than described amount threshold, then the network equipment after detection is filtered;
If described network equipment quantity is less than described amount threshold, then the local area network (LAN) not starting detection is indicated to start detection.
A8, method according to claim A7, is characterized in that, describedly filters the network equipment after detection, comprising:
The network equipment of premise equipment type is filtered.
A9, method according to claim A7, is characterized in that, describedly filters the network equipment after detection, comprising:
The network equipment in predetermined local area network (LAN) is filtered.
A10, method according to claim A7, is characterized in that, the local area network (LAN) that described instruction does not start detection starts detection, comprising:
Check detection daily record, selection comprises agent equipment and does not start the local area network (LAN) startup detection of detection.
A11, method according to any one of claim A1 to A10, it is characterized in that, comprise the device identification of the described network equipment in described result of detection, described device identification is MAC address.
The method of B12, a kind of network equipment detection, it is characterized in that, described method comprises:
The exploration policy that reception server issues;
Based on described exploration policy, the network equipment is detected, and obtain result of detection;
Described result of detection is reported to described server.
B13, method according to claim B12, is characterized in that the exploration policy that described reception server issues comprises:
Receive the following at least one Policy Info: that described server issues
Detection protocol type, end of probe slogan, IP(Internet Protocol) IP network section, detect cycle and detection period.
B14, method according to claim B12, is characterized in that, describedly detects the network equipment based on described exploration policy, comprising:
Probe data packet is sent to the described network equipment based on described exploration policy;
Receive the echo packet that in local area network (LAN), each network equipment returns, in described echo packet, comprise the MAC address of the described network equipment self;
The echo packet that office of acceptance's area network gateway returns, comprises the MAC Address of described LAN gateway in described echo packet;
The MAC Address of described LAN gateway is deleted.
B15, method according to claim B12, is characterized in that, describedly detects the network equipment based on described exploration policy, comprising:
Probe data packet is sent to the described network equipment based on described exploration policy;
The protocol massages that office of acceptance's area network gateway sends, obtains the MAC Address of the described network equipment from the data field of described protocol massages.
B16, method according to claim B12, is characterized in that, described based on described exploration policy the network equipment to be detected before, described method comprises further:
Receive the configuration parameter of the transmission frequency of the ARP packet that described server issues;
Based on described configuration parameter, the described network equipment is detected.
B17, method according to claim B12, is characterized in that, described based on described exploration policy the network equipment to be detected before, described method comprises further:
Receive the investigative range instruction that described server issues, described investigative range instruction is used to indicate to be carried out Home Network detection and/or faces net detection;
Carry out Home Network detection according to described investigative range instruction and/or face net detection.
B18, method according to claim B17, is characterized in that, before carrying out facing net detection, described method comprises further:
Detect the gateway status of facing net gateway;
If described gateway status is presence, then carry out facing net detection.
B19, method according to any one of claim B12 to B18, it is characterized in that, comprise the device identification of the described network equipment in described result of detection, described device identification is MAC Address.
The device of C20, a kind of network equipment detection, it is characterized in that, described device comprises:
Acquiring unit, for obtaining the attribute information of the network equipment in local area network (LAN);
Selected cell, selects agent equipment for the described attribute information obtained according to described acquiring unit from the network equipment;
Issue unit, issue exploration policy for the described agent equipment selected to described selected cell, so that described agent equipment detects other network equipments based on described exploration policy, and obtain result of detection;
Receiving element, for receive that described agent equipment reports according to described in issue the described result of detection that exploration policy that unit issues obtains.
C21, device according to claim C20, it is characterized in that, the attribute information that described acquiring unit obtains comprises client and installs mark, and whether described client is installed mark and be used for token network equipment and be provided with and can carry out the particular clients of direct communication with server;
Described selected cell is used for, and installs mark based on described client, selects the network equipment being provided with described particular clients.
C22, device according to claim C21, is characterized in that, the attribute information that described acquiring unit obtains also comprises the performance parameter of the network equipment;
Described selected cell is used for, in the network equipment being provided with described particular clients, selectivity parameter higher than the network equipment of parameter preset threshold value as described agent equipment.
C23, device according to claim C20, it is characterized in that, described issue unit for, the following at least one Policy Info: detection protocol type issued to described agent equipment, end of probe slogan, IP(Internet Protocol) IP network section, detect cycle and detection period.
C24, device according to claim C20, it is characterized in that, describedly issue unit also for before receive described result of detection that described agent equipment reports at described receiving element, issue the configuration parameter of the transmission frequency of ARP packet to described agent equipment.
C25, device according to claim C20, it is characterized in that, described device comprises further:
First indicating member, for receive described result of detection that described agent equipment reports at described receiving element before, indicates described agent equipment to carry out Home Network detection and/or faces net detection.
C26, device according to claim C20, it is characterized in that, described receiving element is used for, and receives the network equipment quantity that described agent equipment reports;
Described device comprises further:
Comparing unit, for receive described result of detection that described agent equipment reports at described receiving element after, compares described network equipment quantity and the amount threshold preset;
Filter element, for when the described network equipment quantity of described comparing unit comparison is greater than described amount threshold, filters the network equipment after detection;
Second indicating member, for when the described network equipment quantity of described comparing unit comparison is less than described amount threshold, the local area network (LAN) that instruction does not start detection starts detection.
C27, device according to claim C26, it is characterized in that, described filter element is used for, and filters the network equipment of premise equipment type.
C28, device according to claim C26, it is characterized in that, described filter element is used for, and filters the network equipment in predetermined local area network (LAN).
C29, device according to claim C26, it is characterized in that, described second indicating member is used for, and checks detection daily record, selects to comprise agent equipment and the local area network (LAN) not starting detection starts detection.
C30, device according to any one of claim C20 to C29, is characterized in that, comprise the device identification of the described network equipment in the result of detection that described receiving element receives, described device identification is MAC address.
The device of D31, a kind of network equipment detection, it is characterized in that, described device comprises:
Receiving element, for the exploration policy that reception server issues;
Probe unit, detects the network equipment for the described exploration policy received based on described receiving element, and obtains result of detection;
Report unit, for the described result of detection reporting described probe unit to detect to described server.
D32, device according to claim D31, it is characterized in that, described receiving element is used for, and receives following at least one Policy Info: detection protocol type that described server issues, end of probe slogan, IP(Internet Protocol) IP network section, detect cycle and detection period.
D33, device according to claim D31, it is characterized in that, described probe unit, comprising:
First sending module, for sending probe data packet based on described exploration policy to the described network equipment;
First receiver module, for receiving the echo packet that each network equipment in local area network (LAN) returns, comprises the MAC address of the described network equipment self in described echo packet;
Described first receiver module also for, the echo packet that office of acceptance's area network gateway returns, comprises the MAC Address of described LAN gateway in described echo packet;
Removing module, the MAC Address for the described LAN gateway received by described first receiver module is deleted.
D34, device according to claim D31, it is characterized in that, described probe unit, also comprises:
Second sending module, for sending probe data packet based on described exploration policy to the described network equipment;
Second receiver module, for the protocol massages that office of acceptance's area network gateway sends;
Acquisition module, for obtaining the MAC Address of the described network equipment in the data field of described protocol massages that receives from described second receiver module.
D35, device according to claim D31, it is characterized in that, described receiving element also for, before described probe unit detects the network equipment, receive the configuration parameter of the transmission frequency of the ARP packet that described server issues;
Described probe unit also for, the described configuration parameter received based on described receiving element detects the described network equipment.
D36, device according to claim D31, it is characterized in that, described receiving element also for, before described probe unit detects the network equipment, receive the investigative range instruction that described server issues, described investigative range instruction is used to indicate to be carried out Home Network detection and/or faces net detection;
Described probe unit also for, the described investigative range instruction received according to described receiving element is carried out Home Network detection and/or is faced net detection.
D37, device according to claim D36, it is characterized in that, described device comprises further:
Detecting unit, for carry out facing net detection at described probe unit before, detects the gateway status of facing net gateway;
Described probe unit, for when the described gateway status that described detecting unit detects is presence, carries out facing net detection.
D38, device according to any one of claim D31 to D37, it is characterized in that, comprise the device identification of the described network equipment in the described result of detection that described probe unit detects, described device identification is MAC Address.
The system of E39, a kind of network equipment detection, it is characterized in that, described system comprises: server and agent equipment, wherein,
Described server is used for, and obtains the attribute information of the network equipment in local area network (LAN), selects described agent equipment, issue exploration policy to described agent equipment according to described attribute information from the network equipment;
Described agent equipment is used for, and receives the described exploration policy that described server issues, detects, and obtain result of detection based on described exploration policy to the network equipment, report described result of detection to described server;
Described server also for, receive the described result of detection that described agent equipment reports.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
Be understandable that, the correlated characteristic in said method and device can reference mutually.In addition, " first ", " second " in above-described embodiment etc. are for distinguishing each embodiment, and do not represent the quality of each embodiment.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In specification provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary compound mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in the denomination of invention of the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computer of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.