CN106533726B - The method for obtaining the correct link position of network equipment with general agreement SNMP - Google Patents

The method for obtaining the correct link position of network equipment with general agreement SNMP Download PDF

Info

Publication number
CN106533726B
CN106533726B CN201510581825.1A CN201510581825A CN106533726B CN 106533726 B CN106533726 B CN 106533726B CN 201510581825 A CN201510581825 A CN 201510581825A CN 106533726 B CN106533726 B CN 106533726B
Authority
CN
China
Prior art keywords
network
equipment
port
interchanger
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.)
Active
Application number
CN201510581825.1A
Other languages
Chinese (zh)
Other versions
CN106533726A (en
Inventor
郑伟鹏
王维民
黄圣翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Flying Screen Technology Co Ltd
Original Assignee
Flying Screen 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 Flying Screen Technology Co Ltd filed Critical Flying Screen Technology Co Ltd
Priority to CN201510581825.1A priority Critical patent/CN106533726B/en
Publication of CN106533726A publication Critical patent/CN106533726A/en
Application granted granted Critical
Publication of CN106533726B publication Critical patent/CN106533726B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to a kind of methods for obtaining the correct link position of network equipment with general agreement SNMP, specifically include that a. collects all switch device MAC in net with general agreement SNMP, establish equipment MAC table;B. the transfer table of every interchanger is inquired, and transfer table is changed into Port as index;C. it compares and analyzes each Port data, MAC is matched one by one with Port, and;D. more new record achieves, until all interchangers all inquire completion;Whereby, the corresponding interchanger Port of network equipment can be obtained effectively via general agreement SNMP, and determines that interchanger Port to filter invalid corresponding relationship, is quickly obtained the correct distribution link position of all network equipments in network automatically.

Description

The method for obtaining the correct link position of network equipment with general agreement SNMP
Technical field
The present invention relates to a kind of methods for obtaining the correct link position of network equipment with general agreement SNMP, espespecially by logical With agreement SNMP, the corresponding interchanger Port of network equipment is obtained, and determines that interchanger Port is invalid right to filter automatically The method that should be related to, and obtain the correct link position of network equipment.
Background technique
As scientific and technological progress industry and commerce is quickly grown, the scale of network constantly increases expansion, it has also become can not in the modern life Or scarce a part.Whether the operation at network safe and stable, high efficiency will have a direct impact on be related to enterprise core business can be suitable Is benefit expanded? when money peace or failure problems occur for local-area network, has only and find the related entity that wrong network equipment occurs as early as possible Position could effectively debug in the shortest time and solve the problems, such as, network is made to restore normal operation rapidly, so manager one It wants to understand calmly and grasps all network equipments of enterprises completely, this is interior real particularly important in the IP management of enterprise-level.
But has the related functionality existing product of IP management on the market at present, it is related for the network equipment being managed Network location information is presented in such a way that list is plus collocation network topo graph (such as Figure 12) mostly.It is i.e. general internal Network IP manages basic document often with the presentation of IP-MAC list mode, sets to respectively represent communication position and computer It is standby.Lack equipment room connection relationship in the content of its list, can not check that related computer equipment is real by list or its diagram completely Body position information for reference.
So must be after IP-MAC list, in addition along with the interchanger Port record of a connection in practice As auxiliary, REFERENCE INFORMATION that can be basic as network equipment provider location.However, this table still must be at any time by manually more Newly, not only time-consuming and laborious, but also because equipment connecting relation can often continue to change in network, table update record is not caught up with forever Equipment alteration pace of change is unable to get always correctly always as a result, so that money is caused to pacify managerial difficulty.
To solve this problem, more advanced famous label switch device provides proprietary function, can directly to Check the information or connection computer equipment of each Port.But this is the exclusive built-in function of specific label equipment, and can not be with one As label Device-General.If really to incur a considerable or great expense if method executes according to this, with the proviso that enterprises from top to bottom, all must The network equipment of the identical high same specific label of unit price must be used, correctly can clearly grasp network all in net in management Equipment.But this is mostly significantly different using the network equipment of the different more labels of unit price of set from general custom enterprises, therefore Its premise calls is extremely unreasonable, nor meets the application practice of current universal networked environments.
Summary of the invention
In view of this, best solution is sought in the positive input research design of the present inventor.Firstly, when knowing that general terminal is set It is standby when being connected on the interchanger in network, it is meeting in interchanger (Switch) to use network package that can smoothly transfer Automatically a transfer table (Forwarding Table) is established.It, can be according to destination media when so that it is received package using this transfer table Access control MAC (Media Access Control) and the Port (Port) for inquiring next submitting.But only by transferring Can not table determine whether the MAC in table is really connected on the Port in table really? it is such then cannot effectively pick out this company Does is the connection equipment for connecing port the desktop computer or notebook computer (PC, NB) for belonging to general terminal device on earth? or network The interchanger (Switch) of equipment?
If but carefully deeply further inquire into, it, should if it is to belong to the interchanger (Switch) of network equipment The MAC of this equipment should be just had in the transfer table of Port.It can thus be appreciated that if including in the correspondence MAC of a Port in transfer table The position MAC of another equipment, then this Port is just not directly connected to terminal device (link-port, not access- Port), then all MAC information records under this Port should be just skipped in inquiry, because these MAC must will netted in interior Other interchanger transfer tables in occur again, and final only can be judged as that data should be received in an interchanger.
Based on this, the main object of the present invention is that provide one kind is correctly connected with general agreement SNMP acquirement network equipment The method for connecing position, specifically includes that
A. all switch device MAC in net are collected with general agreement SNMP, establishes equipment MAC table;
B. the transfer table of every interchanger is inquired, and transfer table is changed into Port as index;
C. it compares and analyzes each Port data, MAC is matched one by one with Port, and;
D. more new record achieves, until all interchangers all inquire completion;
Whereby, can be effectively via general agreement SNMP(Simple Network Management Protocol) that is, letter Single NM network management agreement, obtains the corresponding interchanger Port of network equipment, and determines interchanger Port to filter nothing automatically Corresponding relationship is imitated, the correct distribution link position of all network equipments in network is quickly obtained.
Detailed description of the invention
Fig. 1 is block diagram of the invention.
Fig. 2 is the flow chart that table is built in present invention inquiry.
Fig. 3 is application example diagram of the invention.
Fig. 4-1 is the first control chart of the invention.
Fig. 4-2 is the second control chart of the invention.
Fig. 5 is the flow chart that the present invention updates that table is built in unusual fluctuation inquiry.
Fig. 6 is the application example diagram of newly added equipment of the present invention.
Fig. 7-1 is the first control chart of newly added equipment of the present invention.
Fig. 7-2 is the second control chart of newly added equipment of the present invention.
Fig. 8 is the application example diagram of present device unusual fluctuation.
Fig. 9-1 is the first control chart of present device unusual fluctuation.
Fig. 9-2 is the second control chart of present device unusual fluctuation.
Figure 10 is the schematic diagram of the present invention with network distributional environment plan view information integration.
Figure 11 is the schematic diagram that the present invention illustrates information integration with global region.
Figure 12 is the topo graph of existing network terminal equipment.
[main element symbol description]
The more newly-built surface low journey ... 200 of surface low journey ... 100 is built in inquiry
300 network distributional environment plan view ... 400 of surface low journey ... is built in unusual fluctuation
The global region of branch ... 410 diagram ... 450
500 frame ... 901,902,903,904 of local-area network ...
First management table ... 51 second manages table ... 52
First management table ... 53 second manages table ... 54
First management table ... 55 second manages table ... 56
First interchanger ... S1 second switch ... S2
The 4th interchanger ... S4 of 3rd switch ... S3
First terminal equipment ... C1 second terminal equipment ... C2
The 4th terminal device ... C4 of third terminal equipment ... C3
Port mouth ... p1, p2, p3.
Specific embodiment
Embodiments of the present invention are disclosed in detail below by specific specific example, and people skilled in the art can be by this The revealed content of specification understands advantages of the present invention and effect easily.It please join shown in Fig. 1, be block diagram of the invention. The method that the present invention obtains the correct link position of network equipment with general agreement SNMP, specifically includes that
Frame 901, a. collect all switch device MAC in net with general agreement SNMP, establish equipment MAC table;
Frame 902, b. inquires the transfer table of every interchanger, and transfer table is changed into Port as index;
Frame 903, c., which is compared, analyzes each Port data, and MAC is matched one by one with Port, and;
Frame 904, d. more new record achieves, until all interchangers all inquire completion.
It please join shown in Fig. 2, presently preferred embodiments of the present invention is further and can build surface low journey 100 equipped with an inquiry, main to wrap It includes:
S01 step 1. collects all switch device MAC in net with general agreement SNMP, establishes equipment MAC table;
S02 step 2. inquires the transfer table of every interchanger;
S03 step 3. changes into transfer table with Port as index;
S04 step 4. compares each Port data of analysis one by one, judges whether that any MAC appears in equipment MAC table In? if so, executing step 5;If it is not, thening follow the steps 6;
S05 step 5. skips over this Port information, returns to step 2;
S06 step 6. one by one by MAC and Port pairing be updated to as a result, and;
Does S07 step 7. judge whether that all interchangers have all inquired completion? if it is not, returning to step 2;If so, dynamic Work terminates.
Whereby, the corresponding interchanger Port of network equipment can be obtained, and determine automatically effectively via general agreement SNMP Interchanger Port is quickly obtained the correct distribution link position of all network equipments in network to filter invalid corresponding relationship.
It please join shown in Fig. 3, for example: the 500 internal unit distribution map of local-area network of an enterprise, the first interchanger S1 therein Port mouth p1 (S1) be connected with Port mouth p1 (S2) wiring of second switch S2, the Port of the first interchanger S1 Mouth p2 (S1) is connected with Port mouth p1 (S3) wiring of 3rd switch S3, the Port mouth p2 (S3) of 3rd switch S3 Equipped with a third terminal equipment C3, and have a MAC3 for identifying, in addition the Port mouth p2 (S2) of second switch S2 It is equipped with a first terminal equipment C1, and has a MAC1 for identification;And the Port mouth p3 (S2) of second switch S2 is then It is connected with Port mouth p1 (S4) wiring of the 4th interchanger S4, the Port mouth p2 (S4) of the 4th interchanger S4 is then equipped with one Second terminal equipment C2, and have a MAC2 for identification.
It, can quick sequentially query region net by effective ways provided by the present invention and step (with referring to Fig. 1 ~ Fig. 3) 500 internal unit of road, is established out through analyses and comparison:
The first management table 51 as shown in Fig. 4-1, to know that the MAC1 for wherein representing first terminal equipment C1 is connected to the The Port mouth p2 of two interchanger S2, the MAC2 for representing second terminal equipment C2 are connected to the Port mouth of the 4th interchanger S4 P2, and the MAC3 for representing third terminal equipment C3 is connected to the Port mouth p2 of 3rd switch S3, and;
The second management table 52 as shown in the Fig. 4-2, to know the first ~ the 4th interchanger S1 ~ S4 each of which Port mouth Whether p1, p2 or p3 ... only treat as the access (T) of connection or connect equipment (F);
Gather above this two first management table 51, the second management table 52 interaction the selection results accurately compared, can obtain The each network equipment in the inside of local-area network 500 true connection distributing position, build table inquiry more it is simple it is time saving save trouble, and And each practical connection Distribution Data of network equipment is specifically accurate, it is possible to provide money peace management is upper easy to use to be fully apparent from the palm It holds.
Refer to Fig. 5, Fig. 6, Fig. 7-1, shown in Fig. 7-2, presently preferred embodiments of the present invention further and can be equipped with a update Surface low journey 200 is built, is specifically included that
Does S08 step 8. determine whether to more new data? if so, executing step 2;If it is not, then movement terminates.Make local-area network 500 inside carry out routine maintenance, or when there is newly added equipment, manager can be facilitated via more newly-built surface low journey 200, at any time more New grasp nets the newest potassium ion distribution of interior equipment, for example:
Shown in Fig. 6, the Port mouth p3 (S4) inside local-area network 500 in the 4th interchanger S4 has additional one the 4th eventually It,, can be quick using effective ways provided by the present invention and S08 step 8 with and with a MAC4 for identification when end equipment C4 500 internal unit of query analysis comparison area network is carried out, and establishes out updated first management table 53 (such as Fig. 7-1) and the Two management table 54 (such as Fig. 7-2), such manager just can clearly grasp really connecting for the 500 each equipment in inside of local-area network at any time Connect distributing position.
Refer to Fig. 5, Fig. 8, Fig. 9-1, shown in Fig. 9-2, presently preferred embodiments of the present invention further and can be equipped with a unusual fluctuation Surface low journey 300 is built, is specifically included that
S09 step 9. judges whether that netting interior interchanger has unusual fluctuation;If so, executing step 1;If it is not, then movement terminates.Make area Other when may cause equipment mobile in face of department's augmentation or reduce the staff in addition to equipment increases and decreases inside domain network 500, manager can be through Surface low journey 300 is built by unusual fluctuation, newest potassium ion distribution after the interior equipment alteration of net is grasped in convenient update at any time, for example:
Shown in Fig. 8, when local-area network 500 inside third terminal equipment C3 and the 4th interchanger S4 under it together with being connect Second terminal equipment C2 and the 4th terminal device C4 link position are identical using effective ways provided by the present invention to timing And S09 step 9, it is rapidly performed by 500 internal unit of query analysis comparison area network, and establish out the first management after unusual fluctuation Table 55 (such as Fig. 9-1) and the second management table 56 (such as Fig. 9-2), such manager just can clearly grasp in local-area network 500 at any time The true connection distributing position of each equipment in portion.
Fig. 8, Figure 10 are referred to, preferred embodiments of the present invention can also be further whole by the in local-area network 500 the first ~ the 4th The data of end equipment C1 ~ C4 includes: IP address, MAC Address and the Hostname data of each equipment, corresponding at single Network position;Integration corresponding with network 400 information of distributional environment plan view again, and by the network terminal equipment of affiliated management Corresponding show at entity geographical location of C1 ~ C4 is presented.Or as shown in figure 11, further expand transregional enterprise branch machine Structure 410 and global region illustrate 450 information integrations and (such as Google Map) are presented.
Whereby, updating maintenance use is inquired to facilitate money peace management to file, fault diagnosis exclusion in network is allowed to become to hold very much Easily reach.The entity geographical location directly shown by global region diagram 450 and the control of network distributional environment plan view 400, The building plan-position that can simply find its opposite place network terminal equipment C1 ~ C4 of generation problem is clicked through, it is directly right It should be displayed for that debugging is effectively treated, keep the unimpeded rapid recovery in network normal.
In conclusion the method for the present invention novelty with it is existing compare and have have made marked progress, while also have for industry utilization Property, patent requirement is complied fully with, whence proposes application for a patent for invention.Only the foregoing is only a preferred embodiment of the present invention, When cannot be limited the scope of implementation of the present invention with this;Therefore it is all according to simple made by claims of the present invention and description Equivalent changes and modifications, should still belong in the range of the invention patent covers.

Claims (5)

1. a kind of method for obtaining the correct link position of network equipment with general agreement SNMP, for collecting all exchanges in net Machine equipment inquires the transfer table of every interchanger, compares each Port data of analyzing, more new record achieves, until all friendships Inquiry of changing planes is completed, and to obtain the distribution link position of terminal device in network, is specifically included that
Step 1. collects all switch device MAC in net with general agreement SNMP, establishes equipment MAC table, the interchanger Equipment MAC refers to the MAC Address for the all-network equipment connecting with interchanger;
Step 2. inquires the transfer table of every interchanger;
It is characterized by further comprising:
Step 3. changes into transfer table with Port as index;
Step 4. compares each Port data of analysis one by one, judges whether that any MAC is appeared in equipment MAC table;If so, Execute following steps 5;If it is not, then executing following steps 6;
Step 5. skips over this Port data, returns to step 2;
Step 6. one by one by MAC and Port pairing be updated to as a result, and;
Step 7. judges whether that all interchangers have all inquired completion;If it is not, returning to step 2;If so, movement terminates;
Whereby, the corresponding interchanger Port of network equipment effectively is obtained via general agreement SNMP, and determines interchanger automatically Port is quickly obtained the correct distribution link position of all terminal devices in network to filter invalid corresponding relationship.
2. the method for obtaining the correct link position of network equipment as described in claim 1 with general agreement SNMP, it is characterised in that It is further provided with a more newly-built surface low journey, that is, increases by a step 8. and determines whether to update Port data;If so, executing aforementioned Step 2;If it is not, then movement terminates.
3. the method for obtaining the correct link position of network equipment as described in claim 1 with general agreement SNMP, it is characterised in that It is further provided with a unusual fluctuation and builds surface low journey, that is, increase by a step 9. and judge whether that netting interior interchanger or terminal device has unusual fluctuation;If It is to execute abovementioned steps 1;If it is not, then movement terminates.
4. the method for obtaining the correct link position of network equipment as described in claim 1,2 or 3 with general agreement SNMP, feature It is further to obtain each terminal device data in network, includes: IP address, MAC Address and the host of the terminal device Name data, and corresponding single network position;Integration corresponding with a network distributional environment plan view information again, and by affiliated pipe Corresponding show at entity geographical location of the network terminal equipment of reason is presented.
5. the method for obtaining the correct link position of network equipment as claimed in claim 4 with general agreement SNMP, it is characterised in that: The network terminal equipment is corresponding at entity geographical location, further presents with global region diagram information integration.
CN201510581825.1A 2015-09-14 2015-09-14 The method for obtaining the correct link position of network equipment with general agreement SNMP Active CN106533726B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510581825.1A CN106533726B (en) 2015-09-14 2015-09-14 The method for obtaining the correct link position of network equipment with general agreement SNMP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510581825.1A CN106533726B (en) 2015-09-14 2015-09-14 The method for obtaining the correct link position of network equipment with general agreement SNMP

Publications (2)

Publication Number Publication Date
CN106533726A CN106533726A (en) 2017-03-22
CN106533726B true CN106533726B (en) 2019-07-09

Family

ID=58348970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510581825.1A Active CN106533726B (en) 2015-09-14 2015-09-14 The method for obtaining the correct link position of network equipment with general agreement SNMP

Country Status (1)

Country Link
CN (1) CN106533726B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1741474A (en) * 2005-09-05 2006-03-01 北京启明星辰信息技术有限公司 Visable positioning method and system for network safety event
CN102123050A (en) * 2011-03-09 2011-07-13 成都勤智数码科技有限公司 Network terminal management method
CN202261391U (en) * 2011-07-26 2012-05-30 段雅睿 Positioning system for real places of clients in virtual environmental systems
CN103037022A (en) * 2011-10-06 2013-04-10 台达电子工业股份有限公司 Automatic network address allocation method and data center specially implementing same
CN104243220A (en) * 2014-10-10 2014-12-24 中国农业银行股份有限公司 Method and device for generating inter-system relation graph

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060153167A1 (en) * 2004-11-19 2006-07-13 Schunemann Alan J Computer tracking and locking

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1741474A (en) * 2005-09-05 2006-03-01 北京启明星辰信息技术有限公司 Visable positioning method and system for network safety event
CN102123050A (en) * 2011-03-09 2011-07-13 成都勤智数码科技有限公司 Network terminal management method
CN202261391U (en) * 2011-07-26 2012-05-30 段雅睿 Positioning system for real places of clients in virtual environmental systems
CN103037022A (en) * 2011-10-06 2013-04-10 台达电子工业股份有限公司 Automatic network address allocation method and data center specially implementing same
CN104243220A (en) * 2014-10-10 2014-12-24 中国农业银行股份有限公司 Method and device for generating inter-system relation graph

Also Published As

Publication number Publication date
CN106533726A (en) 2017-03-22

Similar Documents

Publication Publication Date Title
CN109150640B (en) Network topology discovery method and system based on two-layer network protocol
CN104301393B (en) Laboratory data gathers and management system
CN105376101B (en) A kind of method and system of material object equipment access of virtual network
CN106998262A (en) A kind of System and method for for recognizing Internet user
CN104468193B (en) A kind of method for finding to be monitored operation system based on component
CN106161103B (en) Switch-layer topology construction method and device
CN106330501A (en) Fault correlation method and device
CN103067943A (en) Method for confirming existence of WiFi (wireless fidelity) mobile terminal and counting number thereof
CN106302640A (en) Data request processing method and device
CN110430265A (en) A kind of method and device obtaining server and inter-exchange corresponding relationship
CN107360271B (en) Method, system and equipment for acquiring network equipment information and automatically segmenting IP address
CN105591796B (en) Method for configuring network equipment and device
CN105989145A (en) Bus line automatic updating method, device and system
CN106302864A (en) A kind of IP in order arranges system
CN102868601B (en) Routing system related to network topology based on graphic configuration database businesses
WO2016061947A1 (en) Method and apparatus for detecting three-layer interface ip address conflict
CN106533726B (en) The method for obtaining the correct link position of network equipment with general agreement SNMP
CN104883275B (en) A kind of log buffer method and system of communication equipment
CN105976087A (en) New method of analyzing enterprise information system fault influence range based on graphic modeling
CN106027321A (en) Method and system for automatically generating network topology
CN113641742A (en) Data extraction method, device, equipment and storage medium
CN109510729A (en) A kind of implementation method based on CMDB and Netstat discovery applied topology relationship
CN101009601A (en) A maintenance and detection method, system and device of the network element
US20220224591A1 (en) Network management apparatus, method, and program
CN106533727B (en) The corresponding display network-termination device management system in entity geographical location

Legal Events

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