CN105049243A - User MAC positioning method, user MAC positioning system and user MAC positioning server - Google Patents

User MAC positioning method, user MAC positioning system and user MAC positioning server Download PDF

Info

Publication number
CN105049243A
CN105049243A CN201510372992.5A CN201510372992A CN105049243A CN 105049243 A CN105049243 A CN 105049243A CN 201510372992 A CN201510372992 A CN 201510372992A CN 105049243 A CN105049243 A CN 105049243A
Authority
CN
China
Prior art keywords
module
user mac
thread
user
mac
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.)
Pending
Application number
CN201510372992.5A
Other languages
Chinese (zh)
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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication Technology 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201510372992.5A priority Critical patent/CN105049243A/en
Publication of CN105049243A publication Critical patent/CN105049243A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0213Standardised network management protocols, e.g. simple network management protocol [SNMP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a user MAC positioning method, a user MAC positioning system and a user MAC positioning server. The user MAC positioning method comprises a user MAC positioning program. The user MAC positioning program comprises the following steps: creating a thread pool, and limiting the number of concurrent threads; creating a positioning task thread corresponding to each device by taking acquired device information of the device and a corresponding user MAC address as parameters, and submitting the positioning task threads to the thread pool for activation; after all the positioning task threads in the thread pool are executed, judging the return value of each positioning task thread; if a return value is not a null character string, determining that the corresponding user MAC is positioned; or closing the thread pool, and returning information of the devices in which a user MAC is positioned and a positioning result. By adopting a remote calling principle and a multi-thread mechanism, the function of user MAC positioning in a network management system is achieved, the complexity of user MAC positioning implementation in the network management system is reduced, and the efficiency of user MAC positioning is improved.

Description

A kind of user MAC localization method, system and server
Technical field
The invention belongs to technical field of network management, relate to a kind of localization method, particularly relate to a kind of user MAC localization method, system and server.
Background technology
Network management comprises the use to hardware, software and manpower, comprehensive and coordination, to monitor Internet resources, test, configure, analyze, evaluate and to control, so just can meet some demands of network with reasonable prices, as real time execution performance, service quality etc.The management degree that equipment is supported reflects manageability and the operability of this equipment.Five functional is had: fault management, configuration management, performance management, safety management, accounting management according to International Organization for standardization's define grid management.
Fault management is one of function the most basic in network management.User wishes a reliable computer network.When in network, certain composition lost efficacy, network manager must find rapidly fault and get rid of in time.Usual unlikely certain fault of rapid isolation, because the producing cause of network failure is often quite complicated, particularly causes when fault is made up of multiple network jointly.In the case, generally first by network restoration, and then analyze the reason of network failure.The investigation of network problem, if according to the rules, can carry out strict registration and record to operational procedure when safeguarding and configure video server in the past, like this when dealing with problems, as long as see lower minute book, all the things all can be very clear.
MAC Address has global uniqueness, utilizes this characteristic often to investigation network failure, can bring very large convenience.Because MAC Address and equipment bind together, as long as carried out the maintenance registration work of MAC Address and concrete equipment corresponding relation, as long as be so aware of MAC Address, the equipment that MAC Address just can be found corresponding there.MAC Address is the mark identifying LAN node, is that burning is inner at network interface card (NetworkInterfaceCard, NIC), totally 48 bit long, be made up of 12 hexadecimal numerals, wherein 0 to 23 is organization unique identifier, and 24 to 47 is distributed by producer oneself.In the physical address of the network interface card Erarable Programmable Read only Memory normally by the burned network interface card of network interface card manufacturer, mark of really relying when what its stored is transmission data sends the computer of data and receives the address of main frame of data.Front 6 hexadecimal numerals of MAC Address are distributed by IEEE.By the website of IEEE, the corresponding relation of front 6 the hexadecimal numerals of MAC Address and its use Business Name just can be inquired.
User MAC location is a requisite functional requirement in network management system, but because equipment amount in the network management system in modern times is large, device type causes location efficiency low more.Prior art is located in each equipment in order, and an equipment location is less than user MAC, then to next equipment location, location efficiency is low, length consuming time, and implementation method is more complicated.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of user MAC localization method, system and server, low for solving user MAC location efficiency in existing network management system, length consuming time, the problem of implementation complexity.
For achieving the above object and other relevant objects, the invention provides a kind of user MAC localization method, described user MAC localization method comprises user MAC finder, and described user MAC finder comprises: create thread pool, limits concurrent thread number; Using the user's MAC address of the facility information of each equipment that collects and correspondence as parameter, create the location tasks thread of each equipment corresponding, and it is to be activated described location tasks thread to be committed to described thread pool etc.; After waiting for that in thread pool, all location tasks thread execution terminate, judge the return value of each location tasks thread; If return value is not null character string, then represents and navigate to user MAC; Or closedown thread pool, restoring to normal position is to the facility information of user MAC and positioning result.
Alternatively, described user MAC finder also comprises: the location tasks thread be activated is set up SNMP according to facility information and connected, and obtains the relevant MIB nodal value of corresponding device by SNMP operation; Judge whether user MAC is learnt by corresponding device, if so, then return the MIB nodal value comprising positional information; If not, then null character string is returned.
Alternatively, described user MAC finder also comprises: when described positioning result is for time empty, prompting no-fix is to user MAC; When described positioning result is not empty, create echo dialog box, format display locating information; Facility information and the positioning result of user MAC is navigated to described in described locating information comprises.
Alternatively, described user MAC localization method also comprises: create user's inputting interface, receives the user's MAC address of input, device type and equipment choice; Create the ACK button monitored on user's inputting interface described in action listener; After described ACK button is activated, judge that whether the information received by described user's inputting interface is legal; If illegal, then point out input error; If legal, then call described user MAC finder by the interface definition of common port.
The present invention also provides a kind of user MAC navigation system, and described user MAC navigation system comprises positioning service end, and described positioning service end comprises: thread pool module, creates thread pool, limits concurrent thread number; Single-threaded creation module, be connected with described thread pool module, using the user's MAC address of the facility information of each equipment that collects and correspondence as parameter, create the location tasks thread of each equipment corresponding, and it is to be activated described location tasks thread to be committed to described thread pool etc.; Result judge module, is connected with described single-threaded creation module, after waiting for that in thread pool, all location tasks thread execution terminate, judges the return value of each location tasks thread; If return value is not null character string, then represents and navigate to user MAC; Or result Executive Module, be connected with described result judge module, close thread pool, restoring to normal position is to the facility information of user MAC and positioning result.
Alternatively, described positioning service end also comprises: thread execution module, is connected with described thread pool module, and the location tasks thread be activated is set up SNMP according to facility information and connected, and obtains the relevant MIB nodal value of corresponding device by SNMP operation; Perform judge module, be connected with described thread execution module, judge whether user MAC is learnt by corresponding device, if so, then return the MIB nodal value comprising positional information; If not, then null character string is returned.
Alternatively, described positioning service end also comprises: the first result reminding module, is connected with described result Executive Module, and when described positioning result is empty, prompting no-fix is to user MAC; Second result reminding module, is connected with described result Executive Module, when described positioning result is not empty, creates echo dialog box, format display locating information; Facility information and the positioning result of user MAC is navigated to described in described locating information comprises.
Alternatively, described user MAC navigation system also comprises positioning client terminal, and described positioning client terminal comprises: input module, creates user's inputting interface, receives the user's MAC address of input, device type and equipment choice; Monitor module, be connected with described input module, create the ACK button monitored on user's inputting interface described in action listener; Judge module, is connected with input module respectively with described monitoring module, after described ACK button is activated, judges that whether the information received by described user's inputting interface is legal; First Executive Module, is connected with described judge module, if illegal, then points out input error; Or second Executive Module, be connected with described judge module, if legal, then call described user MAC finder by the interface definition of common port.
The present invention also provides a kind of user MAC location-server, and described user MAC location-server comprises: thread pool module, creates thread pool, limits concurrent thread number; Single-threaded creation module, be connected with described thread pool module, using the user's MAC address of the facility information of each equipment that collects and correspondence as parameter, create the location tasks thread of each equipment corresponding, and it is to be activated described location tasks thread to be committed to described thread pool etc.; Thread execution module, is connected with described thread pool module, and the location tasks thread be activated is set up SNMP according to facility information and connected, and obtains the relevant MIB nodal value of corresponding device by SNMP operation; Perform judge module, be connected with described thread execution module, judge whether user MAC is learnt by corresponding device, if so, then return the MIB nodal value comprising positional information; If not, then null character string is returned.Result judge module, is connected with described single-threaded creation module, after waiting for that in thread pool, all location tasks thread execution terminate, judges the return value of each location tasks thread; If return value is not null character string, then represents and navigate to user MAC; Or result Executive Module, be connected with described result judge module, close thread pool, restoring to normal position is to the facility information of user MAC and positioning result.
Alternatively, described user MAC location-server also comprises: the first result reminding module, is connected with described result Executive Module, and when described positioning result is empty, prompting no-fix is to user MAC; Second result reminding module, is connected with described result Executive Module, when described positioning result is not empty, creates echo dialog box, format display locating information; Facility information and the positioning result of user MAC is navigated to described in described locating information comprises.
As mentioned above, user MAC localization method of the present invention and system, have following beneficial effect:
The present invention adopts RMI principle and multi-thread mechanism to achieve user MAC positioning function in network management system, and this function realized modularization, reduce user MAC in network management system and locate the complexity realized, improve the efficiency that in network management system, user MAC locates.
Accompanying drawing explanation
Fig. 1 is shown as a kind of realization flow schematic diagram of the user MAC localization method described in the embodiment of the present invention.
Fig. 2 is shown as a kind of realization flow schematic diagram of the user MAC finder of the user MAC localization method described in the embodiment of the present invention.
Fig. 3 is shown as a kind of implementation structure schematic diagram of the user MAC navigation system described in the embodiment of the present invention.
Fig. 4 is shown as a kind of implementation structure schematic diagram of the positioning service end of the user MAC navigation system described in the embodiment of the present invention.
Fig. 5 is shown as a kind of implementation structure schematic diagram of the positioning client terminal of the user MAC navigation system described in the embodiment of the present invention.
Fig. 6 is shown as a kind of implementation structure schematic diagram of the user MAC location-server described in the embodiment of the present invention.
Element numbers explanation
100 user MAC navigation systems
200 positioning service ends
210,610 thread pool modules
220,620 single-threaded creation modules
230,630 thread execution modules
240,640 perform judge module
250,650 result judge modules
260,660 result Executive Modules
270,670 first result reminding modules
280,680 second result reminding modules
300 positioning client terminals
310 input modules
320 monitor module
330 judge modules
340 first Executive Modules
350 second Executive Modules
600 user MAC location-servers
S11 ~ S15 step
S21 ~ S28 step
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this specification can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this specification also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.It should be noted that, when not conflicting, the feature in following examples and embodiment can combine mutually.
It should be noted that, the diagram provided in following examples only illustrates basic conception of the present invention in a schematic way, then only the assembly relevant with the present invention is shown in graphic but not component count, shape and size when implementing according to reality is drawn, it is actual when implementing, and the kenel of each assembly, quantity and ratio can be a kind of change arbitrarily, and its assembly layout kenel also may be more complicated.
Refer to Fig. 1, the invention provides a kind of user MAC localization method, described user MAC localization method comprises:
S11, creates user's inputting interface, receives the user's MAC address of input, device type and equipment choice.Invention creates the interface of input user's MAC address and device type and equipment choice, facilitate user to input the relevant informations such as user's MAC address, device type and equipment choice, the function being equivalent to data acquisition unit of realization.
S12, creates the ACK button monitored on user's inputting interface described in action listener.The present invention also can be realized by other buttons monitoring similar ACK button.
S13, after described ACK button is activated, judges that whether the information received by described user's inputting interface is legal.
S14, if illegal, then points out input error.
S15, if legal, then calls described user MAC finder by the interface definition of common port.This step can realize user MAC finder described in RMI according to interface definition.Certainly, described user MAC finder also can realize in this locality, and precondition is the actual needs meeting user, does not affect the normal work of user side.Preferred version of the present invention is far call, like this can not the burden of adding users end, and has accomplished long-range unified management, saves cost.
User MAC localization method of the present invention is to the effect that: the interface creating input user's MAC address and device type and equipment choice, create the ACK button on monitoring action listener interface, these can complete in client.After input user's MAC address and equipment have been chosen, the process that monitoring event completes subsequent user MAC location after clicking ACK button, can be triggered.Judge the legitimacy inputted before this, if do not conform to rule prompting input error, otherwise call long range positioning method by the interface definition of common port.
Shown in Figure 2, described user MAC finder comprises:
S21, creates thread pool, limits concurrent thread number.The object of this step prevents from, because orientation range causes greatly concurrent thread number too much, affecting location efficiency.Thread pool is a kind of multiple threads form, adds task to queue in processing procedure, then after establishment thread, automatically starts these tasks.Thread pool threads is all background thread.Each thread uses the storehouse size of acquiescence, runs, and be in multiple thread units with the priority given tacit consent to.If certain thread is idle (as waited for certain event) in Managed Code, then another worker thread of insertion makes all processors keep busy by thread pool.If all thread pool threads all remain busy, but comprise the work of hang-up in queue, then thread pool will create another worker thread over time, but the number of thread exceedes maximum never.The thread exceeding maximum can be queued up, but they will wait until that other threads just start after completing.
S22, using the user's MAC address of the facility information of each equipment that collects and correspondence as parameter, creates the location tasks thread of each equipment corresponding, and it is to be activated described location tasks thread to be committed to described thread pool etc.Each location tasks thread completes identical work.
S23, the location tasks thread be activated is set up SNMP according to facility information and is connected, and obtains the relevant MIB nodal value of corresponding device by SNMP operation.The standard that SNMP (Simple Network Management Protocol) is managed by a group network forms, and comprises an application layer protocol (applicationlayerprotocol), database model (databaseschema) and one group of data object.MIB (ManagementInformationBase, management information bank) be one of content of TCP/IP NMP standard card cage, MIB defines data item that managed device must preserve, allow the operation carried out each data item and implication thereof, and namely the data variable such as control and state information of the addressable managed device of management system is all kept in MIB.
S24, judges whether user MAC is learnt by corresponding device, if so, then returns the MIB nodal value comprising positional information; If not, then null character string is returned.
S25, after waiting for that in thread pool, all location tasks thread execution terminate, judges the return value of each location tasks thread; If return value is not null character string, then represents and navigate to user MAC.
S26, closes thread pool, and restoring to normal position is to the facility information of user MAC and positioning result.
S27, when described positioning result is empty, prompting no-fix is to user MAC.
S28, when described positioning result is not empty, creates echo dialog box, format display locating information; Facility information and the positioning result of user MAC is navigated to described in described locating information comprises.
The module that realizes that user MAC in network management system locates is turned to client, common port, service end and data acquisition unit by the present invention, multi-thread mechanism is adopted in network management system, achieve search user MAC positional information simultaneously on multiple equipment, RMI is adopted to realize user MAC finder in network management system, the implementation complexity that in network management system, user MAC locates is simplified by modularized design, by separation equipment data acquisition unit, utilize multi-thread concurrent mechanism, improve network management system user MAC location efficiency.
The protection range of user MAC localization method of the present invention is not limited to the step execution sequence that the present embodiment is enumerated, and the step increase and decrease of the prior art that every principle according to the present invention is done, step are replaced the scheme realized and be all included in protection scope of the present invention.
The present invention also provides a kind of user MAC navigation system; described user MAC navigation system can realize user MAC localization method of the present invention; but the implement device of user MAC localization method of the present invention includes but not limited to the structure of the user MAC navigation system that the present embodiment is enumerated; the malformation of the prior art that every principle according to the present invention is done and replacement, be all included in protection scope of the present invention.
The present invention also provides a kind of user MAC navigation system, shown in Figure 3, and described user MAC navigation system 100 comprises positioning service end 200 and positioning client terminal 300.
Shown in Figure 4, described positioning service end 200 comprises: thread pool module 210, single-threaded creation module 220, thread execution module 230, performs judge module 240, result judge module 250, result Executive Module 260, first result reminding module 270, or/and the second result reminding module 280.
Described thread pool module 210 creates thread pool, limits concurrent thread number.The object of the invention is to prevent from, because orientation range causes greatly concurrent thread number too much, affecting location efficiency.Thread pool is a kind of multiple threads form, adds task to queue in processing procedure, then after establishment thread, automatically starts these tasks.Thread pool threads is all background thread.Each thread uses the storehouse size of acquiescence, runs, and be in multiple thread units with the priority given tacit consent to.If certain thread is idle (as waited for certain event) in Managed Code, then another worker thread of insertion makes all processors keep busy by thread pool.If all thread pool threads all remain busy, but comprise the work of hang-up in queue, then thread pool will create another worker thread over time, but the number of thread exceedes maximum never.The thread exceeding maximum can be queued up, but they will wait until that other threads just start after completing.
Described single-threaded creation module 220 is connected with described thread pool module 210, using the user's MAC address of the facility information of each equipment that collects and correspondence as parameter, create the location tasks thread of each equipment corresponding, and it is to be activated described location tasks thread to be committed to described thread pool etc.Each location tasks thread completes identical work.
Described thread execution module 230 is connected with described thread pool module 210, and the location tasks thread be activated is set up SNMP according to facility information and connected, and obtains the relevant MIB nodal value of corresponding device by SNMP operation.The standard that SNMP (Simple Network Management Protocol) is managed by a group network forms, and comprises an application layer protocol (applicationlayerprotocol), database model (databaseschema) and one group of data object.MIB (ManagementInformationBase, management information bank) be one of content of TCP/IP NMP standard card cage, MIB defines data item that managed device must preserve, allow the operation carried out each data item and implication thereof, and namely the data variable such as control and state information of the addressable managed device of management system is all kept in MIB.
Described execution judge module 240 is connected with described thread execution module 230, judges whether user MAC is learnt by corresponding device, if so, then returns the MIB nodal value comprising positional information; If not, then null character string is returned.
Described result judge module 250 and described thread pool module 210 with perform judge module 240 and be connected respectively, after waiting for that in thread pool, all location tasks thread execution terminate, judge the return value of each location tasks thread; If return value is not null character string, then represents and navigate to user MAC.
Described result Executive Module 260 is connected with described result judge module 250, closes thread pool, and restoring to normal position is to the facility information of user MAC and positioning result.
Described first result reminding module 270 is connected with described result Executive Module 260, and when described positioning result is empty, prompting no-fix is to user MAC.
Described second result reminding module 280 is connected with described result Executive Module 260, when described positioning result is not empty, creates echo dialog box, format display locating information; Facility information and the positioning result of user MAC is navigated to described in described locating information comprises.
Shown in Figure 5, described positioning client terminal 300 comprises: input module 310, and monitor module 320, judge module 330, the first Executive Module 340, or/and the second Executive Module 350.
Described input module 310 creates user's inputting interface, receives the user's MAC address of input, device type and equipment choice.Invention creates the interface of input user's MAC address and device type and equipment choice, facilitate user to input the relevant informations such as user's MAC address, device type and equipment choice, the function being equivalent to data acquisition unit of realization.
Described monitoring module 320 is connected with described input module 310, creates the ACK button monitored on user's inputting interface described in action listener.The present invention also can be realized by other buttons monitoring similar ACK button.
Described judge module 330 is connected with input module 310 respectively with described monitoring module 320, after described ACK button is activated, judges that whether the information received by described user's inputting interface is legal.
Described first Executive Module 340 is connected with described judge module 330, if illegal, then points out input error.
Described second Executive Module 350 is connected with described judge module 330, if legal, then calls described user MAC finder by the interface definition of common port.The present invention can realize user MAC finder described in RMI according to interface definition.Certainly, described user MAC finder also can realize in this locality, and precondition is the actual needs meeting user, does not affect the normal work of user side.Preferred version of the present invention is far call, like this can not the burden of adding users end, and has accomplished long-range unified management, saves cost.
The main working process of user MAC navigation system of the present invention is: the interface creating input user's MAC address and device type and equipment choice, and create the ACK button monitored on action listener interface, these can complete in client.After input user's MAC address and equipment have been chosen, the process that monitoring event completes subsequent user MAC location after clicking ACK button, can be triggered.Judge the legitimacy inputted before this, if do not conform to rule prompting input error, otherwise call long range positioning method by the interface definition of common port.
Shown in Figure 6, the present invention also provides a kind of user MAC location-server 600, described user MAC location-server 600 comprises: thread pool module 610, single-threaded creation module 620, thread execution module 630, performs judge module 640, result judge module 650, result Executive Module 660, first result reminding module 670, or/and the second result reminding module 680.
Described thread pool module 610 creates thread pool, limits concurrent thread number.The object of the invention is to prevent from, because orientation range causes greatly concurrent thread number too much, affecting location efficiency.Thread pool is a kind of multiple threads form, adds task to queue in processing procedure, then after establishment thread, automatically starts these tasks.Thread pool threads is all background thread.Each thread uses the storehouse size of acquiescence, runs, and be in multiple thread units with the priority given tacit consent to.If certain thread is idle (as waited for certain event) in Managed Code, then another worker thread of insertion makes all processors keep busy by thread pool.If all thread pool threads all remain busy, but comprise the work of hang-up in queue, then thread pool will create another worker thread over time, but the number of thread exceedes maximum never.The thread exceeding maximum can be queued up, but they will wait until that other threads just start after completing.
Described single-threaded creation module 620 is connected with described thread pool module 610, using the user's MAC address of the facility information of each equipment that collects and correspondence as parameter, create the location tasks thread of each equipment corresponding, and it is to be activated described location tasks thread to be committed to described thread pool etc.Each location tasks thread completes identical work.
Described thread execution module 630 is connected with described thread pool module 610, and the location tasks thread be activated is set up SNMP according to facility information and connected, and obtains the relevant MIB nodal value of corresponding device by SNMP operation.The standard that SNMP (Simple Network Management Protocol) is managed by a group network forms, and comprises an application layer protocol (applicationlayerprotocol), database model (databaseschema) and one group of data object.MIB (ManagementInformationBase, management information bank) be one of content of TCP/IP NMP standard card cage, MIB defines data item that managed device must preserve, allow the operation carried out each data item and implication thereof, and namely the data variable such as control and state information of the addressable managed device of management system is all kept in MIB.
Described execution judge module 640 is connected with described thread execution module 630, judges whether user MAC is learnt by corresponding device, if so, then returns the MIB nodal value comprising positional information; If not, then null character string is returned.
Described result judge module 650 and described thread pool module 610 with perform judge module 640 and be connected respectively, after waiting for that in thread pool, all location tasks thread execution terminate, judge the return value of each location tasks thread; If return value is not null character string, then represents and navigate to user MAC.
Described result Executive Module 660 is connected with described result judge module 650, closes thread pool, and restoring to normal position is to the facility information of user MAC and positioning result.
Described first result reminding module 670 is connected with described result Executive Module 660, and when described positioning result is empty, prompting no-fix is to user MAC.
Described second result reminding module 680 is connected with described result Executive Module 660, when described positioning result is not empty, creates echo dialog box, format display locating information; Facility information and the positioning result of user MAC is navigated to described in described locating information comprises.
The present invention adopts RMI principle and multi-thread mechanism to achieve user MAC positioning function in network management system, and this function realized modularization, reduce user MAC in network management system and locate the complexity realized, improve the efficiency that in network management system, user MAC locates.
In sum, the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.

Claims (10)

1. a user MAC localization method, is characterized in that, described user MAC localization method comprises user MAC finder, and described user MAC finder comprises:
Create thread pool, limit concurrent thread number;
Using the user's MAC address of the facility information of each equipment that collects and correspondence as parameter, create the location tasks thread of each equipment corresponding, and it is to be activated described location tasks thread to be committed to described thread pool etc.;
After waiting for that in thread pool, all location tasks thread execution terminate, judge the return value of each location tasks thread; If return value is not null character string, then represents and navigate to user MAC; Or
Close thread pool, restoring to normal position is to the facility information of user MAC and positioning result.
2. user MAC localization method according to claim 1, is characterized in that, described user MAC finder also comprises:
The location tasks thread be activated is set up SNMP according to facility information and is connected, and obtains the relevant MIB nodal value of corresponding device by SNMP operation;
Judge whether user MAC is learnt by corresponding device, if so, then return the MIB nodal value comprising positional information; If not, then null character string is returned.
3. user MAC localization method according to claim 1, is characterized in that, described user MAC finder also comprises:
When described positioning result is empty, prompting no-fix is to user MAC;
When described positioning result is not empty, create echo dialog box, format display locating information; Facility information and the positioning result of user MAC is navigated to described in described locating information comprises.
4. user MAC localization method according to claim 1, is characterized in that, described user MAC localization method also comprises:
Create user's inputting interface, receive the user's MAC address of input, device type and equipment choice;
Create the ACK button monitored on user's inputting interface described in action listener;
After described ACK button is activated, judge that whether the information received by described user's inputting interface is legal;
If illegal, then point out input error;
If legal, then call described user MAC finder by the interface definition of common port.
5. a user MAC navigation system, is characterized in that, described user MAC navigation system comprises positioning service end, and described positioning service end comprises:
Thread pool module, creates thread pool, limits concurrent thread number;
Single-threaded creation module, be connected with described thread pool module, using the user's MAC address of the facility information of each equipment that collects and correspondence as parameter, create the location tasks thread of each equipment corresponding, and it is to be activated described location tasks thread to be committed to described thread pool etc.;
Result judge module, with described thread pool module with perform judge module and be connected respectively, after waiting for that in thread pool, all location tasks thread execution terminate, judge the return value of each location tasks thread; If return value is not null character string, then represents and navigate to user MAC; Or
Result Executive Module, is connected with described result judge module, closes thread pool, and restoring to normal position is to the facility information of user MAC and positioning result.
6. user MAC navigation system according to claim 5, is characterized in that, described positioning service end also comprises:
Thread execution module, is connected with described thread pool module, and the location tasks thread be activated is set up SNMP according to facility information and connected, and obtains the relevant MIB nodal value of corresponding device by SNMP operation;
Perform judge module, be connected with described thread execution module, judge whether user MAC is learnt by corresponding device, if so, then return the MIB nodal value comprising positional information; If not, then null character string is returned.
7. user MAC navigation system according to claim 5, is characterized in that, described positioning service end also comprises:
First result reminding module, is connected with described result Executive Module, and when described positioning result is empty, prompting no-fix is to user MAC;
Second result reminding module, is connected with described result Executive Module, when described positioning result is not empty, creates echo dialog box, format display locating information; Facility information and the positioning result of user MAC is navigated to described in described locating information comprises.
8. user MAC navigation system according to claim 5, is characterized in that, described user MAC navigation system also comprises positioning client terminal, and described positioning client terminal comprises:
Input module, creates user's inputting interface, receives the user's MAC address of input, device type and equipment choice;
Monitor module, be connected with described input module, create the ACK button monitored on user's inputting interface described in action listener;
Judge module, is connected with input module respectively with described monitoring module, after described ACK button is activated, judges that whether the information received by described user's inputting interface is legal;
First Executive Module, is connected with described judge module, if illegal, then points out input error; Or
Second Executive Module, is connected with described judge module, if legal, then calls described user MAC finder by the interface definition of common port.
9. a user MAC location-server, is characterized in that, described user MAC location-server comprises:
Thread pool module, creates thread pool, limits concurrent thread number;
Single-threaded creation module, be connected with described thread pool module, using the user's MAC address of the facility information of each equipment that collects and correspondence as parameter, create the location tasks thread of each equipment corresponding, and it is to be activated described location tasks thread to be committed to described thread pool etc.;
Thread execution module, is connected with described thread pool module, and the location tasks thread be activated is set up SNMP according to facility information and connected, and obtains the relevant MIB nodal value of corresponding device by SNMP operation;
Perform judge module, be connected with described thread execution module, judge whether user MAC is learnt by corresponding device, if so, then return the MIB nodal value comprising positional information; If not, then null character string is returned.
Result judge module, with described thread pool module with perform judge module and be connected respectively, after waiting for that in thread pool, all location tasks thread execution terminate, judge the return value of each location tasks thread; If return value is not null character string, then represents and navigate to user MAC; Or
Result Executive Module, is connected with described result judge module, closes thread pool, and restoring to normal position is to the facility information of user MAC and positioning result.
10. user MAC location-server according to claim 9, is characterized in that, described user MAC location-server also comprises:
First result reminding module, is connected with described result Executive Module, and when described positioning result is empty, prompting no-fix is to user MAC;
Second result reminding module, is connected with described result Executive Module, when described positioning result is not empty, creates echo dialog box, format display locating information; Facility information and the positioning result of user MAC is navigated to described in described locating information comprises.
CN201510372992.5A 2015-06-30 2015-06-30 User MAC positioning method, user MAC positioning system and user MAC positioning server Pending CN105049243A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510372992.5A CN105049243A (en) 2015-06-30 2015-06-30 User MAC positioning method, user MAC positioning system and user MAC positioning server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510372992.5A CN105049243A (en) 2015-06-30 2015-06-30 User MAC positioning method, user MAC positioning system and user MAC positioning server

Publications (1)

Publication Number Publication Date
CN105049243A true CN105049243A (en) 2015-11-11

Family

ID=54455465

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510372992.5A Pending CN105049243A (en) 2015-06-30 2015-06-30 User MAC positioning method, user MAC positioning system and user MAC positioning server

Country Status (1)

Country Link
CN (1) CN105049243A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110109739A (en) * 2019-04-25 2019-08-09 北京奇艺世纪科技有限公司 A kind of method for closing and device of multithread application
CN111464331A (en) * 2020-03-03 2020-07-28 深圳市计通智能技术有限公司 Control method and system for thread creation and terminal equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1592216A (en) * 2003-09-04 2005-03-09 华为技术有限公司 Method for high effectively searching network equipment address in network
CN101159607A (en) * 2007-11-22 2008-04-09 Ut斯达康通讯有限公司 Network management system of implementing remote browse network element MIB node
CN103428032A (en) * 2013-08-19 2013-12-04 杭州华三通信技术有限公司 Attack positioning and assistant positioning device and method
CN103997711A (en) * 2013-02-20 2014-08-20 百度在线网络技术(北京)有限公司 Method for realizing positioning server at mobile terminal and software development kit module
CN104572277A (en) * 2014-12-17 2015-04-29 大唐移动通信设备有限公司 Thread flow control method and thread flow control device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1592216A (en) * 2003-09-04 2005-03-09 华为技术有限公司 Method for high effectively searching network equipment address in network
CN101159607A (en) * 2007-11-22 2008-04-09 Ut斯达康通讯有限公司 Network management system of implementing remote browse network element MIB node
CN103997711A (en) * 2013-02-20 2014-08-20 百度在线网络技术(北京)有限公司 Method for realizing positioning server at mobile terminal and software development kit module
CN103428032A (en) * 2013-08-19 2013-12-04 杭州华三通信技术有限公司 Attack positioning and assistant positioning device and method
CN104572277A (en) * 2014-12-17 2015-04-29 大唐移动通信设备有限公司 Thread flow control method and thread flow control device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110109739A (en) * 2019-04-25 2019-08-09 北京奇艺世纪科技有限公司 A kind of method for closing and device of multithread application
CN111464331A (en) * 2020-03-03 2020-07-28 深圳市计通智能技术有限公司 Control method and system for thread creation and terminal equipment

Similar Documents

Publication Publication Date Title
CN110781007B (en) Task processing method, device, server, client, system and storage medium
CN110535831B (en) Kubernetes and network domain-based cluster security management method and device and storage medium
CN110545260B (en) Cloud management platform construction method based on mimicry structure
WO2021203979A1 (en) Operation and maintenance processing method and apparatus, and computer device
WO2016183553A1 (en) Query dispatch and execution architecture
US20210119855A1 (en) Techniques and interfaces for troubleshooting datacenter networks
US20170339007A1 (en) Alarm information processing method, related device, and system
CN109388537A (en) Operation information tracking, device and computer readable storage medium
US9854466B2 (en) Method and apparatus for managing monitoring task
KR101416280B1 (en) Event handling system and method
CN108989151B (en) Flow collection method for network or application performance management
CN113220431A (en) Cross-cloud distributed data task scheduling method, device and storage medium
CN110096521A (en) Log information processing method and device
US10122602B1 (en) Distributed system infrastructure testing
CN105096014A (en) Method and system for recording work operation condition remotely
CN105049243A (en) User MAC positioning method, user MAC positioning system and user MAC positioning server
CN114513419A (en) Security policy configuration method and system
CN114595075A (en) Network scheduling asynchronous task execution method based on distributed scheduling
CN108154343B (en) Emergency processing method and system for enterprise-level information system
WO2023159956A1 (en) Bare metal server inspection and deployment method and apparatus, and device and medium
CN112448909A (en) Electronic lock management method, device, system and storage medium
KR101870369B1 (en) System for linking between inside channel and outside channel based web oprating enviroment and method thereof
US11966323B2 (en) Troubleshooting software services based on system calls
US11016825B2 (en) Flexible analytics framework selection
CN112671814B (en) Cross-platform equipment development method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20151111

RJ01 Rejection of invention patent application after publication