CN103368758B - The method and system of L3 Switching relation between detection and presentation device - Google Patents

The method and system of L3 Switching relation between detection and presentation device Download PDF

Info

Publication number
CN103368758B
CN103368758B CN201210091652.1A CN201210091652A CN103368758B CN 103368758 B CN103368758 B CN 103368758B CN 201210091652 A CN201210091652 A CN 201210091652A CN 103368758 B CN103368758 B CN 103368758B
Authority
CN
China
Prior art keywords
collector
switching relation
equipment
switching
equipment room
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.)
Expired - Fee Related
Application number
CN201210091652.1A
Other languages
Chinese (zh)
Other versions
CN103368758A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201210091652.1A priority Critical patent/CN103368758B/en
Priority to PCT/CN2013/073093 priority patent/WO2013143421A1/en
Publication of CN103368758A publication Critical patent/CN103368758A/en
Application granted granted Critical
Publication of CN103368758B publication Critical patent/CN103368758B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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/12Discovery or management of network topologies
    • 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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables

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 present invention relates to a kind of method and system of L3 Switching relation between detection and presentation device, its method includes:Service end starts task dispatcher, concurrently performs each collector of correspondence different routing protocol type in task dispatcher, obtains the L3 Switching relation data of equipment room under various Routing Protocols, and send to client;With topological diagram be shown the L3 Switching relation data of equipment room under various Routing Protocols by client.Present invention, avoiding when three etale topologies find, by the way of L3 Switching relation in directly reading routing table, the problem of inefficiency being caused because routing table is excessive, so as to improve network management system overall performance in the prior art.Additionally, when user checks topological diagram in the topology exhibits device of client, it is allowed to check the L3 Switching relation of equipment room respectively by different agreement type, provide users with the convenient.And the present invention does not need extra hardware supported, the MIB tables of each Routing Protocol are only relied upon, it is easy to accomplish.

Description

The method and system of L3 Switching relation between detection and presentation device
Technical field
The present invention relates to three layers between detection in wireless communication technique field, more particularly to a kind of network management simultaneously presentation device The method and system of commutative relation.
Background technology
In tri-level exchange, the most widely used Routing Protocol has RIP (Routing Information, route Information protocol), ISIS (Intermediate system to intermediate system, Interior Gateway Protocol), OSPF (Open Shortest Path First, ospf) and BGP (Border Gateway Protocol, Border Gateway Protocol).Although carry out L3 Switching using any Routing Protocol between equipment, agreement MIB tables can all be remembered In NbrTable in ISAdjTable, OSPF and BGP in topological relation between recording apparatus, such as ISIS agreements PeerTable.But due to may simultaneously use various agreements in a large-scale network, the business scenario of each agreement is again each Differ, therefore, described using only the L3 Switching relation of equipment room under a certain agreement whole network it is excessively unilateral without Completely.
And, in the prior art, when three etale topologies find, using the L3 Switching relation in routing table that directly reads Mode, can produce because routing table is excessive and caused by the low problem of detection efficiency.
The content of the invention
Method and system it is a primary object of the present invention to provide L3 Switching relation between a kind of detection and presentation device, The detection and displaying of the L3 Switching relation of equipment room under various different routing protocols are aimed at, network management system detection effect is improved Rate and overall performance.
In order to achieve the above object, the method that the present invention proposes L3 Switching relation between a kind of detection and presentation device, bag Include:
Service end starts task dispatcher, concurrently performs each of correspondence different routing protocol type in the task dispatcher Collector, obtains the L3 Switching relation data of equipment room under various Routing Protocols, and send to client;
The client is opened up the L3 Switching relation data of equipment room under the various Routing Protocols with topological diagram Show.
Preferably, also include before the step of service end starts task dispatcher:
The service end creates and loads corresponding collector to task dispatcher according to different Routing Protocol types In;
The essential information for obtaining all devices is put into each collector.
Preferably, the service end concurrently performs each collection of correspondence different routing protocol type in the task dispatcher Device, includes under the various Routing Protocols of acquisition the step of the L3 Switching relation data of equipment room:
The equipment for indicating each collector to filter out the Routing Protocol for being configured with the current collector of correspondence;
The all equipment for filtering out of traversal, are successively read L3 Switching relation table in the Routing Protocol MIB tables of each equipment, from The other equipment information of L3 Switching relation is set up in middle acquisition with corresponding device;
The L3 Switching relation is assembled into a record to be stored in database;
When all collectors are performed both by finishing, three layers that equipment room under various Routing Protocols is read from the database Commutative relation data.
Preferably, the client by the L3 Switching relation data of equipment room under the various Routing Protocols with topological diagram The step of being shown includes:
The L3 Switching relation data of equipment room under the various Routing Protocols is converted into topological data by the client;
According to the topological data, the L3 Switching relation of the icon of each equipment and each equipment room is plotted in topological diagram It is shown.
Preferably, the method also includes:
The client sends the collection request of L3 Switching relation to the service end;
The service end is gathered according to the L3 Switching relation and asked, and creates and load correspondence different routing protocol type Collector to task dispatcher in.
Preferably, the client by the L3 Switching relation data of equipment room under the various Routing Protocols with topological diagram Also include after the step of being shown:
The client receives the inquiry request of user;
According to the inquiry request, the L3 Switching relation of equipment room under display one kind, two or more Routing Protocols.
Preferably, the service end indicates each collector to filter out the Routing Protocol that is configured with the current collector of correspondence The step of equipment, further includes:
The service end is indicated each collector to be filtered out in units of device packets and correspondence is configured with correspondence group currently The equipment of the Routing Protocol of collector.
Preferably, the collector includes dynamic routing collector, or, the collector includes dynamic routing collector With static routing collector.
The present invention also proposes a kind of network management system of L3 Switching relation between detection and presentation device, including:Service end and Client;Wherein:
The service end includes:
Starting module, for starting task dispatcher;
Acquisition module, each collector of correspondence different routing protocol type in the task dispatcher is performed for sending out, and is obtained Take the L3 Switching relation data of equipment room under various Routing Protocols;
Data transmission blocks, for the L3 Switching relation data of equipment room under the various Routing Protocols to be sent to visitor Family end;
The client includes:
Topology exhibits device, for by the L3 Switching relation data of equipment room under the various Routing Protocols with topological diagram It is shown.
Preferably, the service end also includes:
Load-on module is created, for according to different Routing Protocol types, creating and loading corresponding collector to task In scheduler, and the essential information of acquisition all devices is put into each collector.
Preferably, the acquisition module includes:
Filter element, setting for the Routing Protocol for corresponding to current collector is configured with for indicating each collector to filter out It is standby;
Collecting unit, for traveling through all equipment for filtering out, is successively read three layers in the Routing Protocol MIB tables of each equipment Commutative relation table, therefrom obtains the other equipment information that L3 Switching relation is set up with corresponding device;
Memory cell, is stored in database for the L3 Switching relation to be assembled into a record;
Reading unit, for when all collectors are performed both by finishing, various Routing Protocols being read from the database The L3 Switching relation data of lower equipment room.
Preferably, the topology exhibits device includes:
Modular converter, for the L3 Switching relation data of equipment room under the various Routing Protocols to be converted into topological Numbers According to;
Displaying control module, for according to the topological data, by the icon of each equipment and the L3 Switching of each equipment room Relation is shown in being plotted in topological diagram.
Preferably, the displaying control module, is additionally operable to send the collection request of L3 Switching relation to the service end;
The establishment load-on module, is additionally operable to be gathered according to the L3 Switching relation and asks, and creates and load correspondence not In collector to task dispatcher with route protocol type.
Preferably, the displaying control module, is additionally operable to receive the inquiry request of user;According to the inquiry request, show Show a kind of L3 Switching relation of equipment room under, two or more Routing Protocols.
Preferably, the filter element, it is right also particularly useful for indicating each collector to be filtered out in units of device packets The equipment of the Routing Protocol of the current collector of correspondence is configured with should organizing.
Preferably, the collector includes dynamic routing collector, or, the collector includes dynamic routing collector With static routing collector.
In a kind of network management proposed by the present invention detection and presentation device between L3 Switching relation method and system, In network management system, the respectively various Routing Protocols such as RIP, ISIS, OSPF and BGP set up corresponding collector, for special The L3 Switching relation data of equipment room under various Routing Protocols is gathered, while being managed collectively using task dispatcher, concurrently being held Each collector of row.After the collection of L3 Switching relation data is finished, send the data to client and use is presented in topological mode Family, it is to avoid in the prior art when three etale topologies find, by the way of L3 Switching relation in directly reading routing table, by It is excessive in routing table and cause the problem of inefficiency, so as to improve network management system overall performance.Additionally, user is in client Topology exhibits device in when checking topological diagram, it is allowed to check the L3 Switching relation of equipment room respectively by different agreement type, Provide users with the convenient.And the present invention does not need extra hardware supported, the MIB tables of each Routing Protocol are only relied upon, because This is easily achieved.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the embodiment of method one of L3 Switching relation between present invention detection and presentation device;
Fig. 2 is that service end is concurrently performed in the embodiment of method one of L3 Switching relation between present invention detection and presentation device Each collector of correspondence different routing protocol type, obtains the L3 Switching of equipment room under various Routing Protocols in task dispatcher The schematic flow sheet of relation data;
Fig. 3 is the schematic flow sheet of another embodiment of method of L3 Switching relation between present invention detection and presentation device;
Fig. 4 is the schematic flow sheet of the method another embodiment of L3 Switching relation between present invention detection and presentation device;
Fig. 5 is the structural representation of the embodiment of system one of L3 Switching relation between present invention detection and presentation device;
Fig. 6 is that the structure of service end in the embodiment of system one of L3 Switching relation between present invention detection and presentation device is shown It is intended to;
Fig. 7 is the structure of acquisition module in the embodiment of system one of L3 Switching relation between present invention detection and presentation device Schematic diagram;
Fig. 8 be the present invention detection and presentation device between L3 Switching relation the embodiment of system one in topology exhibits device Structural representation;
Fig. 9 is the structural representation of another embodiment of system of L3 Switching relation between present invention detection and presentation device.
In order that technical scheme is clearer, clear, it is described in further detail below in conjunction with accompanying drawing.
Specific embodiment
The solution of the embodiment of the present invention is mainly:In network management system, respectively RIP, ISIS, OSPF and BGP Corresponding collector is set up etc. various Routing Protocols, the L3 Switching relation for specially gathering equipment room under various Routing Protocols Data, while being managed collectively using task dispatcher, concurrently performing each collector.Finished in the collection of L3 Switching relation data Afterwards, send the data to client and user is presented in topological mode, to avoid in the prior art when three etale topologies find, adopting With the mode of the L3 Switching relation in routing table that directly reads, the problem of inefficiency is caused because routing table is excessive, improved Network management system overall performance.
As shown in figure 1, the method that one embodiment of the invention proposes L3 Switching relation between a kind of detection and presentation device, bag Include:
Step S101, service end starts task dispatcher, concurrently performs correspondence different routing protocol class in task dispatcher Each collector of type, obtains the L3 Switching relation data of equipment room under various Routing Protocols, and send to client;
The present embodiment method running environment is related to service end and client in network management system, wherein, service end is provided with Task dispatcher, the type in the present embodiment task dispatcher previously according to various Routing Protocols is loaded with the various route associations of correspondence The collector of view, such as correspond to respectively the RIP collectors of RIP, ISIS, OSPF and BGP Routing Protocol, ISIS collectors, OSPF collectors and BGP collectors, in loading, each collector are put into by the essential information of all devices, wherein, equipment Essential information includes device name, the Routing Protocol of device configuration, the affiliated domain name of equipment, level or other information.
Each collector is respectively intended to gather the L3 Switching relation data of equipment room under corresponding Routing Protocol, task dispatcher It is managed collectively, concurrently performs each collector.
After task dispatcher starts, each collector is concurrently performed by its automatic thread of assigning.Task dispatcher is one The thread pool of new thread can as needed be created, in thread pool thread it is how much according to current tasks number and current server Performance depending on.For performing the program of many short-term asynchronous tasks, these thread pools can generally improve program feature.Such as Really existing thread does not have available, then create a new thread and be added in pond.Terminate and removed from caching those have The thread that the scheduled time is such as not used by for 60 seconds.Therefore, idle thread pool is kept for a long time will not use any resource.
Meanwhile, database is additionally provided with service end, the different routing protocol of each collector collection is preserved for recording The L3 Switching relation data of lower equipment room.
Topology exhibits device is provided with client, three layers of friendship of equipment room under service end gets various Routing Protocols After changing relation data, the topology exhibits device in client is sent this data to, assisted various routes by topology exhibits device The L3 Switching relation data of the lower equipment room of view is converted to topological data and is shown in topological mode.
Wherein, each collector in service end task dispatcher obtains the L3 Switching pass of equipment room under corresponding Routing Protocol The process of coefficient evidence is as follows:
First, the equipment for filtering out the Routing Protocol for being configured with the current collector of correspondence, then filters out to each Equipment, obtains the L3 Switching relation table of the equipment and other equipment, and this relation is preserved from the MIB tables of its Routing Protocol Into the database of service end, when all collectors are performed both by finishing, service end can then read various routes from database The L3 Switching relation data of equipment room under agreement, sends to client.
The different L3 Switching relation tables of correspondence in the MIB tables of different Routing Protocols, wherein, RIP, ISIS, OSPF with And L3 Switching relation table in the corresponding MIB tables of BGP Routing Protocols is as shown in table 1 below:
Routing Protocol MIB tables
RIP PeerTable
OSPF NbrTable
ISIS ISAdjTable
BGP PeerTable
Table 1
Step S102, client is opened up the L3 Switching relation data of equipment room under various Routing Protocols with topological diagram Show.
After the topology exhibits device of client receives the data, L3 Switching relation data can be converted into topological Numbers According to, draw out all devices icon and the L3 Switching relation of equipment room is plotted in topological diagram, shown in topological mode The L3 Switching relation of each equipment room, such as, the equipment that can there will be L3 Switching relation is connected with green line.If There is L3 Switching relation in two equipment rooms, then will draw a plurality of company in two equipment under various Routing Protocols Line, and plus the proprietary attribute of each Routing Protocol by the icon of equipment.
Specifically, in topological diagram during the L3 Switching relation of display device, L3 Switching relation data original first It is converted into topological data and is cached, then draws out all devices, and there will be the equipment of L3 Switching relation with green Solid line connect, while also to control the display elements on topological diagram, by which kind of agreement display relation etc..
In specific displaying, the L3 Switching relation under RIP agreements shows the domain name (domain) belonging to the equipment, ISIS agreements show the level belonging to equipment, and the zone name (area) where OSFP display devices, bgp protocol shows and sets The autonomy field system (AS) at standby place.The L3 Switching relation of equipment room under the topology exhibits device acquiescence all of agreement of display.
The function button that user is carried using topology exhibits device, can neatly select to check any Routing Protocol The L3 Switching relation of lower equipment room.
When the L3 Switching relation of equipment room under user requires only to show a certain or various protocols, topology exhibits device The inquiry request that can be sent according to user, finds out L3 Switching relation line under all non-agreements drawn out simultaneously The particular attribute under other agreements is removed successively.
When user again requires that the L3 Switching relation under showing other agreements, topology exhibits device will be from caching Read the L3 Switching relation under specified protocol and be plotted in topological diagram.
Specifically, as shown in Fig. 2 service end concurrently performs the different routes of correspondence in task dispatcher in above-mentioned steps S101 Each collector of protocol type, the L3 Switching relation data of equipment room includes under the various Routing Protocols of acquisition:
Step S1011, the equipment for indicating each collector to filter out the Routing Protocol for being configured with the current collector of correspondence;
Step S1012, travels through all equipment for filtering out, and is successively read three layers of friendship in the Routing Protocol MIB tables of each equipment Relation table is changed, the other equipment information that L3 Switching relation is set up with corresponding device is therefrom obtained;
The different L3 Switching relation table of correspondence in the MIB tables of different Routing Protocols, such as in ospf protocol PeerTable in NbrTable, BGP, from L3 Switching relation table obtain current device with its occur L3 Switching other The information of equipment, stamps agreement and marks and preserve into database.
Step S1013, is assembled into L3 Switching relation a record and is stored in database;
Step S1014, when all collectors are performed both by finishing, reads equipment room under various Routing Protocols from database L3 Switching relation data.
By taking OSPF Routing Protocol collectors as an example, first, collector obtains the facility information in webmaster, filters out all matching somebody with somebody The equipment of OSPF Routing Protocols is put.Then traversal filtering after equipment, obtained from the NbrTable tables in MIB tables with currently Equipment sets up the miscellaneous equipment information of L3 Switching relation, and this relation is assembled into a record is stored in database.Work as institute After having collector to be performed both by finishing, service end sends it to the L3 Switching relation data of reading database memory storage The topology exhibits device of client is shown.
The present embodiment realizes the detection and displaying of the L3 Switching relation of equipment room under various different routing protocols, it is to avoid In the prior art when three etale topologies find, by the way of L3 Switching relation in directly reading routing table, due to route Table is excessive and causes the problem of inefficiency, improves network management system overall performance.Additionally, topology exhibits of the user in client When checking topological diagram in device, it is allowed to check the L3 Switching relation of equipment room respectively by different agreement type, provide the user Convenience.And the present invention does not need extra hardware supported, the MIB tables of each Routing Protocol are only relied upon, are thus susceptible to realize, And can reduces cost.
Additionally, network management system can create a timed task, between automatic execution primary equipment at regular intervals L3 Switching relation detection, the L3 Switching relation of equipment room, can further improve net under real-time update different routing protocol The overall performance of guard system.
As shown in figure 3, the method that another embodiment of the present invention proposes L3 Switching relation between a kind of detection and presentation device, On the basis of the embodiment shown in above-mentioned Fig. 1, also included before above-mentioned steps S101 service ends start task dispatcher:
Step S100, service end creates and loads corresponding collector to task and adjust according to different Routing Protocol types In degree device, while the essential information for obtaining all devices is put into each collector.
The present embodiment is with the difference of above-described embodiment, in the present embodiment service end before task dispatcher is started, It is interim according to different Routing Protocol types, in creating and loading corresponding collector to task dispatcher, and by all devices Essential information be put into each collector, so as to task dispatcher unified management, concurrently perform each collector, gather corresponding road By the L3 Switching relation data of equipment room under agreement.
In network management system, respectively the Routing Protocol such as RIP, ISIS, OSPF, BGP sets up corresponding collection to the present embodiment Device, for specially gathering under each Routing Protocol, the L3 Switching relation of equipment room.Be managed collectively using task dispatcher simultaneously, The collector is concurrently performed, accurate facility information can be got according to currently practical application scenarios in network management system, improved The data accuracy and promptness of network management system, further increase network management system performance.
As shown in figure 4, the method that yet another embodiment of the invention proposes L3 Switching relation between a kind of detection and presentation device, On the basis of the embodiment shown in above-mentioned Fig. 3, also include after above-mentioned steps S102:
Step S103, judges whether client sends the collection request of L3 Switching relation to service end;If so, then entering step Rapid S104;Otherwise, flow is terminated;
Step S104, service end is gathered according to L3 Switching relation and asked, and re-creates and load the different route associations of correspondence In collector to the task dispatcher of view type, and return to step S101.
The present embodiment is that the present embodiment can also be forced to refresh and work as according to user's request with the difference of above-described embodiment The L3 Switching relation of the equipment room in preceding topological diagram.
When user needs the L3 Switching relation of manual refreshing equipment room, can be carried by using topology exhibits device " immediately gather " function, L3 Switching relation is sent to service end by NM client and gathers request, for forcing to refresh Device relationships in present topology.
After the L3 Switching relation that service end receives client transmission gathers request, each L3 Switching is reloaded immediately Relation collector, and perform acquisition tasks.After the completion of acquisition tasks, newest L3 Switching relation data is sent to topology On exhibiting device.Topology exhibits device by data mart modeling into topological data, then removes the L3 Switching relation on original equipment again Line, updates caching, and repaint new L3 Switching relation line.Service end can be used when collector is reloaded Suppression mechanism, i.e., when once gather do not complete and another " immediately gather " request arrived when, service end is actively abandoned The new request for arriving, using the result of current collection as the result of all collection requests.Certainly it is also not necessarily limited to this kind of processing mode.
The present embodiment can need to force the L3 Switching between refreshing a device to close on the basis of above-described embodiment with user System, provides users with the convenient, and the present invention does not need extra hardware supported, only relies upon the MIB tables of each Routing Protocol, It is thus susceptible to realize, and can reduces cost.
It should be noted that service end can also be before initial start-up task dispatcher, three layers sent according to client Commutative relation collection request, creates and loads each collector, is managed collectively, concurrently performs the corresponding Routing Protocol of each collector collection The L3 Switching relation data of lower equipment room.
Additionally, used as the extension of the various embodiments described above, in another embodiment, can also support will in topology exhibits device Device packets, and by service end by the L3 Switching relation between packet collecting device.Because network size is influence detection efficiency Key factor.And module is bigger, the time that the L3 Switching relation between collection armamentarium is consumed is also more long.If to be grouped For unit carries out the collection of equipment room L3 Switching relation, on the one hand be free to scale collection scale, on the other hand can make Collection is more targeted, it is to avoid because gather uncorrelated equipment and caused by time and performance on waste.
When by packet collection, in the collection request that topology exhibits device sends, by comprising the equipment in current group Essential information.After service end receives the request, collector is indicated to gather the L3 Switching relation of equipment room under the packet
In addition, as the another kind extension of the various embodiments described above, in another embodiment, being set in order to be able to preferably give expression to L3 Switching relation between standby, it may be considered that the equipment that will be configured with static routing also serves as neighbours' displaying.Because being configured with quiet The equipment in state path, also can occur three layer datas and exchange with its next-hop device.When realizing, only need to be newly-increased one in service end Static routing collector, and be loaded into task dispatcher.
As shown in figure 5, one embodiment of the invention proposes a kind of webmaster system of L3 Switching relation between detection and presentation device System, including:Service end 501 and client 502;Wherein:
Service end 501 is provided with task dispatcher, and the service end 501 is used to start task dispatcher, concurrently performs task Each collector of correspondence different routing protocol type, obtains the L3 Switching relation of equipment room under various Routing Protocols in scheduler Data, and send to client 502;
Client 502 includes:Topology exhibits device 5021, for the L3 Switching of equipment room under various Routing Protocols to be closed Topological diagram is shown coefficient according to this.
Specifically, the type in the present embodiment task dispatcher previously according to various Routing Protocols is loaded with the various roads of correspondence By the collector of agreement, such as RIP collectors, the ISIS collections of RIP, ISIS, OSPF and BGP Routing Protocol are corresponded to respectively Device, OSPF collectors and BGP collectors, in loading, each collector are put into by the essential information of all devices, wherein, if Standby essential information includes device name, the Routing Protocol of device configuration, the affiliated domain name of equipment, level or other information.
Each collector is respectively intended to gather the L3 Switching relation data of equipment room under corresponding Routing Protocol, task dispatcher It is managed collectively, concurrently performs each collector.
After task dispatcher starts, each collector is concurrently performed by its automatic thread of assigning.Task dispatcher is one The thread pool of new thread can as needed be created, in thread pool thread it is how much according to current tasks number and current server Performance depending on.For performing the program of many short-term asynchronous tasks, these thread pools can generally improve program feature.Such as Really existing thread does not have available, then create a new thread and be added in pond.Terminate and removed from caching those have The thread that the scheduled time is such as not used by for 60 seconds.Therefore, idle thread pool is kept for a long time will not use any resource.
Meanwhile, database is additionally provided with service end 501, the different route associations of each collector collection are preserved for recording The L3 Switching relation data of the lower equipment room of view.
After the L3 Switching relation data of equipment room under service end 501 gets various Routing Protocols, by this data hair The topology exhibits device 5021 in client 502 is given, by topology exhibits device 5021 by equipment room under various Routing Protocols L3 Switching relation data is converted to topological data and is shown in topological mode.
Wherein, each collector in the task dispatcher of service end 501 obtains three layers of friendship of equipment room under corresponding Routing Protocol The process for changing relation data is as follows:
First, the equipment for filtering out the Routing Protocol for being configured with the current collector of correspondence, then filters out to each Equipment, obtains the L3 Switching relation table of the equipment and other equipment, and this relation is preserved from the MIB tables of its Routing Protocol Into the database of service end 501, when all collectors are performed both by finishing, service end 501 can then read respectively from database The L3 Switching relation data of equipment room, sends to client 502 under kind Routing Protocol.
The different L3 Switching relation tables of correspondence in the MIB tables of different Routing Protocols, wherein, RIP, ISIS, OSPF with And L3 Switching relation table in the corresponding MIB tables of BGP Routing Protocols is as listed in Table 1.
After the topology exhibits device 5021 of client 502 receives the data, L3 Switching relation data can be converted into Topological data, draws out all devices icon and the L3 Switching relation of equipment room is plotted in topological diagram, in topological mode The L3 Switching relation of each equipment room is shown, such as, the equipment that can there will be L3 Switching relation is connected with green line Connect.If there is L3 Switching relation under various Routing Protocols in two equipment rooms, then will be drawn in two equipment A plurality of line, and plus the proprietary attribute of each Routing Protocol by the icon of equipment.
Specifically, in topological diagram during the L3 Switching relation of display device, L3 Switching relation data original first It is converted into topological data and is cached, then draws out all devices, and there will be the equipment of L3 Switching relation with green Solid line connect, while also to control the display elements on topological diagram, by which kind of agreement display relation etc..
In specific displaying, the L3 Switching relation under RIP agreements shows the domain name (domain) belonging to the equipment, ISIS agreements show the level belonging to equipment, and the zone name (area) where OSFP display devices, bgp protocol shows and sets The autonomy field system (AS) at standby place.The L3 Switching relation of equipment room under the topology exhibits device acquiescence all of agreement of display.
The function button that user is carried using topology exhibits device 5021, can neatly select to check any route The L3 Switching relation of equipment room under agreement.
When the L3 Switching relation of equipment room under user requires only to show a certain or various protocols, topology exhibits device 5021 inquiry requests that can be sent according to user, the L3 Switching relation found out under all non-agreements drawn out connects Line simultaneously removes the particular attribute under other agreements successively.
When user again requires that the L3 Switching relation under showing other agreements, topology exhibits device 5021 will postpone Deposit the L3 Switching relation under reading specified protocol and be plotted in topological diagram.
In specific implementation process, as shown in fig. 6, above-mentioned service end 501 includes:Starting module 5011, acquisition module 5012 and data transmission blocks 5013, wherein:
Starting module 5011, for starting task dispatcher;
Acquisition module 5012, each collector of correspondence different routing protocol type in task dispatcher is performed for sending out, and is obtained Take the L3 Switching relation data of equipment room under various Routing Protocols;
Data transmission blocks 5013, for the L3 Switching relation data of equipment room under various Routing Protocols to be sent to visitor Family end 502;
Specifically, as shown in fig. 7, acquisition module 5012 includes:Filter element 50121, collecting unit 50122, storage are single Unit 50123 and reading unit 50124, wherein:
Filter element 50121, the Routing Protocol of the current collector of correspondence is configured with for indicating each collector to filter out Equipment;
Collecting unit 50122, for traveling through all equipment for filtering out, is successively read the Routing Protocol MIB tables of each equipment Middle L3 Switching relation table, therefrom obtains the other equipment information that L3 Switching relation is set up with corresponding device;
Memory cell 50123, is stored in database for L3 Switching relation to be assembled into a record;
Reading unit 50124, for when all collectors are performed both by finishing, various Routing Protocols being read from database The L3 Switching relation data of lower equipment room.
As shown in figure 8, above topology exhibiting device 5021 includes:Modular converter 50211 and displaying control module 50212, Wherein:
Modular converter 50211, for the L3 Switching relation data of equipment room under various Routing Protocols to be converted into topology Data;
Displaying control module 50212, for according to topological data, by the icon of each equipment and the L3 Switching of each equipment room Relation is shown in being plotted in topological diagram;And it is additionally operable to receive the inquiry request of user;According to inquiry request, display one The L3 Switching relation of equipment room under kind, two or more Routing Protocols
The present embodiment realizes the detection and displaying of the L3 Switching relation of equipment room under various different routing protocols, it is to avoid In the prior art when three etale topologies find, by the way of L3 Switching relation in directly reading routing table, due to route Table is excessive and causes the problem of inefficiency, improves network management system overall performance.Additionally, topology of the user in client 502 When checking topological diagram in exhibiting device, it is allowed to check the L3 Switching relation of equipment room respectively by different agreement type, be user There is provided convenient.And the present invention does not need extra hardware supported, the MIB tables of each Routing Protocol are only relied upon, be thus susceptible to Realize, and can reduces cost.
Additionally, network management system can create a timed task, between automatic execution primary equipment at regular intervals L3 Switching relation detection, the L3 Switching relation of equipment room, can further improve net under real-time update different routing protocol The overall performance of guard system.
As shown in figure 9, another embodiment of the present invention proposes a kind of webmaster of L3 Switching relation between detection and presentation device System, on the basis of above-described embodiment, service end 501 also includes in the present embodiment:
Load-on module 5010 is created, for according to different Routing Protocol types, creating and loading corresponding collector extremely In task dispatcher, and the essential information of acquisition all devices is put into each collector.
The present embodiment is with the difference of above-described embodiment, in the present embodiment service end 501 start task dispatcher it Before, temporarily according to different Routing Protocol types, in creating and loading corresponding collector to task dispatcher, and set all Standby essential information is put into each collector, so as to task dispatcher unified management, concurrently performs each collector, and collection is corresponding The L3 Switching relation data of equipment room under Routing Protocol.
In network management system, respectively the Routing Protocol such as RIP, ISIS, OSPF, BGP sets up corresponding collection to the present embodiment Device, for specially gathering under each Routing Protocol, the L3 Switching relation of equipment room.Be managed collectively using task dispatcher simultaneously, The collector is concurrently performed, accurate facility information can be got according to currently practical application scenarios in network management system, improved The data accuracy and promptness of network management system, further increase network management system performance.
In a further embodiment, above-mentioned displaying control module 50212, is additionally operable to send three layers of friendship to service end 501 Change relation collection request;Load-on module 5010 is created, is additionally operable to be gathered according to the L3 Switching relation and is asked, created and load In collector to the task dispatcher of correspondence different routing protocol type.
Specifically, when user needs the L3 Switching relation of manual refreshing equipment room, can be by using topology exhibits " gathering immediately " function that device 5021 is carried, sends L3 Switching relation and gathers by NM client 502 to service end 501 Request, for the device relationships for forcing to refresh in present topology.
After the L3 Switching relation that service end 501 receives the transmission of client 502 gathers request, each three are reloaded immediately Layer commutative relation collector, and perform acquisition tasks.After the completion of acquisition tasks, newest L3 Switching relation data is sent Onto topology exhibits device.Topology exhibits device by data mart modeling into topological data, then removes three layers of friendship on original equipment again Relation line is changed, caching is updated, and repaint new L3 Switching relation line.Service end 501 is reloading collector When can use suppression mechanism, i.e., when once gather do not complete and another " immediately gather " request arrived when, service End 501 actively abandons the new request for arriving, using the result of current collection as the result of all collection requests.Certainly it is also not necessarily limited to This kind of processing mode.
The present embodiment can need to force the L3 Switching between refreshing a device to close on the basis of above-described embodiment with user System, provides users with the convenient, and the present invention does not need extra hardware supported, only relies upon the MIB tables of each Routing Protocol, It is thus susceptible to realize, and can reduces cost.
It should be noted that service end 501 can also send before initial start-up task dispatcher according to client 502 The collection request of L3 Switching relation, create and load each collector, unified management, concurrently perform each collector and gather corresponding road By the L3 Switching relation data of equipment room under agreement.
Additionally, as the extension of the various embodiments described above, in another embodiment, can also support in topology exhibits device 5021 It is middle by device packets, and by service end 501 by packet collecting device between L3 Switching relation.Because network size is influence inspection Survey the key factor of efficiency.And module is bigger, the time that the L3 Switching relation between collection armamentarium is consumed is also more long.If The collection of equipment room L3 Switching relation is carried out in packetized units, on the one hand be free to scale collection scale, on the other hand Can make the collection more targeted, it is to avoid because gather uncorrelated equipment and caused by time and performance on waste.
When by packet collection, in the collection request that topology exhibits device 5021 sends, by comprising setting in current group Standby essential information.After service end 501 receives the request, collector is indicated to gather the L3 Switching pass of equipment room under the packet System.
In addition, as the another kind extension of the various embodiments described above, in another embodiment, being set in order to be able to preferably give expression to L3 Switching relation between standby, it may be considered that the equipment that will be configured with static routing also serves as neighbours' displaying.Because being configured with quiet The equipment in state path, also can occur three layer datas and exchange with its next-hop device.When realizing, only need to be newly-increased in service end 501 One static routing collector, and be loaded into task dispatcher.
In the embodiment of the present invention network management detection and presentation device between L3 Switching relation method and system, in webmaster In system, the respectively various Routing Protocols such as RIP, ISIS, OSPF and BGP set up corresponding collector, for special collection The L3 Switching relation data of equipment room under various Routing Protocols, while being managed collectively using task dispatcher, concurrently being performed respectively Collector.After the collection of L3 Switching relation data is finished, send the data to client and user is presented in topological mode, keep away Exempt from the prior art when three etale topologies find, by the way of L3 Switching relation in directly reading routing table, due to road It is excessive by table and cause the problem of inefficiency, so as to improve network management system overall performance.Additionally, user's opening up in client Flutter when checking topological diagram in exhibiting device, it is allowed to check the L3 Switching relation of equipment room respectively by different agreement type, and Can also force to refresh the L3 Switching relation of equipment room under various Routing Protocols in topological diagram according to user's request, be user There is provided convenient.And the present invention does not need extra hardware supported, the MIB tables of each Routing Protocol are only relied upon, be thus susceptible to Realize, and can reduces cost.
The preferred embodiments of the present invention are the foregoing is only, the scope of the claims of the invention, every utilization is not thereby limited Equivalent structure or flow conversion that description of the invention and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (14)

1. it is a kind of detect and presentation device between L3 Switching relation method, it is characterised in that including:
Service end starts task dispatcher, concurrently performs each collection of correspondence different routing protocol type in the task dispatcher Device, obtains the L3 Switching relation data of equipment room under various Routing Protocols, and sends to client, wherein, the service end The equipment for indicating each collector to filter out the Routing Protocol for being configured with the current collector of correspondence;Traversal it is all filter out set It is standby, L3 Switching relation table in the Routing Protocol MIB tables of each equipment is successively read, therefrom obtain and set up three layers of friendship with corresponding device Change the other equipment information of relation;The L3 Switching relation is assembled into a record to be stored in database;When all collections When device is performed both by finishing, the L3 Switching relation data of equipment room under various Routing Protocols is read from the database;
With topological diagram be shown the L3 Switching relation data of equipment room under the various Routing Protocols by the client.
2. method according to claim 1, it is characterised in that before the step of service end starts task dispatcher also Including:
The service end according to different Routing Protocol types, in creating and loading corresponding collector to task dispatcher;
The essential information for obtaining all devices is put into each collector.
3. method according to claim 1, it is characterised in that the client is by equipment room under the various Routing Protocols L3 Switching relation data include the step of be shown with topological diagram:
The L3 Switching relation data of equipment room under the various Routing Protocols is converted into topological data by the client;
According to the topological data, the L3 Switching relation of the icon of each equipment and each equipment room is plotted in topological diagram to be carried out Displaying.
4. the method according to any one of claim 1-3, it is characterised in that also include:
The client sends the collection request of L3 Switching relation to the service end;
The service end is gathered according to the L3 Switching relation and asked, and creates and load adopting for correspondence different routing protocol type In storage to task dispatcher.
5. method according to claim 4, it is characterised in that the client is by equipment room under the various Routing Protocols L3 Switching relation data the step of be shown with topological diagram after also include:
The client receives the inquiry request of user;
According to the inquiry request, the L3 Switching relation of equipment room under display one kind, two or more Routing Protocols.
6. method according to claim 1, it is characterised in that the service end indicates each collector to filter out to be configured with The step of equipment of the Routing Protocol of correspondence current collector, further includes:
The service end is indicated each collector to be filtered out in units of device packets and the current collection of correspondence is configured with correspondence group The equipment of the Routing Protocol of device.
7. method according to claim 4, it is characterised in that the collector includes dynamic routing collector, or, institute Stating collector includes dynamic routing collector and static routing collector.
8. it is a kind of detect and presentation device between L3 Switching relation network management system, it is characterised in that including:Service end and client End;Wherein:
The service end includes:
Starting module, for starting task dispatcher;
Acquisition module, each collector for concurrently performing correspondence different routing protocol type in the task dispatcher, obtains The L3 Switching relation data of equipment room under various Routing Protocols, wherein, each collector of the service end instruction is filtered out matches somebody with somebody It is equipped with the equipment of the Routing Protocol of the current collector of correspondence;The all equipment for filtering out of traversal, are successively read the route of each equipment L3 Switching relation table in agreement MIB tables, therefrom obtains the other equipment information that L3 Switching relation is set up with corresponding device;Will The L3 Switching relation is assembled into a record and is stored in database;When all collectors are performed both by finishing, from the number According to the L3 Switching relation data that equipment room under various Routing Protocols is read in storehouse;
Data transmission blocks, for the L3 Switching relation data of equipment room under the various Routing Protocols to be sent to client End;
The client includes:
Topology exhibits device, for the L3 Switching relation data of equipment room under the various Routing Protocols to be carried out with topological diagram Displaying.
9. network management system according to claim 8, it is characterised in that the service end also includes:
Load-on module is created, for according to different Routing Protocol types, creating and loading corresponding collector to task scheduling In device, and the essential information of acquisition all devices is put into each collector.
10. network management system according to claim 9, it is characterised in that the topology exhibits device includes:
Modular converter, for the L3 Switching relation data of equipment room under the various Routing Protocols to be converted into topological data;
Displaying control module, for according to the topological data, by the icon of each equipment and the L3 Switching relation of each equipment room It is plotted in topological diagram and is shown.
11. network management systems according to claim 10, it is characterised in that
The displaying control module, is additionally operable to send the collection request of L3 Switching relation to the service end;
The establishment load-on module, is additionally operable to be gathered according to the L3 Switching relation and asks, and creates and loads correspondence and do not go the same way By in collector to the task dispatcher of protocol type.
12. network management systems according to claim 11, it is characterised in that
The displaying control module, is additionally operable to receive the inquiry request of user;According to the inquiry request, display is a kind of, two kinds Or under various Routing Protocols equipment room L3 Switching relation.
13. network management systems according to claim 8, it is characterised in that
The acquisition module, is additionally operable to indicate each collector to be filtered out in units of device packets and is configured with correspondingly in correspondence group The equipment of the Routing Protocol of current collector.
14. network management systems according to claim 10, it is characterised in that the collector includes dynamic routing collector, Or, the collector includes dynamic routing collector and static routing collector.
CN201210091652.1A 2012-03-31 2012-03-31 The method and system of L3 Switching relation between detection and presentation device Expired - Fee Related CN103368758B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201210091652.1A CN103368758B (en) 2012-03-31 2012-03-31 The method and system of L3 Switching relation between detection and presentation device
PCT/CN2013/073093 WO2013143421A1 (en) 2012-03-31 2013-03-22 Method and system for detecting and showing 3-layer switching relations among devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210091652.1A CN103368758B (en) 2012-03-31 2012-03-31 The method and system of L3 Switching relation between detection and presentation device

Publications (2)

Publication Number Publication Date
CN103368758A CN103368758A (en) 2013-10-23
CN103368758B true CN103368758B (en) 2017-05-31

Family

ID=49258205

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210091652.1A Expired - Fee Related CN103368758B (en) 2012-03-31 2012-03-31 The method and system of L3 Switching relation between detection and presentation device

Country Status (2)

Country Link
CN (1) CN103368758B (en)
WO (1) WO2013143421A1 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247278A (en) * 2007-08-06 2008-08-20 北京高信达网络科技有限公司 Routing monitoring apparatus

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7069343B2 (en) * 2001-09-06 2006-06-27 Avaya Technologycorp. Topology discovery by partitioning multiple discovery techniques
CN101252488B (en) * 2008-04-15 2012-07-04 中国科学院计算技术研究所 Multi self-governing system router level topology processing system and method
CN101640610B (en) * 2009-09-02 2012-01-11 中兴通讯股份有限公司 Method and system for automatic discovery of Ethernet link
CN101795227B (en) * 2010-01-25 2013-06-05 杭州华三通信技术有限公司 Method and system for rapidly finding router
CN101977142B (en) * 2010-10-12 2014-12-31 中兴通讯股份有限公司 Simple network management method and device based on multiple routing protocol instances
CN102137015B (en) * 2011-03-11 2015-04-08 华为技术有限公司 Routing information acquiring method and network equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247278A (en) * 2007-08-06 2008-08-20 北京高信达网络科技有限公司 Routing monitoring apparatus

Also Published As

Publication number Publication date
WO2013143421A1 (en) 2013-10-03
CN103368758A (en) 2013-10-23

Similar Documents

Publication Publication Date Title
CN102045190B (en) Network topology discovery method and device
CN112039693B (en) System and method for managing home networking network topology
CN103621024B (en) There is the Ethernet tree using two kinds of pseudo-wires between edge router strengthening retransmission method and system
CN106576054A (en) Network device configuration framework
CN104346373B (en) Subregion journal queue synchronization management method and equipment
CN103338252B (en) Realizing method of distributed database concurrence storage virtual request mechanism
CN107566150A (en) Handle the method and physical node of cloud resource
CN103607432B (en) A kind of method and system of network creation and the network control center
CN101702656B (en) Discovery method of network topology based on MPLS-VPN
CN107209695A (en) System, virtualization control device, the methods and procedures for controlling virtualization control device
CN106034077A (en) Dynamic route configuration method, device and system thereof
CN107483521A (en) A kind of information displaying method, apparatus and system
CN104699757B (en) Distributed network information acquisition method under cloud environment
CN102970358A (en) Method and device for controlling local cache of mobile client in network disc
Vissicchio et al. Improving network agility with seamless BGP reconfigurations
CN107104809B (en) A kind of method and system generating network topological diagram
CN107544837A (en) Cloud service device performance data acquisition system, method and apparatus
CN109075995A (en) The device that performance measurement data for NFV performance management is subscribed to
CN104158675A (en) Computing node arranging method, processing node, controller and system
CN102158406B (en) Intelligent routing method for computer network links
CN109561165A (en) Domain name system configuration method and relevant apparatus
Qing et al. Hybrid virtual network embedding with K-core decomposition and time-oriented priority
CN103973747B (en) A kind of method and apparatus for obtaining content
CN103533029B (en) Gantt chart data loading method and system
CN103368758B (en) The method and system of L3 Switching relation between detection and presentation device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170531

Termination date: 20190331

CF01 Termination of patent right due to non-payment of annual fee